!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===(l=o.constructor)||void0===l?void0:l.name)===r.name)?"string":t;varn,o,r,l})(t)===e,n=e=>t=>typeoft===e,o=t("string"),r=t("object"),l=t("array"),a=(null,e=>null===e);consts=n("boolean"),i=n("function"),c=(e,t)=>{if(l(e)){for(letn=0,o=e.length;n<o;++n)if(!t(e[n]))return!1;return!0}return!1},u=()=>{},g=(e,t)=>e===t;classm{constructor(e,t){this.tag=e,this.value=t}staticsome(e){returnnewm(!0,e)}staticnone(){returnm.singletonNone}fold(e,t){returnthis.tag?t(this.value):e()}isSome(){returnthis.tag}isNone(){return!this.tag}map(e){returnthis.tag?m.some(e(this.value)):m.none()}bind(e){returnthis.tag?e(this.value):m.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:m.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?m.none():m.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()"}}m.singletonNone=newm(!1);constd=Array.prototype.indexOf,h=Array.prototype.push,p=e=>{constt=[];for(letn=0,o=e.length;n<o;++n){if(!l(e[n]))thrownewError("Arr.flatten item "+n+" was not an array, input: "+e);h.apply(t,e[n])}returnt},f=(e,t)=>{for(letn=0;n<e.length;n++){consto=t(e[n],n);if(o.isSome())returno}returnm.none()},k=(e,t,n=g)=>e.exists((e=>n(e,t))),v=e=>{constt=[],n=e=>{t.push(e)};for(lett=0;t<e.length;t++)e[t].each(n);returnt},y=(e,t)=>e?m.some(t):m.none(),x=e=>t=>t.options.get(e),_=x("link_assume_external_targets"),b=x("link_context_toolbar"),w=x("link_list"),C=x("link_default_target"),O=x("link_default_protocol"),N=x("link_target_list"),A=x("link_rel_list"),T=x("link_class_list"),S=x("link_title"),E=x("allow_unsafe_link_target"),P=x("link_quicklink");varR=tinymce.util.Tools.resolve("tinymce.util.Tools");constL=e=>o(e.value)?e.value:"",M=(e,t)=>{constn=[];returnR.each(e,(e=>{constr=(e=>o(e.text)?e.text:o(e.title)?e.title:"")(e);if(void0!==e.menu){consto=M(e.menu,t);n.push({text:r,items:o})}else{consto=t(e);n.push({text:r,value:o})}})),n},D=(e=L)=>t=>m.from(t).map((t=>M(t,e))),B=e=>D(L)(e),I=D,j=(e,t)=>n=>({name:e,type:"listbox",label:t,items:n}),K=L,U=Object.keys,q=Object.hasOwnProperty,F=(e,t)=>q.call(e,t);varV=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),$=tinymce.util.Tools.resolve("tinymce.util.URI");constz=e=>e&&"a"===e.nodeName.toLowerCase(),G=e=>z(e)&&!!W(e),H=(e,t)=>{if(e.collapsed)return[];{constn=e.cloneContents(),o=newV(n.firstChild,n),r=[];letl=n.firstChild;do{t(l)&&r.push(l)}while(l=o.next());returnr}},J=e=>/^\w+:/i.test(e),W=e=>e.getAttribute("data-mce-href")||e.getAttribute("href"),Q=(e,t)=>{const n=["noopener"],o=e?e.split(/\s+/):[],r=e=>e.filter((e=>-1===R.inArray(n,e))),l=t?(e=>(e=r(e)).length>0?e.concat(n):n)(o):r(o);return l.length>0?(e=>R.trim(e.sort().join(" ")))(l):""},X=(e,t)=>(t=t||e.selection.getNode(),te(t)?e.dom.select("a[href]",t)[0]:e.dom.getParent(t,"a[href]")),Y=(e,t)=>(t?t.innerText||t.textContent:e.getContent({format:"text"})).replace(/\uFEFF/g,""),Z=e=>R.grep(e,G).length>0,ee=e=>{constt=e.schema.getTextInlineElements();return0===H(e.selection.getRng(),(e=>1===e.nodeType&&!z(e)&&!F(t,e.nodeName.toLowerCase()))).length},te=e=>e&&"FIGURE"===e.nodeName&&/\bimage\b/i.test(e.className),ne=(e,t,n)=>{consto=e.selection.getNode(),r=X(e,o),l=((e,t)=>{constn={...t};if(0===A(e).length&&!E(e)){conste=Q(n.rel,"_blank"===n.target);n.rel=e||null}returnm.from(n.target).isNone()&&!1===N(e)&&(n.target=C(e)),n.href=((e,t)=>"http"!==t&&"https"!==t||J(e)?e:t+":