!function(){"use strict";vart=tinymce.util.Tools.resolve("tinymce.PluginManager");conste=t=>e=>typeofe===t,n=t=>"string"===(t=>{conste=typeoft;returnnull===t?"null":"object"===e&&Array.isArray(t)?"array":"object"===e&&(n=o=t,(s=String).prototype.isPrototypeOf(n)||(null===(r=o.constructor)||void0===r?void0:r.name)===s.name)?"string":e;varn,o,s,r})(t),o=(null,t=>null===t);consts=e("boolean"),r=e("number");classa{constructor(t,e){this.tag=t,this.value=e}staticsome(t){returnnewa(!0,t)}staticnone(){returna.singletonNone}fold(t,e){returnthis.tag?e(this.value):t()}isSome(){returnthis.tag}isNone(){return!this.tag}map(t){returnthis.tag?a.some(t(this.value)):a.none()}bind(t){returnthis.tag?t(this.value):a.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:a.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){returnnull==t?a.none():a.some(t)}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()"}}a.singletonNone=newa(!1);consti=(t,e)=>{for(letn=0,o=t.length;n<o;n++)e(t[n],n)},l=Object.keys,u=(t,e)=>{constn=l(t);for(leto=0,s=n.length;o<s;o++){consts=n[o];e(t[s],s)}};"undefined"!=typeofwindow?window:Function("return this;")();constc=t=>t.dom.nodeValue,d=t=>3===(t=>t.dom.nodeType)(t),h=(t,e,o)=>{((t,e,o)=>{if(!(n(o)||s(o)||r(o)))throwconsole.error("Invalid call to Attribute.set. Key ",e,":: Value ",o,":: Element ",t),newError("Attribute value was not simple");t.setAttribute(e,o+"")})(t.dom,e,o)},g=(t,e)=>{t.dom.removeAttribute(e)},m=(t,e)=>{constn=((t,e)=>{constn=t.dom.getAttribute(e);returnnull===n?void0:n})(t,e);returnvoid0===n||""===n?[]:n.split(" ")},v=t=>void0!==t.dom.classList,p=t=>{if(null==t)thrownewError("Node cannot be null or undefined");return{dom:t}},f=p,y={"\xa0":"nbsp","\xad":"shy"},b=(t,e)=>{letn="";returnu(t,((t,e)=>{n+=e})),newRegExp("["+n+"]",e?"g":"")},w=b(y),A=b(y,!0),k=(t=>{lete="";returnu(t,(t=>{e&&(e+=","),e+="span.mce-"+t})),e})(y),N="mce-nbsp",C=t=>'<span data-mce-bogus="1" class="mce-'+y[t]+'">'+t+"</span>",T=t=>{conste=c(t);returnd(t)&&void0!==e&&w.test(e)},O=(t,e)=>{letn=[];consto=((t,e)=>{constn=t.length,o=newArray(n);for(lets=0;s<n;s++){constn=t[s];o[s]=e(n,s)}returno})(t.dom.childNodes,f);returni(o,(t=>{e(t)&&(n=n.concat([t])),n=n.concat(O(t,e))})),n},B=t=>"span"===t.nodeName.toLowerCase()&&t.classList.contains("mce-nbsp-wrap"),S=(t,e)=>{constn=O(f(e),T);i(n,(e=>{constn=e.dom.parentNode;if(B(n))o=f(n),s=N,v(o)?o.dom.classList.add(s):((t,e)=>{((t,e,n)=>{consto=m(t,e).concat([n]);h(t,e,o.join(" "))})(t,"class",e)})(o,s);else{constn=t.dom.encode(c(e)).replace(A,C),o=t.dom.create("div",null,n);lets;for(;s=o.lastChild;)t.dom.insertAfter(s,e.dom);t.dom.remove(e.dom)}varo,s}))},V=(t,e)=>{constn=t.dom.select(k,e);i(n,(e=>{varn,o;B(e)?(n=f(e),o=N,v(n)?n.dom.classList.remove(o):((t,e)=>{((t,e,n)=>{consto=((t,e)=>{consto=[];for(lete=0,s=t.length;e<s;e++){consts=t[e];s!==n&&o.push(s)}returno})(m(t,e));o.length>0?h(t,e,o.join(" ")):g(t,e)})(t,"class",e)})(n,o),(t=>{conste=v(t)?t.dom.classList:(t=>m(t,"class"))(t);0===e.length&&g(t,"class")})(n)):t.dom.remove(e,!0)}))},E=t=>{conste=t.getBody(),n=t.selection.getBookmark();leto=((t,e)=>{for(;t.parentNode;){if(t.parentNode===e)returnt;t=t.parentNode}})(t.selection.getNode(),e);o=void0!==o?o:e,V(t,o),S(t,o),t.selection.moveToBookmark(n)},L=(t,e)=>{((t,e)=>{t.dispatch("VisualChars",{state:e})})(t,e.get());constn=t.getBody();!0===e.get()?S(t,n):V(t,n)},_=("visualchars_default_state",t=>t.options.get("visualchars_default_state"));constj=(t,e)=>{constn=((t,e)=>{letn=null;return{cancel:()=>{o(n)||(clearTimeout(n),n=null)},throttle:(...e)=>{o(n)&&(n=setTi