!function(){"use strict";conste=Object.getPrototypeOf,t=(e,t,o)=>{varn;return!!o(e,t.prototype)||(null===(n=e.constructor)||void0===n?void0:n.name)===t.name},o=e=>o=>(e=>{consto=typeofe;returnnull===e?"null":"object"===o&&Array.isArray(e)?"array":"object"===o&&t(e,String,((e,t)=>t.isPrototypeOf(e)))?"string":o})(o)===e,n=e=>t=>typeoft===e,r=e=>t=>e===t,s=o("string"),a=o("object"),i=o=>((o,n)=>a(o)&&t(o,n,((t,o)=>e(t)===o)))(o,Object),l=o("array"),c=r(null),d=n("boolean"),u=r(void0),m=e=>null==e,g=e=>!m(e),p=n("function"),h=n("number"),f=(e,t)=>{if(l(e)){for(leto=0,n=e.length;o<n;++o)if(!t(e[o]))return!1;return!0}return!1},b=()=>{},v=(e,t)=>(...o)=>e(t.apply(null,o)),y=e=>()=>e,x=e=>e,w=(e,t)=>e===t;functionS(e,...t){return(...o)=>{constn=t.concat(o);returne.apply(null,n)}}constk=e=>t=>!e(t),C=e=>()=>{thrownewError(e)},O=e=>e(),_=y(!1),T=y(!0);varE=tinymce.util.Tools.resolve("tinymce.ThemeManager");classM{constructor(e,t){this.tag=e,this.value=t}staticsome(e){returnnewM(!0,e)}staticnone(){returnM.singletonNone}fold(e,t){returnthis.tag?t(this.value):e()}isSome(){returnthis.tag}isNone(){return!this.tag}map(e){returnthis.tag?M.some(e(this.value)):M.none()}bind(e){returnthis.tag?e(this.value):M.none()}exists(e){returnthis.tag&&e(this.value)}forall(e){return!this.tag||e(this.value)}filter(e){return!this.tag||e(this.value)?this:M.none()}getOr(e){returnthis.tag?this.value:e}or(e){returnthis.tag?this:e}getOrThunk(e){returnthis.tag?this.value:e()}orThunk(e){returnthis.tag?this:e()}getOrDie(e){if(this.tag)returnthis.value;thrownewError(null!=e?e:"Called getOrDie on None")}staticfrom(e){returng(e)?M.some(e):M.none()}getOrNull(){returnthis.tag?this.value:null}getOrUndefined(){returnthis.value}each(e){this.tag&&e(this.value)}toArray(){returnthis.tag?[this.value]:[]}toString(){returnthis.tag?`some(${this.value})`:"none()"}}M.singletonNone=newM(!1);constA=Array.prototype.slice,D=Array.prototype.indexOf,B=Array.prototype.push,F=(e,t)=>D.call(e,t),I=(e,t)=>{consto=F(e,t);return-1===o?M.none():M.some(o)},R=(e,t)=>F(e,t)>-1,N=(e,t)=>{for(leto=0,n=e.length;o<n;o++)if(t(e[o],o))return!0;return!1},V=(e,t)=>{consto=[];for(letn=0;n<e;n++)o.push(t(n));returno},H=(e,t)=>{consto=[];for(letn=0;n<e.length;n+=t){constr=A.call(e,n,n+t);o.push(r)}returno},z=(e,t)=>{consto=e.length,n=newArray(o);for(letr=0;r<o;r++){consto=e[r];n[r]=t(o,r)}returnn},L=(e,t)=>{for(leto=0,n=e.length;o<n;o++)t(e[o],o)},P=(e,t)=>{consto=[],n=[];for(letr=0,s=e.length;r<s;r++){consts=e[r];(t(s,r)?o:n).push(s)}return{pass:o,fail:n}},U=(e,t)=>{consto=[];for(letn=0,r=e.length;n<r;n++){constr=e[n];t(r,n)&&o.push(r)}returno},W=(e,t,o)=>(((e,t)=>{for(leto=e.length-1;o>=0;o--)t(e[o],o)})(e,((e,n)=>{o=t(o,e,n)})),o),j=(e,t,o)=>(L(e,((e,n)=>{o=t(o,e,n)})),o),G=(e,t)=>((e,t,o)=>{for(letn=0,r=e.length;n<r;n++){constr=e[n];if(t(r,n))returnM.some(r);if(o(r,n))break}returnM.none()})(e,t,_),$=(e,t)=>{for(leto=0,n=e.length;o<n;o++)if(t(e[o],o))returnM.some(o);returnM.none()},q=e=>{constt=[];for(leto=0,n=e.length;o<n;++o){if(!l(e[o]))thrownewError("Arr.flatten item "+o+" was not an array, input: "+e);B.apply(t,e[o])}returnt},X=(e,t)=>q(z(e,t)),K=(e,t)=>{for(leto=0,n=e.length;o<n;++o)if(!0!==t(e[o],o))return!1;return!0},Y=e=>{constt=A.call(e,0);returnt.reverse(),t},J=(e,t)=>U(e,(e=>!R(t,e))),Z=(e,t)=>{consto={};for(letn=0,r=e.length;n<r;n++){constr=e[n];o[String(r)]=t(r,n)}returno},Q=e=>[e],ee=(e,t)=>{consto=A.call(e,0);returno.sort(t),o},te=(e,t)=>t>=0&&t<e.length?M.some(e[t]):M.none(),oe=e=>te(e,0),ne=e=>te(e,e.length-1),re=p(Array.from)?Array.from:e=>A.call(e),se=(e,t)=>{for(leto=0;o<e.length;o++){constn=t(e[o],o);if(n.isSome())returnn}returnM.none()},ae=Object.keys,ie=Object.hasOwnProperty,le=(e,t)=>{consto=ae(e);for(letn=0,r=o.length;n<r;n++){constr=o[n];t(e[r],r)}},ce=(e,t)=>de(e,((e,o)=>({k:o,v:t(e,o)}))),de=(e,t)=>{consto={};returnle(e,((e,n)=>{constr=t(e,n);o[r.k]=r.v})),o},ue=e=>(t,o)=>{e[o]=t},me=(e,t,o,n)=>{le(e,((e,r)=>{(t(e,r)?o:n)(e,r)}))},ge=(e,t)=>{consto={};returnme(e,t,ue(o),b),o