!function(){"use strict";conste=e=>t=>(e=>{constt=typeofe;returnnull===e?"null":"object"===t&&Array.isArray(e)?"array":"object"===t&&(n=r=e,(o=String).prototype.isPrototypeOf(n)||(null===(s=r.constructor)||void0===s?void0:s.name)===o.name)?"string":t;varn,r,o,s})(t)===e,t=e=>t=>typeoft===e,n=e=>t=>e===t,r=e("string"),o=e("object"),s=e("array"),i=n(null),l=t("boolean"),a=n(void0),c=e=>!(e=>null==e)(e),u=t("function"),d=t("number"),m=()=>{},h=e=>()=>e;functiong(e,...t){return(...n)=>{constr=t.concat(n);returne.apply(null,r)}}constp=h(!1),f=h(!0);classv{constructor(e,t){this.tag=e,this.value=t}staticsome(e){returnnewv(!0,e)}staticnone(){returnv.singletonNone}fold(e,t){returnthis.tag?t(this.value):e()}isSome(){returnthis.tag}isNone(){return!this.tag}map(e){returnthis.tag?v.some(e(this.value)):v.none()}bind(e){returnthis.tag?e(this.value):v.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:v.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){returnc(e)?v.some(e):v.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()"}}v.singletonNone=newv(!1);constw=Array.prototype.push,y=(e,t)=>{constn=e.length,r=newArray(n);for(leto=0;o<n;o++){constn=e[o];r[o]=t(n,o)}returnr},b=(e,t)=>{for(letn=0,r=e.length;n<r;n++)t(e[n],n)},S=(e,t)=>{constn=[];for(letr=0,o=e.length;r<o;r++){consto=e[r];t(o,r)&&n.push(o)}returnn},x=(e,t)=>((e,t,n)=>{for(letr=0,o=e.length;r<o;r++){consto=e[r];if(t(o,r))returnv.some(o);if(n(o,r))break}returnv.none()})(e,t,p),E=Object.keys,F=e=>{lett=e;return{get:()=>t,set:e=>{t=e}}},O="undefined"!=typeofwindow?window:Function("return this;")(),k=(e,t)=>((e,t)=>{letn=null!=t?t:O;for(lett=0;t<e.length&&null!=n;++t)n=n[e[t]];returnn})(e.split("."),t),T=e=>{constt=F(v.none()),n=()=>t.get().each(e);return{clear:()=>{n(),t.set(v.none())},isSet:()=>t.get().isSome(),get:()=>t.get(),set:e=>{n(),t.set(v.some(e))}}},C=()=>T((e=>e.unbind())),A=(e,t,n=0,r)=>{consto=e.indexOf(t,n);return-1!==o&&(!!a(r)||o+t.length<=r)};varR=tinymce.util.Tools.resolve("tinymce.PluginManager");constL=e=>{if(null==e)thrownewError("Node cannot be null or undefined");return{dom:e}},M=L,P=(e,t)=>{constn=e.dom;if(1!==n.nodeType)return!1;{conste=n;if(void0!==e.matches)returne.matches(t);if(void0!==e.msMatchesSelector)returne.msMatchesSelector(t);if(void0!==e.webkitMatchesSelector)returne.webkitMatchesSelector(t);if(void0!==e.mozMatchesSelector)returne.mozMatchesSelector(t);thrownewError("Browser lacks native selectors")}},D=()=>N(0,0),N=(e,t)=>({major:e,minor:t}),H={nu:N,detect:(e,t)=>{constn=String(t).toLowerCase();return0===e.length?D():((e,t)=>{constn=((e,t)=>{for(letn=0;n<e.length;n++){constr=e[n];if(r.test(t))returnr}})(e,t);if(!n)return{major:0,minor:0};constr=e=>Number(t.replace(n,"$"+e));returnN(r(1),r(2))})(e,n)},unknown:D},V=(e,t)=>{constn=String(t).toLowerCase();returnx(e,(e=>e.search(n)))},W=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,q=e=>t=>A(t,e),B=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:e=>A(e,"edge/")&&A(e,"chrome")&&A(e,"safari")&&A(e,"applewebkit")},{name:"Chromium",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,W],search:e=>A(e,"chrome")&&!A(e,"chromeframe")},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:e=>A(e,"msie")||A(e,"trident")},{name:"Opera",versionRegexes:[W,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:q("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:q("firefox")},{name:"Safari",versionRegexes:[W,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:e=>(A(e,"safari")||A(e,"mobile/"))&&A(e,"a