!function(F){"use strict";vartt=function(){},p=function(e,o){returnfunction(){for(vart=[],n=0;n<arguments.length;n++)t[n]=arguments[n];returne(o.apply(null,t))}},nt=function(t){returnfunction(){returnt}},d=function(t){returnt};functiong(o){for(varr=[],t=1;t<arguments.length;t++)r[t-1]=arguments[t];returnfunction(){for(vart=[],n=0;n<arguments.length;n++)t[n]=arguments[n];vare=r.concat(t);returno.apply(null,e)}}varx=function(e){returnfunction(){for(vart=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return!e.apply(null,t)}},u=function(t){returnfunction(){thrownewError(t)}},t=nt(!1),n=nt(!0),e=tinymce.util.Tools.resolve("tinymce.ThemeManager"),I=function(){return(I=Object.assign||function(t){for(varn,e=1,o=arguments.length;e<o;e++)for(varrinn=arguments[e])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);returnt}).apply(this,arguments)};functionh(t,n){vare={};for(varoint)Object.prototype.hasOwnProperty.call(t,o)&&n.indexOf(o)<0&&(e[o]=t[o]);if(null!=t&&"function"==typeofObject.getOwnPropertySymbols){varr=0;for(o=Object.getOwnPropertySymbols(t);r<o.length;r++)n.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(t,o[r])&&(e[o[r]]=t[o[r]])}returne}varo,r,i,a,c,s,l,f=t,m=n,v=function(){returnb},b=(a={fold:function(t,n){returnt()},is:f,isSome:f,isNone:m,getOr:i=function(t){returnt},getOrThunk:r=function(t){returnt()},getOrDie:function(t){thrownewError(t||"error: getOrDie called on none.")},getOrNull:function(){returnnull},getOrUndefined:function(){returnundefined},or:i,orThunk:r,map:v,ap:v,each:function(){},bind:v,flatten:v,exists:f,forall:m,filter:v,equals:o=function(t){returnt.isNone()},equals_:o,toArray:function(){return[]},toString:nt("none()")},Object.freeze&&Object.freeze(a),a),y=function(e){vart=function(){returne},n=function(){returnr},o=function(t){returnt(e)},r={fold:function(t,n){returnn(e)},is:function(t){returne===t},isSome:m,isNone:f,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){returny(t(e))},ap:function(t){returnt.fold(v,function(t){returny(t(e))})},each:function(t){t(e)},bind:o,flatten:t,exists:o,forall:o,filter:function(t){returnt(e)?r:b},equals:function(t){returnt.is(e)},equals_:function(t,n){returnt.fold(f,function(t){returnn(e,t)})},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};returnr},et={some:y,none:v,from:function(t){returnnull===t||t===undefined?b:y(t)}},w=function(e){return{is:function(t){returne===t},isValue:n,isError:t,getOr:nt(e),getOrThunk:nt(e),getOrDie:nt(e),or:function(t){returnw(e)},orThunk:function(t){returnw(e)},fold:function(t,n){returnn(e)},map:function(t){returnw(t(e))},mapError:function(t){returnw(e)},each:function(t){t(e)},bind:function(t){returnt(e)},exists:function(t){returnt(e)},forall:function(t){returnt(e)},toOption:function(){returnet.some(e)}}},S=function(e){return{is:t,isValue:t,isError:n,getOr:d,getOrThunk:function(t){returnt()},getOrDie:function(){returnu(String(e))()},or:function(t){returnt},orThunk:function(t){returnt()},fold:function(t,n){returnt(e)},map:function(t){returnS(e)},mapError:function(t){returnS(t(e))},each:tt,bind:function(t){returnS(e)},exists:t,forall:n,toOption:et.none}},R={value:w,error:S,fromOption:function(t,n){returnt.fold(function(){returnS(n)},w)}},C=function(n){returnfunction(t){returnfunction(t){if(null===t)return"null";varn=typeoft;return"object"===n&&(Array.prototype.isPrototypeOf(t)||t.constructor&&"Array"===t.constructor.name)?"array":"object"===n&&(String.prototype.isPrototypeOf(t)||t.constructor&&"String"===t.constructor.name)?"string":n}(t)===n}},k=C("string"),O=C("object"),E=C("array"),T=C("boolean"),B=C("function"),V=C("number"),D=function(t,n){if(E(t)){for(vare=0,o=t.length;e<o;++e)if(!0!==n(t[e]))return!1;return!0}return!1},A=Array.prototype.slice,_=(c=Array.prototype.indexOf)===undefined?function(t,n){returnX(t,n)}:function(t,n){returnc.call(t,n)},M=function(t,n){return-1<_(t,n)},N=function(t,n){returnG(t,n).isSome()},H=function(t,n){for(vare=[],o=0;o<t.length;o+=n){var