!function(){"use strict";conste=e=>{lett=e;return{get:()=>t,set:e=>{t=e}}};vart=tinymce.util.Tools.resolve("tinymce.PluginManager");constn=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,r=e=>t=>typeoft===e,o=n("string"),s=n("array"),i=(null,e=>null===e);constl=r("boolean"),a=e=>!(e=>null==e)(e),c=r("function"),u=r("number"),d=()=>{},m=e=>()=>e;functionh(e,...t){return(...n)=>{constr=t.concat(n);returne.apply(null,r)}}constg=m(!1),p=m(!0);classf{constructor(e,t){this.tag=e,this.value=t}staticsome(e){returnnewf(!0,e)}staticnone(){returnf.singletonNone}fold(e,t){returnthis.tag?t(this.value):e()}isSome(){returnthis.tag}isNone(){return!this.tag}map(e){returnthis.tag?f.some(e(this.value)):f.none()}bind(e){returnthis.tag?e(this.value):f.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:f.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){returna(e)?f.some(e):f.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()"}}f.singletonNone=newf(!1);constv=t=>{constn=e(f.none()),r=()=>n.get().each(t);return{clear:()=>{r(),n.set(f.none())},isSet:()=>n.get().isSome(),get:()=>n.get(),set:e=>{r(),n.set(f.some(e))}}},w=()=>v((e=>e.unbind())),y=Array.prototype.push,b=(e,t)=>{constn=e.length,r=newArray(n);for(leto=0;o<n;o++){constn=e[o];r[o]=t(n,o)}returnr},S=(e,t)=>{for(letn=0,r=e.length;n<r;n++)t(e[n],n)},x=(e,t)=>{constn=[];for(letr=0,o=e.length;r<o;r++){consto=e[r];t(o,r)&&n.push(o)}returnn},E=(e,t)=>((e,t,n)=>{for(letr=0,o=e.length;r<o;r++){consto=e[r];if(t(o,r))returnf.some(o);if(n(o,r))break}returnf.none()})(e,t,g),F=Object.keys,O=(e,t)=>-1!==e.indexOf(t),T=e=>void0!==e.style&&c(e.style.getPropertyValue),k=e=>{if(null==e)thrownewError("Node cannot be null or undefined");return{dom:e}},C=k;"undefined"!=typeofwindow?window:Function("return this;")();constA=e=>t=>(e=>e.dom.nodeType)(t)===e,R=A(1),L=A(3),M=A(9),N=A(11),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=e=>C(e.dom.ownerDocument),W=e=>b(e.dom.childNodes,C),q=c(Element.prototype.attachShadow)&&c(Node.prototype.getRootNode),H=m(q),I=q?e=>C(e.dom.getRootNode()):e=>M(e)?e:D(e),B=e=>{constt=I(e);returnN(n=t)&&a(n.dom.host)?f.some(t):f.none();varn},V=e=>C(e.dom.host),_=e=>{constt=L(e)?e.dom.parentNode:e.dom;if(null==t||null===t.ownerDocument)return!1;constn=t.ownerDocument;returnB(C(t)).fold((()=>n.body.contains(t)),(r=_,o=V,e=>r(o(e))));varr,o},j=(e,t)=>{constn=e.dom.getAttribute(t);returnnull===n?void0:n},z=(e,t)=>{e.dom.removeAttribute(t)},$=(e,t)=>{constn=e.dom;((e,t)=>{constn=F(e);for(letr=0,o=n.length;r<o;r++){consto=n[r];t(e[o],o)}})(t,((e,t)=>{((e,t,n)=>{if(!o(n))throwconsole.error("Invalid call to CSS.set. Property ",t,":: Value ",n,":: Element ",e),newError("CSS value must be a string: "+n);T(e)&&e.style.setProperty(t,n)})(n,t,e)}))},U=e=>{constt=C((e=>{if(H()&&a(e.target)){constt=C(e.target);if(R(t)&&a(t.dom.shadowRoot)&&e.composed&&e.composedPath){constt=e.composedPath();if(t)return((e,t)=>0<e.length?f.some(e[0]):f.none())(t)}}returnf.from(e.target)})(e).getOr(e.target)),n=()=>e.stopPropagation(),r=()=>e.preventDefault(),o=(s=r,i=n,(...e)=>s(i.apply(null,e)));var