!function(nt){"use strict";varZ=function(){},d=function(e,o){returnfunction(){for(vart=[],n=0;n<arguments.length;n++)t[n]=arguments[n];returne(o.apply(null,t))}},at=function(t){returnfunction(){returnt}},ct=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(n){returnfunction(t){return!n(t)}},u=function(t){returnfunction(){thrownewError(t)}},c=at(!1),i=at(!0),t=tinymce.util.Tools.resolve("tinymce.ThemeManager"),et=function(){return(et=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)};functiony(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}functionb(){for(vart=0,n=0,e=arguments.length;n<e;n++)t+=arguments[n].length;varo=Array(t),r=0;for(n=0;n<e;n++)for(vari=arguments[n],u=0,a=i.length;u<a;u++,r++)o[r]=i[u];returno}varn,e,o,r,a,s,l=function(){returnf},f=(n=function(t){returnt.isNone()},{fold:function(t,n){returnt()},is:c,isSome:c,isNone:i,getOr:o=function(t){returnt},getOrThunk:e=function(t){returnt()},getOrDie:function(t){thrownewError(t||"error: getOrDie called on none.")},getOrNull:at(null),getOrUndefined:at(undefined),or:o,orThunk:e,map:l,each:Z,bind:l,exists:c,forall:i,filter:l,equals:n,equals_:n,toArray:function(){return[]},toString:at("none()")}),m=function(e){vart=at(e),n=function(){returnr},o=function(t){returnt(e)},r={fold:function(t,n){returnn(e)},is:function(t){returne===t},isSome:i,isNone:c,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){returnm(t(e))},each:function(t){t(e)},bind:o,exists:o,forall:o,filter:function(t){returnt(e)?r:f},toArray:function(){return[e]},toString:function(){return"some("+e+")"},equals:function(t){returnt.is(e)},equals_:function(t,n){returnt.fold(c,function(t){returnn(e,t)})}};returnr},st={some:m,none:l,from:function(t){returnnull===t||t===undefined?f:m(t)}},p=function(e){return{is:function(t){returne===t},isValue:i,isError:c,getOr:at(e),getOrThunk:at(e),getOrDie:at(e),or:function(t){returnp(e)},orThunk:function(t){returnp(e)},fold:function(t,n){returnn(e)},map:function(t){returnp(t(e))},mapError:function(t){returnp(e)},each:function(t){t(e)},bind:function(t){returnt(e)},exists:function(t){returnt(e)},forall:function(t){returnt(e)},toOption:function(){returnst.some(e)}}},h=function(e){return{is:c,isValue:c,isError:i,getOr:ct,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){returnh(e)},mapError:function(t){returnh(t(e))},each:Z,bind:function(t){returnh(e)},exists:c,forall:i,toOption:st.none}},ot={value:p,error:h,fromOption:function(t,n){returnt.fold(function(){returnh(n)},p)}},v=function(o){returnfunction(t){returne=typeof(n=t),(null===n?"null":"object"==e&&(Array.prototype.isPrototypeOf(n)||n.constructor&&"Array"===n.constructor.name)?"array":"object"==e&&(String.prototype.isPrototypeOf(n)||n.constructor&&"String"===n.constructor.name)?"string":e)===o;varn,e}},w=function(n){returnfunction(t){returntypeoft===n}},S=v("string"),k=v("object"),C=v("array"),O=w("boolean"),_=(r=undefined,function(t){returnr===t}),T=w("function"),rt=w("number"),E=function(t,n){if(C(t)){for(vare=0,o=t.length;e<o;++e)if(!n(t[e]))return!1;return!0}return!1},B=Array.prototype.slice,D=Array.prototype.indexOf,M=Array.prototype.push,A=function(t,n){returnD.call(t,n)},F=function(t,n){return-1<A(t,n)},I=function(t,n){for(vare=0,o=t.length;e<o;e++){if(n(t[e],e))return!0}return!1},R=function(t,n){for(vare=[],o