!function(){"use strict";vare=tinymce.util.Tools.resolve("tinymce.PluginManager");constt=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,n=e=>t=>typeoft===e,r=t("string"),o=t("object"),s=t("array"),i=n("boolean"),l=e=>!(e=>null==e)(e),a=n("function"),d=n("number"),c=()=>{},u=(e,t)=>e===t,m=e=>t=>!e(t),p=(!1,()=>false);classg{constructor(e,t){this.tag=e,this.value=t}staticsome(e){returnnewg(!0,e)}staticnone(){returng.singletonNone}fold(e,t){returnthis.tag?t(this.value):e()}isSome(){returnthis.tag}isNone(){return!this.tag}map(e){returnthis.tag?g.some(e(this.value)):g.none()}bind(e){returnthis.tag?e(this.value):g.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:g.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){returnl(e)?g.some(e):g.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()"}}g.singletonNone=newg(!1);consth=Array.prototype.slice,f=Array.prototype.indexOf,y=Array.prototype.push,v=(e,t)=>{returnn=e,r=t,f.call(n,r)>-1;varn,r},C=(e,t)=>{for(letn=0,r=e.length;n<r;n++)if(t(e[n],n))return!0;return!1},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)},N=(e,t)=>{constn=[];for(letr=0,o=e.length;r<o;r++){consto=e[r];t(o,r)&&n.push(o)}returnn},L=(e,t,n)=>(S(e,((e,r)=>{n=t(n,e,r)})),n),O=(e,t,n)=>{for(letr=0,o=e.length;r<o;r++){consto=e[r];if(t(o,r))returng.some(o);if(n(o,r))break}returng.none()},k=(e,t)=>O(e,t,p),T=(e,t)=>(e=>{constt=[];for(letn=0,r=e.length;n<r;++n){if(!s(e[n]))thrownewError("Arr.flatten item "+n+" was not an array, input: "+e);y.apply(t,e[n])}returnt})(b(e,t)),A=e=>{constt=h.call(e,0);returnt.reverse(),t},x=(e,t)=>t>=0&&t<e.length?g.some(e[t]):g.none(),w=e=>x(e,0),D=e=>x(e,e.length-1),E=(e,t)=>{constn=[],r=a(t)?e=>C(n,(n=>t(n,e))):e=>v(n,e);for(lett=0,o=e.length;t<o;t++){consto=e[t];r(o)||n.push(o)}returnn},B=(e,t,n=u)=>e.exists((e=>n(e,t))),I=(e,t,n)=>e.isSome()&&t.isSome()?g.some(n(e.getOrDie(),t.getOrDie())):g.none(),P=e=>{if(null==e)thrownewError("Node cannot be null or undefined");return{dom:e}},M=(e,t)=>{constn=(t||document).createElement(e);returnP(n)},R=P,U=(e,t)=>e.dom===t.dom;"undefined"!=typeofwindow?window:Function("return this;")();const$=e=>e.dom.nodeName.toLowerCase(),_=(1,e=>1===(e=>e.dom.nodeType)(e));constF=e=>t=>_(t)&&$(t)===e,H=e=>g.from(e.dom.parentNode).map(R),V=e=>b(e.dom.childNodes,R),j=(e,t)=>{constn=e.dom.childNodes;returng.from(n[t]).map(R)},K=e=>j(e,0),z=e=>j(e,e.dom.childNodes.length-1),Q=(e,t,n)=>{letr=e.dom;consto=a(n)?n:p;for(;r.parentNode;){r=r.parentNode;conste=R(r);if(t(e))returng.some(e);if(o(e))break}returng.none()},q=(e,t,n)=>((e,t,n,r,o)=>r(n)?g.some(n):a(o)&&o(n)?g.none():t(n,r,o))(0,Q,e,t,n),W=(e,t)=>{H(e).each((n=>{n.dom.insertBefore(t.dom,e.dom)}))},Z=(e,t)=>{e.dom.appendChild(t.dom)},G=(e,t)=>{S(t,(t=>{Z(e,t)}))},J=e=>{e.dom.textContent="",S(V(e),(e=>{X(e)}))},X=e=>{constt=e.dom;null!==t.parentNode&&t.parentNode.removeChild(t)};varY=tinymce.util.Tools.resolve("tinymce.dom.RangeUtils"),ee=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),te=tinymce.util.Tools.resolve("tinymce.util.VK");constne=e=>b(e,R),re=Object.keys,oe=(e,t)=>{constn=re(e);for(letr=0,o=n.length;r<o;r++){consto=n[r];t(e[o],o)}},se=(e,t)=>{constn=e.dom;oe(t,((e,t)=>{((e,t,n)=>{if(!(r(n)||i(n)||d(n)))throwconsole.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e