!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"),a=n("function"),l=n("number"),d=()=>{},c=(e,t)=>e===t,u=e=>t=>!e(t),m=(!1,()=>false);classp{constructor(e,t){this.tag=e,this.value=t}staticsome(e){returnnewp(!0,e)}staticnone(){returnp.singletonNone}fold(e,t){returnthis.tag?t(this.value):e()}isSome(){returnthis.tag}isNone(){return!this.tag}map(e){returnthis.tag?p.some(e(this.value)):p.none()}bind(e){returnthis.tag?e(this.value):p.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:p.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){returnnull==e?p.none():p.some(e)}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()"}}p.singletonNone=newp(!1);constg=Array.prototype.slice,h=Array.prototype.indexOf,f=Array.prototype.push,y=(e,t)=>{returnn=e,r=t,h.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},v=(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},N=(e,t,n)=>(b(e,((e,r)=>{n=t(n,e,r)})),n),L=(e,t,n)=>{for(letr=0,o=e.length;r<o;r++){consto=e[r];if(t(o,r))returnp.some(o);if(n(o,r))break}returnp.none()},O=(e,t)=>L(e,t,m),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);f.apply(t,e[n])}returnt})(v(e,t)),k=e=>{constt=g.call(e,0);returnt.reverse(),t},A=(e,t)=>t>=0&&t<e.length?p.some(e[t]):p.none(),w=e=>A(e,0),D=e=>A(e,e.length-1),B=(e,t)=>{constn=[],r=a(t)?e=>C(n,(n=>t(n,e))):e=>y(n,e);for(lett=0,o=e.length;t<o;t++){consto=e[t];r(o)||n.push(o)}returnn},x=(e,t,n=c)=>e.exists((e=>n(e,t))),E=(e,t,n)=>e.isSome()&&t.isSome()?p.some(n(e.getOrDie(),t.getOrDie())):p.none(),I=e=>{if(null==e)thrownewError("Node cannot be null or undefined");return{dom:e}},M=(e,t)=>{constn=(t||document).createElement(e);returnI(n)},P=I,R=(e,t)=>e.dom===t.dom;"undefined"!=typeofwindow?window:Function("return this;")();constU=e=>e.dom.nodeName.toLowerCase(),$=(1,e=>1===(e=>e.dom.nodeType)(e));const_=e=>t=>$(t)&&U(t)===e,H=e=>p.from(e.dom.parentNode).map(P),j=e=>v(e.dom.childNodes,P),F=(e,t)=>{constn=e.dom.childNodes;returnp.from(n[t]).map(P)},K=e=>F(e,0),V=e=>F(e,e.dom.childNodes.length-1),z=(e,t,n)=>{letr=e.dom;consto=a(n)?n:m;for(;r.parentNode;){r=r.parentNode;conste=P(r);if(t(e))returnp.some(e);if(o(e))break}returnp.none()},Q=(e,t,n)=>((e,t,n,r,o)=>r(n)?p.some(n):a(o)&&o(n)?p.none():t(n,r,o))(0,z,e,t,n),q=(e,t)=>{H(e).each((n=>{n.dom.insertBefore(t.dom,e.dom)}))},W=(e,t)=>{e.dom.appendChild(t.dom)},Z=(e,t)=>{b(t,(t=>{W(e,t)}))},G=e=>{e.dom.textContent="",b(j(e),(e=>{J(e)}))},J=e=>{constt=e.dom;null!==t.parentNode&&t.parentNode.removeChild(t)};varX=tinymce.util.Tools.resolve("tinymce.dom.RangeUtils"),Y=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),ee=tinymce.util.Tools.resolve("tinymce.util.VK");constte=Object.keys,ne=(e,t)=>{constn=te(e);for(letr=0,o=n.length;r<o;r++){consto=n[r];t(e[o],o)}},re=(e,t)=>{constn=e.dom;ne(t,((e,t)=>{((e,t,n)=>{if(!(r(n)||i(n)||l(n)))throwconsole.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e),newError("Attributevaluewas