!function(){"use strict";functione(r){returnfunction(e){returnn=typeof(t=e),(null===t?"null":"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)===r;vart,n}}functiont(t){returnfunction(e){returntypeofe===t}}functionu(){}functionS(e){returnfunction(){returne}}functionn(e){returne}functionr(e,t){returne===t}functiony(t){returnfunction(e){return!t(e)}}functiono(){returnp}vari=tinymce.util.Tools.resolve("tinymce.PluginManager"),a=e("string"),O=e("object"),s=e("array"),c=t("boolean"),f=t("function"),d=t("number"),l=S(!1),m=S(!0),p={fold:function(e,t){returne()},isSome:l,isNone:m,getOr:n,getOrThunk:g,getOrDie:function(e){thrownewError(e||"error: getOrDie called on none.")},getOrNull:S(null),getOrUndefined:S(void0),or:n,orThunk:g,map:o,each:u,bind:o,exists:l,forall:m,filter:function(){returnp},toArray:function(){return[]},toString:S("none()")};functiong(e){returne()}functionC(e,t){for(varn=e.length,r=newArray(n),o=0;o<n;o++){vari=e[o];r[o]=t(i,o)}returnr}functionb(e,t){for(varn=0,r=e.length;n<r;n++)t(e[n],n)}functionL(e,t){for(varn=[],r=0,o=e.length;r<o;r++){vari=e[r];t(i,r)&&n.push(i)}returnn}functionv(e,n,r){returnb(e,function(e,t){r=n(r,e,t)}),r}functionh(e,t,n){for(varr=0,o=e.length;r<o;r++){vari=e[r];if(t(i,r))returnE.some(i);if(n(i,r))break}returnE.none()}functionN(e,t){returnh(e,t,l)}functionT(e,t){returnfunction(e){for(vart=[],n=0,r=e.length;n<r;++n){if(!s(e[n]))thrownewError("Arr.flatten item "+n+" was not an array, input: "+e);P.apply(t,e[n])}returnt}(C(e,t))}functionD(e){vart=I.call(e,0);returnt.reverse(),t}functionx(e,t){return0<=t&&t<e.length?E.some(e[t]):E.none()}functionA(e){returnx(e,0)}functionw(e){returnx(e,e.length-1)}vark=function(n){functione(){returno}functiont(e){returne(n)}varr=S(n),o={fold:function(e,t){returnt(n)},isSome:m,isNone:l,getOr:r,getOrThunk:r,getOrDie:r,getOrNull:r,getOrUndefined:r,or:e,orThunk:e,map:function(e){returnk(e(n))},each:function(e){e(n)},bind:t,exists:t,forall:t,filter:function(e){returne(n)?o:p},toArray:function(){return[n]},toString:function(){return"some("+n+")"}};returno},E={some:k,none:o,from:function(e){returnnull==e?p:k(e)}},I=Array.prototype.slice,P=Array.prototype.push,B=function(){return(B=Object.assign||function(e){for(vart,n=1,r=arguments.length;n<r;n++)for(varoint=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);returne}).apply(this,arguments)};functionR(r,e){returnfunction(e){for(vart=0;t<e.length;t++){varn=function(t){varn=t.brand.toLowerCase();returnN(r,function(e){vart;returnn===(null===(t=e.brand)||void0===t?void0:t.toLowerCase())}).map(function(e){return{current:e.name,version:G.nu(parseInt(t.version,10),0)}})}(e[t]);if(n.isSome())returnn}returnE.none()}(e.brands)}functionM(e,t){varn=String(t).toLowerCase();returnN(e,function(e){returne.search(n)})}functionU(e,t){return-1!==e.indexOf(t)}function_(t){returnfunction(e){returnU(e,t)}}function$(e){returnwindow.matchMedia(e).matches}functionF(e,t){returne.dom===t.dom}functionH(e,t){returnle().browser.isIE()?(n=e.dom,r=t.dom,o=Node.DOCUMENT_POSITION_CONTAINED_BY,0!=(n.compareDocumentPosition(r)&o)):(i=e.dom)!==(a=t.dom)&&i.contains(a);varn,r,o,i,a}functionj(e,t){for(varn=ye(e),r=0,o=n.length;r<o;r++){vari=n[r];t(e[i],i)}}functionK(){returnZ(0,0)}functionV(e){functiont(e){returnfunction(){returnn===e}}varn=e.current,r=e.version;return{current:n,version:r,isEdge:t("Edge"),isChrome:t("Chrome"),isIE:t("IE"),isOpera:t("Opera"),isFirefox:t(ne),isSafari:t("Safari")}}functionW(e){functiont(e){returnfunction(){returnn===e}}varn=e.current,r=e.version;return{current:n,version:r,isWindows:t(ie),isiOS:t("iOS"),isAndroid:t(ae),isOSX:t("OSX"),isLinux:t("Linux"),isSolaris:t(se),isFreeBSD:t(ue),isChromeOS:t(ce)}}functionQ(e){if(null==e)thrownewError("Node cannot be null or undefined");return{dom:e}}varX,q,z,Y,Z=function(e,t){return{major:e