!function(){"use strict";var l=function(){return(l=Object.assign||function(n){for(var t,e=1,r=arguments.length;e{return!!e(n,t.prototype)||(null==(e=n.constructor)?void 0:e.name)===t.name};var i,n=t=>n=>(n=>{var t=typeof n;return null===n?"null":"object"==t&&Array.isArray(n)?"array":"object"==t&&r(n,String,(n,t)=>t.isPrototypeOf(n))?"string":t})(n)===t;const f=n("string"),o=n("object"),u=n("array"),s=(i="function",n=>typeof n===i),v=Object.keys,h=Object.hasOwnProperty,c="undefined"!=typeof window?window:Function("return this;")(),p=(n,e)=>{n=n.split(".");{var r=n;let t=null!=(n=e)?n:c;for(let n=0;n{e=n,t=t;var e=p(e,t);if(null==e)throw new Error(n+" not available on this browser");return e},y=Object.getPrototypeOf,g=n=>{var t=p("ownerDocument.defaultView",n);return o(n)&&(t=t,d("HTMLElement",t).prototype.isPrototypeOf(n)||/^HTML\w*Element$/.test(y(n).constructor.name))};function m(){var n;return null!=(n=t.tinymce)?n:null}function O(n,t,e){var r=j(n);return r?t(r):e?e(n):void 0}function w(e,r){e.each(function(n,t){return O(t,function(n){return r(n,t,e)})})}function D(n){var o,c;c=function(n){return n.remove()},(o=n).each(function(n,t){for(var e=0,r=L().get();e{let e=!1,r;return(...n)=>(e||(e=!0,r=t.apply(null,n)),r)})(function(n,t){return b(c,r)})),this.each(function(n,r){return O(r,function(n){var t=n.getContent(),e=i(r,t);n.setContent(o?e+t:t+e)},function(n){c.apply($(n),t)})}),this}}function A(c){return function(o){return void 0!==o?(D(this),this.each(function(r,i){O(i,function(n){var t,e=s(o)?o.call(i,r,n.getContent()):o,e=f(e)?e:(g(e)&&_($(e)),t=document.createElement("div"),c.call($(t),e),t.innerHTML);n.setContent(e)},function(n){var t;s(o)?(t=c.call($(i)),t=o.call(i,r,t),c.call($(i),t)):c.call($(n),o)})}),this):1<=this.length?O(this[0],function(n){return n.getContent()},function(n){return c.call($(n))}):void 0}}function E(c){var n,u=this;return this.length?c?(this.css("visibility","hidden"),new Promise(function(o){H(k(c),function(e,n){n&&c.script_loaded&&c.script_loaded(),S||(S=!0,P(a()));function r(){var n=F(e,u);t&&t(n),o(n)}var i=0,t=M(e,c.oninit);u.each(function(n,t){t.id||(t.id=e.DOM.uniqueId()),e.get(t.id)?i++:e.init(l(l({},c),{selector:void 0,target:t,init_instance_callback:function(n){u.css("visibility",""),i++;var t=c.init_instance_callback;"function"==typeof t&&t.call(n,n),i===u.length&&r()}}))}),i===u.length&&r()})})):null!=(n=j(this[0]))?n:void 0:c?Promise.resolve([]):void 0}var C,T=function(){return!!m()},L=function(){var n=m();if(null!=n)return n;throw new Error("Expected global tinymce")},j=function(n){var t=null;return t=n&&n.id&&T()?L().get(n.id):t},G=((n=C=C||{})[n.NOT_LOADING=0]="NOT_LOADING",n[n.LOADING_STARTED=1]="LOADING_STARTED",n[n.LOADING_FINISHED=2]="LOADING_FINISHED",C.NOT_LOADING),x=[],H=function(n,r){var t;T()||G!==C.NOT_LOADING?G===C.LOADING_STARTED?x.push(r):r(L(),!1):(G=C.LOADING_STARTED,(t=document.createElement("script")).type="text/javascript",t.onload=function(n){if(G!==C.LOADING_FINISHED&&"load"===n.type){G=C.LOADING_FINISHED;var t=L();r(t,!0);for(var e=0;e