!function(){"use strict";vart=tinymce.util.Tools.resolve("tinymce.PluginManager");conste=t=>e=>(t=>{conste=typeoft;returnnull===t?"null":"object"===e&&Array.isArray(t)?"array":"object"===e&&(n=r=t,(o=String).prototype.isPrototypeOf(n)||(null===(s=r.constructor)||void0===s?void0:s.name)===o.name)?"string":e;varn,r,o,s})(e)===t,n=t=>e=>typeofe===t,r=e("string"),o=e("object"),s=e("array"),i=n("boolean"),a=t=>!(t=>null==t)(t),l=n("function"),d=n("number"),c=()=>{},u=(t,e)=>t===e,m=t=>e=>!t(e),p=(!1,()=>false);classg{constructor(t,e){this.tag=t,this.value=e}staticsome(t){returnnewg(!0,t)}staticnone(){returng.singletonNone}fold(t,e){returnthis.tag?e(this.value):t()}isSome(){returnthis.tag}isNone(){return!this.tag}map(t){returnthis.tag?g.some(t(this.value)):g.none()}bind(t){returnthis.tag?t(this.value):g.none()}exists(t){returnthis.tag&&t(this.value)}forall(t){return!this.tag||t(this.value)}filter(t){return!this.tag||t(this.value)?this:g.none()}getOr(t){returnthis.tag?this.value:t}or(t){returnthis.tag?this:t}getOrThunk(t){returnthis.tag?this.value:t()}orThunk(t){returnthis.tag?this:t()}getOrDie(t){if(this.tag)returnthis.value;thrownewError(null!=t?t:"Called getOrDie on None")}staticfrom(t){returna(t)?g.some(t):g.none()}getOrNull(){returnthis.tag?this.value:null}getOrUndefined(){returnthis.value}each(t){this.tag&&t(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=(t,e)=>{returnn=t,r=e,f.call(n,r)>-1;varn,r},C=(t,e)=>{for(letn=0,r=t.length;n<r;n++)if(e(t[n],n))return!0;return!1},b=(t,e)=>{constn=t.length,r=newArray(n);for(leto=0;o<n;o++){constn=t[o];r[o]=e(n,o)}returnr},S=(t,e)=>{for(letn=0,r=t.length;n<r;n++)e(t[n],n)},N=(t,e)=>{constn=[];for(letr=0,o=t.length;r<o;r++){consto=t[r];e(o,r)&&n.push(o)}returnn},L=(t,e,n)=>(S(t,((t,r)=>{n=e(n,t,r)})),n),O=(t,e,n)=>{for(letr=0,o=t.length;r<o;r++){consto=t[r];if(e(o,r))returng.some(o);if(n(o,r))break}returng.none()},k=(t,e)=>O(t,e,p),T=(t,e)=>(t=>{conste=[];for(letn=0,r=t.length;n<r;++n){if(!s(t[n]))thrownewError("Arr.flatten item "+n+" was not an array, input: "+t);y.apply(e,t[n])}returne})(b(t,e)),A=t=>{conste=h.call(t,0);returne.reverse(),e},w=(t,e)=>e>=0&&e<t.length?g.some(t[e]):g.none(),D=t=>w(t,0),E=t=>w(t,t.length-1),B=(t,e)=>{constn=[],r=l(e)?t=>C(n,(n=>e(n,t))):t=>v(n,t);for(lete=0,o=t.length;e<o;e++){consto=t[e];r(o)||n.push(o)}returnn},x=(t,e,n=u)=>t.exists((t=>n(t,e))),I=(t,e,n)=>t.isSome()&&e.isSome()?g.some(n(t.getOrDie(),e.getOrDie())):g.none(),P=t=>{if(null==t)thrownewError("Node cannot be null or undefined");return{dom:t}},M=(t,e)=>{constn=(e||document).createElement(t);returnP(n)},R=P,U=(t,e)=>t.dom===e.dom;"undefined"!=typeofwindow?window:Function("return this;")();const$=t=>t.dom.nodeName.toLowerCase(),_=(1,t=>1===(t=>t.dom.nodeType)(t));constH=t=>e=>_(e)&&$(e)===t,j=t=>g.from(t.dom.parentNode).map(R),F=t=>b(t.dom.childNodes,R),K=(t,e)=>{constn=t.dom.childNodes;returng.from(n[e]).map(R)},V=t=>K(t,0),z=t=>K(t,t.dom.childNodes.length-1),Q=(t,e,n)=>{letr=t.dom;consto=l(n)?n:p;for(;r.parentNode;){r=r.parentNode;constt=R(r);if(e(t))returng.some(t);if(o(t))break}returng.none()},q=(t,e,n)=>((t,e,n,r,o)=>r(n)?g.some(n):l(o)&&o(n)?g.none():e(n,r,o))(0,Q,t,e,n),W=(t,e)=>{j(t).each((n=>{n.dom.insertBefore(e.dom,t.dom)}))},Z=(t,e)=>{t.dom.appendChild(e.dom)},G=(t,e)=>{S(e,(e=>{Z(t,e)}))},J=t=>{t.dom.textContent="",S(F(t),(t=>{X(t)}))},X=t=>{conste=t.dom;null!==e.parentNode&&e.parentNode.removeChild(e)};varY=tinymce.util.Tools.resolve("tinymce.dom.RangeUtils"),tt=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),et=tinymce.util.Tools.resolve("tinymce.util.VK");constnt=t=>b(t,R),rt=Object.keys,ot=(t,e)=>{constn=rt(t);for(letr=0,o=n.length;r<o;r++){consto=n[r];e(t[o],o)}},st=(t,e)=>{constn=t.dom;ot(e,((t,e)=>{((t,e,n)=>{if(!(r(n)||i(n)||d(n)))throwconsole.error("Invalid call to Attribute.set. Key ",e,":: Value ",n,":: Element ",t