!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=o=e,(r=String).prototype.isPrototypeOf(n)||(null===(s=o.constructor)||void0===s?void0:s.name)===r.name)?"string":t;varn,o,r,s})(t)===e,n=e=>t=>typeoft===e,o=t("string"),r=t("object"),s=t("array"),i=n("boolean"),l=e=>!(e=>null==e)(e),a=n("function"),d=n("number"),c=()=>{},m=(e,t)=>e===t,u=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,o=t,f.call(n,o)>-1;varn,o},C=(e,t)=>{for(letn=0,o=e.length;n<o;n++)if(t(e[n],n))return!0;return!1},b=(e,t)=>{constn=e.length,o=newArray(n);for(letr=0;r<n;r++){constn=e[r];o[r]=t(n,r)}returno},S=(e,t)=>{for(letn=0,o=e.length;n<o;n++)t(e[n],n)},N=(e,t)=>{constn=[];for(leto=0,r=e.length;o<r;o++){constr=e[o];t(r,o)&&n.push(r)}returnn},L=(e,t,n)=>(S(e,((e,o)=>{n=t(n,e,o)})),n),O=(e,t,n)=>{for(leto=0,r=e.length;o<r;o++){constr=e[o];if(t(r,o))returng.some(r);if(n(r,o))break}returng.none()},A=(e,t)=>O(e,t,p),x=(e,t)=>(e=>{constt=[];for(letn=0,o=e.length;n<o;++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)),k=e=>{constt=h.call(e,0);returnt.reverse(),t},T=(e,t)=>t>=0&&t<e.length?g.some(e[t]):g.none(),E=e=>T(e,0),w=e=>T(e,e.length-1),D=(e,t)=>{constn=[],o=a(t)?e=>C(n,(n=>t(n,e))):e=>v(n,e);for(lett=0,r=e.length;t<r;t++){constr=e[t];o(r)||n.push(r)}returnn},B=(e,t,n=m)=>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("div");if(n.innerHTML=e,!n.hasChildNodes()||n.childNodes.length>1){constt="HTML does not have a single root node";throwconsole.error(t,e),newError(t)}returnP(n.childNodes[0])},R=(e,t)=>{constn=(t||document).createElement(e);returnP(n)},U=P,$=(e,t)=>e.dom===t.dom;"undefined"!=typeofwindow?window:Function("return this;")();const_=e=>e.dom.nodeName.toLowerCase(),H=e=>e.dom.nodeType,V=(1,e=>1===H(e));constF=e=>t=>V(t)&&_(t)===e,j=e=>g.from(e.dom.parentNode).map(U),K=e=>b(e.dom.childNodes,U),z=(e,t)=>{constn=e.dom.childNodes;returng.from(n[t]).map(U)},Q=e=>z(e,0),W=e=>z(e,e.dom.childNodes.length-1),q=(e,t,n)=>{leto=e.dom;constr=a(n)?n:p;for(;o.parentNode;){o=o.parentNode;conste=U(o);if(t(e))returng.some(e);if(r(e))break}returng.none()},Z=(e,t,n)=>((e,t,n,o,r)=>o(n)?g.some(n):a(r)&&r(n)?g.none():t(n,o,r))(0,q,e,t,n),G=(e,t)=>{j(e).each((n=>{n.dom.insertBefore(t.dom,e.dom)}))},J=(e,t)=>{e.dom.appendChild(t.dom)},X=(e,t)=>{S(t,(t=>{J(e,t)}))},Y=e=>{e.dom.textContent="",S(K(e),(e=>{ee(e)}))},ee=e=>{constt=e.dom;null!==t.parentNode&&t.parentNode.removeChild(t)};varte=tinymce.util.Tools.resolve("tinymce.dom.RangeUtils"),ne=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),oe=tinymce.util.Tools.resolve("tinymce.util.VK");constre=e=>b(e,U),se=Object.keys,ie=(e,t)=>{co