!function(){"use strict";conste=e=>t=>(e=>{constt=typeofe;returnnull===e?"null":"object"===t&&Array.isArray(e)?"array":"object"===t&&((e,t,n)=>{varr,o;returno=e,!!t.prototype.isPrototypeOf(o)||(null===(r=e.constructor)||void0===r?void0:r.name)===t.name})(e,String)?"string":t})(t)===e,t=e=>t=>typeoft===e,n=e("string"),r=e("object"),o=e("array"),s=t("boolean"),a=(void0,e=>undefined===e);consti=e=>null==e,l=e=>!i(e),c=t("function"),u=t("number"),d=()=>{},h=(e,t)=>(...n)=>e(t.apply(null,n)),m=e=>()=>e,p=e=>e,f=(e,t)=>e===t;functiong(e,...t){return(...n)=>{constr=t.concat(n);returne.apply(null,r)}}constv=e=>()=>{thrownewError(e)},y=e=>e(),b=m(!1),x=m(!0);classk{constructor(e,t){this.tag=e,this.value=t}staticsome(e){returnnewk(!0,e)}staticnone(){returnk.singletonNone}fold(e,t){returnthis.tag?t(this.value):e()}isSome(){returnthis.tag}isNone(){return!this.tag}map(e){returnthis.tag?k.some(e(this.value)):k.none()}bind(e){returnthis.tag?e(this.value):k.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:k.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)?k.some(e):k.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()"}}k.singletonNone=newk(!1);constw=Array.prototype.slice,S=Array.prototype.indexOf,C=Array.prototype.push,T=(e,t)=>((e,t)=>S.call(e,t))(e,t)>-1,I=(e,t)=>{for(letn=0,r=e.length;n<r;n++)if(t(e[n],n))return!0;return!1},A=(e,t)=>{constn=e.length,r=newArray(n);for(leto=0;o<n;o++){constn=e[o];r[o]=t(n,o)}returnr},O=(e,t)=>{for(letn=0,r=e.length;n<r;n++)t(e[n],n)},E=(e,t)=>{constn=[],r=[];for(leto=0,s=e.length;o<s;o++){consts=e[o];(t(s,o)?n:r).push(s)}return{pass:n,fail:r}},L=(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)=>(O(e,((e,r)=>{n=t(n,e,r)})),n),_=(e,t)=>((e,t,n)=>{for(letr=0,o=e.length;r<o;r++){consto=e[r];if(t(o,r))returnk.some(o);if(n(o,r))break}returnk.none()})(e,t,b),D=(e,t)=>{for(letn=0,r=e.length;n<r;n++)if(t(e[n],n))returnk.some(n);returnk.none()},P=e=>{constt=[];for(letn=0,r=e.length;n<r;++n){if(!o(e[n]))thrownewError("Arr.flatten item "+n+" was not an array, input: "+e);C.apply(t,e[n])}returnt},R=(e,t)=>P(A(e,t)),M=(e,t)=>{for(letn=0,r=e.length;n<r;++n)if(!0!==t(e[n],n))return!1;return!0},j=(e,t)=>{constn={};for(letr=0,o=e.length;r<o;r++){consto=e[r];n[String(o)]=t(o,r)}returnn},F=(e,t)=>{constn=w.call(e,0);returnn.sort(t),n},U=e=>((e,t)=>0<e.length?k.some(e[0]):k.none())(e),B=(e,t)=>{for(letn=0;n<e.length;n++){constr=t(e[n],n);if(r.isSome())returnr}returnk.none()},z=(e,t,n)=>""===t||e.length>=t.length&&e.substr(n,n+t.length)===t,H=(e,t)=>$(e,t)?((e,t)=>e.substring(t))(e,t.length):e,W=(e,t,n=0,r)=>{consto=e.indexOf(t,n);return-1!==o&&(!!a(r)||o+t.length<=r)},$=(e,t)=>z(e,t,0),V=(e,t)=>z(e,t,e.length-t.length),G=(q=/^\s+|\s+$/g,e=>e.replace(q,""));varq;constK=e=>parseInt(e,10),J=(e,t)=>{constn=e-t;return0===n?0:n>0?1:-1},Y=(e,t,n)=>({major:e,minor:t,patch:n}),X=e=>{constt=/([0-9]+)\.([0-9]+)\.([0-9]+)(?:(\-.+)?)/.exec(e);returnt?Y(K(t[1]),K(t[2]),K(t[3])):Y(0,0,0)},Z=e=>t=>t.options.get(e),Q=Z("paste_as_text"),ee=Z("paste_merge_formats"),te=Z("paste_tab_spaces"),ne=Z("smart_paste"),re=Z("cache_suffix"),oe=Z("automatic_uploads"),se=Z("indent_use_margin"),ae=Z("powerpaste_block_drop"),ie=Z("powerpaste_keep_unsupported_src"),le=Z("powerpaste_allow_local_images"),ce=Z("powerpaste_word_import"),ue=Z("powerpaste_googledocs_import"),de=Z("powerpaste_html_import"),he=Z("powerpaste_clean_filtered_inline_elements"),me=Z("link_default_protocol"),pe=e=>{vart;returntinymce.explode(null!==(t=e.options.get("images_file_types"))&&void