/*
 froala_editor v4.2.1 (https://www.froala.com/wysiwyg-editor)
 License https://froala.com/wysiwyg-editor/terms/
 Copyright 2014-2024 Froala Labs
 @source http://purl.eligrey.com/github/classList.js/blob/master/classList.js */
'use strict';(function(f,b){"object"===typeof exports&&"undefined"!==typeof module?module.exports=b():"function"===typeof define&&define.amd?define(b):f.FroalaEditor=b()})(this,function(){function f(a){"@babel/helpers - typeof";return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},f(a)}function b(a,b){var c=Array.isArray(a)?a:void 0;if(!c)a:{var e=
null==a?null:"undefined"!=typeof Symbol&&a[Symbol.iterator]||a["@@iterator"];if(null!=e){var l,n,f,S=[],A=!0,la=!1;try{if(n=(e=e.call(a)).next,0===b){if(Object(e)!==e){c=void 0;break a}A=!1}else for(;!(A=(l=n.call(e)).done)&&(S.push(l.value),S.length!==b);A=!0);}catch(ma){la=!0;var R=ma}finally{try{if(!A&&null!=e.return&&(f=e.return(),Object(f)!==f)){c=void 0;break a}}finally{if(la)throw R;}}c=S}else c=void 0}if(!(l=c))a:{if(a){if("string"===typeof a){l=d(a,b);break a}l=Object.prototype.toString.call(a).slice(8,
-1);"Object"===l&&a.constructor&&(l=a.constructor.name);if("Map"===l||"Set"===l){l=Array.from(a);break a}if("Arguments"===l||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)){l=d(a,b);break a}}l=void 0}if(!(a=l))throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");return a}function d(a,b){if(null==b||b>a.length)b=a.length;for(var c=0,d=Array(b);c<b;c++)d[c]=a[c];return d}function c(a,b,d){if("string"===
typeof a){var e=document.querySelectorAll(a);b&&b.iframe_document&&(e=b.iframe_document.querySelectorAll(a));a=[];for(var l=0;l<e.length;l++){var n=e[l]["data-froala.editor"];n?(console.warn("Froala Editor instance already exists."),a.push(n)):a.push(new c.Bootstrap(e[l],b,d))}return 1==a.length?a[0]:a}return new c.Bootstrap(a,b,d)}function m(a){if("false"!==this.$el.attr("contentEditable")||!this.opts.initOnClick){if("touchend"===a.type&&!this.$el.data("touched"))return!0;if(1===a.which||!a.which){this.$el.off("mousedown.init touchstart.init touchmove.init touchend.init dragenter.init focus.init");
this.load(X.MODULES);this.load(X.PLUGINS);var b=a.originalEvent&&a.originalEvent.originalTarget;b&&"IMG"===b.tagName&&C(b).trigger("mousedown");"undefined"===typeof this.ul&&this.destroy();if("touchend"===a.type&&this.image&&a.originalEvent&&a.originalEvent.target&&C(a.originalEvent.target).is("img")){var c=this;setTimeout(function(){c.image.edit(C(a.originalEvent.target))},100)}this.ready=!0;this.events.trigger("initialized")}}}function M(){this.doc=this.$el.get(0).ownerDocument;this.win="defaultView"in
this.doc?this.doc.defaultView:this.doc.parentWindow;this.$doc=C(this.doc);this.$win=C(this.win);this.opts.pluginsEnabled||(this.opts.pluginsEnabled=Object.keys(X.PLUGINS));this.opts.initOnClick?(this.load(X.MODULES),this.$el.on("touchstart.init",function(){C(this).data("touched",!0)}),this.$el.on("touchmove.init",function(){C(this).removeData("touched")}),this.$el.on("mousedown.init touchend.init dragenter.init focus.init",m.bind(this)),this.events.trigger("initializationDelayed")):(this.load(X.MODULES),
this.load(X.PLUGINS),C(this.o_win).scrollTop(this.c_scroll),"undefined"===typeof this.ul&&this.destroy(),this.ready=!0,this.events.trigger("initialized"))}Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);Element.prototype.closest||(Element.prototype.closest=function(a){var b=this;if(!document.documentElement.contains(b))return null;do{if(b.matches(a))return b;b=b.parentElement||b.parentNode}while(null!==b&&1===b.nodeType);
return null});Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(a){a=(this.document||this.ownerDocument).querySelectorAll(a);for(var b=a.length;0<=--b&&a.item(b)!==this;);return-1<b});Array.isArray||(Array.isArray=function(a){return"[object Array]"===Object.prototype.toString.call(a)});"function"!=typeof Object.assign&&
Object.defineProperty(Object,"assign",{value:function(a,b){if(null==a)throw new TypeError("Cannot convert undefined or null to object");for(var c=Object(a),d=1;d<arguments.length;d++){var e=arguments[d];if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(c[n]=e[n])}return c},writable:!0,configurable:!0});(function(){function a(a,e){var n=a[e];a[e]=function(a){var e=!1,A=!1;if(a&&!Array.isArray(a)&&(a.match(b)||a.match(c))){this.parentNode||(d.appendChild(this),A=!0);var l=this.parentNode;
this.id||(this.id="rootedQuerySelector_id_".concat((new Date).getTime()),e=!0);a=n.call(l,a.replace(b,"#".concat(this.id)).replace(c,",#".concat(this.id)));e&&(this.id="");A&&d.removeChild(this);return a}return n.call(this,a)}}var b=/^\s*:scope/gi,c=/,\s*:scope/gi,d=document.createElement("div");try{var l=d.querySelectorAll(":scope *");if(!l||Array.isArray(l))throw"error";}catch(n){a(Element.prototype,"querySelector"),a(Element.prototype,"querySelectorAll"),a(HTMLElement.prototype,"querySelector"),
a(HTMLElement.prototype,"querySelectorAll")}})();"document"in self&&("classList"in document.createElement("_")&&(!document.createElementNS||"classList"in document.createElementNS("http://www.w3.org/2000/svg","g"))||!function(a){if("Element"in a){a=a.Element.prototype;var b=Object,c=String.prototype.trim||function(){return this.replace(/^\s+|\s+$/g,"")},d=Array.prototype.indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(b in this&&this[b]===a)return b;return-1},l=function(a,b){this.name=a;
this.code=DOMException[a];this.message=b},n=function(a,b){if(""===b)throw new l("SYNTAX_ERR","The token must not be empty.");if(/\s/.test(b))throw new l("INVALID_CHARACTER_ERR","The token must not contain space characters.");return d.call(a,b)},f=function(a){var b=c.call(a.getAttribute("class")||"");b=b?b.split(/\s+/):[];for(var d=0,e=b.length;e>d;d++)this.push(b[d]);this._updateClassName=function(){a.setAttribute("class",this.toString())}},S=f.prototype=[],A=function(){return new f(this)};if(l.prototype=
Error.prototype,S.item=function(a){return this[a]||null},S.contains=function(a){return~n(this,a+"")},S.add=function(){var a=arguments,b=0,c=a.length,d=!1;do{var e=a[b]+"";~n(this,e)||(this.push(e),d=!0)}while(++b<c);d&&this._updateClassName()},S.remove=function(){var a,b=arguments,c=0,d=b.length,e=!1;do{var A=b[c]+"";for(a=n(this,A);~a;)this.splice(a,1),e=!0,a=n(this,A)}while(++c<d);e&&this._updateClassName()},S.toggle=function(a,b){var c=this.contains(a),d=c?!0!==b&&"remove":!1!==b&&"add";return d&&
this[d](a),!0===b||!1===b?b:!c},S.replace=function(a,b){a=n(a+"");~a&&(this.splice(a,1,b),this._updateClassName())},S.toString=function(){return this.join(" ")},b.defineProperty){S={get:A,enumerable:!0,configurable:!0};try{b.defineProperty(a,"classList",S)}catch(la){void 0!==la.number&&-2146823252!==la.number||(S.enumerable=!1,b.defineProperty(a,"classList",S))}}else b.prototype.__defineGetter__&&a.__defineGetter__("classList",A)}}(self),function(){var a=document.createElement("_");if(a.classList.add("c1",
"c2"),!a.classList.contains("c2")){var b=function(a){var b=DOMTokenList.prototype[a];DOMTokenList.prototype[a]=function(a){var c,d=arguments.length;for(c=0;d>c;c++)a=arguments[c],b.call(this,a)}};b("add");b("remove")}if(a.classList.toggle("c3",!1),a.classList.contains("c3")){var c=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(a,b){return 1 in arguments&&!this.contains(a)==!b?b:c.call(this,a)}}"replace"in document.createElement("_").classList||(DOMTokenList.prototype.replace=
function(a,b){var c=this.toString().split(" ");a=c.indexOf(a+"");~a&&(c=c.slice(a),this.remove.apply(this,c),this.add(b),this.add.apply(this,c.slice(1)))});a=null}());(function(){var a=-1;if("Microsoft Internet Explorer"===navigator.appName){var b=navigator.userAgent;var c=/MSIE ([0-9]{1,}[\.0-9]{0,})/;null!==c.exec(b)&&(a=parseFloat(RegExp.$1))}else"Netscape"===navigator.appName&&(b=navigator.userAgent,c=/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/,null!==c.exec(b)&&(a=parseFloat(RegExp.$1)));if(!("undefined"===
typeof window||"undefined"===typeof document||"undefined"===typeof HTMLElement||0>a)){var d=!1;try{var l=document.createElement("div");l.addEventListener("focus",function(a){a.preventDefault();a.stopPropagation()},!0);l.focus(Object.defineProperty({},"preventScroll",{get:function(){if(navigator&&"undefined"!==typeof navigator.userAgent&&navigator.userAgent&&navigator.userAgent.match(/Edge\/1[7-8]/))return d=!1;d=!0}}))}catch(S){}if(void 0===HTMLElement.prototype.nativeFocus&&!d){HTMLElement.prototype.nativeFocus=
HTMLElement.prototype.focus;var n=function(a){a=a.parentNode;for(var b=[],c=document.scrollingElement||document.documentElement;a&&a!==c;)(a.offsetHeight<a.scrollHeight||a.offsetWidth<a.scrollWidth)&&b.push([a,a.scrollTop,a.scrollLeft]),a=a.parentNode;a=c;b.push([a,a.scrollTop,a.scrollLeft]);return b},f=function(a){for(var b=0;b<a.length;b++)a[b][0].scrollTop=a[b][1],a[b][0].scrollLeft=a[b][2]};HTMLElement.prototype.focus=function(a){if(a&&a.preventScroll){var b=n(this);if("function"===typeof setTimeout){var c=
this;setTimeout(function(){c.nativeFocus();f(b)},0)}else this.nativeFocus(),f(b)}else this.nativeFocus()}}}})();c.RegisterPlugins=function(a){for(var b=0;b<a.length;b++)a[b].call(c)};Object.assign(c,{DEFAULTS:{initOnClick:!1,pluginsEnabled:null},MODULES:{},PLUGINS:{},VERSION:"4.2.1",INSTANCES:[],OPTS_MAPPING:{},SHARED:{},ID:0});c.MODULES.node=function(a){function b(a){return a&&"IFRAME"!==a.tagName?Array.prototype.slice.call(a.childNodes||[]):[]}function d(a){return a&&a.nodeType===Node.ELEMENT_NODE?
0<=c.BLOCK_TAGS.indexOf(a.tagName.toLowerCase()):!1}function f(a){var b={};if(a=a.attributes)for(var c=0;c<a.length;c++){var d=a[c];b[d.nodeName]=d.value}return b}function l(a){var b="";a=f(a);for(var c=Object.keys(a),d=0;d<c.length;d++){var e=c[d],A=a[e];0>A.indexOf("'")&&0<=A.indexOf('"')?b+=" ".concat(e,"='").concat(A,"'"):(0<=A.indexOf('"')&&0<=A.indexOf("'")&&(A=A.replace(/"/g,"&quot;")),b+=" ".concat(e,'="').concat(A,'"'))}return b}function n(b,c){"undefined"===typeof c&&(c=!0);for(b=b.previousSibling;b&&
c&&a.node.hasClass(b,"fr-marker");)b=b.previousSibling;return b?b.nodeType===Node.TEXT_NODE&&""===b.textContent?n(b):!1:!0}function L(b,c){"undefined"===typeof c&&(c=!0);for(b=b.nextSibling;b&&c&&a.node.hasClass(b,"fr-marker");)b=b.nextSibling;return b?b.nodeType===Node.TEXT_NODE&&""===b.textContent?L(b):!1:!0}function S(b){return b===a.el}var A=a.$;return{isBlock:d,isEmpty:function(e,A){if(!e)return!0;if(e.querySelector("table"))return!1;var n=b(e);1===n.length&&d(n[0])&&(n=b(n[0]));for(var l=!1,
f=0;f<n.length;f++){var g=n[f];if(!A||!a.node.hasClass(g,"fr-marker"))if(g.nodeType!==Node.TEXT_NODE||0!==g.textContent.length){if("BR"!==g.tagName&&0<(g.textContent||"").replace(/\u200B/gi,"").replace(/\n/g,"").length||l)return!1;"BR"===g.tagName&&(l=!0)}}return e.querySelectorAll(c.VOID_ELEMENTS.join(",")).length-e.querySelectorAll("br").length||e.querySelector("".concat(a.opts.htmlAllowedEmptyTags.join(":not(.fr-marker),"),":not(.fr-marker)"))||1<e.querySelectorAll(c.BLOCK_TAGS.join(",")).length||
e.querySelector("".concat(a.opts.htmlDoNotWrapTags.join(":not(.fr-marker),"),":not(.fr-marker)"))?!1:!0},blockParent:function(b){for(;b&&b.parentNode!==a.el&&(!b.parentNode||!a.node.hasClass(b.parentNode,"fr-inner"));)if(b=b.parentNode,d(b))return b;return null},deepestParent:function(b,e,A){"undefined"===typeof e&&(e=[]);"undefined"===typeof A&&(A=!0);e.push(a.el);if(0<=e.indexOf(b.parentNode)||b.parentNode&&a.node.hasClass(b.parentNode,"fr-inner")||b.parentNode&&0<=c.SIMPLE_ENTER_TAGS.indexOf(b.parentNode.tagName)&&
A)return null;for(;!(!(0>e.indexOf(b.parentNode)&&b.parentNode)||a.node.hasClass(b.parentNode,"fr-inner")||!(0>c.SIMPLE_ENTER_TAGS.indexOf(b.parentNode.tagName))&&A||d(b)&&!d(b.parentNode)||d(b)&&d(b.parentNode)&&A);)b=b.parentNode;return b},rawAttributes:f,attributes:l,clearAttributes:function(a){for(var b=a.attributes,c=b.length-1;0<=c;c--)a.removeAttribute(b[c].nodeName)},openTagString:function(a){return"<".concat(a.tagName.toLowerCase()).concat(l(a),">")},closeTagString:function(a){return"</".concat(a.tagName.toLowerCase(),
">")},isFirstSibling:n,isLastSibling:L,isList:function(a){return a?0<=["UL","OL"].indexOf(a.tagName):!1},isLink:function(a){return a&&a.nodeType===Node.ELEMENT_NODE?"a"===a.tagName.toLowerCase():!1},isElement:S,contents:b,isVoid:function(a){return a&&a.nodeType===Node.ELEMENT_NODE&&0<=c.VOID_ELEMENTS.indexOf((a.tagName||"").toLowerCase())},hasFocus:function(b){return b===a.doc.activeElement&&(!a.doc.hasFocus||a.doc.hasFocus())&&!!(S(b)||b.type||b.href||~b.tabIndex)},isEditable:function(a){return(!a.getAttribute||
"false"!==a.getAttribute("contenteditable"))&&0>["STYLE","SCRIPT"].indexOf(a.tagName)},isDeletable:function(a){return a&&a.nodeType===Node.ELEMENT_NODE&&a.getAttribute("class")&&0<=(a.getAttribute("class")||"").indexOf("fr-deletable")},hasClass:function(a,b){a instanceof A&&(a=a.get(0));return a&&a.classList&&a.classList.contains(b)},filter:function(b){return a.browser.msie?b:{acceptNode:b}}}};Object.assign(c.DEFAULTS,{DOMPurify:window.DOMPurify,htmlAllowedTags:"a abbr address area article aside audio b base bdi bdo blockquote br button canvas caption cite code col colgroup datalist dd del details dfn dialog div dl dt em embed fieldset figcaption figure footer form h1 h2 h3 h4 h5 h6 header hgroup hr i iframe img input ins kbd keygen label legend li link main map mark menu menuitem meter nav noscript object ol optgroup option output p param pre progress queue rp rt ruby s samp script style section select small source span strike strong sub summary sup table tbody td textarea tfoot th thead time tr track u ul var video wbr".split(" "),
htmlRemoveTags:["script","style"],htmlAllowedAttrs:"accept accept-charset accesskey action align allowfullscreen allowtransparency alt async autocomplete autofocus autoplay autosave background bgcolor border charset cellpadding cellspacing checked cite class color cols colspan content contenteditable contextmenu controls coords data data-.* datetime default defer dir dirname disabled download draggable dropzone enctype for form formaction frameborder headers height hidden high href hreflang http-equiv icon id ismap itemprop keytype kind label lang language list loop low max maxlength media method min mozallowfullscreen multiple muted name novalidate open optimum pattern ping placeholder playsinline poster preload pubdate radiogroup readonly rel required reversed rows rowspan sandbox scope scoped scrolling seamless selected shape size sizes span src srcdoc srclang srcset start step summary spellcheck style tabindex target title type translate usemap value valign webkitallowfullscreen width wrap".split(" "),
htmlAllowedStyleProps:[".*"],htmlAllowComments:!0,htmlUntouched:!1,preserveTabSpaces:!1,fullPage:!1});c.HTML5Map={B:"STRONG",I:"EM",STRIKE:"S"};c.MODULES.clean=function(a){function b(c){if(c.nodeType===Node.ELEMENT_NODE&&c.getAttribute("class")&&0<=c.getAttribute("class").indexOf("fr-marker"))return!1;var k=a.node.contents(c),u;for(u=0;u<k.length;u++)k[u].nodeType!==Node.ELEMENT_NODE||a.node.isVoid(k[u])?k[u].nodeType===Node.TEXT_NODE&&(k[u].textContent=k[u].textContent.replace(/\u200b/g,"")):k[u].textContent.replace(/\u200b/g,
"").length!==k[u].textContent.length&&b(k[u]);if(c.nodeType===Node.ELEMENT_NODE&&!a.node.isVoid(c)){c.normalize();k=a.node.contents(c);var h=c.querySelectorAll(".fr-marker");if(0===k.length-h.length){for(u=0;u<k.length;u++)if(k[u].nodeType===Node.ELEMENT_NODE&&0>(k[u].getAttribute("class")||"").indexOf("fr-marker"))return!1;for(u=0;u<h.length;u++)c.parentNode.insertBefore(h[u].cloneNode(!0),c);c.parentNode.removeChild(c);return!1}}}function d(b,c){if(b.nodeType===Node.COMMENT_NODE)return"\x3c!--".concat(b.nodeValue,
"--\x3e");if(b.nodeType===Node.TEXT_NODE)return c?b.textContent.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"):a.opts.preserveTabSpaces?b.textContent.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\u00A0/g,"&nbsp;").replace(/\t/g," ".repeat(a.opts.tabSpaces)||" ".repeat(4)):b.textContent.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\u00A0/g,"&nbsp;").replace(/\t/g,"");if(b.nodeType!==Node.ELEMENT_NODE||b.nodeType===Node.ELEMENT_NODE&&
0<=["STYLE","SCRIPT","NOSCRIPT"].indexOf(b.tagName))return b.outerHTML;if(b.nodeType===Node.ELEMENT_NODE&&"svg"===b.tagName)return c=document.createElement("div"),b=b.cloneNode(!0),c.appendChild(b),c.innerHTML;if("IFRAME"===b.tagName)return b.outerHTML.replace(/&lt;/g,"<").replace(/&gt;/g,">");var u=b.childNodes;if(0===u.length)return b.outerHTML;for(var h="",k=0;k<u.length;k++)"PRE"===b.tagName&&(c=!0),h+=d(u[k],c);return a.node.openTagString(b)+h+a.node.closeTagString(b)}function f(a){V=[];a=a.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,
function(a){V.push(a);return"[FROALA.EDITOR.SCRIPT ".concat(V.length-1,"]")});a=a.replace(/<noscript\b[^<]*(?:(?!<\/noscript>)<[^<]*)*<\/noscript>/gi,function(a){V.push(a);return"[FROALA.EDITOR.NOSCRIPT ".concat(V.length-1,"]")});a=a.replace(/<meta((?:[\w\W]*?)) http-equiv="/g,'<meta$1 data-fr-http-equiv="');return a=a.replace(/<img((?:[\w\W]*?)) src="/g,'<img$1 data-fr-src="')}function l(b){b=b.replace(/\[FROALA\.EDITOR\.SCRIPT ([\d]*)\]/gi,function(b,c){return 0<=a.opts.htmlRemoveTags.indexOf("script")?
"":V[parseInt(c,10)]});b=b.replace(/\[FROALA\.EDITOR\.NOSCRIPT ([\d]*)\]/gi,function(b,c){if(0<=a.opts.htmlRemoveTags.indexOf("noscript"))return"";c=V[parseInt(c,10)].replace(/&lt;/g,"<").replace(/&gt;/g,">");(b=m(c))&&b.length&&(c=S(b.html(),p),b.html(c),c=b.get(0).outerHTML);return c});return b=b.replace(/<img((?:[\w\W]*?)) data-fr-src="/g,'<img$1 src="')}function n(a){a=a.replace(/;;/gi,";");a=a.replace(/^;/gi,"");";"!==a.charAt(a.length)&&(a+=";");return a}function L(b){for(var c in b)if(Object.prototype.hasOwnProperty.call(b,
c)){var d=c.match(q),h=null;"style"===c&&a.opts.htmlAllowedStyleProps.length&&(h=b[c].match(ha));d&&h?b[c]=n(h.join(";")):(!d||"style"===c&&!h)&&delete b[c]}d="";h=Object.keys(b).sort();for(var k=0;k<h.length;k++)c=h[k],d=0>b[c].indexOf('"')?d+" ".concat(c,'="').concat(b[c],'"'):d+" ".concat(c,"='").concat(b[c],"'");return d}function S(b,c){var u=document.implementation.createHTMLDocument("Froala DOC").createElement("DIV");m(u).append(b);var h="";if(u){var k=a.node.contents(u);for(b=0;b<k.length;b++)c(k[b]);
k=a.node.contents(u);for(b=0;b<k.length;b++)h+=d(k[b])}return h}function A(b,c,d){var h=b=f(b),u=null;a.opts.fullPage&&(h=a.html.extractNode(b,"body")||(0<=b.indexOf("<body")?"":b),d&&(u=a.html.extractNode(b,"head")||""));h=S(h,c);u&&(u=S(u,c));c=h;var k=b;a.opts.fullPage&&(b=a.html.extractDoctype(k),d=L(a.html.extractNodeAttrs(k,"html")),u=null===u?a.html.extractNode(k,"head")||"<title></title>":u,h=L(a.html.extractNodeAttrs(k,"head")),k=L(a.html.extractNodeAttrs(k,"body")),c="".concat(b,"<html").concat(d,
"><head").concat(h,">").concat(u,"</head><body").concat(k,">").concat(c,"</body></html>"));return l(c)}function la(b){var c=a.doc.createElement("DIV");c.innerText=b;return c.textContent}function R(b){if("SPAN"===b.tagName&&0<=(b.getAttribute("class")||"").indexOf("fr-marker"))return!1;"PRE"===b.tagName&&t(b);b.nodeType===Node.ELEMENT_NODE&&(b.getAttribute("data-fr-src")&&0!==b.getAttribute("data-fr-src").indexOf("blob:")&&b.setAttribute("data-fr-src",a.helpers.sanitizeURL(la(b.getAttribute("data-fr-src")))),
b.getAttribute("href")&&b.setAttribute("href",a.helpers.sanitizeURL(la(b.getAttribute("href")))),b.getAttribute("src")&&b.setAttribute("src",a.helpers.sanitizeURL(la(b.getAttribute("src")))),b.getAttribute("srcdoc")&&b.setAttribute("srcdoc",a.clean.html(b.getAttribute("srcdoc"))),0<=["TABLE","TBODY","TFOOT","TR"].indexOf(b.tagName)&&(b.innerHTML=b.innerHTML.trim()));if(!a.opts.pasteAllowLocalImages&&b.nodeType===Node.ELEMENT_NODE&&"IMG"===b.tagName&&b.getAttribute("data-fr-src")&&0===b.getAttribute("data-fr-src").indexOf("file://"))return b.parentNode.removeChild(b),
!1;if(b.nodeType===Node.ELEMENT_NODE&&c.HTML5Map[b.tagName]&&""===a.node.attributes(b)){var d=c.HTML5Map[b.tagName];d="<".concat(d,">").concat(b.innerHTML,"</").concat(d,">");b.insertAdjacentHTML("beforebegin",d);b=b.previousSibling;b.parentNode.removeChild(b.nextSibling)}if(a.opts.htmlAllowComments||b.nodeType!==Node.COMMENT_NODE)if(b.tagName&&b.tagName.match(v)){if("STYLE"==b.tagName&&a.helpers.isMac()){var u=b.innerHTML.trim(),h=[];d=/{([^}]+)}/g;var r;for(u=u.replace(/\/\*[\s\S]*?\*\/|([^\\:]|^)\/\/.*|\x3c!--[\s\S]*?--\x3e$/,
"");r=d.exec(u);)h.push(r[1]);d=function(a){var c=u.substring(0,u.indexOf("{")).trim();0==!/^[a-z_-][a-z\d_-]*$/i.test(c)&&b.parentNode.querySelectorAll(c).forEach(function(b){b.removeAttribute("class");b.setAttribute("style",h[a])});u=u.substring(u.indexOf("}")+1)};for(r=0;-1!=u.indexOf("{");r++)d(r)}b.parentNode.removeChild(b)}else if(b.tagName&&!b.tagName.match(C))"svg"===b.tagName?b.parentNode.removeChild(b):a.browser.safari&&"path"===b.tagName&&b.parentNode&&"svg"===b.parentNode.tagName||(b.outerHTML=
b.innerHTML);else{if(d=b.attributes)for(r=d.length-1;0<=r;r--){var k=d[r],e=k.nodeName.match(q),V=null;"style"===k.nodeName&&a.opts.htmlAllowedStyleProps.length&&(V=k.value.match(ha));e&&V?k.value=n(V.join(";")):(!e||"style"===k.nodeName&&!V)&&b.removeAttribute(k.nodeName)}}else 0!==b.data.indexOf("[FROALA.EDITOR")&&b.parentNode.removeChild(b)}function p(b){for(var c=a.node.contents(b),d=0;d<c.length;d++)c[d].nodeType!==Node.TEXT_NODE&&p(c[d]);R(b)}function t(a){var b=a.innerHTML;0<=b.indexOf("\n")&&
(a.innerHTML=b.replace(/\n/g,"<br>"))}var m=a.$,C,v,q,ha,V=[];return{_init:function(){a.opts.fullPage&&m.merge(a.opts.htmlAllowedTags,"head title style link base body html meta".split(" "))},html:function(b,c,d,h){"undefined"===typeof c&&(c=[]);"undefined"===typeof d&&(d=[]);h=m.merge([],a.opts.htmlAllowedTags);var u;for(u=0;u<c.length;u++)0<=h.indexOf(c[u])&&h.splice(h.indexOf(c[u]),1);c=m.merge([],a.opts.htmlAllowedAttrs);for(u=0;u<d.length;u++)0<=c.indexOf(d[u])&&c.splice(c.indexOf(d[u]),1);c.push("data-fr-.*");
c.push("fr-.*");C=new RegExp("^".concat(h.join("$|^"),"$"),"gi");q=new RegExp("^".concat(c.join("$|^"),"$"),"gi");v=new RegExp("^".concat(a.opts.htmlRemoveTags.join("$|^"),"$"),"gi");ha=a.opts.htmlAllowedStyleProps.length?new RegExp("((^|;|\\s)".concat(a.opts.htmlAllowedStyleProps.join(":.+?(?=;|$))|((^|;|\\s)"),":.+?(?=(;)|$))"),"gi"):null;b=A(b,p,!0);"undefined"!==typeof a.opts.DOMPurify&&(b=a.opts.DOMPurify.sanitize(b,{ADD_TAGS:a.opts.htmlAllowedTags,ALLOW_UNKNOWN_PROTOCOLS:!0}));return b},toHTML5:function(){var b=
a.el.querySelectorAll(Object.keys(c.HTML5Map).join(","));if(b.length){var d=!1;a.el.querySelector(".fr-marker")||(a.selection.save(),d=!0);for(var u=0;u<b.length;u++)""===a.node.attributes(b[u])&&m(b[u]).replaceWith("<".concat(c.HTML5Map[b[u].tagName],">").concat(b[u].innerHTML,"</").concat(c.HTML5Map[b[u].tagName],">"));d&&a.selection.restore()}},tables:function(){for(var b=a.el.querySelectorAll("tr"),c=0,d=0;d<b.length;d++){var h=b[d].outerHTML.match(/rowspan="([0-9]+)"/);h&&(c+=Number(h[1])-1);
h=b[d].children;for(var r=!0,e=0;e<h.length;e++)if("TH"!==h[e].tagName){r=!1;break}if(!1!==r&&0!==h.length)if(r=b[d],1===h.length&&"TH"===h[0].tagName&&c)c--;else{for(;r&&"TABLE"!==r.tagName&&"THEAD"!==r.tagName;)r=r.parentNode;h=r;h.firstChild.nodeType===Node.ELEMENT_NODE&&"THEAD"===h.firstChild.tagName?h=h.firstChild:"THEAD"!==h.tagName&&(h=a.doc.createElement("THEAD"),r.insertBefore(h,r.firstChild));h.appendChild(b[d])}}b=a.$el.find("table[style]");for(c=0;c<b.length;c++)d=m(b[c]),0>d.attr("style").indexOf("width")&&
d.css("width","100%");b=a.$el.find("td[width]");for(c=0;c<b.length;c++)if(d=m(b[c]),h=d.attr("width"))d.css("width",h),d.removeAttr("width")},lists:function(){var b=[];do{if(b.length){b=b[0];var c=a.doc.createElement("ul");b.parentNode.insertBefore(c,b);do{var d=b;b=b.nextSibling;c.appendChild(d)}while(b&&"LI"===b.tagName)}b=[];c=a.el.querySelectorAll("li");for(d=0;d<c.length;d++)a.node.isList(c[d].parentNode)||b.push(c[d])}while(0<b.length);b=a.el.querySelectorAll("ol + ol, ul + ul");for(c=0;c<b.length;c++)if(d=
b[c],a.node.isList(d.previousSibling)&&a.node.openTagString(d)===a.node.openTagString(d.previousSibling)){for(var h=a.node.contents(d),r=0;r<h.length;r++)d.previousSibling.appendChild(h[r]);d.parentNode.removeChild(d)}b=a.el.querySelectorAll("ul, ol");for(c=0;c<b.length;c++)for(d=a.node.contents(b[c]),h=null,r=d.length-1;0<=r;r--)!d[r].tagName&&a.opts.htmlUntouched?h=null:"LI"!==d[r].tagName&&"UL"!=d[r].tagName&&"OL"!=d[r].tagName?"BR"==d[r].tagName?m(d[r]).remove():(h||(h=m(a.doc.createElement("LI")),
h.insertBefore(d[r])),h.prepend(d[r])):h=null;do{c=!1;d=a.el.querySelectorAll("li:empty");for(b=0;b<d.length;b++)d[b].parentNode.removeChild(d[b]);d=a.el.querySelectorAll("ul, ol");for(b=0;b<d.length;b++)h=d[b],h.querySelector("LI")||(c=!0,h.parentNode.removeChild(h))}while(!0===c);b=a.el.querySelectorAll("ul > ul, ol > ol, ul > ol, ol > ul");for(c=0;c<b.length;c++)d=b[c],(h=d.previousSibling)&&("LI"===h.tagName?h.appendChild(d):m(d).wrap("<li></li>"));b=a.el.querySelectorAll("li > ul, li > ol");
for(c=0;c<b.length;c++)if(d=b[c],d.nextSibling)for(h=d.nextSibling;0<h.childNodes.length;)d.append(h.childNodes[0]);b=a.el.querySelectorAll("li > ul, li > ol");for(c=0;c<b.length;c++)if(d=b[c],a.node.isFirstSibling(d)&&"none"!=d.parentNode.style.listStyleType)m(d).before("<br/>");else if(d.previousSibling&&"BR"===d.previousSibling.tagName){for(h=d.previousSibling.previousSibling;h&&a.node.hasClass(h,"fr-marker");)h=h.previousSibling;h&&"BR"!==h.tagName&&m(d.previousSibling).remove()}b=a.el.querySelectorAll("li:empty");
for(c=0;c<b.length;c++)m(b[c]).remove();b=a.el.querySelectorAll("ul, ol");for(c=0;c<b.length;c++)for(d=a.node.contents(b[c]),h=1;h<d.length;h++){r=d[h];var e=a.node.contents(r),V=r.querySelectorAll("ul, ol");0<V.length&&1==e.length&&e[0].nodeType===Node.ELEMENT_NODE&&(d[h-1].append(V[0]),r.remove())}},invisibleSpaces:function(c){return c.replace(/\u200b/g,"").length===c.length?c:a.clean.exec(c,b)},exec:A}};c.XS=0;c.SM=1;c.MD=2;c.LG=3;c.LinkRegExCommon="[".concat("a-z\\u0080-\\u009f\\u00a1-\\uffff0-9-_\\.",
"]{1,}");c.LinkRegExEnd="((:[0-9]{1,5})|)(((\\/|\\?|#)[a-z\\u00a1-\\uffff0-9@?\\|!^=%&amp;\\/~+#-\\'*-_{}]*)|())";c.LinkRegExTLD="((".concat(c.LinkRegExCommon,")(\\.(com|net|org|edu|mil|gov|co|biz|info|me|dev)))");c.LinkRegExHTTP="((ftp|http|https):\\/\\/".concat(c.LinkRegExCommon,")");c.LinkRegExAuth="((ftp|http|https):\\/\\/[\\u0021-\\uffff]{1,}@".concat(c.LinkRegExCommon,")");c.LinkRegExWWW="(www\\.".concat(c.LinkRegExCommon,"\\.[a-z0-9-]{2,24})");c.LinkRegEx="(".concat(c.LinkRegExTLD,"|").concat(c.LinkRegExHTTP,
"|").concat(c.LinkRegExWWW,"|").concat(c.LinkRegExAuth,")").concat(c.LinkRegExEnd);c.LinkProtocols=["mailto","tel","sms","notes","data"];c.MAIL_REGEX=/.+@.+\..+/i;c.MODULES.helpers=function(a){function b(){return(/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||navigator.maxTouchPoints&&2<navigator.maxTouchPoints&&/Macintosh/.test(navigator.userAgent))&&!l()}function d(){return/(Android)/g.test(navigator.userAgent)&&!l()}function B(){return/(Blackberry)/g.test(navigator.userAgent)}function l(){return/(Windows Phone)/gi.test(navigator.userAgent)}
var n=a.$,L,S=null;return{_init:function(){var b={};var c=-1;if("Microsoft Internet Explorer"===navigator.appName){var d=navigator.userAgent;var e=/MSIE ([0-9]{1,}[\.0-9]{0,})/;null!==e.exec(d)&&(c=parseFloat(RegExp.$1))}else"Netscape"===navigator.appName&&(d=navigator.userAgent,e=/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/,null!==e.exec(d)&&(c=parseFloat(RegExp.$1)));0<c?b.msie=!0:(d=navigator.userAgent.toLowerCase(),d=/(edge)[ /]([\w.]+)/.exec(d)||/(chrome)[ /]([\w.]+)/.exec(d)||/(webkit)[ /]([\w.]+)/.exec(d)||
/(opera)(?:.*version|)[ /]([\w.]+)/.exec(d)||/(msie) ([\w.]+)/.exec(d)||0>d.indexOf("compatible")&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(d)||[],e=d[1]||"",d[1]&&(b[e]=!0),b.chrome?b.webkit=!0:b.webkit&&(b.safari=!0));b.msie&&(b.version=c);a.browser=b},isIOS:b,isMac:function(){null===S&&(S=0<=navigator.platform.toUpperCase().indexOf("MAC"));return S},getIOSVersion:function(){if(b()){var a=navigator.userAgent.match(/OS (\d)?\d_\d(_\d)?/i)||navigator.userAgent.match(/\b[0-9]+_[0-9]+(?:_[0-9]+)?\b/);return a&&
a.length&&Math.abs(a[0].split("_")[0].replace("OS ",""))||NaN}return NaN},getSafariVersion:function(){var a=navigator.userAgent;return-1!==a.indexOf("Safari")&&(a=a.match(/Version\/(\d+\.\d+)/))?parseInt(a[1]):null},isAndroid:d,isBlackberry:B,isWindowsPhone:l,isMobile:function(){return d()||b()||B()},isEmail:function(a){return/^(https?:|ftps?:|)\/\//i.test(a)?!1:c.MAIL_REGEX.test(a)},requestAnimationFrame:function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||
function(a){window.setTimeout(a,1E3/60)}},getPX:function(a){return parseInt(a,10)||0},screenSize:function(b){try{var d=0;d=b?a.$box.width():a.$sc.width();if(768>d)return c.XS;if(768<=d&&992>d)return c.SM;if(992<=d&&1200>d)return c.MD;if(1200<=d)return c.LG}catch(R){return c.LG}},isTouch:function(){return"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch},sanitizeURL:function(b){a.opts.DOMPurify&&(b=a.opts.DOMPurify.sanitize(b,{ADD_TAGS:a.opts.htmlAllowedTags,ALLOW_UNKNOWN_PROTOCOLS:!0,
ALLOWED_URI_REGEXP:/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp|xxx):|[^a-z]|[a-z+.]+(?:[^a-z+.\-:]|$))/i}));b=b.replace(/\son\w+='[^']*'/g,"");var d=/^([A-Za-z]:(\\){1,2}|[A-Za-z]:((\\){1,2}[^\\]+)+)(\\)?$/i;return/^(https?:|ftps?:|)\/\//i.test(b)||d.test(b)||(new RegExp("^(".concat(c.LinkProtocols.join("|"),"):"),"i")).test(b)?b:b=encodeURIComponent(b).replace(/%23/g,"#").replace(/%2F/g,"/").replace(/%25/g,"%").replace(/mailto%3A/gi,"mailto:").replace(/file%3A/gi,"file:").replace(/sms%3A/gi,
"sms:").replace(/tel%3A/gi,"tel:").replace(/notes%3A/gi,"notes:").replace(/data%3Aimage/gi,"data:image").replace(/blob%3A/gi,"blob:").replace(/%3A(\d)/gi,":$1").replace(/webkit-fake-url%3A/gi,"webkit-fake-url:").replace(/%3F/g,"?").replace(/%3D/g,"=").replace(/%26/g,"&").replace(/&amp;/g,"&").replace(/%2C/g,",").replace(/%3B/g,";").replace(/%2B/g,"+").replace(/%40/g,"@").replace(/%5B/g,"[").replace(/%5D/g,"]").replace(/%7B/g,"{").replace(/%7D/g,"}").replace(/%[0-1]+[0-9]+|%[0-1]+[A-F]+/g,"")},isArray:function(a){return a&&
!Object.prototype.propertyIsEnumerable.call(a,"length")&&"object"===f(a)&&"number"===typeof a.length},RGBToHex:function(a){function b(a){return"0".concat(parseInt(a,10).toString(16)).slice(-2)}try{if(!a||"transparent"===a)return"";if(/^#[0-9A-F]{6}$/i.test(a))return a;a=a.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);return"#".concat(b(a[1])).concat(b(a[2])).concat(b(a[3])).toUpperCase()}catch(R){return null}},HEXtoRGB:function(a){a=a.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(a,b,c,d){return b+
b+c+c+d+d});return(a=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(a))?"rgb(".concat(parseInt(a[1],16),", ").concat(parseInt(a[2],16),", ").concat(parseInt(a[3],16),")"):""},isURL:function(a){if(!/^(https?:|ftps?:|)\/\//i.test(a))return!1;a=String(a).replace(/</g,"%3C").replace(/>/g,"%3E").replace(/"/g,"%22").replace(/ /g,"%20");return(new RegExp("^".concat(c.LinkRegExHTTP).concat(c.LinkRegExEnd,"$"),"gi")).test(a)},getAlignment:function(b){b.css||(b=n(b));b=(b.css("text-align")||"").replace(/-(.*)-/g,
"");if(0>["left","right","justify","center"].indexOf(b)){if(!L){b=n('<div dir="'.concat("rtl"===a.opts.direction?"rtl":"auto",'" style="text-align: ').concat(a.$el.css("text-align"),'; position: fixed; left: -3000px;"><span id="s1">.</span><span id="s2">.</span></div>'));n("body").first().append(b);var c=b.find("#s1").get(0).getBoundingClientRect().left,d=b.find("#s2").get(0).getBoundingClientRect().left;b.remove();L=c<d?"left":"right"}b=L}return b},scrollTop:function(){return a.o_win.pageYOffset?
a.o_win.pageYOffset:a.o_doc.documentElement&&a.o_doc.documentElement.scrollTop?a.o_doc.documentElement.scrollTop:a.o_doc.body.scrollTop?a.o_doc.body.scrollTop:0},scrollLeft:function(){return a.o_win.pageXOffset?a.o_win.pageXOffset:a.o_doc.documentElement&&a.o_doc.documentElement.scrollLeft?a.o_doc.documentElement.scrollLeft:a.o_doc.body.scrollLeft?a.o_doc.body.scrollLeft:0},isInViewPort:function(a){a=a.getBoundingClientRect();a={top:Math.round(a.top),bottom:Math.round(a.bottom)};return 0<=a.top&&
a.bottom<=(window.innerHeight||document.documentElement.clientHeight)||0>=a.top&&a.bottom>=(window.innerHeight||document.documentElement.clientHeight)}}};c.MODULES.events=function(a){function b(a,b,c){ma(a,b,c)}function d(){b(a.$el,"cut copy paste beforepaste",function(a){t(a.type,[a])})}function f(){b(a.$el,"click mouseup mousemove mousedown touchstart touchend dragenter dragover dragleave dragend drop dragstart",function(a){t(a.type,[a])});R("mousedown",function(){for(var b=0;b<c.INSTANCES.length;b++)c.INSTANCES[b]!==
a&&c.INSTANCES[b].popups&&c.INSTANCES[b].popups.areVisible()&&c.INSTANCES[b].$el.find(".fr-marker").remove()})}function l(){b(a.$el,"beforeinput keydown keypress keyup input",function(a){t(a.type,[a])})}function n(){b(a.$win,a._mousedown,function(a){t("window.mousedown",[a]);V=!0});b(a.$win,a._mouseup,function(a){t("window.mouseup",[a])});b(a.$win,"beforeinput cut copy keydown keyup touchmove touchend",function(a){t("window.".concat(a.type),[a])})}function L(){b(a.$doc,"dragend drop",function(a){t("document.".concat(a.type),
[a])})}function S(b){"undefined"===typeof b&&(b=!0);if(!a.$wp)return!1;a.helpers.isIOS()&&a.$win.get(0).focus();if(a.core.hasFocus()||!a.core.hasFocus()&&b&&(b=a.$win.scrollTop(),a.browser.msie&&a.$box&&a.$box.css("position","fixed"),a.browser.msie&&a.$wp&&a.$wp.css("overflow","visible"),a.browser.msie&&a.$sc&&a.$sc.css("position","fixed"),a.browser.msie||(V=!1,a.el.focus(),a.events.trigger("focus"),V=!0),a.browser.msie&&a.$sc&&a.$sc.css("position",""),a.browser.msie&&a.$box&&a.$box.css("position",
""),a.browser.msie&&a.$wp&&a.$wp.css("overflow","auto"),b!==a.$win.scrollTop()&&a.$win.scrollTop(b),b=a.selection.info(a.el),!b.atStart)||!a.core.hasFocus()||0<a.$el.find(".fr-marker").length)return!1;b=a.selection.info(a.el);if(b.atStart&&a.selection.isCollapsed()&&null!==a.html.defaultTag())if((b=a.markers.insert())&&!a.node.blockParent(b)){if(q(b).remove(),b=a.$el.find(a.html.blockTagsQuery()).get(0))q(b).prepend(c.MARKERS),a.selection.restore()}else b&&q(b).remove()}function A(){b(a.$el,"focus",
function(b){V&&(S(!1),!1===k&&(t(b.type,[b]),a.helpers.isMobile()&&(V=!1)))});b(a.$el,"blur",function(b){V&&!0===k&&(t(b.type,[b]),a.helpers.isMobile()&&a.opts.toolbarContainer&&(a.shared.selected_editor=a.id),V=!0)});ma(a.$el,"mousedown",'[contenteditable="true"]',function(){V=!1;a.$el.blur()});R("focus",function(){k=!0});R("blur",function(){k=!1})}function p(b,c){var d=q(b.currentTarget);if(a.edit.isDisabled()||a.node.hasClass(d.get(0),"fr-disabled"))return b.preventDefault(),!1;if("mouseup"===
b.type&&1!==b.which||a.button.getButtons(".fr-selected",!0).get(0)==d.get(0)&&!a.node.hasClass(d.get(0),"fr-selected"))return!0;if("touchmove"!==b.type){b.stopPropagation();b.stopImmediatePropagation();b.preventDefault();if(!a.node.hasClass(d.get(0),"fr-selected"))return a.button.getButtons(".fr-selected",!0).removeClass("fr-selected"),!1;a.button.getButtons(".fr-selected",!0).removeClass("fr-selected");if(d.data("dragging")||d.attr("disabled"))return d.removeData("dragging"),!1;var h=d.data("timeout");
h&&(clearTimeout(h),d.removeData("timeout"));c.apply(a,[b])}else d.data("timeout")||d.data("timeout",setTimeout(function(){d.data("dragging",!0)},100))}function R(b,c,d){var h=b.split(" ");if(1<h.length){for(b=0;b<h.length;b++)R(h[b],c,d);return!0}"undefined"===typeof d&&(d=!1);0!==b.indexOf("shared.")?(ha[b]=ha[b]||[],h=ha[b]):(a.shared._events[b]=a.shared._events[b]||[],h=a.shared._events[b]);d?h.unshift(c):h.push(c)}function ma(b,c,d,e,k){"function"===typeof d&&(k=e,e=d,d=!1);var h=k?a.shared.$_events:
x;k=k?a.sid:a.id;c="".concat(c.trim().split(" ").join(".ed".concat(k," ")),".ed").concat(k);if(d)b.on(c,d,e);else b.on(c,e);h.push([b,c])}function m(a){for(var b=0;b<a.length;b++)a[b][0].off(a[b][1])}function t(b,c,d){if(!a.edit.isDisabled()||d){if(0!==b.indexOf("shared."))d=ha[b];else{if(0<a.shared.count)return!1;d=a.shared._events[b]}if(d)for(var h=0;h<d.length;h++){var r=d[h].apply(a,c);if(!1===r)return!1}return a.opts.events&&a.opts.events[b]&&(r=a.opts.events[b].apply(a,c),!1===r)?!1:r}}function C(){for(var a in ha)Object.prototype.hasOwnProperty.call(ha,
a)&&delete ha[a]}function v(){for(var b in a.shared._events)Object.prototype.hasOwnProperty.call(a.shared._events,b)&&delete a.shared._events[b]}var q=a.$,ha={},V,k=!1,x=[];return{_init:function(){a.shared.$_events=a.shared.$_events||[];a.shared._events={};a.helpers.isMobile()?(a._mousedown="touchstart",a._mouseup="touchend",a._move="touchmove",a._mousemove="touchmove"):(a._mousedown="mousedown",a._mouseup="mouseup",a._move="",a._mousemove="mousemove");f();n();L();l();A();V=!0;d();R("destroy",C);
R("shared.destroy",v)},on:R,trigger:t,bindClick:function(b,c,d){ma(b,a._mousedown,c,function(b){if(!a.edit.isDisabled()){var c=q(b.currentTarget);if(a.edit.isDisabled()||a.node.hasClass(c.get(0),"fr-disabled"))b.preventDefault();else if("mousedown"!==b.type||1===b.which)a.helpers.isMobile()||b.preventDefault(),(a.helpers.isAndroid()||a.helpers.isWindowsPhone())&&0===c.parents(".fr-dropdown-menu").length&&(b.preventDefault(),b.stopPropagation()),c.addClass("fr-selected"),a.events.trigger("commands.mousedown",
[c])}},!0);ma(b,"".concat(a._mouseup," ").concat(a._move),c,function(b){a.edit.isDisabled()||p(b,d)},!0);ma(b,"mousedown click mouseup",c,function(b){a.edit.isDisabled()||b.stopPropagation()},!0);R("window.mouseup",function(){a.edit.isDisabled()||(b.find(c).removeClass("fr-selected"),V=!0)});ma(b,"mouseover",c,function(){q(this).hasClass("fr-options")&&q(this).prev(".fr-btn").addClass("fr-btn-hover");q(this).next(".fr-btn").hasClass("fr-options")&&q(this).next(".fr-btn").addClass("fr-btn-hover")});
ma(b,"mouseout",c,function(){q(this).hasClass("fr-options")&&q(this).prev(".fr-btn").removeClass("fr-btn-hover");q(this).next(".fr-btn").hasClass("fr-options")&&q(this).next(".fr-btn").removeClass("fr-btn-hover")})},disableBlur:function(){V=!1},enableBlur:function(){V=!0},blurActive:function(){return V},focus:S,chainTrigger:function(b,c,d){if(!a.edit.isDisabled()||d){if(0!==b.indexOf("shared."))d=ha[b];else{if(0<a.shared.count)return!1;d=a.shared._events[b]}if(d)for(var h=0;h<d.length;h++){var e=
d[h].apply(a,[c]);"undefined"!==typeof e&&(c=e)}a.opts.events&&a.opts.events[b]&&(e=a.opts.events[b].apply(a,[c]),"undefined"!==typeof e&&(c=e));return c}},$on:ma,$off:function(){m(x);x=[];0===a.shared.count&&(m(a.shared.$_events),a.shared.$_events=[])}}};Object.assign(c.DEFAULTS,{indentMargin:20});c.COMMANDS={bold:{title:"Bold",toggle:!0,refresh:function(a){var b=this.format.is("strong");a.toggleClass("fr-active",b).attr("aria-pressed",b)}},italic:{title:"Italic",toggle:!0,refresh:function(a){var b=
this.format.is("em");a.toggleClass("fr-active",b).attr("aria-pressed",b)}},underline:{title:"Underline",toggle:!0,refresh:function(a){var b=this.format.is("u");a.toggleClass("fr-active",b).attr("aria-pressed",b)}},strikeThrough:{title:"Strikethrough",toggle:!0,refresh:function(a){var b=this.format.is("s");a.toggleClass("fr-active",b).attr("aria-pressed",b)}},subscript:{title:"Subscript",toggle:!0,refresh:function(a){var b=this.format.is("sub");a.toggleClass("fr-active",b).attr("aria-pressed",b)}},
superscript:{title:"Superscript",toggle:!0,refresh:function(a){var b=this.format.is("sup");a.toggleClass("fr-active",b).attr("aria-pressed",b)}},outdent:{title:"Decrease Indent"},indent:{title:"Increase Indent"},undo:{title:"Undo",undo:!1,forcedRefresh:!0,disabled:!0},redo:{title:"Redo",undo:!1,forcedRefresh:!0,disabled:!0},insertHR:{title:"Insert Horizontal Line"},clearFormatting:{title:"Clear Formatting"},selectAll:{title:"Select All",undo:!1},moreText:{title:"More Text",undo:!1},moreParagraph:{title:"More Paragraph",
undo:!1},moreRich:{title:"More Rich",undo:!1},moreMisc:{title:"More Misc",undo:!1}};c.RegisterCommand=function(a,b){c.COMMANDS[a]=b};c.MODULES.commands=function(a){function b(b){a.html.defaultTag()&&(b="<".concat(a.html.defaultTag(),">").concat(b,"</").concat(a.html.defaultTag(),">"));return b}function d(b){b=a.$tb.find("[data-cmd=".concat(b,"]"));var c=a.$tb.find("[data-cmd=html]");a.opts.trackChangesEnabled||a.markdown&&a.markdown.isEnabled()?c&&c.addClass("fr-disabled"):c&&c.removeClass("fr-disabled");
f(b);a.toolbar.setMoreToolbarsHeight()}function f(b){a.helpers.isMobile()&&a.opts.toolbarInline&&a.events.disableBlur();var c=a.$tb.find('.fr-more-toolbar[data-name="'.concat(b.attr("data-group-name"),'"]'));"trackChanges"===b.data("cmd")&&(c=a.$tb.find('.fr-more-toolbar[data-name="'.concat(b.attr("id"),'"]')));a.$tb.find(".fr-open").not(b).not('[data-cmd="trackChanges"]').removeClass("fr-open");b.toggleClass("fr-open");a.$tb.find(".fr-more-toolbar").removeClass("fr-overflow-visible");a.$tb.find(".fr-expanded").not(c).length?
(a.$tb.find(".fr-expanded").not(c).each(function(c,d){0!=S(d).data("name").indexOf("trackChanges-")&&0!=S(d).data("name").indexOf("moreRich-")?S(d).toggleClass("fr-expanded"):b.parents('[data-name^="moreRich-"]').length||0==S(d).data("name").indexOf("trackChanges-")||S(d).find('[id^="trackChanges-"]').length&&a.opts.trackChangesEnabled||S(d).toggleClass("fr-expanded")}),c.toggleClass("fr-expanded")):(c.toggleClass("fr-expanded"),a.$box.toggleClass("fr-toolbar-open"),a.$tb.toggleClass("fr-toolbar-open"))}
function l(b,d){if(!(a.markdown&&a.markdown.isEnabled()&&("bold"===b||"italic"===b||"underline"===b)||a.opts.trackChangesEnabled&&"markdown"===b)&&!1!==a.events.trigger("commands.before",S.merge([b],d||[]))){var e=c.COMMANDS[b]&&c.COMMANDS[b].callback||A[b],n=!0,l=!1;c.COMMANDS[b]&&("undefined"!==typeof c.COMMANDS[b].focus&&(n=c.COMMANDS[b].focus),"undefined"!==typeof c.COMMANDS[b].accessibilityFocus&&(l=c.COMMANDS[b].accessibilityFocus));if(!a.core.hasFocus()&&n||!a.core.hasFocus()&&l&&a.accessibility.hasFocus())a.el.focus({preventScroll:!0}),
a.events.trigger("focus");c.COMMANDS[b]&&!1!==c.COMMANDS[b].undo&&(a.$el.find(".fr-marker").length&&(a.events.disableBlur(),a.selection.restore()),a.undo.saveStep());e&&e.apply(a,S.merge([b],d||[]));a.events.trigger("commands.after",S.merge([b],d||[]));c.COMMANDS[b]&&!1!==c.COMMANDS[b].undo&&a.undo.saveStep()}}function n(b){a.selection.save();a.html.wrap(!0,!0,!0,!0);a.selection.restore();for(var c=a.selection.blocks(),d=0;d<c.length;d++)if("LI"!==c[d].tagName&&"LI"!=c[d].parentNode.tagName&&("LI"!==
c[d].tagName||"LI"!==c[d].parentNode.tagName)){var e=S(c[d]);"LI"!=c[d].tagName&&"LI"==c[d].parentNode.tagName&&(e=S(c[d].parentNode));var n="rtl"===a.opts.direction||"rtl"===e.css("direction")?"margin-right":"margin-left",l=a.helpers.getPX(e.css(n));e.width()<2*a.opts.indentMargin&&0<b||("UL"!=c[d].parentNode.tagName&&"OL"!=c[d].parentNode.tagName&&"LI"!=c[d].parentNode.tagName&&e.css(n,Math.max(l+b*a.opts.indentMargin,0)||""),e.removeClass("fr-temp-div"))}a.selection.save();a.html.unwrap();a.selection.restore()}
function L(a){return function(){l(a)}}var S=a.$,A={bold:function(){a.format.toggle("strong")},subscript:function(){a.format.is("sup")&&a.format.remove("sup");a.format.toggle("sub")},superscript:function(){a.format.is("sub")&&a.format.remove("sub");a.format.toggle("sup")},italic:function(){a.format.toggle("em")},strikeThrough:function(){a.format.toggle("s")},underline:function(){a.format.toggle("u")},undo:function(){a.undo.run()},redo:function(){a.undo.redo()},indent:function(){n(1)},outdent:function(){n(-1)},
show:function(){a.opts.toolbarInline&&a.toolbar.showInline(null,!0)},insertHR:function(){a.selection.remove();var d="";a.core.isEmpty()&&(d=b("<br>"));var e='<hr id="fr-just" class="fr-just">'.concat(d);a.opts.trackChangesEnabled&&(e=a.track_changes.wrapInTracking(S(e),"hrWrapper").get(0).outerHTML);a.html.insert(e);e=a.$el.find("hr#fr-just").length?a.$el.find("hr#fr-just"):a.$el.find(".fr-just");e.removeAttr("id");e.removeAttr("class");var n;d=a.opts.trackChangesEnabled&&"SPAN"===e[0].parentNode.tagName&&
"P"===e[0].parentNode.parentNode.tagName;if(0===e.next().length){var l=a.html.defaultTag();l&&!d?e.after(S(a.doc.createElement(l)).append("<br>").get(0)):d?e[0].parentNode.after(S(a.doc.createElement(l)).append("<br>").get(0)):e.after("<br>")}e.prev().is("hr")?n=a.selection.setAfter(e.get(0),!1):e.next().is("hr")?n=a.selection.setBefore(e.get(0),!1):d||a.selection.setAfter(e.get(0),!1)?a.selection.setAfter(e[0].parentNode,!1):a.selection.setBefore(e.get(0),!1);n||"undefined"===typeof n||(d="".concat(c.MARKERS,
"<br>"),d=b(d),e.after(d));a.selection.restore()},clearFormatting:function(){a.format.remove()},selectAll:function(){a.doc.execCommand("selectAll",!1,!1)},moreText:function(a){d(a)},moreParagraph:function(a){d(a)},moreRich:function(a){d(a)},moreMisc:function(a){d(a)},moreTrackChanges:function(){d("trackChanges")}},p={},R;for(R in A)Object.prototype.hasOwnProperty.call(A,R)&&(p[R]=L(R));return Object.assign(p,{exec:l,_init:function(){a.events.on("keydown",function(b){var c=a.selection.element();if(c&&
"HR"===c.tagName&&!a.keys.isArrow(b.which))return b.preventDefault(),!1});a.events.on("keyup",function(b){var d=a.selection.element();if(d&&"HR"===d.tagName)if(b.which===c.KEYCODE.ARROW_LEFT||b.which===c.KEYCODE.ARROW_UP){if(d.previousSibling)return a.node.isBlock(d.previousSibling)?a.selection.setAtEnd(d.previousSibling):S(d).before(c.MARKERS),a.selection.restore(),!1}else if((b.which===c.KEYCODE.ARROW_RIGHT||b.which===c.KEYCODE.ARROW_DOWN)&&d.nextSibling)return a.node.isBlock(d.nextSibling)?a.selection.setAtStart(d.nextSibling):
S(d).after(c.MARKERS),a.selection.restore(),!1});a.events.on("mousedown",function(a){if(a.target&&"HR"===a.target.tagName)return a.preventDefault(),a.stopPropagation(),!1});a.events.on("mouseup",function(){var b=a.selection.element(),d=a.selection.endElement();b===d&&b&&"HR"===b.tagName&&(b.nextSibling&&(a.node.isBlock(b.nextSibling)?a.selection.setAtStart(b.nextSibling):S(b).after(c.MARKERS)),a.selection.restore())})}})};c.MODULES.cursorLists=function(a){function b(a){for(;"LI"!==a.tagName;)a=a.parentNode;
return a}function d(b){for(;!a.node.isList(b);)b=b.parentNode;return b}function f(a){for(var b="",c=0;c<a.length;c++){var d=a[c];b+="".concat(d.name,"='").concat(d.value,"' ")}return b}var l=a.$;return{_startEnter:function(e){var n=b(e),g=n.nextSibling,A=n.previousSibling,B=a.html.defaultTag();if(a.node.isEmpty(n,!0)&&g){g=A="";for(e=e.parentNode;!a.node.isList(e)&&e.parentNode&&("LI"!==e.parentNode.tagName||e.parentNode===n);)-1<["OL","LI","UL"].indexOf(e.tagName)&&(A=a.node.openTagString(e)+A,g+=
a.node.closeTagString(e)),e=e.parentNode;A=a.node.openTagString(e)+A;g+=a.node.closeTagString(e);e.parentNode&&"LI"===e.parentNode.tagName?e.parentNode.attributes.length?(B=f(e.parentNode.attributes),B="".concat(g,"<li ").concat(B,">").concat(c.MARKERS,"<br>").concat(A)):B="".concat(g,"<li>").concat(c.MARKERS,"<br>").concat(A):B=B?"".concat(g,"<").concat(B,">").concat(c.MARKERS,"<br></").concat(B,">").concat(A):"".concat(g+c.MARKERS,"<br>").concat(A);for(;0>["UL","OL"].indexOf(e.tagName)||e.parentNode&&
"LI"===e.parentNode.tagName;)e=e.parentNode;l(n).replaceWith('<span id="fr-break"></span>');n=a.node.openTagString(e)+l(e).html()+a.node.closeTagString(e);n=n.replace(/<span id="fr-break"><\/span>/g,B);l(e).replaceWith(n);a.$el.find("li:empty").remove();a.$el.find("li > p > span:empty").length&&a.$el.find("li > p > span:empty")[0].parentNode.parentNode.remove()}else if(A&&g||!a.node.isEmpty(n,!0)){B="<br>";for((A=e.parentNode)&&"A"===A.tagName&&(A=null);A&&"LI"!==A.tagName;)B=a.node.openTagString(A)+
B+a.node.closeTagString(A),A=A.parentNode;A&&A.attributes.length?(A=f(A.attributes),l(n).before("<li ".concat(A,">").concat(B,"</li>"))):l(n).before("<li>".concat(B,"</li>"));l(e).remove()}else{if(A){A=d(n);g="".concat(c.MARKERS,"<br>");for(e=e.parentNode;e&&"LI"!==e.tagName;)g=a.node.openTagString(e)+g+a.node.closeTagString(e),e=e.parentNode;A.parentNode&&"LI"===A.parentNode.tagName?A.parentNode.attributes.length?(e=f(A.parentNode.attributes),l(A.parentNode).after("<li ".concat(e,">").concat(g,"</li>"))):
l(A.parentNode).after("<li>".concat(g,"</li>")):B?l(A).after("<".concat(B,">").concat(g,"</").concat(B,">")):l(A).after(g)}else A=d(n),A.parentNode&&"LI"===A.parentNode.tagName?g?l(A.parentNode).before("".concat(a.node.openTagString(n)+c.MARKERS,"<br></li>")):l(A.parentNode).after("".concat(a.node.openTagString(n)+c.MARKERS,"<br></li>")):B?l(A).before("<".concat(B,">").concat(c.MARKERS,"<br></").concat(B,">")):l(A).before("".concat(c.MARKERS,"<br>"));l(n).remove()}},_middleEnter:function(d){for(var e=
b(d),f="",g=d,n="",B="",p=!1;g!==e;){g=g.parentNode;var m="A"===g.tagName&&a.cursor.isAtEnd(d,g)?"fr-to-remove":"";p||g==e||a.node.isBlock(g)||(p=!0,n+=c.INVISIBLE_SPACE);n=a.node.openTagString(l(g).clone().addClass(m).get(0))+n;B+=a.node.closeTagString(g)}f=B+f+n+c.MARKERS+(a.opts.keepFormatOnDelete?c.INVISIBLE_SPACE:"");l(d).replaceWith('<span id="fr-break"></span>');d=a.node.openTagString(e)+l(e).html()+a.node.closeTagString(e);d=d.replace(/<span id="fr-break"><\/span>/g,f);l(e).replaceWith(d)},
_endEnter:function(d){for(var e=b(d),f=c.MARKERS,g="",n=d,B=!1;n!==e;)if(n=n.parentNode,!n.classList.contains("fr-img-space-wrap")&&!n.classList.contains("fr-img-space-wrap2")){var p="A"===n.tagName&&a.cursor.isAtEnd(d,n)?"fr-to-remove":"";B||n===e||a.node.isBlock(n)||(B=!0,g+=c.INVISIBLE_SPACE);g=a.node.openTagString(l(n).clone().addClass(p).get(0))+g;f+=a.node.closeTagString(n)}f=g+f;l(d).remove();l(e).after(f)},_backspace:function(e){var f=b(e),g=f.previousSibling;if(g){g=l(g).find(a.html.blockTagsQuery()).get(-1)||
g;l(e).replaceWith(c.MARKERS);e=a.node.contents(g);e.length&&"BR"===e[e.length-1].tagName&&l(e[e.length-1]).remove();l(f).find(a.html.blockTagsQuery()).not("ol, ul, table").each(function(){this.parentNode===f&&l(this).replaceWith(l(this).html()+(a.node.isEmpty(this)?"":"<br>"))});e=a.node.contents(f)[0];for(var n;e&&!a.node.isList(e);)n=e.nextSibling,l(g).append(e),e=n;for(g=f.previousSibling;e;)n=e.nextSibling,l(g).append(e),e=n;e=a.node.contents(g);1<e.length&&"BR"===e[e.length-1].tagName&&l(e[e.length-
1]).remove();l(f).remove()}else g=d(f),l(e).replaceWith(c.MARKERS),g.parentNode&&"LI"===g.parentNode.tagName?(e=g.previousSibling,a.node.isBlock(e)?(l(f).find(a.html.blockTagsQuery()).not("ol, ul, table").each(function(){this.parentNode===f&&l(this).replaceWith(l(this).html()+(a.node.isEmpty(this)?"":"<br>"))}),l(e).append(l(f).html())):l(g).before(l(f).html())):(e=a.html.defaultTag())&&0===l(f).find(a.html.blockTagsQuery()).length?l(g).before("<".concat(e,">").concat(l(f).html(),"</").concat(e,">")):
l(g).before(l(f).html()),l(f).remove(),a.html.wrap(),0===l(g).find("li").length&&l(g).remove()},_del:function(d){var e=b(d),f=e.nextSibling;if(f){var g=a.node.contents(f);g.length&&"BR"===g[0].tagName&&l(g[0]).remove();l(f).find(a.html.blockTagsQuery()).not("ol, ul, table").each(function(){this.parentNode===f&&l(this).replaceWith(l(this).html()+(a.node.isEmpty(this)?"":"<br>"))});g=d;for(var n=a.node.contents(f)[0],B;n&&!a.node.isList(n);)B=n.nextSibling,l(g).after(n),g=n,n=B;for(;n;)B=n.nextSibling,
l(e).append(n),n=B;l(d).replaceWith(c.MARKERS);l(f).remove()}else{for(n=e;!n.nextSibling&&n!==a.el;)n=n.parentNode;if(n===a.el)return!1;n=n.nextSibling;if(a.node.isBlock(n))0>c.NO_DELETE_TAGS.indexOf(n.tagName)&&(l(d).replaceWith(c.MARKERS),g=a.node.contents(e),g.length&&"BR"===g[g.length-1].tagName&&l(g[g.length-1]).remove(),!n.isContentEditable||"DIV"!==n.tagName||a.node.isBlock(n.previousSibling)&&"DIV"!==n.previousSibling.tagName)&&(l(e).append(l(n).html()),l(n).remove());else{g=a.node.contents(e);
g.length&&"BR"===g[g.length-1].tagName&&l(g[g.length-1]).remove();for(l(d).replaceWith(c.MARKERS);n&&!a.node.isBlock(n)&&"BR"!==n.tagName;)l(e).append(l(n)),n=n.nextSibling;l(n).remove()}}}}};c.NO_DELETE_TAGS=["TH","TD","TR","TABLE","FORM"];c.SIMPLE_ENTER_TAGS="TH TD LI DL DT FORM".split(" ");c.MODULES.cursor=function(a){function b(c){return c?a.node.isBlock(c)?"P"===c.tagName&&c.nextElementSibling&&c.parentElement&&"OL"===c.nextElementSibling.tagName&&"LI"===c.parentElement.tagName?!1:!0:c.nextSibling&&
c.nextSibling.nodeType===Node.TEXT_NODE&&0===c.nextSibling.textContent.replace(/\u200b/g,"").length?b(c.nextSibling):!c.nextSibling||c.previousSibling&&"BR"===c.nextSibling.tagName&&!c.nextSibling.nextSibling?b(c.parentNode):!1:!1}function d(b){return b?a.node.isBlock(b)?!0:b.previousSibling&&b.previousSibling.nodeType===Node.TEXT_NODE&&0===b.previousSibling.textContent.replace(/\u200b/g,"").length?d(b.previousSibling):b.previousSibling?!1:!b.previousSibling&&a.node.hasClass(b.parentNode,"fr-inner")?
!0:d(b.parentNode):!1}function f(b,c){return b&&b!==a.$wp.get(0)?b.previousSibling&&b.previousSibling.nodeType===Node.TEXT_NODE&&0===b.previousSibling.textContent.replace(/\u200b/g,"").length?f(b.previousSibling,c):b.previousSibling?!1:b.parentNode===c?!0:f(b.parentNode,c):!1}function l(b,c){return b&&b!==a.$wp.get(0)?b.nextSibling&&b.nextSibling.nodeType===Node.TEXT_NODE&&0===b.nextSibling.textContent.replace(/\u200b/g,"").length?l(b.nextSibling,c):!b.nextSibling||b.previousSibling&&"BR"===b.nextSibling.tagName&&
!b.nextSibling.nextSibling?b.parentNode===c?!0:l(b.parentNode,c):!1:!1}function n(b){return 0<q(b).parentsUntil(a.$el,"LI").length&&0===q(b).parentsUntil("LI","TABLE").length}function L(a,b){b=new RegExp("".concat(b?"^":"","(([\\uD83C-\\uDBFF\\uDC00-\\uDFFF]+\\u200D)*[\\uD83C-\\uDBFF\\uDC00-\\uDFFF]{2})").concat(b?"":"$"),"i");return(a=a.match(b))?a[0].length:1}function p(b){for(var d=b;!d.previousSibling;)if(d=d.parentNode,a.node.isElement(d))return!1;d=d.previousSibling;var e=a.opts.htmlAllowedEmptyTags;
var x=d.tagName&&d.tagName.toLowerCase();if((!a.node.isBlock(d)||d.lastChild&&x&&0<=e.indexOf(x))&&a.node.isEditable(d)){for(e=a.node.contents(d);d.nodeType!==Node.TEXT_NODE&&!a.node.isDeletable(d)&&e.length&&a.node.isEditable(d);)d=e[e.length-1],e=a.node.contents(d);if(d.nodeType===Node.TEXT_NODE){e=d.textContent;if((x=e.length)&&"\n"===e[e.length-1])return d.textContent=e.substring(0,x-2),0===d.textContent.length&&d.parentNode.removeChild(d),p(b);if(a.opts.tabSpaces&&e.length>=a.opts.tabSpaces||
a.opts.preserveTabSpaces&&4<=e.length){var u=a.opts.tabSpaces?a.opts.tabSpaces:4;var h=e.substr(e.length-u,e.length-1);0===h.replace(/ /g,"").replace(new RegExp(c.UNICODE_NBSP,"g"),"").length&&(x=e.length-u+1)}d.textContent=e.substring(0,x-L(e));x=d.textContent;if(a.opts.enter===c.ENTER_BR&&0<x.length&&" "===x.charAt(x.length-1)||0===x.length&&b.previousSibling&&3===b.previousSibling.nodeType&&"TD"!==b.parentNode.tagName&&"LI"!==b.parentNode.tagName&&e!==String.fromCharCode(8203))b.insertAdjacentHTML("beforebegin",
c.INVISIBLE_SPACE),d=d.nextSibling;a.opts.trackChangesEnabled&&0===d.textContent.length&&q(d.parentElement).data("tracking")&&0===q(d.parentElement).find("[data-tracking-deleted=true]").length&&(q(b).insertBefore(d.parentElement),q(d.parentElement).remove(),d=q(b)[0].previousSibling);a.opts.htmlUntouched&&!b.nextSibling&&d.textContent.length&&" "===d.textContent[d.textContent.length-1]&&(d.textContent=d.textContent.substring(0,d.textContent.length-1)+c.UNICODE_NBSP);x=e.length!==d.textContent.length;
a.opts.enter!==c.ENTER_BR&&d&&d.previousSibling&&d.previousSibling.previousSibling&&"BR"===d.previousSibling.previousSibling.tagName&&0===d.textContent.length&&d.previousSibling.previousSibling.remove();0===d.textContent.length&&"LI"===d.parentNode.tagName&&d.previousSibling&&"BR"===d.previousSibling.tagName&&d.previousSibling.remove();if(0===d.textContent.length)if(x&&a.opts.keepFormatOnDelete)q(d).after(c.INVISIBLE_SPACE+c.MARKERS);else if(0!==e.length&&a.node.isBlock(d.parentNode))q(d).after(c.MARKERS);
else if((2!=d.parentNode.childNodes.length||d.parentNode!=b.parentNode)&&1!=d.parentNode.childNodes.length||a.node.isBlock(d.parentNode)||a.node.isElement(d.parentNode)||!a.node.isDeletable(d.parentNode)){var r;for(e=d;!a.node.isElement(d.parentNode)&&a.node.isEmpty(d.parentNode)&&0>c.NO_DELETE_TAGS.indexOf(d.parentNode.tagName);)if(d=d.parentNode,"A"===d.tagName){x=d.childNodes[0];q(d).before(x);for(r=!0;0<x.childNodes.length;)x=x.childNodes[0];d.parentNode.removeChild(d);d=x;break}r||(d=e);q(d).after(c.MARKERS);
a.node.isElement(d.parentNode)&&!b.nextSibling&&d.previousSibling&&"BR"===d.previousSibling.tagName&&q(b).after("<br>");b=d.parentNode;d.parentNode.removeChild(d);a.node.isEmpty(b)&&q(b).html(c.INVISIBLE_SPACE+c.MARKERS)}else q(d.parentNode).after(c.MARKERS),q(d.parentNode).remove();else q(d).after(c.MARKERS)}else a.node.isDeletable(d)?(q(d).after(c.MARKERS),q(d).remove()):b.nextSibling&&"BR"===b.nextSibling.tagName&&a.node.isVoid(d)&&"BR"!==d.tagName?(q(b.nextSibling).remove(),q(b).replaceWith(c.MARKERS)):
!1!==a.events.trigger("node.remove",[q(d)])&&(q(d).after(c.MARKERS),q(d).remove())}else if(0>c.NO_DELETE_TAGS.indexOf(d.tagName)&&(a.node.isEditable(d)||a.node.isDeletable(d)))if(a.node.isDeletable(d))q(b).replaceWith(c.MARKERS),q(d).remove();else if(a.node.isEmpty(d)&&!a.node.isList(d))q(d).remove(),q(b).replaceWith(c.MARKERS);else{a.node.isList(d)&&(d=q(d).find("li").last().get(0));(e=a.node.contents(d))&&0<e.length&&"BR"===e[e.length-1].tagName&&q(e[e.length-1]).remove();for(e=a.node.contents(d);e&&
0<e.length&&a.node.isBlock(e[e.length-1]);)d=e[e.length-1],e=a.node.contents(d);q(d).append(c.MARKERS);for(r=b;!r.previousSibling;)r=r.parentNode;for(;r&&"BR"!==r.tagName&&!a.node.isBlock(r);)e=r,r=r.nextSibling,q(d).append(e);r&&"BR"===r.tagName&&q(r).remove();q(b).remove()}else b.nextSibling&&"BR"===b.nextSibling.tagName&&q(b.nextSibling).remove();return!0}function A(b){var d=0<q(b).parentsUntil(a.$el,"BLOCKQUOTE").length;if((d=a.node.deepestParent(b,[],!d))&&"BLOCKQUOTE"===d.tagName){var e=a.node.deepestParent(b,
[q(b).parentsUntil(a.$el,"BLOCKQUOTE").get(0)]);e&&e.nextSibling&&(d=e)}if(null!==d&&(e=d.nextSibling,a.node.isBlock(d)&&(a.node.isEditable(d)||a.node.isDeletable(d))&&e&&0>c.NO_DELETE_TAGS.indexOf(e.tagName)))if(a.node.isDeletable(e))q(e).remove(),q(b).replaceWith(c.MARKERS);else if(a.node.isBlock(e)&&a.node.isEditable(e))if(a.node.isList(e))if(a.node.isEmpty(d,!0))q(d).remove(),q(e).find("li").first().prepend(c.MARKERS);else{var x=q(e).find("li").first();if("BLOCKQUOTE"===d.tagName){var u=a.node.contents(d);
u.length&&a.node.isBlock(u[u.length-1])&&(d=u[u.length-1])}0===x.find("ul, ol").length&&(q(b).replaceWith(c.MARKERS),x.find(a.html.blockTagsQuery()).not("ol, ul, table").each(function(){this.parentNode===x.get(0)&&q(this).replaceWith(q(this).html()+(a.node.isEmpty(this)?"":"<br>"))}),q(d).append(a.node.contents(x.get(0))),x.remove(),0===q(e).find("li").length&&q(e).remove())}else{u=a.node.contents(e);u.length&&"BR"===u[0].tagName&&q(u[0]).remove();if("BLOCKQUOTE"!==e.tagName&&"BLOCKQUOTE"===d.tagName)for(u=
a.node.contents(d);u.length&&a.node.isBlock(u[u.length-1]);)d=u[u.length-1],u=a.node.contents(d);else if("BLOCKQUOTE"===e.tagName&&"BLOCKQUOTE"!==d.tagName)for(u=a.node.contents(e);u.length&&a.node.isBlock(u[0]);)e=u[0],u=a.node.contents(e);q(b).replaceWith(c.MARKERS);q(d).append(e.innerHTML);q(e).remove()}else{for(q(b).replaceWith(c.MARKERS);e&&"BR"!==e.tagName&&!a.node.isBlock(e)&&a.node.isEditable(e);)b=e,e=e.nextSibling,q(d).append(b);e&&"BR"===e.tagName&&a.node.isEditable(e)&&q(e).remove()}}
function m(){for(var b=a.el.querySelectorAll("blockquote:empty"),c=0;c<b.length;c++)b[c].parentNode.removeChild(b[c])}function R(){a.$el.find(".fr-to-remove").each(function(){for(var b=a.node.contents(this),c=0;c<b.length;c++)b[c].nodeType===Node.TEXT_NODE&&(b[c].textContent=b[c].textContent.replace(/\u200B/g,""));q(this).replaceWith(this.innerHTML)})}function t(b,d,e){var x=a.node.deepestParent(b,[],!e);if(x&&"BLOCKQUOTE"===x.tagName){if(l(b,x)){var u=a.html.defaultTag();d?q(b).replaceWith("<br>"+
c.MARKERS):u?q(x).after("<".concat(u,">").concat(c.MARKERS,"<br></").concat(u,">")):q(x).after("".concat(c.MARKERS,"<br>"));q(b).remove();return!1}v(b,d,e);return!1}if(null===x)(u=a.html.defaultTag())&&a.node.isElement(b.parentNode)?q(b).replaceWith("<".concat(u,">").concat(c.MARKERS,"<br></").concat(u,">")):!b.previousSibling||q(b.previousSibling).is("br")||b.nextSibling?q(b).replaceWith("<br>".concat(c.MARKERS)):q(b).replaceWith("<br>".concat(c.MARKERS,"<br>"));else{var h=b;e="";"PRE"!=x.tagName||
b.nextSibling||(d=!0);if(!a.node.isBlock(x)||d)e="<br/>";var r="",k="";u=a.html.defaultTag();var f="",g="";u&&a.node.isBlock(x)&&(f="<".concat(u,">"),g="</".concat(u,">"),x.tagName===u.toUpperCase()&&(f=a.node.openTagString(q(x).clone().removeAttr("id").get(0))));do if(h=h.parentNode,!d||h!==x||d&&!a.node.isBlock(x))r+=a.node.closeTagString(h),h===x&&a.node.isBlock(x)?k=f+k:(u=("A"===h.tagName||a.node.hasClass(h,"fa"))&&l(b,h)?"fr-to-remove":"",k="isPasted"===h.getAttribute("id")?a.node.openTagString(q(h).clone().attr("style",
"").addClass(u).get(0))+k:a.node.openTagString(q(h).clone().addClass(u).get(0))+k);while(h!==x);e=r+e+k+(b.parentNode===x&&a.node.isBlock(x)?"":c.INVISIBLE_SPACE)+c.MARKERS;a.node.isBlock(x)&&!q(x).find("*").last().is("br")&&q(x).append("<br/>");q(b).after('<span id="fr-break"></span>');q(b).remove();x.nextSibling&&!a.node.isBlock(x.nextSibling)||a.node.isBlock(x)||q(x).after("<br>");b=!d&&a.node.isBlock(x)?a.node.openTagString(x)+q(x).html()+g:a.node.openTagString(x)+q(x).html()+a.node.closeTagString(x);
b=b.replace(/<span id="fr-break"><\/span>/g,e);q(x).replaceWith(b)}}function C(b,e,k){var x=a.node.deepestParent(b,[],!k);if(x&&"TABLE"===x.tagName)return q(x).find("td, th").first().prepend(b),C(b,e,k);if(x&&"BLOCKQUOTE"===x.tagName)if(f(b,x)){if(!e)return(e=a.html.defaultTag())?q(x).before("<".concat(e,">").concat(c.MARKERS,"<br></").concat(e,">")):q(x).before("".concat(c.MARKERS,"<br>")),q(b).remove(),!1}else l(b,x)?t(b,e,!0):v(b,e,!0);if(null===x)(e=a.html.defaultTag())&&a.node.isElement(b.parentNode)?
q(b).replaceWith("<".concat(e,">").concat(c.MARKERS,"<br></").concat(e,">")):q(b).replaceWith("<br>".concat(c.MARKERS));else{a.html.defaultTag();if(a.node.isBlock(x))if("PRE"===x.tagName&&(e=!0),e)q(b).remove(),q(x).prepend("<br>".concat(c.MARKERS));else if(b.nextSibling&&"IMG"==b.nextSibling.tagName||b.nextSibling&&b.nextSibling.nextElementSibling&&"IMG"==b.nextSibling.nextElementSibling)q(b).replaceWith("<"+a.html.defaultTag()+">"+c.MARKERS+"<br></"+a.html.defaultTag()+">");else{if(a.node.isEmpty(x,
!0))return t(b,e,k);if(a.opts.keepFormatOnDelete||"DIV"===x.tagName||"div"===a.html.defaultTag())if(!a.opts.keepFormatOnDelete&&"DIV"===x.tagName||"div"===a.html.defaultTag())q(x).before("<"+a.html.defaultTag()+"><br></"+a.html.defaultTag()+">");else if(a.opts.keepFormatOnDelete&&!a.opts.htmlUntouched&&"DIV"!==x.tagName&&"div"!==a.html.defaultTag()&&d(a.selection.get().focusNode))q(x).before("".concat(a.node.openTagString(q(x).clone().removeAttr("id").get(0)),"<br>").concat(a.node.closeTagString(x)));
else{e=b;for(k=c.INVISIBLE_SPACE;e!==x&&!a.node.isElement(e);)e=e.parentNode,k=a.node.openTagString(e)+k+a.node.closeTagString(e);q(x).before(k)}else q(x).before("".concat(a.node.openTagString(q(x).clone().removeAttr("id").get(0)),"<br>").concat(a.node.closeTagString(x)))}else q(x).before("<br>");q(b).remove()}}function v(b,d,e){e=a.node.deepestParent(b,[],!e);if(null===e)a.html.defaultTag()&&b.parentNode===a.el?q(b).replaceWith("<".concat(a.html.defaultTag(),">").concat(c.MARKERS,"<br></").concat(a.html.defaultTag(),
">")):(b.nextSibling&&!a.node.isBlock(b.nextSibling)||q(b).after("<br>"),q(b).replaceWith("<br>".concat(c.MARKERS)));else if(b.previousSibling&&"IMG"==b.previousSibling.tagName||b.nextSibling&&"IMG"==b.nextSibling.tagName)q(b).replaceWith("<"+a.html.defaultTag()+">"+c.MARKERS+"<br></"+a.html.defaultTag()+">");else{var x=b,u="";"PRE"===e.tagName&&(d=!0);if(!a.node.isBlock(e)||d)u="<br>";var h="",r="";do{var k=x;x=x.parentNode;"BLOCKQUOTE"===e.tagName&&a.node.isEmpty(k)&&!a.node.hasClass(k,"fr-marker")&&
q(k).contains(b)&&q(k).after(b);if("BLOCKQUOTE"!==e.tagName||!l(b,x)&&!f(b,x))!d||x!==e||d&&!a.node.isBlock(e)?(h+=a.node.closeTagString(x),k="A"==x.tagName&&l(b,x)||a.node.hasClass(x,"fa")?"fr-to-remove":"",r=a.node.openTagString(q(x).clone().addClass(k).removeAttr("id").get(0))+r,a.opts.enter!==c.ENTER_DIV&&x===e&&"DIV"===e.tagName&&(h="<br>",r="")):"BLOCKQUOTE"==e.tagName&&d&&(r=h="")}while(x!==e);x=e===b.parentNode&&a.node.isBlock(e)||b.nextSibling;"BLOCKQUOTE"===e.tagName?(b.previousSibling&&
a.node.isBlock(b.previousSibling)&&b.nextSibling&&"BR"===b.nextSibling.tagName&&(q(b.nextSibling).after(b),b.nextSibling&&"BR"===b.nextSibling.tagName&&q(b.nextSibling).remove()),d?u=h+u+c.MARKERS+r:(d=a.html.defaultTag(),u="".concat(h+u+(d?"<".concat(d,">"):"")+c.MARKERS,"<br>").concat(d?"</".concat(d,">"):"").concat(r))):u=h+u+r+(x?"":c.INVISIBLE_SPACE)+c.MARKERS;q(b).replaceWith('<span id="fr-break"></span>');b=a.node.openTagString(e)+q(e).html()+a.node.closeTagString(e);b=b.replace(/<span id="fr-break"><\/span>/g,
u);q(e).replaceWith(b)}}function D(b){b=b.getBoundingClientRect();var c=window.pageXOffset||document.documentElement.scrollLeft,d=window.pageYOffset||document.documentElement.scrollTop;return a.opts.iframe?{top:b.top+a.$wp.offset().top,left:b.left+c}:{top:b.top+d,left:b.left+c}}function z(){var b=a.selection.get(),c=null;if(a.selection.inEditor()&&b.rangeCount)for(b=a.selection.ranges();0<b.length;){c=b[0];c=a.selection.rangeElement(c.startContainer,c.startOffset);break}return c}var q=a.$;return{enter:function(e){var f=
a.markers.insert();if(!f)return!0;for(var k=f.parentNode;k&&!a.node.isElement(k);){if("false"===k.getAttribute("contenteditable"))return q(f).replaceWith(c.MARKERS),a.selection.restore(),!1;if("true"===k.getAttribute("contenteditable"))break;k=k.parentNode}a.el.normalize();k=!1;0<q(f).parentsUntil(a.$el,"BLOCKQUOTE").length&&(k=!0);q(f).parentsUntil(a.$el,"TD, TH").length&&(k=!1);b(f)?!n(f)||e||k?t(f,e,k):a.cursorLists._endEnter(f):d(f)?!n(f)||e||k?C(f,e,k):a.cursorLists._startEnter(f):!n(f)||e||
k?v(f,e,k):a.cursorLists._middleEnter(f);R();a.html.fillEmptyBlocks(!0);a.opts.htmlUntouched||(a.html.cleanEmptyTags(),a.clean.lists(),a.spaces.normalizeAroundCursor());a.selection.restore();e=a.o_win.innerHeight;if(a.$oel[0].offsetHeight>e){if(f=z()){k=D(f);k=k.top;var x=f.getBoundingClientRect().top;a.opts.iframe&&(x=x+a.$wp.offset().top-a.helpers.scrollTop());a.opts.scrollableContainer&&a.opts.enter!==c.ENTER_BR&&"BR"===f.tagName&&x+20===e&&(x=k=f.parentNode.offsetTop);f.parentNode&&"TD"===f.parentNode.tagName&&
x>e?a.o_win.scroll(0,x-50):"BR"===f.tagName&&0>x?a.o_win.scroll(0,k-80):a.opts.scrollableContainer&&x+20>e?a.o_win.scroll(0,k-e+50):a.opts.scrollableContainer&&x+2*a.$tb.height()>a.$sc[0].scrollTop+q(a.$sc).height()&&a.$sc[0].scroll(0,k-q(a.$sc).height()+2*a.$tb.height())}}else a.opts.scrollableContainer&&a.opts.toolbarSticky&&(e=z())&&(f=D(e),f=f.top,k=e.getBoundingClientRect().top,a.opts.enter!==c.ENTER_BR&&"BR"===e.tagName&&(k=f=e.parentNode.offsetTop),(a.opts.iframe&&k+2*a.$tb.height()>a.$sc[0].scrollTop+
q(a.$sc).height()||k+2*a.$tb.height()>q(a.$sc).height())&&a.$sc[0].scroll(0,f-q(a.$sc).height()+2*a.$tb.height()))},backspace:function(){var e=!1,g=a.markers.insert();if(!g)return!0;for(var k=g.parentNode;k&&!a.node.isElement(k);){if("false"===k.getAttribute("contenteditable"))return q(g).replaceWith(c.MARKERS),a.selection.restore(),!1;if(k.innerText.length&&"true"===k.getAttribute("contenteditable"))break;k=k.parentNode}a.el.normalize();if(k=g.previousSibling){var x=k.textContent;x&&x.length&&8203===
x.charCodeAt(x.length-1)&&(1===x.length?q(k).remove():k.textContent=k.textContent.substr(0,x.length-L(x)))}if(b(g))n(g)&&f(g,q(g).parents("li").first().get(0))?a.cursorLists._backspace(g):e=p(g);else if(d(g))if(n(g)&&f(g,q(g).parents("li").first().get(0)))a.cursorLists._backspace(g);else{k=0<q(g).parentsUntil(a.$el,"BLOCKQUOTE").length;for(x=k=a.node.deepestParent(g,[],!k);k&&!k.previousSibling&&"BLOCKQUOTE"!==k.tagName&&k.parentElement!==a.el&&!a.node.hasClass(k.parentElement,"fr-inner")&&0>c.SIMPLE_ENTER_TAGS.indexOf(k.parentElement.tagName);)k=
k.parentElement;if(k&&"BLOCKQUOTE"===k.tagName){var u=a.node.deepestParent(g,[q(g).parentsUntil(a.$el,"BLOCKQUOTE").get(0)]);u&&u.previousSibling&&(x=k=u)}if(null!==k&&(u=k.previousSibling,a.node.isBlock(k)&&a.node.isEditable(k)))if(u&&0>c.NO_DELETE_TAGS.indexOf(u.tagName))if(a.node.isDeletable(u))q(u).remove(),q(g).replaceWith(c.MARKERS);else{if(a.node.isEditable(u))if(a.node.isBlock(u))if(a.node.isEmpty(u)&&!a.node.isList(u))q(u).remove(),q(g).after(a.opts.keepFormatOnDelete?c.INVISIBLE_SPACE:"");
else{a.node.isList(u)&&(u=q(u).find("li").last().get(0));var h=a.node.contents(u);h.length&&"BR"===h[h.length-1].tagName&&q(h[h.length-1]).remove();if("BLOCKQUOTE"===u.tagName&&"BLOCKQUOTE"!==k.tagName)for(h=a.node.contents(u);h.length&&a.node.isBlock(h[h.length-1]);)u=h[h.length-1],h=a.node.contents(u);else if("BLOCKQUOTE"!==u.tagName&&"BLOCKQUOTE"===x.tagName)for(h=a.node.contents(x);h.length&&a.node.isBlock(h[0]);)x=h[0],h=a.node.contents(x);a.node.isEmpty(k)?(q(g).remove(),a.selection.setAtEnd(u,
!0)):(q(g).replaceWith(c.MARKERS),h=u.childNodes,a.node.isBlock(h[h.length-1])?q(h[h.length-1]).append(x.innerHTML):q(u).append(x.innerHTML));q(x).remove();a.node.isEmpty(k)&&q(k).remove()}else q(g).replaceWith(c.MARKERS),"BLOCKQUOTE"===k.tagName&&u.nodeType===Node.ELEMENT_NODE?q(u).remove():(q(u).after(a.node.isEmpty(k)?"":q(k).html()),q(k).remove(),"BR"===u.tagName&&q(u).remove())}else u?8203===k.textContent.charCodeAt()&&k.childNodes[1]&&"BR"===k.childNodes[1].tagName&&k.tagName.toLowerCase()===
a.html.defaultTag()&&k.previousSibling&&"TABLE"===k.previousSibling.tagName&&q(k).remove():k&&"BLOCKQUOTE"===k.tagName&&0===q(k).text().replace(/\u200B/g,"").length?q(k).remove():(x=k.nextSibling,a.node.isEmpty(k)&&k.parentNode&&a.node.isEditable(k.parentNode)&&!x&&(k.parentNode!=a.el&&"TD"!==k.parentNode.tagName?q(k.parentNode).remove():k.parentNode!=a.el&&"TD"===k.parentNode.tagName&&q(k).remove()))}else e=p(g);q(g).remove();m();a.html.fillEmptyBlocks(!0);a.opts.htmlUntouched||(a.html.cleanEmptyTags(),
a.clean.lists(),a.spaces.normalizeAroundCursor());a.selection.restore();return e},del:function(){var e=a.markers.insert();if(!e)return!1;a.el.normalize();if(b(e))if(n(e))if(0===q(e).parents("li").first().find("ul, ol").length)a.cursorLists._del(e);else{var f=q(e).parents("li").first().find("ul, ol").first().find("li").first();f=f.find(a.html.blockTagsQuery()).get(-1)||f;f.prepend(e);a.cursorLists._backspace(e)}else A(e);else a:{for(d(e),f=e;!f.nextSibling;)if(f=f.parentNode,a.node.isElement(f))break a;
f=f.nextSibling;if("BR"===f.tagName&&a.node.isEditable(f))if(f.nextSibling){if(a.node.isBlock(f.nextSibling)&&a.node.isEditable(f.nextSibling))if(0>c.NO_DELETE_TAGS.indexOf(f.nextSibling.tagName))f=f.nextSibling,q(f.previousSibling).remove();else{q(f).remove();break a}}else if(b(f)){n(e)?a.cursorLists._del(e):a.node.deepestParent(f)&&((!a.node.isEmpty(a.node.blockParent(f))||0>(a.node.blockParent(f).nextSibling&&c.NO_DELETE_TAGS.indexOf(a.node.blockParent(f).nextSibling.tagName)))&&q(f).remove(),
f&&f.parentNode&&8203===f.parentNode.textContent.charCodeAt()&&f.parentNode.childNodes[1]&&"BR"===f.parentNode.childNodes[1].tagName&&f.parentNode.tagName.toLowerCase()===a.html.defaultTag()&&f.parentNode.nextSibling&&"TABLE"===f.parentNode.nextSibling.tagName&&q(f.parentNode).remove(),A(e));break a}var k;if(!a.node.isBlock(f)&&a.node.isEditable(f)){for(k=a.node.contents(f);f.nodeType!==Node.TEXT_NODE&&k.length&&!a.node.isDeletable(f)&&a.node.isEditable(f);)f=k[0],k=a.node.contents(f);f.nodeType===
Node.TEXT_NODE?(q(f).before(c.MARKERS),f.textContent.length&&(f.textContent=f.textContent.substring(L(f.textContent,!0),f.textContent.length))):a.node.isDeletable(f)?(q(f).before(c.MARKERS),q(f).remove()):!1!==a.events.trigger("node.remove",[q(f)])&&(q(f).before(c.MARKERS),q(f).remove());q(e).remove()}else if(0>c.NO_DELETE_TAGS.indexOf(f.tagName)&&(a.node.isEditable(f)||a.node.isDeletable(f)))if(a.node.isDeletable(f))q(e).replaceWith(c.MARKERS),q(f).remove();else if(a.node.isList(f))e.previousSibling?
(q(f).find("li").first().prepend(e),a.cursorLists._backspace(e)):(q(f).find("li").first().prepend(c.MARKERS),q(e).remove());else if((k=a.node.contents(f))&&0<k.length&&"BR"===k[0].tagName&&q(k[0]).remove(),k&&0<k.length&&"BLOCKQUOTE"===f.tagName){f=k[0];for(q(e).before(c.MARKERS);f&&"BR"!==f.tagName;)k=f,f=f.nextSibling,q(e).before(k);f&&"BR"===f.tagName&&q(f).remove()}else q(e).after(q(f).html()).after(c.MARKERS),q(f).remove()}q(e).remove();m();a.html.fillEmptyBlocks(!0);a.opts.htmlUntouched||(a.html.cleanEmptyTags(),
a.clean.lists());a.spaces.normalizeAroundCursor();a.selection.restore()},isAtEnd:l,isAtStart:f}};c.MODULES.data=function(a){function b(b){return b&&"block"!==b.css("display")?(b.remove(),!0):b&&0===a.helpers.getPX(b.css("height"))?(b.remove(),!0):!(!b||"absolute"!==b.css("position")&&"fixed"!==b.css("position"))&&(b.remove(),!0)}function c(){if(10<G&&(a[D("0ppecjvc==")](),setTimeout(function(){p.FE=null},10)),!a.$box)return!1;a.$wp.prepend(D(D(C)));z=a.$wp.find("> div").first();q=z.find("> a");"rtl"===
a.opts.direction&&z.css("left","auto").css("right",0).attr("direction","rtl");G++}function d(a){var b=D("9qqG-7amjlwq=="),c=D("KA3B3C2A6D1D5H5H1A3=="),d=D("3B9B3B5F3C4G3E3=="),e=D("QzbzvxyB2yA-9m=="),r=D("ji1kacwmgG5bc=="),f=D("nmA-13aogi1A3c1jd=="),g=D("BA9ggq=="),l=D("emznbjbH3fij=="),n=D("tkC-22d1qC-13sD1wzF-7=="),ea=D("tA3jjf=="),Q=D("1D1brkm==");b=[b,c,d,e,r,f,g,l,n,ea,Q];for(c=0;c<b.length;c++)if(String.prototype.endsWith||(String.prototype.endsWith=function(a,b){return(void 0===b||b>this.length)&&
(b=this.length),this.substring(b-a.length,b)===a}),a.endsWith(b[c]))return!0;return!1}function f(a){a=(D(a)||"").split("|");return 4===a.length&&"V3"===a[0]?[a[1],a[3],a[2]]:[null,null,""]}function n(a){return null===a||(0==a.indexOf("TRIAL")?(a=new Date(a.replace(/TRIAL/,"")),new Date(a)<new Date&&(A=m,!0)):new Date(a)<new Date(D(t)))}function L(){var a=D(R),b=D("tzgatD-13eD1dtdrvmF3c1nrC-7saQcdav==").split(".");try{return window.parent.document.querySelector(a)&&window[b[1]][b[2]]}catch(x){return!1}}
var p=a.$,A="sC-7OB2fwhVC4vsG-7ohPA4ZD4D-8f1J3stzB-11bFE2FC1A3NB2IF1HE1TH4WB8eB-11zVG2F3I3yYB5ZG4CB2DA15CC5AD3F1A1KG1oLA10B1A6wQF1H3vgale2C4F4XA2qc2A5D5B3pepmriKB3OE1HD1fUC10pjD-11E-11TB4YJ3bC-16zE-11yc1B2CE2BC3jhjKC1pdA-21OA6C1D5B-8vF4QA11pD6sqf1C3lldA-16BD4A2H3qoEA7bB-16rmNH5H1F1vSB7RE2A3TH4YC5A5b1A4d1B3whepyAC3AA2zknC3mbgf1SC4WH4PD8TC5ZB2C3H3jb2A5ZA2EF2aoFC5qqHC4B1H1zeGA7UA5RF4TA29TA6ZC4d1C3hyWA10A3rBB2E3decorationRD3QC10UD3E6E6ZD2F3F3fme2E5uxxrEC9C3E4fB-11azhHB1LD7D6VF4VVTPC6b1C4TYG3qzDD6B3B3AH4I2H2kxbHE1JD1yihfd1QD6WB1D4mhrc1B5rvFG3A14A7cDA2OC1AA1JB5zC-16KA6WB4C-8wvlTB5A5lkZB2C2C7zynBD2D2bI-7C-21d1HE2cubyvPC8A6VB3aroxxZE4C4F4e1I2BE1WjdifH1H4A14NA1GB1YG-10tWA3A14A9sVA2C5XH2A29b2A6gsleGG2jaED2D-13fhE1OA8NjwytyTD4e1sc1D-16ZC3B5C-9e1C2FB6EFF5B2C2JH4E1C2tdLE5A3UG4G-7b2D3B4fA-9oh1G3kqvB4AG3ibnjcAC6D2B1cDA9KC2QA6bRC4VA30RB8hYB2A4A-8h1A21A2B2==",
m="7D4YH4fkhHB3pqDC3H2E1fkMD1IB1NF1D3QD9wB5rxqlh1A8c2B4ZA3FD2AA6FB5EB3jJG4D2J-7aC-21GB6PC5RE4TC11QD6XC4XE3XH3mlvnqjbaOA2OC2BE6A1fmI-7ujwbc1G5f1F3e1C11mXF4owBG3E1yD1E4F1D2D-8B-8C-7yC-22HD1MF5UE4cWA3D8D6a1B2C3H3a3I3sZA4B3A2akfwEB3xHD5D1F1wIC11pA-16xdxtVI2C9A6YC4a1A2F3B2GA6B4C3lsjyJB1eMA1D-11MF5PE4ja1D3D7byrf1C3e1C7D-16lwqAF3H2A1B-21wNE1MA1OG1HB2A-16tSE5UD4RB3icRA4F-10wtwzBB3E1C3CC2DA8LA2LA1EB1kdH-8uVB7decorg1J2B7B6qjrqGI2J1C6ijehIB1hkemC-13hqkrH4H-7QD6XF5XF3HLNAC3CB2aD2CD2KB10B4ycg1A-8KA4H4B11jVB5TC4yqpB-21pd1E4pedzGB6MD5B3ncB-7MA4LD2JB6PD5uH-8TB9C7YD5XD2E3I3jmiDB3zeimhLD8E2F2JC1H-9ivkPC5lG-10SB1D3H3A-21rc1A3d1E3fsdqwfGA2KA1OrC-22LA6D1B4afUB16SC7AitC-8qYA11fsxcajGA15avjNE2A-9h1hDB16B9tPC1C5F5UC1G3B8d2A5d1D4RnHJ3C3JB5D3ucMG1yzD-17hafjC-8VD3yWC6e1YD2H3ZE2C8C5oBA3H3D2vFA4WzJC4C2i1A-65fNB8afWA1H4A26mvkC-13ZB3E3h1A21BC4eFB2GD2AA5ghqND2A2B2==",
R="MekC-11nB-8tIzpD7pewxvzC6mD-16xerg1==",t="lC4B3A3B2B5A1C2E4G1A2==",C="sC-7OB2fwhVC4vsG-7ohPA4ZD4D-8f1J3stzB-11bFE2EE1MA2ND1KD1IE4cA-21pSD2D5ve1G3h1A8b1E5ZC3CD2FA16mC5OC5E1hpnG1NA10B1D7hkUD4I-7b2C3C5nXD2E3F3whidEC2EH3GI2mJE2E2bxci1WA10VC7pllSG2F3A7xd1A4ZC3DB2aaeGA2DE4H2E1j1ywD-13FD1A3VE4WA3D8C6wuc1A2hf1B5B7vnrrjA1B9ic1mpbD1oMB1iSB7rWC4RI4G-7upB6jd1A2F3H2EA4FD3kDF4A2moc1anJD1TD4VI4b2C7oeQF4c1E3XC7ZA3C3G3uDB2wGB6D1JC4D1JD4C1hTE6QC5pH4pD3C-22D7c1A3textAA4gdlB2mpozkmhNC1mrxA3yWA5edhg1I2H3B7ozgmvAI3I2B5GD1LD2RSNH1KA1XA5SB4PA3sA9tlmC-9tnf1G3nd1coBH4I2I2JC3C-16LE6A1tnUA3vbwQB1G3f1A20a3A8a1C6pxAB2eniuE1F3kH2lnjB2hB-16XA5PF1G4zwtYA5B-11mzTG2B9pHB3BE2hGH3B3B2cMD5C1F1wzPA8E7VG5H5vD3H-7C8tyvsVF2I1G2A5fE3bg1mgajoyxMA4fhuzSD8aQB2B4g1A20ukb1A4B3F3GG2CujjanIC1ObiB11SD1C5pWC1D4YB8YE5FE-11jXE2F-7jB4CC2G-10uLH4E1C2tA-13yjUH5d1H1A7sWD5E4hmjF-7pykafoGA16hDD4joyD-8OA33B3C2tC7cRE4SA31a1B8d1e2A4F4g1A2A22CC5zwlAC2C1A12==",
v=function(){for(var a=0,b=document.domain,c=b.split("."),d="_gd".concat((new Date).getTime());a<c.length-1&&-1===document.cookie.indexOf("".concat(d,"=").concat(d));)b=c.slice(-1-++a).join("."),document.cookie="".concat(d,"=").concat(d,";domain=").concat(b,";");return document.cookie="".concat(d,"=;expires=Thu, 01 Jan 1970 00:00:01 GMT;domain=").concat(b,";"),(b||"").replace(/(^\.*)|(\.*$)/g,"")}(),D=function(a){if(!a)return a;for(var b="",c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".indexOf(a[0]),
d=1;d<a.length-2;d++){var e=(++c).toString();for(var r=0,f=0;f<e.length;f++)r+=parseInt(e.charAt(f),10);e=10<r?r%9+1:r;var g=a.charCodeAt(d);for(r="";/[0-9-]/.test(a[d+1]);)r+=a[++d];r=parseInt(r,10)||0;f=g;for(g=Math.abs(r);0<g--;)f-=e;g=(0>r&&(f+=123),f);g^=c-1&31;b+=String.fromCharCode(g)}return b},z,q,G=0;return{_init:function(){var e=a.opts.key||[""],k=D("ziRA1E3B9pA5B-11D-11xg1A3ZB5D1D4B-11ED2EG2pdeoC1clIH4wB-22yQD5uF4YE3E3A9==");"string"==typeof e&&(e=[e]);a.ul=!0;for(var x=!1,u=0,h=0;h<e.length;h++){var r=
f(e[h]),g=r[2],l=D(D("LGnD1KNZf1CPBYCAZB-8F3UDSLLSG1VFf1A3C2=="));if(g===l||0<=g.indexOf(v,g.length-v.length)||d(v)||L()){if(!(n(r[1])&&0<(v||"").length)||d(v)||L()){a.ul=!1;break}x=!0;C=A;u=r[0]||-1}}e=new Image;!0===a.ul&&(c(),e.src=x?"".concat(D(k),"e=").concat(u):"".concat(D(k),"u"));!0===a.ul&&(a.events.on("contentChanged",function(){(b(z)||b(q)||z&&0===a.$box.find(z).length||q&&0===a.$box.find(q).length)&&c()}),a.events.on("html.get",function(a){return a+D("qD2H-9G3ioD-17qA1tE1B-8qI3A4hA-13C-11E2C1njfldD1E6pg1C-8sC3hfbkcD2G3stC-22gqgB3G2B-7vtoA4nweeD1A31A15B9uC-16A1F5dkykdc1B8dE-11bA3F2D3A9gd1E7F2tlI-8H-7vtxB2A5B2C3B2F2B5A6ldbyC4iqC-22D-17E-13mA3D2dywiB3oxlvfC1H4C2TjqbzlnI3ntB4E3qA2zaqsC6D3pmnkoE3C6D5wvuE3bwifdhB6hch1E4xibD-17dmrC1rG-7pntnF6nB-8F1D2A11C8plrkmF2F3MC-16bocqA2WwA-21ayeA1C4d1isC-22rD-13D6DfjpjtC2E6hB2G2G4A-7D2==")}));
a.events.on("html.set",function(){var b=a.el.querySelector('[data-f-id="pbf"]');b&&p(b).remove()});a.events.on("destroy",function(){z&&z.length&&z.remove()},!0)}}};c.MODULES.edit=function(a){function b(){if(a.browser.mozilla)try{a.doc.execCommand("enableObjectResizing",!1,"false"),a.doc.execCommand("enableInlineTableEditing",!1,"false")}catch(B){}if(a.browser.msie)try{a.doc.body.addEventListener("mscontrolselect",function(a){a.srcElement.focus();return!1})}catch(B){}}var c=!1;return{_init:function(){a.events.on("focus",
function(){if(c)a.edit.off();else a.edit.on()})},on:function(){a.$wp?(a.$el.attr("contenteditable",!0),a.$el.removeClass("fr-disabled").attr("aria-disabled",!1),b()):a.$el.is("a")&&a.$el.attr("contenteditable",!0);a.events.trigger("edit.on",[],!0);c=!1},off:function(){a.events.disableBlur();a.$wp?(a.$el.attr("contenteditable",!1),a.$el.addClass("fr-disabled").attr("aria-disabled",!0)):a.$el.is("a")&&a.$el.attr("contenteditable",!1);a.events.trigger("edit.off");a.events.enableBlur();c=!0},disableDesign:b,
isDisabled:function(){return c}}};c.MODULES.format=function(a){function d(a,b){a="<".concat(a);for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a+=" ".concat(c,'="').concat(b[c],'"'));return a+">"}function f(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a="id"===c?a+"#".concat(b[c]):"class"===c?a+".".concat(b[c]):a+"[".concat(c,'="').concat(b[c],'"]'));return a}function B(a,b){return a&&a.nodeType===Node.ELEMENT_NODE?(a.matches||a.matchesSelector||a.msMatchesSelector||
a.mozMatchesSelector||a.webkitMatchesSelector||a.oMatchesSelector).call(a,b):!1}function l(b,c,d){var e,r={strong:{prop:"font-weight",val:"bold"},em:{prop:"font-style",val:"italic"}};if(b){var f="LI"===b.tagName?b:w(b).parentsUntil(a.$el,"li").get(0);f=w(f).find(".fr-marker[data-type=false]").get(0);if("LI"!==b.parentNode.parentNode.tagName||!f||null!=f.previousSibling){if(a.node.isBlock(b)&&b.hasAttribute("contenteditable")&&"false"===b.getAttribute("contenteditable")||b.parentNode&&b.parentNode.hasAttribute("contenteditable")&&
"false"===b.parentNode.getAttribute("contenteditable")){if(b.nextSibling&&w(b.nextSibling).hasClass("fr-marker"))return;if(b.nextSibling){l(b.nextSibling,c,d);return}if(b.parentNode){l(b.parentNode,c,d);return}}for(;b&&b.nodeType===Node.COMMENT_NODE;)b=b.nextSibling;if(b){if(a.node.isBlock(b)&&"HR"!==b.tagName&&"LI"!==b.tagName)return a.node.hasClass(b.firstChild,"fr-marker")?l(b.firstChild.nextSibling,c,d):l(b.firstChild,c,d),!1;f=w(a.doc.createElement(c));f.attr(d);f.insertBefore(b);if((e=C(b))&&
(0<=["strong","em"].indexOf(c)||"span"===c&&d.hasOwnProperty("style"))){if("span"===c){r=d.style.replace(/;$/,"").split(":");var u=r[0].trim();r=r[1].trim()}else u=r[c].prop,r=r[c].val;if("background-color"!==u)for(w(e).css(u,r),r=u,e=e.childNodes,u=0;u<e.length;u++)0<=["UL","OL","LI"].indexOf(e[u].tagName)&&""===e[u].style[r]&&w(e[u]).css(r,"initial")}for(e=b;e&&!w(e).hasClass("fr-marker")&&0===w(e).find(".fr-marker").length&&"UL"!==e.tagName&&"OL"!==e.tagName;)if(r=e,"SPAN"===e.tagName&&w(e).hasClass("fr-tracking-deleted"))e=
e.nextSibling;else{if(a.node.isBlock(e)&&"HR"!==b.tagName)return l(e.firstChild,c,d),!1;if("SPAN"===e.tagName&&a.node.isEditable(e))return f.is(":empty")&&f.remove(),l(e.firstChild,c,d),!1;if(e.tagName&&e.hasAttribute("contenteditable")&&"false"===e.getAttribute("contenteditable")){b=f.get(0).parentNode;f=e.nextSibling;"P"===e.parentNode.tagName&&null==e.nextSibling?f=e.parentNode.nextSibling:!f&&b&&b.nextSibling&&"DIV"===b.nextSibling.tagName&&(f=b.nextSibling);l(f,c,d);return}if(a.node.isEditable(e.parentNode)){if(e=
e.nextSibling,f.append(r),a.browser.mozilla&&0<f.length&&(u=f[0],w(u).parentsUntil(a.$el,"TABLE").length)){r=null;for(u=u.nextSibling;u;)"BR"===u.nodeName&&(r=u),u=u.nextSibling;r&&!r.nextSibling&&"TD"!=r.parentNode.nodeName&&r.parentNode.textContent&&r.remove()}}else{a.selection.restore();a.toolbar.disable();return}}if(e)(w(e).find(".fr-marker").length||"UL"===e.tagName||"OL"===e.tagName)&&l(e.firstChild,c,d);else{for(b=f.get(0).parentNode;b&&!b.nextSibling&&!a.node.isElement(b);)b=b.parentNode;
b&&(b=b.nextSibling)&&(a.node.isBlock(b)?"HR"===b.tagName?l(b.nextSibling,c,d):l(b.firstChild,c,d):l(b,c,d))}f.is(":empty")&&f.remove()}}}}function n(b,e){"undefined"===typeof e&&(e={});e.style&&delete e.style;if(a.selection.isCollapsed()){a.markers.insert();var u=a.$el.find(".fr-marker");u.get(0).nextSibling&&a.node.isBlock(u.get(0).nextSibling)&&!u.get(0).previousSibling&&"LI"===u.get(0).parentNode.tagName&&u.get(0).nextSibling.prepend(u.get(0));u.replaceWith(d(b,e)+c.INVISIBLE_SPACE+c.MARKERS+
"</".concat(b,">"))}else{a.selection.save();u=a.$el.find('.fr-marker[data-type="true"]').length&&a.$el.find('.fr-marker[data-type="true"]').get(0).nextSibling;l(u,b,e);w(u).parent().find("a:empty").remove();do{var h=a.$el.find("".concat(f(b,e)," > ").concat(f(b,e)));for(u=0;u<h.length;u++)h[u].outerHTML=h[u].innerHTML}while(h.length);a.el.normalize();h=a.el.querySelectorAll(".fr-marker");for(u=0;u<h.length;u++){var r=w(h[u]);!0===r.data("type")?B(r.get(0).nextSibling,f(b,e))&&r.next().prepend(r):
B(r.get(0).previousSibling,f(b,e))&&r.prev().append(r)}}a.selection.restore()}function L(b,c,d,e){if(!e){e=!1;if(!0===b.data("type"))for(;a.node.isFirstSibling(b.get(0))&&!b.parent().is(a.$el)&&!b.parent().is("ol")&&!b.parent().is("ul");)b.parent().before(b),e=!0;else if(!1===b.data("type"))for(;a.node.isLastSibling(b.get(0))&&!b.parent().is(a.$el)&&!b.parent().is("ol")&&!b.parent().is("ul");)b.parent().after(b),e=!0;if(e)return!0}if(b.parents(c).length||"undefined"===typeof c){var h="",u="";e=b.parent();
"A"===e[0].tagName&&(e=e.parent());if(e.is(a.$el)||a.node.isBlock(e.get(0)))return!1;for(;!(a.node.isBlock(e.parent().get(0))||"undefined"!==typeof c&&B(e.get(0),f(c,d)));)h+=a.node.closeTagString(e.get(0)),u=a.node.openTagString(e.get(0))+u,e=e.parent();c=b.get(0).outerHTML;b.replaceWith('<span id="mark"></span>');b=e.html().replace(/<span id="mark"><\/span>/,h+a.node.closeTagString(e.get(0))+u+c+h+a.node.openTagString(e.get(0))+u);e.replaceWith(a.node.openTagString(e.get(0))+b+a.node.closeTagString(e.get(0)));
return!0}return!1}function p(b,c,d,e){for(var h={strong:{prop:"font-weight",val:"bold"},em:{prop:"font-style",val:"italic"}},u=a.node.contents(b.get(0)),x=0;x<u.length;x++){var g=u[x];g.innerHTML&&8203==g.innerHTML.charCodeAt()&&g.tagName.toLocaleLowerCase()==d&&2>g.childNodes.length&&!a.helpers.isMobile()&&(g.outerHTML=g.innerHTML);if(a.node.hasClass(g,"fr-marker"))c=(c+1)%2;else if(c)if(0<w(g).find(".fr-marker").length)c=p(w(g),c,d,e);else{(b="LI"===g.tagName?g:w(g).parentsUntil(a.$el,"li").get(0))&&
("undefined"===typeof d||0<=["strong","em"].indexOf(d))&&(d?w(b).css(h[d].prop,""):b.style="");(b=g.parentNode!==a.el?g.parentNode:null)&&1===b.nodeType&&0>"p strong u em s sub sup a".split(" ").indexOf(d)&&b.hasAttribute("style")&&"SPAN"!==b.tagName&&"LI"!==b.tagName?b.style="":g&&1===g.nodeType&&g.hasAttribute("style")&&0>"p strong u em s sub sup a".split(" ").indexOf(d)&&(a.browser.msie?w(g).attr("style",""):g.style="");for(var l=w(g).find(d||"*:not(br)"),k=l.length-1;0<=k;k--){var Q=l[k];(b="LI"===
Q.tagName?Q:w(Q).parentsUntil(a.$el,"li").get(0))&&(!d||0<=["strong","em"].indexOf(d))&&(d?w(b).css(h[d].prop,""):b.style="");"A"===Q.tagName||a.node.isBlock(Q)||a.node.isVoid(Q)||"undefined"!==typeof d&&!B(Q,f(d,e))?a.node.isBlock(Q)&&"undefined"===typeof d&&"TABLE"!==g.tagName&&a.node.clearAttributes(Q):a.node.hasClass(Q,"fr-clone")||a.node.hasClass(Q,"fr-tracking-deleted")||w(Q).data("tracking")||(Q.outerHTML=Q.innerHTML)}"A"!==g.tagName&&"undefined"===typeof d&&g.nodeType===Node.ELEMENT_NODE&&
!a.node.isVoid(g)||B(g,f(d,e))?a.node.isBlock(g)||(a.node.hasClass(g,"fr-clone")||a.opts.trackChangesEnabled?!a.node.hasClass(g,"fr-clone")&&a.opts.trackChangesEnabled&&g.parentNode&&(g.outerHTML=g.innerHTML):g.outerHTML=g.innerHTML):"undefined"===typeof d&&g.nodeType===Node.ELEMENT_NODE&&a.node.isBlock(g)&&"TABLE"!==g.tagName&&a.node.clearAttributes(g)}else 0<w(g).find(".fr-marker").length&&(c=p(w(g),c,d,e))}return c}function A(b,d){"undefined"===typeof d&&(d={});d.style&&delete d.style;var e=a.selection.isCollapsed();
a.selection.save();var h=a.$el.find(".fr-marker");if(b&&h.length&&(h[0].parentNode&&h[0].parentNode.tagName===b.toUpperCase()||h[1].parentNode.tagName===b.toUpperCase())){var r=h[0];h[0].parentNode.tagName!==b.toUpperCase()&&(r=h[1]);for(h=r.parentNode.previousSibling;null!=h;)h.nodeType===Node.TEXT_NODE&&(h.textContent=h.textContent.replace(/\u200B/g,"")),h=h.previousSibling;for(r=r.parentNode.nextSibling;null!=r;)r.nodeType===Node.TEXT_NODE&&(r.textContent=r.textContent.replace(/\u200B/g,"")),r=
r.nextSibling}for(r=!0;r;){r=!1;h=a.$el.find(".fr-marker");for(var f=0;f<h.length;f++){var g=w(h[f]),x=null;g.attr("data-cloned")||e||(x=g.clone().removeClass("fr-marker").addClass("fr-clone"),g.data("type")&&"true"===g.data("type").toString()?g.attr("data-cloned",!0).after(x):g.attr("data-cloned",!0).before(x));if(L(g,b,d,e)){r=!0;break}}}p(a.$el,0,b,d);e||(a.$el.find(".fr-marker").remove(),a.$el.find(".fr-clone").removeClass("fr-clone").addClass("fr-marker"));e&&a.$el.find(".fr-marker").before(c.INVISIBLE_SPACE).after(c.INVISIBLE_SPACE);
a.html.cleanEmptyTags();a.el.normalize();a.selection.restore();if(d=a.win.getSelection()&&a.win.getSelection().anchorNode)if(e=a.node.blockParent(d),r=d.textContent.replace(/\u200B/g,"").length?!0:!1,f=a.win.getSelection().getRangeAt(0),h=f.startOffset,f=f.endOffset,a.selection.text().replace(/\u200B/g,"").length||m(e,d),e=a.win.getSelection().getRangeAt(0),d.nodeType===Node.TEXT_NODE){if(!r||!a.selection.text().length&&h===f){var l=d.textContent.search(/\u200B/g)+1;a.browser.msie?(b=a.doc.createRange(),
a.selection.get().removeAllRanges(),b.setStart(d,l),b.setEnd(d,l),a.selection.get().addRange(b)):"a"!==b&&(e.setStart(d,l),e.setEnd(d,l))}}else{b=0;r=w(d).contents();if(a.browser.msie){for(;d=r[b];)d.nodeType===Node.TEXT_NODE&&0<=d.textContent.search(/\u200B/g)&&(l=d),b++;l=w(l)}else l=r.filter(function(a){return a.nodeType===Node.TEXT_NODE&&0<=a.textContent.search(/\u200B/g)});l.length&&!a.opts.trackChangesEnabled&&(b=l.text().search(/\u200B/g)+1,e.setStart(l.get(0),b),e.setEnd(l.get(0),b))}}function m(a,
b){if(a&&b)if(a.isSameNode(b)?a.textContent=a.textContent.replace(/\u200B(?=.*\u200B)/g,""):a.nodeType===Node.TEXT_NODE&&(a.textContent=a.textContent.replace(/\u200B/g,"")),a.childNodes.length)Array.isArray(a.childNodes)&&a.childNodes.forEach(function(a){m(a,b)});else return!1}function R(a,b){a=w(a);a.css(b,"");""===a.attr("style")&&a.replaceWith(a.html())}function t(a,b){return 0===w(a).attr("style").indexOf("".concat(b,":"))||0<=w(a).attr("style").indexOf(";".concat(b,":"))||0<=w(a).attr("style").indexOf("; ".concat(b,
":"))}function D(b,d){var e=null;if(a.selection.isCollapsed()){a.markers.insert();var h=a.$el.find(".fr-marker");var r=h.parent();a.node.openTagString(r.get(0))==='<span style="'.concat(b,": ").concat(r.css(b),';">')?(a.node.isEmpty(r.get(0))?(e=w(a.doc.createElement("span")).attr("style","".concat(b,": ").concat(d,";")).html("".concat(c.INVISIBLE_SPACE).concat(c.MARKERS)),r.replaceWith(e)):(r={},r["style*"]="".concat(b,":"),L(h,"span",r,!0),h=a.$el.find(".fr-marker"),d?(e=w(a.doc.createElement("span")).attr("style",
"".concat(b,": ").concat(d,";")).html("".concat(c.INVISIBLE_SPACE).concat(c.MARKERS)),h.replaceWith(e)):h.replaceWith(c.INVISIBLE_SPACE+c.MARKERS)),a.html.cleanEmptyTags()):a.node.isEmpty(r.get(0))&&r.is("span")?(h.replaceWith(c.MARKERS),r.css(b,d)):(h.get(0).nextSibling&&a.node.isBlock(h.get(0).nextSibling)&&!h.get(0).previousSibling&&"LI"===h.get(0).parentNode.tagName&&h.get(0).nextSibling.prepend(h.get(0)),e=d?w('<span style="'.concat(b,": ").concat(d,';">').concat(c.INVISIBLE_SPACE).concat(c.MARKERS,
"</span>")):w("<span>".concat(c.INVISIBLE_SPACE).concat(c.MARKERS,"</span>")),h.replaceWith(e));e&&v(e,b,d)}else{a.selection.save();if(null===d||"color"===b&&0<a.$el.find(".fr-marker").parents("u, a").length)for(e=a.$el.find(".fr-marker"),r=0;r<e.length;r++)if(h=w(e[r]),!0===h.data("type")||"true"===h.data("type"))for(;a.node.isFirstSibling(h.get(0))&&!h.parent().is(a.$el)&&!a.node.isElement(h.parent().get(0))&&!a.node.isBlock(h.parent().get(0));)h.parent().before(h);else for(;a.node.isLastSibling(h.get(0))&&
!h.parent().is(a.$el)&&!a.node.isElement(h.parent().get(0))&&!a.node.isBlock(h.parent().get(0));)h.parent().after(h);for(e=a.$el.find('.fr-marker[data-type="true"]').get(0).nextSibling;e.firstChild;)e=e.firstChild;h={"class":"fr-unprocessed"};d&&(h.style="".concat(b,": ").concat(d,";"));l(e,"span",h);a.$el.find(".fr-marker + .fr-unprocessed").each(function(){w(this).prepend(w(this).prev())});a.$el.find(".fr-unprocessed + .fr-marker").each(function(){w(this).prev().append(w(this))});for((d||"").match(/\dem$/)&&
a.$el.find("span.fr-unprocessed").removeClass("fr-unprocessed");0<a.$el.find("span.fr-unprocessed").length;){e=a.$el.find("span.fr-unprocessed").first().removeClass("fr-unprocessed");h=C(e);e.parent().get(0).normalize();e.parent().is("span")&&1===e.parent().get(0).childNodes.length&&(r=d,a.browser.msie&&!d&&(r=""),e.parent().css(b,r),r=e,e=e.parent(),r.replaceWith(r.html()),1!==e.parent().get(0).childNodes.length||d||"background-color"!==b||e.parents("span").css(b,d));var f=e.find("span");h&&"background-color"!==
b&&(h.normalize(),f=w(h).find("span:not(.fr-unprocessed)"));for(r=f.length-1;0<=r;r--)R(f[r],b);v(e,b,d)}}q()}function C(b){if(b="LI"===b.tagName?b:w(b).parentsUntil(a.$el,"li").get(0)){var c=a.selection.info(b);if(c.atStart&&c.atEnd)return b;if(c.atStart&&!c.atEnd){var d=w(b).find(".fr-marker[data-type=false]").get(0);c=w(d).parentsUntil(a.$el,"li").get(0);var e=w(d).parent().get(0);if((d=d.nextSibling)&&0<=["UL","OL"].indexOf(d.tagName)||!c.isSameNode(b)||!d&&("LI"===e.tagName||!e.nextSibling||
0<=["UL","OL"].indexOf(e.nextSibling.tagName)||a.node.isVoid(e.nextSibling)))return b}}}function v(b,c,d){var e,r=b.parentsUntil(a.$el,"span[style]"),f=[];for(e=r.length-1;0<=e;e--)t(r[e],c)||f.push(r[e]);r=r.not(f);if(r.length){var u=f=e="",g="",x=b.get(0);do x=x.parentNode,w(x).addClass("fr-split"),e+=a.node.closeTagString(x),f=a.node.openTagString(w(x).clone().addClass("fr-split").get(0))+f,r.get(0)!==x&&(u+=a.node.closeTagString(x),g=a.node.openTagString(w(x).clone().addClass("fr-split").get(0))+
g);while(r.get(0)!==x);var l="".concat(e+a.node.openTagString(w(r.get(0)).clone().css(c,d||"").get(0))+g+b.css(c,"").get(0).outerHTML+u,"</span>").concat(f);b.replaceWith('<span id="fr-break"></span>');b=r.get(0).outerHTML;w(r.get(0)).replaceWith(b.replace(/<span id="fr-break"><\/span>/g,function(){return l}))}}function z(a,c){var d=function(a){return a.split(";").reduce(function(a,c){c=c.split(":");var d=b(c,2);c=d[0];d=d[1];c&&d&&(a[c.trim()]=d.trim());return a},{})};a=Object.assign(d(c),d(a));
return Object.entries(a).map(function(a){a=b(a,2);var c=a[1];return"".concat(a[0],": ").concat(c)}).join("; ")}function q(){for(var b;0<a.$el.find(".fr-split:empty").length;)a.$el.find(".fr-split:empty").remove();a.$el.find(".fr-split").removeClass("fr-split");a.$el.find('[style=""]').removeAttr("style");a.$el.find('[class=""]').removeAttr("class");a.html.cleanEmptyTags();b=a.$el.find("span");for(var c=b.length-1;0<=c;c--){var d=b[c];d.attributes&&0!==d.attributes.length||w(d).replaceWith(d.innerHTML)}a.el.normalize();
c=a.$el.find("span[style] + span[style]");for(b=0;b<c.length;b++){d=w(c[b]);var e=w(c[b]).prev();d.get(0).previousSibling===e.get(0)&&a.node.openTagString(d.get(0))===a.node.openTagString(e.get(0))&&(d.prepend(e.html()),e.remove())}a.$el.find("span[style] span[style]").each(function(){if(0<=w(this).attr("style").indexOf("font-size")){var a=w(this).parents("span[style]");a.attr("style")&&0<=a.attr("style").indexOf("background-color")&&(w(this).attr("style",z(w(this).attr("style"),a.attr("style"))),
L(w(this),"span[style]",{},!1))}});a.el.normalize();a.selection.restore()}function G(b,c){"undefined"===typeof c&&(c={});c.style&&delete c.style;var d=a.selection.ranges(0),e=d.startContainer;e.nodeType===Node.ELEMENT_NODE&&0<e.childNodes.length&&e.childNodes[d.startOffset]&&(e=e.childNodes[d.startOffset]);if(!d.collapsed&&e.nodeType===Node.TEXT_NODE&&d.startOffset===(e.textContent||"").length){for(;!a.node.isBlock(e.parentNode)&&!e.nextSibling;)e=e.parentNode;e.nextSibling&&(e=e.nextSibling)}for(d=
e;d&&d.nodeType===Node.ELEMENT_NODE&&!B(d,f(b,c));)d=d.firstChild;if(d&&d.nodeType===Node.ELEMENT_NODE&&B(d,f(b,c)))return!0;e&&e.nodeType!==Node.ELEMENT_NODE&&(e=e.parentNode);for(;e&&e.nodeType===Node.ELEMENT_NODE&&e!==a.el&&!B(e,f(b,c));)e=e.parentNode;return e&&e.nodeType===Node.ELEMENT_NODE&&e!==a.el&&B(e,f(b,c))?!0:!1}var w=a.$;return{is:G,toggle:function(b,c){if(a.browser.safari&&a.shared.safariSelection){var d=a.shared.safariSelection,e=d.startContainer,r=d.endContainer,f=d.startOffset;d=
d.endOffset;var g=a.doc.createRange();g.setStart(e,f);g.setEnd(r,d);a.selection.get().removeAllRanges();a.selection.get().addRange(g);a.shared.safariSelection=null}G(b,c)?A(b,c):n(b,c)},apply:n,remove:A,applyStyle:D,removeStyle:function(a){D(a,null)}}};c.MODULES.spaces=function(a){function b(b,d){var e=b.previousSibling,f=b.nextSibling,g=b.textContent,l=b.parentNode,B=["P","DIV","BR"],p=[c.ENTER_P,c.ENTER_DIV,c.ENTER_BR];if(!a.html.isPreformatted(l)){if(d){g=a.opts.preserveTabSpaces?g.replace(/[\f\n\r\v]{2,}/g,
" "):g.replace(/[\f\n\r\t\v ]{2,}/g," ");f&&"BR"!==f.tagName&&!a.node.isBlock(f)||!(a.node.isBlock(l)||a.node.isLink(l)&&!l.nextSibling||a.node.isElement(l))||(g=g.replace(/[\f\n\r\t\v ]{1,}$/g,""));e&&"BR"!==e.tagName&&!a.node.isBlock(e)||!(a.node.isBlock(l)||a.node.isLink(l)&&!l.previousSibling||a.node.isElement(l))||(g=g.replace(/^[\f\n\r\t\v ]{1,}/g,""));if(a.node.isBlock(f)||a.node.isBlock(e))if(!e||e&&"A"!==e.tagName)g=g.replace(/^[\f\n\r\t\v ]{1,}/g,"");" "!==g||!(e&&a.node.isVoid(e)||f&&a.node.isVoid(f))||
e&&f&&a.node.isVoid(e)||f&&e&&a.node.isVoid(f)||(g="")}(!e&&a.node.isBlock(f)||!f&&a.node.isBlock(e))&&a.node.isBlock(l)&&l!==a.el&&(g=g.replace(/^[\f\n\r\t\v ]{1,}/g,""));d||(g=g.replace(new RegExp(c.UNICODE_NBSP,"g")," "));l="";for(var m=0;m<g.length;m++)l=32!=g.charCodeAt(m)||0!==m&&32!=l.charCodeAt(m-1)||!((a.opts.enter===c.ENTER_BR||a.opts.enter===c.ENTER_DIV)&&(e&&"BR"===e.tagName||f&&"BR"===f.tagName)||e&&f&&e.tagName===f.tagName||!(e&&f&&a.node.isVoid(e)||e&&f&&a.node.isVoid(f))||e&&f&&0<=
["STRONG","U","EM"].indexOf(e.tagName)&&"BR"===f.tagName)?l+g[m]:l+c.UNICODE_NBSP;a.browser.chrome&&1<l.length&&32===l.charCodeAt(l.length-1)&&(f&&f.nextSibling&&f.nextSibling.nextSibling&&"BR"===f.nextSibling.nextSibling.tagName||f&&"BR"===f.tagName)&&(l=l.substring(0,l.length-1)+c.UNICODE_NBSP);if(!f||f&&a.node.isBlock(f)||f&&f.nodeType===Node.ELEMENT_NODE&&a.win.getComputedStyle(f)&&"block"===a.win.getComputedStyle(f).display)if(!a.node.isVoid(e)||e&&-1!==B.indexOf(e.tagName)&&-1!==p.indexOf(a.opts.enter))l=
l.replace(/ $/,c.UNICODE_NBSP);!e||a.node.isVoid(e)||a.node.isBlock(e)||(l=l.replace(/^\u00A0([^ $])/," $1"),1!==l.length||160!==l.charCodeAt(0)||!f||a.node.isVoid(f)||a.node.isBlock(f)||a.node.hasClass(e,"fr-marker")&&a.node.hasClass(f,"fr-marker")||(l=" "));d||(l=l.replace(/([^ \u00A0])\u00A0([^ \u00A0])/g,"$1 $2"));b.textContent!==l&&(b.textContent=l)}}function d(c,d){"undefined"!==typeof c&&c||(c=a.el);"undefined"===typeof d&&(d=!1);if(!c.getAttribute||"false"!==c.getAttribute("contenteditable"))if(c.nodeType===
Node.TEXT_NODE)b(c,d);else if(c.nodeType===Node.ELEMENT_NODE)for(c=a.doc.createTreeWalker(c,NodeFilter.SHOW_TEXT,a.node.filter(function(b){for(var c=b.parentNode;c&&c!==a.el;)if("STYLE"!==c.tagName&&"IFRAME"!==c.tagName&&"PRE"!==c.tagName)c=c.parentNode;else return!1;return null!==b.textContent.match(/([ \u00A0\f\n\r\t\v]{2,})|(^[ \u00A0\f\n\r\t\v]{1,})|([ \u00A0\f\n\r\t\v]{1,}$)/g)&&!a.node.hasClass(b.parentNode,"fr-marker")}),!1);c.nextNode();)b(c.currentNode,d)}return{normalize:d,normalizeAroundCursor:function(){for(var b=
[],c=a.el.querySelectorAll(".fr-marker"),e=0;e<c.length;e++){var f=(f=a.node.blockParent(c[e]))?f:c[e];for(var g=f.nextSibling,A=f.previousSibling;g&&"BR"===g.tagName;)g=g.nextSibling;for(;A&&"BR"===A.tagName;)A=A.previousSibling;f&&0>b.indexOf(f)&&b.push(f);A&&0>b.indexOf(A)&&b.push(A);g&&0>b.indexOf(g)&&b.push(g)}for(c=0;c<b.length;c++)d(b[c])}}};c.INVISIBLE_SPACE="&#8203;";c.HAIR_SPACE="&#8202;";c.START_MARKER='<span class="fr-marker" data-id="0" data-type="true" style="display: none; line-height: 0;">'.concat(c.INVISIBLE_SPACE,
"</span>");c.END_MARKER='<span class="fr-marker" data-id="0" data-type="false" style="display: none; line-height: 0;">'.concat(c.INVISIBLE_SPACE,"</span>");c.MARKERS=c.START_MARKER+c.END_MARKER;c.MODULES.markers=function(a){function b(b,d){var e=l(a.doc.createElement("SPAN"));e.addClass("fr-marker").attr("data-id",d).attr("data-type",b).attr("style","display: ".concat(a.browser.safari?"none":"inline-block","; line-height: 0;")).html(c.INVISIBLE_SPACE);return e.get(0)}function d(){if(!a.$wp)return null;
try{var b=a.selection.ranges(0),d=b.commonAncestorContainer;if(d!==a.el&&!a.$el.contains(d))return null;var e=b.cloneRange(),f=b.cloneRange();e.collapse(!0);var g=l(a.doc.createElement("SPAN")).addClass("fr-marker").attr("style","display: none; line-height: 0;").html(c.INVISIBLE_SPACE).get(0);e.insertNode(g);if(g=a.$el.find("span.fr-marker").get(0)){for(var B=g.nextSibling;B&&B.nodeType===Node.TEXT_NODE&&0===B.textContent.length;)l(B).remove(),B=a.$el.find("span.fr-marker").get(0).nextSibling;a.selection.clear();
a.selection.get().addRange(f);return g}return null}catch(ma){console.warn("MARKER",ma)}}function f(){a.$el.find(".fr-marker").remove()}var l=a.$;return{place:function(c,d,e){var f;try{var g=c.cloneRange();g.collapse(d);g.insertNode(b(d,e));if(!0===d){var n=a.$el.find('span.fr-marker[data-type="true"][data-id="'.concat(e,'"]')).get(0);for(f=n.nextSibling;f&&f.nodeType===Node.TEXT_NODE&&0===f.textContent.length;)l(f).remove(),f=n.nextSibling}if(!0===d&&!c.collapsed){for(;!a.node.isElement(n.parentNode)&&
!f;)-1</\bfa\b/g.test(n.parentNode.className)&&"I"===n.parentNode.tagName?l(n.parentNode).before(n):l(n.parentNode).after(n),f=n.nextSibling;if(f&&f.nodeType===Node.ELEMENT_NODE&&a.node.isBlock(f)&&"HR"!==f.tagName){var B=[f];do f=B[0],B=a.node.contents(f);while(B[0]&&a.node.isBlock(B[0]));l(f).prepend(l(n))}}if(!1===d&&!c.collapsed){n=a.$el.find('span.fr-marker[data-type="false"][data-id="'.concat(e,'"]')).get(0);if((f=n.previousSibling)&&f.nodeType===Node.ELEMENT_NODE&&a.node.isBlock(f)&&"HR"!==
f.tagName){B=[f];do f=B[B.length-1],B=a.node.contents(f);while(B[B.length-1]&&a.node.isBlock(B[B.length-1]));l(f).append(l(n))}if(n.parentNode&&0<=["TD","TH"].indexOf(n.parentNode.tagName)||!n.previousSibling&&a.node.isBlock(n.parentElement))n.parentNode.previousSibling&&!n.previousSibling?l(n.parentNode.previousSibling).append(n):0<=["TD","TH"].indexOf(n.parentNode.tagName)&&n.parentNode.firstChild===n&&(n.parentNode.previousSibling?l(n.parentNode.previousSibling).append(n):n.parentNode.parentNode&&
n.parentNode.parentNode.previousSibling&&l(n.parentNode.parentNode.previousSibling).append(n))}var p=a.$el.find('span.fr-marker[data-type="'.concat(d,'"][data-id="').concat(e,'"]')).get(0);p&&(p.style.display="none");return p}catch(ca){return null}},insert:d,split:function(){a.selection.isCollapsed()||a.selection.remove();var b=a.$el.find(".fr-marker").get(0);b||(b=d());if(!b)return null;var c=a.node.deepestParent(b);c||(c=a.node.blockParent(b))&&"LI"!==c.tagName&&(c=null);if(c)if(a.node.isBlock(c)&&
a.node.isEmpty(c))"LI"!==c.tagName||c.parentNode.firstElementChild!==c||a.node.isEmpty(c.parentNode)?l(c).replaceWith('<span class="fr-marker"></span>'):l(c).append('<span class="fr-marker"></span>');else if(a.cursor.isAtStart(b,c))l(c).before('<span class="fr-marker"></span>'),l(b).remove();else if(a.cursor.isAtEnd(b,c))l(c).after('<span class="fr-marker"></span>'),l(b).remove();else{var e=b,f="",g="";do e=e.parentNode,f+=a.node.closeTagString(e),g=a.node.openTagString(e)+g;while(e!==c);l(b).replaceWith('<span id="fr-break"></span>');
b=a.node.openTagString(c)+l(c).html()+a.node.closeTagString(c);b=b.replace(/<span id="fr-break"><\/span>/g,"".concat(f,'<span class="fr-marker"></span>').concat(g));l(c).replaceWith(b)}return a.$el.find(".fr-marker").get(0)},insertAtPoint:function(b){var c=b.clientX,e=b.clientY;f();b=null;if("undefined"!==typeof a.doc.caretPositionFromPoint){var g=a.doc.caretPositionFromPoint(c,e);b=a.doc.createRange();b.setStart(g.offsetNode,g.offset);b.setEnd(g.offsetNode,g.offset)}else"undefined"!==typeof a.doc.caretRangeFromPoint&&
(g=a.doc.caretRangeFromPoint(c,e),b=a.doc.createRange(),b.setStart(g.startContainer,g.startOffset),b.setEnd(g.startContainer,g.startOffset));if(null!==b&&"undefined"!==typeof a.win.getSelection)c=a.win.getSelection(),c.removeAllRanges(),c.addRange(b);else if("undefined"!==typeof a.doc.body.createTextRange)try{b=a.doc.body.createTextRange();b.moveToPoint(c,e);var l=b.duplicate();l.moveToPoint(c,e);b.setEndPoint("EndToEnd",l);b.select()}catch(R){return!1}d()},remove:f}};c.MODULES.selection=function(a){function b(){var b=
"";a.win.getSelection?b=a.win.getSelection():a.doc.getSelection?b=a.doc.getSelection():a.doc.selection&&(b=a.doc.selection.createRange().text);return b.toString()}function d(){return a.win.getSelection?a.win.getSelection():a.doc.getSelection?a.doc.getSelection():a.doc.selection.createRange()}function f(b){var c=d();if(c&&c.getRangeAt&&c.rangeCount){var e=[];for(var f=0;f<c.rangeCount;f++)e.push(c.getRangeAt(f))}else e=a.doc.createRange?[a.doc.createRange()]:[];return"undefined"!==typeof b?e[b]:e}
function l(){var a=d();try{a.removeAllRanges?a.removeAllRanges():a.empty?a.empty():a.clear&&a.clear()}catch(u){}}function n(a,b){a.nodeType===Node.ELEMENT_NODE&&0<a.childNodes.length&&a.childNodes[b]&&(a=a.childNodes[b]);a.nodeType===Node.TEXT_NODE&&(a=a.parentNode);return a}function p(){if(a.$wp){a.markers.remove();var b=f(),c=[],d;for(d=0;d<b.length;d++)if(b[d].startContainer!==a.doc||a.browser.msie){var e=b[d];var g=e.collapsed,l=a.markers.place(e,!0,d),n=a.markers.place(e,!1,d);"undefined"!==
typeof l&&l||!g||(k(".fr-marker").remove(),a.selection.setAtEnd(a.el));a.el.normalize();if(a.browser.safari&&!g)try{e=a.doc.createRange(),e.setStartAfter(l),e.setEndBefore(n),c.push(e)}catch(K){}}if(a.browser.safari&&c.length)for(a.selection.clear(),d=0;d<c.length;d++)a.selection.get().addRange(c[d])}}function m(){var b,c=a.el.querySelectorAll('.fr-marker[data-type="true"]');if(!a.$wp)return a.markers.remove(),!1;if(0===c.length)return!1;if(a.browser.msie||a.browser.edge)for(b=0;b<c.length;b++)c[b].style.display=
"inline-block";a.core.hasFocus()||a.browser.msie||a.browser.webkit||a.$el.focus();l();var e=d();for(b=0;b<c.length;b++){var f=k(c[b]).data("id"),g=c[b],n=a.doc.createRange();f=a.$el.find('.fr-marker[data-type="false"][data-id="'.concat(f,'"]'));(a.browser.msie||a.browser.edge)&&f.css("display","inline-block");var B=null;if(0<f.length){f=f[0];try{for(var K=!1,ea=g.nextSibling,Q=null;ea&&ea.nodeType===Node.TEXT_NODE&&0===ea.textContent.length;)Q=ea,ea=ea.nextSibling,k(Q).remove();for(var p=f.nextSibling;p&&
p.nodeType===Node.TEXT_NODE&&0===p.textContent.length;)Q=p,p=p.nextSibling,k(Q).remove();if(g.nextSibling===f||f.nextSibling===g){for(var I=g.nextSibling===f?g:f,q=I===g?f:g,L=I.previousSibling;L&&L.nodeType===Node.TEXT_NODE&&0===L.length;)Q=L,L=L.previousSibling,k(Q).remove();if(L&&L.nodeType===Node.TEXT_NODE)for(;L&&L.previousSibling&&L.previousSibling.nodeType===Node.TEXT_NODE;)L.previousSibling.textContent+=L.textContent,L=L.previousSibling,k(L.nextSibling).remove();for(var m=q.nextSibling;m&&
m.nodeType===Node.TEXT_NODE&&0===m.length;)Q=m,m=m.nextSibling,k(Q).remove();if(m&&m.nodeType===Node.TEXT_NODE)for(;m&&m.nextSibling&&m.nextSibling.nodeType===Node.TEXT_NODE;)m.nextSibling.textContent=m.textContent+m.nextSibling.textContent,m=m.nextSibling,k(m.previousSibling).remove();L&&(a.node.isVoid(L)||a.node.isBlock(L))&&(L=null);m&&(a.node.isVoid(m)||a.node.isBlock(m))&&(m=null);if(L&&m&&L.nodeType===Node.TEXT_NODE&&m.nodeType===Node.TEXT_NODE){k(g).remove();k(f).remove();var W=L.textContent.length;
L.textContent+=m.textContent;k(m).remove();a.spaces.normalize(L);n.setStart(L,W);n.setEnd(L,W);K=!0}else!L&&m&&m.nodeType===Node.TEXT_NODE?(k(g).remove(),k(f).remove(),a.opts.htmlUntouched||a.spaces.normalize(m),B=k(a.doc.createTextNode("\u200b")).get(0),k(m).before(B),n.setStart(m,0),n.setEnd(m,0),K=!0):!m&&L&&L.nodeType===Node.TEXT_NODE&&(k(g).remove(),k(f).remove(),a.opts.htmlUntouched||a.spaces.normalize(L),B=k(a.doc.createTextNode("\u200b")).get(0),k(L).after(B),n.setStart(L,L.textContent.length),
n.setEnd(L,L.textContent.length),K=!0)}K||(Q=K=void 0,(a.browser.chrome||a.browser.edge)&&g.nextSibling===f?(K=A(f,n,!0)||n.setStartAfter(f),Q=A(g,n,!1)||n.setEndBefore(g)):(g.previousSibling===f&&(g=f,f=g.nextSibling),f.nextSibling&&"BR"===f.nextSibling.tagName||!f.nextSibling&&a.node.isBlock(g.previousSibling)||g.previousSibling&&"BR"===g.previousSibling.tagName||(g.style.display="inline",f.style.display="inline",B=k(a.doc.createTextNode("\u200b")).get(0)),K=A(g,n,!0)||k(g).before(B)&&n.setStartBefore(g),
Q=A(f,n,!1)||k(f).after(B)&&n.setEndAfter(f)),"function"===typeof K&&K(),"function"===typeof Q&&Q())}catch(ya){console.warn("RESTORE RANGE",ya)}}B&&k(B).remove();try{e.addRange(n)}catch(ya){console.warn("ADD RANGE",ya)}}a.markers.remove()}function A(b,c,d){var e=b.previousSibling,h=b.nextSibling;if(e&&h&&e.nodeType===Node.TEXT_NODE&&h.nodeType===Node.TEXT_NODE){var f=e.textContent.length;if(d)return h.textContent=e.textContent+h.textContent,k(e).remove(),k(b).remove(),a.opts.htmlUntouched||a.spaces.normalize(h),
function(){c.setStart(h,f)};e.textContent+=h.textContent;k(h).remove();k(b).remove();a.opts.htmlUntouched||a.spaces.normalize(e);return function(){c.setEnd(e,f)}}if(e&&!h&&e.nodeType===Node.TEXT_NODE){f=e.textContent.length;if(d)return a.opts.htmlUntouched||a.spaces.normalize(e),function(){c.setStart(e,f)};a.opts.htmlUntouched||a.spaces.normalize(e);return function(){c.setEnd(e,f)}}if(h&&!e&&h.nodeType===Node.TEXT_NODE){if(d)return a.opts.htmlUntouched||a.spaces.normalize(h),function(){c.setStart(h,
0)};a.opts.htmlUntouched||a.spaces.normalize(h);return function(){c.setEnd(h,0)}}return!1}function t(){for(var b=a.$el.find(".fr-marker"),c=0;c<b.length;c++)if(k(b[c]).parentsUntil('.fr-element, [contenteditable="true"]','[contenteditable="false"]').length)return!1;return!0}function R(){for(var a=f(),b=0;b<a.length;b++)if(!a[b].collapsed)return!1;return!0}function D(b){var c=!1,d=!1;if(a.win.getSelection){var e=a.win.getSelection();e.rangeCount&&(d=e.getRangeAt(0),e=d.cloneRange(),e.selectNodeContents(b),
e.setEnd(d.startContainer,d.startOffset),c=C(e),e.selectNodeContents(b),e.setStart(d.endContainer,d.endOffset),d=C(e))}else a.doc.selection&&"Control"!==a.doc.selection.type&&(d=a.doc.selection.createRange(),e=d.duplicate(),e.moveToElementText(b),e.setEndPoint("EndToStart",d),c=C(e),e.moveToElementText(b),e.setEndPoint("StartToEnd",d),d=C(e));return{atStart:c,atEnd:d}}function C(a){return""===a.toString().replace(/[\u200B-\u200D\uFEFF]/g,"")}function v(b,c){"undefined"===typeof c&&(c=!0);var d=k(b).html();
d&&d.replace(/\u200b/g,"").length!==d.length&&k(b).html(d.replace(/\u200b/g,""));d=a.node.contents(b);for(var e=0;e<d.length;e++)d[e].nodeType!==Node.ELEMENT_NODE?k(d[e]).remove():(v(d[e],0===e),0===e&&(c=!1));b.nodeType===Node.TEXT_NODE?(c=k(document.createElement("span")).attr("data-first","true").attr("data-text","true"),k(b)[0].replaceWith(c[0])):c&&k(b).attr("data-first",!0)}function w(){return 0===k(this).find("fr-inner").length}function z(b,c){var d=a.node.contents(b.get(0));0<=["TD","TH"].indexOf(b.get(0).tagName)&&
1===b.find(".fr-marker").length&&(a.node.hasClass(d[0],"fr-marker")||"BR"==d[0].tagName&&a.node.hasClass(d[0].nextElementSibling,"fr-marker"))&&b.attr("data-del-cell",!0);for(b=0;b<d.length;b++){var e=d[b];a.node.hasClass(e,"fr-marker")?c=(c+1)%2:c?0<k(e).find(".fr-marker").length?c=z(k(e),c):0>["TD","TH"].indexOf(e.tagName)&&!a.node.hasClass(e,"fr-inner")?!a.opts.keepFormatOnDelete||0<a.$el.find("[data-first]").length||a.node.isVoid(e)?k(e).remove():v(e):a.node.hasClass(e,"fr-inner")?0===k(e).find(".fr-inner").length?
k(e).html("<br>"):k(e).find(".fr-inner").filter(w).html("<br>"):(k(e).empty(),k(e).attr("data-del-cell",!0)):0<k(e).find(".fr-marker").length&&(c=z(k(e),c))}return c}function q(){try{if(!a.$wp)return!1;for(var b=f(0).commonAncestorContainer;b&&!a.node.isElement(b);)b=b.parentNode;return a.node.isElement(b)?!0:!1}catch(u){return!1}}function G(b,d){if(!b||0<b.getElementsByClassName("fr-marker").length)return!1;for(var e=b.firstChild;e&&(a.node.isBlock(e)||d&&!a.node.isVoid(e)&&e.nodeType===Node.ELEMENT_NODE);)b=
e,e=e.firstChild;b.innerHTML=c.MARKERS+b.innerHTML}function H(b,d){if(!b||0<b.getElementsByClassName("fr-marker").length)return!1;for(var e=b.lastChild;e&&(a.node.isBlock(e)||d&&!a.node.isVoid(e)&&e.nodeType===Node.ELEMENT_NODE);)b=e,e=e.lastChild;d=a.doc.createElement("SPAN");d.setAttribute("id","fr-sel-markers");for(d.innerHTML=c.MARKERS;b.parentNode&&a.opts.htmlAllowedEmptyTags&&0<=a.opts.htmlAllowedEmptyTags.indexOf(b.tagName.toLowerCase());)b=b.parentNode;b.appendChild(d);b=b.querySelector("#fr-sel-markers");
b.outerHTML=b.innerHTML}var k=a.$;return{text:b,get:d,ranges:f,clear:l,element:function(){var c=d();try{if(c.rangeCount){var e=f(0),h=e.startContainer,g;if(a.node.isElement(h)&&0===e.startOffset&&h.childNodes.length)for(;h.childNodes.length&&h.childNodes[0].nodeType===Node.ELEMENT_NODE;)h=h.childNodes[0];h.nodeType===Node.TEXT_NODE&&e.startOffset===(h.textContent||"").length&&h.nextSibling&&(h=h.nextSibling);if(h.nodeType===Node.ELEMENT_NODE){c=!1;if(a.node.isElement(h)&&""==h.textContent&&"IMG"==
h.childNodes[0].tagName&&h.childNodes.length)for(;h.childNodes.length&&h.childNodes[0].nodeType===Node.ELEMENT_NODE;)h=h.childNodes[0];if(0<h.childNodes.length&&h.childNodes[e.startOffset]){for(g=h.childNodes[e.startOffset];g&&g.nodeType===Node.TEXT_NODE&&0===g.textContent.length;)g=g.nextSibling;g&&g.textContent.replace(/\u200B/g,"")===b().replace(/\u200B/g,"")&&(h=g,c=!0);if(!c&&1<h.childNodes.length&&0<e.startOffset&&h.childNodes[e.startOffset-1]){for(g=h.childNodes[e.startOffset-1];g&&g.nodeType===
Node.TEXT_NODE&&0===g.textContent.length;)g=g.nextSibling;g&&g.textContent.replace(/\u200B/g,"")===b().replace(/\u200B/g,"")&&(h=g,c=!0)}}else!e.collapsed&&h.nextSibling&&h.nextSibling.nodeType===Node.ELEMENT_NODE&&(g=h.nextSibling)&&g.textContent.replace(/\u200B/g,"")===b().replace(/\u200B/g,"")&&(h=g,c=!0);!c&&0<h.childNodes.length&&k(h.childNodes[0]).text().replace(/\u200B/g,"")===b().replace(/\u200B/g,"")&&0>["BR","IMG","HR"].indexOf(h.childNodes[0].tagName)&&(h=h.childNodes[0])}for(;h.nodeType!==
Node.ELEMENT_NODE&&h.parentNode;)h=h.parentNode;for(e=h;e&&"HTML"!==e.tagName;){if(e===a.el)return h;e=k(e).parent()[0]}}}catch(N){}return a.el},endElement:function(){var c=d();try{if(c.rangeCount){var e=f(0),h=e.endContainer,g;h.nodeType===Node.ELEMENT_NODE&&(c=!1,0<h.childNodes.length&&h.childNodes[e.endOffset]&&k(h.childNodes[e.endOffset]).text()===b()?(h=h.childNodes[e.endOffset],c=!0):!e.collapsed&&h.previousSibling&&h.previousSibling.nodeType===Node.ELEMENT_NODE?(g=h.previousSibling)&&g.textContent.replace(/\u200B/g,
"")===b().replace(/\u200B/g,"")&&(h=g,c=!0):!e.collapsed&&0<h.childNodes.length&&h.childNodes[e.endOffset]&&(g=h.childNodes[e.endOffset].previousSibling,g.nodeType===Node.ELEMENT_NODE&&g&&g.textContent.replace(/\u200B/g,"")===b().replace(/\u200B/g,"")&&(h=g,c=!0)),!c&&0<h.childNodes.length&&k(h.childNodes[h.childNodes.length-1]).text()===b()&&0>["BR","IMG","HR"].indexOf(h.childNodes[h.childNodes.length-1].tagName)&&(h=h.childNodes[h.childNodes.length-1]));h.nodeType===Node.TEXT_NODE&&0===e.endOffset&&
h.previousSibling&&h.previousSibling.nodeType===Node.ELEMENT_NODE&&(h=h.previousSibling);for(;h.nodeType!==Node.ELEMENT_NODE&&h.parentNode;)h=h.parentNode;for(e=h;e&&"HTML"!==e.tagName;){if(e===a.el)return h;e=k(e).parent()[0]}}}catch(N){}return a.el},save:p,restore:m,isCollapsed:R,isFull:function(){if(R())return!1;a.selection.save();var b=a.el.querySelectorAll("td, th, img, br, iframe"),c;for(c=0;c<b.length;c++)if(b[c].nextSibling||"IMG"===b[c].tagName||"IFRAME"===b[c].tagName)b[c].innerHTML='<span class="fr-mk" style="display: none;">&nbsp;</span>'.concat(b[c].innerHTML);
var d=!1;b=D(a.el);b.atStart&&b.atEnd&&(d=!0);b=a.el.querySelectorAll(".fr-mk");for(c=0;c<b.length;c++)b[c].parentNode.removeChild(b[c]);a.selection.restore();return d},inEditor:q,remove:function(){function b(a){for(a=a.previousSibling;a&&a.nodeType===Node.TEXT_NODE&&0===a.textContent.length;){var b=a;a=a.previousSibling;k(b).remove()}return a}function d(a){for(a=a.nextSibling;a&&a.nodeType===Node.TEXT_NODE&&0===a.textContent.length;){var b=a;a=a.nextSibling;k(b).remove()}return a}if(R())return!0;
var e;p();var f=a.$el.find('.fr-marker[data-type="true"]');for(e=0;e<f.length;e++)for(var g=f[e];!(b(g)||a.node.isBlock(g.parentNode)||a.$el.is(g.parentNode)||a.node.hasClass(g.parentNode,"fr-inner"));)k(g.parentNode).before(g);f=a.$el.find('.fr-marker[data-type="false"]');for(e=0;e<f.length;e++){for(g=f[e];!(d(g)||a.node.isBlock(g.parentNode)||a.$el.is(g.parentNode)||a.node.hasClass(g.parentNode,"fr-inner"));)k(g.parentNode).after(g);g.parentNode&&a.node.isBlock(g.parentNode)&&a.node.isEmpty(g.parentNode)&&
!a.$el.is(g.parentNode)&&!a.node.hasClass(g.parentNode,"fr-inner")&&a.opts.keepFormatOnDelete&&k(g.parentNode).after(g)}if(t())if(z(a.$el,0),e=a.$el.find('[data-first="true"]'),e.length)a.$el.find(".fr-marker").remove(),e.append(c.INVISIBLE_SPACE+c.MARKERS).removeAttr("data-first"),e.attr("data-text")&&e.replaceWith(e.html());else for(a.$el.find("table").filter(function(){return 0<k(this).find("[data-del-cell]").length&&k(this).find("[data-del-cell]").length===k(this).find("td, th").length}).remove(),
a.$el.find("[data-del-cell]").removeAttr("data-del-cell"),f=a.$el.find('.fr-marker[data-type="true"]'),e=0;e<f.length;e++){g=f[e];var l=g.nextSibling,n=a.$el.find('.fr-marker[data-type="false"][data-id="'.concat(k(g).data("id"),'"]')).get(0);if(n){if(g&&(!l||l!==n)){var K=a.node.blockParent(g);l=a.node.blockParent(n);var ea=!1,Q=!1;K&&0<=["UL","OL"].indexOf(K.tagName)&&(K=null,ea=!0);l&&0<=["UL","OL"].indexOf(l.tagName)&&(l=null,Q=!0);k(g).after(n);if(K!==l)if(null!==K||ea)if(null!==l||Q||0!==k(K).parentsUntil(a.$el,
"table").length)K&&l&&0===k(K).parentsUntil(a.$el,"table").length&&0===k(l).parentsUntil(a.$el,"table").length&&!k(K).contains(l)&&!k(l).contains(K)&&(k(K).append(k(l).html()),k(l).remove());else{for(l=K;!l.nextSibling&&l.parentNode!==a.el;)l=l.parentNode;for(l=l.nextSibling;l&&"BR"!==l.tagName;)g=l.nextSibling,k(K).append(l),l=g;l&&"BR"===l.tagName&&k(l).remove()}else(K=a.node.deepestParent(g))?(k(K).after(k(l).html()),k(l).remove()):0===k(l).parentsUntil(a.$el,"table").length&&(k(g).next().after(k(l).html()),
k(l).remove())}}else n=k(g).clone().attr("data-type",!1),k(g).after(n)}a.$el.find("li:empty").remove();a.opts.keepFormatOnDelete||a.html.fillEmptyBlocks();a.html.cleanEmptyTags(!0);a.opts.htmlUntouched||(a.clean.lists(),a.$el.find("li:empty").append("<br>"),a.spaces.normalize());e=a.$el.find(".fr-marker").last().get(0);f=a.$el.find(".fr-marker").first().get(0);"undefined"!==typeof e&&"undefined"!==typeof f&&!e.nextSibling&&f.previousSibling&&"BR"===f.previousSibling.tagName&&a.node.isElement(e.parentNode)&&
a.node.isElement(f.parentNode)&&a.$el.append("<br>");m()},blocks:function(b){var c=[],e;var g=d();if(q()&&g.rangeCount){var l=f();for(g=0;g<l.length;g++){var x=l[g],B=n(x.startContainer,x.startOffset),K=n(x.endContainer,x.endOffset);(e=a.node.blockParent(B))&&0>c.indexOf(e)&&c.push(e);(a.node.isBlock(B)||a.node.hasClass(B,"fr-inner"))&&0>c.indexOf(B)&&c.push(B);for(e=[];B!==K&&B!==a.el;)0>e.indexOf(B)&&B.children&&B.children.length?(e.push(B),B=B.children[0]):B.nextSibling?B=B.nextSibling:B.parentNode&&
(B=B.parentNode,e.push(B)),a.node.isBlock(B)&&0>e.indexOf(B)&&0>c.indexOf(B)&&(B!==K||0<x.endOffset)&&c.push(B);a.node.isBlock(K)&&0>c.indexOf(K)&&0<x.endOffset&&c.push(K);(e=a.node.blockParent(K))&&0>c.indexOf(e)&&c.push(e)}}for(g=c.length-1;0<g;g--)k(c[g-1]).contains(c[g])?b&&k(c[g]).find("ul, ol").length||c.splice(g-1,1):!k(c[g]).contains(c[g-1])||b&&k(c[g]).find("ul, ol").length||c.splice(g,1);return c},info:D,setAtEnd:H,setAtStart:G,setBefore:function(b,d){"undefined"===typeof d&&(d=!0);for(var e=
b.previousSibling;e&&e.nodeType===Node.TEXT_NODE&&0===e.textContent.length;)e=e.previousSibling;return e?(a.node.isBlock(e)?H(e):"BR"===e.tagName?k(e).before(c.MARKERS):k(e).after(c.MARKERS),!0):d?(a.node.isBlock(b)?G(b):k(b).before(c.MARKERS),!0):!1},setAfter:function(b,d){"undefined"===typeof d&&(d=!0);for(var e=b.nextSibling;e&&e.nodeType===Node.TEXT_NODE&&0===e.textContent.length;)e=e.nextSibling;return e?(a.node.isBlock(e)?G(e):k(e).before(c.MARKERS),!0):d?(a.node.isBlock(b)?H(b):k(b).after(c.MARKERS),
!0):!1},rangeElement:n}};Object.assign(c.DEFAULTS,{language:null});c.LANGUAGE={};c.MODULES.language=function(a){var b;return{_init:function(){c.LANGUAGE&&(b=c.LANGUAGE[a.opts.language]);b&&b.direction&&(a.opts.direction=b.direction)},translate:function(a){return b&&b.translation[a]&&b.translation[a].length?b.translation[a]:a}}};Object.assign(c.DEFAULTS,{placeholderText:"Type something"});c.MODULES.placeholder=function(a){function b(){a.$placeholder||(a.$placeholder=f(a.doc.createElement("SPAN")).addClass("fr-placeholder"),
a.$wp.append(a.$placeholder));var b=a.opts.iframe?a.$iframe.prev().outerHeight(!0):a.$el.prev().outerHeight(!0),c=0,d=0,e=0,g=0,l=0,B=0,p=a.node.contents(a.el),m=f(a.selection.element()).css("text-align");p.length&&p[0].nodeType===Node.ELEMENT_NODE?(p=f(p[0]),(0<a.$wp.prev().length||0<a.$el.prev().length)&&a.ready&&(c=a.helpers.getPX(p.css("margin-top")),g=a.helpers.getPX(p.css("padding-top")),d=a.helpers.getPX(p.css("margin-left")),e=a.helpers.getPX(p.css("margin-right")),l=a.helpers.getPX(p.css("padding-left")),
B=a.helpers.getPX(p.css("padding-right"))),a.$placeholder.css("font-size",p.css("font-size")),a.$placeholder.css("line-height",p.css("line-height"))):(a.$placeholder.css("font-size",a.$el.css("font-size")),a.$placeholder.css("line-height",a.$el.css("line-height")));a.$wp.addClass("show-placeholder");a.$placeholder.css({marginTop:Math.max(a.helpers.getPX(a.$el.css("margin-top")),c)+(b?b:0),paddingTop:Math.max(a.helpers.getPX(a.$el.css("padding-top")),g),paddingLeft:Math.max(a.helpers.getPX(a.$el.css("padding-left")),
l),marginLeft:Math.max(a.helpers.getPX(a.$el.css("margin-left")),d),paddingRight:Math.max(a.helpers.getPX(a.$el.css("padding-right")),B),marginRight:Math.max(a.helpers.getPX(a.$el.css("margin-right")),e),textAlign:m}).text(a.language.translate(a.opts.placeholderText||a.$oel.attr("placeholder")||""));a.$placeholder.html(a.$placeholder.text().replace(/\n/g,"<br>"))}function c(){a.$wp.removeClass("show-placeholder")}function d(){if(!a.$wp)return!1;a.core.isEmpty()?b():c()}var f=a.$;return{_init:function(){if(!a.$wp)return!1;
a.events.on("init input keydown keyup contentChanged initialized",d)},show:b,hide:c,refresh:d,isVisible:function(){return a.$wp?a.node.hasClass(a.$wp.get(0),"show-placeholder"):!0}}};c.UNICODE_NBSP=String.fromCharCode(160);c.VOID_ELEMENTS="area base br col embed hr img input keygen link menuitem meta param source track wbr".split(" ");c.BLOCK_TAGS="address article aside audio blockquote canvas details dd div dl dt fieldset figcaption figure footer form h1 h2 h3 h4 h5 h6 header hgroup hr li main nav noscript ol output p pre section table tbody td tfoot th thead tr ul video".split(" ");
Object.assign(c.DEFAULTS,{htmlAllowedEmptyTags:"textarea a iframe object video style script .fa .fr-emoticon .fr-inner path line hr".split(" "),htmlDoNotWrapTags:["script","style"],htmlSimpleAmpersand:!1,htmlIgnoreCSSProperties:[],htmlExecuteScripts:!0});c.MODULES.html=function(a){function b(){if(a.opts.enter===c.ENTER_P)return"p";if(a.opts.enter===c.ENTER_DIV)return"div";if(a.opts.enter===c.ENTER_BR)return null}function d(b,c){return b&&b!==a.el?c?-1!=["PRE","SCRIPT","STYLE"].indexOf(b.tagName)?
!0:d(b.parentNode,c):-1!==["PRE","SCRIPT","STYLE"].indexOf(b.tagName):!1}function f(b){var d=[],e=[];if(b){var f=a.el.querySelectorAll(".fr-marker");for(b=0;b<f.length;b++){var h=a.node.blockParent(f[b])||f[b];if(h){var g=h.nextSibling,r=h.previousSibling;h&&0>e.indexOf(h)&&a.node.isBlock(h)&&e.push(h);r&&a.node.isBlock(r)&&0>e.indexOf(r)&&e.push(r);g&&a.node.isBlock(g)&&0>e.indexOf(g)&&e.push(g)}}}else e=a.el.querySelectorAll(l());f=l();f+=",".concat(c.VOID_ELEMENTS.join(","));f=f+", .fr-inner"+
",".concat(a.opts.htmlAllowedEmptyTags.join(":not(.fr-marker),"),":not(.fr-marker)");for(b=e.length-1;0<=b;b--)if(!(e[b].textContent&&0<e[b].textContent.replace(/\u200B|\n/g,"").length||0<e[b].querySelectorAll(f).length)){h=a.node.contents(e[b]);g=!1;for(r=0;r<h.length;r++)if(h[r].nodeType!==Node.COMMENT_NODE&&h[r].textContent&&0<h[r].textContent.replace(/\u200B|\n/g,"").length){g=!0;break}g||d.push(e[b])}return d}function l(){return c.BLOCK_TAGS.join(", ")}function n(b){var d=K.merge([],c.VOID_ELEMENTS);
d=K.merge(d,a.opts.htmlAllowedEmptyTags);d="undefined"===typeof b?K.merge(d,c.BLOCK_TAGS):K.merge(d,c.NO_DELETE_TAGS);b=a.el.querySelectorAll("*:empty:not(".concat(d.join("):not("),"):not(.fr-marker):not(template)"));do{var e=!1;for(var f=0;f<b.length;f++)if(0===b[f].attributes.length||"undefined"!==typeof b[f].getAttribute("href"))b[f].parentNode.removeChild(b[f]),e=!0;b=a.el.querySelectorAll("*:empty:not(".concat(d.join("):not("),"):not(.fr-marker):not(template)"));b.length||(b=a.el.querySelectorAll("a[href]:not([name]):empty"))}while(b.length&&
e)}function p(c,d){var e=b();d&&(e="div");if(e){for(var f=a.doc.createDocumentFragment(),h=null,g=!1,r=c.firstChild,l=!1;r;){var Q=r.nextSibling;if(r.nodeType===Node.ELEMENT_NODE&&(a.node.isBlock(r)||0<=a.opts.htmlDoNotWrapTags.indexOf(r.tagName.toLowerCase())&&!a.node.hasClass(r,"fr-marker")))h=null,f.appendChild(r.cloneNode(!0));else if(r.nodeType!==Node.ELEMENT_NODE&&r.nodeType!==Node.TEXT_NODE)h=null,f.appendChild(r.cloneNode(!0));else if("BR"===r.tagName)null===h?(h=a.doc.createElement(e),l=
!0,d&&(h.setAttribute("class","fr-temp-div"),h.setAttribute("data-empty",!0)),h.appendChild(r.cloneNode(!0)),r&&r.parentNode&&0>["TD","TH"].indexOf(r.parentNode.tagName)&&f.appendChild(h)):!1===g&&(h.appendChild(a.doc.createElement("br")),d&&(h.setAttribute("class","fr-temp-div"),h.setAttribute("data-empty",!0))),h=null;else{var n=r.textContent;if(r.nodeType!==Node.TEXT_NODE||0<n.replace(/\n/g,"").replace(/(^ *)|( *$)/g,"").length||n.replace(/(^ *)|( *$)/g,"").length&&0>n.indexOf("\n")){if("SPAN"===
r.tagName&&K(r).hasClass("fr-marker")&&!r.previousSibling&&(r.nextSibling&&"TABLE"==r.nextSibling.tagName||r.nextSibling&&r.nextSibling.nextSibling&&"TABLE"==r.nextSibling.nextSibling.tagName)){f.appendChild(r);r=Q;continue}else if("SPAN"===r.tagName&&K(r).hasClass("fr-marker")&&r.previousSibling&&r.previousSibling.nodeType===Node.ELEMENT_NODE&&(r.nextSibling&&"TABLE"==r.nextSibling.tagName||r.nextSibling&&r.nextSibling.nextSibling&&"TABLE"==r.nextSibling.nextSibling.tagName)){f.appendChild(r);l=
!0;r=Q;continue}null===h&&(h=a.doc.createElement(e),l=!0,d&&h.setAttribute("class","fr-temp-div"),f.appendChild(h),g=!1);h.appendChild(r.cloneNode(!0));g||a.node.hasClass(r,"fr-marker")||r.nodeType===Node.TEXT_NODE&&0===n.replace(/ /g,"").length||(g=!0)}else l=!0}r=Q}l&&(c.innerHTML="",c.appendChild(f))}}function m(a,b){for(var c=a.length-1;0<=c;c--)p(a[c],b)}function A(b,c,d,e,f){if(!a.$wp)return!1;"undefined"===typeof b&&(b=!1);"undefined"===typeof c&&(c=!1);"undefined"===typeof d&&(d=!1);"undefined"===
typeof e&&(e=!1);"undefined"===typeof f&&(f=!1);var h=a.$wp.scrollTop();p(a.el,b);e&&m(a.el.querySelectorAll(".fr-inner"),b);c&&m(a.el.querySelectorAll("td, th"),b);d&&m(a.el.querySelectorAll("blockquote"),b);f&&m(a.el.querySelectorAll("li"),b);h!==a.$wp.scrollTop()&&a.$wp.scrollTop(h)}function t(b){"undefined"===typeof b&&(b=a.el);if(b&&0<=["SCRIPT","STYLE","PRE"].indexOf(b.tagName))return!1;for(b=a.doc.createTreeWalker(b,NodeFilter.SHOW_TEXT,a.node.filter(function(a){return null!==a.textContent.match(/([ \n]{2,})|(^[ \n]{1,})|([ \n]{1,}$)/g)}),
!1);b.nextNode();){var c=b.currentNode;if(!d(c.parentNode,!0)){var e=a.node.isBlock(c.parentNode)||a.node.isElement(c.parentNode),f=void 0;f=a.opts.preserveTabSpaces?c.textContent.replace(/\n/g," ").replace(/^[ ]{2,}/g," ").replace(/[ ]{2,}$/g," "):c.textContent.replace(/(?!^)( ){2,}(?!$)/g," ").replace(/\n/g," ").replace(/^[ ]{2,}/g," ").replace(/[ ]{2,}$/g," ");if(e){e=c.previousSibling;var h=c.nextSibling;e&&h&&" "===f?f=a.node.isBlock(e)&&a.node.isBlock(h)?"":" ":(e||(f=f.replace(/^ */,"")),h||
(f=f.replace(/ *$/,"")))}c.textContent=f}}}function R(a,b,c){return(a=(new RegExp(b,"gi")).exec(a))?a[c]:null}function D(a,b){return(a=a.match(/<!DOCTYPE ?([^ ]*) ?([^ ]*) ?"?([^"]*)"? ?"?([^"]*)"?>/i))?b.implementation.createDocumentType(a[1],a[3],a[4]):b.implementation.createDocumentType("html")}function C(a){a=a.doctype;var b="<!DOCTYPE html>";a&&(b="<!DOCTYPE ".concat(a.name).concat(a.publicId?' PUBLIC "'.concat(a.publicId,'"'):"").concat(!a.publicId&&a.systemId?" SYSTEM":"").concat(a.systemId?
' "'.concat(a.systemId,'"'):"",">"));return b}function v(b){var d=b.parentNode;if(d&&(a.node.isBlock(d)||a.node.isElement(d))&&0>["TD","TH"].indexOf(d.tagName)){for(var e=b.previousSibling,f=b.nextSibling;e&&(e.nodeType===Node.TEXT_NODE&&0===e.textContent.replace(/\n|\r/g,"").length||a.node.hasClass(e,"fr-tmp"));)e=e.previousSibling;if(f)return!1;e&&d&&"BR"!==e.tagName&&!a.node.isBlock(e)&&!f&&0<d.textContent.replace(/\u200B/g,"").length&&0<e.textContent.length&&!a.node.hasClass(e,"fr-marker")&&(a.el!==
d||f||a.opts.enter!==c.ENTER_BR||!a.browser.msie)&&b.parentNode.removeChild(b)}else!d||a.node.isBlock(d)||a.node.isElement(d)||b.previousSibling||b.nextSibling||!a.node.isDeletable(b.parentNode)||v(b.parentNode)}function w(){a.opts.htmlUntouched||(n(),A(),t(),a.spaces.normalize(null,!0),a.html.fillEmptyBlocks(),a.clean.lists(),a.clean.tables(),a.clean.toHTML5(),a.html.cleanBRs());a.selection.restore();z();a.placeholder.refresh()}function z(){a.node.isEmpty(a.el)&&(null!==b()?a.el.querySelector(l())||
a.el.querySelector("".concat(a.opts.htmlDoNotWrapTags.join(":not(.fr-marker),"),":not(.fr-marker)"))||(a.core.hasFocus()?(a.$el.html("<".concat(b(),">").concat(c.MARKERS,"<br/></").concat(b(),">")),a.selection.restore()):a.$el.html("<".concat(b(),"><br/></").concat(b(),">"))):a.el.querySelector("*:not(.fr-marker):not(br)")||(a.core.hasFocus()?(a.$el.html("".concat(c.MARKERS,"<br/>")),a.selection.restore()):a.$el.html("<br/>")))}function q(a,b){return R(a,"<".concat(b,"[^>]*?>([\\w\\W]*)</").concat(b,
">"),1)}function G(b,c){b=K("<div ".concat(R(b,"<".concat(c,"([^>]*?)>"),1)||"",">"));return a.node.rawAttributes(b.get(0))}function H(a){return(R(a,"<!DOCTYPE([^>]*?)>",0)||"<!DOCTYPE html>").replace(/\n/g," ").replace(/ {2,}/g," ")}function k(b,c){a.opts.htmlExecuteScripts?b.html(c):b.get(0).innerHTML=c}function x(a){var b=/:not\(([^)]*)\)/g;b.test(a)&&(a=a.replace(b,"     $1 "));b=100*(a.match(/(#[^\s+>~.[:]+)/g)||[]).length+10*(a.match(/(\[[^]]+\])/g)||[]).length+10*(a.match(/(\.[^\s+>~.[:]+)/g)||
[]).length+10*(a.match(/(:[\w-]+\([^)]*\))/gi)||[]).length+10*(a.match(/(:[^\s+>~.[:]+)/g)||[]).length+(a.match(/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi)||[]).length;a=a.replace(/[*\s+>~]/g," ");a=a.replace(/[#.]/g," ");return b+=(a.match(/([^\s+>~.[:]+)/g)||[]).length}function u(b){a.events.trigger("html.processGet",[b]);b&&b.getAttribute&&""===b.getAttribute("class")&&b.removeAttribute("class");b&&b.getAttribute&&""===b.getAttribute("style")&&b.removeAttribute("style");if(b&&
b.nodeType===Node.ELEMENT_NODE){var c=b.querySelectorAll('[class=""],[style=""]'),d;for(d=0;d<c.length;d++){var e=c[d];""===e.getAttribute("class")&&e.removeAttribute("class");""===e.getAttribute("style")&&e.removeAttribute("style")}if("BR"===b.tagName)v(b);else for(b=b.querySelectorAll("br"),d=0;d<b.length;d++)v(b[d])}}function h(a,b){return a[3]-b[3]}function r(){for(var b=a.el.querySelectorAll("input, textarea"),c=0;c<b.length;c++){if("checkbox"===b[c].type||"radio"===b[c].type)b[c].checked?b[c].setAttribute("checked",
b[c].checked):a.$(b[c]).removeAttr("checked");b[c].getAttribute("value")&&b[c].setAttribute("value",b[c].value)}}function N(b){var c=a.doc.createElement("div");c.innerHTML=b;return null!==c.querySelector(l())}function Z(b){var c=null;"undefined"===typeof b&&(c=a.selection.element());if(a.opts.keepFormatOnDelete)return!1;b=c?(c.textContent.match(/\u200B/g)||[]).length-c.querySelectorAll(".fr-marker").length:0;if((a.el.textContent.match(/\u200B/g)||[]).length-a.el.querySelectorAll(".fr-marker").length===
b)return!1;do{var d=!1;b=a.el.querySelectorAll("*:not(.fr-marker)");for(var e=0;e<b.length;e++){var f=b[e];if(c!==f){var h=f.textContent;0===f.children.length&&1===h.length&&8203===h.charCodeAt(0)&&0>"TD STRONG SPAN EM U S SUB SUP".split(" ").indexOf(f.tagName)&&(K(f).remove(),d=!0)}}}while(d)}function ja(){Z();a.placeholder&&setTimeout(a.placeholder.refresh,0)}var K=a.$;return{defaultTag:b,isPreformatted:d,emptyBlocks:f,emptyBlockTagsQuery:function(){return"".concat(c.BLOCK_TAGS.join(":empty, "),
":empty")},blockTagsQuery:l,fillEmptyBlocks:function(b){b=f(b);a.node.isEmpty(a.el)&&a.opts.enter===c.ENTER_BR&&b.push(a.el);for(var d=0;d<b.length;d++){var e=b[d];"false"===e.getAttribute("contenteditable")||e.querySelector("".concat(a.opts.htmlAllowedEmptyTags.join(":not(.fr-marker),"),":not(.fr-marker)"))||a.node.isVoid(e)||"TABLE"===e.tagName||"TBODY"===e.tagName||"TR"===e.tagName||"UL"===e.tagName||"OL"===e.tagName||e.querySelector("br")||e.appendChild(a.doc.createElement("br"))}a.browser.msie&&
a.opts.enter===c.ENTER_BR&&(b=a.node.contents(a.el),b.length&&b[b.length-1].nodeType===Node.TEXT_NODE&&a.$el.append("<br>"))},cleanEmptyTags:n,cleanWhiteTags:Z,cleanBlankSpaces:t,blocks:function(){return a.$el.get(0).querySelectorAll(l())},getDoctype:C,set:function(b){var c=a.clean.html((b||"").trim(),[],[],a.opts.fullPage).replace(/%3A\/\//g,"://");if(a.opts.fullPage){b=q(c,"body")||(0<=c.indexOf("<body")?"":c);var d=G(c,"body"),e=q(c,"head")||"<title></title>",f=G(c,"head"),h=K("<div>");h.append(e).contents().each(function(){(this.nodeType===
Node.COMMENT_NODE||0<="BASE LINK META NOSCRIPT SCRIPT STYLE TEMPLATE TITLE".split(" ").indexOf(this.tagName))&&this.parentNode.removeChild(this)});h=h.html().trim();e=K("<div>").append(e).contents().map(function(){return this.nodeType===Node.COMMENT_NODE?"\x3c!--".concat(this.nodeValue,"--\x3e"):0<="BASE LINK META NOSCRIPT SCRIPT STYLE TEMPLATE TITLE".split(" ").indexOf(this.tagName)?this.outerHTML:""}).toArray().join("");var g=H(c);c=G(c,"html");k(a.$el,"".concat(h,"\n").concat(b));a.node.clearAttributes(a.el);
a.$el.attr(d);a.$el.addClass("fr-view");a.$el.attr("spellcheck",a.opts.spellcheck);a.$el.attr("dir",a.opts.direction);k(a.$head,e);a.node.clearAttributes(a.$head.get(0));a.$head.attr(f);a.node.clearAttributes(a.$html.get(0));a.$html.attr(c);a.iframe_document.doctype.parentNode.replaceChild(D(g,a.iframe_document),a.iframe_document.doctype)}else k(a.$el,c);b=a.edit.isDisabled();a.edit.on();a.core.injectStyle(a.opts.iframeDefaultStyle+a.opts.iframeStyle);w();a.opts.useClasses||(a.$el.find("[fr-original-class]").each(function(){this.setAttribute("class",
this.getAttribute("fr-original-class"));this.removeAttribute("fr-original-class")}),a.$el.find("[fr-original-style]").each(function(){this.setAttribute("style",this.getAttribute("fr-original-style"));this.removeAttribute("fr-original-style")}));b&&a.edit.off();a.events.trigger("html.set");a.events.trigger("charCounter.update");a.events.trigger("wordCounter.update")},syncInputs:r,get:function(b,c){if(!a.$wp)return a.$oel.clone().removeClass("fr-view").removeAttr("contenteditable").get(0).outerHTML;
var d="";a.events.trigger("html.beforeGet");var e=[],f={},g,l=[];r();if(!a.opts.useClasses&&!c){var Q=new RegExp("^".concat(a.opts.htmlIgnoreCSSProperties.join("$|^"),"$"),"gi");for(g=0;g<a.doc.styleSheets.length;g++){var n=void 0,k=0;try{n=a.doc.styleSheets[g].cssRules,a.doc.styleSheets[g].ownerNode&&"STYLE"===a.doc.styleSheets[g].ownerNode.nodeType&&(k=1)}catch(ta){}if(n)for(var B=0,p=n.length;B<p;B++)if(n[B].selectorText&&0<n[B].style.cssText.length){var N=n[B].selectorText.replace(/body \s tbody \.fr-view /g,
"").replace(/::/g,":");var L=void 0;try{L=a.el.querySelectorAll(N)}catch(ta){L=[]}for(N=0;N<L.length;N++){!L[N].getAttribute("fr-original-style")&&L[N].getAttribute("style")?(L[N].setAttribute("fr-original-style",L[N].getAttribute("style")),e.push(L[N])):L[N].getAttribute("fr-original-style")||(L[N].setAttribute("fr-original-style",""),e.push(L[N]));f[L[N]]||(f[L[N]]={});for(var A=1E3*k+x(n[B].selectorText),m=n[B].style.cssText.split(";"),q=0;q<m.length;q++){var t=m[q].trim().split(":")[0];if(t&&
!t.match(Q)){if(!f[L[N]][t]||f[L[N]][t]&&""==L[N].getAttribute("fr-original-style"))f[L[N]][t]=0,0<=(L[N].getAttribute("fr-original-style")||"").indexOf("".concat(t,":"))&&(f[L[N]][t]=1E4);if(A>=f[L[N]][t]&&(f[L[N]][t]=A,m[q].trim().length)){var R=m[q].trim().split(":");R.splice(0,1);R=R.join(":").trim();-1<R.indexOf("!important")&&(A+=1);l.push([L[N],t.trim(),R,A])}}}}}}l.sort(h);for(g=0;g<l.length;g++)N=l[g],N[0].style[N[1]]=N[2].replace(/!important/,"");for(g=0;g<e.length;g++)if(e[g].getAttribute("class")&&
(e[g].setAttribute("fr-original-class",e[g].getAttribute("class")),e[g].removeAttribute("class")),0<(e[g].getAttribute("fr-original-style")||"").trim().length)for(l=e[g].getAttribute("fr-original-style").split(";"),N=0;N<l.length;N++)0<l[N].indexOf(":")&&(f=l[N].split(":"),Q=f[0],f.splice(0,1),e[g].style[Q.trim()]=f.join(":").trim())}a.node.isEmpty(a.el)?a.opts.fullPage&&(d=C(a.iframe_document),d+="<html".concat(a.node.attributes(a.$html.get(0)),">").concat(a.$html.find("head").get(0).outerHTML,"<body></body></html>")):
("undefined"===typeof b&&(b=!1),a.opts.fullPage?(d=C(a.iframe_document),a.$el.removeClass("fr-view"),g=a.opts.heightMin,N=a.opts.height,l=a.opts.heightMax,a.opts.heightMin=null,a.opts.height=null,a.opts.heightMax=null,a.size.refresh(),d+="<html".concat(a.node.attributes(a.$html.get(0)),">").concat(a.$html.html(),"</html>"),a.opts.iframe&&a.$html&&0<a.$html.find(".fr-element").length&&(d=a.$html.find(".fr-element").html()),a.opts.heightMin=g,a.opts.height=N,a.opts.heightMax=l,a.size.refresh(),a.$el.addClass("fr-view")):
(d=a.$el.html(),a.opts.iframe&&a.$html&&0<a.$html.find(".fr-element").length&&(d=a.$html.find(".fr-element").html())));if(!a.opts.useClasses&&!c)for(g=0;g<e.length;g++)e[g].getAttribute("fr-original-class")&&(e[g].setAttribute("class",e[g].getAttribute("fr-original-class")),e[g].removeAttribute("fr-original-class")),null!==e[g].getAttribute("fr-original-style")&&"undefined"!==typeof e[g].getAttribute("fr-original-style")?(0!==e[g].getAttribute("fr-original-style").length?e[g].setAttribute("style",
e[g].getAttribute("fr-original-style")):e[g].removeAttribute("style"),e[g].removeAttribute("fr-original-style")):e[g].removeAttribute("style");a.opts.fullPage&&(d=d.replace(/<style data-fr-style="true">(?:[\w\W]*?)<\/style>/g,""),d=d.replace(/<link([^>]*)data-fr-style="true"([^>]*)>/g,""),d=d.replace(/<style(?:[\w\W]*?)class="firebugResetStyles"(?:[\w\W]*?)>(?:[\w\W]*?)<\/style>/g,""),d=d.replace(/<body((?:[\w\W]*?)) spellcheck="true"((?:[\w\W]*?))>((?:[\w\W]*?))<\/body>/g,"<body$1$2>$3</body>"),
d=d.replace(/<body((?:[\w\W]*?)) contenteditable="(true|false)"((?:[\w\W]*?))>((?:[\w\W]*?))<\/body>/g,"<body$1$3>$4</body>"),d=d.replace(/<body((?:[\w\W]*?)) dir="([\w]*)"((?:[\w\W]*?))>((?:[\w\W]*?))<\/body>/g,"<body$1$3>$4</body>"),d=d.replace(/<body((?:[\w\W]*?))class="([\w\W]*?)(fr-rtl|fr-ltr)([\w\W]*?)"((?:[\w\W]*?))>((?:[\w\W]*?))<\/body>/g,'<body$1class="$2$4"$5>$6</body>'),d=d.replace(/<body((?:[\w\W]*?)) class=""((?:[\w\W]*?))>((?:[\w\W]*?))<\/body>/g,"<body$1$2>$3</body>"));a.opts.htmlSimpleAmpersand&&
(d=d.replace(/&amp;/gi,"&"));a.events.trigger("html.afterGet");b||(d=d.replace(/<span[^>]*? class\s*=\s*["']?fr-marker["']?[^>]+>\u200b<\/span>/gi,""));d=a.clean.invisibleSpaces(d);d=a.clean.exec(d,u);b=a.events.chainTrigger("html.get",d);"string"===typeof b&&(d=b);d=d.replace(/<pre(?:[\w\W]*?)>(?:[\w\W]*?)<\/pre>/g,function(a){return a.replace(/<br>/g,"\n")});d=d.replace(/<meta((?:[\w\W]*?)) data-fr-http-equiv="/g,'<meta$1 http-equiv="');!a.opts.useClasses||c||"Font Size"==a.opts.fontSizeDefaultSelection&&
"Font Family"==a.opts.fontFamilyDefaultSelection||(c=K(document.createElement("div")),"Font Size"!=a.opts.fontSizeDefaultSelection&&(b="pt"===a.opts.fontSizeUnit?Math.round(72*parseFloat(a.opts.fontSizeDefaultSelection,10)/96):a.opts.fontSizeDefaultSelection,c.css("font-size",b+a.opts.fontSizeUnit)),"Font Family"!=a.opts.fontFamilyDefaultSelection&&c.css("font-family",a.opts.fontFamilyDefaultSelection),c[0].innerHTML=d,d=c[0].outerHTML);return d},getSelected:function(){function b(b,d){for(;!(!d||
d.nodeType!==Node.TEXT_NODE&&a.node.isBlock(d)||a.node.isElement(d)||a.node.hasClass(d,"fr-inner")||a.opts.enter===c.ENTER_BR&&d===a.$el[0]);)d&&d.nodeType!==Node.TEXT_NODE&&K(b).wrapContent(d),d=d.parentNode;d&&b.innerHTML===d.innerHTML?b.innerHTML=d.outerHTML:d&&"DIV"!==d.tagName&&d.innerText&&-1!=d.innerText.indexOf(b.innerHTML)&&d!==a.$el.get(0)&&(b.innerHTML=a.node.openTagString(d)+b.innerHTML+a.node.closeTagString(d))}function d(){var b=null,d;a.win.getSelection?(d=a.win.getSelection())&&d.rangeCount&&
(b=d.getRangeAt(0).commonAncestorContainer,b.nodeType===Node.ELEMENT_NODE||a.opts.enter===c.ENTER_BR&&b.parentNode===a.$el[0]||(b=b.parentNode)):(d=a.doc.selection)&&"Control"!==d.type&&(b=d.createRange().parentElement());return null!==b&&(0<=K(b).parents().toArray().indexOf(a.el)||b===a.el)?b:null}var e="";if("undefined"!==typeof a.win.getSelection){a.browser.mozilla&&(a.selection.save(),1<a.$el.find('.fr-marker[data-type="false"]').length&&(a.$el.find('.fr-marker[data-type="false"][data-id="0"]').remove(),
a.$el.find('.fr-marker[data-type="false"]:last').attr("data-id","0"),a.$el.find(".fr-marker").not('[data-id="0"]').remove()),a.selection.restore());for(var f=a.selection.ranges(),h=0;h<f.length;h++){var g=document.createElement("div");g.appendChild(f[h].cloneContents());b(g,d());0<K(g).find(".fr-element").length&&(g=a.el);e+=g.innerHTML}}else"undefined"!==typeof a.doc.selection&&"Text"===a.doc.selection.type&&(e=a.doc.selection.createRange().htmlText);return e},insert:function(b,c,d){a.selection.isCollapsed()||
a.selection.remove();c=c?b:a.clean.html(b);0===b.indexOf('<i class="fa ')&&(c="<span>&nbsp;".concat(c,"</span>"));0>b.indexOf('class="fr-marker"')&&(b=c,c=a.doc.createElement("div"),c.innerHTML=b,a.selection.setAtEnd(c,!0),c=c.innerHTML);if(a.node.isEmpty(a.el)&&!a.opts.keepFormatOnDelete&&N(c))a.opts.trackChangesEnabled?a.track_changes.pasteInEmptyEdior(c):a.el.innerHTML=c;else if(b=a.selection.ranges(0).commonAncestorContainer,b=b===a.el||a.$el.contains(b)?!1:!0,b&&a.selection.restore(),b=a.markers.insert())if(a.opts.trackChangesEnabled)a.track_changes.pasteInEdior(c);
else{a.node.isLastSibling(b)&&K(b).parent().hasClass("fr-deletable")&&K(b).insertAfter(K(b).parent());var e=a.node.blockParent(b);if((N(c)||d)&&(a.node.deepestParent(b)||e&&"LI"===e.tagName)){if(e&&"LI"===e.tagName&&a.html.defaultTag()){d=a.doc.createElement("div");d.innerHTML=c;c=d.querySelectorAll(":scope > ".concat(a.html.defaultTag()));for(e=c.length-1;0<=e;e--){var f=c[e];a.node.isBlock(f.previousSibling)||(f.previousSibling&&!a.node.isEmpty(f)&&K("<br>").insertAfter(f.previousSibling),f.outerHTML=
f.innerHTML)}c=d.innerHTML}(d=a.selection.element())&&K(d).parentsUntil(a.el,"ul, ol").length&&"LI"!=b.parentNode.tagName&&("DIV"==K(c).get(0).tagName&&1==K(c).length&&"UL"==K(c).get(0).firstChild.tagName?c=K(c).get(0).firstChild.innerHTML:"UL"==K(c).get(0).tagName&&(c=K(c).get(0).innerHTML),a.markers.split());b=a.markers.split();if(!b)return!1}b.outerHTML=c}else a.el.innerHTML+=c;w();a.keys.positionCaret();a.events.trigger("html.inserted")},wrap:A,unwrap:function(){a.$el.find("div.fr-temp-div").each(function(){this.previousSibling&&
this.previousSibling.nodeType===Node.TEXT_NODE&&K(this).before("<br>");K(this).attr("data-empty")||!this.nextSibling||a.node.isBlock(this.nextSibling)&&!K(this.nextSibling).hasClass("fr-temp-div")?K(this).replaceWith(K(this).html()):K(this).replaceWith("".concat(K(this).html(),"<br>"))});a.$el.find(".fr-temp-div").removeClass("fr-temp-div").filter(function(){return""===K(this).attr("class")}).removeAttr("class")},escapeEntities:function(a){return a.replace(/</gi,"&lt;").replace(/>/gi,"&gt;").replace(/"/gi,
"&quot;").replace(/'/gi,"&#39;")},checkIfEmpty:z,extractNode:q,extractNodeAttrs:G,extractDoctype:H,cleanBRs:function(){for(var b=a.el.getElementsByTagName("br"),c=0;c<b.length;c++)v(b[c])},_init:function(){a.events.$on(a.$el,"mousemove","span.fr-word-select",function(a){window.getSelection();var b=window.getSelection();var c=document.createRange();c.selectNodeContents(a.target);b.removeAllRanges();b.addRange(c)});a.$wp&&(a.events.on("mouseup",ja),a.events.on("keydown",ja),a.events.on("contentChanged",
z))},_setHtml:k}};c.ENTER_P=0;c.ENTER_DIV=1;c.ENTER_BR=2;c.KEYCODE={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,ARROW_LEFT:37,ARROW_UP:38,ARROW_RIGHT:39,ARROW_DOWN:40,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,FF_SEMICOLON:59,FF_EQUALS:61,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,
NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,FF_HYPHEN:173,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,HYPHEN:189,PERIOD:190,SLASH:191,APOSTROPHE:192,TILDE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,IME:229};Object.assign(c.DEFAULTS,{enter:c.ENTER_P,multiLine:!0,
tabSpaces:0});c.MODULES.keys=function(a){function b(){setTimeout(function(){a.events.disableBlur();a.events.focus()},0)}function d(b){a.selection.isCollapsed()?(0>["INPUT","BUTTON","TEXTAREA"].indexOf(b.target&&b.target.tagName)&&a.cursor.backspace(),a.helpers.isIOS()?(b=a.selection.ranges(0),b.deleteContents(),b.insertNode(document.createTextNode("\u200b")),a.selection.get().modify("move","forward","character")):(0>["INPUT","BUTTON","TEXTAREA"].indexOf(b.target&&b.target.tagName)&&b.preventDefault(),
b.stopPropagation())):(b.preventDefault(),b.stopPropagation(),a.selection.remove());a.placeholder.refresh()}function f(b){0>["INPUT","BUTTON","TEXTAREA"].indexOf(b.target&&b.target.tagName)&&b.preventDefault();b.stopPropagation();""!==a.selection.text()||a.selection.element().hasAttribute("contenteditable")&&"false"===a.selection.element().getAttribute("contenteditable")||!a.selection.isCollapsed()&&"IMG"==a.selection.element().tagName?a.selection.remove():a.cursor.del();a.placeholder.refresh()}function l(){if(a.browser.mozilla&&
a.selection.isCollapsed()&&!r){var b=a.selection.ranges(0),c=b.startContainer;b=b.startOffset;c&&c.nodeType===Node.TEXT_NODE&&b<=c.textContent.length&&0<b&&32===c.textContent.charCodeAt(b-1)&&(a.selection.save(),a.spaces.normalize(),a.selection.restore())}}function n(){a.selection.isFull()&&setTimeout(function(){var b=a.html.defaultTag();b?a.$el.html("<".concat(b,">").concat(c.MARKERS,"<br/></").concat(b,">")):a.$el.html("".concat(c.MARKERS,"<br/>"));a.selection.restore();a.placeholder.refresh();
a.button.bulkRefresh();a.undo.saveStep()},0)}function p(){r=!1}function m(){r=!1}function A(){var b=a.html.defaultTag();b?a.$el.html("<".concat(b,">").concat(c.MARKERS,"<br/></").concat(b,">")):a.$el.html("".concat(c.MARKERS,"<br/>"));a.selection.restore()}function t(a,b){var c=(a&&a.parentElement).parentElement;if(a.parentElement&&(-1<a.innerHTML.indexOf("<span")||-1<a.parentElement.innerHTML.indexOf("<span")||c&&-1<a.parentElement.parentElement.innerHTML.indexOf("<span"))&&(a.classList.contains("fr-img-space-wrap")||
a.parentElement.classList.contains("fr-img-space-wrap")||c&&a.parentElement.parentElement.classList.contains("fr-img-space-wrap"))){if(h(a.parentElement).is("p"))return c=a.parentElement.innerHTML,c=c.replace(/<br>/g,""),1>c.length?a.parentElement.insertAdjacentHTML("afterbegin","&nbsp;"):"&nbsp;"!=c&&" "!=c&&"Backspace"==b.key?d(b):"&nbsp;"!=c&&" "!=c&&"Delete"==b.key&&f(b),!0;if(h(a).is("p"))return c=a.innerHTML.replace(/<br>/g,""),1>c.length?a.insertAdjacentHTML("afterbegin","&nbsp;"):"&nbsp;"!=
c&&" "!=c&&"Backspace"==b.key?d(b):"&nbsp;"!=c&&" "!=c&&"Delete"==b.key&&f(b),!0}return!1}function R(e){var h=a.selection.element();if(h&&0<=["INPUT","TEXTAREA"].indexOf(h.tagName))return!0;if(e&&z(e.which)){h=a.selection.element();var g=a.selection.get();e=g.anchorNode;g=g.anchorOffset;e.nodeType===Node.TEXT_NODE&&0<g&&1<e.textContent.length&&8203===e.textContent.charCodeAt(g)&&(D(h),h=a.doc.createRange(),a.selection.get().removeAllRanges(),h.setStart(e,g-1),h.setEnd(e,g-1),a.selection.get().addRange(h));
return!0}a.events.disableBlur();g=e.which;if(16===g)return!0;N=g;if(g===c.KEYCODE.IME)return r=!0;r=!1;if(w(e))return!0;var l=q(g)&&!w(e)&&!e.altKey,n=g===c.KEYCODE.BACKSPACE||g===c.KEYCODE.DELETE;if(a.selection.isFull()&&!a.opts.keepFormatOnDelete&&!a.placeholder.isVisible()||n&&a.placeholder.isVisible()&&a.opts.keepFormatOnDelete)if(l||n)if(A(),!q(g))return e.preventDefault(),!0;if(g===c.KEYCODE.ENTER)!a.helpers.isIOS()&&e.shiftKey||h.classList.contains("fr-inner")||h.parentElement.classList.contains("fr-inner")?
(e.preventDefault(),e.stopPropagation(),a.opts.multiLine&&(a.selection.isCollapsed()||a.selection.remove(),a.cursor.enter(!0))):a.opts.multiLine?(a.helpers.isIOS()||(e.preventDefault(),e.stopPropagation()),a.selection.isCollapsed()||a.selection.remove(),a.cursor.enter()):(e.preventDefault(),e.stopPropagation());else if(g===c.KEYCODE.BACKSPACE&&(e.metaKey||e.ctrlKey))b();else if(g!==c.KEYCODE.BACKSPACE||w(e)||e.altKey)if(g!==c.KEYCODE.DELETE||w(e)||e.altKey||e.shiftKey)if(g===c.KEYCODE.SPACE){if(h=
a.selection.element(),!a.helpers.isMobile()&&h&&"A"===h.tagName&&(e.preventDefault(),e.stopPropagation(),a.selection.isCollapsed()||a.selection.remove(),e=a.markers.insert()))h=e.previousSibling,!e.nextSibling&&e.parentNode&&"A"===e.parentNode.tagName?(e.parentNode.insertAdjacentHTML("afterend","&nbsp;".concat(c.MARKERS)),e.parentNode.removeChild(e)):(h&&h.nodeType===Node.TEXT_NODE&&1===h.textContent.length&&160===h.textContent.charCodeAt(0)?h.textContent+=" ":e.insertAdjacentHTML("beforebegin","&nbsp;"),
e.outerHTML=c.MARKERS),a.selection.restore()}else if(g===c.KEYCODE.TAB){if(0<a.opts.tabSpaces)if(a.selection.isCollapsed()){a.undo.saveStep();e.preventDefault();e.stopPropagation();e="";for(h=0;h<a.opts.tabSpaces;h++)e+="&nbsp;";a.html.insert(e);a.placeholder.refresh();a.undo.saveStep()}else e.preventDefault(),e.stopPropagation(),e.shiftKey?a.commands.outdent():a.commands.indent()}else w(e)||!q(e.which)||a.selection.isCollapsed()||e.ctrlKey||e.altKey||a.browser.mozilla||a.selection.remove();else{if(t(h,
e)){e.preventDefault();e.stopPropagation();return}a.placeholder.isVisible()?(a.opts.keepFormatOnDelete||A(),e.preventDefault(),e.stopPropagation()):f(e)}else{if(t(h,e)){e.preventDefault();e.stopPropagation();return}a.placeholder.isVisible()?(a.opts.keepFormatOnDelete||A(),e.preventDefault(),e.stopPropagation()):d(e)}a.events.enableBlur()}function D(b){var c=b;-1<["STRONG","U","EM"].indexOf(b.nodeName)&&b.parentNode&&(c=b.parentNode);for(b=a.doc.createTreeWalker(c,NodeFilter.SHOW_TEXT,a.node.filter(function(a){return/\u200B/gi.test(a.textContent)}),
!1);b.nextNode();)c=b.currentNode,c.textContent=c.textContent.replace(/\u200B/gi,"")}function C(){if(!a.$wp)return!0;if(a.opts.height||a.opts.heightMax){var b=a.position.getBoundingRect().top;if(a.helpers.isIOS()||a.helpers.isAndroid())b-=a.helpers.scrollTop();a.opts.iframe&&(b+=a.$iframe.offset().top);var c=a.selection.blocks(),d=null;if(c&&0<c.length&&c[0].offsetTop&&(d=c[0].getBoundingClientRect().top,3===a.selection.get().anchorNode.nodeType)){c=a.doc.createRange();d=a.selection.get().anchorNode;
var e=a.selection.get().anchorOffset;c.selectNode(d);c.setStart(d,e);d=c.getBoundingClientRect().top}!a.opts.iframe&&b>a.$wp.offset().top-a.helpers.scrollTop()+a.$wp.height()-20?a.$wp.scrollTop(b+a.$wp.scrollTop()-(a.$wp.height()+a.$wp.offset().top)+a.helpers.scrollTop()+20):a.opts.iframe&&d&&(a.$wp.scrollTop()>d?a.$wp.scrollTop(d-20):d+20>a.$wp.scrollTop()+a.$wp.height()&&(b=d-a.$wp.height()+50,a.$wp.scrollTop(b)))}else{b=a.position.getBoundingRect().top;a.opts.toolbarBottom&&(b+=a.opts.toolbarStickyOffset);
if(a.helpers.isIOS()||a.helpers.isAndroid())b-=a.helpers.scrollTop();a.opts.iframe&&(b+=a.$iframe.offset().top,b-=a.helpers.scrollTop());b+=a.opts.toolbarStickyOffset;b>a.o_win.innerHeight-20&&h(a.o_win).scrollTop(b+a.helpers.scrollTop()-a.o_win.innerHeight+20);b=a.position.getBoundingRect().top;a.opts.toolbarBottom||(b-=a.opts.toolbarStickyOffset);if(a.helpers.isIOS()||a.helpers.isAndroid())b-=a.helpers.scrollTop();a.opts.iframe&&(b+=a.$iframe.offset().top,b-=a.helpers.scrollTop());100>b&&h(a.o_win).scrollTop(b+
a.helpers.scrollTop()-100)}}function v(b){function d(b){var c=/[\u3041-\u3096\u30A0-\u30FF\u4E00-\u9FFF\u3130-\u318F\uAC00-\uD7AF]/gi;return!a.helpers.isIOS()||0===((b.textContent||"").match(c)||[]).length}var e=a.selection.element();if(e&&0<=["INPUT","TEXTAREA"].indexOf(e.tagName))return!0;b&&0===b.which&&N&&(b.which=N);if(a.helpers.isAndroid()&&a.browser.mozilla)return!0;if(r)return!1;b&&a.helpers.isIOS()&&b.which===c.KEYCODE.ENTER&&a.doc.execCommand("undo");if(!a.selection.isCollapsed()||b&&(b.which===
c.KEYCODE.META||b.which===c.KEYCODE.CTRL)||b&&z(b.which))return!0;if(b&&!a.helpers.isIOS()&&(b.which===c.KEYCODE.ENTER||b.which===c.KEYCODE.BACKSPACE||37<=b.which&&40>=b.which&&!a.browser.msie))try{C()}catch(I){}e=a.selection.element();if(function(a){if(!a)return!1;a=a.innerHTML;return(a=a.replace(/<span[^>]*? class\s*=\s*["']?fr-marker["']?[^>]+>\u200b<\/span>/gi,""))&&/\u200B/.test(a)&&0<a.replace(/\u200B/gi,"").length?!0:!1}(e)&&!a.node.hasClass(e,"fr-marker")&&"IFRAME"!==e.tagName&&d(e)){a.selection.save();
var f=a.$el.find(".fr-marker")[1];b=(b||"").which;a.opts.enter===c.ENTER_BR&&e===a.$el.get(0)&&8===b&&null==f.nextSibling||D(e);a.selection.restore()}}function w(a){if(-1!==navigator.userAgent.indexOf("Mac OS X")){if(a.metaKey&&!a.altKey)return!0}else if(a.ctrlKey&&!a.altKey)return!0;return!1}function z(a){if(a>=c.KEYCODE.ARROW_LEFT&&a<=c.KEYCODE.ARROW_DOWN)return!0}function q(b){if(b>=c.KEYCODE.ZERO&&b<=c.KEYCODE.NINE||b>=c.KEYCODE.NUM_ZERO&&b<=c.KEYCODE.NUM_MULTIPLY||b>=c.KEYCODE.A&&b<=c.KEYCODE.Z||
a.browser.webkit&&0===b)return!0;switch(b){case c.KEYCODE.SPACE:case c.KEYCODE.QUESTION_MARK:case c.KEYCODE.NUM_PLUS:case c.KEYCODE.NUM_MINUS:case c.KEYCODE.NUM_PERIOD:case c.KEYCODE.NUM_DIVISION:case c.KEYCODE.SEMICOLON:case c.KEYCODE.FF_SEMICOLON:case c.KEYCODE.DASH:case c.KEYCODE.EQUALS:case c.KEYCODE.FF_EQUALS:case c.KEYCODE.COMMA:case c.KEYCODE.PERIOD:case c.KEYCODE.SLASH:case c.KEYCODE.APOSTROPHE:case c.KEYCODE.SINGLE_QUOTE:case c.KEYCODE.OPEN_SQUARE_BRACKET:case c.KEYCODE.BACKSLASH:case c.KEYCODE.CLOSE_SQUARE_BRACKET:return!0;
default:return!1}}function G(b){var d=b.which;if(w(b)||37<=d&&40>=d||!q(d)&&d!==c.KEYCODE.DELETE&&d!==c.KEYCODE.BACKSPACE&&d!==c.KEYCODE.ENTER&&d!==c.KEYCODE.IME)return!0;Z||(ja=a.snapshot.get(),a.undo.canDo()||a.undo.saveStep());clearTimeout(Z);Z=setTimeout(function(){Z=null;a.undo.saveStep()},Math.max(250,a.opts.typingTimer))}function H(b){var c=b.which;if(w(b)||37<=c&&40>=c)return!0;ja&&Z?(a.undo.saveStep(ja),ja=null):"undefined"!==typeof c&&0!==c||ja||Z||a.undo.saveStep()}function k(b){if(b&&
"BR"===b.tagName)return!1;try{return 0===(b.textContent||"").length&&b.querySelector&&!b.querySelector(":scope > br")||b.childNodes&&1===b.childNodes.length&&b.childNodes[0].getAttribute&&("false"===b.childNodes[0].getAttribute("contenteditable")||a.node.hasClass(b.childNodes[0],"fr-img-caption"))}catch(ea){return!1}}function x(b){var d=a.el.childNodes,e=a.html.defaultTag(),f=a.node.blockParent(a.selection.blocks()[0]);f&&"TR"==f.tagName&&void 0==f.getAttribute("contenteditable")&&(f=f.closest("table"));
!a.node.isEditable(b.target)||f&&"false"===f.getAttribute("contenteditable")?a.toolbar.disable():a.toolbar.enable();if(b.target&&b.target!==a.el||0===d.length)return!0;d[0].offsetHeight+d[0].offsetTop<=b.offsetY?k(d[d.length-1])&&(e?a.$el.append("<".concat(e,">").concat(c.MARKERS,"<br></").concat(e,">")):a.$el.append("".concat(c.MARKERS,"<br>")),a.selection.restore(),C()):10>=b.offsetY&&k(d[0])&&(e?a.$el.prepend("<".concat(e,">").concat(c.MARKERS,"<br></").concat(e,">")):a.$el.prepend("".concat(c.MARKERS,
"<br>")),a.selection.restore(),C())}function u(){Z&&clearTimeout(Z)}var h=a.$,r=!1,N,Z,ja;return{_init:function(){a.events.on("keydown",G);a.events.on("input",l);a.events.on("mousedown",m);a.events.on("keyup input",H);a.events.on("keypress",p);a.events.on("keydown",R);a.events.on("keyup",v);a.events.on("destroy",u);a.events.on("html.inserted",v);a.events.on("cut",n);if(a.opts.multiLine)a.events.on("click",x);a.events.on("initialized",function(){a.el.addEventListener("compositionstart",function(){if(a.selection.isCollapsed()){var b=
a.selection.ranges(0),d=b.startContainer;b=b.startOffset;d&&d.nodeType===Node.TEXT_NODE&&b<=d.textContent.length&&0<b&&8203===d.textContent.charCodeAt(b-1)&&(a.selection.save(),d=a.$el.find(".fr-marker"),h(d.get(0).previousSibling).before(c.HAIR_SPACE),d.get(0).previousSibling.textContent=d.get(0).previousSibling.textContent.replace(/\u200B/gi,""),a.selection.restore())}});a.el.addEventListener("compositionend",function(){if(a.selection.isCollapsed()){var b=a.selection.ranges(0),c=b.startContainer;
b=b.startOffset;c&&c.nodeType===Node.TEXT_NODE&&b<=c.textContent.length&&0<b&&8202===c.textContent.charCodeAt(0)&&(a.selection.save(),c=a.$el.find(".fr-marker"),c.get(0).previousSibling.textContent=c.get(0).previousSibling.textContent.replace(/\u200A/gi,""),a.selection.restore())}})})},ctrlKey:w,isCharacter:q,isArrow:z,forceUndo:function(){Z&&(clearTimeout(Z),a.undo.saveStep(),ja=null)},isIME:function(){return r},isBrowserAction:function(a){var b=a.which;return w(a)||b===c.KEYCODE.F5},positionCaret:C}};
Object.assign(c.DEFAULTS,{pastePlain:!1,pasteDeniedTags:["colgroup","col","meta"],pasteDeniedAttrs:["class","id"],pasteAllowedStyleProps:[".*"],pasteAllowLocalImages:!1});c.MODULES.paste=function(a){function b(b,c){ja=2<arguments.length&&void 0!==arguments[2]?arguments[2]:!1;try{a.win.localStorage.setItem("fr-copied-html",b),a.win.localStorage.setItem("fr-copied-text",c)}catch(I){}}function d(c){var d=a.html.getSelected();"cut"===c.type&&a.opts.trackChangesEnabled||(ja=!1);ja&&(d=a.win.localStorage.getItem("fr-copied-html"));
var e=k(a.doc.createElement("div")).html(d).text();ja||b(d,e);"cut"===c.type&&(a.undo.saveStep(),a.opts.trackChangesEnabled&&ja&&(c.clipboardData.setData("text/plain",e),c.clipboardData.setData("text/html",d),a.selection.get().deleteFromDocument(),c.preventDefault()),setTimeout(function(){a.selection.save();a.html.wrap();a.selection.restore();a.events.focus();a.undo.saveStep()},0))}function f(b){U=b;if("INPUT"===b.target.nodeName&&"text"===b.target.type)return!0;if(a.edit.isDisabled()||l(b.target)||
K)return!1;b.originalEvent&&(b=b.originalEvent);if(b&&b.clipboardData&&b.clipboardData.getData&&((b.clipboardData||window.clipboardData).getData("text/html")||"").match('content="Microsoft OneNote'))return!1;if(!1===a.events.trigger("paste.before",[b]))return b.preventDefault(),!1;if(b&&b.clipboardData&&b.clipboardData.getData){var c="";r=b.clipboardData.types;if(a.helpers.isArray(r))for(var d=0;d<r.length;d++)c+="".concat(r[d],";");else c=r;x="";/text\/rtf/.test(c)&&(u=b.clipboardData.getData("text/rtf"));
/text\/html/.test(c)?(x=b.clipboardData.getData("text/html"),a.browser.mozilla&&("<p></p>"===x||""===x||/\x3c!--StartFragment--\x3e([ ])\x3c!--EndFragment--\x3e/.test(x)||/\x3c!--StartFragment--\x3e([<p></p>]*)\x3c!--EndFragment--\x3e/.test(x))&&(x=a.win.localStorage.getItem("fr-copied-html"))):/text\/uri-list/.test(c)&&a.browser.safari?x=b.clipboardData.getData("text/uri-list"):/text\/rtf/.test(c)&&a.browser.safari?x=u:/public.rtf/.test(c)&&a.browser.safari&&(x=b.clipboardData.getData("text/rtf"));
h=b.clipboardData.getData("text");if(""!==x)return D(),b.preventDefault&&(b.stopPropagation(),b.preventDefault()),!1;x=null}m();return!1}function l(a){return a&&"false"===a.contentEditable}function n(b){b.originalEvent&&(b=b.originalEvent);if(l(b.target))return!1;if(b&&b.dataTransfer&&b.dataTransfer.getData){var d="";r=b.dataTransfer.types;if(a.helpers.isArray(r))for(var e=0;e<r.length;e++)d+="".concat(r[e],";");else d=r;x="";/text\/rtf/.test(d)&&(u=b.dataTransfer.getData("text/rtf"));/text\/html/.test(d)?
x=b.dataTransfer.getData("text/html"):/text\/rtf/.test(d)&&a.browser.safari?x=u:/text\/plain/.test(d)&&!this.browser.mozilla&&(x=a.html.escapeEntities(b.dataTransfer.getData("text/plain")).replace(/\n/g,"<br>"));if(""!==x){if(a.keys.forceUndo(),Z=a.snapshot.get(),a.selection.save(),a.$el.find(".fr-marker").removeClass("fr-marker").addClass("fr-marker-helper"),d=a.markers.insertAtPoint(b),a.$el.find(".fr-marker").removeClass("fr-marker").addClass("fr-marker-placeholder"),a.$el.find(".fr-marker-helper").addClass("fr-marker").removeClass("fr-marker-helper"),
a.selection.restore(),a.selection.remove(),a.$el.find(".fr-marker-placeholder").addClass("fr-marker").removeClass("fr-marker-placeholder"),!1!==d)return d=a.el.querySelector(".fr-marker"),k(d).replaceWith(c.MARKERS),a.selection.restore(),D(),b.preventDefault&&(b.stopPropagation(),b.preventDefault()),!1}else x=null}}function p(a){return a.nodeType===Node.TEXT_NODE?a.parentNode.offsetTop:a.offsetTop}function m(){a.selection.save();a.events.disableBlur();x=null;if(N){N.html("");var b=p(a.selection.get().anchorNode)+
a.$wp.offset().top;N.css("top",b);a.browser.edge&&a.opts.iframe&&a.$el.append(N)}else{b=document.getElementsByTagName("BODY")[0];b=window.getComputedStyle(b).transform;if("none"!==b){var c=p(a.selection.get().anchorNode)+a.$wp.offset().top;N=k('<div contenteditable="true" style="position: fixed; top: '+c+'px; left: -9999px; height: 100%; width: 0; word-break: break-all; overflow:hidden; z-index: 2147483647; line-height: 140%; -moz-user-select: text; -webkit-user-select: text; -ms-user-select: text; user-select: text;" tabIndex="-1"></div>')}else N=
k('<div contenteditable="true" style="position: fixed; top: 0; left: -9999px; height: 100%; width: 0; word-break: break-all; overflow:hidden; z-index: 2147483647; line-height: 140%; -moz-user-select: text; -webkit-user-select: text; -ms-user-select: text; user-select: text;" tabIndex="-1"></div>');a.browser.webkit||a.browser.mozilla?("none"===b&&N.css("top",a.$sc.scrollTop()),a.$el.after(N)):a.browser.edge&&a.opts.iframe?a.$el.append(N):a.$box.after(N);a.events.on("destroy",function(){N.remove()})}var d;
a.helpers.isIOS()&&a.$sc&&(d=a.$sc.scrollTop());a.opts.iframe&&a.$el.attr("contenteditable","false");a.helpers.isIOS()&&a.$sc&&a.$sc.scrollTop(d);d=U.clipboardData.getData("Text");4E5<d.length?(U.preventDefault(),d=A(d),N.get(0).innerHTML=d,setTimeout(function(){a.win.setTimeout(D,1)},0)):(N.focus(),a.win.setTimeout(D,1))}function A(b){var d=a.html.defaultTag()||"p",e="</".concat(d,"><").concat(d,">");a.opts.enter===c.ENTER_BR?e="<br />":b="<".concat(d,">")+b;return b.replace(/\n{2,}/g,e)}function t(b){var c;
b=b.replace(/<p(.*?)class="?'?MsoListParagraph"?'? ([\s\S]*?)>([\s\S]*?)<\/p>/gi,"<ul><li>$3</li></ul>");b=b.replace(/<p(.*?)class="?'?NumberedText"?'? ([\s\S]*?)>([\s\S]*?)<\/p>/gi,"<ol><li>$3</li></ol>");b=b.replace(/<p(.*?)class="?'?MsoListParagraphCxSpFirst"?'?([\s\S]*?)(level\d)?([\s\S]*?)>([\s\S]*?)<\/p>/gi,"<ul><li$3>$5</li>");b=b.replace(/<p(.*?)class="?'?NumberedTextCxSpFirst"?'?([\s\S]*?)(level\d)?([\s\S]*?)>([\s\S]*?)<\/p>/gi,"<ol><li$3>$5</li>");b=b.replace(/<p(.*?)class="?'?MsoListParagraphCxSpMiddle"?'?([\s\S]*?)(level\d)?([\s\S]*?)>([\s\S]*?)<\/p>/gi,
"<li$3>$5</li>");b=b.replace(/<p(.*?)class="?'?NumberedTextCxSpMiddle"?'?([\s\S]*?)(level\d)?([\s\S]*?)>([\s\S]*?)<\/p>/gi,"<li$3>$5</li>");b=b.replace(/<p(.*?)class="?'?MsoListBullet"?'?([\s\S]*?)(level\d)?([\s\S]*?)>([\s\S]*?)<\/p>/gi,"<li$3>$5</li>");b=b.replace(/<p(.*?)class="?'?MsoListParagraphCxSpLast"?'?([\s\S]*?)(level\d)?([\s\S]*?)>([\s\S]*?)<\/p>/gi,"<li$3>$5</li></ul>");b=b.replace(/<p(.*?)class="?'?NumberedTextCxSpLast"?'?([\s\S]*?)(level\d)?([\s\S]*?)>([\s\S]*?)<\/p>/gi,"<li$3>$5</li></ol>");
b=b.replace(/<span([^<]*?)style="?'?mso-list:Ignore"?'?([\s\S]*?)>([\s\S]*?)<span/gi,"<span><span");b=b.replace(/\x3c!--\[if !supportLists\]--\x3e([\s\S]*?)\x3c!--\[endif\]--\x3e/gi,"");b=b.replace(/<!\[if !supportLists\]>([\s\S]*?)<!\[endif\]>/gi,"");b=b.replace(/(\n|\r| class=(")?Mso[a-zA-Z0-9]+(")?)/gi," ");b=b.replace(/\x3c!--[\s\S]*?--\x3e/gi,"");b=b.replace(/<(\/)*(meta|link|span|\\?xml:|st1:|o:|font)(.*?)>/gi,"");var d="style script applet embed noframes noscript".split(" ");for(c=0;c<d.length;c++){var e=
new RegExp("<".concat(d[c],".*?").concat(d[c],"(.*?)>"),"gi");b=b.replace(e,"")}b=b.replace(/&nbsp;/gi," ");b=b.replace(/<td([^>]*)><\/td>/g,"<td$1><br></td>");b=b.replace(/<th([^>]*)><\/th>/g,"<th$1><br></th>");do c=b,b=b.replace(/<[^/>][^>]*><\/[^>]+>/gi,"");while(b!==c);b=b.replace(/<lilevel([^1])([^>]*)>/gi,'<li data-indent="true"$2>');b=b.replace(/<lilevel1([^>]*)>/gi,"<li$1>");b=a.clean.html(b,a.opts.pasteDeniedTags,a.opts.pasteDeniedAttrs);b=b.replace(/<a>(.[^<]+)<\/a>/gi,"$1");b=b.replace(/<br> */g,
"<br>");d=a.o_doc.createElement("div");d.innerHTML=b;b=d.querySelectorAll("li[data-indent]");for(c=0;c<b.length;c++){e=b[c];var f=e.previousElementSibling;if(f&&"LI"===f.tagName){var h=f.querySelector(":scope > ul, :scope > ol");h||(h=document.createElement("ul"),f.appendChild(h));h.appendChild(e)}else e.removeAttribute("data-indent")}a.html.cleanBlankSpaces(d);return b=d.innerHTML}function R(b){function c(b){b=a.node.contents(b);for(var d=0;d<b.length;d++)b[d].nodeType!==Node.TEXT_NODE&&b[d].nodeType!==
Node.ELEMENT_NODE?b[d].parentNode.removeChild(b[d]):c(b[d])}var d=null,e=a.doc.createElement("div");e.innerHTML=b;var f=e.querySelectorAll("p, div, h1, h2, h3, h4, h5, h6, pre, blockquote");for(b=0;b<f.length;b++)if(d=f[b],d.innerText){var h=a.clean.html("<".concat(a.html.defaultTag()||"DIV",">").concat(d.innerText,"</").concat(a.html.defaultTag()||"DIV",">"));d.outerHTML=h}f=e.querySelectorAll("*:not(".concat("p; div; h1; h2; h3; h4; h5; h6; pre; blockquote; ul; ol; li; table; tbody; thead; tr; td; br; img".split(";").join("):not("),
")"));for(b=f.length-1;0<=b;b--)d=f[b],d.outerHTML=d.innerHTML;c(e);return e.innerHTML}function D(){a.opts.iframe&&a.$el.attr("contenteditable","true");a.browser.edge&&a.opts.iframe&&a.$box.after(N);Z||(a.keys.forceUndo(),Z=a.snapshot.get());x||(x=N.get(0).innerHTML,h=N.text(),a.$el[0].setAttribute("plainpaste",!0),a.selection.restore(),a.events.enableBlur());var b=x.match(/(MSFontService|class="?Mso|class='?Mso|class="?Xl|class='?Xl|class=Xl|style="[^"]*\bmso-|style='[^']*\bmso-|w:WordDocument|LibreOffice)/gi),
c=a.events.chainTrigger("paste.beforeCleanup",x);c&&"string"===typeof c&&(x=c,h=(new DOMParser).parseFromString(c,"text/html").body.innerText);(!b||b&&!1!==a.events.trigger("paste.wordPaste",[x]))&&w(x,b)}function C(){var b=null;try{b=a.win.localStorage.getItem("fr-copied-text")}catch(ia){}return!b||!h||r&&-1===r.indexOf("text/html")||h.replace(/\u00A0/gi," ").replace(/\r|\n/gi,"")!==b.replace(/\u00A0/gi," ").replace(/\r|\n/gi,"")&&h.replace(/\s/g,"")!==b.replace(/\s/g,"")?!1:!0}function v(a){for(var b=
"",c=0;c++<a;)b+="&nbsp;";return b}function w(b,d,e){var f=null,h=null;if(0<=b.toLowerCase().indexOf("<body")){var g="";0<=b.indexOf("<style")&&(g=b.replace(/[.\s\S\w\W<>]*(<style[^>]*>[\s]*[.\s\S\w\W<>]*[\s]*<\/style>)[.\s\S\w\W<>]*/gi,"$1"));b=g+b.replace(/[.\s\S\w\W<>]*<body[^>]*>[\s]*([.\s\S\w\W<>]*)[\s]*<\/body>[.\s\S\w\W<>]*/gi,"$1");b=b.replace(/<pre(?:[\w\W]*?)>(?:[\w\W]*?)<\/pre>/g,function(a){return a.replace(/\n/g,"<br />")});b=b.replace(/ \n/g," ").replace(/\n /g," ").replace(/([^>])\n([^<])/g,
"$1 $2")}f=!1;0<=b.indexOf('id="docs-internal-guid')&&(b=b.replace(/^[\w\W\s\S]* id="docs-internal-guid[^>]*>([\w\W\s\S]*)<\/b>[\w\W\s\S]*$/g,"$1"),f=!0);if(0<=b.indexOf('content="Sheets"')||0<=b.indexOf("google-sheets-html-origin"))b=b.replace(/width:0px;/g,"");g=!1;d||((g=C())&&(b=a.win.localStorage.getItem("fr-copied-html")),g?b=a.clean.html(b,a.opts.pasteDeniedTags,a.opts.pasteDeniedAttrs):(h=a.opts.htmlAllowedStyleProps,a.opts.htmlAllowedStyleProps=a.opts.pasteAllowedStyleProps,a.opts.htmlAllowComments=
!1,b=b.replace(/<span class="Apple-tab-span">\s*<\/span>/g,v(a.opts.tabSpaces||4)),b=b.replace(/<span class="Apple-tab-span" style="white-space:pre">(\t*)<\/span>/g,function(b,c){return v(c.length*(a.opts.tabSpaces||4))}),b=b.replace(/\t/g,v(a.opts.tabSpaces||4)),b=a.clean.html(b,a.opts.pasteDeniedTags,a.opts.pasteDeniedAttrs),a.opts.htmlAllowedStyleProps=h,a.opts.htmlAllowComments=!0,a.html.defaultTag()&&"div"===a.html.defaultTag()||(b=q(b)),b=b.replace(/\r/g,""),b=b.replace(/^ */g,"").replace(/ *$/g,
"")));!d||a.wordPaste&&e||(b=b.replace(/^\n*/g,"").replace(/^ /g,""),0===b.indexOf("<colgroup>")&&(b="<table>".concat(b,"</table>")),b=t(b),b=q(b));a.opts.pastePlain&&(b=R(b));d=a.events.chainTrigger("paste.afterCleanup",b);a.$el[0].removeAttribute("plainpaste",!0);"string"===typeof d&&(b=d);if(""!==b){d=a.o_doc.createElement("div");d.innerHTML=b;0<=b.indexOf("<body>")?(a.html.cleanBlankSpaces(d),a.spaces.normalize(d,!0)):a.spaces.normalize(d);e=d.getElementsByTagName("span");for(b=e.length-1;0<=
b;b--)h=e[b],0===h.attributes.length&&(h.outerHTML=h.innerHTML);if(!0===a.opts.linkAlwaysBlank)for(e=d.getElementsByTagName("a"),b=e.length-1;0<=b;b--)h=e[b],h.getAttribute("target")||h.setAttribute("target","_blank");b=a.selection.element();e=!1;b&&k(b).parentsUntil(a.el,"ul, ol").length&&(e=!0);e&&(b=d.children,1===b.length&&0<=["OL","UL"].indexOf(b[0].tagName)&&(b[0].outerHTML=b[0].innerHTML));if(!f)for(f=d.getElementsByTagName("br"),b=f.length-1;0<=b;b--)e=f[b],a.node.isBlock(e.previousSibling)&&
e.parentNode.removeChild(e);if(a.opts.enter===c.ENTER_BR)for(f=d.querySelectorAll("p, div"),b=f.length-1;0<=b;b--)h=f[b],0===h.attributes.length&&(h.outerHTML=h.innerHTML+(h.nextSibling&&!a.node.isEmpty(h)?"<br>":""));else if(a.opts.enter===c.ENTER_DIV)for(f=d.getElementsByTagName("p"),b=f.length-1;0<=b;b--)h=f[b],0===h.attributes.length&&(h.outerHTML="<div>".concat(h.innerHTML,"</div>"));else a.opts.enter===c.ENTER_P&&1===d.childNodes.length&&"P"===d.childNodes[0].tagName&&0===d.childNodes[0].attributes.length&&
(d.childNodes[0].outerHTML=d.childNodes[0].innerHTML);d.childNodes[0]instanceof HTMLHeadingElement&&a.selection.element().tagName===d.childNodes[0].tagName&&(d.childNodes[0].outerHTML=d.childNodes[0].innerHTML);if(d.children&&0<d.children.length)if(a.opts.trackChangesEnabled)for(f=0;f<d.children.length;f++)d.children[f].setAttribute("id","isPasted");else d.children[0].setAttribute("id","isPasted");b=d.innerHTML;b=b.replace(/\n/g,"");g&&(b=G(b));a.html.insert(b,!0)}a.events.trigger("paste.after");
a.undo.saveStep(Z);Z=null;a.undo.saveStep()}function z(a){for(var b=a.length-1;0<=b;b--)a[b].attributes&&a[b].attributes.length&&a.splice(b,1);return a}function q(b){var c=a.o_doc.createElement("div");c.innerHTML=b;for(var d=z(Array.prototype.slice.call(c.querySelectorAll(":scope > div:not([style]), td > div:not([style]), th > div:not([style]), li > div:not([style])")));d.length;)b=d[d.length-1],a.html.defaultTag()&&"div"!==a.html.defaultTag()?b.querySelector(a.html.blockTagsQuery())?b.outerHTML=
b.innerHTML:b.outerHTML="<".concat(a.html.defaultTag(),">").concat(b.innerHTML,"</").concat(a.html.defaultTag(),">"):(d=b.querySelectorAll("*"),b.outerHTML=!d.length||"BR"!==d[d.length-1].tagName&&0===b.innerText.length?b.innerHTML+(b.nextSibling?"<br>":""):!d.length||"BR"!==d[d.length-1].tagName||d[d.length-1].nextSibling?b.innerHTML+(b.nextSibling?"<br>":""):b.innerHTML),d=z(Array.prototype.slice.call(c.querySelectorAll(":scope > div:not([style]), td > div:not([style]), th > div:not([style]), li > div:not([style])")));
for(d=z(Array.prototype.slice.call(c.querySelectorAll("div:not([style])")));d.length;){for(b=0;b<d.length;b++){var e=d[b],f=e.innerHTML.replace(/\u0009/gi,"").trim();e.outerHTML=f}d=z(Array.prototype.slice.call(c.querySelectorAll("div:not([style])")))}return c.innerHTML}function G(b){var d=a.o_doc.createElement("div");d.innerHTML=b;for(var e=d.querySelectorAll("*:empty:not(td):not(th):not(tr):not(iframe):not(svg):not(".concat(c.VOID_ELEMENTS.join("):not("),"):not(").concat(a.opts.htmlAllowedEmptyTags.join("):not("),
")"));e.length;){for(b=0;b<e.length;b++)e[b].parentNode.removeChild(e[b]);e=d.querySelectorAll("*:empty:not(td):not(th):not(tr):not(iframe):not(svg):not(".concat(c.VOID_ELEMENTS.join("):not("),"):not(").concat(a.opts.htmlAllowedEmptyTags.join("):not("),")"))}return d.innerHTML}function H(){a.el.removeEventListener("copy",d);a.el.removeEventListener("cut",d);a.el.removeEventListener("paste",f)}var k=a.$,x,u,h,r,N,Z,ja,K=!1,U;return{_init:function(){a.el.addEventListener("copy",d);a.el.addEventListener("cut",
d);a.el.addEventListener("paste",f,{capture:!0});a.events.on("drop",n);a.browser.msie&&11>a.browser.version&&(a.events.on("mouseup",function(a){2===a.button&&(setTimeout(function(){K=!1},50),K=!0)},!0),a.events.on("beforepaste",f));a.events.on("destroy",H)},cleanEmptyTagsAndDivs:q,getRtfClipboard:function(){return u},saveCopiedText:b,clean:w,replaceNewLines:A}};Object.assign(c.DEFAULTS,{shortcutsEnabled:[],shortcutsHint:!0});c.SHORTCUTS_MAP={};c.RegisterShortcut=function(a,b,d,f,l,n){c.SHORTCUTS_MAP[(l?
"^":"")+(n?"@":"")+a]={cmd:b,val:d,letter:f,shift:l,option:n};c.DEFAULTS.shortcutsEnabled.push(b)};c.RegisterShortcut(c.KEYCODE.E,"show",null,"E",!1,!1);c.RegisterShortcut(c.KEYCODE.B,"bold",null,"B",!1,!1);c.RegisterShortcut(c.KEYCODE.I,"italic",null,"I",!1,!1);c.RegisterShortcut(c.KEYCODE.U,"underline",null,"U",!1,!1);c.RegisterShortcut(c.KEYCODE.S,"strikeThrough",null,"S",!1,!1);c.RegisterShortcut(c.KEYCODE.CLOSE_SQUARE_BRACKET,"indent",null,"]",!1,!1);c.RegisterShortcut(c.KEYCODE.OPEN_SQUARE_BRACKET,
"outdent",null,"[",!1,!1);c.RegisterShortcut(c.KEYCODE.Z,"undo",null,"Z",!1,!1);c.RegisterShortcut(c.KEYCODE.Z,"redo",null,"Z",!0,!1);c.RegisterShortcut(c.KEYCODE.Y,"redo",null,"Y",!1,!1);c.MODULES.shortcuts=function(a){function b(b){if(!a.core.hasFocus())return!0;var d=b.which,e=-1!==navigator.userAgent.indexOf("Mac OS X")?b.metaKey:b.ctrlKey;if("keyup"===b.type&&f&&d!==c.KEYCODE.META)return f=!1;"keydown"===b.type&&(f=!1);d=(b.shiftKey?"^":"")+(b.altKey?"@":"")+d;var g=a.node.blockParent(a.selection.blocks()[0]);
g&&"TR"==g.tagName&&void 0==g.getAttribute("contenteditable")&&(g=g.closest("table"));if(e&&c.SHORTCUTS_MAP[d]&&(!g||"false"!==g.getAttribute("contenteditable"))&&(e=c.SHORTCUTS_MAP[d].cmd)&&0<=a.opts.shortcutsEnabled.indexOf(e))if(!1!==a.events.trigger("shortcut",[b,e,c.SHORTCUTS_MAP[d].val])){if(e&&(a.commands[e]||c.COMMANDS[e]&&c.COMMANDS[e].callback))return b.preventDefault(),b.stopPropagation(),"keydown"===b.type&&((a.commands[e]||c.COMMANDS[e].callback)(),f=!0),!1}else return f=!0,!1}var d=
null,f=!1;return{_init:function(){a.events.on("keydown",b,!0);a.events.on("keyup",b,!0)},get:function(b){if(!a.opts.shortcutsHint)return null;if(!d){d={};for(var e in c.SHORTCUTS_MAP)Object.prototype.hasOwnProperty.call(c.SHORTCUTS_MAP,e)&&0<=a.opts.shortcutsEnabled.indexOf(c.SHORTCUTS_MAP[e].cmd)&&(d["".concat(c.SHORTCUTS_MAP[e].cmd,".").concat(c.SHORTCUTS_MAP[e].val||"")]={shift:c.SHORTCUTS_MAP[e].shift,option:c.SHORTCUTS_MAP[e].option,letter:c.SHORTCUTS_MAP[e].letter})}return(b=d[b])?(a.helpers.isMac()?
String.fromCharCode(8984):"".concat(a.language.translate("Ctrl"),"+"))+(b.shift?a.helpers.isMac()?String.fromCharCode(8679):"".concat(a.language.translate("Shift"),"+"):"")+(b.option?a.helpers.isMac()?String.fromCharCode(8997):"".concat(a.language.translate("Alt"),"+"):"")+b.letter:null}}};c.MODULES.snapshot=function(a){function b(a){for(var b=a.parentNode.childNodes,c=0,d=null,e=0;e<b.length;e++){if(d){var f=d.nodeType===Node.TEXT_NODE&&b[e].nodeType===Node.TEXT_NODE;d=d.nodeType===Node.TEXT_NODE&&
""===d.textContent;b[e].nodeType===Node.TEXT_NODE&&""===b[e].textContent||f||d||c++}if(b[e]===a)return c;d=b[e]}}function c(c){var d=[];if(!c.parentNode)return[];for(;!a.node.isElement(c);)d.push(b(c)),c=c.parentNode;return d.reverse()}function d(a,b){for(;a&&a.nodeType===Node.TEXT_NODE;)(a=a.previousSibling)&&a.nodeType===Node.TEXT_NODE&&(b+=a.textContent.length);return b}function f(a){return{scLoc:c(a.startContainer),scOffset:d(a.startContainer,a.startOffset),ecLoc:c(a.endContainer),ecOffset:d(a.endContainer,
a.endOffset)}}function n(b){for(var c=a.el,d=0;d<b.length;d++)c=c.childNodes[b[d]];return c}return{get:function(){var b={};a.events.trigger("snapshot.before");b.html=(a.$wp?a.$el.html():a.$oel.get(0).outerHTML).replace(/ style=""/g,"");b.ranges=[];if(a.$wp&&a.selection.inEditor()&&a.core.hasFocus())for(var c=a.selection.ranges(),d=0;d<c.length;d++)b.ranges.push(f(c[d]));a.events.trigger("snapshot.after",[b]);return b},restore:function(b){a.$el.html()!==b.html&&(a.opts.htmlExecuteScripts?a.$el.html(b.html):
a.el.innerHTML=b.html);var c=a.selection.get();a.selection.clear();a.events.focus(!0);for(var d=0;d<b.ranges.length;d++){var e=c,f=b.ranges[d];try{var g=n(f.scLoc),l=f.scOffset,B=n(f.ecLoc),p=f.ecOffset,m=a.doc.createRange();m.setStart(g,l);m.setEnd(B,p);e.addRange(m)}catch(q){}}},equal:function(b,c){return b.html!==c.html||a.core.hasFocus()&&JSON.stringify(b.ranges)!==JSON.stringify(c.ranges)?!1:!0}}};c.MODULES.undo=function(a){function b(b){var d=b.which;a.keys.ctrlKey(b)&&(d===c.KEYCODE.Z&&b.shiftKey&&
b.preventDefault(),d===c.KEYCODE.Z&&b.preventDefault())}function d(){if(a.undo_stack&&!a.undoing)for(;a.undo_stack.length>a.undo_index;)a.undo_stack.pop()}function f(){a.undo_index=0;a.undo_stack=[]}function l(){a.undo_stack=[]}var n=null;return{_init:function(){f();a.events.on("initialized",function(){n=(a.$wp?a.$el.html():a.$oel.get(0).outerHTML).replace(/ style=""/g,"")});a.events.on("blur",function(){a.el.querySelector(".fr-dragging")||a.undo.saveStep()});a.events.on("keydown",b);a.events.on("destroy",
l)},run:function(){if(1<a.undo_index){a.undoing=!0;var b=a.undo_stack[--a.undo_index-1];clearTimeout(a._content_changed_timer);a.snapshot.restore(b);n=b.html;a.popups.hideAll();a.toolbar.enable();a.events.trigger("contentChanged");a.events.trigger("commands.undo");a.undoing=!1;a.selection.restore()}},redo:function(){if(a.undo_index<a.undo_stack.length){a.undoing=!0;var b=a.undo_stack[a.undo_index++];clearTimeout(a._content_changed_timer);a.snapshot.restore(b);n=b.html;a.popups.hideAll();a.toolbar.enable();
a.events.trigger("contentChanged");a.events.trigger("commands.redo");a.undoing=!1}},canDo:function(){return 0===a.undo_stack.length||1>=a.undo_index?!1:!0},canRedo:function(){return a.undo_index===a.undo_stack.length?!1:!0},dropRedo:d,reset:f,saveStep:function(b){if(!(!a.undo_stack||a.undoing||a.el.querySelector(".fr-marker")||a.el.querySelector(".fr-marker")&&a.opts.iframe&&a.markdown&&!a.markdown.isEnabled()))if("undefined"===typeof b){if(b=a.snapshot.get(),!(b&&b.html&&a.undo_stack[a.undo_stack.length-
1]&&b.html===a.undo_stack[a.undo_stack.length-1].html||a.undo_stack[a.undo_index-1]&&a.snapshot.equal(a.undo_stack[a.undo_index-1],b))){d();a.undo_stack.push(b);a.undo_index++;var c=n,e=b.html.split("fr-selected-cell").join("");e=e.split(' class=""').join("");c=c.split("fr-selected-cell").join("");c=c.split(' class=""').join("");e!==c&&(a.events.trigger("contentChanged"),n=b.html)}}else d(),0<a.undo_index?a.undo_stack[a.undo_index-1]=b:(a.undo_stack.push(b),a.undo_index++)}}};Object.assign(c.DEFAULTS,
{height:null,heightMax:null,heightMin:null,width:null});c.MODULES.size=function(a){function b(){c();a.opts.height&&a.$el.css("minHeight",a.opts.height-a.helpers.getPX(a.$el.css("padding-top"))-a.helpers.getPX(a.$el.css("padding-bottom")));var b=!1;if(a.opts.fullPage)for(var d=a.$el.find("span,p,div"),e=0;e<d.length;e++)if(d[e].style.height&&d[e].style.height.includes("vh")){b=!0;break}a.opts.fullPage&&b&&(a.opts.heightMin&&a.$iframe.css("minHeight",a.opts.heightMin),a.opts.heightMax&&a.$iframe.css("maxHeight",
a.opts.heightMax),a.$el.css("overflow-y","auto"));a.opts.iframe&&a.markdown&&a.markdown.isEnabled()?a.$iframe.height(a.$wp.parent().outerHeight(!0)):a.$iframe.height(a.$el.outerHeight(!0))}function c(){a.opts.heightMin?a.$el.css("minHeight",a.opts.heightMin):a.$el.css("minHeight","");a.opts.heightMax?(a.$wp.css("maxHeight",a.opts.heightMax),a.$wp.css("overflow","auto")):(a.$wp.css("maxHeight",""),a.$wp.css("overflow",""));a.opts.height?(a.$wp.css("height",a.opts.height),a.$wp.css("overflow","auto"),
a.$el.css("minHeight",a.opts.height-a.helpers.getPX(a.$el.css("padding-top"))-a.helpers.getPX(a.$el.css("padding-bottom")))):(a.$wp.css("height",""),a.opts.heightMin||a.$el.css("minHeight",""),a.opts.heightMax||a.$wp.css("overflow",""));a.opts.width&&a.$box.width(a.opts.width)}return{_init:function(){if(!a.$wp)return!1;c();a.$iframe&&(a.events.on("keyup keydown",function(){setTimeout(b,0)},!0),a.events.on("commands.after html.set init initialized paste.after",b))},syncIframe:b,refresh:c}};Object.assign(c.DEFAULTS,
{documentReady:!1,editorClass:null,typingTimer:500,iframe:!1,requestWithCORS:!0,requestWithCredentials:!1,requestHeaders:{},useClasses:!0,spellcheck:!0,iframeDefaultStyle:'html{margin:0px;height:auto;}body{height:auto;padding:20px;background:transparent;color:#000000;position:relative;z-index: 2;-webkit-user-select:auto;margin:0px;overflow:hidden;min-height:20px;}body:after{content:"";display:block;clear:both;}body::-moz-selection{background:#b5d6fd;color:#000;}body::selection{background:#b5d6fd;color:#000;}',
iframeStyle:"",iframeStyleFiles:[],direction:"auto",zIndex:1,tabIndex:null,disableRightClick:!1,scrollableContainer:"body",keepFormatOnDelete:!1,theme:null});c.MODULES.core=function(a){function b(){a.$box.addClass("fr-box".concat(a.opts.editorClass?" ".concat(a.opts.editorClass):""));a.$box.attr("role","application");a.$wp.addClass("fr-wrapper");a.opts.documentReady&&a.$box.addClass("fr-document");a.opts.iframe||a.$el.addClass("fr-element fr-view");if("Font Size"!=a.opts.fontSizeDefaultSelection||
"Font Family"!=a.opts.fontFamilyDefaultSelection){var b="";if("Font Size"!=a.opts.fontSizeDefaultSelection){var c="pt"===a.opts.fontSizeUnit?Math.round(72*parseFloat(a.opts.fontSizeDefaultSelection,10)/96):a.opts.fontSizeDefaultSelection;b+="font-size: ".concat(c).concat(a.opts.fontSizeUnit," !important; ")}"Font Family"!=a.opts.fontFamilyDefaultSelection&&(b+="font-family: ".concat(a.opts.fontFamilyDefaultSelection," !important;"));if(1==a.opts.iframe)a.opts.iframeStyle+="body p, div, ol, ul, table { ".concat(b,
" }");else{c=d(document.getElementById("default-styles"));var e="default-styles-".concat(a.id);b=".".concat(e," p, .").concat(e," div, .").concat(e," table, .").concat(e," ol, .").concat(e," ul{  ").concat(b," }");0==c.length&&(c=d(document.createElement("style")).attr("id","default-styles"),d("head").append(c));c.append(b);d("head").append(c);a.$el.addClass(e)}}(a.opts.height&&a.opts.height<window.innerHeight||a.opts.heightMax&&a.opts.heightMax<window.innerHeight)&&a.$el.addClass("fr-element-scroll-visible");
if(a.opts.iframe)for(a.$iframe.addClass("fr-iframe"),a.$el.addClass("fr-view"),b=0;b<a.o_doc.styleSheets.length;b++){c=void 0;e=!1;try{c=a.o_doc.styleSheets[b].cssRules}catch(A){}a.o_doc.styleSheets[b].href&&(-1<a.o_doc.styleSheets[b].href.indexOf("codemirror")||-1<a.o_doc.styleSheets[b].href.indexOf("font-awesome"))&&(c=null,e=!0);if(c)for(var f=0,g=c.length;f<g;f++)if(!c[f].selectorText||0!==c[f].selectorText.indexOf(".fr-view")&&0!==c[f].selectorText.indexOf(".fr-element")&&0!==c[f].selectorText.indexOf(".fr-box.fr-basic .fr-element")&&
0!==c[f].selectorText.indexOf(".fr-markdown-view")&&0!==c[f].selectorText.indexOf(".fr-markdown-editor")&&0!==c[f].selectorText.indexOf(".fr-wrapper-markdown")&&0!==c[f].selectorText.indexOf(".gutter-horizontal")&&0!==c[f].selectorText.indexOf(".e-resize-handler"))try{e&&a.o_doc.styleSheets[b].href&&c[f].selectorText&&(a.opts.iframeStyle+="".concat(c[f].selectorText,"{").concat(c[f].style.cssText,"}"),e=!1)}catch(A){}else 0<c[f].style.cssText.length&&(0===c[f].selectorText.indexOf(".fr-box.fr-basic .fr-element")&&
(a.opts.iframeStyle+="".concat(c[f].selectorText,"{").concat(c[f].style.cssText,"}")),0===c[f].selectorText.indexOf(".fr-view")?a.opts.iframeStyle+="".concat(c[f].selectorText.replace(/\.fr-view/g,"body"),"{").concat(c[f].style.cssText,"}"):a.opts.iframeStyle+="".concat(c[f].selectorText.replace(/\.fr-element/g,"body"),"{").concat(c[f].style.cssText,"}"));else a.o_doc.styleSheets[b].href&&(-1<a.o_doc.styleSheets[b].href.indexOf("codemirror")||-1<a.o_doc.styleSheets[b].href.indexOf("font-awesome")||
-1<a.o_doc.styleSheets[b].href.indexOf("froala-editor"))&&(c=d("<link rel='stylesheet' type='text/css' href='".concat(a.o_doc.styleSheets[b].href,"'>")),a.$head.append(c))}"auto"!==a.opts.direction&&a.$box.removeClass("fr-ltr fr-rtl").addClass("fr-".concat(a.opts.direction));a.$el.attr("dir",a.opts.direction);a.$wp.attr("dir",a.opts.direction);1<a.opts.zIndex&&a.$box.css("z-index",a.opts.zIndex);a.opts.theme&&a.$box.addClass("".concat(a.opts.theme,"-theme"));a.opts.tabIndex=a.opts.tabIndex||a.$oel.attr("tabIndex");
a.opts.tabIndex&&a.$el.attr("tabIndex",a.opts.tabIndex)}var d=a.$;return{_init:function(){c.INSTANCES.push(a);a.drag_support={filereader:"undefined"!==typeof FileReader,formdata:!!a.win.FormData,progress:"upload"in new XMLHttpRequest};if(a.$wp){b();a.html.set(a._original_html);a.$el.attr("spellcheck",a.opts.spellcheck);a.helpers.isMobile()&&(a.$el.attr("autocomplete",a.opts.spellcheck?"on":"off"),a.$el.attr("autocorrect",a.opts.spellcheck?"on":"off"),a.$el.attr("autocapitalize",a.opts.spellcheck?
"on":"off"));a.opts.disableRightClick&&a.events.$on(a.$el,"contextmenu",function(a){if(2===a.button)return a.preventDefault(),a.stopPropagation(),!1});try{a.doc.execCommand("styleWithCSS",!1,!1)}catch(B){}}"TEXTAREA"===a.$oel.get(0).tagName&&(a.events.on("contentChanged",function(){a.$oel.val(a.html.get())}),a.events.on("form.submit",function(){a.$oel.val(a.html.get())}),a.events.on("form.reset",function(){a.html.set(a._original_html)}),a.$oel.val(a.html.get()));a.helpers.isIOS()&&a.events.$on(a.$doc,
"selectionchange",function(){a.$doc.get(0).hasFocus()||a.$win.get(0).focus()});a.events.trigger("init");if(a.opts.autofocus&&!a.opts.initOnClick&&a.$wp)a.events.on("initialized",function(){a.events.focus(!0)})},destroy:function(b){"TEXTAREA"===a.$oel.get(0).tagName&&a.$oel.val(b);a.$box&&a.$box.removeAttr("role");a.$wp&&("TEXTAREA"===a.$oel.get(0).tagName?(a.$el.html(""),a.$wp.html(""),a.$box.replaceWith(a.$oel),a.$oel.show()):(a.$wp.replaceWith(b),a.$el.html(""),a.$box.removeClass("fr-view fr-ltr fr-box ".concat(a.opts.editorClass||
"")),a.opts.theme&&a.$box.addClass("".concat(a.opts.theme,"-theme"))));var c=document.getElementById("default-styles");c&&c.childNodes.forEach(function(b){1==b.data.search("default-styles-".concat(a.id))&&c.removeChild(b)});this.$box=this.el=this.$el=this.$wp=null},isEmpty:function(){return a.node.isEmpty(a.el)},getXHR:function(b,c){var d=new XMLHttpRequest;d.open(c,b,!0);a.opts.requestWithCredentials&&(d.withCredentials=!0);for(var e in a.opts.requestHeaders)Object.prototype.hasOwnProperty.call(a.opts.requestHeaders,
e)&&d.setRequestHeader(e,a.opts.requestHeaders[e]);return d},injectStyle:function(b){if(a.opts.iframe)for(a.$head.find("style[data-fr-style], link[data-fr-style]").remove(),a.$head.append('<style data-fr-style="true">'.concat(b,"</style>")),b=0;b<a.opts.iframeStyleFiles.length;b++){var c=d('<link data-fr-style="true" rel="stylesheet" href="'.concat(a.opts.iframeStyleFiles[b],'">'));c.get(0).addEventListener("load",a.size.syncIframe);a.$head.append(c)}},hasFocus:function(){return a.browser.mozilla&&
a.helpers.isMobile()?a.selection.inEditor():a.node.hasFocus(a.el)||0<a.$el.find("*:focus").length},sameInstance:function(b){return b?(b=b.data("instance"))?b.id===a.id:!1:!1}}};c.POPUP_TEMPLATES={"text.edit":"[_EDIT_]"};c.RegisterTemplate=function(a,b){c.POPUP_TEMPLATES[a]=b};c.MODULES.popups=function(a){function b(b,c){c.isVisible()||(c=a.$sc);c.is(k[b].data("container"))||(k[b].data("container",c),c.append(k[b]))}function d(b){b.find(".fr-upload-progress").addClass("fr-height-set");b.find(".fr-upload-progress").removeClass("fr-height-auto");
a.popups.get("filesManager.insert").removeClass("fr-height-auto");var c;b.find(".fr-files-upload-layer").hasClass("fr-active")?c=1:"";b.find(".fr-files-by-url-layer").hasClass("fr-active")?c=2:"";b.find(".fr-files-embed-layer").hasClass("fr-active")?c=3:"";b.find(".fr-upload-progress-layer").get(0).clientHeight+10<b.find(".fr-upload-progress").get(0).clientHeight&&b.find(".fr-upload-progress").addClass("fr-height-auto");400<b[0].clientHeight&&(b[0].childNodes[4].style.height="".concat(b[0].clientHeight-
(b[0].childNodes[0].clientHeight+b[0].childNodes[c].clientHeight)-80,"px"))}function f(){G(this).toggleClass("fr-not-empty",!0)}function l(){var a=G(this);a.toggleClass("fr-not-empty",""!==a.val())}function n(a){for(var b=0;b<a.length;b++){var c=G(a[b]);0===c.next().length&&c.attr("placeholder")&&(c.after('<label for="'.concat(c.attr("id"),'">').concat(c.attr("placeholder"),"</label>")),c.attr("placeholder",""))}}function p(b){return k[b]&&a.node.hasClass(k[b],"fr-active")&&a.core.sameInstance(k[b])||
!1}function m(a){for(var b in k)if(Object.prototype.hasOwnProperty.call(k,b)&&p(b)&&("undefined"===typeof a||k[b].data("instance")===a))return k[b];return!1}function A(b){var c=null;c="string"!==typeof b?b:k[b];if("filesManager.insert"===b&&void 0!==a.filesManager&&a.filesManager.isChildWindowOpen())return!1;if(c&&a.node.hasClass(c,"fr-active")&&(c.removeClass("fr-active fr-above"),a.events.trigger("popups.hide.".concat(b)),a.$tb&&(1<a.opts.zIndex?a.$tb.css("zIndex",a.opts.zIndex+1):a.$tb.css("zIndex",
"")),a.events.disableBlur(),c.find("input, textarea, button").each(function(){this===this.ownerDocument.activeElement&&this.blur()}),c.find("input, textarea").attr("disabled","disabled"),x))for(b=0;b<x.length;b++)G(x[b]).removeClass("fr-btn-active-popup")}function t(a){"undefined"===typeof a&&(a=[]);for(var b in k)Object.prototype.hasOwnProperty.call(k,b)&&0>a.indexOf(b)&&A(b)}function R(){a.shared.exit_flag=!0}function D(){a.shared.exit_flag=!1}function C(b,d){var e;if(e=c.POPUP_TEMPLATES[b]){"function"===
typeof e&&(e=e.apply(a));for(var f in d)Object.prototype.hasOwnProperty.call(d,f)&&(e=e.replace("[_".concat(f.toUpperCase(),"_]"),d[f]))}else e=null;d=G(a.doc.createElement("DIV"));if(!e)return"filesManager.insert"===b?d.addClass("fr-popup fr-files-manager fr-empty"):d.addClass("fr-popup fr-empty"),e=G("body").first(),e.append(d),d.data("container",e),k[b]=d;"filesManager.insert"===b?d.addClass("fr-popup fr-files-manager".concat(a.helpers.isMobile()?" fr-mobile":" fr-desktop").concat(a.opts.toolbarInline?
" fr-inline":"")):d.addClass("fr-popup".concat(a.helpers.isMobile()?" fr-mobile":" fr-desktop").concat(a.opts.toolbarInline?" fr-inline":""));d.html(e);a.opts.theme&&d.addClass("".concat(a.opts.theme,"-theme"));1<a.opts.zIndex&&(!a.opts.editInPopup&&a.$tb?a.$tb.css("z-index",a.opts.zIndex+2):d.css("z-index",a.opts.zIndex+2));"auto"!==a.opts.direction&&d.removeClass("fr-ltr fr-rtl").addClass("fr-".concat(a.opts.direction));d.find("input, textarea").attr("dir",a.opts.direction).attr("disabled","disabled");
e=G("body").first();e.append(d);d.data("container",e);k[b]=d;b=d.find(".fr-color-hex-layer");if(0<b.length){e=a.helpers.getPX(d.find(".fr-color-set > span").css("width"));f=a.helpers.getPX(b.css("paddingLeft"));var h=a.helpers.getPX(b.css("paddingRight"));b.css("width",e*a.opts.colorsStep+f+h)}a.button.bindCommands(d,!1);return d}function v(b){var d=k[b];return{_windowResize:function(){var c=d.data("instance")||a;if(!c.helpers.isMobile()&&d.isVisible()){var e=d.find(".fr-file-progress-bar-layer");
"file.insert"===b&&0<e.length&&e.hasClass("fr-active")?(e=a.$tb.find('.fr-command[data-cmd="insertFile"]'),c.events.disableBlur(),e=a.button.getPosition(e),a.position.at(e.left,e.top,k[b],0)):(c.events.disableBlur(),c.popups.hide(b));c.events.enableBlur()}},_inputFocus:function(b){var c=d.data("instance")||a,e=G(b.currentTarget);e.is("input:file")&&e.closest(".fr-layer").addClass("fr-input-focus");b.preventDefault();b.stopPropagation();setTimeout(function(){c.events.enableBlur()},100);if(c.helpers.isMobile()){var f=
G(c.o_win).scrollTop();setTimeout(function(){G(c.o_win).scrollTop(f)},0)}},_inputBlur:function(b){var c=d.data("instance")||a;b=G(b.currentTarget);b.is("input:file")&&b.closest(".fr-layer").removeClass("fr-input-focus");document.activeElement!==this&&G(this).isVisible()&&(c.events.blurActive()&&c.events.trigger("blur"),c.events.enableBlur())},_editorKeydown:function(e){var f=d.data("instance")||a;f.keys.ctrlKey(e)||e.which===c.KEYCODE.ALT||e.which===c.KEYCODE.ESC||(p(b)&&d.findVisible(".fr-back").length?
f.button.exec(d.findVisible(".fr-back").first()):e.which!==c.KEYCODE.ALT&&f.popups.hide(b))},_preventFocus:function(b){var c=d.data("instance")||a,e=b.originalEvent?b.originalEvent.target||b.originalEvent.originalTarget:null;"mouseup"===b.type||G(e).is(":focus")||c.events.disableBlur();"mouseup"!==b.type||G(e).hasClass("fr-command")||0<G(e).parents(".fr-command").length||G(e).hasClass("fr-dropdown-content")||G(e).hasClass("fr-dropdown-menu")||a.button.hideActiveDropdowns(d);(a.browser.safari||a.browser.mozilla)&&
"mousedown"===b.type&&G(e).is("input[type=file]")&&c.events.disableBlur();if(e&&!G(e).is("input, textarea, button, select, label, .fr-command")&&0===G(e).parents("input, textarea, button, select, label, .fr-command").length)return b.stopPropagation(),!1;e&&G(e).is("input, textarea, button, select, label, .fr-command")&&b.stopPropagation();D()},_editorMouseup:function(){d.isVisible()&&a.shared.exit_flag&&0<d.findVisible("input:focus, textarea:focus, button:focus, select:focus").length&&a.events.disableBlur()},
_windowMouseup:function(c){if(!a.core.sameInstance(d))return!0;var e=d.data("instance")||a;d.isVisible()&&a.shared.exit_flag&&(c.stopPropagation(),e.markers.remove(),e.popups.hide(b),D())},_windowKeydown:function(e){if(!a.core.sameInstance(d))return!0;var f=d.data("instance")||a;if(c.KEYCODE.ESC===e.which){if(f.popups.isVisible(b)&&f.opts.toolbarInline)return e.stopPropagation(),f.popups.isVisible(b)&&(d.findVisible(".fr-back").length?(f.button.exec(d.findVisible(".fr-back").first()),f.accessibility.focusPopupButton(d)):
d.findVisible(".fr-dismiss").length?f.button.exec(d.findVisible(".fr-dismiss").first()):(f.popups.hide(b),f.toolbar.showInline(null,!0),f.accessibility.focusPopupButton(d))),!1;if(f.popups.isVisible(b))return d.findVisible(".fr-back").length?(f.button.exec(d.findVisible(".fr-back").first),f.accessibility.focusPopupButton(d)):d.findVisible(".fr-dismiss").length?f.button.exec(d.findVisible(".fr-dismiss").first()):(f.popups.hide(b),f.accessibility.focusPopupButton(d)),!1}},_repositionPopup:function(){if(!a.opts.height&&
!a.opts.heightMax||a.opts.toolbarInline)return!0;if(a.$wp&&p(b)&&d.parent().get(0)===a.$sc.get(0)){var c=d.offset().top-a.$wp.offset().top,e=a.$wp.outerHeight();a.node.hasClass(d.get(0),"fr-above")&&(c+=d.outerHeight());c>e||0>c?d.addClass("fr-hidden"):d.removeClass("fr-hidden")}},handleWindowClick:function(c){if(!a.core.sameInstance(d))return!0;var e=d.data("instance")||a;d.isVisible()&&c.target&&(0<G(c.target).find("body").length||"BODY"===G(c.target)[0].tagName)&&(c.stopPropagation(),e.popups.hide(b))}}}
function w(b,c){a.events.on("mouseup",b._editorMouseup,!0);if(a.$wp)a.events.on("keydown",b._editorKeydown);a.events.on("focus",function(){k[c].removeClass("focused")});a.events.on("blur",function(){m()&&a.markers.remove();a.helpers.isMobile()?k[c].hasClass("focused")?(t(),k[c].removeClass("focused")):k[c].addClass("focused"):k[c].find("iframe").length||t()});a.$wp&&!a.helpers.isMobile()&&a.events.$on(a.$wp,"scroll.popup".concat(c),b._repositionPopup);a.events.on("window.mouseup",b._windowMouseup,
!0);a.events.on("window.keydown",b._windowKeydown,!0);a.opts.iframe&&window.addEventListener("click",b.handleWindowClick);k[c].data("inst".concat(a.id),!0);a.events.on("destroy",function(){a.core.sameInstance(k[c])&&(G("body").first().append(k[c]),k[c].removeClass("fr-active"))},!0)}function z(){var a=G(this).prev().children().first();a.attr("checked",!a.attr("checked"))}function q(){for(var a in k)if(Object.prototype.hasOwnProperty.call(k,a)){var b=k[a];b&&(b.html("").removeData().remove(),k[a]=
null)}k=[]}var G=a.$,H;a.shared.popups||(a.shared.popups={});var k=a.shared.popups,x,u=2E3;a.shared.exit_flag=!1;return{_init:function(){H=window.innerHeight;a.events.on("shared.destroy",q,!0);a.events.on("window.mousedown",R);a.events.on("window.touchmove",D);a.events.$on(G(a.o_win),"scroll",D);a.events.on("mousedown",function(b){m()&&(b.stopPropagation(),a.$el.find(".fr-marker").remove(),R(),a.events.disableBlur())})},create:function(b,c){c=C(b,c);var d=v(b);w(d,b);a.events.$on(c,"mousedown mouseup touchstart touchend touch",
"*",d._preventFocus,!0);a.events.$on(c,"focus","input, textarea, button, select",d._inputFocus,!0);a.events.$on(c,"blur","input, textarea, button, select",d._inputBlur,!0);var e=c.find("input, textarea");n(e);a.events.$on(e,"focus",f);a.events.$on(e,"blur change",l);a.events.$on(c,"click",".fr-checkbox + label",z);a.accessibility.registerPopup(b);a.helpers.isIOS()&&a.events.$on(c,"touchend","label",function(){G("#".concat(G(this).attr("for"))).prop("checked",function(a,b){return!b})},!0);a.events.$on(G(a.o_win),
"resize",d._windowResize,!0);"filesManager.insert"===b&&k["filesManager.insert"].css("zIndex",2147483641);return c},get:function(b){var c=k[b];if(c&&!c.data("inst".concat(a.id))){var d=v(b);w(d,b)}return c},show:function(c,d,e,f,g){p(c)||(m()&&0<a.$el.find(".fr-marker").length?(a.events.disableBlur(),a.selection.restore()):m()||(a.events.disableBlur(),a.events.focus(),a.events.enableBlur()));t([c]);if(!k[c])return!1;var h=a.button.getButtons(".fr-dropdown.fr-active");h.removeClass("fr-active").attr("aria-expanded",
!1).parents(".fr-toolbar").css("zIndex","").find("> .fr-dropdown-wrapper").css("height","");h.next().attr("aria-hidden",!0).css("overflow","").find("> .fr-dropdown-wrapper").css("height","");k[c].data("instance",a);a.$tb&&a.$tb.data("instance",a);h=p(c);k[c].addClass("fr-active").removeClass("fr-hidden").find("input, textarea").removeAttr("disabled");var l=k[c].data("container"),r=l;r.isVisible()||(r=a.$sc);r.contains([k[c].get(0)])||r.append(k[c]);a.opts.toolbarInline&&l&&a.$tb&&l.get(0)===a.$tb.get(0)&&
(b(c,a.$sc),e=a.$tb.offset().top-a.helpers.getPX(a.$tb.css("margin-top")),d=a.$tb.offset().left+a.$tb.outerWidth()/2,a.node.hasClass(a.$tb.get(0),"fr-above")&&e&&(e+=a.$tb.outerHeight()),f=0);l=k[c].data("container");if(a.opts.iframe&&!f&&!h){r=a.helpers.getPX(a.$wp.find(".fr-iframe").css("padding-top"));var u=a.helpers.getPX(a.$wp.find(".fr-iframe").css("padding-left"));d&&(d-=a.$iframe.offset().left+u);e&&(e-=a.$iframe.offset().top+r)}l.is(a.$tb)?a.$tb.css("zIndex",(a.opts.zIndex||1)+4):k[c].css("zIndex",
(a.opts.zIndex||1)+3);a.opts.toolbarBottom&&l&&a.$tb&&l.get(0)===a.$tb.get(0)&&(k[c].addClass("fr-above"),e&&(e-=k[c].outerHeight()));g&&(d-=k[c].width()/2);d+k[c].outerWidth()>a.$sc.offset().left+a.$sc.width()&&(d-=d+k[c].outerWidth()-a.$sc.offset().left-a.$sc.width());d<a.$sc.offset().left&&"rtl"===a.opts.direction&&(d=a.$sc.offset().left);k[c].removeClass("fr-active");a.position.at(d,e,k[c],f||0);(d=a.node.blockParent(a.selection.blocks()[0]))&&"false"===d.getAttribute("contenteditable")?k[c].removeClass("fr-active"):
(d=a.selection.element().parentElement.getAttribute("contenteditable"))&&"false"===d?k[c].removeClass("fr-active"):k[c].addClass("fr-active");h||a.accessibility.focusPopup(k[c]);a.opts.toolbarInline&&a.toolbar.hide();a.$tb&&(x=a.$tb.find(".fr-btn-active-popup"));a.events.trigger("popups.show.".concat(c));v(c)._repositionPopup();D()},hide:A,onHide:function(b,c){a.events.on("popups.hide.".concat(b),c)},hideAll:t,setContainer:b,refresh:function(b){k[b].data("instance",a);a.events.trigger("popups.refresh.".concat(b));
b=k[b].find(".fr-command");for(var c=0;c<b.length;c++){var d=G(b[c]);0===d.parents(".fr-dropdown-menu").length&&a.button.refresh(d)}},onRefresh:function(b,c){a.events.on("popups.refresh.".concat(b),c)},onShow:function(b,c){a.events.on("popups.show.".concat(b),c)},isVisible:p,setFileListHeight:d,areVisible:m,setPopupDimensions:function(b,c){c&&b.find(".fr-upload-progress-layer").get(0).clientHeight<u&&(b.find(".fr-upload-progress").addClass("fr-height-auto"),a.popups.get("filesManager.insert").addClass("fr-height-auto"),
b.find(".fr-upload-progress").removeClass("fr-height-set"),u=2E3);b.get(0).clientHeight>window.innerHeight/2&&(500>window.innerWidth?b.get(0).clientHeight>.6*H&&d(b):400<b.get(0).clientHeight&&d(b),u=b.find(".fr-upload-progress-layer").get(0).clientHeight);c=window.innerWidth;switch(!0){case 320>=c:b.width(200);break;case 420>=c:b.width(250);break;case 520>=c:b.width(300);break;case 720>=c:b.width(400);break;case 720<c:b.width(530)}}}};c.MODULES.accessibility=function(a){function b(b){for(var c=a.$el.find('[contenteditable="true"]'),
d=!1,e=0;c.get(e);)k(c.get(e)).is(":focus")&&(d=!0),e++;b&&b.length&&!d&&(b.data("blur-event-set")||b.parents(".fr-popup").length||(a.events.$on(b,"blur",function(){var c=b.parents(".fr-toolbar, .fr-popup").data("instance")||a;c.events.blurActive()&&!a.core.hasFocus()&&c.events.trigger("blur");setTimeout(function(){c.events.enableBlur()},100)},!0),b.data("blur-event-set",!0)),c=b.parents(".fr-toolbar, .fr-popup").data("instance")||a,!a.browser.safari||u&&null!=a.shared.safariSelection||(a.shared.safariSelection=
a.selection.get().getRangeAt(0).cloneRange()),c.events.disableBlur(),b.get(0).focus(),a.shared.$f_el=b)}function d(a,c){c=c?"last":"first";a=A(t(a))[c]();if(a.length)return b(a),!0}function f(b){b.is("input, textarea, select")&&n();a.events.disableBlur();b.get(0).focus();return!0}function l(b,c){var d=b.find("input, textarea, button, select, span").filter(function(){return k(this).isVisible()}).not(":disabled"),e=d.first();d=e.parents(".fr-color-set").get(0)&&e.parents(".fr-popup").get(0)?d.filter("input"):
c?d.last():d.first();if(d.length)return f(d);if(a.shared.with_kb){c=b.findVisible(".fr-active-item").first();if(c.length)return f(c);b=b.findVisible("[tabIndex]").first();if(b.length)return f(b)}}function n(){0===a.$el.find(".fr-marker").length&&a.core.hasFocus()&&a.selection.save()}function p(){var b=a.popups.areVisible();if(b){var c=b.find(".fr-buttons");return c.find("button:focus, .fr-group span:focus").length?!d(b.data("instance").$tb):!d(c)}return!d(a.$tb)}function m(){var b=null;a.shared.$f_el.is(".fr-dropdown.fr-active")?
b=a.shared.$f_el:a.shared.$f_el.closest(".fr-dropdown-menu").prev().is(".fr-dropdown.fr-active")&&(b=a.shared.$f_el.closest(".fr-dropdown-menu").prev());return b}function A(b){for(var c=-1,d=0;d<b.length;d++)k(b[d]).hasClass("fr-open")&&(c=d);var e=b.index(a.$tb.find(".fr-more-toolbar.fr-expanded > button.fr-command").first());if(0<e&&-1!==c){d=b.slice(e,b.length);b=b.slice(0,e);e=b.slice(0,c+1);c=b.slice(c+1,b.length);b=e;for(e=0;e<d.length;e++)b.push(d[e]);for(d=0;d<c.length;d++)b.push(c[d])}return b}
function t(a){return a.findVisible("button:not(.fr-disabled), .fr-group span.fr-command").filter(function(a){a=k(a).parents(".fr-more-toolbar");return 0===a.length||0<a.length&&a.hasClass("fr-expanded")})}function D(c,e,f){if(a.shared.$f_el){var g=m();g&&(a.button.click(g),a.shared.$f_el=g);g=A(t(c));var h=g.index(a.shared.$f_el);if(0===h&&!f||h===g.length-1&&f){if(e){if(c.parent().is(".fr-popup")){var r=c.parent().children().not(".fr-buttons");r=!l(r,!f)}!1===r&&(a.shared.$f_el=null)}e&&!1===r||
d(c,!f)}else b(k(g.get(h+(f?1:-1))));return!1}}function C(c){if(a.shared.$f_el){if(a.shared.$f_el.is(".fr-dropdown.fr-active")){var d=c?a.shared.$f_el.next().find(".fr-command:not(.fr-disabled)").first():a.shared.$f_el.next().find(".fr-command:not(.fr-disabled)").last();b(d);return!1}if(a.shared.$f_el.is("a.fr-command"))return d=c?a.shared.$f_el.closest("li").nextAllVisible().first().find(".fr-command:not(.fr-disabled)").first():a.shared.$f_el.closest("li").prevAllVisible().first().find(".fr-command:not(.fr-disabled)").first(),
d.length||(d=c?a.shared.$f_el.closest(".fr-dropdown-menu").find(".fr-command:not(.fr-disabled)").first():a.shared.$f_el.closest(".fr-dropdown-menu").find(".fr-command:not(.fr-disabled)").last()),b(d),!1}}function v(){if(a.shared.$f_el){if(a.shared.$f_el.hasClass("fr-dropdown"))a.button.click(a.shared.$f_el);else if(a.shared.$f_el.is("button.fr-back")){a.opts.toolbarInline&&(a.events.disableBlur(),a.events.focus());var c=a.popups.areVisible(a);c&&(a.shared.with_kb=!1);a.button.click(a.shared.$f_el);
q(c)}else{a.events.disableBlur();a.button.click(a.shared.$f_el);if(a.shared.$f_el.attr("data-group-name")){c=a.$tb.find('.fr-more-toolbar[data-name="'.concat(a.shared.$f_el.attr("data-group-name"),'"]'));var d=a.shared.$f_el;c.hasClass("fr-expanded")&&(d=c.findVisible("button:not(.fr-disabled)").first());d&&b(d)}else a.shared.$f_el.attr("data-popup")?(c=a.popups.areVisible(a))&&c.data("popup-button",a.shared.$f_el):a.shared.$f_el.attr("data-modal")&&(c=a.modals.areVisible(a))&&c.data("modal-button",
a.shared.$f_el);a.shared.$f_el=null}return!1}}function w(){a.shared.$f_el&&(a.events.disableBlur(),a.shared.$f_el.blur(),a.shared.$f_el=null);if(!1!==a.events.trigger("toolbar.focusEditor")&&(a.events.disableBlur(),a.$el.get(0).focus(),a.events.focus(),a.browser.safari&&a.shared.safariSelection)){var b=a.shared.safariSelection,c=b.startContainer,d=b.endContainer,e=b.startOffset;b=b.endOffset;var f=a.doc.createRange();f.setStart(c,e);f.setEnd(d,b);a.selection.get().removeAllRanges();a.selection.get().addRange(f);
a.shared.safariSelection=null}}function G(b){b&&b.length&&(a.events.$on(b,"keydown",function(c){if(!k(c.target).is("a.fr-command, button.fr-command, .fr-group span.fr-command"))return!0;var d=b.parents(".fr-popup").data("instance")||b.data("instance")||a;a.shared.with_kb=!0;c=d.accessibility.exec(c,b);a.shared.with_kb=!1;return c},!0),a.events.$on(b,"mouseenter","[tabIndex]",function(c){var d=b.parents(".fr-popup").data("instance")||b.data("instance")||a;x?(c=k(c.currentTarget),d.shared.$f_el&&d.shared.$f_el.not(c)&&
d.accessibility.focusEditor()):(c.stopPropagation(),c.preventDefault())},!0),a.$tb&&a.events.$on(a.$tb,"transitionend",".fr-more-toolbar",function(){a.shared.$f_el=k(document.activeElement)}))}function z(b){var e=a.popups.get(b);return{_tiKeydown:function(f){var g=e.data("instance")||a;if(!1===g.events.trigger("popup.tab",[f]))return!1;var h=f.which,u=e.find(":focus").first();if(c.KEYCODE.TAB===h){f.preventDefault();h=e.children().not(".fr-buttons");u=h.findVisible("input, textarea, button, select").not(".fr-no-touch input, .fr-no-touch textarea, .fr-no-touch button, .fr-no-touch select, :disabled").toArray();
var n=u.indexOf(this)+(f.shiftKey?-1:1);if(0<=n&&n<u.length)return g.events.disableBlur(),k(u[n]).focus(),f.stopPropagation(),!1;g=e.find(".fr-buttons");if(g.length&&d(g,!!f.shiftKey)||l(h))return f.stopPropagation(),!1}else if(c.KEYCODE.ENTER===h&&f.target&&"TEXTAREA"!==f.target.tagName)h=null,0<e.findVisible(".fr-submit").length?h=e.findVisible(".fr-submit").first():e.findVisible(".fr-dismiss").length&&(h=e.findVisible(".fr-dismiss").first()),h&&(f.preventDefault(),f.stopPropagation(),g.events.disableBlur(),
g.button.exec(h));else{if(c.KEYCODE.ESC===h)return f.preventDefault(),f.stopPropagation(),g.accessibility.restoreSelection(),g.popups.isVisible(b)&&e.findVisible(".fr-back").length?(g.opts.toolbarInline&&(g.events.disableBlur(),g.events.focus()),g.button.exec(e.findVisible(".fr-back").first()),q(e)):g.popups.isVisible(b)&&e.findVisible(".fr-dismiss").length?g.button.exec(e.findVisible(".fr-dismiss").first()):(g.popups.hide(b),g.opts.toolbarInline&&g.toolbar.showInline(null,!0),q(e)),!1;if(c.KEYCODE.SPACE===
h&&(u.is(".fr-submit")||u.is(".fr-dismiss")))return f.preventDefault(),f.stopPropagation(),g.events.disableBlur(),g.button.exec(u),!0;if(g.keys.isBrowserAction(f))f.stopPropagation();else if(u.is("input[type=text], textarea"))f.stopPropagation();else if(c.KEYCODE.SPACE===h&&(u.is(".fr-link-attr")||u.is("input[type=file]")))f.stopPropagation();else return f.stopPropagation(),f.preventDefault(),!1}},_tiMouseenter:function(){var b=e.data("instance")||a;H(b)}}}function q(a){var c=a.data("popup-button");
c&&setTimeout(function(){b(c);a.data("popup-button",null)},0)}function H(b){(b=a.popups.areVisible(b))&&b.data("popup-button",null)}function U(b){var d=-1!==navigator.userAgent.indexOf("Mac OS X")?b.metaKey:b.ctrlKey;if(b.which===c.KEYCODE.F10&&!d&&!b.shiftKey&&b.altKey){a.shared.with_kb=!0;d=a.popups.areVisible(a);var e=!1;d&&(e=l(d.children().not(".fr-buttons")));e||p();a.shared.with_kb=!1;b.preventDefault();b.stopPropagation();return!1}return!0}var k=a.$,x=!0,u;return{_init:function(){if(a.$wp)a.events.on("keydown",
U,!0);else a.events.$on(a.$win,"keydown",U,!0);a.events.on("mousedown",function(b){H(a);a.shared.$f_el&&a.el.isSameNode(a.shared.$f_el[0])&&(a.accessibility.restoreSelection(),b.stopPropagation(),a.events.disableBlur(),a.shared.$f_el=null)},!0);a.events.on("blur",function(){a.shared.$f_el=null;H(a)},!0)},registerPopup:function(b){var c=a.popups.get(b),d=z(b);G(c.find(".fr-buttons"));a.events.$on(c,"mouseenter","tabIndex",d._tiMouseenter,!0);a.events.$on(c.children().not(".fr-buttons"),"keydown","[tabIndex]",
d._tiKeydown,!0);a.popups.onHide(b,function(){(c.data("instance")||a).accessibility.restoreSelection()});a.popups.onShow(b,function(){x=!1;setTimeout(function(){x=!0},0)})},registerToolbar:G,focusToolbarElement:b,focusToolbar:d,focusContent:l,focusPopup:function(b){var c=b.children().not(".fr-buttons");c.data("mouseenter-event-set")||(a.events.$on(c,"mouseenter","[tabIndex]",function(d){var e=b.data("instance")||a;x?(d=c.find(":focus").first(),d.length&&!d.is("input, button, textarea, select")&&(e.events.disableBlur(),
d.blur(),e.events.disableBlur(),e.events.focus())):(d.stopPropagation(),d.preventDefault())}),c.data("mouseenter-event-set",!0));!l(c)&&a.shared.with_kb&&d(b.find(".fr-buttons"))},focusModal:function(b){a.core.hasFocus()||(a.events.disableBlur(),a.events.focus());a.accessibility.saveSelection();a.events.disableBlur();a.el.blur();a.selection.clear();a.events.disableBlur();a.shared.with_kb?b.find(".fr-command[tabIndex], [tabIndex]").first().focus():b.find("[tabIndex]").first().focus()},focusEditor:w,
focusPopupButton:q,focusModalButton:function(a){var c=a.data("modal-button");c&&setTimeout(function(){b(c);a.data("modal-button",null)},0)},hasFocus:function(){return null!==a.shared.$f_el},exec:function(d,e){var f=-1!==navigator.userAgent.indexOf("Mac OS X")?d.metaKey:d.ctrlKey,g=d.which,h=!1;g!==c.KEYCODE.TAB||f||d.shiftKey||d.altKey?g!==c.KEYCODE.ARROW_RIGHT||f||d.shiftKey||d.altKey?g!==c.KEYCODE.TAB||f||!d.shiftKey||d.altKey?g!==c.KEYCODE.ARROW_LEFT||f||d.shiftKey||d.altKey?g!==c.KEYCODE.ARROW_UP||
f||d.shiftKey||d.altKey?g!==c.KEYCODE.ARROW_DOWN||f||d.shiftKey||d.altKey?g!==c.KEYCODE.ENTER&&g!==c.KEYCODE.SPACE||f||d.shiftKey||d.altKey?g!==c.KEYCODE.ESC||f||d.shiftKey||d.altKey?g!==c.KEYCODE.F10||f||d.shiftKey||!d.altKey||(h=p()):a.shared.$f_el?((f=m())?(a.button.click(f),b(f)):e.parent().findVisible(".fr-back").length?(a.shared.with_kb=!1,a.opts.toolbarInline&&(a.events.disableBlur(),a.events.focus()),a.button.exec(e.parent().findVisible(".fr-back")).first(),q(e.parent())):a.shared.$f_el.is("button, .fr-group span")&&
(e.parent().is(".fr-popup")?(a.accessibility.restoreSelection(),a.shared.$f_el=null,!1!==a.events.trigger("toolbar.esc")&&(a.popups.hide(e.parent()),a.opts.toolbarInline&&a.toolbar.showInline(null,!0),q(e.parent()))):w()),h=!1):h=void 0:h=v():h=a.shared.$f_el&&a.shared.$f_el.is(".fr-dropdown:not(.fr-active)")?v():C(!0):h=C():h=D(e,void 0):h=D(e,!0):h=D(e,void 0,!0):(u=g,h=D(e,!0,!0));a.shared.$f_el||"undefined"!==typeof h||(h=!0);!h&&a.keys.isBrowserAction(d)&&(h=!0);if(h)return!0;d.preventDefault();
d.stopPropagation();return!1},saveSelection:n,restoreSelection:function(){a.$el.find(".fr-marker").length&&(a.events.disableBlur(),a.selection.restore(),a.events.enableBlur())}}};Object.assign(c.DEFAULTS,{tooltips:!0});c.MODULES.tooltip=function(a){function b(){a.helpers.isMobile()||a.$tooltip&&a.$tooltip.removeClass("fr-visible").css("left","-3000px").css("position","fixed")}function d(b,d){if(!a.helpers.isMobile()){var e=b.attr("id")&&b.attr("id").split("-")[0],g=b.attr("title"),n=a.opts.trackChangesEnabled,
p=a.opts.showChangesEnabled;if(a.opts.toolbarContainer){for(var m=!1,B=0;B<c.INSTANCES.length;B++)if(c.INSTANCES[B].core.hasFocus()){n=c.INSTANCES[B].opts.trackChangesEnabled;p=c.INSTANCES[B].opts.showChangesEnabled;m=!0;break}m||(p=n=b.hasClass("fr-active"))}if("trackChanges"===e)g=n?"Disable Track Changes":"Enable Track Changes";else if("showChanges"===e)g=p?"Hide Changes":"Show Changes";else if(("applyAll"===e||"removeAll"===e||"applyLast"===e||"removeLast"===e)&&0===a.track_changes.getPendingChanges().length)return;
b.data("title",g);b.data("title")&&(a.$tooltip||f(),b.removeAttr("title"),a.$tooltip.text(a.language.translate(b.data("title"))),a.$tooltip.addClass("fr-visible"),e=b.offset().left+(b.outerWidth()-a.$tooltip.outerWidth())/2,0>e&&(e=0),e+a.$tooltip.outerWidth()>l(a.o_win).width()&&(e=l(a.o_win).width()-a.$tooltip.outerWidth()),"undefined"===typeof d&&(d=a.opts.toolbarBottom),b.offset().top-l(window).scrollTop()+b.outerHeight()+10>=l(window).height()&&(d=!0),b=d?b.offset().top-a.$tooltip.height():b.offset().top+
b.outerHeight(),a.$tooltip.css("position",""),a.$tooltip.css("left",e),a.$tooltip.css("top",Math.ceil(b)),b={},a.$wp&&0<a.$wp.length&&(b=a.$wp.closest("dialog")),0<b.length?(a.$tooltip.css("margin-left",-b.first().offset().left),a.$tooltip.css("margin-top",-b.first().offset().top)):"static"!==l(a.o_doc).find("body").first().css("position")?(a.$tooltip.css("margin-left",-l(a.o_doc).find("body").first().offset().left),a.$tooltip.css("margin-top",-l(a.o_doc).find("body").first().offset().top)):(a.$tooltip.css("margin-left",
""),a.$tooltip.css("margin-top","")))}}function f(){if(a.opts.tooltips&&!a.helpers.isMobile()){if(a.shared.$tooltip)a.$tooltip=a.shared.$tooltip;else{a.shared.$tooltip=l(a.doc.createElement("DIV")).addClass("fr-tooltip");a.$tooltip=a.shared.$tooltip;a.opts.theme&&a.$tooltip.addClass("".concat(a.opts.theme,"-theme"));var b={};a.$wp&&0<a.$wp.length&&(b=a.$wp.closest("dialog"));0<b.length?b.first().append(a.$tooltip):l(a.o_doc).find("body").first().append(a.$tooltip)}a.events.on("shared.destroy",function(){a.$tooltip.html("").removeData().remove();
a.$tooltip=null},!0)}}var l=a.$;return{hide:b,to:d,bind:function(c,e,f){a.opts.tooltips&&!a.helpers.isMobile()&&(a.events.$on(c,"mouseover",e,function(b){a.node.hasClass(b.currentTarget,"fr-disabled")||a.edit.isDisabled()||d(l(b.currentTarget),f)},!0),a.events.$on(c,"mouseout ".concat(a._mousedown," ").concat(a._mouseup),e,function(){b()},!0))}}};c.TOOLBAR_VISIBLE_BUTTONS=3;c.MODULES.button=function(a){function b(a,b,c){for(var d=q(),e=0;e<a.length;e++){var f=q(a[e]);f.is(b)&&(d=d.add(f));c&&f.is(".fr-dropdown")&&
(f=f.next().find(b),d=d.add(f))}return d}function d(c,d){var e=q(),f;if(!c)return e;e=e.add(b(H,c,d));e=e.add(b(U,c,d));for(f in a.shared.popups)Object.prototype.hasOwnProperty.call(a.shared.popups,f)&&(d=a.shared.popups[f].children().find(c),e=e.add(d));for(f in a.shared.modals)Object.prototype.hasOwnProperty.call(a.shared.modals,f)&&(d=a.shared.modals[f].$modal.find(c),e=e.add(d));return e}function f(a,b,c){b>=c&&(a.parent().css("overflow","auto"),a.parent().css("overflow-x","hidden"));a.css("height",
Math.min(b,c))}function l(b){var e=b.next(),g=a.node.hasClass(b.get(0),"fr-active"),l=d(".fr-dropdown.fr-active").not(b),n=b.parents(".fr-toolbar, .fr-popup").data("instance")||a;n.helpers.isIOS()&&!n.el.querySelector(".fr-marker")&&(n.selection.save(),n.selection.clear(),n.selection.restore());e.parents(".fr-more-toolbar").addClass("fr-overflow-visible");var k=0,p=0,m=e.find("> .fr-dropdown-wrapper");g||(k=b.data("cmd"),e.find(".fr-command").removeClass("fr-active").attr("aria-selected",!1),c.COMMANDS[k]&&
c.COMMANDS[k].refreshOnShow&&c.COMMANDS[k].refreshOnShow.apply(n,[b,e]),e.css("left",b.offset().left-b.parents(".fr-btn-wrap, .fr-toolbar, .fr-buttons").offset().left-("rtl"===a.opts.direction?e.width()-b.outerWidth():0)),e.addClass("test-height"),k=e.outerHeight(),p=a.helpers.getPX(m.css("max-height")),e.removeClass("test-height"),e.css("top","").css("bottom",""),n=b.outerHeight()/10,!a.opts.toolbarBottom&&e.offset().top+b.outerHeight()+k<q(a.o_doc).height()?e.css("top",b.position().top+b.outerHeight()-
n):(n=0,g=b.parents(".fr-more-toolbar"),0<g.length&&(n=g.first().height()),e.css("bottom",b.parents(".fr-popup, .fr-toolbar").first().height()-n-b.position().top)));b.addClass("fr-blink").toggleClass("fr-active");b.hasClass("fr-options")&&b.prev().toggleClass("fr-expanded");b.hasClass("fr-active")?(e.attr("aria-hidden",!1),b.attr("aria-expanded",!0),f(m,k,p)):(e.attr("aria-hidden",!0).css("overflow",""),b.attr("aria-expanded",!1),m.css("height",""));setTimeout(function(){b.removeClass("fr-blink")},
300);e.css("margin-left","");e.offset().left+e.outerWidth()>a.$sc.offset().left+a.$sc.width()&&e.css("margin-left",-(e.offset().left+e.outerWidth()-a.$sc.offset().left-a.$sc.width()));e.offset().left<a.$sc.offset().left&&"rtl"===a.opts.direction&&e.css("margin-left",a.$sc.offset().left);l.removeClass("fr-active").attr("aria-expanded",!1).next().attr("aria-hidden",!0).css("overflow","").find("> .fr-dropdown-wrapper").css("height","");l.prev(".fr-expanded").removeClass("fr-expanded");l.parents(".fr-toolbar:not(.fr-inline)").css("zIndex",
"");0!==b.parents(".fr-popup").length||a.opts.toolbarInline||(a.node.hasClass(b.get(0),"fr-active")?a.$tb.css("zIndex",(a.opts.zIndex||1)+4):a.$tb.css("zIndex",""));e=e.find("a.fr-command.fr-active").first();a.helpers.isMobile()||(e.length?(a.accessibility.focusToolbarElement(e),m.scrollTop(Math.abs(e.parents(".fr-dropdown-content").offset().top-e.offset().top)-e.offset().top)):(a.accessibility.focusToolbarElement(b),m.scrollTop(0)))}function n(a){a.addClass("fr-blink");setTimeout(function(){a.removeClass("fr-blink")},
500);for(var b=a.data("cmd"),c=[];"undefined"!==typeof a.data("param".concat(c.length+1));)c.push(a.data("param".concat(c.length+1)));var e=d(".fr-dropdown.fr-active");e.length&&(e.removeClass("fr-active").attr("aria-expanded",!1).next().attr("aria-hidden",!0).css("overflow","").find("> .fr-dropdown-wrapper").css("height",""),e.prev(".fr-expanded").removeClass("fr-expanded"),e.parents(".fr-toolbar:not(.fr-inline)").css("zIndex",""));a.parents(".fr-popup, .fr-toolbar").data("instance").commands.exec(b,
c)}function p(b){var d=b.parents(".fr-popup, .fr-toolbar").data("instance"),e=a.popups.get("link.insert");0===b.parents(".fr-popup").length&&b.data("popup")&&!b.hasClass("fr-btn-active-popup")&&(b.attr("id")==="insertLink-".concat(a.id)&&e&&e.hasClass("fr-active")||b.addClass("fr-btn-active-popup"));0!==b.parents(".fr-popup").length||b.data("popup")||d.popups.hideAll();if(d.popups.areVisible()&&!d.popups.areVisible(d)){for(e=0;e<c.INSTANCES.length;e++)c.INSTANCES[e]!==d&&c.INSTANCES[e].popups&&c.INSTANCES[e].popups.areVisible()&&
c.INSTANCES[e].$el.find(".fr-marker").remove();d.popups.hideAll()}a.node.hasClass(b.get(0),"fr-dropdown")?l(b):(n(b),c.COMMANDS[b.data("cmd")]&&!1!==c.COMMANDS[b.data("cmd")].refreshAfterCallback&&d.button.bulkRefresh())}function m(a){a=q(a.currentTarget);p(a)}function A(a){a=a.find(".fr-dropdown.fr-active");a.length&&(a.removeClass("fr-active").attr("aria-expanded",!1).next().attr("aria-hidden",!0).css("overflow","").find("> .fr-dropdown-wrapper").css("height",""),a.parents(".fr-toolbar:not(.fr-inline)").css("zIndex",
""),a.prev().removeClass("fr-expanded"))}function t(a){a.preventDefault();a.stopPropagation()}function D(b){b.stopPropagation();if(!a.helpers.isMobile())return!1}function C(b){var c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},d=2<arguments.length?arguments[2]:void 0;if(a.helpers.isMobile()&&!1===c.showOnMobile)return"";var e=c.displaySelection;"function"===typeof e&&(e=e(a));var f="";"options"!==c.type&&(e?(f="function"===typeof c.defaultSelection?c.defaultSelection(a):c.defaultSelection,
f='<span style="width:'.concat(c.displaySelectionWidth||100,'px">').concat(a.language.translate(f||c.title),"</span>")):(f=a.icon.create(c.icon||b),f+='<span class="fr-sr-only">'.concat(a.language.translate(c.title)||"","</span>")));var g=c.popup?' data-popup="true"':"",l=c.modal?' data-modal="true"':"",n=a.shortcuts.get("".concat(b,"."));n=n?" (".concat(n,")"):"";e="".concat(b,"-").concat(a.id);var k="dropdown-menu-".concat(e);f='<button id="'.concat(e,'"').concat(c.more_btn?' data-group-name="'.concat(e,
'" '):"",'type="button" tabIndex="-1" role="button"').concat(c.toggle?' aria-pressed="false"':"").concat("dropdown"===c.type||"options"===c.type?' aria-controls="'.concat(k,'" aria-expanded="false" aria-haspopup="true"'):"").concat(c.disabled?' aria-disabled="true"':"",' title="').concat(a.language.translate(c.title)||"").concat(n,'" class="fr-command fr-btn').concat("dropdown"===c.type||"options"==c.type?" fr-dropdown":"").concat("options"==c.type?" fr-options":"").concat("more"==c.type?" fr-more":
"").concat(c.displaySelection?" fr-selection":"").concat(c.back?" fr-back":"").concat(c.disabled?" fr-disabled":"").concat(d?"":" fr-hidden",'" data-cmd="').concat(b,'"').concat(g).concat(l,">").concat(f,"</button>");if("dropdown"===c.type||"options"===c.type){e='<div id="'.concat(k,'" class="fr-dropdown-menu" role="listbox" aria-labelledby="').concat(e,'" aria-hidden="true"><div class="fr-dropdown-wrapper" role="presentation"><div class="fr-dropdown-content" role="presentation">');k="";if(c.html)k=
"function"===typeof c.html?k+c.html.call(a):k+c.html;else{g=c.options;"function"===typeof g&&(g=g());k+='<ul class="fr-dropdown-list" role="presentation">';for(var p in g)Object.prototype.hasOwnProperty.call(g,p)&&((l=a.shortcuts.get("".concat(b,".").concat(p)))&&'<span class="fr-shortcut">'.concat(l,"</span>"),k+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="'.concat("options"===c.type?b.replace(/Options/g,""):b,'" data-param1="').concat(p,'" title="').concat(g[p],
'">').concat(a.language.translate(g[p]),"</a></li>"));k+="</ul>"}f+=e+k+"</div></div></div>"}c.hasOptions&&c.hasOptions.apply(a)&&(f='<div class="fr-btn-wrap">'.concat(f," ").concat(C(b+"Options",Object.assign({},c,{type:"options",hasOptions:!1}),d),"  </div>"));return f}function v(b){var d=a.$tb?a.$tb.data("instance")||a:a;if(!1===a.events.trigger("buttons.refresh"))return!0;setTimeout(function(){for(var e=d.selection.inEditor()&&d.core.hasFocus(),f=0;f<b.length;f++){var g=q(b[f]),l=g.data("cmd");
0===g.parents(".fr-popup").length?e||c.COMMANDS[l]&&c.COMMANDS[l].forcedRefresh?d.button.refresh(g):a.node.hasClass(g.get(0),"fr-dropdown")||(g.removeClass("fr-active"),g.attr("aria-pressed")&&g.attr("aria-pressed",!1)):g.parents(".fr-popup").isVisible()&&d.button.refresh(g)}},0)}function w(){v(H);v(U)}function G(){H=[];U=[]}function z(){clearTimeout(k);k=setTimeout(w,50)}var q=a.$,H=[];if(a.opts.toolbarInline||a.opts.toolbarContainer)a.shared.buttons||(a.shared.buttons=[]),H=a.shared.buttons;var U=
[];a.shared.popup_buttons||(a.shared.popup_buttons=[]);U=a.shared.popup_buttons;var k=null;return{_init:function(){if(a.opts.toolbarInline)a.events.on("toolbar.show",w);else a.events.on("mouseup",z),a.events.on("keyup",z),a.events.on("blur",z),a.events.on("focus",z),a.events.on("contentChanged",z),a.helpers.isMobile()&&a.events.$on(a.$doc,"selectionchange",w);a.events.on("shared.destroy",G)},build:C,buildList:function(b,d){for(var e="",f=0;f<b.length;f++){var g=b[f],l=c.COMMANDS[g];if(!(l&&"undefined"!==
typeof l.plugin&&0>a.opts.pluginsEnabled.indexOf(l.plugin)))if(l){var n="undefined"!==typeof d?0<=d.indexOf(g):!0;e+=C(g,l,n)}else"|"===g?e+='<div class="fr-separator fr-vs" role="separator" aria-orientation="vertical"></div>':"-"===g&&(e+='<div class="fr-separator fr-hs" role="separator" aria-orientation="horizontal"></div>')}return e},buildGroup:function(b){var d="",e="",f;for(f in b){var g=b[f];if(g.buttons){for(var l="",n="",k=0,p="left",m=c.TOOLBAR_VISIBLE_BUTTONS,B=0;B<g.buttons.length;B++){var q=
g.buttons[B],A=c.COMMANDS[q];A||("|"==q?l+='<div class="fr-separator fr-vs" role="separator" aria-orientation="vertical"></div>':"-"==q&&(l+='<div class="fr-separator fr-hs" role="separator" aria-orientation="horizontal"></div>'));!A||A&&"undefined"!==typeof A.plugin&&0>a.opts.pluginsEnabled.indexOf(A.plugin)||(void 0!==b[f].align&&(p=b[f].align),void 0!==b[f].buttonsVisible&&(m=b[f].buttonsVisible),b.showMoreButtons&&k>=m?n+=C(q,A,!0):l+=C(q,A,!0),k++)}b.showMoreButtons&&k>m&&(g=f,k=c.COMMANDS[g],
k.more_btn=!0,l+=C(g,k,!0));"trackChanges"!==f&&(d+='<div class="fr-btn-grp fr-float-'.concat(p,'">').concat(l,"</div>"));b.showMoreButtons&&0<n.length&&(e+='<div class="fr-more-toolbar" data-name="'.concat(f+"-"+a.id,'">').concat(n,"</div>"))}}return a.opts.toolbarBottom?a.helpers.isMobile()?'<div class="fr-bottom-extended">'.concat(e,"</div><div>").concat(d,"</div>"):"".concat(e,'<div class="fr-newline"></div>').concat(d):"".concat(d,'<div class="fr-newline"></div>').concat(e)},bindCommands:function(b,
d){function e(d){if(!d||d.type===a._mouseup&&d.target!==q("html").get(0)||"keydown"===d.type&&(a.keys.isCharacter(d.which)&&!a.keys.ctrlKey(d)||d.which===c.KEYCODE.ESC))A(b),a.opts.iframe&&(d=b.find(".fr-popup.fr-active"),d.length&&(d.removeClass("fr-active").attr("aria-expanded",!1).next().attr("aria-hidden",!0).css("overflow","").find("> .fr-dropdown-wrapper").css("height",""),d.parents(".fr-toolbar:not(.fr-inline)").css("zIndex",""),d.prev().removeClass("fr-expanded"),d=a.$tb.find(".fr-btn-active-popup"),
q(d[0]).removeClass("fr-btn-active-popup")))}a.events.bindClick(b,".fr-command:not(.fr-disabled)",m);a.events.$on(b,"".concat(a._mousedown," ").concat(a._mouseup," ").concat(a._move),".fr-dropdown-menu",t,!0);a.events.$on(b,"".concat(a._mousedown," ").concat(a._mouseup," ").concat(a._move),".fr-dropdown-menu .fr-dropdown-wrapper",D,!0);var f=b.get(0).ownerDocument;a.events.$on(q("defaultView"in f?f.defaultView:f.parentWindow),"".concat(a._mouseup," resize keydown"),e,!0);a.opts.iframe&&a.events.$on(a.$win,
a._mouseup,e,!0);a.node.hasClass(b.get(0),"fr-popup")?q.merge(U,b.find(".fr-btn").toArray()):q.merge(H,b.find(".fr-btn").toArray());a.tooltip.bind(b,".fr-btn, .fr-title",d)},refresh:function(b){var d=b.parents(".fr-popup, .fr-toolbar").data("instance")||a,e=b.data("cmd");if(a.node.hasClass(b.get(0),"fr-dropdown"))var f=b.next();else b.removeClass("fr-active"),b.attr("aria-pressed")&&b.attr("aria-pressed",!1);if(c.COMMANDS[e]&&c.COMMANDS[e].refresh)c.COMMANDS[e].refresh.apply(d,[b,f]);else if(a.refresh[e])d.refresh[e](b,
f)},bulkRefresh:w,exec:n,click:p,hideActiveDropdowns:A,addButtons:function(a){for(var b=0;b<a.length;b++)H.push(a[b])},getButtons:d,getPosition:function(b){var c=b.offset().left,d=a.opts.toolbarBottom?10:b.outerHeight()-10;b=b.offset().top+d;return{left:c,top:b}}}};c.ICON_TEMPLATES={font_awesome:'<i class="fa fa-[NAME]" aria-hidden="true"></i>',font_awesome_5:'<i class="fas fa-[FA5NAME]" aria-hidden="true"></i>',font_awesome_5r:'<i class="far fa-[FA5NAME]" aria-hidden="true"></i>',font_awesome_5l:'<i class="fal fa-[FA5NAME]" aria-hidden="true"></i>',
font_awesome_5b:'<i class="fab fa-[FA5NAME]" aria-hidden="true"></i>',text:'<span style="text-align: center;">[NAME]</span>',image:"<img src=[SRC] alt=[ALT] />",svg:'<svg class="fr-svg" focusable="false" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="[PATH]"/></svg>',empty:" "};c.ICONS={bold:{NAME:"bold",SVG_KEY:"bold"},italic:{NAME:"italic",SVG_KEY:"italic"},underline:{NAME:"underline",SVG_KEY:"underline"},strikeThrough:{NAME:"strikethrough",SVG_KEY:"strikeThrough"},subscript:{NAME:"subscript",
SVG_KEY:"subscript"},superscript:{NAME:"superscript",SVG_KEY:"superscript"},cancel:{NAME:"cancel",SVG_KEY:"cancel"},color:{NAME:"tint",SVG_KEY:"textColor"},outdent:{NAME:"outdent",SVG_KEY:"outdent"},indent:{NAME:"indent",SVG_KEY:"indent"},undo:{NAME:"rotate-left",FA5NAME:"undo",SVG_KEY:"undo"},redo:{NAME:"rotate-right",FA5NAME:"redo",SVG_KEY:"redo"},insert:{NAME:"insert",SVG_KEY:"insert"},insertAll:{NAME:"insertAll",SVG_KEY:"insertAll"},insertHR:{NAME:"minus",SVG_KEY:"horizontalLine"},clearFormatting:{NAME:"eraser",
SVG_KEY:"clearFormatting"},selectAll:{NAME:"mouse-pointer",SVG_KEY:"selectAll"},minimize:{NAME:"minimize",SVG_KEY:"minimize"},moreText:{NAME:"ellipsis-v",SVG_KEY:"textMore"},moreParagraph:{NAME:"ellipsis-v",SVG_KEY:"paragraphMore"},moreRich:{NAME:"ellipsis-v",SVG_KEY:"insertMore"},moreMisc:{NAME:"ellipsis-v",SVG_KEY:"more"}};c.DefineIconTemplate=function(a,b){c.ICON_TEMPLATES[a]=b};c.DefineIcon=function(a,b){c.ICONS[a]=b};Object.assign(c.DEFAULTS,{iconsTemplate:"svg"});c.MODULES.icon=function(a){return{create:function(b){var d=
null,e=c.ICONS[b];if("undefined"!==typeof e){var f=e.template||c.ICON_DEFAULT_TEMPLATE||a.opts.iconsTemplate;f&&f.apply&&(f=f.apply(a));e.FA5NAME||(e.FA5NAME=e.NAME);"svg"!==f||e.PATH||(e.PATH=c.SVG[e.SVG_KEY]||"");f&&(f=c.ICON_TEMPLATES[f])&&(d=f.replace(/\[([a-zA-Z0-9]*)\]/g,function(a,c){return"NAME"===c?e[c]||b:e[c]}))}return d||b},getTemplate:function(b){b=c.ICONS[b];var d=a.opts.iconsTemplate;"undefined"!==typeof b&&(d=b.template||c.ICON_DEFAULT_TEMPLATE||a.opts.iconsTemplate);return d},getFileIcon:function(a){var b=
c.FILEICONS[a];return"undefined"!==typeof b?b:a}}};c.SVG={add:"M19,13h-6v6h-2v-6H5v-2h6V5h2v6h6V13z",advancedImageEditor:"M3,17v2h6v-2H3z M3,5v2h10V5H3z M13,21v-2h8v-2h-8v-2h-2v6H13z M7,9v2H3v2h4v2h2V9H7z M21,13v-2H11v2H21z M15,9h2V7h4V5h-4  V3h-2V9z",alignCenter:"M9,18h6v-2H9V18z M6,11v2h12v-2H6z M3,6v2h18V6H3z",alignJustify:"M3,18h18v-2H3V18z M3,11v2h18v-2H3z M3,6v2h18V6H3z",alignLeft:"M3,18h6v-2H3V18z M3,11v2h12v-2H3z M3,6v2h18V6H3z",alignRight:"M15,18h6v-2h-6V18z M9,11v2h12v-2H9z M3,6v2h18V6H3z",
anchors:"M16,4h-4H8C6.9,4,6,4.9,6,6v4v10l6-2.6l6,2.6V10V6C18,4.9,17.1,4,16,4z M16,17l-4-1.8L8,17v-7V6h4h4v4V17z",autoplay:"M 7.570312 0.292969 C 7.542969 0.292969 7.515625 0.292969 7.488281 0.296875 C 7.203125 0.324219 6.984375 0.539062 6.980469 0.792969 L 6.925781 3.535156 C 2.796875 3.808594 -0.0078125 6.425781 -0.0859375 10.09375 C -0.121094 11.96875 0.710938 13.6875 2.265625 14.921875 C 3.769531 16.117188 5.839844 16.796875 8.097656 16.828125 C 8.140625 16.828125 12.835938 16.898438 13.035156 16.886719 C 15.171875 16.796875 17.136719 16.128906 18.558594 15.003906 C 20.066406 13.816406 20.882812 12.226562 20.917969 10.40625 C 20.960938 8.410156 20.023438 6.605469 18.289062 5.335938 C 18.214844 5.277344 18.128906 5.230469 18.035156 5.203125 C 17.636719 5.074219 17.222656 5.199219 17 5.476562 L 15.546875 7.308594 C 15.304688 7.609375 15.363281 8.007812 15.664062 8.265625 C 16.351562 8.851562 16.707031 9.625 16.6875 10.5 C 16.652344 12.25 15.070312 13.390625 12.757812 13.535156 C 12.59375 13.539062 8.527344 13.472656 8.164062 13.464844 C 5.703125 13.429688 4.101562 12.191406 4.140625 10.3125 C 4.175781 8.570312 5.132812 7.46875 6.847656 7.199219 L 6.796875 9.738281 C 6.792969 9.992188 7 10.214844 7.285156 10.253906 C 7.3125 10.257812 7.339844 10.257812 7.367188 10.257812 C 7.503906 10.261719 7.632812 10.222656 7.738281 10.148438 L 14.039062 5.785156 C 14.171875 5.691406 14.253906 5.558594 14.253906 5.410156 C 14.257812 5.261719 14.1875 5.125 14.058594 5.027344 L 7.941406 0.414062 C 7.835938 0.335938 7.707031 0.292969 7.570312 0.292969 ",
back:"M20 11L7.83 11 11.425 7.405 10.01 5.991 5.416 10.586 5.414 10.584 4 11.998 4.002 12 4 12.002 5.414 13.416 5.416 13.414 10.01 18.009 11.425 16.595 7.83 13 20 13 20 13 20 11 20 11Z",backgroundColor:"M9.91752,12.24082l7.74791-5.39017,1.17942,1.29591-6.094,7.20747L9.91752,12.24082M7.58741,12.652l4.53533,4.98327a.93412.93412,0,0,0,1.39531-.0909L20.96943,8.7314A.90827.90827,0,0,0,20.99075,7.533l-2.513-2.76116a.90827.90827,0,0,0-1.19509-.09132L7.809,11.27135A.93412.93412,0,0,0,7.58741,12.652ZM2.7939,18.52772,8.41126,19.5l1.47913-1.34617-3.02889-3.328Z",
blockquote:"M10.31788,5l.93817,1.3226A12.88271,12.88271,0,0,0,8.1653,9.40125a5.54242,5.54242,0,0,0-.998,3.07866v.33733q.36089-.04773.66067-.084a4.75723,4.75723,0,0,1,.56519-.03691,2.87044,2.87044,0,0,1,2.11693.8427,2.8416,2.8416,0,0,1,.8427,2.09274,3.37183,3.37183,0,0,1-.8898,2.453A3.143,3.143,0,0,1,8.10547,19,3.40532,3.40532,0,0,1,5.375,17.7245,4.91156,4.91156,0,0,1,4.30442,14.453,9.3672,9.3672,0,0,1,5.82051,9.32933,14.75716,14.75716,0,0,1,10.31788,5Zm8.39243,0,.9369,1.3226a12.88289,12.88289,0,0,0-3.09075,3.07865,5.54241,5.54241,0,0,0-.998,3.07866v.33733q.33606-.04773.63775-.084a4.91773,4.91773,0,0,1,.58938-.03691,2.8043,2.8043,0,0,1,2.1042.83,2.89952,2.89952,0,0,1,.80578,2.10547,3.42336,3.42336,0,0,1-.86561,2.453A3.06291,3.06291,0,0,1,16.49664,19,3.47924,3.47924,0,0,1,13.742,17.7245,4.846,4.846,0,0,1,12.64721,14.453,9.25867,9.25867,0,0,1,14.17476,9.3898,15.26076,15.26076,0,0,1,18.71031,5Z",
bold:"M15.25,11.8h0A3.68,3.68,0,0,0,17,9a3.93,3.93,0,0,0-3.86-4H6.65V19h7a3.74,3.74,0,0,0,3.7-3.78V15.1A3.64,3.64,0,0,0,15.25,11.8ZM8.65,7h4.2a2.09,2.09,0,0,1,2,1.3,2.09,2.09,0,0,1-1.37,2.61,2.23,2.23,0,0,1-.63.09H8.65Zm4.6,10H8.65V13h4.6a2.09,2.09,0,0,1,2,1.3,2.09,2.09,0,0,1-1.37,2.61A2.23,2.23,0,0,1,13.25,17Z",cancel:"M13.4,12l5.6,5.6L17.6,19L12,13.4L6.4,19L5,17.6l5.6-5.6L5,6.4L6.4,5l5.6,5.6L17.6,5L19,6.4L13.4,12z",cellBackground:"M16.6,12.4L7.6,3.5L6.2,4.9l2.4,2.4l-5.2,5.2c-0.6,0.6-0.6,1.5,0,2.1l5.5,5.5c0.3,0.3,0.7,0.4,1.1,0.4s0.8-0.1,1.1-0.4  l5.5-5.5C17.2,14,17.2,13,16.6,12.4z M5.2,13.5L10,8.7l4.8,4.8H5.2z M19,15c0,0-2,2.2-2,3.5c0,1.1,0.9,2,2,2s2-0.9,2-2  C21,17.2,19,15,19,15z",
cellBorderColor:"M22,22H2v2h20V22z",cellOptions:"M20,5H4C2.9,5,2,5.9,2,7v10c0,1.1,0.9,2,2,2h16c1.1,0,2-0.9,2-2V7C22,5.9,21.1,5,20,5z M9.5,6.5h5V9h-5V6.5z M8,17.5H4  c-0.3,0-0.5-0.2-0.5-0.4c0,0,0,0,0,0V17v-2H8V17.5z M8,13.5H3.5v-3H8V13.5z M8,9H3.5V7c0-0.3,0.2-0.5,0.4-0.5c0,0,0,0,0,0H8V9z   M14.5,17.5h-5V15h5V17.5z M20.5,17c0,0.3-0.2,0.5-0.4,0.5c0,0,0,0,0,0H16V15h4.5V17z M20.5,13.5H16v-3h4.5V13.5z M20.5,9H16V6.5h4  c0.3,0,0.5,0.2,0.5,0.4c0,0,0,0,0,0V9z",cellStyle:"M20,19.9l0.9,3.6l-3.2-1.9l-3.3,1.9l0.8-3.6L12.3,17h3.8l1.7-3.5l1.4,3.5H23L20,19.9z M20,5H4C2.9,5,2,5.9,2,7v10  c0,1.1,0.9,2,2,2h7.5l-0.6-0.6L10,17.5H9.5V15h5.4l1.1-2.3v-2.2h4.5v3H20l0.6,1.5H22V7C22,5.9,21.1,5,20,5z M3.5,7  c0-0.3,0.2-0.5,0.4-0.5c0,0,0,0,0.1,0h4V9H3.5V7z M3.5,10.5H8v3H3.5V10.5z M4,17.5c-0.3,0-0.5-0.2-0.5-0.4c0,0,0,0,0-0.1v-2H8v2.5H4  z M14.5,9h-5V6.5h5V9z M20.5,9H16V6.5h4c0.3,0,0.5,0.2,0.5,0.4c0,0,0,0,0,0.1V9z",
clearFormatting:"M11.48,10.09l-1.2-1.21L8.8,7.41,6.43,5,5.37,6.1,8.25,9,4.66,19h2l1.43-4h5.14l1.43,4h2l-.89-2.51L18.27,19l1.07-1.06L14.59,13.2ZM8.8,13l.92-2.56L12.27,13Zm.56-7.15L9.66,5h2l1.75,4.9Z",close:"M13.4,12l5.6,5.6L17.6,19L12,13.4L6.4,19L5,17.6l5.6-5.6L5,6.4L6.4,5l5.6,5.6L17.6,5L19,6.4L13.4,12z",codeView:"M9.4,16.6,4.8,12,9.4,7.4,8,6,2,12l6,6Zm5.2,0L19.2,12,14.6,7.4,16,6l6,6-6,6Z",cogs:"M18.877 12.907a6.459 6.459 0 0 0 0 -1.814l1.952 -1.526a0.468 0.468 0 0 0 0.111 -0.593l-1.851 -3.2a0.461 0.461 0 0 0 -0.407 -0.231 0.421 0.421 0 0 0 -0.157 0.028l-2.3 0.925a6.755 6.755 0 0 0 -1.563 -0.907l-0.352 -2.452a0.451 0.451 0 0 0 -0.453 -0.388h-3.7a0.451 0.451 0 0 0 -0.454 0.388L9.347 5.588A7.077 7.077 0 0 0 7.783 6.5l-2.3 -0.925a0.508 0.508 0 0 0 -0.166 -0.028 0.457 0.457 0 0 0 -0.4 0.231l-1.851 3.2a0.457 0.457 0 0 0 0.111 0.593l1.952 1.526A7.348 7.348 0 0 0 5.063 12a7.348 7.348 0 0 0 0.064 0.907L3.175 14.433a0.468 0.468 0 0 0 -0.111 0.593l1.851 3.2a0.461 0.461 0 0 0 0.407 0.231 0.421 0.421 0 0 0 0.157 -0.028l2.3 -0.925a6.74 6.74 0 0 0 1.564 0.907L9.7 20.864a0.451 0.451 0 0 0 0.454 0.388h3.7a0.451 0.451 0 0 0 0.453 -0.388l0.352 -2.452a7.093 7.093 0 0 0 1.563 -0.907l2.3 0.925a0.513 0.513 0 0 0 0.167 0.028 0.457 0.457 0 0 0 0.4 -0.231l1.851 -3.2a0.468 0.468 0 0 0 -0.111 -0.593Zm-0.09 2.029l-0.854 1.476 -2.117 -0.852 -0.673 0.508a5.426 5.426 0 0 1 -1.164 0.679l-0.795 0.323 -0.33 2.269h-1.7l-0.32 -2.269 -0.793 -0.322a5.3 5.3 0 0 1 -1.147 -0.662L8.2 15.56l-2.133 0.86 -0.854 -1.475 1.806 -1.411 -0.1 -0.847c-0.028 -0.292 -0.046 -0.5 -0.046 -0.687s0.018 -0.4 0.045 -0.672l0.106 -0.854L5.217 9.064l0.854 -1.475 2.117 0.851 0.673 -0.508a5.426 5.426 0 0 1 1.164 -0.679l0.8 -0.323 0.331 -2.269h1.7l0.321 2.269 0.792 0.322a5.3 5.3 0 0 1 1.148 0.661l0.684 0.526 2.133 -0.859 0.853 1.473 -1.8 1.421 0.1 0.847a5 5 0 0 1 0.046 0.679c0 0.193 -0.018 0.4 -0.045 0.672l-0.106 0.853ZM12 14.544A2.544 2.544 0 1 1 14.546 12 2.552 2.552 0 0 1 12 14.544Z",
columns:"M20,5H4C2.9,5,2,5.9,2,7v10c0,1.1,0.9,2,2,2h16c1.1,0,2-0.9,2-2V7C22,5.9,21.1,5,20,5z M8,17.5H4c-0.3,0-0.5-0.2-0.5-0.4  c0,0,0,0,0,0V17v-2H8V17.5z M8,13.5H3.5v-3H8V13.5z M8,9H3.5V7c0-0.3,0.2-0.5,0.4-0.5c0,0,0,0,0,0H8V9z M20.5,17  c0,0.3-0.2,0.5-0.4,0.5c0,0,0,0,0,0H16V15h4.5V17z M20.5,13.5H16v-3h4.5V13.5z M20.5,9H16V6.5h4c0.3,0,0.5,0.2,0.5,0.4c0,0,0,0,0,0  V9z",edit:"M17,11.2L12.8,7L5,14.8V19h4.2L17,11.2z M7,16.8v-1.5l5.6-5.6l1.4,1.5l-5.6,5.6H7z M13.5,6.3l0.7-0.7c0.8-0.8,2.1-0.8,2.8,0  c0,0,0,0,0,0L18.4,7c0.8,0.8,0.8,2,0,2.8l-0.7,0.7L13.5,6.3z",
exitFullscreen:"M5,16H8v3h2V14H5ZM8,8H5v2h5V5H8Zm6,11h2V16h3V14H14ZM16,8V5H14v5h5V8Z",fileInsert:"M 8.09375 12.75 L 5.90625 12.75 C 5.542969 12.75 5.25 12.394531 5.25 11.953125 L 5.25 6.375 L 2.851562 6.375 C 2.367188 6.375 2.121094 5.660156 2.464844 5.242188 L 6.625 0.1875 C 6.832031 -0.0585938 7.167969 -0.0585938 7.371094 0.1875 L 11.535156 5.242188 C 11.878906 5.660156 11.632812 6.375 11.148438 6.375 L 8.75 6.375 L 8.75 11.953125 C 8.75 12.394531 8.457031 12.75 8.09375 12.75 Z M 14 12.484375 L 14 16.203125 C 14 16.644531 13.707031 17 13.34375 17 L 0.65625 17 C 0.292969 17 0 16.644531 0 16.203125 L 0 12.484375 C 0 12.042969 0.292969 11.6875 0.65625 11.6875 L 4.375 11.6875 L 4.375 11.953125 C 4.375 12.980469 5.0625 13.8125 5.90625 13.8125 L 8.09375 13.8125 C 8.9375 13.8125 9.625 12.980469 9.625 11.953125 L 9.625 11.6875 L 13.34375 11.6875 C 13.707031 11.6875 14 12.042969 14 12.484375 Z M 10.609375 15.40625 C 10.609375 15.039062 10.363281 14.742188 10.0625 14.742188 C 9.761719 14.742188 9.515625 15.039062 9.515625 15.40625 C 9.515625 15.773438 9.761719 16.070312 10.0625 16.070312 C 10.363281 16.070312 10.609375 15.773438 10.609375 15.40625 Z M 12.359375 15.40625 C 12.359375 15.039062 12.113281 14.742188 11.8125 14.742188 C 11.511719 14.742188 11.265625 15.039062 11.265625 15.40625 C 11.265625 15.773438 11.511719 16.070312 11.8125 16.070312 C 12.113281 16.070312 12.359375 15.773438 12.359375 15.40625 Z M 12.359375 15.40625 ",
fileManager:"M 0 5.625 L 20.996094 5.625 L 21 15.75 C 21 16.371094 20.410156 16.875 19.6875 16.875 L 1.3125 16.875 C 0.585938 16.875 0 16.371094 0 15.75 Z M 0 5.625 M 21 4.5 L 0 4.5 L 0 2.25 C 0 1.628906 0.585938 1.125 1.3125 1.125 L 6.921875 1.125 C 7.480469 1.125 8.015625 1.316406 8.40625 1.652344 L 9.800781 2.847656 C 10.195312 3.183594 10.730469 3.375 11.289062 3.375 L 19.6875 3.375 C 20.414062 3.375 21 3.878906 21 4.5 Z M 21 4.5",markdown:"M5.55006 17.75V7.35L8.96006 16.89H10.7101L14.2301 7.37V14.0729C14.3951 14.1551 14.5499 14.265 14.6875 14.4026L14.7001 14.4151V11.64C14.7001 10.8583 15.2127 10.1963 15.9201 9.97171V5H13.6801L10.0401 14.86L6.51006 5H4.00006V17.75H5.55006ZM17.2001 11.64C17.2001 11.2258 16.8643 10.89 16.4501 10.89C16.0359 10.89 15.7001 11.2258 15.7001 11.64V16.8294L13.9804 15.1097C13.6875 14.8168 13.2126 14.8168 12.9197 15.1097C12.6269 15.4026 12.6269 15.8775 12.9197 16.1703L15.9197 19.1703C16.2126 19.4632 16.6875 19.4632 16.9804 19.1703L19.9804 16.1703C20.2733 15.8775 20.2733 15.4026 19.9804 15.1097C19.6875 14.8168 19.2126 14.8168 18.9197 15.1097L17.2001 16.8294V11.64Z",
fontAwesome:"M18.99018,13.98212V7.52679c-.08038-1.21875-1.33929-.683-1.33929-.683-2.933,1.39282-4.36274.61938-5.85938.15625a6.23272,6.23272,0,0,0-2.79376-.20062l-.00946.004A1.98777,1.98777,0,0,0,7.62189,5.106a.984.984,0,0,0-.17517-.05432c-.02447-.0055-.04882-.01032-.0736-.0149A.9565.9565,0,0,0,7.1908,5H6.82539a.9565.9565,0,0,0-.18232.0368c-.02472.00458-.04907.0094-.07348.01484a.985.985,0,0,0-.17523.05438,1.98585,1.98585,0,0,0-.573,3.49585v9.394A1.004,1.004,0,0,0,6.82539,19H7.1908a1.00406,1.00406,0,0,0,1.00409-1.00409V15.52234c3.64221-1.09827,5.19709.64282,7.09888.57587a5.57291,5.57291,0,0,0,3.25446-1.05805A1.2458,1.2458,0,0,0,18.99018,13.98212Z",
fontFamily:"M16,19h2L13,5H11L6,19H8l1.43-4h5.14Zm-5.86-6L12,7.8,13.86,13Z",fontSize:"M20.75,19h1.5l-3-10h-1.5l-3,10h1.5L17,16.5h3Zm-3.3-4,1.05-3.5L19.55,15Zm-5.7,4h2l-5-14h-2l-5,14h2l1.43-4h5.14ZM5.89,13,7.75,7.8,9.61,13Z",fullscreen:"M7,14H5v5h5V17H7ZM5,10H7V7h3V5H5Zm12,7H14v2h5V14H17ZM14,5V7h3v3h2V5Z",help:"M11,17h2v2h-2V17z M12,5C9.8,5,8,6.8,8,9h2c0-1.1,0.9-2,2-2s2,0.9,2,2c0,2-3,1.7-3,5v1h2v-1c0-2.2,3-2.5,3-5  C16,6.8,14.2,5,12,5z",horizontalLine:"M5,12h14 M19,11H5v2h14V11z",imageAltText:"M19,7h-6v12h-2V7H5V5h6h2h6V7z",
imageCaption:"M14.2,11l3.8,5H6l3-3.9l2.1,2.7L14,11H14.2z M8.5,11c0.8,0,1.5-0.7,1.5-1.5S9.3,8,8.5,8S7,8.7,7,9.5C7,10.3,7.7,11,8.5,11z   M22,6v12c0,1.1-0.9,2-2,2H4c-1.1,0-2-0.9-2-2V6c0-1.1,0.9-2,2-2h16C21.1,4,22,4.9,22,6z M20,8.8V6H4v12h16V8.8z M22,22H2v2h20V22z",imageClass:"M9.5,13.4l-2.9-2.9h3.8L12.2,7l1.4,3.5h3.8l-3,2.9l0.9,3.6L12,15.1L8.8,17L9.5,13.4z M22,6v12c0,1.1-0.9,2-2,2H4  c-1.1,0-2-0.9-2-2V6c0-1.1,0.9-2,2-2h16C21.1,4,22,4.9,22,6z M20,6H4v12h16V8.8V6z",imageDisplay:"M3,5h18v2H3V5z M13,9h8v2h-8V9z M13,13h8v2h-8V13z M3,17h18v2H3V17z M3,9h8v6H3V9z",
imageManager:"M20,6h-7l-2-2H4C2.9,4,2,4.9,2,6v12c0,1.1,0.9,2,2,2h16c1.1,0,2-0.9,2-2V8C22,6.9,21.1,6,20,6z M20,18H4V6h6.2l2,2H20V18z   M18,16l-3.8-5H14l-2.9,3.8L9,12.1L6,16H18z M10,9.5C10,8.7,9.3,8,8.5,8S7,8.7,7,9.5S7.7,11,8.5,11S10,10.3,10,9.5z",imageSize:"M16.9,4c-0.3,0-0.5,0.2-0.8,0.3L3.3,13c-0.9,0.6-1.1,1.9-0.5,2.8l2.2,3.3c0.4,0.7,1.2,1,2,0.8c0.3,0,0.5-0.2,0.8-0.3  L20.7,11c0.9-0.6,1.1-1.9,0.5-2.8l-2.2-3.3C18.5,4.2,17.7,3.9,16.9,4L16.9,4z M16.9,9.9L18.1,9l-2-2.9L17,5.6c0.1,0,0.1-0.1,0.2-0.1  c0.2,0,0.4,0,0.5,0.2L19.9,9c0.2,0.2,0.1,0.5-0.1,0.7L7,18.4c-0.1,0-0.1,0.1-0.2,0.1c-0.2,0-0.4,0-0.5-0.2L4.1,15  c-0.2-0.2-0.1-0.5,0.1-0.7L5,13.7l2,2.9l1.2-0.8l-2-2.9L7.5,12l1.1,1.7l1.2-0.8l-1.1-1.7l1.2-0.8l2,2.9l1.2-0.8l-2-2.9l1.2-0.8  l1.1,1.7l1.2-0.8l-1.1-1.7L14.9,7L16.9,9.9z",
indent:"M3,9v6l3-3L3,9z M3,19h18v-2H3V19z M3,7h18V5H3V7z M9,11h12V9H9V11z M9,15h12v-2H9V15z",inlineClass:"M9.9,13.313A1.2,1.2,0,0,1,9.968,13H6.277l1.86-5.2,1.841,5.148A1.291,1.291,0,0,1,11.212,12h.426l-2.5-7h-2l-5,14h2l1.43-4H9.9Zm2.651,6.727a2.884,2.884,0,0,1-.655-2.018v-2.71A1.309,1.309,0,0,1,13.208,14h3.113a3.039,3.039,0,0,1,2,1.092s1.728,1.818,2.964,2.928a1.383,1.383,0,0,1,.318,1.931,1.44,1.44,0,0,1-.19.215l-3.347,3.31a1.309,1.309,0,0,1-1.832.258h0a1.282,1.282,0,0,1-.258-.257l-1.71-1.728Zm2.48-3.96a.773.773,0,1,0,.008,0Z",
inlineStyle:"M11.88,15h.7l.7-1.7-3-8.3h-2l-5,14h2l1.4-4Zm-4.4-2,1.9-5.2,1.9,5.2ZM15.4,21.545l3.246,1.949-.909-3.637L20.72,17H16.954l-1.429-3.506L13.837,17H10.071l2.857,2.857-.779,3.637Z",insert:"M13.889,11.611c-0.17,0.17-0.443,0.17-0.612,0l-3.189-3.187l-3.363,3.36c-0.171,0.171-0.441,0.171-0.612,0c-0.172-0.169-0.172-0.443,0-0.611l3.667-3.669c0.17-0.17,0.445-0.172,0.614,0l3.496,3.493C14.058,11.167,14.061,11.443,13.889,11.611 M18.25,10c0,4.558-3.693,8.25-8.25,8.25c-4.557,0-8.25-3.692-8.25-8.25c0-4.557,3.693-8.25,8.25-8.25C14.557,1.75,18.25,5.443,18.25,10 M17.383,10c0-4.07-3.312-7.382-7.383-7.382S2.618,5.93,2.618,10S5.93,17.381,10,17.381S17.383,14.07,17.383,10",
insertEmbed:"M20.73889,15.45929a3.4768,3.4768,0,0,0-5.45965-.28662L9.5661,12.50861a3.49811,3.49811,0,0,0-.00873-1.01331l5.72174-2.66809a3.55783,3.55783,0,1,0-.84527-1.81262L8.70966,9.6839a3.50851,3.50851,0,1,0,.0111,4.63727l5.7132,2.66412a3.49763,3.49763,0,1,0,6.30493-1.526ZM18.00745,5.01056A1.49993,1.49993,0,1,1,16.39551,6.3894,1.49994,1.49994,0,0,1,18.00745,5.01056ZM5.99237,13.49536a1.49989,1.49989,0,1,1,1.61194-1.37878A1.49982,1.49982,0,0,1,5.99237,13.49536Zm11.78211,5.494a1.49993,1.49993,0,1,1,1.61193-1.37885A1.49987,1.49987,0,0,1,17.77448,18.98932Z",
insertFile:"M7,3C5.9,3,5,3.9,5,5v14c0,1.1,0.9,2,2,2h10c1.1,0,2-0.9,2-2V7.6L14.4,3H7z M17,19H7V5h6v4h4V19z",insertImage:"M14.2,11l3.8,5H6l3-3.9l2.1,2.7L14,11H14.2z M8.5,11c0.8,0,1.5-0.7,1.5-1.5S9.3,8,8.5,8S7,8.7,7,9.5C7,10.3,7.7,11,8.5,11z   M22,6v12c0,1.1-0.9,2-2,2H4c-1.1,0-2-0.9-2-2V6c0-1.1,0.9-2,2-2h16C21.1,4,22,4.9,22,6z M20,8.8V6H4v12h16V8.8z",insertLink:"M11,17H7A5,5,0,0,1,7,7h4V9H7a3,3,0,0,0,0,6h4ZM17,7H13V9h4a3,3,0,0,1,0,6H13v2h4A5,5,0,0,0,17,7Zm-1,4H8v2h8Z",insertMore:"M16.5,13h-6v6h-2V13h-6V11h6V5h2v6h6Zm5,4.5A1.5,1.5,0,1,1,20,16,1.5,1.5,0,0,1,21.5,17.5Zm0-4A1.5,1.5,0,1,1,20,12,1.5,1.5,0,0,1,21.5,13.5Zm0-4A1.5,1.5,0,1,1,20,8,1.5,1.5,0,0,1,21.5,9.5Z",
insertTable:"M20,5H4C2.9,5,2,5.9,2,7v2v1.5v3V15v2c0,1.1,0.9,2,2,2h16c1.1,0,2-0.9,2-2v-2v-1.5v-3V9V7C22,5.9,21.1,5,20,5z M9.5,13.5v-3  h5v3H9.5z M14.5,15v2.5h-5V15H14.5z M9.5,9V6.5h5V9H9.5z M3.5,7c0-0.3,0.2-0.5,0.5-0.5h4V9H3.5V7z M3.5,10.5H8v3H3.5V10.5z M3.5,17  v-2H8v2.5H4C3.7,17.5,3.5,17.3,3.5,17z M20.5,17c0,0.3-0.2,0.5-0.5,0.5h-4V15h4.5V17z M20.5,13.5H16v-3h4.5V13.5z M16,9V6.5h4  c0.3,0,0.5,0.2,0.5,0.5v2H16z",insertVideo:"M15,8v8H5V8H15m2,2.5V7a1,1,0,0,0-1-1H4A1,1,0,0,0,3,7V17a1,1,0,0,0,1,1H16a1,1,0,0,0,1-1V13.5l2.29,2.29A1,1,0,0,0,21,15.08V8.91a1,1,0,0,0-1.71-.71Z",
upload:"M12 6.66667a4.87654 4.87654 0 0 1 4.77525 3.92342l0.29618 1.50268 1.52794 0.10578a2.57021 2.57021 0 0 1 -0.1827 5.13478H6.5a3.49774 3.49774 0 0 1 -0.3844 -6.97454l1.06682 -0.11341L7.678 9.29387A4.86024 4.86024 0 0 1 12 6.66667m0 -2A6.871 6.871 0 0 0 5.90417 8.37 5.49773 5.49773 0 0 0 6.5 19.33333H18.41667a4.57019 4.57019 0 0 0 0.32083 -9.13A6.86567 6.86567 0 0 0 12 4.66667Zm0.99976 7.2469h1.91406L11.99976 9 9.08618 11.91357h1.91358v3H11V16h2V14h-0.00024Z",uploadFiles:"M12 6.66667a4.87654 4.87654 0 0 1 4.77525 3.92342l0.29618 1.50268 1.52794 0.10578a2.57021 2.57021 0 0 1 -0.1827 5.13478H6.5a3.49774 3.49774 0 0 1 -0.3844 -6.97454l1.06682 -0.11341L7.678 9.29387A4.86024 4.86024 0 0 1 12 6.66667m0 -2A6.871 6.871 0 0 0 5.90417 8.37 5.49773 5.49773 0 0 0 6.5 19.33333H18.41667a4.57019 4.57019 0 0 0 0.32083 -9.13A6.86567 6.86567 0 0 0 12 4.66667Zm0.99976 7.2469h1.91406L11.99976 9 9.08618 11.91357h1.91358v3H11V16h2V14h-0.00024Z",
italic:"M11.76,9h2l-2.2,10h-2Zm1.68-4a1,1,0,1,0,1,1,1,1,0,0,0-1-1Z",search:"M15.5 14h-0.79l-0.28 -0.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09 -0.59 4.23 -1.57l0.27 0.28v0.79l5 4.99L20.49 19l-4.99 -5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z",lineHeight:"M6.25,7h2.5L5.25,3.5,1.75,7h2.5V17H1.75l3.5,3.5L8.75,17H6.25Zm4-2V7h12V5Zm0,14h12V17h-12Zm0-6h12V11h-12Z",linkStyles:"M19,17.9l0.9,3.6l-3.2-1.9l-3.3,1.9l0.8-3.6L11.3,15h3.8l1.7-3.5l1.4,3.5H22L19,17.9z M20,12c0,0.3-0.1,0.7-0.2,1h2.1  c0.1-0.3,0.1-0.6,0.1-1c0-2.8-2.2-5-5-5h-4v2h4C18.7,9,20,10.3,20,12z M14.8,11H8v2h3.3h2.5L14.8,11z M9.9,16.4L8.5,15H7  c-1.7,0-3-1.3-3-3s1.3-3,3-3h4V7H7c-2.8,0-5,2.2-5,5s2.2,5,5,5h3.5L9.9,16.4z",
mention:"M12.4,5c-4.1,0-7.5,3.4-7.5,7.5S8.3,20,12.4,20h3.8v-1.5h-3.8c-3.3,0-6-2.7-6-6s2.7-6,6-6s6,2.7,6,6v1.1  c0,0.6-0.5,1.2-1.1,1.2s-1.1-0.6-1.1-1.2v-1.1c0-2.1-1.7-3.8-3.8-3.8s-3.7,1.7-3.7,3.8s1.7,3.8,3.8,3.8c1,0,2-0.4,2.7-1.1  c0.5,0.7,1.3,1.1,2.2,1.1c1.5,0,2.6-1.2,2.6-2.7v-1.1C19.9,8.4,16.6,5,12.4,5z M12.4,14.7c-1.2,0-2.3-1-2.3-2.2s1-2.3,2.3-2.3  s2.3,1,2.3,2.3S13.6,14.7,12.4,14.7z",minimize:"M5,12h14 M19,11H5v2h14V11z",more:"M13.5,17c0,0.8-0.7,1.5-1.5,1.5s-1.5-0.7-1.5-1.5s0.7-1.5,1.5-1.5S13.5,16.2,13.5,17z M13.5,12c0,0.8-0.7,1.5-1.5,1.5 s-1.5-0.7-1.5-1.5s0.7-1.5,1.5-1.5S13.5,11.2,13.5,12z M13.5,7c0,0.8-0.7,1.5-1.5,1.5S10.5,7.8,10.5,7s0.7-1.5,1.5-1.5 S13.5,6.2,13.5,7z",
openLink:"M17,17H7V7h3V5H7C6,5,5,6,5,7v10c0,1,1,2,2,2h10c1,0,2-1,2-2v-3h-2V17z M14,5v2h1.6l-5.8,5.8l1.4,1.4L17,8.4V10h2V5H14z",orderedList:"M2.5,16h2v.5h-1v1h1V18h-2v1h3V15h-3Zm1-7h1V5h-2V6h1Zm-1,2H4.3L2.5,13.1V14h3V13H3.7l1.8-2.1V10h-3Zm5-5V8h14V6Zm0,12h14V16H7.5Zm0-5h14V11H7.5Z",outdent:"M3,12l3,3V9L3,12z M3,19h18v-2H3V19z M3,7h18V5H3V7z M9,11h12V9H9V11z M9,15h12v-2H9V15z",pageBreaker:"M3,9v6l3-3L3,9z M21,9H8V4h2v3h9V4h2V9z M21,20h-2v-3h-9v3H8v-5h13V20z M11,13H8v-2h3V13z M16,13h-3v-2h3V13z M21,13h-3v-2  h3V13z",
paragraphFormat:"M10.15,5A4.11,4.11,0,0,0,6.08,8.18,4,4,0,0,0,10,13v6h2V7h2V19h2V7h2V5ZM8,9a2,2,0,0,1,2-2v4A2,2,0,0,1,8,9Z",paragraphMore:"M7.682,5a4.11,4.11,0,0,0-4.07,3.18,4,4,0,0,0,3.11,4.725h0l.027.005a3.766,3.766,0,0,0,.82.09v6h2V7h2V19h2V7h2V5ZM5.532,9a2,2,0,0,1,2-2v4A2,2,0,0,1,5.532,9Zm14.94,8.491a1.5,1.5,0,1,1-1.5-1.5A1.5,1.5,0,0,1,20.472,17.491Zm0-4a1.5,1.5,0,1,1-1.5-1.5A1.5,1.5,0,0,1,20.472,13.491Zm0-4a1.5,1.5,0,1,1-1.5-1.5A1.5,1.5,0,0,1,20.472,9.491Z",paragraphStyle:"M4,9c0-1.1,0.9-2,2-2v4C4.9,11,4,10.1,4,9z M16.7,20.5l3.2,1.9L19,18.8l3-2.9h-3.7l-1.4-3.5L15.3,16h-3.8l2.9,2.9l-0.9,3.6  L16.7,20.5z M10,17.4V19h1.6L10,17.4z M6.1,5c-1.9,0-3.6,1.3-4,3.2c-0.5,2.1,0.8,4.2,2.9,4.7c0,0,0,0,0,0h0.2C5.5,13,5.8,13,6,13v6  h2V7h2v7h2V7h2V5H6.1z",
pdfExport:"M7,3C5.9,3,5,3.9,5,5v14c0,1.1,0.9,2,2,2h10c1.1,0,2-0.9,2-2V7.6L14.4,3H7z M17,19H7V5h6v4h4V19z M16.3,13.5  c-0.2-0.6-1.1-0.8-2.6-0.8c-0.1,0-0.1,0-0.2,0c-0.3-0.3-0.8-0.9-1-1.2c-0.2-0.2-0.3-0.3-0.4-0.6c0.2-0.7,0.2-1,0.3-1.5  c0.1-0.9,0-1.6-0.2-1.8c-0.4-0.2-0.7-0.2-0.9-0.2c-0.1,0-0.3,0.2-0.7,0.7c-0.2,0.7-0.1,1.8,0.6,2.8c-0.2,0.8-0.7,1.6-1,2.4  c-0.8,0.2-1.5,0.7-1.9,1.1c-0.7,0.7-0.9,1.1-0.7,1.6c0,0.3,0.2,0.6,0.7,0.6c0.3-0.1,0.3-0.2,0.7-0.3c0.6-0.3,1.2-1.7,1.7-2.4  c0.8-0.2,1.7-0.3,2-0.3c0.1,0,0.3,0,0.6,0c0.8,0.8,1.2,1.1,1.8,1.2c0.1,0,0.2,0,0.3,0c0.3,0,0.8-0.1,1-0.6  C16.4,14.1,16.4,13.9,16.3,13.5z M8.3,15.7c-0.1,0.1-0.2,0.1-0.2,0.1c0-0.1,0-0.3,0.6-0.8c0.2-0.2,0.6-0.3,0.9-0.7  C9,15,8.6,15.5,8.3,15.7z M11.3,9c0-0.1,0.1-0.2,0.1-0.2S11.6,9,11.5,10c0,0.1,0,0.3-0.1,0.7C11.3,10.1,11,9.5,11.3,9z M10.9,13.1  c0.2-0.6,0.6-1,0.7-1.5c0.1,0.1,0.1,0.1,0.2,0.2c0.1,0.2,0.3,0.7,0.7,0.9C12.2,12.8,11.6,13,10.9,13.1z M15.2,14.1  c-0.1,0-0.1,0-0.2,0c-0.2,0-0.7-0.2-1-0.7c1.1,0,1.6,0.2,1.6,0.6C15.5,14.1,15.4,14.1,15.2,14.1z",
print:"M16.1,17c0-0.6,0.4-1,1-1c0.6,0,1,0.4,1,1s-0.4,1-1,1C16.5,18,16.1,17.6,16.1,17z M22,15v4c0,1.1-0.9,2-2,2H4  c-1.1,0-2-0.9-2-2v-4c0-1.1,0.9-2,2-2h1V5c0-1.1,0.9-2,2-2h7.4L19,7.6V13h1C21.1,13,22,13.9,22,15z M7,13h10V9h-4V5H7V13z M20,15H4  v4h16V15z",redo:"M13.6,9.4c1.7,0.3,3.2,0.9,4.6,2L21,8.5v7h-7l2.7-2.7C13,10.1,7.9,11,5.3,14.7c-0.2,0.3-0.4,0.5-0.5,0.8L3,14.6  C5.1,10.8,9.3,8.7,13.6,9.4z",removeTable:"M15,10v8H9v-8H15 M14,4H9.9l-1,1H6v2h12V5h-3L14,4z M17,8H7v10c0,1.1,0.9,2,2,2h6c1.1,0,2-0.9,2-2V8z",
insertAll:"M 9.25 12 L 6.75 12 C 6.335938 12 6 11.664062 6 11.25 L 6 6 L 3.257812 6 C 2.703125 6 2.425781 5.328125 2.820312 4.933594 L 7.570312 0.179688 C 7.804688 -0.0546875 8.191406 -0.0546875 8.425781 0.179688 L 13.179688 4.933594 C 13.574219 5.328125 13.296875 6 12.742188 6 L 10 6 L 10 11.25 C 10 11.664062 9.664062 12 9.25 12 Z M 16 11.75 L 16 15.25 C 16 15.664062 15.664062 16 15.25 16 L 0.75 16 C 0.335938 16 0 15.664062 0 15.25 L 0 11.75 C 0 11.335938 0.335938 11 0.75 11 L 5 11 L 5 11.25 C 5 12.214844 5.785156 13 6.75 13 L 9.25 13 C 10.214844 13 11 12.214844 11 11.25 L 11 11 L 15.25 11 C 15.664062 11 16 11.335938 16 11.75 Z M 12.125 14.5 C 12.125 14.15625 11.84375 13.875 11.5 13.875 C 11.15625 13.875 10.875 14.15625 10.875 14.5 C 10.875 14.84375 11.15625 15.125 11.5 15.125 C 11.84375 15.125 12.125 14.84375 12.125 14.5 Z M 14.125 14.5 C 14.125 14.15625 13.84375 13.875 13.5 13.875 C 13.15625 13.875 12.875 14.15625 12.875 14.5 C 12.875 14.84375 13.15625 15.125 13.5 15.125 C 13.84375 15.125 14.125 14.84375 14.125 14.5 Z M 14.125 14.5 ",
remove:"M15,10v8H9v-8H15 M14,4H9.9l-1,1H6v2h12V5h-3L14,4z M17,8H7v10c0,1.1,0.9,2,2,2h6c1.1,0,2-0.9,2-2V8z",replaceImage:"M16,5v3H4v2h12v3l4-4L16,5z M8,19v-3h12v-2H8v-3l-4,4L8,19z",row:"M20,5H4C2.9,5,2,5.9,2,7v2v1.5v3V15v2c0,1.1,0.9,2,2,2h16c1.1,0,2-0.9,2-2v-2v-1.5v-3V9V7C22,5.9,21.1,5,20,5z M16,6.5h4  c0.3,0,0.5,0.2,0.5,0.5v2H16V6.5z M9.5,6.5h5V9h-5V6.5z M3.5,7c0-0.3,0.2-0.5,0.5-0.5h4V9H3.5V7z M8,17.5H4c-0.3,0-0.5-0.2-0.5-0.5  v-2H8V17.5z M14.5,17.5h-5V15h5V17.5z M20.5,17c0,0.3-0.2,0.5-0.5,0.5h-4V15h4.5V17z",
selectAll:"M5,7h2V5C5.9,5,5,5.9,5,7z M5,11h2V9H5V11z M9,19h2v-2H9V19z M5,11h2V9H5V11z M15,5h-2v2h2V5z M17,5v2h2C19,5.9,18.1,5,17,5  z M7,19v-2H5C5,18.1,5.9,19,7,19z M5,15h2v-2H5V15z M11,5H9v2h2V5z M13,19h2v-2h-2V19z M17,11h2V9h-2V11z M17,19c1.1,0,2-0.9,2-2h-2  V19z M17,11h2V9h-2V11z M17,15h2v-2h-2V15z M13,19h2v-2h-2V19z M13,7h2V5h-2V7z M9,15h6V9H9V15z M11,11h2v2h-2V11z",smile:"M11.991,3A9,9,0,1,0,21,12,8.99557,8.99557,0,0,0,11.991,3ZM12,19a7,7,0,1,1,7-7A6.99808,6.99808,0,0,1,12,19Zm3.105-5.2h1.503a4.94542,4.94542,0,0,1-9.216,0H8.895a3.57808,3.57808,0,0,0,6.21,0ZM7.5,9.75A1.35,1.35,0,1,1,8.85,11.1,1.35,1.35,0,0,1,7.5,9.75Zm6.3,0a1.35,1.35,0,1,1,1.35,1.35A1.35,1.35,0,0,1,13.8,9.75Z",
spellcheck:"M19.1,13.6l-5.6,5.6l-2.7-2.7l-1.4,1.4l4.1,4.1l7-7L19.1,13.6z M10.8,13.7l2.7,2.7l0.8-0.8L10.5,5h-2l-5,14h2l1.4-4h2.6  L10.8,13.7z M9.5,7.8l1.9,5.2H7.6L9.5,7.8z",star:"M12.1,7.7l1,2.5l0.4,0.9h1h2.4l-2.1,2l-0.6,0.6l0.2,0.9l0.6,2.3l-2.2-1.3L12,15.2l-0.8,0.5L9,17l0.5-2.5l0.1-0.8L9,13.1  l-2-2h2.5h0.9l0.4-0.8L12.1,7.7 M12.2,4L9.5,9.6H3.4L8,14.2L6.9,20l5.1-3.1l5.3,3.1l-1.5-5.8l4.8-4.6h-6.1L12.2,4L12.2,4z",strikeThrough:"M3,12.20294H21v1.5H16.63422a3.59782,3.59782,0,0,1,.34942,1.5929,3.252,3.252,0,0,1-1.31427,2.6997A5.55082,5.55082,0,0,1,12.20251,19a6.4421,6.4421,0,0,1-2.62335-.539,4.46335,4.46335,0,0,1-1.89264-1.48816,3.668,3.668,0,0,1-.67016-2.15546V14.704h.28723v-.0011h.34149v.0011H9.02v.11334a2.18275,2.18275,0,0,0,.85413,1.83069,3.69,3.69,0,0,0,2.32836.67926,3.38778,3.38778,0,0,0,2.07666-.5462,1.73346,1.73346,0,0,0,.7013-1.46655,1.69749,1.69749,0,0,0-.647-1.43439,3.00525,3.00525,0,0,0-.27491-.17725H3ZM16.34473,7.05981A4.18163,4.18163,0,0,0,14.6236,5.5462,5.627,5.627,0,0,0,12.11072,5,5.16083,5.16083,0,0,0,8.74719,6.06213,3.36315,3.36315,0,0,0,7.44006,8.76855a3.22923,3.22923,0,0,0,.3216,1.42786h2.59668c-.08338-.05365-.18537-.10577-.25269-.16064a1.60652,1.60652,0,0,1-.65283-1.30036,1.79843,1.79843,0,0,1,.68842-1.5108,3.12971,3.12971,0,0,1,1.96948-.55243,3.04779,3.04779,0,0,1,2.106.6687,2.35066,2.35066,0,0,1,.736,1.83258v.11341h2.00317V9.17346A3.90013,3.90013,0,0,0,16.34473,7.05981Z",
subscript:"M10.4,12l3.6,3.6L12.6,17L9,13.4L5.4,17L4,15.6L7.6,12L4,8.4L5.4,7L9,10.6L12.6,7L14,8.4L10.4,12z M18.31234,19.674  l1.06812-1.1465c0.196-0.20141,0.37093-0.40739,0.5368-0.6088c0.15975-0.19418,0.30419-0.40046,0.432-0.617  c0.11969-0.20017,0.21776-0.41249,0.29255-0.6334c0.07103-0.21492,0.10703-0.43986,0.10662-0.66621  c0.00297-0.28137-0.04904-0.56062-0.1531-0.82206c-0.09855-0.24575-0.25264-0.46534-0.45022-0.6416  c-0.20984-0.18355-0.45523-0.32191-0.72089-0.40646c-0.63808-0.19005-1.3198-0.17443-1.94851,0.04465  c-0.28703,0.10845-0.54746,0.2772-0.76372,0.49487c-0.20881,0.20858-0.37069,0.45932-0.47483,0.73548  c-0.10002,0.26648-0.15276,0.54838-0.15585,0.833l-0.00364,0.237H17.617l0.00638-0.22692  c0.00158-0.12667,0.01966-0.25258,0.05377-0.37458c0.03337-0.10708,0.08655-0.20693,0.15679-0.29437  c0.07105-0.08037,0.15959-0.14335,0.25882-0.1841c0.22459-0.08899,0.47371-0.09417,0.7018-0.01458  c0.0822,0.03608,0.15559,0.08957,0.21509,0.15679c0.06076,0.07174,0.10745,0.15429,0.13761,0.24333  c0.03567,0.10824,0.05412,0.22141,0.05469,0.33538c-0.00111,0.08959-0.0118,0.17881-0.0319,0.26612  c-0.02913,0.10428-0.07076,0.20465-0.124,0.29893c-0.07733,0.13621-0.1654,0.26603-0.26338,0.38823  c-0.13438,0.17465-0.27767,0.34226-0.42929,0.50217l-2.15634,2.35315V21H21v-1.326H18.31234z",
superscript:"M10.4,12,14,15.6,12.6,17,9,13.4,5.4,17,4,15.6,7.6,12,4,8.4,5.4,7,9,10.6,12.6,7,14,8.4Zm8.91234-3.326,1.06812-1.1465c.196-.20141.37093-.40739.5368-.6088a4.85745,4.85745,0,0,0,.432-.617,3.29,3.29,0,0,0,.29255-.6334,2.11079,2.11079,0,0,0,.10662-.66621,2.16127,2.16127,0,0,0-.1531-.82206,1.7154,1.7154,0,0,0-.45022-.6416,2.03,2.03,0,0,0-.72089-.40646,3.17085,3.17085,0,0,0-1.94851.04465,2.14555,2.14555,0,0,0-.76372.49487,2.07379,2.07379,0,0,0-.47483.73548,2.446,2.446,0,0,0-.15585.833l-.00364.237H18.617L18.62338,5.25a1.45865,1.45865,0,0,1,.05377-.37458.89552.89552,0,0,1,.15679-.29437.70083.70083,0,0,1,.25882-.1841,1.00569,1.00569,0,0,1,.7018-.01458.62014.62014,0,0,1,.21509.15679.74752.74752,0,0,1,.13761.24333,1.08893,1.08893,0,0,1,.05469.33538,1.25556,1.25556,0,0,1-.0319.26612,1.34227,1.34227,0,0,1-.124.29893,2.94367,2.94367,0,0,1-.26338.38823,6.41629,6.41629,0,0,1-.42929.50217L17.19709,8.92642V10H22V8.674Z",
symbols:"M15.77493,16.98885a8.21343,8.21343,0,0,0,1.96753-2.57651,7.34824,7.34824,0,0,0,.6034-3.07618A6.09092,6.09092,0,0,0,11.99515,5a6.13347,6.13347,0,0,0-4.585,1.79187,6.417,6.417,0,0,0-1.756,4.69207,6.93955,6.93955,0,0,0,.622,2.97415,8.06587,8.06587,0,0,0,1.949,2.53076H5.41452V19h5.54114v-.04331h-.00147V16.84107a5.82825,5.82825,0,0,1-2.2052-2.2352A6.40513,6.40513,0,0,1,7.97672,11.447,4.68548,4.68548,0,0,1,9.07785,8.19191a3.73232,3.73232,0,0,1,2.9173-1.22462,3.76839,3.76839,0,0,1,2.91241,1.21489,4.482,4.482,0,0,1,1.11572,3.154,6.71141,6.71141,0,0,1-.75384,3.24732,5.83562,5.83562,0,0,1-2.22357,2.25759v2.11562H13.0444V19h5.54108V16.98885Z",
tags:"M8.9749 7.47489a1.5 1.5 0 1 1 -1.5 1.5A1.5 1.5 0 0 1 8.9749 7.47489Zm3.78866 -3.12713L16.5362 8.12041l0.33565 0.33564 2.77038 2.77038a2.01988 2.01988 0 0 1 0.59 1.42 1.95518 1.95518 0 0 1 -0.5854 1.40455l0.00044 0.00043 -5.59583 5.59583 -0.00043 -0.00044a1.95518 1.95518 0 0 1 -1.40455 0.5854 1.98762 1.98762 0 0 1 -1.41 -0.58L8.45605 16.87185l-0.33564 -0.33565L4.35777 12.77357a1.99576 1.99576 0 0 1 -0.59 -1.42V9.36358l0 -3.59582a2.00579 2.00579 0 0 1 2 -2l3.59582 0h1.98995A1.98762 1.98762 0 0 1 12.76356 4.34776ZM15.46186 9.866l-0.33564 -0.33564L11.36359 5.76776H5.76776v5.59583L9.866 15.46186l2.7794 2.7794 5.5878 -5.60385 -0.001 -0.001Z",
tableHeader:"M20,5H4C2.9,5,2,5.9,2,7v10c0,1.1,0.9,2,2,2h16c1.1,0,2-0.9,2-2V7C22,5.9,21.1,5,20,5z M8,17.5H4c-0.3,0-0.5-0.2-0.5-0.4  l0,0V17v-2H8V17.5z M8,13.5H3.5v-3H8V13.5z M14.5,17.5h-5V15h5V17.5z M14.5,13.5h-5v-3h5V13.5z M20.5,17c0,0.3-0.2,0.5-0.4,0.5l0,0  H16V15h4.5V17z M20.5,13.5H16v-3h4.5V13.5z M20.5,9h-4.4H16h-1.5h-5H8H7.9H3.5V7c0-0.3,0.2-0.5,0.4-0.5l0,0h4l0,0h8.2l0,0H20  c0.3,0,0.5,0.2,0.5,0.4l0,0V9z",tableFooter:"M20,19H4a2.006,2.006,0,0,1-2-2V7A2.006,2.006,0,0,1,4,5H20a2.006,2.006,0,0,1,2,2V17A2.006,2.006,0,0,1,20,19ZM8,6.5H4a.458.458,0,0,0-.5.4h0V9H8Zm0,4H3.5v3H8Zm6.5-4h-5V9h5Zm0,4h-5v3h5Zm6-3.5a.458.458,0,0,0-.4-.5H16V9h4.5Zm0,3.5H16v3h4.5Zm0,4.5H3.5v2a.458.458,0,0,0,.4.5H20a.458.458,0,0,0,.5-.4h0Z",
tableStyle:"M20.0171,19.89752l.9,3.6-3.2-1.9-3.3,1.9.8-3.6-2.9-2.9h3.8l1.7-3.5,1.4,3.5h3.8ZM20,5H4A2.00591,2.00591,0,0,0,2,7V17a2.00591,2.00591,0,0,0,2,2h7.49115l-.58826-.58826L9.99115,17.5H9.5V14.9975h5.36511L16,12.66089V10.5h4.5v3h-.52783l.599,1.4975H22V7A2.00591,2.00591,0,0,0,20,5ZM3.5,7A.4724.4724,0,0,1,4,6.5H8V9H3.5Zm0,3.5H8v3H3.5Zm.5,7a.4724.4724,0,0,1-.5-.5V15H8v2.5Zm10.5-4h-5v-3h5Zm0-4.5h-5V6.5h5Zm6,0H16V6.5h4a.4724.4724,0,0,1,.5.5Z",textColor:"M15.2,13.494s-3.6,3.9-3.6,6.3a3.65,3.65,0,0,0,7.3.1v-.1C18.9,17.394,15.2,13.494,15.2,13.494Zm-1.47-1.357.669-.724L12.1,5h-2l-5,14h2l1.43-4h2.943A24.426,24.426,0,0,1,13.726,12.137ZM11.1,7.8l1.86,5.2H9.244Z",
textMore:"M13.55,19h2l-5-14h-2l-5,14h2l1.4-4h5.1Zm-5.9-6,1.9-5.2,1.9,5.2Zm12.8,4.5a1.5,1.5,0,1,1-1.5-1.5A1.5,1.5,0,0,1,20.45,17.5Zm0-4a1.5,1.5,0,1,1-1.5-1.5A1.5,1.5,0,0,1,20.45,13.5Zm0-4A1.5,1.5,0,1,1,18.95,8,1.5,1.5,0,0,1,20.45,9.5Z",underline:"M19,20v2H5V20Zm-3-6.785a4,4,0,0,1-5.74,3.4A3.75,3.75,0,0,1,8,13.085V5.005H6v8.21a6,6,0,0,0,8,5.44,5.851,5.851,0,0,0,4-5.65v-8H16ZM16,5v0h2V5ZM8,5H6v0H8Z",undo:"M10.4,9.4c-1.7,0.3-3.2,0.9-4.6,2L3,8.5v7h7l-2.7-2.7c3.7-2.6,8.8-1.8,11.5,1.9c0.2,0.3,0.4,0.5,0.5,0.8l1.8-0.9  C18.9,10.8,14.7,8.7,10.4,9.4z",
unlink:"M14.4,11l1.6,1.6V11H14.4z M17,7h-4v1.9h4c1.7,0,3.1,1.4,3.1,3.1c0,1.3-0.8,2.4-1.9,2.8l1.4,1.4C21,15.4,22,13.8,22,12  C22,9.2,19.8,7,17,7z M2,4.3l3.1,3.1C3.3,8.1,2,9.9,2,12c0,2.8,2.2,5,5,5h4v-1.9H7c-1.7,0-3.1-1.4-3.1-3.1c0-1.6,1.2-2.9,2.8-3.1  L8.7,11H8v2h2.7l2.3,2.3V17h1.7l4,4l1.4-1.4L3.4,2.9L2,4.3z",unorderedList:"M4,10.5c-0.8,0-1.5,0.7-1.5,1.5s0.7,1.5,1.5,1.5s1.5-0.7,1.5-1.5S4.8,10.5,4,10.5z M4,5.5C3.2,5.5,2.5,6.2,2.5,7  S3.2,8.5,4,8.5S5.5,7.8,5.5,7S4.8,5.5,4,5.5z M4,15.5c-0.8,0-1.5,0.7-1.5,1.5s0.7,1.5,1.5,1.5s1.5-0.7,1.5-1.5S4.8,15.5,4,15.5z   M7.5,6v2h14V6H7.5z M7.5,18h14v-2h-14V18z M7.5,13h14v-2h-14V13z",
verticalAlignBottom:"M16,13h-3V3h-2v10H8l4,4L16,13z M3,19v2h18v-2H3z",verticalAlignMiddle:"M3,11v2h18v-2H3z M8,18h3v3h2v-3h3l-4-4L8,18z M16,6h-3V3h-2v3H8l4,4L16,6z",verticalAlignTop:"M8,11h3v10h2V11h3l-4-4L8,11z M21,5V3H3v2H21z",trackChanges:"M17.2 20H12.4599L13.9938 19.2076L14.0305 19.1886L14.0616 19.1612C14.1036 19.1242 14.1373 19.0786 14.1603 19.0275C14.1806 18.9825 14.1923 18.9342 14.1948 18.885H14.2H14.3384L14.4364 18.7874L14.7049 18.52H15.45C15.5747 18.52 15.6942 18.4705 15.7823 18.3823C15.8705 18.2942 15.92 18.1746 15.92 18.05C15.92 17.9253 15.8705 17.8058 15.7823 17.7176C15.7351 17.6704 15.6789 17.6343 15.6177 17.6109L17.33 15.9056V19.87C17.33 19.8871 17.3266 19.904 17.3201 19.9197C17.3136 19.9355 17.304 19.9499 17.2919 19.9619C17.2799 19.974 17.2655 19.9836 17.2497 19.9901C17.234 19.9966 17.2171 20 17.2 20ZM4.13 20H11.2508C11.2396 19.9629 11.2337 19.9242 11.2337 19.885C11.2337 19.8133 11.2533 19.7431 11.29 19.6819L11.2739 19.6734L11.8838 18.52H5C4.87535 18.52 4.7558 18.4705 4.66766 18.3823C4.57952 18.2942 4.53 18.1746 4.53 18.05C4.53 17.9253 4.57952 17.8058 4.66766 17.7176C4.7558 17.6295 4.87535 17.58 5 17.58H12.3809L12.3925 17.5582L12.4187 17.5284C12.4558 17.4864 12.5014 17.4527 12.5525 17.4297C12.5836 17.4156 12.6163 17.4057 12.6498 17.4001C12.6522 17.3065 12.6877 17.2166 12.7503 17.1467L13 17.37C12.9902 17.381 12.9847 17.3952 12.9847 17.41C12.9847 17.4247 12.9902 17.439 13 17.45L14.13 18.55H14.2L19.09 13.68V13.6L17.99 12.5C17.979 12.4902 17.9647 12.4847 17.95 12.4847C17.9352 12.4847 17.921 12.4902 17.91 12.5L13 17.37L12.7641 17.1322L15.1759 14.74H5C4.87535 14.74 4.7558 14.6905 4.66766 14.6023C4.57952 14.5142 4.53 14.3946 4.53 14.27C4.53 14.1453 4.57952 14.0258 4.66766 13.9376C4.7558 13.8495 4.87535 13.8 5 13.8H15.45C15.5747 13.8 15.6942 13.8495 15.7823 13.9376C15.8169 13.9722 15.8454 14.0115 15.8675 14.0541L17.33 12.6034V9.3H13.28C13.207 9.30976 13.133 9.30976 13.06 9.3C12.7697 9.22119 12.5113 9.05343 12.3212 8.82027C12.1311 8.58711 12.0187 8.30026 12 8V4H4.13C4.09552 4 4.06246 4.0137 4.03808 4.03808C4.0137 4.06246 4 4.09552 4 4.13V19.87C4 19.9045 4.0137 19.9375 4.03808 19.9619C4.06246 19.9863 4.09552 20 4.13 20ZM11.7889 20H11.8785C11.8902 19.9746 11.898 19.9475 11.9015 19.9197L11.8661 19.9866L11.8117 19.9578L13.84 18.91C13.8464 18.9044 13.8515 18.8974 13.855 18.8897C13.8585 18.8819 13.8603 18.8735 13.8603 18.865C13.8603 18.8565 13.8585 18.8481 13.855 18.8403C13.8515 18.8325 13.8464 18.8256 13.84 18.82L12.76 17.75C12.7544 17.7436 12.7474 17.7385 12.7397 17.735C12.7319 17.7315 12.7235 17.7297 12.715 17.7297C12.7065 17.7297 12.6981 17.7315 12.6903 17.735C12.6825 17.7385 12.6756 17.7436 12.67 17.75L11.57 19.83L11.5023 19.7942L11.58 19.85C11.5727 19.8602 11.5687 19.8724 11.5687 19.885C11.5687 19.8975 11.5727 19.9098 11.58 19.92L11.67 20H11.73L11.7642 19.9823L11.7889 20ZM13.1 4.65L16.6 8.15C16.6212 8.17232 16.6355 8.20028 16.6412 8.23051C16.6469 8.26075 16.6437 8.29199 16.6321 8.32048C16.6205 8.34898 16.6009 8.37352 16.5757 8.39117C16.5505 8.40882 16.5207 8.41883 16.49 8.42H13.06L12.83 8.19V4.76C12.8312 4.72925 12.8412 4.6995 12.8588 4.67429C12.8765 4.64909 12.901 4.62951 12.9295 4.6179C12.958 4.6063 12.9893 4.60315 13.0195 4.60884C13.0497 4.61453 13.0777 4.62882 13.1 4.65ZM11 6.72C11.0027 6.66089 10.9937 6.60183 10.9735 6.54621C10.9534 6.49058 10.9224 6.43948 10.8825 6.39582C10.8425 6.35216 10.7944 6.31681 10.7408 6.29179C10.6871 6.26677 10.6291 6.25257 10.57 6.25H5C4.88239 6.25773 4.77251 6.3113 4.69397 6.39918C4.61543 6.48707 4.57451 6.60226 4.58 6.72C4.57451 6.83774 4.61543 6.95293 4.69397 7.04082C4.77251 7.12871 4.88239 7.18227 5 7.19H10.6C10.714 7.1774 10.8189 7.12173 10.8933 7.03438C10.9676 6.94702 11.0058 6.83457 11 6.72ZM11.1 8.14001H5C4.87535 8.14001 4.7558 8.18953 4.66766 8.27767C4.57952 8.36582 4.53 8.48536 4.53 8.61001C4.53 8.73467 4.57952 8.85421 4.66766 8.94236C4.7558 9.0305 4.87535 9.08001 5 9.08001H11.1C11.2247 9.08001 11.3442 9.0305 11.4323 8.94236C11.5205 8.85421 11.57 8.73467 11.57 8.61001C11.57 8.48536 11.5205 8.36582 11.4323 8.27767C11.3442 8.18953 11.2247 8.14001 11.1 8.14001ZM5 11H15.45C15.5826 11 15.7098 10.9473 15.8036 10.8536C15.8973 10.7598 15.95 10.6326 15.95 10.5C15.95 10.3674 15.8973 10.2402 15.8036 10.1464C15.7098 10.0527 15.5826 10 15.45 10H5C4.86739 10 4.74021 10.0527 4.64645 10.1464C4.55268 10.2402 4.5 10.3674 4.5 10.5C4.5 10.6326 4.55268 10.7598 4.64645 10.8536C4.74021 10.9473 4.86739 11 5 11ZM5 12.86H11.1C11.2211 12.8523 11.3346 12.798 11.4166 12.7085C11.4986 12.6191 11.5428 12.5013 11.54 12.38C11.5427 12.2597 11.4982 12.1431 11.4159 12.0552C11.3337 11.9673 11.2202 11.9152 11.1 11.91H5C4.94089 11.9126 4.88286 11.9268 4.82924 11.9518C4.77562 11.9768 4.72746 12.0122 4.68752 12.0558C4.64758 12.0995 4.61664 12.1506 4.59648 12.2062C4.57631 12.2618 4.56731 12.3209 4.57 12.38C4.56451 12.5004 4.60649 12.6181 4.6869 12.7079C4.76731 12.7976 4.87974 12.8523 5 12.86ZM11.1 16.63H5C4.87535 16.63 4.7558 16.5805 4.66766 16.4923C4.57952 16.4042 4.53 16.2846 4.53 16.16C4.53 16.0353 4.57952 15.9158 4.66766 15.8276C4.7558 15.7395 4.87535 15.69 5 15.69H11.1C11.2247 15.69 11.3442 15.7395 11.4323 15.8276C11.5205 15.9158 11.57 16.0353 11.57 16.16C11.57 16.2846 11.5205 16.4042 11.4323 16.4923C11.3442 16.5805 11.2247 16.63 11.1 16.63ZM18.8503 11.592C18.7991 11.6175 18.7545 11.6544 18.72 11.7L18.26 12.14C18.2501 12.151 18.2447 12.1652 18.2447 12.18C18.2447 12.1947 18.2501 12.209 18.26 12.22L19.37 13.32C19.381 13.3298 19.3952 13.3353 19.41 13.3353C19.4247 13.3353 19.439 13.3298 19.45 13.32L19.86 12.91C19.9057 12.867 19.9421 12.8151 19.967 12.7575C19.9919 12.6998 20.0047 12.6377 20.0047 12.575C20.0047 12.5122 19.9919 12.4501 19.967 12.3925C19.9421 12.3349 19.9057 12.283 19.86 12.24L19.31 11.7C19.2755 11.6544 19.2309 11.6175 19.1797 11.592C19.1285 11.5666 19.0721 11.5533 19.015 11.5533C18.9578 11.5533 18.9014 11.5666 18.8503 11.592Z",
showTrackChanges:"M17.2421 13.6048C17.2631 13.6136 17.2841 13.6226 17.305 13.6317V9.29505H13.2626C13.1897 9.30481 13.1159 9.30481 13.043 9.29505C12.7532 9.21632 12.4953 9.04872 12.3056 8.81577C12.1158 8.58283 12.0037 8.29625 11.985 7.99627V4H4.12976C4.09534 4 4.06234 4.01368 4.038 4.03804C4.01367 4.0624 4 4.09543 4 4.12988V19.8552C4 19.8896 4.01367 19.9227 4.038 19.947C4.06234 19.9714 4.09534 19.9851 4.12976 19.9851H13.4875C13.0501 19.8216 12.6281 19.6155 12.2277 19.3686C11.8529 19.1551 11.4911 18.9196 11.1442 18.6632C11.0697 18.6152 10.9982 18.5628 10.9302 18.5065H4.99812C4.87371 18.5065 4.75438 18.457 4.66641 18.3689C4.57843 18.2809 4.529 18.1614 4.529 18.0369C4.529 17.9124 4.57843 17.7929 4.66641 17.7049C4.75438 17.6168 4.87371 17.5673 4.99812 17.5673H10.4396C10.4472 17.4488 10.4756 17.3324 10.5235 17.2235C10.5939 17.017 10.6761 16.8149 10.7694 16.6182H4.99812C4.87371 16.6182 4.75438 16.5687 4.66641 16.4807C4.57843 16.3926 4.529 16.2732 4.529 16.1487C4.529 16.0241 4.57843 15.9047 4.66641 15.8166C4.75438 15.7286 4.87371 15.6791 4.99812 15.6791H11.0867C11.1576 15.6791 11.2268 15.6952 11.2895 15.7253C11.5204 15.361 11.7938 15.027 12.1033 14.73H4.99812C4.87371 14.73 4.75438 14.6805 4.66641 14.5924C4.57843 14.5044 4.529 14.385 4.529 14.2604C4.529 14.1359 4.57843 14.0164 4.66641 13.9284C4.75438 13.8403 4.87371 13.7909 4.99812 13.7909H13.4434C13.9833 13.525 14.5656 13.3516 15.166 13.2795L15.1923 13.2763H15.2189H15.4925C16.0923 13.2609 16.6886 13.3728 17.2421 13.6048ZM13.0829 4.64939L16.5764 8.14613C16.5975 8.16843 16.6118 8.19636 16.6174 8.22657C16.6231 8.25677 16.62 8.28798 16.6084 8.31645C16.5968 8.34492 16.5773 8.36944 16.5521 8.38707C16.527 8.40471 16.4973 8.41471 16.4666 8.41587H13.043L12.8134 8.18609V4.75929C12.8146 4.72857 12.8246 4.69884 12.8422 4.67366C12.8598 4.64849 12.8843 4.62893 12.9128 4.61733C12.9412 4.60573 12.9724 4.60259 13.0026 4.60827C13.0328 4.61396 13.0607 4.62824 13.0829 4.64939ZM10.9869 6.71746C10.9896 6.65841 10.9806 6.59941 10.9604 6.54383C10.9403 6.48825 10.9094 6.4372 10.8696 6.39358C10.8297 6.34997 10.7816 6.31465 10.7281 6.28965C10.6746 6.26466 10.6167 6.25047 10.5577 6.2479H4.99813C4.88074 6.25562 4.77106 6.30914 4.69267 6.39694C4.61428 6.48475 4.57343 6.59983 4.57891 6.71746C4.57343 6.83509 4.61428 6.95017 4.69267 7.03798C4.77106 7.12579 4.88074 7.1793 4.99813 7.18702H10.5876C10.7014 7.17444 10.8061 7.11882 10.8803 7.03154C10.9545 6.94427 10.9927 6.83192 10.9869 6.71746ZM11.0867 8.13614H4.99812C4.87371 8.13614 4.75438 8.18561 4.66641 8.27367C4.57843 8.36173 4.529 8.48116 4.529 8.6057C4.529 8.73023 4.57843 8.84967 4.66641 8.93773C4.75438 9.02579 4.87371 9.07526 4.99812 9.07526H11.0867C11.2111 9.07526 11.3304 9.02579 11.4184 8.93773C11.5064 8.84967 11.5558 8.73023 11.5558 8.6057C11.5558 8.48116 11.5064 8.36173 11.4184 8.27367C11.3304 8.18561 11.2111 8.13614 11.0867 8.13614ZM4.99812 10.9935H15.4285C15.5609 10.9935 15.6878 10.9408 15.7814 10.8472C15.875 10.7535 15.9276 10.6264 15.9276 10.4939C15.9276 10.3614 15.875 10.2344 15.7814 10.1407C15.6878 10.047 15.5609 9.9944 15.4285 9.9944H4.99812C4.86576 9.9944 4.73883 10.047 4.64523 10.1407C4.55164 10.2344 4.49906 10.3614 4.49906 10.4939C4.49906 10.6264 4.55164 10.7535 4.64523 10.8472C4.73883 10.9408 4.86576 10.9935 4.99812 10.9935ZM4.99812 12.8517H11.0867C11.2076 12.844 11.3208 12.7898 11.4027 12.7004C11.4845 12.611 11.5287 12.4934 11.5259 12.3722C11.5286 12.252 11.4841 12.1355 11.402 12.0477C11.3199 11.9599 11.2067 11.9078 11.0867 11.9026H4.99812C4.93912 11.9052 4.8812 11.9194 4.82769 11.9444C4.77417 11.9694 4.7261 12.0047 4.68623 12.0483C4.64637 12.0919 4.61549 12.143 4.59536 12.1985C4.57523 12.2541 4.56625 12.3131 4.56893 12.3722C4.56345 12.4925 4.60535 12.6101 4.68561 12.6998C4.76587 12.7894 4.87809 12.844 4.99812 12.8517ZM19.97 17.4974C19.5787 16.5636 19.0431 15.6971 18.383 14.9298C18.0152 14.5351 17.5679 14.2233 17.0706 14.0148C16.5732 13.8064 16.0373 13.7062 15.4984 13.7209H15.2189C14.4787 13.8098 13.7684 14.0666 13.1423 14.4717C12.5162 14.8769 11.9906 15.4196 11.6057 16.0587C11.3211 16.4677 11.0959 16.9151 10.937 17.3875C10.9006 17.464 10.8817 17.5476 10.8817 17.6323C10.8817 17.717 10.9006 17.8006 10.937 17.877C11.0642 18.0428 11.2196 18.1849 11.3961 18.2967C11.7346 18.5476 12.0879 18.7778 12.4541 18.986C13.4096 19.5767 14.497 19.92 15.6182 19.9851C16.4392 20.0504 17.2632 19.9005 18.0088 19.5501C18.7544 19.1998 19.3959 18.661 19.8702 17.9869C19.9311 17.923 19.9729 17.8432 19.9905 17.7566C20.0082 17.67 20.0011 17.5801 19.97 17.4974ZM15.9775 19.1758C14.3849 19.068 12.8507 18.5331 11.5358 17.6273C11.5788 17.5678 11.6255 17.5111 11.6756 17.4574C12.3061 16.569 13.1295 15.8359 14.0832 15.3126C13.8003 15.7406 13.6785 16.2566 13.7417 16.7681C13.7676 17.0339 13.8465 17.2918 13.9737 17.5265C14.1009 17.7613 14.2739 17.9681 14.4823 18.1348C14.6907 18.3016 14.9304 18.4248 15.1872 18.4972C15.4441 18.5696 15.7128 18.5897 15.9775 18.5564C16.305 18.4971 16.6137 18.3609 16.8785 18.159C17.1432 17.9572 17.3564 17.6954 17.5005 17.3951C17.6446 17.0949 17.7156 16.7647 17.7077 16.4317C17.6997 16.0987 17.613 15.7723 17.4547 15.4793C17.2614 15.3391 17.0533 15.2235 16.8351 15.1339C17.0715 15.226 17.2966 15.3485 17.5046 15.4993C18.0049 15.8976 18.4424 16.3691 18.8022 16.898L18.8927 17.0137L18.8927 17.0137C19.0823 17.2564 19.2729 17.5004 19.4709 17.7072C18.5404 18.6311 17.288 19.1576 15.9775 19.1758ZM16.3168 15.769C16.2085 15.8106 16.1171 15.8873 16.0574 15.9869C15.9977 16.0865 15.9731 16.2032 15.9875 16.3185C15.9949 16.3856 16.0156 16.4505 16.0483 16.5096C16.081 16.5686 16.1251 16.6206 16.178 16.6624C16.2309 16.7042 16.2916 16.7351 16.3566 16.7532C16.4216 16.7714 16.4895 16.7764 16.5564 16.7681H16.6063C16.5618 16.9495 16.4637 17.1132 16.3248 17.238C16.186 17.3627 16.0127 17.4427 15.8278 17.4674H15.6481C15.4335 17.4396 15.2337 17.3427 15.0789 17.1913C14.924 17.04 14.8226 16.8423 14.7897 16.6282C14.7628 16.3782 14.8311 16.1271 14.981 15.9253C15.1305 15.7238 15.3504 15.5861 15.5968 15.5395C15.3446 15.5862 15.12 15.7284 14.9697 15.9364C14.8191 16.1448 14.7547 16.4034 14.7897 16.6582C14.8226 16.8723 14.924 17.0699 15.0789 17.2213C15.2337 17.3727 15.4335 17.4696 15.6481 17.4974H15.8377C16.0209 17.4708 16.1919 17.39 16.3289 17.2654C16.4658 17.1408 16.5625 16.978 16.6063 16.7981C16.7293 16.7633 16.8359 16.686 16.9072 16.5799C16.9785 16.4737 17.0098 16.3457 16.9956 16.2186C16.9882 16.1515 16.9675 16.0865 16.9348 16.0275C16.9021 15.9685 16.858 15.9165 16.805 15.8747C16.7521 15.8329 16.6914 15.802 16.6264 15.7838C16.5615 15.7657 16.4936 15.7607 16.4266 15.769H16.3168Z",
acceptAllChanges:"M9.36499 16.7348C9.38499 16.7547 9.41212 16.7659 9.44041 16.7659H10.9881C10.9028 16.6008 10.9289 16.3933 11.0663 16.2541L11.7266 15.585H10.1444C10.0549 15.5701 9.97363 15.5238 9.91498 15.4547C9.85639 15.3856 9.82422 15.298 9.82422 15.2074C9.82422 15.1169 9.85639 15.0292 9.91498 14.9601C9.97363 14.891 10.0549 14.8448 10.1444 14.8298H12.4879C12.5584 14.785 12.6407 14.7607 12.7257 14.7607C12.8106 14.7607 12.893 14.785 12.9635 14.8298H16.5295L18.3303 13.0091C18.4135 12.925 18.5271 12.8776 18.6456 12.8777C18.7642 12.8777 18.8777 12.9252 18.9609 13.0094L20 14.0621V8.25532H16.8001C16.7301 8.27288 16.6568 8.27288 16.5868 8.25532C16.3485 8.1935 16.1367 8.0565 15.9829 7.86478C15.8292 7.67306 15.7416 7.43688 15.7335 7.19149V4H9.44041C9.41293 4.0024 9.38718 4.01437 9.36767 4.03383C9.34816 4.05329 9.33615 4.07897 9.33375 4.10638V16.6596C9.33375 16.6878 9.34499 16.7148 9.36499 16.7348ZM10.0744 17.2979H11.4803L12.259 18.0957H5.06727C5.01734 18.0957 4.96838 18.1057 4.9232 18.1246C4.8788 18.1431 4.83798 18.1702 4.80335 18.2048C4.7333 18.2746 4.69398 18.3693 4.69398 18.468C4.69398 18.5668 4.7333 18.6615 4.80335 18.7313C4.87333 18.8011 4.96832 18.8404 5.06727 18.8404H12.9857L13.7947 19.6693L14.0836 19.9574H4.10733C4.09291 19.9591 4.07829 19.9576 4.06457 19.9528C4.05085 19.9481 4.03838 19.9403 4.02812 19.9301C4.01785 19.9198 4.01004 19.9074 4.00529 19.8937C4.00054 19.88 3.99896 19.8654 4.00067 19.8511V7.29787C4.00067 7.26966 4.01191 7.2426 4.03191 7.22265C4.05192 7.2027 4.07905 7.19149 4.10733 7.19149H8.70447V9.05319H5.06727C4.97294 9.05867 4.88453 9.10069 4.8208 9.17019C4.757 9.23973 4.72302 9.33135 4.72594 9.42553C4.72289 9.52082 4.75654 9.61364 4.82002 9.6849C4.88356 9.75613 4.97203 9.80038 5.06727 9.8085H8.70447V10.5638H5.06727C5.01968 10.5652 4.97274 10.5759 4.92932 10.5954C4.88583 10.6148 4.84664 10.6426 4.8139 10.6772C4.78122 10.7118 4.7557 10.7525 4.73877 10.7969C4.72184 10.8413 4.7139 10.8887 4.71527 10.9361C4.7139 10.9837 4.72184 11.031 4.73877 11.0754C4.74424 11.0897 4.75055 11.1037 4.75778 11.1171C4.76162 11.1243 4.76566 11.1313 4.76995 11.1382C4.78265 11.1585 4.79736 11.1776 4.8139 11.1951C4.84664 11.2297 4.88583 11.2575 4.92932 11.2769C4.95491 11.2884 4.98173 11.2968 5.0092 11.3021C5.02834 11.3058 5.04774 11.3079 5.06727 11.3085H8.70447V12.0638H5.06734C4.97782 12.0789 4.89651 12.1251 4.83792 12.1942C4.77926 12.2633 4.7471 12.351 4.7471 12.4415C4.7471 12.5321 4.77926 12.6197 4.83792 12.6888C4.89651 12.758 4.97782 12.8041 5.06734 12.8192H8.70447V13.5745H5.06734C4.97782 13.5895 4.89651 13.6357 4.83792 13.7048C4.81383 13.7332 4.79424 13.7647 4.77946 13.7983C4.7583 13.8465 4.7471 13.8988 4.7471 13.9522C4.7471 14.0427 4.77926 14.1303 4.83792 14.1994C4.89651 14.2686 4.97782 14.3147 5.06734 14.3298H8.70447V15.0744H5.06727C4.97776 15.0895 4.89651 15.1357 4.83785 15.2048C4.77926 15.2739 4.7471 15.3616 4.7471 15.4521C4.7471 15.5043 4.75778 15.5556 4.77809 15.6029C4.793 15.6376 4.81305 15.6701 4.83785 15.6994C4.89651 15.7685 4.97776 15.8147 5.06727 15.8298H8.70447V16.5851H5.06727C4.97776 16.6001 4.89651 16.6463 4.83785 16.7154C4.79489 16.7661 4.76618 16.8267 4.75387 16.8912C4.74938 16.9146 4.7471 16.9386 4.7471 16.9628C4.7471 17.0533 4.77926 17.1409 4.83785 17.21C4.89651 17.2792 4.97776 17.3253 5.06727 17.3404H9.95241C9.99552 17.3331 10.0367 17.3187 10.0744 17.2979ZM20 15.3204L18.5709 16.7659H19.8933C19.9216 16.7659 19.9487 16.7547 19.9687 16.7348C19.9887 16.7148 20 16.6878 20 16.6596V15.3204ZM14.7526 16.6264L13.7248 15.585H15.7825L14.7526 16.6264ZM14.9498 6.08721C14.9465 6.06854 14.9416 6.05023 14.9353 6.03244C14.9202 5.98939 14.897 5.94929 14.8665 5.91442C14.8145 5.85488 14.7444 5.81394 14.6669 5.79787H10.1337C10.0348 5.79787 9.93978 5.83709 9.8698 5.90693C9.79975 5.97676 9.76043 6.07146 9.76043 6.17022C9.76043 6.19463 9.76283 6.21879 9.76752 6.24239C9.77462 6.2782 9.78692 6.31268 9.80398 6.34479C9.82123 6.37716 9.8433 6.40709 9.8698 6.43348C9.93978 6.50332 10.0348 6.54257 10.1337 6.54257H14.6669C14.6811 6.54023 14.6951 6.53702 14.7088 6.53299C14.7206 6.52955 14.7322 6.52549 14.7436 6.52082C14.7624 6.51309 14.7806 6.50371 14.7979 6.4928C14.8378 6.46764 14.8722 6.43468 14.8991 6.39599C14.9259 6.35729 14.9447 6.31359 14.9543 6.26749C14.9554 6.26232 14.9563 6.25716 14.9571 6.25197C14.9579 6.24739 14.9586 6.24281 14.9591 6.23824C14.9612 6.22129 14.962 6.20424 14.9616 6.18723C14.961 6.16727 14.9588 6.14733 14.9549 6.12766C14.9539 6.11406 14.9523 6.10055 14.9498 6.08721ZM15.0189 7.29788H10.1445C10.0549 7.31291 9.97363 7.35911 9.91504 7.42823C9.85639 7.49738 9.82422 7.585 9.82422 7.67555C9.82422 7.76609 9.85639 7.85369 9.91504 7.92284C9.97363 7.99196 10.0549 8.03815 10.1445 8.05319H15.0189C15.0321 8.05241 15.0451 8.05095 15.058 8.04877C15.0745 8.04601 15.0906 8.04212 15.1064 8.03718C15.1669 8.01822 15.2219 7.98361 15.2654 7.93618C15.3291 7.86664 15.3632 7.77502 15.3602 7.68084C15.3606 7.67392 15.3608 7.66701 15.3608 7.66009C15.3609 7.65087 15.3606 7.64165 15.3599 7.63247C15.3592 7.62263 15.358 7.61279 15.3565 7.60302C15.3532 7.58188 15.3479 7.56104 15.3409 7.54072C15.3254 7.49575 15.301 7.45426 15.2693 7.41868C15.2492 7.39621 15.2265 7.37638 15.2017 7.35959C15.1872 7.34979 15.172 7.34102 15.1562 7.33339C15.1132 7.31265 15.0665 7.3006 15.0189 7.29788ZM10.1445 9.56381H18.496C18.5856 9.54877 18.6669 9.50258 18.7255 9.43346C18.7841 9.3643 18.8163 9.27671 18.8163 9.18617C18.8163 9.09562 18.7841 9.008 18.7255 8.93884C18.6669 8.86973 18.5856 8.82353 18.496 8.8085H10.1445C10.0549 8.82353 9.97363 8.86973 9.91504 8.93884C9.85639 9.008 9.82422 9.09562 9.82422 9.18617C9.82422 9.24412 9.83738 9.30087 9.86224 9.35236C9.87624 9.38132 9.89395 9.40859 9.91504 9.43346C9.97363 9.50258 10.0549 9.54877 10.1445 9.56381ZM10.1445 11.0638H15.0189C15.1084 11.0488 15.1897 11.0026 15.2483 10.9335C15.2854 10.8898 15.3118 10.8387 15.3263 10.7842C15.3347 10.7525 15.3391 10.7195 15.3391 10.6861C15.3391 10.5956 15.3069 10.508 15.2483 10.4389C15.1897 10.3697 15.1084 10.3235 15.0189 10.3085H10.1445C10.0549 10.3235 9.97363 10.3697 9.91504 10.4389C9.85639 10.508 9.82422 10.5956 9.82422 10.6861C9.82422 10.7424 9.83666 10.7976 9.8601 10.8478C9.87442 10.8785 9.89284 10.9073 9.91504 10.9335C9.97363 11.0026 10.0549 11.0488 10.1445 11.0638ZM18.496 12.5745H10.1444C10.0549 12.5594 9.97363 12.5132 9.91498 12.4441C9.85639 12.3749 9.82422 12.2873 9.82422 12.1968C9.82422 12.1062 9.85639 12.0186 9.91498 11.9495C9.97363 11.8803 10.0549 11.8342 10.1444 11.8191H18.496C18.5856 11.8342 18.6669 11.8803 18.7255 11.9495C18.7841 12.0186 18.8163 12.1062 18.8163 12.1968C18.8163 12.2873 18.7841 12.3749 18.7255 12.4441C18.6971 12.4776 18.6633 12.5058 18.6259 12.5276C18.5861 12.5507 18.5421 12.5667 18.496 12.5745ZM15.0189 14.0744H10.1444C10.0968 14.0731 10.0499 14.0624 10.0064 14.0429C9.96296 14.0234 9.92376 13.9956 9.89102 13.961C9.85834 13.9265 9.83282 13.8857 9.81589 13.8413C9.79897 13.7969 9.79102 13.7496 9.79239 13.7021C9.79102 13.6546 9.79897 13.6073 9.81589 13.5628C9.83282 13.5184 9.85834 13.4778 9.89102 13.4432C9.92376 13.4086 9.96296 13.3808 10.0064 13.3613C10.0499 13.3419 10.0968 13.3311 10.1444 13.3297H15.0189C15.0661 13.3311 15.1125 13.3419 15.1554 13.3615C15.1983 13.381 15.2368 13.4091 15.2686 13.4438C15.3005 13.4785 15.325 13.5193 15.3407 13.5637C15.3564 13.608 15.363 13.6551 15.3602 13.7021C15.3631 13.7963 15.3291 13.8879 15.2653 13.9574C15.2016 14.027 15.1132 14.0689 15.0189 14.0744ZM16.6188 4.52128L19.4133 7.30852C19.4293 7.32624 19.4401 7.34808 19.4443 7.37157C19.4485 7.39506 19.446 7.41925 19.4371 7.4414C19.4282 7.46356 19.4133 7.48278 19.394 7.4969C19.3747 7.51102 19.3518 7.51947 19.328 7.52128H16.5868L16.4054 7.34043V4.60639C16.4073 4.5826 16.4157 4.55979 16.4299 4.54056C16.444 4.52133 16.4633 4.50644 16.4855 4.49757C16.5077 4.48871 16.532 4.48624 16.5556 4.49043C16.5791 4.49462 16.601 4.50531 16.6188 4.52128ZM18.6454 13.3192L20 14.6915L14.7522 20L14.7416 19.9894L14.1123 19.3617L13.3976 18.6277L11.3817 16.5638L12.7257 15.2021L14.7522 17.2553L18.6454 13.3192Z",
rejectAllChanges:"M9.54637 16.5847H8.96997V15.8295H12.786C12.8024 15.8265 12.8186 15.8223 12.8343 15.817C12.8535 15.8105 12.8719 15.8023 12.8897 15.7926C12.9315 15.7697 12.969 15.738 12.9997 15.6991C13.0268 15.6649 13.0478 15.6261 13.0621 15.5847H13.571V16.7656H9.79386C9.78396 16.7479 9.77269 16.731 9.76011 16.7151C9.70552 16.6459 9.62976 16.5998 9.54637 16.5847ZM13.4717 12.9573V13.3295H9.72523C9.6809 13.3309 9.63716 13.3416 9.59671 13.361C9.57578 13.3711 9.55595 13.3834 9.53745 13.3977C9.5201 13.411 9.50391 13.4262 9.48917 13.4429C9.45872 13.4775 9.43494 13.5182 9.41917 13.5626C9.41778 13.5664 9.41644 13.5703 9.41523 13.5742H8.96997V12.8189H12.786C12.8694 12.8039 12.9452 12.7577 12.9997 12.6886C13.0078 12.6784 13.0153 12.6677 13.0223 12.6568L13.029 12.6458L13.033 12.6389L13.0397 12.6266C13.0452 12.6157 13.0503 12.6046 13.055 12.5931C13.0576 12.5869 13.0599 12.5806 13.0621 12.5742H13.6872C13.6453 12.5965 13.607 12.6269 13.5746 12.6644C13.5059 12.7439 13.469 12.849 13.4717 12.9573ZM9.82598 14.0742H13.4758C13.4809 14.0932 13.4904 14.1108 13.5037 14.1251C13.5242 14.147 13.552 14.1593 13.581 14.1593H13.6008L13.571 14.1912V14.8295H9.72523C9.64183 14.8445 9.56614 14.8907 9.51149 14.9598C9.4845 14.994 9.46351 15.0328 9.4492 15.0741H8.96997V14.3295H9.54637C9.62976 14.3145 9.70552 14.2683 9.76011 14.1992C9.78947 14.162 9.81166 14.1195 9.82598 14.0742ZM18.9075 8.2552V12.5317H17.7846V12.323C17.7978 12.2827 17.8047 12.2399 17.8047 12.1965C17.8047 12.106 17.7747 12.0184 17.7201 11.9493C17.6655 11.8801 17.5897 11.834 17.5063 11.8189H9.72523C9.64183 11.834 9.56614 11.8801 9.51149 11.9493C9.48444 11.9835 9.46351 12.0222 9.4492 12.0636H8.96997V11.3083H9.54637C9.63425 11.3028 9.71662 11.2608 9.776 11.1913C9.80687 11.1551 9.83029 11.113 9.84527 11.0676L9.84654 11.0637H14.2667C14.3501 11.0486 14.4258 11.0024 14.4805 10.9333C14.5231 10.8794 14.5507 10.8142 14.5607 10.7452C14.5636 10.7258 14.565 10.706 14.565 10.686C14.565 10.6658 14.5635 10.6458 14.5606 10.626C14.5572 10.6026 14.5516 10.5796 14.5442 10.5573C14.5299 10.5144 14.5084 10.4741 14.4805 10.4387C14.4258 10.3696 14.3501 10.3234 14.2667 10.3083H9.72529C9.6832 10.3159 9.64299 10.3314 9.60653 10.3538C9.57081 10.3759 9.5386 10.4045 9.51155 10.4387C9.49639 10.4579 9.4831 10.4785 9.47182 10.5002C9.46133 10.5205 9.45259 10.5417 9.44568 10.5636H8.96997V9.80838H9.16873C9.25656 9.80286 9.33899 9.76085 9.39837 9.69131C9.45775 9.62177 9.48947 9.53022 9.48674 9.43601C9.48711 9.42951 9.48735 9.42302 9.48741 9.41653C9.48741 9.41049 9.48729 9.40445 9.48705 9.39848C9.49457 9.41055 9.50269 9.42218 9.51155 9.43334C9.56614 9.50249 9.64189 9.54866 9.72529 9.56372H17.5063C17.5897 9.54866 17.6655 9.50249 17.7201 9.43334C17.7747 9.36419 17.8047 9.2766 17.8047 9.18603C17.8047 9.09552 17.7747 9.00786 17.7201 8.93878C17.6655 8.86963 17.5897 8.82346 17.5063 8.8084H9.72529C9.64189 8.82346 9.56614 8.86963 9.51155 8.93878C9.4569 9.00786 9.42694 9.09552 9.42694 9.18603L9.427 9.19707L9.42754 9.20875C9.41972 9.19661 9.41123 9.18499 9.40201 9.17389C9.38478 9.15311 9.36537 9.1346 9.34427 9.11863C9.33735 9.11344 9.33026 9.1085 9.32298 9.10383C9.31855 9.10097 9.31406 9.09824 9.30951 9.09565L9.30424 9.09266L9.29659 9.08857C9.28792 9.08402 9.27906 9.07993 9.27009 9.07623C9.2616 9.07279 9.25298 9.06974 9.24431 9.06701C9.21974 9.05935 9.19439 9.05461 9.16873 9.05305H8.96997V4.10638C8.97221 4.07897 8.9834 4.05328 9.00157 4.03383C9.01975 4.01437 9.04374 4.0024 9.06935 4H14.9325V7.1914C14.9401 7.43679 15.0216 7.67296 15.1649 7.86468C15.3082 8.0564 15.5055 8.19338 15.7275 8.2552C15.7927 8.27277 15.861 8.27277 15.9262 8.2552H18.9075ZM13.571 17.2975V19.4251L13.5722 19.4615C13.5835 19.6376 13.6323 19.8068 13.7133 19.957H4.10061C4.08718 19.9587 4.07355 19.9571 4.06077 19.9524C4.04799 19.9477 4.03637 19.9399 4.02681 19.9296C4.01724 19.9194 4.00997 19.907 4.00554 19.8933C4.00111 19.8796 3.99964 19.865 4.00124 19.8506V7.29778C4.00124 7.26957 4.01171 7.24251 4.03034 7.22256C4.04898 7.20261 4.07426 7.1914 4.10061 7.1914H8.38368V9.05305H4.99497C4.90708 9.05857 4.82471 9.10052 4.76533 9.17006C4.70589 9.2396 4.67423 9.33121 4.67696 9.42536C4.67411 9.52067 4.70547 9.61346 4.76461 9.68475C4.8238 9.75598 4.90623 9.80026 4.99497 9.80838H8.38368V10.5636H4.99497C4.96682 10.5645 4.93898 10.5692 4.91199 10.5774C4.89647 10.5821 4.88124 10.588 4.86644 10.5952C4.8494 10.6034 4.83308 10.613 4.81762 10.6241C4.79627 10.6393 4.77655 10.657 4.7589 10.6771C4.72846 10.7116 4.70468 10.7523 4.68891 10.7967C4.67314 10.8411 4.66574 10.8885 4.66701 10.9359C4.66641 10.9597 4.66792 10.9834 4.67156 11.0067C4.6752 11.03 4.68102 11.053 4.68891 11.0752C4.70468 11.1196 4.72846 11.1603 4.7589 11.1949C4.7731 11.211 4.78862 11.2256 4.80524 11.2386C4.81452 11.2459 4.82417 11.2527 4.83417 11.259C4.84461 11.2655 4.85534 11.2714 4.86644 11.2767C4.9069 11.2962 4.95063 11.3069 4.99497 11.3083H8.38368V12.0636H4.99503C4.91163 12.0787 4.83587 12.1249 4.78128 12.194C4.7526 12.2303 4.7307 12.2717 4.71639 12.3159C4.70347 12.3559 4.69667 12.3983 4.69667 12.4413C4.69667 12.5318 4.72664 12.6194 4.78128 12.6886C4.809 12.7237 4.84218 12.7529 4.87906 12.7751C4.89416 12.7842 4.90993 12.7921 4.92619 12.7988C4.94833 12.8079 4.97137 12.8147 4.99503 12.8189H8.38368V13.5742H4.99503C4.95275 13.5819 4.91242 13.5975 4.87584 13.62C4.8403 13.642 4.80822 13.6705 4.78128 13.7046C4.72664 13.7737 4.69667 13.8613 4.69667 13.9519C4.69667 14.0424 4.72664 14.13 4.78128 14.1992C4.83587 14.2683 4.91163 14.3145 4.99503 14.3295H8.38368V15.0741H4.99497C4.94644 15.0829 4.90047 15.1022 4.85977 15.1304C4.83878 15.145 4.81919 15.162 4.80136 15.1811C4.79439 15.1885 4.78765 15.1964 4.78122 15.2045C4.77188 15.2163 4.76327 15.2287 4.75539 15.2416C4.74441 15.2594 4.73495 15.2781 4.727 15.2975C4.71924 15.3163 4.71293 15.3358 4.70808 15.3558C4.70407 15.3723 4.7011 15.389 4.69922 15.4061C4.69752 15.4212 4.69667 15.4364 4.69667 15.4518C4.69667 15.5423 4.72664 15.6299 4.78122 15.6991C4.83587 15.7682 4.91157 15.8144 4.99497 15.8295H8.38368V16.5847H4.99497C4.91157 16.5998 4.83587 16.6459 4.78122 16.7151C4.72664 16.7842 4.69667 16.8718 4.69667 16.9624C4.69667 17.0529 4.72664 17.1405 4.78122 17.2097C4.83587 17.2788 4.91157 17.325 4.99497 17.34H9.54637C9.58655 17.3328 9.62496 17.3183 9.66008 17.2975H13.571ZM15.7573 4.52124L18.3609 7.30839C18.3758 7.32612 18.3858 7.34796 18.3897 7.37145C18.3937 7.39493 18.3914 7.41913 18.3831 7.44128C18.3748 7.46343 18.3609 7.48266 18.3429 7.49678C18.325 7.51089 18.3036 7.51934 18.2814 7.52115H15.7275L15.5585 7.34031V4.60634C15.5602 4.58255 15.5681 4.55975 15.5813 4.54051C15.5945 4.52128 15.6125 4.50639 15.6332 4.49753C15.6539 4.48867 15.6765 4.48619 15.6984 4.49038C15.7203 4.49457 15.7407 4.50526 15.7573 4.52124ZM14.1248 5.91437C14.1732 5.97391 14.2021 6.04884 14.2071 6.1276C14.2157 6.17377 14.2155 6.22129 14.2065 6.26739C14.2045 6.27778 14.2021 6.28804 14.1992 6.29817L14.1944 6.31388C14.1847 6.34291 14.1715 6.3705 14.1551 6.39595C14.13 6.43465 14.098 6.46757 14.0608 6.49276C14.0354 6.5099 14.008 6.52328 13.9794 6.53244C13.9661 6.53672 13.9525 6.5401 13.9387 6.5425H9.71529C9.62309 6.5425 9.5346 6.50328 9.4694 6.43342C9.40413 6.36362 9.3675 6.26889 9.3675 6.17013C9.3675 6.07144 9.40413 5.97671 9.4694 5.90691C9.5346 5.83704 9.62309 5.79783 9.71529 5.79783H13.9387C13.9718 5.80516 14.0034 5.81769 14.0326 5.83484C14.0672 5.85522 14.0984 5.88204 14.1248 5.91437ZM14.2667 7.29776H9.72529C9.69606 7.30302 9.66773 7.31211 9.64092 7.3247C9.62612 7.33171 9.61175 7.33977 9.59798 7.34879C9.56565 7.36996 9.53642 7.39664 9.51155 7.42813C9.4569 7.49722 9.42694 7.58487 9.42694 7.67538C9.42694 7.70155 9.42942 7.72752 9.43434 7.75285C9.44635 7.81505 9.47273 7.87355 9.51155 7.9227C9.55292 7.9751 9.60647 8.01432 9.66628 8.03678C9.67762 8.04107 9.6892 8.04477 9.70097 8.04775C9.70898 8.04983 9.71711 8.05158 9.72529 8.05308H14.2667C14.3546 8.04756 14.437 8.00555 14.4964 7.93601C14.5558 7.86647 14.5875 7.77492 14.5847 7.68071C14.5874 7.63318 14.5813 7.58559 14.5667 7.54059C14.5522 7.4956 14.5296 7.45417 14.5 7.41859C14.4704 7.38301 14.4346 7.35398 14.3946 7.33327C14.3546 7.31256 14.3111 7.30048 14.2667 7.29776ZM4.99497 18.84H12.786C12.8783 18.84 12.9667 18.8008 13.032 18.731C13.0972 18.6611 13.1338 18.5664 13.1338 18.4677C13.1338 18.3689 13.0972 18.2742 13.032 18.2044C12.9667 18.1346 12.8783 18.0954 12.786 18.0954H4.99497C4.90277 18.0954 4.81428 18.1346 4.74908 18.2044C4.68381 18.2742 4.64718 18.3689 4.64718 18.4677C4.64718 18.5664 4.68381 18.6611 4.74908 18.731C4.81428 18.8008 4.90277 18.84 4.99497 18.84ZM17.5858 12.7444H19.5733H19.623C19.7249 12.7499 19.821 12.7971 19.8913 12.8764C19.9616 12.9556 20.0007 13.0607 20.0006 13.17V13.8295C20.0007 13.8458 19.9976 13.862 19.9914 13.8769C19.9853 13.8918 19.9764 13.9052 19.9652 13.9163C19.9539 13.9273 19.9407 13.9357 19.9262 13.9409C19.9118 13.9461 19.8965 13.948 19.8814 13.9465H13.7797C13.7507 13.9465 13.7229 13.9342 13.7024 13.9123C13.6819 13.8903 13.6704 13.8606 13.6704 13.8295V13.17C13.6677 13.0617 13.7046 12.9566 13.7733 12.8771C13.842 12.7976 13.9371 12.75 14.0381 12.7444H16.0256V12.5104C16.0352 12.439 16.0687 12.3737 16.1199 12.3268C16.1711 12.2798 16.2365 12.2544 16.3039 12.2551H17.2976C17.3667 12.2517 17.4345 12.276 17.4878 12.3232C17.541 12.3704 17.576 12.4371 17.5858 12.5104V12.7444ZM14.0679 19.4251V14.1912H19.5037V19.4251C19.4935 19.585 19.4256 19.7344 19.3143 19.8416C19.203 19.9488 19.0571 20.0055 18.9075 19.9996H14.6642C14.5146 20.0055 14.3687 19.9488 14.2574 19.8416C14.1461 19.7344 14.0781 19.585 14.0679 19.4251ZM15.5983 15.1593H15.2505C15.0969 15.1593 14.9723 15.2926 14.9723 15.4572V18.7336C14.9723 18.8981 15.0969 19.0315 15.2505 19.0315H15.5983C15.752 19.0315 15.8766 18.8981 15.8766 18.7336V15.4572C15.8766 15.2926 15.752 15.1593 15.5983 15.1593ZM16.9598 15.1593H16.612C16.4583 15.1593 16.3337 15.2926 16.3337 15.4572V18.7336C16.3337 18.8981 16.4583 19.0315 16.612 19.0315H16.9598C17.1135 19.0315 17.238 18.8981 17.238 18.7336V15.4572C17.238 15.2926 17.1135 15.1593 16.9598 15.1593ZM17.9635 15.1593H18.3113C18.465 15.1593 18.5895 15.2926 18.5895 15.4572V18.7336C18.5895 18.8981 18.465 19.0315 18.3113 19.0315H17.9635C17.8098 19.0315 17.6852 18.8981 17.6852 18.7336V15.4572C17.6852 15.2926 17.8098 15.1593 17.9635 15.1593Z",
acceptSingleChange:"M17.2 20H15.6628L17.33 18.3091V19.87C17.33 19.8871 17.3266 19.904 17.3201 19.9197C17.3136 19.9355 17.304 19.9499 17.2919 19.9619C17.2799 19.974 17.2655 19.9836 17.2497 19.9901C17.234 19.9966 17.2171 20 17.2 20ZM4.13 20H14.4978L14.1823 19.6791L13.5135 18.9904L13.5123 18.9891L13.0529 18.52H5C4.87537 18.52 4.75586 18.4705 4.66766 18.3823C4.57953 18.2942 4.53003 18.1747 4.53003 18.05C4.53003 17.9253 4.57953 17.8058 4.66766 17.7177C4.75586 17.6295 4.87537 17.58 5 17.58H12.1323L11.6235 17.0604L11.6231 16.48L12.8831 15.19L13.4765 15.1896L15.0807 16.8276L17.33 14.5413V9.3H13.28C13.207 9.30976 13.133 9.30976 13.06 9.3C12.7697 9.22119 12.5113 9.05343 12.3212 8.82027C12.1311 8.58711 12.0187 8.30026 12 8V4H4.13C4.09552 4 4.06246 4.0137 4.03808 4.03808C4.0137 4.06246 4 4.09552 4 4.13V19.87C4 19.9045 4.0137 19.9375 4.03808 19.9619C4.06246 19.9863 4.09552 20 4.13 20ZM13.1 4.65L16.6 8.15C16.6212 8.17232 16.6355 8.20028 16.6412 8.23051C16.6469 8.26075 16.6437 8.29199 16.6321 8.32048C16.6205 8.34898 16.6009 8.37352 16.5757 8.39117C16.5505 8.40882 16.5208 8.41883 16.49 8.42H13.06L12.83 8.19V4.76C12.8312 4.72925 12.8412 4.6995 12.8588 4.67429C12.8765 4.64909 12.901 4.62951 12.9295 4.6179C12.958 4.6063 12.9893 4.60315 13.0195 4.60884C13.0497 4.61453 13.0777 4.62882 13.1 4.65ZM11 6.72C11.0027 6.66089 10.9937 6.60184 10.9735 6.5462C10.9534 6.49057 10.9224 6.43948 10.8825 6.39581C10.8425 6.35217 10.7944 6.3168 10.7408 6.29178C10.6871 6.26678 10.6292 6.25256 10.57 6.25H5C4.88239 6.25772 4.77252 6.31131 4.69397 6.39917C4.61542 6.48706 4.57452 6.60226 4.58002 6.72C4.57452 6.83774 4.61542 6.95294 4.69397 7.04083C4.77252 7.12869 4.88239 7.18228 5 7.19H10.6C10.7141 7.1774 10.8189 7.12173 10.8933 7.03436C10.9677 6.94702 11.0058 6.83456 11 6.72ZM11.1 8.14001H5C4.87537 8.14001 4.75586 8.18954 4.66766 8.27768C4.57953 8.36581 4.53003 8.48535 4.53003 8.61002C4.53003 8.73468 4.57953 8.85422 4.66766 8.94235C4.71558 8.99023 4.77277 9.02673 4.83496 9.05008C4.86932 9.06296 4.90521 9.07184 4.94189 9.07642C4.96106 9.0788 4.98047 9.08002 5 9.08002H11.1C11.2247 9.08002 11.3442 9.03049 11.4324 8.94235C11.5205 8.85422 11.57 8.73468 11.57 8.61002C11.57 8.48535 11.5205 8.36581 11.4324 8.27768C11.3442 8.18954 11.2247 8.14001 11.1 8.14001ZM5 11H15.45C15.5826 11 15.7098 10.9473 15.8035 10.8535C15.8973 10.7598 15.95 10.6326 15.95 10.5C15.95 10.3674 15.8973 10.2402 15.8035 10.1465C15.7098 10.0527 15.5826 10 15.45 10H5C4.86737 10 4.74023 10.0527 4.64642 10.1465C4.55267 10.2402 4.5 10.3674 4.5 10.5C4.5 10.6326 4.55267 10.7598 4.64642 10.8535C4.74023 10.9473 4.86737 11 5 11ZM5 12.86H11.1C11.2211 12.8523 11.3346 12.798 11.4166 12.7085C11.4986 12.6191 11.5428 12.5013 11.54 12.38C11.5427 12.2597 11.4982 12.1431 11.416 12.0552C11.3337 11.9673 11.2203 11.9152 11.1 11.91H5C4.94086 11.9126 4.88287 11.9268 4.82922 11.9518C4.77563 11.9768 4.72748 12.0122 4.6875 12.0558C4.65833 12.0878 4.63391 12.1237 4.61505 12.1624C4.60809 12.1767 4.60193 12.1913 4.5965 12.2062C4.58264 12.2443 4.5741 12.2841 4.57092 12.3243C4.56946 12.3428 4.56915 12.3614 4.57001 12.38C4.56451 12.5004 4.60651 12.6181 4.68689 12.7079C4.76733 12.7976 4.87976 12.8523 5 12.86ZM15.45 14.74H5C4.87537 14.74 4.75586 14.6905 4.66766 14.6023C4.57953 14.5142 4.53003 14.3947 4.53003 14.27C4.53003 14.1453 4.57953 14.0258 4.66766 13.9377C4.75586 13.8495 4.87537 13.8 5 13.8H15.45C15.5747 13.8 15.6942 13.8495 15.7823 13.9377C15.8705 14.0258 15.92 14.1453 15.92 14.27C15.92 14.3947 15.8705 14.5142 15.7823 14.6023C15.6942 14.6905 15.5747 14.74 15.45 14.74ZM11.1 16.63H5C4.87537 16.63 4.75586 16.5805 4.66766 16.4923C4.57953 16.4042 4.53003 16.2846 4.53003 16.16C4.53003 16.0353 4.57953 15.9158 4.66766 15.8276C4.75586 15.7395 4.87537 15.69 5 15.69H11.1C11.2247 15.69 11.3442 15.7395 11.4324 15.8276C11.5205 15.9158 11.57 16.0353 11.57 16.16C11.57 16.2846 11.5205 16.4042 11.4324 16.4923C11.3442 16.5805 11.2247 16.63 11.1 16.63ZM18.73 13.71L20 15.01L15.08 20L15.07 19.99L14.48 19.39L13.81 18.7L11.92 16.77L13.18 15.48L15.08 17.42L18.73 13.71Z",
rejectSingleChange:"M17.0495 11.5C17.1461 11.5 17.241 11.5173 17.33 11.5501V9.3H13.28C13.207 9.30976 13.133 9.30976 13.06 9.3C12.7697 9.22119 12.5113 9.05343 12.3212 8.82027C12.1311 8.58711 12.0187 8.30026 12 8V4H4.13C4.09552 4 4.06246 4.0137 4.03808 4.03808C4.0137 4.06246 4 4.09552 4 4.13V19.87C4 19.9045 4.0137 19.9375 4.03808 19.9619C4.06246 19.9863 4.09552 20 4.13 20H13.2305C13.1075 19.8287 13.0338 19.6249 13.0205 19.4112L13.0195 19.3956V18.52H5C4.87537 18.52 4.75586 18.4705 4.66772 18.3823C4.57959 18.2942 4.53003 18.1747 4.53003 18.05C4.53003 18.0119 4.53467 17.9742 4.54358 17.9378C4.56396 17.8552 4.60657 17.7788 4.66772 17.7177C4.75586 17.6295 4.87537 17.58 5 17.58H13.0195V14.74H5C4.87537 14.74 4.75586 14.6905 4.66772 14.6023C4.57959 14.5142 4.53003 14.3947 4.53003 14.27C4.53003 14.1453 4.57959 14.0258 4.66772 13.9377C4.75586 13.8495 4.87537 13.8 5 13.8H12.8393C12.6229 13.6377 12.4998 13.3897 12.4998 13.1032C12.4997 12.8414 12.6008 12.5847 12.7513 12.3911C12.9 12.1998 13.1561 12 13.4994 12L15.2519 12C15.2928 11.8972 15.3589 11.7915 15.4649 11.6992C15.6135 11.5698 15.8041 11.499 16.0011 11.5H17.0495ZM13.1 4.65L16.6 8.15C16.6211 8.17232 16.6354 8.20028 16.6411 8.23051C16.6468 8.26075 16.6437 8.29199 16.6321 8.32048C16.6204 8.34898 16.6009 8.37352 16.5757 8.39117C16.5505 8.40882 16.5207 8.41883 16.49 8.42H13.06L12.83 8.19V4.76C12.8311 4.72925 12.8411 4.6995 12.8588 4.67429C12.8764 4.64909 12.901 4.62951 12.9295 4.6179C12.958 4.6063 12.9892 4.60315 13.0194 4.60884C13.0497 4.61453 13.0776 4.62882 13.1 4.65ZM11 6.72C11.0027 6.66089 10.9937 6.60184 10.9735 6.5462C10.9716 6.5408 10.9695 6.53543 10.9673 6.53012C10.9626 6.51852 10.9575 6.50717 10.9518 6.49603C10.9406 6.47391 10.9275 6.45273 10.9127 6.43274C10.9033 6.41992 10.8932 6.40759 10.8824 6.39581C10.8425 6.35217 10.7943 6.3168 10.7407 6.29178C10.6871 6.26678 10.629 6.25256 10.5699 6.25H5C4.88232 6.25772 4.77246 6.31131 4.69397 6.39917C4.61536 6.48706 4.57446 6.60226 4.57996 6.72C4.57715 6.7811 4.58679 6.84152 4.60767 6.8978C4.61523 6.91803 4.62415 6.93771 4.63452 6.9567C4.65088 6.98669 4.67078 7.01495 4.69397 7.04083C4.77246 7.12869 4.88232 7.18228 5 7.19H10.6C10.714 7.1774 10.8188 7.12173 10.8932 7.03436C10.922 7.00049 10.9454 6.96283 10.9629 6.92273C10.9725 6.9006 10.9805 6.87775 10.9865 6.8544C10.9933 6.82791 10.9977 6.80075 10.9995 6.77325C11.0001 6.76453 11.0004 6.75574 11.0005 6.74695C11.0006 6.73798 11.0005 6.729 11 6.72ZM11.1 8.14001H5C4.97534 8.14001 4.95081 8.14194 4.92676 8.14575C4.89587 8.15063 4.8656 8.15857 4.83643 8.1694C4.77368 8.19272 4.71606 8.2294 4.66772 8.27768C4.57959 8.36581 4.53003 8.48535 4.53003 8.61002C4.53003 8.73468 4.57959 8.85422 4.66772 8.94235C4.75586 9.03049 4.87537 9.08002 5 9.08002H11.1C11.2247 9.08002 11.3442 9.03049 11.4324 8.94235C11.4617 8.91306 11.4867 8.88028 11.5071 8.845C11.5349 8.79691 11.554 8.74414 11.5634 8.68915C11.5677 8.66318 11.5701 8.63672 11.5701 8.61002C11.5701 8.48535 11.5205 8.36581 11.4324 8.27768C11.3929 8.23831 11.3474 8.20663 11.2979 8.18365C11.2365 8.15518 11.1689 8.14001 11.1 8.14001ZM5 11H15.45C15.5826 11 15.7098 10.9473 15.8036 10.8535C15.8973 10.7598 15.95 10.6326 15.95 10.5C15.95 10.3674 15.8973 10.2402 15.8036 10.1465C15.7098 10.0527 15.5826 10 15.45 10H5C4.86743 10 4.74023 10.0527 4.64648 10.1465C4.55273 10.2402 4.5 10.3674 4.5 10.5C4.5 10.6326 4.55273 10.7598 4.64648 10.8535C4.74023 10.9473 4.86743 11 5 11ZM5 12.86H11.1C11.2211 12.8523 11.3346 12.798 11.4166 12.7085C11.4987 12.6191 11.5428 12.5013 11.54 12.38C11.5427 12.2597 11.4982 12.1431 11.4159 12.0552C11.3336 11.9673 11.2202 11.9152 11.1 11.91H5C4.94092 11.9126 4.88281 11.9268 4.82922 11.9518C4.77563 11.9768 4.72742 12.0122 4.6875 12.0558C4.64758 12.0995 4.6167 12.1506 4.59644 12.2062C4.58899 12.2266 4.58313 12.2475 4.57874 12.2687C4.57129 12.3052 4.56824 12.3426 4.56995 12.38C4.56445 12.5004 4.60645 12.6181 4.68689 12.7079C4.76733 12.7976 4.87976 12.8523 5 12.86ZM11.1 16.63H5C4.87537 16.63 4.75586 16.5805 4.66772 16.4923C4.57959 16.4042 4.53003 16.2846 4.53003 16.16C4.53003 16.0353 4.57959 15.9158 4.66772 15.8276C4.75586 15.7395 4.87537 15.69 5 15.69H11.1C11.2247 15.69 11.3442 15.7395 11.4324 15.8276C11.5205 15.9158 11.5701 16.0353 11.5701 16.16C11.5701 16.2846 11.5205 16.4042 11.4324 16.4923C11.3442 16.5805 11.2247 16.63 11.1 16.63ZM19.59 12.53H17.36V12.3C17.3574 12.2195 17.3236 12.1432 17.2657 12.0872C17.2078 12.0313 17.1305 12 17.05 12H16C15.9242 11.9994 15.8509 12.0265 15.7938 12.0762C15.7367 12.126 15.6997 12.1949 15.69 12.27V12.5H13.44C13.3768 12.4994 13.3142 12.5125 13.2565 12.5382C13.1988 12.564 13.1473 12.6019 13.1055 12.6493C13.0638 12.6968 13.0327 12.7526 13.0145 12.8132C12.9963 12.8737 12.9913 12.9374 13 13V13.67C13 13.6871 13.0033 13.704 13.0099 13.7198C13.0164 13.7355 13.026 13.7499 13.038 13.7619C13.0501 13.774 13.0644 13.7836 13.0802 13.7901C13.096 13.7966 13.1129 13.8 13.13 13.8H19.84C19.8611 13.8054 19.8834 13.8054 19.9045 13.8C19.9257 13.7946 19.9452 13.7839 19.9611 13.7689C19.9771 13.754 19.989 13.7352 19.9958 13.7144C20.0026 13.6937 20.004 13.6715 20 13.65V13C20.0028 12.8866 19.9617 12.7765 19.8853 12.6927C19.809 12.6088 19.7031 12.5577 19.59 12.55V12.53ZM13.52 14V19.38C13.5303 19.5454 13.6054 19.7 13.7289 19.8105C13.8525 19.9209 14.0145 19.9782 14.18 19.97H18.84C19.0055 19.9782 19.1676 19.9209 19.2911 19.8105C19.4146 19.7 19.4897 19.5454 19.5 19.38V14H13.52ZM15.52 18.67C15.52 18.7522 15.4874 18.8311 15.4292 18.8892C15.3711 18.9473 15.2922 18.98 15.21 18.98H14.83C14.7478 18.98 14.669 18.9473 14.6108 18.8892C14.5527 18.8311 14.52 18.7522 14.52 18.67V15.33C14.52 15.2893 14.528 15.249 14.5436 15.2114C14.5592 15.1738 14.582 15.1396 14.6108 15.1108C14.6396 15.082 14.6738 15.0592 14.7114 15.0436C14.749 15.028 14.7893 15.02 14.83 15.02H15.21C15.2507 15.02 15.291 15.028 15.3287 15.0436C15.3663 15.0592 15.4004 15.082 15.4292 15.1108C15.458 15.1396 15.4808 15.1738 15.4964 15.2114C15.512 15.249 15.52 15.2893 15.52 15.33V18.67ZM17.01 18.67C17.01 18.7522 16.9774 18.8311 16.9192 18.8892C16.8611 18.9473 16.7822 18.98 16.7 18.98H16.32C16.2798 18.98 16.2399 18.9719 16.2029 18.9562C16.1658 18.9405 16.1323 18.9176 16.1043 18.8886C16.0763 18.8597 16.0544 18.8254 16.0399 18.7879C16.0254 18.7503 16.0187 18.7102 16.02 18.67V15.33C16.0187 15.2898 16.0254 15.2497 16.0399 15.2121C16.0544 15.1746 16.0763 15.1403 16.1043 15.1114C16.1323 15.0824 16.1658 15.0595 16.2029 15.0438C16.2399 15.0281 16.2798 15.02 16.32 15.02H16.7C16.7407 15.02 16.781 15.028 16.8187 15.0436C16.8563 15.0592 16.8904 15.082 16.9192 15.1108C16.948 15.1396 16.9708 15.1738 16.9864 15.2114C17.002 15.249 17.01 15.2893 17.01 15.33V18.67ZM18.51 18.67C18.51 18.7107 18.502 18.751 18.4864 18.7886C18.4708 18.8262 18.448 18.8604 18.4192 18.8892C18.3904 18.918 18.3563 18.9408 18.3187 18.9564C18.281 18.972 18.2407 18.98 18.2 18.98H17.82C17.7378 18.98 17.659 18.9473 17.6008 18.8892C17.5427 18.8311 17.51 18.7522 17.51 18.67V15.33C17.51 15.2893 17.518 15.249 17.5336 15.2114C17.5492 15.1738 17.572 15.1396 17.6008 15.1108C17.6296 15.082 17.6638 15.0592 17.7014 15.0436C17.739 15.028 17.7793 15.02 17.82 15.02H18.2C18.2407 15.02 18.281 15.028 18.3187 15.0436C18.3563 15.0592 18.3904 15.082 18.4192 15.1108C18.448 15.1396 18.4708 15.1738 18.4864 15.2114C18.502 15.249 18.51 15.2893 18.51 15.33V18.67Z"};
c.FILEICONS={docIcon:{extension:".doc",path:'<g id="surface1">\n      <path style=" stroke:none;fill-rule:evenodd;fill:rgb(99.607843%,99.607843%,99.607843%);fill-opacity:1;" d="M 10.578125 25 L 39.421875 25 C 41.53125 25 43.527344 25.492188 45.3125 26.367188 L 45.3125 15.367188 C 45.3125 13.90625 44.976562 13.097656 43.984375 12.109375 C 42.996094 11.121094 35.105469 3.226562 34.503906 2.628906 C 33.90625 2.027344 33.070312 1.5625 31.617188 1.5625 L 6.5625 1.5625 C 5.527344 1.5625 4.6875 2.402344 4.6875 3.4375 L 4.6875 26.367188 C 6.476562 25.492188 8.472656 25 10.578125 25 "/>\n      <path style=" stroke:none;fill-rule:evenodd;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 34.375 4.710938 L 42.164062 12.5 L 34.515625 12.5 C 34.464844 12.46875 34.414062 12.425781 34.375 12.390625 Z M 6.25 25.722656 L 6.25 3.4375 C 6.25 3.265625 6.390625 3.125 6.5625 3.125 L 31.25 3.125 L 31.25 12.5 C 31.25 13.980469 32.496094 15.210938 33.742188 15.539062 C 33.902344 15.59375 34.074219 15.625 34.257812 15.625 L 43.75 15.625 L 43.75 25.722656 C 44.859375 26.105469 45.910156 26.625 46.875 27.269531 L 46.875 15.363281 C 46.875 13.511719 46.375 12.289062 45.089844 11.003906 L 35.609375 1.523438 C 34.582031 0.496094 33.273438 0 31.617188 0 L 6.5625 0 C 4.667969 0 3.125 1.542969 3.125 3.4375 L 3.125 27.269531 C 4.089844 26.625 5.140625 26.105469 6.25 25.722656 Z M 6.25 25.722656 "/>\n      <path style=" stroke:none;fill-rule:evenodd;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 8.621094 28.125 C 3.859375 28.125 0 31.984375 0 36.742188 L 0 41.378906 C 0 46.140625 3.859375 50 8.621094 50 L 41.378906 50 C 46.140625 50 50 46.140625 50 41.382812 L 50 36.746094 C 50 31.984375 46.140625 28.125 41.382812 28.125 Z M 8.621094 28.125 "/>\n      <path style=" stroke:none;fill-rule:nonzero;fill:rgb(100%,100%,100%);fill-opacity:1;" d="M 9.617188 46.875 C 13.234375 46.875 16.160156 43.929688 16.160156 40.292969 C 16.160156 36.695312 13.234375 33.75 9.617188 33.75 L 7.402344 33.75 C 6.820312 33.75 6.371094 34.199219 6.371094 34.78125 L 6.371094 45.84375 C 6.371094 46.335938 6.714844 46.757812 7.191406 46.855469 L 7.402344 46.875 Z M 9.617188 44.792969 L 8.453125 44.792969 L 8.453125 35.832031 L 9.617188 35.832031 C 12.089844 35.832031 14.078125 37.835938 14.078125 40.292969 C 14.078125 42.789062 12.089844 44.773438 9.617188 44.792969 Z M 24.816406 46.875 C 26.539062 46.875 28.191406 46.085938 29.296875 44.867188 C 30.460938 43.648438 31.191406 41.980469 31.191406 40.125 C 31.191406 38.269531 30.460938 36.617188 29.296875 35.382812 C 28.191406 34.144531 26.539062 33.375 24.816406 33.375 C 23.015625 33.375 21.367188 34.144531 20.222656 35.382812 C 19.058594 36.617188 18.367188 38.269531 18.367188 40.125 C 18.367188 41.980469 19.058594 43.648438 20.222656 44.867188 C 21.367188 46.085938 23.015625 46.875 24.816406 46.875 Z M 24.816406 44.738281 C 23.617188 44.738281 22.566406 44.230469 21.777344 43.386719 C 20.992188 42.582031 20.503906 41.398438 20.503906 40.125 C 20.503906 38.851562 20.992188 37.667969 21.777344 36.84375 C 22.566406 36 23.617188 35.511719 24.816406 35.511719 C 25.941406 35.511719 26.992188 36 27.777344 36.84375 C 28.546875 37.667969 29.054688 38.851562 29.054688 40.125 C 29.054688 41.398438 28.546875 42.582031 27.777344 43.386719 C 26.992188 44.230469 25.941406 44.738281 24.816406 44.738281 Z M 39.996094 46.875 C 41.648438 46.875 43.148438 46.332031 44.328125 45.414062 C 44.777344 45.054688 44.851562 44.382812 44.515625 43.914062 C 44.140625 43.460938 43.445312 43.386719 43.015625 43.707031 C 42.171875 44.382812 41.160156 44.738281 39.996094 44.738281 C 38.703125 44.738281 37.503906 44.210938 36.621094 43.386719 C 35.777344 42.5625 35.253906 41.398438 35.253906 40.125 C 35.253906 38.851562 35.777344 37.726562 36.621094 36.863281 C 37.503906 36.039062 38.703125 35.511719 39.996094 35.511719 C 41.160156 35.511719 42.191406 35.867188 43.015625 36.542969 C 43.445312 36.882812 44.140625 36.804688 44.515625 36.335938 C 44.851562 35.867188 44.777344 35.210938 44.328125 34.835938 C 43.148438 33.917969 41.648438 33.375 39.996094 33.375 C 36.246094 33.394531 33.132812 36.414062 33.117188 40.125 C 33.132812 43.855469 36.246094 46.875 39.996094 46.875 Z M 39.996094 46.875 "/>\n      </g>'},
gifIcon:{extension:".gif",path:'<g id="surface1">\n      <path style=" stroke:none;fill-rule:evenodd;fill:rgb(99.607843%,99.607843%,99.607843%);fill-opacity:1;" d="M 10.578125 25 L 39.421875 25 C 41.53125 25 43.527344 25.492188 45.3125 26.367188 L 45.3125 15.367188 C 45.3125 13.90625 44.976562 13.097656 43.984375 12.109375 C 42.996094 11.121094 35.105469 3.226562 34.503906 2.628906 C 33.90625 2.027344 33.070312 1.5625 31.617188 1.5625 L 6.5625 1.5625 C 5.527344 1.5625 4.6875 2.402344 4.6875 3.4375 L 4.6875 26.367188 C 6.476562 25.492188 8.472656 25 10.578125 25 "/>\n      <path style=" stroke:none;fill-rule:evenodd;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 34.375 4.710938 L 42.164062 12.5 L 34.515625 12.5 C 34.464844 12.46875 34.414062 12.425781 34.375 12.390625 Z M 6.25 25.722656 L 6.25 3.4375 C 6.25 3.265625 6.390625 3.125 6.5625 3.125 L 31.25 3.125 L 31.25 12.5 C 31.25 13.980469 32.496094 15.210938 33.742188 15.539062 C 33.902344 15.59375 34.074219 15.625 34.257812 15.625 L 43.75 15.625 L 43.75 25.722656 C 44.859375 26.105469 45.910156 26.625 46.875 27.269531 L 46.875 15.363281 C 46.875 13.511719 46.375 12.289062 45.089844 11.003906 L 35.609375 1.523438 C 34.582031 0.496094 33.273438 0 31.617188 0 L 6.5625 0 C 4.667969 0 3.125 1.542969 3.125 3.4375 L 3.125 27.269531 C 4.089844 26.625 5.140625 26.105469 6.25 25.722656 Z M 6.25 25.722656 "/>\n      <path style=" stroke:none;fill-rule:evenodd;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 8.621094 28.125 C 3.859375 28.125 0 31.984375 0 36.742188 L 0 41.378906 C 0 46.140625 3.859375 50 8.621094 50 L 41.378906 50 C 46.140625 50 50 46.140625 50 41.382812 L 50 36.746094 C 50 31.984375 46.140625 28.125 41.382812 28.125 Z M 8.621094 28.125 "/>\n      <path style=" stroke:none;fill-rule:nonzero;fill:rgb(100%,100%,100%);fill-opacity:1;" d="M 17.394531 46.875 C 18.988281 46.875 20.46875 46.332031 21.648438 45.414062 C 21.835938 45.28125 21.949219 45.132812 22.003906 44.960938 L 22.003906 44.945312 C 22.023438 44.90625 22.023438 44.886719 22.042969 44.851562 C 22.0625 44.738281 22.097656 44.664062 22.097656 44.53125 L 22.097656 40.386719 C 22.097656 39.789062 21.613281 39.335938 21.011719 39.335938 L 17.28125 39.335938 C 16.699219 39.335938 16.210938 39.789062 16.210938 40.386719 C 16.210938 40.96875 16.699219 41.457031 17.28125 41.457031 L 19.960938 41.457031 L 19.960938 44.023438 C 19.210938 44.457031 18.332031 44.738281 17.394531 44.738281 C 16.042969 44.738281 14.863281 44.230469 14.019531 43.367188 C 13.136719 42.523438 12.613281 41.382812 12.613281 40.144531 C 12.613281 38.867188 13.136719 37.726562 14.019531 36.882812 C 14.863281 36.019531 16.042969 35.511719 17.394531 35.511719 C 18.519531 35.511719 19.550781 35.90625 20.355469 36.523438 C 20.824219 36.898438 21.519531 36.804688 21.875 36.355469 C 22.230469 35.886719 22.15625 35.195312 21.667969 34.835938 C 20.503906 33.917969 18.988281 33.375 17.394531 33.375 C 13.585938 33.375 10.472656 36.375 10.472656 40.144531 C 10.472656 43.894531 13.585938 46.875 17.394531 46.875 Z M 26.945312 46.875 C 27.507812 46.875 27.996094 46.425781 27.996094 45.84375 L 27.996094 34.78125 C 27.996094 34.199219 27.507812 33.75 26.945312 33.75 C 26.363281 33.75 25.914062 34.199219 25.914062 34.78125 L 25.914062 45.84375 C 25.914062 46.425781 26.363281 46.875 26.945312 46.875 Z M 33.066406 46.875 C 33.648438 46.875 34.117188 46.40625 34.117188 45.84375 L 34.117188 41.34375 L 38.488281 41.34375 C 39.050781 41.34375 39.519531 40.875 39.519531 40.292969 C 39.519531 39.75 39.050781 39.261719 38.488281 39.261719 L 34.117188 39.261719 L 34.117188 35.832031 L 39.199219 35.832031 C 39.742188 35.832031 40.230469 35.363281 40.230469 34.78125 C 40.230469 34.21875 39.742188 33.75 39.199219 33.75 L 33.066406 33.75 C 32.488281 33.75 32.035156 34.21875 32.035156 34.78125 L 32.035156 45.84375 C 32.035156 46.40625 32.488281 46.875 33.066406 46.875 Z M 33.066406 46.875 "/>\n      </g>'},
jpegIcon:{extension:".jpeg",path:'<g id="surface1">\n      <path style=" stroke:none;fill-rule:evenodd;fill:rgb(99.607843%,99.607843%,99.607843%);fill-opacity:1;" d="M 10.578125 25 L 39.421875 25 C 41.53125 25 43.527344 25.492188 45.3125 26.367188 L 45.3125 15.367188 C 45.3125 13.90625 44.976562 13.097656 43.984375 12.109375 C 42.996094 11.121094 35.105469 3.226562 34.503906 2.628906 C 33.90625 2.027344 33.070312 1.5625 31.617188 1.5625 L 6.5625 1.5625 C 5.527344 1.5625 4.6875 2.402344 4.6875 3.4375 L 4.6875 26.367188 C 6.476562 25.492188 8.472656 25 10.578125 25 "/>\n      <path style=" stroke:none;fill-rule:evenodd;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 34.375 4.710938 L 42.164062 12.5 L 34.515625 12.5 C 34.464844 12.46875 34.414062 12.425781 34.375 12.390625 Z M 6.25 25.722656 L 6.25 3.4375 C 6.25 3.265625 6.390625 3.125 6.5625 3.125 L 31.25 3.125 L 31.25 12.5 C 31.25 13.980469 32.496094 15.210938 33.742188 15.539062 C 33.902344 15.59375 34.074219 15.625 34.257812 15.625 L 43.75 15.625 L 43.75 25.722656 C 44.859375 26.105469 45.910156 26.625 46.875 27.269531 L 46.875 15.363281 C 46.875 13.511719 46.375 12.289062 45.089844 11.003906 L 35.609375 1.523438 C 34.582031 0.496094 33.273438 0 31.617188 0 L 6.5625 0 C 4.667969 0 3.125 1.542969 3.125 3.4375 L 3.125 27.269531 C 4.089844 26.625 5.140625 26.105469 6.25 25.722656 Z M 6.25 25.722656 "/>\n      <path style=" stroke:none;fill-rule:evenodd;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 8.621094 28.125 C 3.859375 28.125 0 31.984375 0 36.742188 L 0 41.378906 C 0 46.140625 3.859375 50 8.621094 50 L 41.378906 50 C 46.140625 50 50 46.140625 50 41.382812 L 50 36.746094 C 50 31.984375 46.140625 28.125 41.382812 28.125 Z M 8.621094 28.125 "/>\n      <path style=" stroke:none;fill-rule:nonzero;fill:rgb(100%,100%,100%);fill-opacity:1;" d="M 9 43.75 C 11.140625 43.75 12.890625 42.015625 12.890625 39.875 L 12.890625 33.671875 C 12.890625 33.1875 12.5 32.8125 12.03125 32.8125 C 11.546875 32.8125 11.15625 33.1875 11.15625 33.671875 L 11.15625 39.875 C 11.15625 41.046875 10.1875 42.015625 9 42.015625 C 8.046875 42.015625 7.234375 41.390625 6.953125 40.53125 C 6.8125 40.078125 6.328125 39.828125 5.859375 39.984375 C 5.421875 40.109375 5.15625 40.59375 5.3125 41.0625 C 5.8125 42.625 7.28125 43.75 9 43.75 Z M 15.640625 43.75 C 16.125 43.75 16.515625 43.359375 16.515625 42.890625 L 16.515625 39.5 L 18.4375 39.5 C 20.296875 39.5 21.796875 38 21.796875 36.171875 C 21.796875 34.3125 20.296875 32.8125 18.4375 32.8125 L 15.640625 32.8125 C 15.171875 32.8125 14.78125 33.1875 14.78125 33.671875 L 14.78125 42.890625 C 14.78125 43.359375 15.171875 43.75 15.640625 43.75 Z M 18.4375 37.765625 L 16.515625 37.765625 L 16.515625 34.546875 L 18.4375 34.546875 C 19.34375 34.546875 20.046875 35.265625 20.0625 36.171875 C 20.046875 37.046875 19.34375 37.765625 18.4375 37.765625 Z M 29.234375 43.75 C 29.6875 43.75 30.09375 43.359375 30.09375 42.890625 C 30.09375 42.40625 29.6875 42.015625 29.234375 42.015625 L 25 42.015625 L 25 39.140625 L 28.640625 39.140625 C 29.109375 39.140625 29.5 38.75 29.5 38.265625 C 29.5 37.8125 29.109375 37.40625 28.640625 37.40625 L 25 37.40625 L 25 34.546875 L 29.234375 34.546875 C 29.6875 34.546875 30.09375 34.15625 30.09375 33.671875 C 30.09375 33.1875 29.6875 32.8125 29.234375 32.8125 L 24.125 32.8125 C 23.640625 32.8125 23.265625 33.1875 23.265625 33.671875 L 23.265625 42.890625 C 23.265625 43.359375 23.640625 43.75 24.125 43.75 C 24.125 43.75 24.140625 43.734375 24.140625 43.734375 C 24.140625 43.734375 24.140625 43.75 24.171875 43.75 Z M 37.1875 43.75 C 38.515625 43.75 39.75 43.296875 40.734375 42.53125 C 40.890625 42.421875 40.984375 42.296875 41.03125 42.15625 L 41.03125 42.140625 C 41.046875 42.109375 41.046875 42.09375 41.0625 42.0625 C 41.078125 41.96875 41.109375 41.90625 41.109375 41.796875 L 41.109375 38.34375 C 41.109375 37.914062 40.8125 37.578125 40.410156 37.492188 L 40.203125 37.46875 L 37.09375 37.46875 C 36.609375 37.46875 36.203125 37.84375 36.203125 38.34375 C 36.203125 38.828125 36.609375 39.234375 37.09375 39.234375 L 39.328125 39.234375 L 39.328125 41.375 C 38.703125 41.734375 37.96875 41.96875 37.1875 41.96875 C 36.0625 41.96875 35.078125 41.546875 34.375 40.828125 C 33.640625 40.125 33.203125 39.171875 33.203125 38.140625 C 33.203125 37.078125 33.640625 36.125 34.375 35.421875 C 35.078125 34.703125 36.0625 34.28125 37.1875 34.28125 C 38.125 34.28125 38.984375 34.609375 39.65625 35.125 C 40.046875 35.4375 40.625 35.359375 40.921875 34.984375 C 41.21875 34.59375 41.15625 34.015625 40.75 33.71875 C 39.78125 32.953125 38.515625 32.5 37.1875 32.5 C 34.015625 32.5 31.421875 35 31.421875 38.140625 C 31.421875 41.265625 34.015625 43.75 37.1875 43.75 Z M 37.1875 43.75 "/>\n      </g>'},
logIcon:{extension:".log",path:'<g id="surface1">\n      <path style=" stroke:none;fill-rule:evenodd;fill:rgb(99.607843%,99.607843%,99.607843%);fill-opacity:1;" d="M 10.578125 25 L 39.421875 25 C 41.53125 25 43.527344 25.492188 45.3125 26.367188 L 45.3125 15.367188 C 45.3125 13.90625 44.976562 13.097656 43.984375 12.109375 C 42.996094 11.121094 35.105469 3.226562 34.503906 2.628906 C 33.90625 2.027344 33.070312 1.5625 31.617188 1.5625 L 6.5625 1.5625 C 5.527344 1.5625 4.6875 2.402344 4.6875 3.4375 L 4.6875 26.367188 C 6.476562 25.492188 8.472656 25 10.578125 25 "/>\n      <path style=" stroke:none;fill-rule:evenodd;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 34.375 4.710938 L 42.164062 12.5 L 34.515625 12.5 C 34.464844 12.46875 34.414062 12.425781 34.375 12.390625 Z M 6.25 25.722656 L 6.25 3.4375 C 6.25 3.265625 6.390625 3.125 6.5625 3.125 L 31.25 3.125 L 31.25 12.5 C 31.25 13.980469 32.496094 15.210938 33.742188 15.539062 C 33.902344 15.59375 34.074219 15.625 34.257812 15.625 L 43.75 15.625 L 43.75 25.722656 C 44.859375 26.105469 45.910156 26.625 46.875 27.269531 L 46.875 15.363281 C 46.875 13.511719 46.375 12.289062 45.089844 11.003906 L 35.609375 1.523438 C 34.582031 0.496094 33.273438 0 31.617188 0 L 6.5625 0 C 4.667969 0 3.125 1.542969 3.125 3.4375 L 3.125 27.269531 C 4.089844 26.625 5.140625 26.105469 6.25 25.722656 Z M 6.25 25.722656 "/>\n      <path style=" stroke:none;fill-rule:evenodd;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 8.621094 28.125 C 3.859375 28.125 0 31.984375 0 36.742188 L 0 41.378906 C 0 46.140625 3.859375 50 8.621094 50 L 41.378906 50 C 46.140625 50 50 46.140625 50 41.382812 L 50 36.746094 C 50 31.984375 46.140625 28.125 41.382812 28.125 Z M 8.621094 28.125 "/>\n      <path style=" stroke:none;fill-rule:nonzero;fill:rgb(100%,100%,100%);fill-opacity:1;" d="M 13.542969 46.875 C 14.085938 46.875 14.574219 46.40625 14.574219 45.84375 C 14.574219 45.261719 14.085938 44.792969 13.542969 44.792969 L 8.460938 44.792969 L 8.460938 34.78125 C 8.460938 34.21875 7.992188 33.75 7.410156 33.75 C 6.828125 33.75 6.378906 34.21875 6.378906 34.78125 L 6.378906 45.84375 C 6.378906 46.40625 6.828125 46.875 7.410156 46.875 Z M 21.742188 46.875 C 23.46875 46.875 25.117188 46.085938 26.222656 44.867188 C 27.386719 43.648438 28.117188 41.980469 28.117188 40.125 C 28.117188 38.269531 27.386719 36.617188 26.222656 35.382812 C 25.117188 34.144531 23.46875 33.375 21.742188 33.375 C 19.941406 33.375 18.292969 34.144531 17.148438 35.382812 C 15.984375 36.617188 15.292969 38.269531 15.292969 40.125 C 15.292969 41.980469 15.984375 43.648438 17.148438 44.867188 C 18.292969 46.085938 19.941406 46.875 21.742188 46.875 Z M 21.742188 44.738281 C 20.542969 44.738281 19.492188 44.230469 18.703125 43.386719 C 17.917969 42.582031 17.429688 41.398438 17.429688 40.125 C 17.429688 38.851562 17.917969 37.667969 18.703125 36.84375 C 19.492188 36 20.542969 35.511719 21.742188 35.511719 C 22.867188 35.511719 23.917969 36 24.703125 36.84375 C 25.472656 37.667969 25.980469 38.851562 25.980469 40.125 C 25.980469 41.398438 25.472656 42.582031 24.703125 43.386719 C 23.917969 44.230469 22.867188 44.738281 21.742188 44.738281 Z M 37.300781 46.875 C 38.894531 46.875 40.375 46.332031 41.558594 45.414062 C 41.746094 45.28125 41.855469 45.132812 41.914062 44.960938 L 41.914062 44.945312 L 41.949219 44.851562 C 41.96875 44.738281 42.007812 44.664062 42.007812 44.53125 L 42.007812 40.386719 C 42.007812 39.789062 41.519531 39.335938 40.917969 39.335938 L 37.1875 39.335938 C 36.605469 39.335938 36.121094 39.789062 36.121094 40.386719 C 36.121094 40.96875 36.605469 41.457031 37.1875 41.457031 L 39.871094 41.457031 L 39.871094 44.023438 C 39.121094 44.457031 38.238281 44.738281 37.300781 44.738281 C 35.949219 44.738281 34.769531 44.230469 33.925781 43.367188 C 33.042969 42.523438 32.519531 41.382812 32.519531 40.144531 C 32.519531 38.867188 33.042969 37.726562 33.925781 36.882812 C 34.769531 36.019531 35.949219 35.511719 37.300781 35.511719 C 38.425781 35.511719 39.457031 35.90625 40.261719 36.523438 C 40.730469 36.898438 41.425781 36.804688 41.78125 36.355469 C 42.136719 35.886719 42.0625 35.195312 41.574219 34.835938 C 40.414062 33.917969 38.894531 33.375 37.300781 33.375 C 33.496094 33.375 30.382812 36.375 30.382812 40.144531 C 30.382812 43.894531 33.496094 46.875 37.300781 46.875 Z M 37.300781 46.875 "/>\n      </g>'},
movIcon:{extension:".mov",path:'<g id="surface1">\n      <path style=" stroke:none;fill-rule:evenodd;fill:rgb(99.607843%,99.607843%,99.607843%);fill-opacity:1;" d="M 10.578125 25 L 39.421875 25 C 41.53125 25 43.527344 25.492188 45.3125 26.367188 L 45.3125 15.367188 C 45.3125 13.90625 44.976562 13.097656 43.984375 12.109375 C 42.996094 11.121094 35.105469 3.226562 34.503906 2.628906 C 33.90625 2.027344 33.070312 1.5625 31.617188 1.5625 L 6.5625 1.5625 C 5.527344 1.5625 4.6875 2.402344 4.6875 3.4375 L 4.6875 26.367188 C 6.476562 25.492188 8.472656 25 10.578125 25 "/>\n      <path style=" stroke:none;fill-rule:evenodd;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 34.375 4.710938 L 42.164062 12.5 L 34.515625 12.5 C 34.464844 12.46875 34.414062 12.425781 34.375 12.390625 Z M 6.25 25.722656 L 6.25 3.4375 C 6.25 3.265625 6.390625 3.125 6.5625 3.125 L 31.25 3.125 L 31.25 12.5 C 31.25 13.980469 32.496094 15.210938 33.742188 15.539062 C 33.902344 15.59375 34.074219 15.625 34.257812 15.625 L 43.75 15.625 L 43.75 25.722656 C 44.859375 26.105469 45.910156 26.625 46.875 27.269531 L 46.875 15.363281 C 46.875 13.511719 46.375 12.289062 45.089844 11.003906 L 35.609375 1.523438 C 34.582031 0.496094 33.273438 0 31.617188 0 L 6.5625 0 C 4.667969 0 3.125 1.542969 3.125 3.4375 L 3.125 27.269531 C 4.089844 26.625 5.140625 26.105469 6.25 25.722656 Z M 6.25 25.722656 "/>\n      <path style=" stroke:none;fill-rule:evenodd;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 8.621094 28.125 C 3.859375 28.125 0 31.984375 0 36.742188 L 0 41.378906 C 0 46.140625 3.859375 50 8.621094 50 L 41.378906 50 C 46.140625 50 50 46.140625 50 41.382812 L 50 36.746094 C 50 31.984375 46.140625 28.125 41.382812 28.125 Z M 8.621094 28.125 "/>\n      <path style=" stroke:none;fill-rule:nonzero;fill:rgb(100%,100%,100%);fill-opacity:1;" d="M 15.472656 46.875 C 16.035156 46.875 16.523438 46.40625 16.523438 45.84375 L 16.523438 34.78125 C 16.523438 34.289062 16.152344 33.882812 15.679688 33.777344 L 15.472656 33.75 L 15.453125 33.75 C 15.117188 33.75 14.816406 33.898438 14.609375 34.179688 L 10.878906 39.355469 L 7.148438 34.179688 C 6.960938 33.898438 6.625 33.75 6.324219 33.75 L 6.265625 33.75 C 5.703125 33.75 5.234375 34.21875 5.234375 34.78125 L 5.234375 45.84375 C 5.234375 46.40625 5.703125 46.875 6.265625 46.875 C 6.847656 46.875 7.316406 46.40625 7.316406 45.84375 L 7.316406 37.949219 L 10 41.699219 C 10.203125 41.980469 10.523438 42.132812 10.859375 42.132812 L 10.898438 42.132812 C 11.234375 42.132812 11.535156 41.980469 11.742188 41.699219 L 14.441406 37.949219 L 14.441406 45.84375 C 14.441406 46.40625 14.890625 46.875 15.472656 46.875 Z M 25.460938 46.875 C 27.1875 46.875 28.835938 46.085938 29.941406 44.867188 C 31.105469 43.648438 31.835938 41.980469 31.835938 40.125 C 31.835938 38.269531 31.105469 36.617188 29.941406 35.382812 C 28.835938 34.144531 27.1875 33.375 25.460938 33.375 C 23.660156 33.375 22.011719 34.144531 20.867188 35.382812 C 19.703125 36.617188 19.011719 38.269531 19.011719 40.125 C 19.011719 41.980469 19.703125 43.648438 20.867188 44.867188 C 22.011719 46.085938 23.660156 46.875 25.460938 46.875 Z M 25.460938 44.738281 C 24.261719 44.738281 23.210938 44.230469 22.421875 43.386719 C 21.636719 42.582031 21.148438 41.398438 21.148438 40.125 C 21.148438 38.851562 21.636719 37.667969 22.421875 36.84375 C 23.210938 36 24.261719 35.511719 25.460938 35.511719 C 26.585938 35.511719 27.636719 36 28.421875 36.84375 C 29.191406 37.667969 29.699219 38.851562 29.699219 40.125 C 29.699219 41.398438 29.191406 42.582031 28.421875 43.386719 C 27.636719 44.230469 26.585938 44.738281 25.460938 44.738281 Z M 38.683594 46.855469 L 38.71875 46.855469 C 38.777344 46.835938 38.8125 46.820312 38.871094 46.820312 C 38.886719 46.800781 38.886719 46.800781 38.90625 46.800781 C 38.964844 46.78125 39.019531 46.726562 39.058594 46.707031 L 39.09375 46.6875 L 39.207031 46.59375 C 39.226562 46.574219 39.226562 46.574219 39.246094 46.539062 L 39.339844 46.425781 C 39.355469 46.425781 39.355469 46.425781 39.355469 46.40625 C 39.394531 46.367188 39.414062 46.292969 39.433594 46.257812 L 44.0625 35.304688 C 44.269531 34.800781 44.027344 34.179688 43.5 33.976562 C 42.996094 33.75 42.375 33.992188 42.152344 34.519531 L 38.496094 43.199219 L 34.839844 34.519531 C 34.613281 33.992188 34.011719 33.75 33.507812 33.976562 C 32.964844 34.179688 32.71875 34.800781 32.945312 35.304688 L 37.539062 46.257812 C 37.574219 46.292969 37.613281 46.367188 37.632812 46.40625 C 37.632812 46.425781 37.652344 46.425781 37.652344 46.425781 C 37.667969 46.460938 37.707031 46.5 37.746094 46.539062 C 37.746094 46.574219 37.761719 46.574219 37.761719 46.59375 C 37.820312 46.632812 37.855469 46.648438 37.894531 46.6875 L 37.914062 46.6875 C 37.96875 46.726562 38.042969 46.78125 38.082031 46.800781 L 38.101562 46.800781 C 38.101562 46.800781 38.121094 46.800781 38.121094 46.820312 C 38.15625 46.820312 38.230469 46.835938 38.269531 46.855469 L 38.308594 46.855469 L 38.402344 46.871094 L 38.496094 46.875 C 38.550781 46.875 38.605469 46.875 38.683594 46.855469 Z M 38.683594 46.855469 "/>\n      </g>'},
ogvIcon:{extension:".ogv",path:'<g id="surface1">\n      <path style=" stroke:none;fill-rule:evenodd;fill:rgb(99.607843%,99.607843%,99.607843%);fill-opacity:1;" d="M 10.578125 25 L 39.421875 25 C 41.53125 25 43.527344 25.492188 45.3125 26.367188 L 45.3125 15.367188 C 45.3125 13.90625 44.976562 13.097656 43.984375 12.109375 C 42.996094 11.121094 35.105469 3.226562 34.503906 2.628906 C 33.90625 2.027344 33.070312 1.5625 31.617188 1.5625 L 6.5625 1.5625 C 5.527344 1.5625 4.6875 2.402344 4.6875 3.4375 L 4.6875 26.367188 C 6.476562 25.492188 8.472656 25 10.578125 25 "/>\n      <path style=" stroke:none;fill-rule:evenodd;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 34.375 4.710938 L 42.164062 12.5 L 34.515625 12.5 C 34.464844 12.46875 34.414062 12.425781 34.375 12.390625 Z M 6.25 25.722656 L 6.25 3.4375 C 6.25 3.265625 6.390625 3.125 6.5625 3.125 L 31.25 3.125 L 31.25 12.5 C 31.25 13.980469 32.496094 15.210938 33.742188 15.539062 C 33.902344 15.59375 34.074219 15.625 34.257812 15.625 L 43.75 15.625 L 43.75 25.722656 C 44.859375 26.105469 45.910156 26.625 46.875 27.269531 L 46.875 15.363281 C 46.875 13.511719 46.375 12.289062 45.089844 11.003906 L 35.609375 1.523438 C 34.582031 0.496094 33.273438 0 31.617188 0 L 6.5625 0 C 4.667969 0 3.125 1.542969 3.125 3.4375 L 3.125 27.269531 C 4.089844 26.625 5.140625 26.105469 6.25 25.722656 Z M 6.25 25.722656 "/>\n      <path style=" stroke:none;fill-rule:evenodd;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 8.621094 28.125 C 3.859375 28.125 0 31.984375 0 36.742188 L 0 41.378906 C 0 46.140625 3.859375 50 8.621094 50 L 41.378906 50 C 46.140625 50 50 46.140625 50 41.382812 L 50 36.746094 C 50 31.984375 46.140625 28.125 41.382812 28.125 Z M 8.621094 28.125 "/>\n      <path style=" stroke:none;fill-rule:nonzero;fill:rgb(100%,100%,100%);fill-opacity:1;" d="M 11.511719 46.875 C 13.238281 46.875 14.886719 46.085938 15.996094 44.867188 C 17.15625 43.648438 17.886719 41.980469 17.886719 40.125 C 17.886719 38.269531 17.15625 36.617188 15.996094 35.382812 C 14.886719 34.144531 13.238281 33.375 11.511719 33.375 C 9.714844 33.375 8.0625 34.144531 6.917969 35.382812 C 5.757812 36.617188 5.0625 38.269531 5.0625 40.125 C 5.0625 41.980469 5.757812 43.648438 6.917969 44.867188 C 8.0625 46.085938 9.714844 46.875 11.511719 46.875 Z M 11.511719 44.738281 C 10.3125 44.738281 9.261719 44.230469 8.476562 43.386719 C 7.6875 42.582031 7.199219 41.398438 7.199219 40.125 C 7.199219 38.851562 7.6875 37.667969 8.476562 36.84375 C 9.261719 36 10.3125 35.511719 11.511719 35.511719 C 12.636719 35.511719 13.6875 36 14.476562 36.84375 C 15.246094 37.667969 15.75 38.851562 15.75 40.125 C 15.75 41.398438 15.246094 42.582031 14.476562 43.386719 C 13.6875 44.230469 12.636719 44.738281 11.511719 44.738281 Z M 27.25 46.875 C 28.84375 46.875 30.324219 46.332031 31.507812 45.414062 C 31.695312 45.28125 31.804688 45.132812 31.863281 44.960938 L 31.863281 44.945312 C 31.882812 44.90625 31.882812 44.886719 31.898438 44.851562 C 31.917969 44.738281 31.957031 44.664062 31.957031 44.53125 L 31.957031 40.386719 C 31.957031 39.789062 31.46875 39.335938 30.867188 39.335938 L 27.136719 39.335938 C 26.554688 39.335938 26.070312 39.789062 26.070312 40.386719 C 26.070312 40.96875 26.554688 41.457031 27.136719 41.457031 L 29.820312 41.457031 L 29.820312 44.023438 C 29.070312 44.457031 28.1875 44.738281 27.25 44.738281 C 25.898438 44.738281 24.71875 44.230469 23.875 43.367188 C 22.992188 42.523438 22.46875 41.382812 22.46875 40.144531 C 22.46875 38.867188 22.992188 37.726562 23.875 36.882812 C 24.71875 36.019531 25.898438 35.511719 27.25 35.511719 C 28.375 35.511719 29.40625 35.90625 30.210938 36.523438 C 30.679688 36.898438 31.375 36.804688 31.730469 36.355469 C 32.085938 35.886719 32.011719 35.195312 31.523438 34.835938 C 30.363281 33.917969 28.84375 33.375 27.25 33.375 C 23.445312 33.375 20.332031 36.375 20.332031 40.144531 C 20.332031 43.894531 23.445312 46.875 27.25 46.875 Z M 40.191406 46.855469 L 40.230469 46.855469 C 40.285156 46.835938 40.324219 46.820312 40.378906 46.820312 C 40.398438 46.800781 40.398438 46.800781 40.417969 46.800781 C 40.472656 46.78125 40.53125 46.726562 40.566406 46.707031 C 40.605469 46.6875 40.605469 46.6875 40.605469 46.6875 L 40.71875 46.59375 C 40.738281 46.574219 40.738281 46.574219 40.753906 46.539062 L 40.847656 46.425781 C 40.867188 46.425781 40.867188 46.425781 40.867188 46.40625 C 40.90625 46.367188 40.925781 46.292969 40.941406 46.257812 L 45.574219 35.304688 C 45.78125 34.800781 45.535156 34.179688 45.011719 33.976562 C 44.503906 33.75 43.886719 33.992188 43.660156 34.519531 L 40.003906 43.199219 L 36.347656 34.519531 C 36.125 33.992188 35.523438 33.75 35.019531 33.976562 C 34.472656 34.179688 34.230469 34.800781 34.457031 35.304688 L 39.050781 46.257812 C 39.085938 46.292969 39.125 46.367188 39.144531 46.40625 C 39.144531 46.425781 39.160156 46.425781 39.160156 46.425781 C 39.179688 46.460938 39.21875 46.5 39.253906 46.539062 C 39.253906 46.574219 39.273438 46.574219 39.273438 46.59375 C 39.332031 46.632812 39.367188 46.648438 39.40625 46.6875 L 39.425781 46.6875 C 39.480469 46.726562 39.554688 46.78125 39.59375 46.800781 L 39.613281 46.800781 C 39.613281 46.800781 39.628906 46.800781 39.628906 46.820312 C 39.667969 46.820312 39.742188 46.835938 39.78125 46.855469 L 39.816406 46.855469 L 39.910156 46.871094 L 40.003906 46.875 C 40.0625 46.875 40.117188 46.875 40.191406 46.855469 Z M 40.191406 46.855469 "/>\n      </g>'},
pngIcon:{extension:".png",path:'<g id="surface1">\n      <path style=" stroke:none;fill-rule:evenodd;fill:rgb(99.607843%,99.607843%,99.607843%);fill-opacity:1;" d="M 10.578125 25 L 39.421875 25 C 41.53125 25 43.527344 25.492188 45.3125 26.367188 L 45.3125 15.367188 C 45.3125 13.90625 44.976562 13.097656 43.984375 12.109375 C 42.996094 11.121094 35.105469 3.226562 34.503906 2.628906 C 33.90625 2.027344 33.070312 1.5625 31.617188 1.5625 L 6.5625 1.5625 C 5.527344 1.5625 4.6875 2.402344 4.6875 3.4375 L 4.6875 26.367188 C 6.476562 25.492188 8.472656 25 10.578125 25 "/>\n      <path style=" stroke:none;fill-rule:evenodd;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 34.375 4.710938 L 42.164062 12.5 L 34.515625 12.5 C 34.464844 12.46875 34.414062 12.425781 34.375 12.390625 Z M 6.25 25.722656 L 6.25 3.4375 C 6.25 3.265625 6.390625 3.125 6.5625 3.125 L 31.25 3.125 L 31.25 12.5 C 31.25 13.980469 32.496094 15.210938 33.742188 15.539062 C 33.902344 15.59375 34.074219 15.625 34.257812 15.625 L 43.75 15.625 L 43.75 25.722656 C 44.859375 26.105469 45.910156 26.625 46.875 27.269531 L 46.875 15.363281 C 46.875 13.511719 46.375 12.289062 45.089844 11.003906 L 35.609375 1.523438 C 34.582031 0.496094 33.273438 0 31.617188 0 L 6.5625 0 C 4.667969 0 3.125 1.542969 3.125 3.4375 L 3.125 27.269531 C 4.089844 26.625 5.140625 26.105469 6.25 25.722656 Z M 6.25 25.722656 "/>\n      <path style=" stroke:none;fill-rule:evenodd;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 8.621094 28.125 C 3.859375 28.125 0 31.984375 0 36.742188 L 0 41.378906 C 0 46.140625 3.859375 50 8.621094 50 L 41.378906 50 C 46.140625 50 50 46.140625 50 41.382812 L 50 36.746094 C 50 31.984375 46.140625 28.125 41.382812 28.125 Z M 8.621094 28.125 "/>\n      <path style=" stroke:none;fill-rule:nonzero;fill:rgb(100%,100%,100%);fill-opacity:1;" d="M 7.523438 46.875 C 8.105469 46.875 8.574219 46.40625 8.574219 45.84375 L 8.574219 41.773438 L 10.878906 41.773438 C 13.109375 41.773438 14.910156 39.976562 14.910156 37.78125 C 14.910156 35.550781 13.109375 33.75 10.878906 33.75 L 7.523438 33.75 C 6.960938 33.75 6.492188 34.199219 6.492188 34.78125 L 6.492188 45.84375 C 6.492188 46.40625 6.960938 46.875 7.523438 46.875 Z M 10.878906 39.695312 L 8.574219 39.695312 L 8.574219 35.832031 L 10.878906 35.832031 C 11.964844 35.832031 12.808594 36.695312 12.828125 37.78125 C 12.808594 38.832031 11.964844 39.695312 10.878906 39.695312 Z M 26.75 46.875 C 27.3125 46.875 27.78125 46.40625 27.78125 45.84375 L 27.78125 34.949219 C 27.78125 34.40625 27.3125 33.9375 26.75 33.9375 C 26.1875 33.9375 25.738281 34.40625 25.738281 34.949219 L 25.738281 42.675781 L 19.679688 34.292969 C 19.363281 33.84375 18.722656 33.75 18.253906 34.070312 C 17.972656 34.273438 17.824219 34.613281 17.84375 34.929688 L 17.84375 45.84375 C 17.84375 46.40625 18.292969 46.875 18.875 46.875 C 19.417969 46.875 19.886719 46.40625 19.886719 45.84375 L 19.886719 38.0625 L 25.886719 46.386719 C 25.90625 46.425781 25.941406 46.460938 25.980469 46.5 C 26.167969 46.726562 26.449219 46.875 26.75 46.875 Z M 38.082031 46.875 C 39.675781 46.875 41.15625 46.332031 42.339844 45.414062 C 42.527344 45.28125 42.636719 45.132812 42.695312 44.960938 L 42.695312 44.945312 C 42.714844 44.90625 42.714844 44.886719 42.730469 44.851562 C 42.75 44.738281 42.789062 44.664062 42.789062 44.53125 L 42.789062 40.386719 C 42.789062 39.789062 42.300781 39.335938 41.699219 39.335938 L 37.96875 39.335938 C 37.386719 39.335938 36.902344 39.789062 36.902344 40.386719 C 36.902344 40.96875 37.386719 41.457031 37.96875 41.457031 L 40.652344 41.457031 L 40.652344 44.023438 C 39.902344 44.457031 39.019531 44.738281 38.082031 44.738281 C 36.730469 44.738281 35.550781 44.230469 34.707031 43.367188 C 33.824219 42.523438 33.300781 41.382812 33.300781 40.144531 C 33.300781 38.867188 33.824219 37.726562 34.707031 36.882812 C 35.550781 36.019531 36.730469 35.511719 38.082031 35.511719 C 39.207031 35.511719 40.238281 35.90625 41.042969 36.523438 C 41.511719 36.898438 42.207031 36.804688 42.5625 36.355469 C 42.917969 35.886719 42.84375 35.195312 42.355469 34.835938 C 41.195312 33.917969 39.675781 33.375 38.082031 33.375 C 34.277344 33.375 31.164062 36.375 31.164062 40.144531 C 31.164062 43.894531 34.277344 46.875 38.082031 46.875 Z M 38.082031 46.875 "/>\n      </g>'},
txtIcon:{extension:".txt",path:'<g id="surface1">\n      <path style=" stroke:none;fill-rule:evenodd;fill:rgb(99.607843%,99.607843%,99.607843%);fill-opacity:1;" d="M 10.578125 25 L 39.421875 25 C 41.53125 25 43.527344 25.492188 45.3125 26.367188 L 45.3125 15.367188 C 45.3125 13.90625 44.976562 13.097656 43.984375 12.109375 C 42.996094 11.121094 35.105469 3.226562 34.503906 2.628906 C 33.90625 2.027344 33.070312 1.5625 31.617188 1.5625 L 6.5625 1.5625 C 5.527344 1.5625 4.6875 2.402344 4.6875 3.4375 L 4.6875 26.367188 C 6.476562 25.492188 8.472656 25 10.578125 25 "/>\n      <path style=" stroke:none;fill-rule:evenodd;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 34.375 4.710938 L 42.164062 12.5 L 34.515625 12.5 C 34.464844 12.46875 34.414062 12.425781 34.375 12.390625 Z M 6.25 25.722656 L 6.25 3.4375 C 6.25 3.265625 6.390625 3.125 6.5625 3.125 L 31.25 3.125 L 31.25 12.5 C 31.25 13.980469 32.496094 15.210938 33.742188 15.539062 C 33.902344 15.59375 34.074219 15.625 34.257812 15.625 L 43.75 15.625 L 43.75 25.722656 C 44.859375 26.105469 45.910156 26.625 46.875 27.269531 L 46.875 15.363281 C 46.875 13.511719 46.375 12.289062 45.089844 11.003906 L 35.609375 1.523438 C 34.582031 0.496094 33.273438 0 31.617188 0 L 6.5625 0 C 4.667969 0 3.125 1.542969 3.125 3.4375 L 3.125 27.269531 C 4.089844 26.625 5.140625 26.105469 6.25 25.722656 Z M 6.25 25.722656 "/>\n      <path style=" stroke:none;fill-rule:evenodd;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 8.621094 28.125 C 3.859375 28.125 0 31.984375 0 36.742188 L 0 41.378906 C 0 46.140625 3.859375 50 8.621094 50 L 41.378906 50 C 46.140625 50 50 46.140625 50 41.382812 L 50 36.746094 C 50 31.984375 46.140625 28.125 41.382812 28.125 Z M 8.621094 28.125 "/>\n      <path style=" stroke:none;fill-rule:nonzero;fill:rgb(100%,100%,100%);fill-opacity:1;" d="M 12.847656 46.875 C 13.429688 46.875 13.878906 46.425781 13.878906 45.84375 L 13.878906 35.832031 L 16.859375 35.832031 C 17.421875 35.832031 17.890625 35.34375 17.890625 34.78125 C 17.890625 34.199219 17.421875 33.75 16.859375 33.75 L 8.855469 33.75 C 8.273438 33.75 7.824219 34.199219 7.824219 34.78125 C 7.824219 35.34375 8.273438 35.832031 8.855469 35.832031 L 11.816406 35.832031 L 11.816406 45.84375 C 11.816406 46.425781 12.285156 46.875 12.847656 46.875 Z M 29.019531 46.875 C 29.222656 46.875 29.429688 46.800781 29.617188 46.667969 C 30.085938 46.351562 30.160156 45.695312 29.84375 45.242188 L 26.28125 40.367188 L 29.84375 35.53125 C 30.160156 35.0625 30.085938 34.425781 29.617188 34.105469 C 29.148438 33.75 28.53125 33.84375 28.175781 34.332031 L 25.023438 38.644531 L 21.855469 34.332031 C 21.535156 33.84375 20.878906 33.75 20.429688 34.105469 C 19.960938 34.425781 19.867188 35.0625 20.1875 35.53125 L 23.75 40.367188 L 20.1875 45.242188 C 19.867188 45.695312 19.960938 46.351562 20.429688 46.667969 C 20.597656 46.800781 20.804688 46.875 21.03125 46.875 C 21.347656 46.875 21.648438 46.707031 21.855469 46.445312 L 25.023438 42.113281 L 28.175781 46.445312 C 28.378906 46.707031 28.679688 46.875 29.019531 46.875 Z M 37.464844 46.875 C 38.042969 46.875 38.496094 46.425781 38.496094 45.84375 L 38.496094 35.832031 L 41.476562 35.832031 C 42.039062 35.832031 42.507812 35.34375 42.507812 34.78125 C 42.507812 34.199219 42.039062 33.75 41.476562 33.75 L 33.46875 33.75 C 32.886719 33.75 32.4375 34.199219 32.4375 34.78125 C 32.4375 35.34375 32.886719 35.832031 33.46875 35.832031 L 36.433594 35.832031 L 36.433594 45.84375 C 36.433594 46.425781 36.902344 46.875 37.464844 46.875 Z M 37.464844 46.875 "/>\n      </g>'},
webmIcon:{extension:".webm",path:'<g id="surface1">\n      <path style=" stroke:none;fill-rule:evenodd;fill:rgb(99.607843%,99.607843%,99.607843%);fill-opacity:1;" d="M 10.578125 25 L 39.421875 25 C 41.53125 25 43.527344 25.492188 45.3125 26.367188 L 45.3125 15.367188 C 45.3125 13.90625 44.976562 13.097656 43.984375 12.109375 C 42.996094 11.121094 35.105469 3.226562 34.503906 2.628906 C 33.90625 2.027344 33.070312 1.5625 31.617188 1.5625 L 6.5625 1.5625 C 5.527344 1.5625 4.6875 2.402344 4.6875 3.4375 L 4.6875 26.367188 C 6.476562 25.492188 8.472656 25 10.578125 25 "/>\n      <path style=" stroke:none;fill-rule:evenodd;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 34.375 4.710938 L 42.164062 12.5 L 34.515625 12.5 C 34.464844 12.46875 34.414062 12.425781 34.375 12.390625 Z M 6.25 25.722656 L 6.25 3.4375 C 6.25 3.265625 6.390625 3.125 6.5625 3.125 L 31.25 3.125 L 31.25 12.5 C 31.25 13.980469 32.496094 15.210938 33.742188 15.539062 C 33.902344 15.59375 34.074219 15.625 34.257812 15.625 L 43.75 15.625 L 43.75 25.722656 C 44.859375 26.105469 45.910156 26.625 46.875 27.269531 L 46.875 15.363281 C 46.875 13.511719 46.375 12.289062 45.089844 11.003906 L 35.609375 1.523438 C 34.582031 0.496094 33.273438 0 31.617188 0 L 6.5625 0 C 4.667969 0 3.125 1.542969 3.125 3.4375 L 3.125 27.269531 C 4.089844 26.625 5.140625 26.105469 6.25 25.722656 Z M 6.25 25.722656 "/>\n      <path style=" stroke:none;fill-rule:evenodd;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 8.621094 28.125 C 3.859375 28.125 0 31.984375 0 36.742188 L 0 41.378906 C 0 46.140625 3.859375 50 8.621094 50 L 41.378906 50 C 46.140625 50 50 46.140625 50 41.382812 L 50 36.746094 C 50 31.984375 46.140625 28.125 41.382812 28.125 Z M 8.621094 28.125 "/>\n      <path style=" stroke:none;fill-rule:nonzero;fill:rgb(100%,100%,100%);fill-opacity:1;" d="M 7.195312 43.734375 L 7.242188 43.734375 C 7.273438 43.71875 7.304688 43.703125 7.367188 43.703125 C 7.367188 43.6875 7.382812 43.6875 7.382812 43.6875 L 7.398438 43.6875 C 7.429688 43.671875 7.476562 43.625 7.523438 43.59375 L 7.554688 43.59375 C 7.585938 43.5625 7.617188 43.53125 7.648438 43.515625 C 7.648438 43.5 7.664062 43.5 7.664062 43.46875 L 7.757812 43.375 C 7.757812 43.375 7.757812 43.359375 7.773438 43.359375 C 7.789062 43.328125 7.820312 43.265625 7.835938 43.21875 L 9.882812 38.375 L 11.929688 43.21875 C 11.945312 43.265625 11.960938 43.328125 11.992188 43.359375 C 11.992188 43.359375 11.992188 43.375 12.023438 43.375 L 12.085938 43.46875 C 12.101562 43.5 12.101562 43.5 12.117188 43.515625 C 12.148438 43.53125 12.179688 43.5625 12.226562 43.59375 L 12.242188 43.59375 C 12.273438 43.625 12.320312 43.671875 12.382812 43.6875 C 12.398438 43.6875 12.398438 43.6875 12.414062 43.703125 C 12.445312 43.703125 12.476562 43.71875 12.523438 43.734375 L 12.570312 43.734375 L 12.640625 43.746094 L 12.710938 43.75 C 12.773438 43.75 12.820312 43.75 12.867188 43.734375 L 12.898438 43.734375 C 12.945312 43.71875 12.992188 43.703125 13.023438 43.703125 C 13.023438 43.6875 13.039062 43.6875 13.039062 43.6875 L 13.054688 43.6875 C 13.117188 43.671875 13.148438 43.625 13.195312 43.59375 L 13.210938 43.59375 C 13.242188 43.5625 13.289062 43.53125 13.320312 43.515625 C 13.320312 43.5 13.335938 43.5 13.335938 43.46875 C 13.367188 43.4375 13.398438 43.40625 13.414062 43.375 C 13.414062 43.375 13.429688 43.359375 13.429688 43.359375 C 13.460938 43.328125 13.492188 43.265625 13.507812 43.21875 L 17.335938 34.109375 C 17.523438 33.6875 17.320312 33.171875 16.898438 33 C 16.445312 32.8125 15.945312 33.015625 15.757812 33.453125 L 12.710938 40.6875 L 10.695312 35.890625 C 10.539062 35.546875 10.210938 35.359375 9.882812 35.359375 C 9.539062 35.359375 9.210938 35.546875 9.070312 35.890625 L 7.054688 40.6875 L 3.992188 33.453125 C 3.820312 33.015625 3.304688 32.8125 2.882812 33 C 2.429688 33.171875 2.242188 33.6875 2.414062 34.109375 L 6.257812 43.21875 C 6.289062 43.265625 6.304688 43.328125 6.335938 43.359375 L 6.335938 43.375 C 6.367188 43.40625 6.382812 43.4375 6.414062 43.46875 C 6.429688 43.5 6.429688 43.5 6.445312 43.515625 C 6.492188 43.53125 6.507812 43.5625 6.554688 43.59375 L 6.570312 43.59375 C 6.601562 43.625 6.664062 43.671875 6.710938 43.6875 C 6.726562 43.6875 6.726562 43.6875 6.742188 43.703125 C 6.773438 43.703125 6.804688 43.71875 6.851562 43.734375 L 6.898438 43.734375 L 6.976562 43.746094 L 7.054688 43.75 C 7.101562 43.75 7.148438 43.75 7.195312 43.734375 Z M 25.179688 43.75 C 25.632812 43.75 26.039062 43.359375 26.039062 42.890625 C 26.039062 42.40625 25.632812 42.015625 25.179688 42.015625 L 20.945312 42.015625 L 20.945312 39.140625 L 24.585938 39.140625 C 25.054688 39.140625 25.445312 38.75 25.445312 38.265625 C 25.445312 37.8125 25.054688 37.40625 24.585938 37.40625 L 20.945312 37.40625 L 20.945312 34.546875 L 25.179688 34.546875 C 25.632812 34.546875 26.039062 34.15625 26.039062 33.671875 C 26.039062 33.1875 25.632812 32.8125 25.179688 32.8125 L 20.070312 32.8125 C 19.585938 32.8125 19.210938 33.1875 19.210938 33.671875 L 19.210938 42.890625 C 19.210938 43.359375 19.585938 43.75 20.070312 43.75 C 20.070312 43.75 20.085938 43.734375 20.085938 43.734375 C 20.085938 43.734375 20.085938 43.75 20.117188 43.75 Z M 31.539062 43.75 C 33.382812 43.75 34.882812 42.25 34.882812 40.390625 C 34.882812 39.203125 34.242188 38.15625 33.304688 37.5625 C 33.679688 37.0625 33.898438 36.453125 33.898438 35.78125 C 33.898438 34.140625 32.570312 32.8125 30.929688 32.8125 L 28.710938 32.8125 C 28.242188 32.8125 27.851562 33.1875 27.851562 33.671875 L 27.851562 42.890625 C 27.851562 43.359375 28.242188 43.75 28.710938 43.75 L 28.757812 43.734375 C 28.757812 43.734375 28.757812 43.75 28.773438 43.75 Z M 30.929688 37.046875 L 29.585938 37.046875 L 29.585938 34.546875 L 30.929688 34.546875 C 31.617188 34.546875 32.164062 35.09375 32.164062 35.78125 C 32.164062 36.46875 31.617188 37.046875 30.929688 37.046875 Z M 31.539062 42.015625 L 29.585938 42.015625 L 29.585938 38.78125 L 31.539062 38.78125 C 32.429688 38.796875 33.148438 39.5 33.148438 40.390625 C 33.148438 41.296875 32.429688 42 31.539062 42.015625 Z M 45.664062 43.75 C 46.132812 43.75 46.539062 43.359375 46.539062 42.890625 L 46.539062 33.671875 C 46.539062 33.269531 46.242188 32.9375 45.859375 32.839844 L 45.664062 32.8125 L 45.648438 32.8125 C 45.367188 32.8125 45.117188 32.9375 44.945312 33.171875 L 41.835938 37.484375 L 38.726562 33.171875 C 38.570312 32.9375 38.289062 32.8125 38.039062 32.8125 L 37.992188 32.8125 C 37.523438 32.8125 37.132812 33.203125 37.132812 33.671875 L 37.132812 42.890625 C 37.132812 43.359375 37.523438 43.75 37.992188 43.75 C 38.476562 43.75 38.867188 43.359375 38.867188 42.890625 L 38.867188 36.3125 L 41.101562 39.4375 C 41.273438 39.671875 41.539062 39.796875 41.820312 39.796875 L 41.851562 39.796875 C 42.132812 39.796875 42.382812 39.671875 42.554688 39.4375 L 44.804688 36.3125 L 44.804688 42.890625 C 44.804688 43.359375 45.179688 43.75 45.664062 43.75 Z M 45.664062 43.75 "/>\n      </g>'},
webpIcon:{extension:".webp",path:'<g id="surface1">\n      <path style=" stroke:none;fill-rule:evenodd;fill:rgb(99.607843%,99.607843%,99.607843%);fill-opacity:1;" d="M 10.578125 25 L 39.421875 25 C 41.53125 25 43.527344 25.492188 45.3125 26.367188 L 45.3125 15.367188 C 45.3125 13.90625 44.976562 13.097656 43.984375 12.109375 C 42.996094 11.121094 35.105469 3.226562 34.503906 2.628906 C 33.90625 2.027344 33.070312 1.5625 31.617188 1.5625 L 6.5625 1.5625 C 5.527344 1.5625 4.6875 2.402344 4.6875 3.4375 L 4.6875 26.367188 C 6.476562 25.492188 8.472656 25 10.578125 25 "/>\n      <path style=" stroke:none;fill-rule:evenodd;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 34.375 4.710938 L 42.164062 12.5 L 34.515625 12.5 C 34.464844 12.46875 34.414062 12.425781 34.375 12.390625 Z M 6.25 25.722656 L 6.25 3.4375 C 6.25 3.265625 6.390625 3.125 6.5625 3.125 L 31.25 3.125 L 31.25 12.5 C 31.25 13.980469 32.496094 15.210938 33.742188 15.539062 C 33.902344 15.59375 34.074219 15.625 34.257812 15.625 L 43.75 15.625 L 43.75 25.722656 C 44.859375 26.105469 45.910156 26.625 46.875 27.269531 L 46.875 15.363281 C 46.875 13.511719 46.375 12.289062 45.089844 11.003906 L 35.609375 1.523438 C 34.582031 0.496094 33.273438 0 31.617188 0 L 6.5625 0 C 4.667969 0 3.125 1.542969 3.125 3.4375 L 3.125 27.269531 C 4.089844 26.625 5.140625 26.105469 6.25 25.722656 Z M 6.25 25.722656 "/>\n      <path style=" stroke:none;fill-rule:evenodd;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 8.621094 28.125 C 3.859375 28.125 0 31.984375 0 36.742188 L 0 41.378906 C 0 46.140625 3.859375 50 8.621094 50 L 41.378906 50 C 46.140625 50 50 46.140625 50 41.382812 L 50 36.746094 C 50 31.984375 46.140625 28.125 41.382812 28.125 Z M 8.621094 28.125 "/>\n      <path style=" stroke:none;fill-rule:nonzero;fill:rgb(100%,100%,100%);fill-opacity:1;" d="M 9.234375 43.734375 L 9.28125 43.734375 C 9.3125 43.71875 9.34375 43.703125 9.40625 43.703125 L 9.414062 43.6875 C 9.421875 43.6875 9.421875 43.6875 9.4375 43.6875 C 9.46875 43.671875 9.515625 43.625 9.5625 43.59375 L 9.59375 43.59375 C 9.625 43.5625 9.65625 43.53125 9.6875 43.515625 C 9.6875 43.5 9.703125 43.5 9.703125 43.46875 L 9.796875 43.375 C 9.796875 43.375 9.796875 43.359375 9.8125 43.359375 C 9.828125 43.328125 9.859375 43.265625 9.875 43.21875 L 11.921875 38.375 L 13.96875 43.21875 C 13.984375 43.265625 14 43.328125 14.03125 43.359375 C 14.03125 43.359375 14.03125 43.375 14.0625 43.375 L 14.125 43.46875 C 14.140625 43.5 14.140625 43.5 14.15625 43.515625 L 14.203125 43.546875 L 14.265625 43.59375 C 14.265625 43.59375 14.265625 43.59375 14.28125 43.59375 C 14.3125 43.625 14.359375 43.671875 14.421875 43.6875 C 14.4375 43.6875 14.4375 43.6875 14.453125 43.703125 C 14.484375 43.703125 14.515625 43.71875 14.5625 43.734375 L 14.609375 43.734375 L 14.679688 43.746094 L 14.75 43.75 C 14.8125 43.75 14.859375 43.75 14.90625 43.734375 L 14.9375 43.734375 C 14.984375 43.71875 15.03125 43.703125 15.0625 43.703125 C 15.0625 43.6875 15.078125 43.6875 15.078125 43.6875 L 15.09375 43.6875 C 15.15625 43.671875 15.1875 43.625 15.234375 43.59375 L 15.25 43.59375 C 15.28125 43.5625 15.328125 43.53125 15.359375 43.515625 C 15.359375 43.5 15.375 43.5 15.375 43.46875 C 15.40625 43.4375 15.4375 43.40625 15.453125 43.375 L 15.46875 43.359375 C 15.5 43.328125 15.53125 43.265625 15.546875 43.21875 L 19.375 34.109375 C 19.5625 33.6875 19.359375 33.171875 18.9375 33 C 18.484375 32.8125 17.984375 33.015625 17.796875 33.453125 L 14.75 40.6875 L 12.734375 35.890625 C 12.578125 35.546875 12.25 35.359375 11.921875 35.359375 C 11.578125 35.359375 11.25 35.546875 11.109375 35.890625 L 9.09375 40.6875 L 6.03125 33.453125 C 5.859375 33.015625 5.34375 32.8125 4.921875 33 C 4.46875 33.171875 4.28125 33.6875 4.453125 34.109375 L 8.296875 43.21875 C 8.328125 43.265625 8.34375 43.328125 8.375 43.359375 L 8.375 43.375 C 8.40625 43.40625 8.421875 43.4375 8.453125 43.46875 C 8.46875 43.5 8.46875 43.5 8.484375 43.515625 L 8.539062 43.546875 L 8.59375 43.59375 C 8.59375 43.59375 8.59375 43.59375 8.609375 43.59375 C 8.640625 43.625 8.703125 43.671875 8.75 43.6875 C 8.765625 43.6875 8.765625 43.6875 8.78125 43.703125 C 8.8125 43.703125 8.84375 43.71875 8.890625 43.734375 L 8.9375 43.734375 L 9.015625 43.746094 L 9.09375 43.75 C 9.140625 43.75 9.1875 43.75 9.234375 43.734375 Z M 27.21875 43.75 C 27.671875 43.75 28.078125 43.359375 28.078125 42.890625 C 28.078125 42.40625 27.671875 42.015625 27.21875 42.015625 L 22.984375 42.015625 L 22.984375 39.140625 L 26.625 39.140625 C 27.09375 39.140625 27.484375 38.75 27.484375 38.265625 C 27.484375 37.8125 27.09375 37.40625 26.625 37.40625 L 22.984375 37.40625 L 22.984375 34.546875 L 27.21875 34.546875 C 27.671875 34.546875 28.078125 34.15625 28.078125 33.671875 C 28.078125 33.1875 27.671875 32.8125 27.21875 32.8125 L 22.109375 32.8125 C 21.625 32.8125 21.25 33.1875 21.25 33.671875 L 21.25 42.890625 C 21.25 43.359375 21.625 43.75 22.109375 43.75 L 22.125 43.734375 C 22.125 43.734375 22.125 43.75 22.15625 43.75 Z M 33.578125 43.75 C 35.421875 43.75 36.921875 42.25 36.921875 40.390625 C 36.921875 39.203125 36.28125 38.15625 35.34375 37.5625 C 35.71875 37.0625 35.9375 36.453125 35.9375 35.78125 C 35.9375 34.140625 34.609375 32.8125 32.96875 32.8125 L 30.75 32.8125 C 30.28125 32.8125 29.890625 33.1875 29.890625 33.671875 L 29.890625 42.890625 C 29.890625 43.359375 30.28125 43.75 30.75 43.75 C 30.765625 43.75 30.765625 43.734375 30.796875 43.734375 C 30.796875 43.734375 30.796875 43.75 30.8125 43.75 Z M 32.96875 37.046875 L 31.625 37.046875 L 31.625 34.546875 L 32.96875 34.546875 C 33.65625 34.546875 34.203125 35.09375 34.203125 35.78125 C 34.203125 36.46875 33.65625 37.046875 32.96875 37.046875 Z M 33.578125 42.015625 L 31.625 42.015625 L 31.625 38.78125 L 33.578125 38.78125 C 34.46875 38.796875 35.1875 39.5 35.1875 40.390625 C 35.1875 41.296875 34.46875 42 33.578125 42.015625 Z M 40.03125 43.75 C 40.515625 43.75 40.90625 43.359375 40.90625 42.890625 L 40.90625 39.5 L 42.828125 39.5 C 44.6875 39.5 46.1875 38 46.1875 36.171875 C 46.1875 34.3125 44.6875 32.8125 42.828125 32.8125 L 40.03125 32.8125 C 39.5625 32.8125 39.171875 33.1875 39.171875 33.671875 L 39.171875 42.890625 C 39.171875 43.359375 39.5625 43.75 40.03125 43.75 Z M 42.828125 37.765625 L 40.90625 37.765625 L 40.90625 34.546875 L 42.828125 34.546875 C 43.734375 34.546875 44.4375 35.265625 44.453125 36.171875 C 44.4375 37.046875 43.734375 37.765625 42.828125 37.765625 Z M 42.828125 37.765625 "/>\n      </g>'},
wmvIcon:{extension:".wmv",path:'<g id="surface1">\n      <path style=" stroke:none;fill-rule:evenodd;fill:rgb(99.607843%,99.607843%,99.607843%);fill-opacity:1;" d="M 10.578125 25 L 39.421875 25 C 41.53125 25 43.527344 25.492188 45.3125 26.367188 L 45.3125 15.367188 C 45.3125 13.90625 44.976562 13.097656 43.984375 12.109375 C 42.996094 11.121094 35.105469 3.226562 34.503906 2.628906 C 33.90625 2.027344 33.070312 1.5625 31.617188 1.5625 L 6.5625 1.5625 C 5.527344 1.5625 4.6875 2.402344 4.6875 3.4375 L 4.6875 26.367188 C 6.476562 25.492188 8.472656 25 10.578125 25 "/>\n      <path style=" stroke:none;fill-rule:evenodd;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 34.375 4.710938 L 42.164062 12.5 L 34.515625 12.5 C 34.464844 12.46875 34.414062 12.425781 34.375 12.390625 Z M 6.25 25.722656 L 6.25 3.4375 C 6.25 3.265625 6.390625 3.125 6.5625 3.125 L 31.25 3.125 L 31.25 12.5 C 31.25 13.980469 32.496094 15.210938 33.742188 15.539062 C 33.902344 15.59375 34.074219 15.625 34.257812 15.625 L 43.75 15.625 L 43.75 25.722656 C 44.859375 26.105469 45.910156 26.625 46.875 27.269531 L 46.875 15.363281 C 46.875 13.511719 46.375 12.289062 45.089844 11.003906 L 35.609375 1.523438 C 34.582031 0.496094 33.273438 0 31.617188 0 L 6.5625 0 C 4.667969 0 3.125 1.542969 3.125 3.4375 L 3.125 27.269531 C 4.089844 26.625 5.140625 26.105469 6.25 25.722656 Z M 6.25 25.722656 "/>\n      <path style=" stroke:none;fill-rule:evenodd;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 8.621094 28.125 C 3.859375 28.125 0 31.984375 0 36.742188 L 0 41.378906 C 0 46.140625 3.859375 50 8.621094 50 L 41.378906 50 C 46.140625 50 50 46.140625 50 41.382812 L 50 36.746094 C 50 31.984375 46.140625 28.125 41.382812 28.125 Z M 8.621094 28.125 "/>\n      <path style=" stroke:none;fill-rule:nonzero;fill:rgb(100%,100%,100%);fill-opacity:1;" d="M 8.484375 43.734375 L 8.53125 43.734375 C 8.5625 43.71875 8.59375 43.703125 8.65625 43.703125 L 8.664062 43.6875 C 8.671875 43.6875 8.671875 43.6875 8.6875 43.6875 C 8.71875 43.671875 8.765625 43.625 8.8125 43.59375 L 8.84375 43.59375 C 8.875 43.5625 8.90625 43.53125 8.9375 43.515625 C 8.9375 43.5 8.953125 43.5 8.953125 43.46875 L 9.046875 43.375 C 9.046875 43.375 9.046875 43.359375 9.0625 43.359375 C 9.078125 43.328125 9.109375 43.265625 9.125 43.21875 L 11.171875 38.375 L 13.21875 43.21875 C 13.234375 43.265625 13.25 43.328125 13.28125 43.359375 C 13.28125 43.359375 13.28125 43.375 13.3125 43.375 L 13.375 43.46875 C 13.390625 43.5 13.390625 43.5 13.40625 43.515625 L 13.453125 43.546875 L 13.515625 43.59375 C 13.515625 43.59375 13.515625 43.59375 13.53125 43.59375 C 13.5625 43.625 13.609375 43.671875 13.671875 43.6875 C 13.6875 43.6875 13.6875 43.6875 13.703125 43.703125 C 13.734375 43.703125 13.765625 43.71875 13.8125 43.734375 L 13.859375 43.734375 L 13.929688 43.746094 L 14 43.75 C 14.0625 43.75 14.109375 43.75 14.15625 43.734375 L 14.1875 43.734375 C 14.234375 43.71875 14.28125 43.703125 14.3125 43.703125 C 14.3125 43.6875 14.328125 43.6875 14.328125 43.6875 L 14.34375 43.6875 C 14.40625 43.671875 14.4375 43.625 14.484375 43.59375 L 14.5 43.59375 C 14.53125 43.5625 14.578125 43.53125 14.609375 43.515625 C 14.609375 43.5 14.625 43.5 14.625 43.46875 C 14.65625 43.4375 14.6875 43.40625 14.703125 43.375 L 14.71875 43.359375 C 14.75 43.328125 14.78125 43.265625 14.796875 43.21875 L 18.625 34.109375 C 18.8125 33.6875 18.609375 33.171875 18.1875 33 C 17.734375 32.8125 17.234375 33.015625 17.046875 33.453125 L 14 40.6875 L 11.984375 35.890625 C 11.828125 35.546875 11.5 35.359375 11.171875 35.359375 C 10.828125 35.359375 10.5 35.546875 10.359375 35.890625 L 8.34375 40.6875 L 5.28125 33.453125 C 5.109375 33.015625 4.59375 32.8125 4.171875 33 C 3.71875 33.171875 3.53125 33.6875 3.703125 34.109375 L 7.546875 43.21875 C 7.578125 43.265625 7.59375 43.328125 7.625 43.359375 L 7.625 43.375 C 7.65625 43.40625 7.671875 43.4375 7.703125 43.46875 C 7.71875 43.5 7.71875 43.5 7.734375 43.515625 L 7.789062 43.546875 L 7.84375 43.59375 C 7.84375 43.59375 7.84375 43.59375 7.859375 43.59375 C 7.890625 43.625 7.953125 43.671875 8 43.6875 C 8.015625 43.6875 8.015625 43.6875 8.03125 43.703125 C 8.0625 43.703125 8.09375 43.71875 8.140625 43.734375 L 8.1875 43.734375 L 8.265625 43.746094 L 8.34375 43.75 C 8.390625 43.75 8.4375 43.75 8.484375 43.734375 Z M 29.03125 43.75 C 29.5 43.75 29.90625 43.359375 29.90625 42.890625 L 29.90625 33.671875 C 29.90625 33.269531 29.609375 32.9375 29.226562 32.839844 L 29.03125 32.8125 L 29.015625 32.8125 C 28.734375 32.8125 28.484375 32.9375 28.3125 33.171875 L 25.203125 37.484375 L 22.09375 33.171875 C 21.9375 32.9375 21.65625 32.8125 21.40625 32.8125 L 21.359375 32.8125 C 20.890625 32.8125 20.5 33.203125 20.5 33.671875 L 20.5 42.890625 C 20.5 43.359375 20.890625 43.75 21.359375 43.75 C 21.84375 43.75 22.234375 43.359375 22.234375 42.890625 L 22.234375 36.3125 L 24.46875 39.4375 C 24.640625 39.671875 24.90625 39.796875 25.1875 39.796875 L 25.21875 39.796875 C 25.5 39.796875 25.75 39.671875 25.921875 39.4375 L 28.171875 36.3125 L 28.171875 42.890625 C 28.171875 43.359375 28.546875 43.75 29.03125 43.75 Z M 37.015625 43.734375 L 37.0625 43.734375 C 37.09375 43.71875 37.125 43.703125 37.1875 43.703125 L 37.195312 43.6875 C 37.203125 43.6875 37.203125 43.6875 37.21875 43.6875 C 37.25 43.671875 37.296875 43.625 37.34375 43.59375 L 37.375 43.59375 C 37.40625 43.5625 37.4375 43.53125 37.46875 43.515625 C 37.46875 43.5 37.484375 43.5 37.484375 43.46875 L 37.578125 43.375 C 37.578125 43.375 37.578125 43.359375 37.59375 43.359375 C 37.609375 43.328125 37.640625 43.265625 37.65625 43.21875 L 39.703125 38.375 L 41.75 43.21875 C 41.765625 43.265625 41.78125 43.328125 41.8125 43.359375 C 41.8125 43.359375 41.8125 43.375 41.84375 43.375 L 41.90625 43.46875 C 41.921875 43.5 41.921875 43.5 41.9375 43.515625 L 41.984375 43.546875 L 42.046875 43.59375 C 42.046875 43.59375 42.046875 43.59375 42.0625 43.59375 C 42.09375 43.625 42.140625 43.671875 42.203125 43.6875 C 42.21875 43.6875 42.21875 43.6875 42.234375 43.703125 C 42.265625 43.703125 42.296875 43.71875 42.34375 43.734375 L 42.390625 43.734375 L 42.460938 43.746094 L 42.53125 43.75 C 42.59375 43.75 42.640625 43.75 42.6875 43.734375 L 42.71875 43.734375 C 42.765625 43.71875 42.8125 43.703125 42.84375 43.703125 C 42.84375 43.6875 42.859375 43.6875 42.859375 43.6875 L 42.875 43.6875 C 42.9375 43.671875 42.96875 43.625 43.015625 43.59375 L 43.03125 43.59375 C 43.0625 43.5625 43.109375 43.53125 43.140625 43.515625 C 43.140625 43.5 43.15625 43.5 43.15625 43.46875 C 43.1875 43.4375 43.21875 43.40625 43.234375 43.375 L 43.25 43.359375 C 43.28125 43.328125 43.3125 43.265625 43.328125 43.21875 L 47.15625 34.109375 C 47.34375 33.6875 47.140625 33.171875 46.71875 33 C 46.265625 32.8125 45.765625 33.015625 45.578125 33.453125 L 42.53125 40.6875 L 40.515625 35.890625 C 40.359375 35.546875 40.03125 35.359375 39.703125 35.359375 C 39.359375 35.359375 39.03125 35.546875 38.890625 35.890625 L 36.875 40.6875 L 33.8125 33.453125 C 33.640625 33.015625 33.125 32.8125 32.703125 33 C 32.25 33.171875 32.0625 33.6875 32.234375 34.109375 L 36.078125 43.21875 C 36.109375 43.265625 36.125 43.328125 36.15625 43.359375 L 36.15625 43.375 C 36.1875 43.40625 36.203125 43.4375 36.234375 43.46875 C 36.25 43.5 36.25 43.5 36.265625 43.515625 L 36.320312 43.546875 L 36.375 43.59375 C 36.375 43.59375 36.375 43.59375 36.390625 43.59375 C 36.421875 43.625 36.484375 43.671875 36.53125 43.6875 C 36.546875 43.6875 36.546875 43.6875 36.5625 43.703125 C 36.59375 43.703125 36.625 43.71875 36.671875 43.734375 L 36.71875 43.734375 L 36.796875 43.746094 L 36.875 43.75 C 36.921875 43.75 36.96875 43.75 37.015625 43.734375 Z M 37.015625 43.734375 "/>\n      </g>'},
xlsIcon:{extension:".xls",path:'<g id="surface1">\n      <path style=" stroke:none;fill-rule:evenodd;fill:rgb(99.607843%,99.607843%,99.607843%);fill-opacity:1;" d="M 10.578125 25 L 39.421875 25 C 41.53125 25 43.527344 25.492188 45.3125 26.367188 L 45.3125 15.367188 C 45.3125 13.90625 44.976562 13.097656 43.984375 12.109375 C 42.996094 11.121094 35.105469 3.226562 34.503906 2.628906 C 33.90625 2.027344 33.070312 1.5625 31.617188 1.5625 L 6.5625 1.5625 C 5.527344 1.5625 4.6875 2.402344 4.6875 3.4375 L 4.6875 26.367188 C 6.476562 25.492188 8.472656 25 10.578125 25 "/>\n      <path style=" stroke:none;fill-rule:evenodd;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 34.375 4.710938 L 42.164062 12.5 L 34.515625 12.5 C 34.464844 12.46875 34.414062 12.425781 34.375 12.390625 Z M 6.25 25.722656 L 6.25 3.4375 C 6.25 3.265625 6.390625 3.125 6.5625 3.125 L 31.25 3.125 L 31.25 12.5 C 31.25 13.980469 32.496094 15.210938 33.742188 15.539062 C 33.902344 15.59375 34.074219 15.625 34.257812 15.625 L 43.75 15.625 L 43.75 25.722656 C 44.859375 26.105469 45.910156 26.625 46.875 27.269531 L 46.875 15.363281 C 46.875 13.511719 46.375 12.289062 45.089844 11.003906 L 35.609375 1.523438 C 34.582031 0.496094 33.273438 0 31.617188 0 L 6.5625 0 C 4.667969 0 3.125 1.542969 3.125 3.4375 L 3.125 27.269531 C 4.089844 26.625 5.140625 26.105469 6.25 25.722656 Z M 6.25 25.722656 "/>\n      <path style=" stroke:none;fill-rule:evenodd;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 8.621094 28.125 C 3.859375 28.125 0 31.984375 0 36.742188 L 0 41.378906 C 0 46.140625 3.859375 50 8.621094 50 L 41.378906 50 C 46.140625 50 50 46.140625 50 41.382812 L 50 36.746094 C 50 31.984375 46.140625 28.125 41.382812 28.125 Z M 8.621094 28.125 "/>\n      <path style=" stroke:none;fill-rule:nonzero;fill:rgb(100%,100%,100%);fill-opacity:1;" d="M 17.21875 46.875 C 17.425781 46.875 17.632812 46.800781 17.820312 46.667969 C 18.289062 46.351562 18.363281 45.695312 18.042969 45.242188 L 14.480469 40.367188 L 18.042969 35.53125 C 18.363281 35.0625 18.289062 34.425781 17.820312 34.105469 C 17.351562 33.75 16.730469 33.84375 16.375 34.332031 L 13.226562 38.644531 L 10.054688 34.332031 C 9.738281 33.84375 9.082031 33.75 8.632812 34.105469 C 8.164062 34.425781 8.070312 35.0625 8.386719 35.53125 L 11.949219 40.367188 L 8.386719 45.242188 C 8.070312 45.695312 8.164062 46.351562 8.632812 46.667969 C 8.800781 46.800781 9.007812 46.875 9.230469 46.875 C 9.550781 46.875 9.851562 46.707031 10.054688 46.445312 L 13.226562 42.113281 L 16.375 46.445312 C 16.582031 46.707031 16.882812 46.875 17.21875 46.875 Z M 29.351562 46.875 C 29.894531 46.875 30.382812 46.40625 30.382812 45.84375 C 30.382812 45.261719 29.894531 44.792969 29.351562 44.792969 L 24.269531 44.792969 L 24.269531 34.78125 C 24.269531 34.21875 23.800781 33.75 23.21875 33.75 C 22.636719 33.75 22.1875 34.21875 22.1875 34.78125 L 22.1875 45.84375 C 22.1875 46.335938 22.53125 46.757812 23.007812 46.855469 L 23.222656 46.875 Z M 37.28125 46.855469 C 38.613281 46.855469 39.832031 46.460938 40.75 45.789062 C 41.6875 45.113281 42.363281 44.082031 42.363281 42.882812 C 42.363281 42.300781 42.195312 41.738281 41.914062 41.289062 C 41.480469 40.59375 40.804688 40.105469 40.039062 39.730469 C 39.289062 39.375 38.40625 39.132812 37.449219 38.945312 L 37.414062 38.945312 C 36.398438 38.757812 35.554688 38.457031 35.070312 38.117188 C 34.824219 37.949219 34.65625 37.78125 34.5625 37.632812 C 34.46875 37.480469 34.429688 37.332031 34.429688 37.105469 C 34.429688 36.710938 34.636719 36.300781 35.144531 35.925781 C 35.648438 35.550781 36.398438 35.289062 37.242188 35.289062 C 38.386719 35.289062 39.304688 35.851562 40.261719 36.488281 C 40.710938 36.789062 41.3125 36.65625 41.59375 36.207031 C 41.894531 35.773438 41.761719 35.175781 41.332031 34.875 C 40.375 34.257812 39.042969 33.375 37.242188 33.375 C 36.023438 33.375 34.882812 33.730469 34 34.367188 C 33.136719 35.007812 32.5 35.980469 32.5 37.105469 C 32.5 37.667969 32.648438 38.195312 32.929688 38.644531 C 33.34375 39.300781 33.960938 39.769531 34.675781 40.105469 C 35.386719 40.445312 36.210938 40.667969 37.09375 40.835938 L 37.132812 40.835938 C 38.238281 41.042969 39.15625 41.363281 39.699219 41.71875 C 39.980469 41.90625 40.148438 42.09375 40.261719 42.28125 C 40.375 42.46875 40.429688 42.636719 40.429688 42.882812 C 40.429688 43.351562 40.1875 43.820312 39.625 44.230469 C 39.0625 44.644531 38.21875 44.925781 37.28125 44.925781 C 35.949219 44.945312 34.523438 44.15625 33.699219 43.480469 C 33.289062 43.144531 32.667969 43.199219 32.332031 43.613281 C 32.011719 44.023438 32.070312 44.644531 32.480469 44.980469 C 33.550781 45.824219 35.257812 46.835938 37.28125 46.855469 Z M 37.28125 46.855469 "/>\n      </g>'},
xlsxIcon:{extension:".xlsx",path:'<g id="surface1">\n      <path style=" stroke:none;fill-rule:evenodd;fill:rgb(99.607843%,99.607843%,99.607843%);fill-opacity:1;" d="M 10.578125 25 L 39.421875 25 C 41.53125 25 43.527344 25.492188 45.3125 26.367188 L 45.3125 15.367188 C 45.3125 13.90625 44.976562 13.097656 43.984375 12.109375 C 42.996094 11.121094 35.105469 3.226562 34.503906 2.628906 C 33.90625 2.027344 33.070312 1.5625 31.617188 1.5625 L 6.5625 1.5625 C 5.527344 1.5625 4.6875 2.402344 4.6875 3.4375 L 4.6875 26.367188 C 6.476562 25.492188 8.472656 25 10.578125 25 "/>\n      <path style=" stroke:none;fill-rule:evenodd;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 34.375 4.710938 L 42.164062 12.5 L 34.515625 12.5 C 34.464844 12.46875 34.414062 12.425781 34.375 12.390625 Z M 6.25 25.722656 L 6.25 3.4375 C 6.25 3.265625 6.390625 3.125 6.5625 3.125 L 31.25 3.125 L 31.25 12.5 C 31.25 13.980469 32.496094 15.210938 33.742188 15.539062 C 33.902344 15.59375 34.074219 15.625 34.257812 15.625 L 43.75 15.625 L 43.75 25.722656 C 44.859375 26.105469 45.910156 26.625 46.875 27.269531 L 46.875 15.363281 C 46.875 13.511719 46.375 12.289062 45.089844 11.003906 L 35.609375 1.523438 C 34.582031 0.496094 33.273438 0 31.617188 0 L 6.5625 0 C 4.667969 0 3.125 1.542969 3.125 3.4375 L 3.125 27.269531 C 4.089844 26.625 5.140625 26.105469 6.25 25.722656 Z M 6.25 25.722656 "/>\n      <path style=" stroke:none;fill-rule:evenodd;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 8.621094 28.125 C 3.859375 28.125 0 31.984375 0 36.742188 L 0 41.378906 C 0 46.140625 3.859375 50 8.621094 50 L 41.378906 50 C 46.140625 50 50 46.140625 50 41.382812 L 50 36.746094 C 50 31.984375 46.140625 28.125 41.382812 28.125 Z M 8.621094 28.125 "/>\n      <path style=" stroke:none;fill-rule:nonzero;fill:rgb(100%,100%,100%);fill-opacity:1;" d="M 13.070312 43.75 C 13.242188 43.75 13.414062 43.6875 13.570312 43.578125 C 13.960938 43.3125 14.023438 42.765625 13.757812 42.390625 L 10.789062 38.328125 L 13.757812 34.296875 C 14.023438 33.90625 13.960938 33.375 13.570312 33.109375 C 13.179688 32.8125 12.664062 32.890625 12.367188 33.296875 L 9.742188 36.890625 L 7.101562 33.296875 C 6.835938 32.890625 6.289062 32.8125 5.914062 33.109375 C 5.523438 33.375 5.445312 33.90625 5.710938 34.296875 L 8.679688 38.328125 L 5.710938 42.390625 C 5.445312 42.765625 5.523438 43.3125 5.914062 43.578125 C 6.054688 43.6875 6.226562 43.75 6.414062 43.75 C 6.679688 43.75 6.929688 43.609375 7.101562 43.390625 L 9.742188 39.78125 L 12.367188 43.390625 C 12.539062 43.609375 12.789062 43.75 13.070312 43.75 Z M 23.179688 43.75 C 23.632812 43.75 24.039062 43.359375 24.039062 42.890625 C 24.039062 42.40625 23.632812 42.015625 23.179688 42.015625 L 18.945312 42.015625 L 18.945312 33.671875 C 18.945312 33.203125 18.554688 32.8125 18.070312 32.8125 C 17.585938 32.8125 17.210938 33.203125 17.210938 33.671875 L 17.210938 42.890625 C 17.210938 43.359375 17.585938 43.75 18.070312 43.75 Z M 29.789062 43.734375 C 30.898438 43.734375 31.914062 43.40625 32.679688 42.84375 C 33.460938 42.28125 34.023438 41.421875 34.023438 40.421875 C 34.023438 39.9375 33.882812 39.46875 33.648438 39.09375 C 33.289062 38.515625 32.726562 38.109375 32.085938 37.796875 C 31.460938 37.5 30.726562 37.296875 29.929688 37.140625 L 29.898438 37.140625 C 29.054688 36.984375 28.351562 36.734375 27.945312 36.453125 C 27.742188 36.3125 27.601562 36.171875 27.523438 36.046875 C 27.445312 35.921875 27.414062 35.796875 27.414062 35.609375 C 27.414062 35.28125 27.585938 34.9375 28.007812 34.625 C 28.429688 34.3125 29.054688 34.09375 29.757812 34.09375 C 30.710938 34.09375 31.476562 34.5625 32.273438 35.09375 C 32.648438 35.34375 33.148438 35.234375 33.382812 34.859375 C 33.632812 34.5 33.523438 34 33.164062 33.75 C 32.367188 33.234375 31.257812 32.5 29.757812 32.5 C 28.742188 32.5 27.789062 32.796875 27.054688 33.328125 C 26.335938 33.859375 25.804688 34.671875 25.804688 35.609375 C 25.804688 36.078125 25.929688 36.515625 26.164062 36.890625 C 26.507812 37.4375 27.023438 37.828125 27.617188 38.109375 C 28.210938 38.390625 28.898438 38.578125 29.632812 38.71875 L 29.664062 38.71875 C 30.585938 38.890625 31.351562 39.15625 31.804688 39.453125 C 32.039062 39.609375 32.179688 39.765625 32.273438 39.921875 C 32.367188 40.078125 32.414062 40.21875 32.414062 40.421875 C 32.414062 40.8125 32.210938 41.203125 31.742188 41.546875 C 31.273438 41.890625 30.570312 42.125 29.789062 42.125 C 28.679688 42.140625 27.492188 41.484375 26.804688 40.921875 C 26.460938 40.640625 25.945312 40.6875 25.664062 41.03125 C 25.398438 41.375 25.445312 41.890625 25.789062 42.171875 C 26.679688 42.875 28.101562 43.71875 29.789062 43.734375 Z M 43.179688 43.75 C 43.351562 43.75 43.523438 43.6875 43.679688 43.578125 C 44.070312 43.3125 44.132812 42.765625 43.867188 42.390625 L 40.898438 38.328125 L 43.867188 34.296875 C 44.132812 33.90625 44.070312 33.375 43.679688 33.109375 C 43.289062 32.8125 42.773438 32.890625 42.476562 33.296875 L 39.851562 36.890625 L 37.210938 33.296875 C 36.945312 32.890625 36.398438 32.8125 36.023438 33.109375 C 35.632812 33.375 35.554688 33.90625 35.820312 34.296875 L 38.789062 38.328125 L 35.820312 42.390625 C 35.554688 42.765625 35.632812 43.3125 36.023438 43.578125 C 36.164062 43.6875 36.335938 43.75 36.523438 43.75 C 36.789062 43.75 37.039062 43.609375 37.210938 43.390625 L 39.851562 39.78125 L 42.476562 43.390625 C 42.648438 43.609375 42.898438 43.75 43.179688 43.75 Z M 43.179688 43.75 "/>\n      </g>'},
zipIcon:{extension:".zip",path:'<g id="surface1">\n      <path style=" stroke:none;fill-rule:evenodd;fill:rgb(99.607843%,99.607843%,99.607843%);fill-opacity:1;" d="M 10.578125 25 L 39.421875 25 C 41.53125 25 43.527344 25.492188 45.3125 26.367188 L 45.3125 15.367188 C 45.3125 13.90625 44.976562 13.097656 43.984375 12.109375 C 42.996094 11.121094 35.105469 3.226562 34.503906 2.628906 C 33.90625 2.027344 33.070312 1.5625 31.617188 1.5625 L 6.5625 1.5625 C 5.527344 1.5625 4.6875 2.402344 4.6875 3.4375 L 4.6875 26.367188 C 6.476562 25.492188 8.472656 25 10.578125 25 "/>\n      <path style=" stroke:none;fill-rule:evenodd;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 34.375 4.710938 L 42.164062 12.5 L 34.515625 12.5 C 34.464844 12.46875 34.414062 12.425781 34.375 12.390625 Z M 6.25 25.722656 L 6.25 3.4375 C 6.25 3.265625 6.390625 3.125 6.5625 3.125 L 31.25 3.125 L 31.25 12.5 C 31.25 13.980469 32.496094 15.210938 33.742188 15.539062 C 33.902344 15.59375 34.074219 15.625 34.257812 15.625 L 43.75 15.625 L 43.75 25.722656 C 44.859375 26.105469 45.910156 26.625 46.875 27.269531 L 46.875 15.363281 C 46.875 13.511719 46.375 12.289062 45.089844 11.003906 L 35.609375 1.523438 C 34.582031 0.496094 33.273438 0 31.617188 0 L 6.5625 0 C 4.667969 0 3.125 1.542969 3.125 3.4375 L 3.125 27.269531 C 4.089844 26.625 5.140625 26.105469 6.25 25.722656 Z M 6.25 25.722656 "/>\n      <path style=" stroke:none;fill-rule:evenodd;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 8.621094 28.125 C 3.859375 28.125 0 31.984375 0 36.742188 L 0 41.378906 C 0 46.140625 3.859375 50 8.621094 50 L 41.378906 50 C 46.140625 50 50 46.140625 50 41.382812 L 50 36.746094 C 50 31.984375 46.140625 28.125 41.382812 28.125 Z M 8.621094 28.125 "/>\n      <path style=" stroke:none;fill-rule:nonzero;fill:rgb(100%,100%,100%);fill-opacity:1;" d="M 20.175781 46.875 C 20.855469 46.875 21.402344 46.351562 21.402344 45.671875 C 21.402344 44.992188 20.855469 44.445312 20.175781 44.445312 L 13.132812 44.445312 L 21.183594 33.488281 L 21.183594 33.445312 C 21.203125 33.421875 21.226562 33.378906 21.25 33.335938 C 21.269531 33.3125 21.269531 33.289062 21.292969 33.269531 C 21.3125 33.203125 21.3125 33.179688 21.335938 33.136719 C 21.335938 33.09375 21.378906 33.070312 21.378906 33.007812 C 21.378906 32.984375 21.378906 32.960938 21.402344 32.917969 L 21.402344 32.679688 C 21.402344 32.632812 21.402344 32.613281 21.378906 32.546875 C 21.378906 32.503906 21.378906 32.480469 21.335938 32.4375 C 21.335938 32.414062 21.3125 32.371094 21.3125 32.304688 C 21.292969 32.285156 21.269531 32.242188 21.269531 32.21875 C 21.25 32.195312 21.226562 32.152344 21.203125 32.109375 C 21.183594 32.066406 21.160156 32.042969 21.117188 32.023438 C 21.09375 32 21.074219 31.957031 21.050781 31.933594 C 21.03125 31.914062 21.007812 31.867188 20.964844 31.847656 C 20.941406 31.824219 20.941406 31.804688 20.898438 31.78125 L 20.875 31.78125 C 20.832031 31.757812 20.8125 31.738281 20.765625 31.714844 C 20.746094 31.695312 20.722656 31.648438 20.65625 31.648438 L 20.570312 31.605469 L 20.4375 31.585938 C 20.417969 31.585938 20.375 31.5625 20.351562 31.5625 L 10.75 31.5625 C 10.070312 31.5625 9.546875 32.085938 9.546875 32.765625 C 9.546875 33.421875 10.070312 33.992188 10.75 33.992188 L 17.8125 33.992188 L 9.785156 44.972656 L 9.765625 44.972656 C 9.742188 45.015625 9.71875 45.058594 9.699219 45.082031 C 9.699219 45.101562 9.675781 45.148438 9.632812 45.167969 C 9.632812 45.210938 9.609375 45.257812 9.609375 45.277344 C 9.589844 45.320312 9.589844 45.367188 9.566406 45.386719 L 9.566406 45.496094 C 9.546875 45.539062 9.546875 45.585938 9.546875 45.648438 L 9.546875 45.738281 C 9.546875 45.78125 9.566406 45.824219 9.566406 45.890625 C 9.566406 45.933594 9.589844 45.957031 9.589844 45.976562 L 9.632812 46.109375 C 9.632812 46.152344 9.675781 46.175781 9.699219 46.21875 C 9.699219 46.242188 9.71875 46.261719 9.742188 46.328125 C 9.765625 46.351562 9.785156 46.394531 9.808594 46.414062 C 9.828125 46.4375 9.851562 46.460938 9.894531 46.480469 L 9.9375 46.542969 L 9.984375 46.589844 C 10.003906 46.613281 10.027344 46.632812 10.046875 46.632812 L 10.046875 46.65625 C 10.070312 46.679688 10.09375 46.679688 10.136719 46.699219 C 10.179688 46.722656 10.222656 46.742188 10.246094 46.742188 C 10.265625 46.789062 10.289062 46.789062 10.3125 46.808594 C 10.375 46.808594 10.421875 46.832031 10.464844 46.832031 C 10.484375 46.851562 10.507812 46.851562 10.53125 46.851562 L 10.648438 46.871094 Z M 26.214844 46.875 C 26.871094 46.875 27.4375 46.351562 27.4375 45.671875 L 27.4375 32.765625 C 27.4375 32.085938 26.871094 31.5625 26.214844 31.5625 C 25.535156 31.5625 25.011719 32.085938 25.011719 32.765625 L 25.011719 45.671875 C 25.011719 46.351562 25.535156 46.875 26.214844 46.875 Z M 32.734375 46.875 C 33.410156 46.875 33.957031 46.328125 33.957031 45.671875 L 33.957031 40.925781 L 36.648438 40.925781 C 39.25 40.925781 41.351562 38.824219 41.351562 36.265625 C 41.351562 33.664062 39.25 31.5625 36.648438 31.5625 L 32.734375 31.5625 C 32.078125 31.5625 31.53125 32.085938 31.53125 32.765625 L 31.53125 45.671875 C 31.53125 46.328125 32.078125 46.875 32.734375 46.875 Z M 36.648438 38.496094 L 33.957031 38.496094 L 33.957031 33.992188 L 36.648438 33.992188 C 37.917969 33.992188 38.902344 34.996094 38.921875 36.265625 C 38.902344 37.492188 37.917969 38.496094 36.648438 38.496094 Z M 36.648438 38.496094 "/>\n      </g>'},
docxIcon:{extension:".docx",path:'<g id="surface9" clip-path="url(#clip1)">\n      <path style=" stroke:none;fill-rule:evenodd;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 8.621094 28.125 C 3.859375 28.125 0 31.984375 0 36.742188 L 0 41.378906 C 0 46.140625 3.859375 50 8.621094 50 L 41.378906 50 C 46.140625 50 50 46.140625 50 41.382812 L 50 36.746094 C 50 31.984375 46.140625 28.125 41.382812 28.125 Z M 8.621094 28.125 "/>\n      </g>\n      </defs>\n      <g id="surface1">\n      <path style=" stroke:none;fill-rule:evenodd;fill:rgb(99.607843%,99.607843%,99.607843%);fill-opacity:1;" d="M 10.578125 25 L 39.421875 25 C 41.53125 25 43.527344 25.492188 45.3125 26.367188 L 45.3125 15.367188 C 45.3125 13.90625 44.976562 13.097656 43.984375 12.109375 C 42.996094 11.121094 35.105469 3.226562 34.503906 2.628906 C 33.90625 2.027344 33.070312 1.5625 31.617188 1.5625 L 6.5625 1.5625 C 5.527344 1.5625 4.6875 2.402344 4.6875 3.4375 L 4.6875 26.367188 C 6.476562 25.492188 8.472656 25 10.578125 25 "/>\n      <path style=" stroke:none;fill-rule:evenodd;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 34.375 4.710938 L 42.164062 12.5 L 34.515625 12.5 C 34.464844 12.46875 34.414062 12.425781 34.375 12.390625 Z M 6.25 25.722656 L 6.25 3.4375 C 6.25 3.265625 6.390625 3.125 6.5625 3.125 L 31.25 3.125 L 31.25 12.5 C 31.25 13.980469 32.496094 15.210938 33.742188 15.539062 C 33.902344 15.59375 34.074219 15.625 34.257812 15.625 L 43.75 15.625 L 43.75 25.722656 C 44.859375 26.105469 45.910156 26.625 46.875 27.269531 L 46.875 15.363281 C 46.875 13.511719 46.375 12.289062 45.089844 11.003906 L 35.609375 1.523438 C 34.582031 0.496094 33.273438 0 31.617188 0 L 6.5625 0 C 4.667969 0 3.125 1.542969 3.125 3.4375 L 3.125 27.269531 C 4.089844 26.625 5.140625 26.105469 6.25 25.722656 Z M 6.25 25.722656 "/>\n      <use xlink:href="#surface9" mask="url(#mask0)"/>\n      <path style=" stroke:none;fill-rule:nonzero;fill:rgb(100%,100%,100%);fill-opacity:1;" d="M 7.789062 43.75 C 9.589844 43.75 10.988281 43.269531 11.984375 42.304688 C 12.980469 41.339844 13.476562 39.984375 13.476562 38.234375 C 13.476562 36.496094 12.980469 35.144531 11.984375 34.179688 C 10.988281 33.214844 9.589844 32.734375 7.789062 32.734375 L 4.695312 32.734375 C 4.394531 32.734375 4.15625 32.816406 3.984375 32.984375 C 3.8125 33.152344 3.726562 33.386719 3.726562 33.6875 L 3.726562 42.796875 C 3.726562 43.097656 3.8125 43.332031 3.984375 43.5 C 4.15625 43.667969 4.394531 43.75 4.695312 43.75 Z M 7.664062 42.109375 L 5.742188 42.109375 L 5.742188 34.375 L 7.664062 34.375 C 10.195312 34.375 11.460938 35.660156 11.460938 38.234375 C 11.460938 40.816406 10.195312 42.109375 7.664062 42.109375 Z M 20.414062 43.890625 C 21.476562 43.890625 22.402344 43.660156 23.1875 43.203125 C 23.972656 42.746094 24.582031 42.089844 25.007812 41.234375 C 25.433594 40.378906 25.648438 39.378906 25.648438 38.234375 C 25.648438 37.089844 25.4375 36.089844 25.015625 35.242188 C 24.59375 34.394531 23.988281 33.738281 23.203125 33.28125 C 22.417969 32.824219 21.488281 32.59375 20.414062 32.59375 C 19.339844 32.59375 18.410156 32.824219 17.617188 33.28125 C 16.824219 33.738281 16.21875 34.394531 15.796875 35.242188 C 15.375 36.089844 15.164062 37.089844 15.164062 38.234375 C 15.164062 39.378906 15.378906 40.378906 15.804688 41.234375 C 16.230469 42.089844 16.839844 42.746094 17.625 43.203125 C 18.410156 43.660156 19.339844 43.890625 20.414062 43.890625 Z M 20.414062 42.28125 C 19.394531 42.28125 18.597656 41.933594 18.03125 41.234375 C 17.464844 40.535156 17.179688 39.535156 17.179688 38.234375 C 17.179688 36.933594 17.464844 35.933594 18.03125 35.242188 C 18.597656 34.550781 19.394531 34.203125 20.414062 34.203125 C 21.425781 34.203125 22.214844 34.550781 22.78125 35.242188 C 23.347656 35.933594 23.632812 36.933594 23.632812 38.234375 C 23.632812 39.535156 23.347656 40.535156 22.78125 41.234375 C 22.214844 41.933594 21.425781 42.28125 20.414062 42.28125 Z M 32.601562 43.890625 C 33.289062 43.890625 33.933594 43.789062 34.539062 43.585938 C 35.144531 43.382812 35.679688 43.089844 36.148438 42.703125 C 36.285156 42.597656 36.378906 42.488281 36.429688 42.367188 C 36.480469 42.246094 36.507812 42.109375 36.507812 41.953125 C 36.507812 41.722656 36.445312 41.53125 36.320312 41.375 C 36.195312 41.21875 36.042969 41.140625 35.867188 41.140625 C 35.753906 41.140625 35.644531 41.160156 35.539062 41.203125 C 35.433594 41.246094 35.332031 41.296875 35.226562 41.359375 C 34.746094 41.683594 34.316406 41.910156 33.9375 42.046875 C 33.558594 42.183594 33.144531 42.25 32.695312 42.25 C 31.613281 42.25 30.792969 41.910156 30.234375 41.234375 C 29.675781 40.558594 29.398438 39.558594 29.398438 38.234375 C 29.398438 36.921875 29.675781 35.925781 30.234375 35.25 C 30.792969 34.574219 31.613281 34.234375 32.695312 34.234375 C 33.164062 34.234375 33.589844 34.300781 33.976562 34.429688 C 34.363281 34.558594 34.777344 34.792969 35.226562 35.125 C 35.445312 35.269531 35.660156 35.34375 35.867188 35.34375 C 36.042969 35.34375 36.195312 35.265625 36.320312 35.109375 C 36.445312 34.953125 36.507812 34.761719 36.507812 34.53125 C 36.507812 34.363281 36.480469 34.222656 36.429688 34.109375 C 36.378906 33.996094 36.285156 33.886719 36.148438 33.78125 C 35.679688 33.394531 35.144531 33.101562 34.539062 32.898438 C 33.933594 32.695312 33.289062 32.59375 32.601562 32.59375 C 31.539062 32.59375 30.609375 32.824219 29.8125 33.28125 C 29.015625 33.738281 28.402344 34.394531 27.976562 35.242188 C 27.550781 36.089844 27.335938 37.089844 27.335938 38.234375 C 27.335938 39.378906 27.550781 40.378906 27.976562 41.234375 C 28.402344 42.089844 29.015625 42.746094 29.8125 43.203125 C 30.609375 43.660156 31.539062 43.890625 32.601562 43.890625 Z M 46.132812 43.84375 C 46.382812 43.84375 46.605469 43.75 46.796875 43.5625 C 46.988281 43.375 47.085938 43.15625 47.085938 42.90625 C 47.085938 42.707031 47.003906 42.511719 46.835938 42.3125 L 43.445312 38.15625 L 46.710938 34.171875 C 46.867188 34.003906 46.945312 33.808594 46.945312 33.578125 C 46.945312 33.328125 46.847656 33.113281 46.65625 32.929688 C 46.464844 32.746094 46.242188 32.65625 45.992188 32.65625 C 45.730469 32.65625 45.507812 32.769531 45.320312 33 L 42.273438 36.765625 L 39.226562 33 C 39.027344 32.769531 38.800781 32.65625 38.539062 32.65625 C 38.289062 32.65625 38.070312 32.746094 37.882812 32.929688 C 37.695312 33.113281 37.601562 33.328125 37.601562 33.578125 C 37.601562 33.808594 37.679688 34.003906 37.835938 34.171875 L 41.101562 38.15625 L 37.695312 42.3125 C 37.539062 42.5 37.460938 42.699219 37.460938 42.90625 C 37.460938 43.15625 37.558594 43.371094 37.75 43.554688 C 37.941406 43.738281 38.164062 43.828125 38.414062 43.828125 C 38.675781 43.828125 38.898438 43.71875 39.085938 43.5 L 42.273438 39.5625 L 45.445312 43.5 C 45.644531 43.730469 45.871094 43.84375 46.132812 43.84375 Z M 46.132812 43.84375 "/>\n      </g>'},
jpgIcon:{extension:".jpg",path:'<g id="surface1">\n      <path style=" stroke:none;fill-rule:evenodd;fill:rgb(99.607843%,99.607843%,99.607843%);fill-opacity:1;" d="M 10.578125 25 L 39.421875 25 C 41.53125 25 43.527344 25.492188 45.3125 26.367188 L 45.3125 15.367188 C 45.3125 13.90625 44.976562 13.097656 43.984375 12.109375 C 42.996094 11.121094 35.105469 3.226562 34.503906 2.628906 C 33.90625 2.027344 33.070312 1.5625 31.617188 1.5625 L 6.5625 1.5625 C 5.527344 1.5625 4.6875 2.402344 4.6875 3.4375 L 4.6875 26.367188 C 6.476562 25.492188 8.472656 25 10.578125 25 "/>\n      <path style=" stroke:none;fill-rule:evenodd;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 34.375 4.710938 L 42.164062 12.5 L 34.515625 12.5 C 34.464844 12.46875 34.414062 12.425781 34.375 12.390625 Z M 6.25 25.722656 L 6.25 3.4375 C 6.25 3.265625 6.390625 3.125 6.5625 3.125 L 31.25 3.125 L 31.25 12.5 C 31.25 13.980469 32.496094 15.210938 33.742188 15.539062 C 33.902344 15.59375 34.074219 15.625 34.257812 15.625 L 43.75 15.625 L 43.75 25.722656 C 44.859375 26.105469 45.910156 26.625 46.875 27.269531 L 46.875 15.363281 C 46.875 13.511719 46.375 12.289062 45.089844 11.003906 L 35.609375 1.523438 C 34.582031 0.496094 33.273438 0 31.617188 0 L 6.5625 0 C 4.667969 0 3.125 1.542969 3.125 3.4375 L 3.125 27.269531 C 4.089844 26.625 5.140625 26.105469 6.25 25.722656 Z M 6.25 25.722656 "/>\n      <use xlink:href="#surface9" mask="url(#mask0)"/>\n      <path style=" stroke:none;fill-rule:nonzero;fill:rgb(100%,100%,100%);fill-opacity:1;" d="M 8.789062 47.007812 L 9.488281 46.960938 C 12.214844 46.757812 13.578125 45.277344 13.578125 42.523438 L 13.578125 32.742188 C 13.578125 32.320312 13.453125 31.980469 13.195312 31.726562 C 12.941406 31.472656 12.59375 31.34375 12.15625 31.34375 C 11.734375 31.34375 11.394531 31.472656 11.140625 31.726562 C 10.886719 31.980469 10.757812 32.320312 10.757812 32.742188 L 10.757812 42.523438 C 10.757812 43.238281 10.605469 43.769531 10.296875 44.117188 C 9.992188 44.46875 9.539062 44.660156 8.941406 44.6875 L 8.242188 44.730469 C 7.847656 44.761719 7.558594 44.867188 7.378906 45.046875 C 7.195312 45.230469 7.105469 45.496094 7.105469 45.847656 C 7.105469 46.664062 7.667969 47.050781 8.789062 47.007812 Z M 18.304688 47.007812 C 18.742188 47.007812 19.089844 46.878906 19.34375 46.625 C 19.597656 46.367188 19.726562 46.023438 19.726562 45.585938 L 19.726562 40.882812 L 23.640625 40.882812 C 25.289062 40.882812 26.574219 40.464844 27.492188 39.632812 C 28.410156 38.804688 28.871094 37.644531 28.871094 36.15625 C 28.871094 34.667969 28.410156 33.511719 27.492188 32.6875 C 26.574219 31.863281 25.289062 31.453125 23.640625 31.453125 L 18.261719 31.453125 C 17.839844 31.453125 17.507812 31.570312 17.265625 31.804688 C 17.023438 32.035156 16.90625 32.363281 16.90625 32.789062 L 16.90625 45.585938 C 16.90625 46.023438 17.03125 46.367188 17.289062 46.625 C 17.542969 46.878906 17.882812 47.007812 18.304688 47.007812 Z M 23.292969 38.714844 L 19.726562 38.714844 L 19.726562 33.640625 L 23.292969 33.640625 C 25.230469 33.640625 26.203125 34.488281 26.203125 36.179688 C 26.203125 37.871094 25.230469 38.714844 23.292969 38.714844 Z M 38.605469 47.070312 C 39.320312 47.070312 40.0625 47.011719 40.835938 46.898438 C 41.609375 46.78125 42.285156 46.621094 42.871094 46.414062 C 43.410156 46.242188 43.765625 46.015625 43.941406 45.738281 C 44.117188 45.460938 44.203125 44.988281 44.203125 44.316406 L 44.203125 39.613281 C 44.203125 39.292969 44.101562 39.03125 43.898438 38.835938 C 43.695312 38.640625 43.425781 38.539062 43.089844 38.539062 L 39.21875 38.539062 C 38.867188 38.539062 38.59375 38.628906 38.398438 38.804688 C 38.199219 38.976562 38.101562 39.226562 38.101562 39.546875 C 38.101562 39.867188 38.199219 40.117188 38.398438 40.289062 C 38.59375 40.464844 38.867188 40.554688 39.21875 40.554688 L 41.6875 40.554688 L 41.6875 44.425781 C 40.699219 44.703125 39.707031 44.839844 38.714844 44.839844 C 35.390625 44.839844 33.726562 42.945312 33.726562 39.152344 C 33.726562 37.300781 34.132812 35.90625 34.941406 34.964844 C 35.75 34.023438 36.949219 33.554688 38.539062 33.554688 C 39.238281 33.554688 39.867188 33.644531 40.421875 33.828125 C 40.972656 34.007812 41.574219 34.324219 42.214844 34.777344 C 42.390625 34.894531 42.542969 34.980469 42.671875 35.03125 C 42.804688 35.082031 42.949219 35.105469 43.109375 35.105469 C 43.359375 35.105469 43.570312 34.996094 43.746094 34.777344 C 43.921875 34.558594 44.007812 34.289062 44.007812 33.96875 C 44.007812 33.75 43.96875 33.558594 43.886719 33.398438 C 43.808594 33.238281 43.679688 33.078125 43.503906 32.917969 C 42.191406 31.808594 40.507812 31.257812 38.453125 31.257812 C 36.90625 31.257812 35.5625 31.574219 34.425781 32.207031 C 33.289062 32.84375 32.410156 33.753906 31.789062 34.941406 C 31.171875 36.128906 30.859375 37.535156 30.859375 39.152344 C 30.859375 40.800781 31.171875 42.21875 31.789062 43.40625 C 32.410156 44.597656 33.304688 45.503906 34.46875 46.132812 C 35.636719 46.757812 37.015625 47.070312 38.605469 47.070312 Z M 38.605469 47.070312 "/>\n      </g>'},
mp3Icon:{extension:".mp3",path:'<g id="surface9" clip-path="url(#clip1)">\n      <path style=" stroke:none;fill-rule:evenodd;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 43.828125 43.710938 C 43.605469 44.28125 43.273438 44.804688 42.84375 45.265625 C 42.40625 45.730469 41.867188 46.113281 41.242188 46.398438 C 40.597656 46.699219 39.851562 46.855469 39.027344 46.855469 C 38.328125 46.855469 37.703125 46.757812 37.160156 46.570312 C 36.609375 46.378906 36.160156 46.136719 35.769531 45.839844 C 35.386719 45.550781 35.050781 45.210938 34.796875 44.832031 C 34.570312 44.507812 34.394531 44.195312 34.265625 43.890625 C 34.140625 43.59375 34.054688 43.335938 33.996094 43.101562 C 33.792969 42.261719 34.304688 41.417969 35.140625 41.210938 C 35.980469 41.007812 36.828125 41.519531 37.03125 42.355469 C 37.039062 42.390625 37.066406 42.488281 37.144531 42.671875 C 37.191406 42.777344 37.265625 42.914062 37.371094 43.0625 C 37.4375 43.160156 37.53125 43.257812 37.65625 43.351562 C 37.792969 43.453125 37.972656 43.542969 38.195312 43.625 C 38.332031 43.667969 38.59375 43.730469 39.027344 43.730469 C 39.390625 43.730469 39.695312 43.675781 39.925781 43.566406 C 40.1875 43.445312 40.398438 43.300781 40.558594 43.132812 C 40.71875 42.957031 40.839844 42.773438 40.914062 42.578125 C 40.996094 42.371094 41.03125 42.195312 41.03125 42.023438 C 41.03125 41.789062 41 41.585938 40.921875 41.398438 C 40.871094 41.257812 40.785156 41.148438 40.660156 41.039062 C 40.515625 40.910156 40.296875 40.792969 40.011719 40.699219 C 39.6875 40.59375 39.253906 40.539062 38.738281 40.535156 C 37.882812 40.527344 37.1875 39.832031 37.1875 38.972656 L 37.1875 38.832031 C 37.1875 37.984375 37.859375 37.292969 38.699219 37.265625 C 39.070312 37.257812 39.398438 37.195312 39.679688 37.101562 C 39.921875 37.011719 40.121094 36.902344 40.273438 36.773438 C 40.40625 36.652344 40.507812 36.519531 40.582031 36.359375 C 40.652344 36.210938 40.6875 36.027344 40.6875 35.8125 C 40.6875 35.523438 40.644531 35.289062 40.574219 35.125 C 40.5 34.96875 40.414062 34.847656 40.304688 34.757812 C 40.1875 34.660156 40.042969 34.582031 39.867188 34.53125 C 39.402344 34.386719 38.878906 34.398438 38.480469 34.542969 C 38.289062 34.617188 38.121094 34.714844 37.976562 34.84375 C 37.820312 34.984375 37.695312 35.148438 37.59375 35.339844 C 37.484375 35.550781 37.40625 35.773438 37.367188 36.039062 C 37.230469 36.890625 36.429688 37.472656 35.574219 37.335938 C 34.722656 37.195312 34.140625 36.398438 34.28125 35.542969 C 34.378906 34.9375 34.5625 34.378906 34.835938 33.871094 C 35.109375 33.355469 35.464844 32.898438 35.890625 32.519531 C 36.320312 32.132812 36.824219 31.828125 37.382812 31.617188 C 38.433594 31.226562 39.667969 31.199219 40.78125 31.539062 C 41.351562 31.714844 41.863281 31.992188 42.308594 32.355469 C 42.777344 32.753906 43.148438 33.242188 43.414062 33.824219 C 43.679688 34.402344 43.8125 35.070312 43.8125 35.8125 C 43.8125 36.476562 43.679688 37.097656 43.421875 37.660156 C 43.25 38.046875 43.023438 38.394531 42.746094 38.707031 C 43.242188 39.148438 43.609375 39.671875 43.835938 40.261719 C 44.046875 40.804688 44.15625 41.398438 44.15625 42.023438 C 44.15625 42.578125 44.046875 43.148438 43.828125 43.710938 Z M 31.445312 38.492188 C 31.148438 39.140625 30.734375 39.703125 30.199219 40.164062 C 29.6875 40.605469 29.078125 40.957031 28.390625 41.199219 C 27.71875 41.4375 26.976562 41.5625 26.191406 41.5625 L 25 41.5625 L 25 45 C 25 45.859375 24.296875 46.5625 23.4375 46.5625 C 22.578125 46.5625 21.875 45.859375 21.875 45 L 21.875 32.8125 C 21.875 31.945312 22.578125 31.25 23.4375 31.25 L 26.191406 31.25 C 27.890625 31.25 29.257812 31.667969 30.253906 32.5 C 31.339844 33.398438 31.886719 34.714844 31.886719 36.40625 C 31.886719 37.148438 31.738281 37.851562 31.445312 38.492188 Z M 18.730469 45.210938 C 18.730469 46.070312 18.03125 46.773438 17.167969 46.773438 C 16.300781 46.773438 15.605469 46.070312 15.605469 45.210938 L 15.605469 39.28125 L 14.015625 43.140625 C 14.007812 43.164062 13.996094 43.191406 13.984375 43.214844 C 13.71875 43.777344 13.15625 44.117188 12.566406 44.117188 L 12.53125 44.117188 C 11.9375 44.117188 11.375 43.777344 11.109375 43.214844 L 11.082031 43.160156 L 9.339844 39.101562 L 9.339844 45.210938 C 9.339844 46.070312 8.640625 46.773438 7.777344 46.773438 C 6.910156 46.773438 6.214844 46.070312 6.214844 45.210938 L 6.214844 32.824219 C 6.214844 31.960938 6.910156 31.261719 7.777344 31.261719 L 7.835938 31.261719 C 8.472656 31.261719 9.046875 31.617188 9.335938 32.1875 L 12.527344 39.09375 L 15.59375 32.207031 C 15.894531 31.617188 16.46875 31.261719 17.105469 31.261719 L 17.167969 31.261719 C 18.03125 31.261719 18.730469 31.960938 18.730469 32.824219 Z M 41.382812 28.125 L 8.621094 28.125 C 3.859375 28.125 0 31.984375 0 36.742188 L 0 41.378906 C 0 46.136719 3.859375 50 8.621094 50 L 41.378906 50 C 46.140625 50 50 46.136719 50 41.382812 L 50 36.746094 C 50 31.984375 46.140625 28.125 41.382812 28.125 Z M 41.382812 28.125 "/>\n      </g>\n      </defs>\n      <g id="surface1">\n      <path style=" stroke:none;fill-rule:evenodd;fill:rgb(99.607843%,99.607843%,99.607843%);fill-opacity:1;" d="M 10.578125 25 L 39.421875 25 C 41.53125 25 43.527344 25.492188 45.3125 26.367188 L 45.3125 15.367188 C 45.3125 13.90625 44.976562 13.097656 43.984375 12.109375 C 42.996094 11.121094 35.105469 3.226562 34.503906 2.628906 C 33.90625 2.027344 33.070312 1.5625 31.617188 1.5625 L 6.5625 1.5625 C 5.527344 1.5625 4.6875 2.402344 4.6875 3.4375 L 4.6875 26.367188 C 6.476562 25.492188 8.472656 25 10.578125 25 "/>\n      <path style=" stroke:none;fill-rule:evenodd;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 34.375 4.710938 L 42.164062 12.5 L 34.515625 12.5 C 34.464844 12.46875 34.414062 12.425781 34.375 12.390625 Z M 6.25 25.722656 L 6.25 3.4375 C 6.25 3.265625 6.390625 3.125 6.5625 3.125 L 31.25 3.125 L 31.25 12.5 C 31.25 13.980469 32.496094 15.210938 33.742188 15.539062 C 33.902344 15.59375 34.074219 15.625 34.257812 15.625 L 43.75 15.625 L 43.75 25.722656 C 44.859375 26.105469 45.910156 26.625 46.875 27.269531 L 46.875 15.363281 C 46.875 13.511719 46.375 12.289062 45.089844 11.003906 L 35.609375 1.523438 C 34.582031 0.496094 33.273438 0 31.617188 0 L 6.5625 0 C 4.667969 0 3.125 1.542969 3.125 3.4375 L 3.125 27.269531 C 4.089844 26.625 5.140625 26.105469 6.25 25.722656 Z M 6.25 25.722656 "/>\n      <use xlink:href="#surface9" mask="url(#mask0)"/>\n      <path style=" stroke:none;fill-rule:evenodd;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 28.257812 34.902344 C 27.835938 34.550781 27.140625 34.375 26.191406 34.375 L 25 34.375 L 25 38.4375 L 26.191406 38.4375 C 26.621094 38.4375 27.007812 38.375 27.34375 38.253906 C 27.667969 38.140625 27.929688 37.992188 28.148438 37.804688 C 28.34375 37.632812 28.492188 37.4375 28.601562 37.195312 C 28.710938 36.964844 28.757812 36.703125 28.757812 36.40625 C 28.757812 35.324219 28.382812 35.003906 28.257812 34.902344 "/>\n      <path style="fill:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;stroke:rgb(99.607843%,99.607843%,99.607843%);stroke-opacity:1;stroke-miterlimit:4;" d="M 11.34125 13.57875 C 11.345 13.5925 11.3525 13.62375 11.36375 13.67375 C 11.3775 13.7225 11.3975 13.78125 11.42625 13.85 C 11.45375 13.9175 11.49375 13.9875 11.54625 14.0625 C 11.5975 14.13875 11.66625 14.20875 11.75 14.27125 C 11.83375 14.33625 11.9375 14.38875 12.0575 14.43125 C 12.1775 14.4725 12.32 14.49375 12.4875 14.49375 C 12.67875 14.49375 12.845 14.46125 12.9875 14.39375 C 13.13 14.32875 13.24875 14.245 13.34375 14.1425 C 13.43875 14.0425 13.51125 13.93 13.55875 13.8075 C 13.6075 13.6825 13.63125 13.56375 13.63125 13.4475 C 13.63125 13.31125 13.6075 13.1825 13.5625 13.065 C 13.515 12.9475 13.4425 12.845 13.3425 12.7575 C 13.2425 12.67 13.115 12.6 12.96 12.55 C 12.805 12.49875 12.6175 12.4725 12.4 12.4725 L 12.4 12.42625 C 12.57 12.42 12.72375 12.3925 12.8625 12.34375 C 13.0025 12.29625 13.11875 12.2275 13.21625 12.14375 C 13.31375 12.05875 13.3875 11.96 13.44125 11.845 C 13.4925 11.7275 13.52 11.60125 13.52 11.46 C 13.52 11.29375 13.4925 11.1525 13.43875 11.0325 C 13.38375 10.91375 13.31125 10.81625 13.21875 10.74 C 13.1275 10.66375 13.0225 10.6075 12.90375 10.5725 C 12.78625 10.535 12.66375 10.5175 12.5375 10.5175 C 12.395 10.5175 12.26125 10.54 12.14 10.58625 C 12.0175 10.6325 11.91 10.69625 11.81875 10.77875 C 11.72625 10.8625 11.64875 10.96 11.5875 11.07375 C 11.5275 11.18875 11.48625 11.315 11.4625 11.45375 M 7.5 14.4 L 7.5 10.5 L 8.3825 10.5 C 8.8075 10.5 9.13375 10.595 9.3625 10.78375 C 9.59 10.975 9.7025 11.2625 9.7025 11.65 C 9.7025 11.81625 9.6725 11.97125 9.6075 12.11125 C 9.5425 12.2525 9.4525 12.37375 9.335 12.475 C 9.21875 12.5775 9.0775 12.65625 8.9175 12.71375 C 8.75625 12.77125 8.5775 12.8 8.3825 12.8 L 7.6 12.8 M 2.4875 14.4675 L 2.4875 10.50375 L 2.5075 10.50375 C 2.5225 10.50375 2.53375 10.5125 2.5425 10.52625 L 3.9925 13.58625 C 3.99875 13.5975 4.005 13.6075 4.00875 13.6175 M 4.02125 13.6175 C 4.02625 13.6075 4.03125 13.5975 4.0375 13.58625 L 5.44 10.52625 C 5.4475 10.5125 5.45875 10.50375 5.4725 10.50375 L 5.4925 10.50375 L 5.4925 14.4675 " transform="matrix(3.125,0,0,3.125,0,0)"/>\n      </g>'},
mp4Icon:{extension:".mp4",path:'<g id="surface6" clip-path="url(#clip1)">\n      <path style=" stroke:none;fill-rule:evenodd;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 36.898438 40.625 L 40.625 35.480469 L 40.625 40.625 Z M 28.761719 36.40625 C 28.761719 36.703125 28.707031 36.964844 28.605469 37.195312 C 28.496094 37.433594 28.347656 37.632812 28.148438 37.804688 C 27.929688 37.992188 27.667969 38.144531 27.34375 38.257812 C 27.003906 38.375 26.621094 38.4375 26.191406 38.4375 L 25 38.4375 L 25 34.375 L 26.191406 34.375 C 27.140625 34.375 27.835938 34.554688 28.253906 34.902344 C 28.378906 35.007812 28.761719 35.324219 28.761719 36.40625 Z M 44.6875 43.75 L 43.75 43.75 L 43.75 45.3125 C 43.75 46.175781 43.050781 46.875 42.1875 46.875 C 41.324219 46.875 40.625 46.175781 40.625 45.3125 L 40.625 43.75 L 34.066406 43.75 C 33.199219 43.75 32.503906 43.050781 32.503906 42.1875 L 32.503906 41.875 C 32.503906 41.546875 32.605469 41.226562 32.800781 40.957031 L 39.363281 31.898438 C 39.660156 31.492188 40.128906 31.25 40.628906 31.25 L 42.1875 31.25 C 43.050781 31.25 43.75 31.949219 43.75 32.8125 L 43.75 40.625 L 44.6875 40.625 C 45.550781 40.625 46.25 41.324219 46.25 42.1875 C 46.25 43.050781 45.550781 43.75 44.6875 43.75 Z M 31.445312 38.492188 C 31.148438 39.140625 30.730469 39.703125 30.195312 40.167969 C 29.6875 40.605469 29.082031 40.957031 28.390625 41.203125 C 27.71875 41.441406 26.976562 41.5625 26.191406 41.5625 L 25 41.5625 L 25 45 C 25 45.863281 24.300781 46.5625 23.4375 46.5625 C 22.578125 46.5625 21.875 45.863281 21.875 45 L 21.875 32.8125 C 21.875 31.949219 22.578125 31.25 23.4375 31.25 L 26.191406 31.25 C 27.890625 31.25 29.257812 31.671875 30.253906 32.5 C 31.339844 33.398438 31.886719 34.714844 31.886719 36.40625 C 31.886719 37.148438 31.738281 37.851562 31.445312 38.492188 Z M 18.730469 45.210938 C 18.730469 46.070312 18.027344 46.773438 17.167969 46.773438 C 16.300781 46.773438 15.605469 46.070312 15.605469 45.210938 L 15.605469 39.6875 L 14.035156 43.105469 C 14.019531 43.144531 14.003906 43.179688 13.984375 43.214844 C 13.71875 43.78125 13.15625 44.117188 12.566406 44.117188 L 12.53125 44.117188 C 11.941406 44.117188 11.378906 43.78125 11.113281 43.214844 C 11.097656 43.183594 11.078125 43.152344 11.066406 43.125 L 9.339844 39.484375 L 9.339844 45.210938 C 9.339844 46.070312 8.640625 46.773438 7.777344 46.773438 C 6.910156 46.773438 6.214844 46.070312 6.214844 45.210938 L 6.214844 32.824219 C 6.214844 31.960938 6.910156 31.261719 7.777344 31.261719 L 7.835938 31.261719 C 8.472656 31.261719 9.046875 31.617188 9.335938 32.191406 L 9.355469 32.226562 L 12.523438 38.90625 L 15.578125 32.242188 C 15.585938 32.226562 15.597656 32.210938 15.605469 32.191406 C 15.894531 31.617188 16.46875 31.261719 17.105469 31.261719 L 17.164062 31.261719 C 18.027344 31.261719 18.726562 31.960938 18.726562 32.824219 L 18.726562 45.210938 Z M 41.382812 28.125 L 8.621094 28.125 C 3.859375 28.125 0 31.984375 0 36.742188 L 0 41.378906 C 0 46.140625 3.859375 50 8.621094 50 L 41.378906 50 C 46.140625 50 50 46.140625 50 41.382812 L 50 36.746094 C 50 31.984375 46.140625 28.125 41.382812 28.125 Z M 41.382812 28.125 "/>\n      </g>\n      </defs>\n      <g id="surface1">\n      <path style=" stroke:none;fill-rule:evenodd;fill:rgb(99.607843%,99.607843%,99.607843%);fill-opacity:1;" d="M 10.578125 25 L 39.421875 25 C 41.53125 25 43.527344 25.492188 45.3125 26.367188 L 45.3125 15.367188 C 45.3125 13.90625 44.976562 13.097656 43.984375 12.109375 C 42.996094 11.121094 35.105469 3.226562 34.503906 2.628906 C 33.90625 2.027344 33.070312 1.5625 31.617188 1.5625 L 6.5625 1.5625 C 5.527344 1.5625 4.6875 2.402344 4.6875 3.4375 L 4.6875 26.367188 C 6.476562 25.492188 8.472656 25 10.578125 25 "/>\n      <path style=" stroke:none;fill-rule:evenodd;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 34.375 4.710938 L 42.164062 12.5 L 34.515625 12.5 C 34.464844 12.46875 34.414062 12.425781 34.375 12.390625 Z M 6.25 25.722656 L 6.25 3.4375 C 6.25 3.265625 6.390625 3.125 6.5625 3.125 L 31.25 3.125 L 31.25 12.5 C 31.25 13.980469 32.496094 15.210938 33.742188 15.539062 C 33.902344 15.59375 34.074219 15.625 34.257812 15.625 L 43.75 15.625 L 43.75 25.722656 C 44.859375 26.105469 45.910156 26.625 46.875 27.269531 L 46.875 15.363281 C 46.875 13.511719 46.375 12.289062 45.089844 11.003906 L 35.609375 1.523438 C 34.582031 0.496094 33.273438 0 31.617188 0 L 6.5625 0 C 4.667969 0 3.125 1.542969 3.125 3.4375 L 3.125 27.269531 C 4.089844 26.625 5.140625 26.105469 6.25 25.722656 Z M 6.25 25.722656 "/>\n      <use xlink:href="#surface6" mask="url(#mask0)"/>\n      <path style="fill:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;stroke:rgb(99.607843%,99.607843%,99.607843%);stroke-opacity:1;stroke-miterlimit:4;" d="M 14.3 13.5 L 10.90125 13.5 L 10.90125 13.4 L 13.00125 10.5 L 13.5 10.5 L 13.5 14.5 M 7.5 14.4 L 7.5 10.5 L 8.3825 10.5 C 8.8075 10.5 9.13375 10.595 9.3625 10.78375 C 9.59 10.975 9.7025 11.2625 9.7025 11.65 C 9.7025 11.81625 9.6725 11.97125 9.6075 12.11125 C 9.5425 12.2525 9.4525 12.37375 9.335 12.47625 C 9.21875 12.5775 9.0775 12.65625 8.9175 12.71375 C 8.75625 12.77125 8.5775 12.8 8.3825 12.8 L 7.6 12.8 M 2.4875 14.4675 L 2.4875 10.50375 L 2.5075 10.50375 C 2.5225 10.50375 2.53375 10.5125 2.5425 10.52625 L 3.9925 13.58625 C 3.99875 13.5975 4.005 13.6075 4.00875 13.6175 M 4.02125 13.6175 C 4.02625 13.6075 4.03125 13.5975 4.0375 13.58625 L 5.44 10.52625 C 5.4475 10.5125 5.45875 10.50375 5.4725 10.50375 L 5.4925 10.50375 L 5.4925 14.4675 " transform="matrix(3.125,0,0,3.125,0,0)"/>\n      </g>'},
oggIcon:{extension:".ogg",path:'<g id="surface9" clip-path="url(#clip1)">\n      <path style=" stroke:none;fill-rule:evenodd;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 8.621094 28.125 C 3.859375 28.125 0 31.984375 0 36.742188 L 0 41.378906 C 0 46.140625 3.859375 50 8.621094 50 L 41.378906 50 C 46.140625 50 50 46.140625 50 41.382812 L 50 36.746094 C 50 31.984375 46.140625 28.125 41.382812 28.125 Z M 8.621094 28.125 "/>\n      </g>\n      </defs>\n      <g id="surface1">\n      <path style=" stroke:none;fill-rule:evenodd;fill:rgb(99.607843%,99.607843%,99.607843%);fill-opacity:1;" d="M 10.578125 25 L 39.421875 25 C 41.53125 25 43.527344 25.492188 45.3125 26.367188 L 45.3125 15.367188 C 45.3125 13.90625 44.976562 13.097656 43.984375 12.109375 C 42.996094 11.121094 35.105469 3.226562 34.503906 2.628906 C 33.90625 2.027344 33.070312 1.5625 31.617188 1.5625 L 6.5625 1.5625 C 5.527344 1.5625 4.6875 2.402344 4.6875 3.4375 L 4.6875 26.367188 C 6.476562 25.492188 8.472656 25 10.578125 25 "/>\n      <path style=" stroke:none;fill-rule:evenodd;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 34.375 4.710938 L 42.164062 12.5 L 34.515625 12.5 C 34.464844 12.46875 34.414062 12.425781 34.375 12.390625 Z M 6.25 25.722656 L 6.25 3.4375 C 6.25 3.265625 6.390625 3.125 6.5625 3.125 L 31.25 3.125 L 31.25 12.5 C 31.25 13.980469 32.496094 15.210938 33.742188 15.539062 C 33.902344 15.59375 34.074219 15.625 34.257812 15.625 L 43.75 15.625 L 43.75 25.722656 C 44.859375 26.105469 45.910156 26.625 46.875 27.269531 L 46.875 15.363281 C 46.875 13.511719 46.375 12.289062 45.089844 11.003906 L 35.609375 1.523438 C 34.582031 0.496094 33.273438 0 31.617188 0 L 6.5625 0 C 4.667969 0 3.125 1.542969 3.125 3.4375 L 3.125 27.269531 C 4.089844 26.625 5.140625 26.105469 6.25 25.722656 Z M 6.25 25.722656 "/>\n      <use xlink:href="#surface9" mask="url(#mask0)"/>\n      <path style=" stroke:none;fill-rule:nonzero;fill:rgb(100%,100%,100%);fill-opacity:1;" d="M 8.976562 47.070312 C 10.464844 47.070312 11.757812 46.75 12.859375 46.109375 C 13.960938 45.46875 14.808594 44.550781 15.40625 43.351562 C 16.003906 42.15625 16.304688 40.757812 16.304688 39.152344 C 16.304688 37.550781 16.007812 36.152344 15.417969 34.964844 C 14.828125 33.777344 13.980469 32.859375 12.882812 32.21875 C 11.78125 31.578125 10.480469 31.257812 8.976562 31.257812 C 7.472656 31.257812 6.167969 31.578125 5.0625 32.21875 C 3.953125 32.859375 3.101562 33.777344 2.511719 34.964844 C 1.921875 36.152344 1.625 37.550781 1.625 39.152344 C 1.625 40.757812 1.925781 42.15625 2.523438 43.351562 C 3.121094 44.550781 3.972656 45.46875 5.070312 46.109375 C 6.171875 46.75 7.472656 47.070312 8.976562 47.070312 Z M 8.976562 44.820312 C 7.546875 44.820312 6.433594 44.332031 5.640625 43.351562 C 4.847656 42.375 4.449219 40.976562 4.449219 39.152344 C 4.449219 37.332031 4.847656 35.933594 5.640625 34.964844 C 6.433594 33.996094 7.546875 33.507812 8.976562 33.507812 C 10.390625 33.507812 11.496094 33.996094 12.289062 34.964844 C 13.085938 35.933594 13.484375 37.332031 13.484375 39.152344 C 13.484375 40.976562 13.085938 42.375 12.289062 43.351562 C 11.496094 44.332031 10.390625 44.820312 8.976562 44.820312 Z M 26.410156 47.070312 C 27.125 47.070312 27.871094 47.011719 28.640625 46.898438 C 29.414062 46.78125 30.09375 46.621094 30.675781 46.414062 C 31.214844 46.242188 31.574219 46.015625 31.75 45.738281 C 31.921875 45.460938 32.011719 44.988281 32.011719 44.316406 L 32.011719 39.613281 C 32.011719 39.292969 31.910156 39.03125 31.703125 38.835938 C 31.5 38.640625 31.230469 38.539062 30.894531 38.539062 L 27.023438 38.539062 C 26.671875 38.539062 26.398438 38.628906 26.203125 38.804688 C 26.007812 38.976562 25.90625 39.226562 25.90625 39.546875 C 25.90625 39.867188 26.007812 40.117188 26.203125 40.289062 C 26.398438 40.464844 26.671875 40.554688 27.023438 40.554688 L 29.496094 40.554688 L 29.496094 44.425781 C 28.503906 44.703125 27.511719 44.839844 26.519531 44.839844 C 23.195312 44.839844 21.53125 42.945312 21.53125 39.152344 C 21.53125 37.300781 21.9375 35.90625 22.746094 34.964844 C 23.554688 34.023438 24.753906 33.554688 26.34375 33.554688 C 27.046875 33.554688 27.671875 33.644531 28.226562 33.828125 C 28.78125 34.007812 29.378906 34.324219 30.019531 34.777344 C 30.195312 34.894531 30.347656 34.980469 30.480469 35.03125 C 30.609375 35.082031 30.757812 35.105469 30.917969 35.105469 C 31.164062 35.105469 31.375 34.996094 31.550781 34.777344 C 31.726562 34.558594 31.8125 34.289062 31.8125 33.96875 C 31.8125 33.75 31.773438 33.558594 31.695312 33.398438 C 31.613281 33.238281 31.484375 33.078125 31.3125 32.917969 C 30 31.808594 28.3125 31.257812 26.257812 31.257812 C 24.710938 31.257812 23.371094 31.574219 22.234375 32.207031 C 21.09375 32.84375 20.214844 33.753906 19.597656 34.941406 C 18.976562 36.128906 18.667969 37.535156 18.667969 39.152344 C 18.667969 40.800781 18.976562 42.21875 19.597656 43.40625 C 20.214844 44.597656 21.109375 45.503906 22.277344 46.132812 C 23.441406 46.757812 24.820312 47.070312 26.410156 47.070312 Z M 42.445312 47.070312 C 43.160156 47.070312 43.902344 47.011719 44.675781 46.898438 C 45.449219 46.78125 46.128906 46.621094 46.710938 46.414062 C 47.25 46.242188 47.609375 46.015625 47.78125 45.738281 C 47.957031 45.460938 48.046875 44.988281 48.046875 44.316406 L 48.046875 39.613281 C 48.046875 39.292969 47.941406 39.03125 47.738281 38.835938 C 47.535156 38.640625 47.265625 38.539062 46.929688 38.539062 L 43.058594 38.539062 C 42.707031 38.539062 42.433594 38.628906 42.238281 38.804688 C 42.039062 38.976562 41.941406 39.226562 41.941406 39.546875 C 41.941406 39.867188 42.039062 40.117188 42.238281 40.289062 C 42.433594 40.464844 42.707031 40.554688 43.058594 40.554688 L 45.53125 40.554688 L 45.53125 44.425781 C 44.539062 44.703125 43.546875 44.839844 42.554688 44.839844 C 39.230469 44.839844 37.566406 42.945312 37.566406 39.152344 C 37.566406 37.300781 37.972656 35.90625 38.78125 34.964844 C 39.589844 34.023438 40.789062 33.554688 42.378906 33.554688 C 43.078125 33.554688 43.707031 33.644531 44.261719 33.828125 C 44.816406 34.007812 45.414062 34.324219 46.054688 34.777344 C 46.230469 34.894531 46.382812 34.980469 46.515625 35.03125 C 46.644531 35.082031 46.792969 35.105469 46.953125 35.105469 C 47.199219 35.105469 47.410156 34.996094 47.585938 34.777344 C 47.761719 34.558594 47.847656 34.289062 47.847656 33.96875 C 47.847656 33.75 47.808594 33.558594 47.726562 33.398438 C 47.648438 33.238281 47.519531 33.078125 47.34375 32.917969 C 46.03125 31.808594 44.347656 31.257812 42.292969 31.257812 C 40.746094 31.257812 39.40625 31.574219 38.265625 32.207031 C 37.128906 32.84375 36.25 33.753906 35.632812 34.941406 C 35.011719 36.128906 34.703125 37.535156 34.703125 39.152344 C 34.703125 40.800781 35.011719 42.21875 35.632812 43.40625 C 36.25 44.597656 37.144531 45.503906 38.3125 46.132812 C 39.476562 46.757812 40.855469 47.070312 42.445312 47.070312 Z M 42.445312 47.070312 "/>\n      </g>'},
pdfIcon:{extension:".pdf",path:'<g id="surface1">\n      <path style=" stroke:none;fill-rule:evenodd;fill:rgb(99.607843%,99.607843%,99.607843%);fill-opacity:1;" d="M 10.59375 25 L 39.4375 25 C 41.476562 25.003906 43.484375 25.472656 45.3125 26.375 L 45.3125 15.375 C 45.347656 14.191406 44.867188 13.054688 44 12.25 L 34.625 2.875 C 33.875 2.003906 32.773438 1.523438 31.625 1.5625 L 6.625 1.5625 C 5.589844 1.5625 4.75 2.402344 4.75 3.4375 L 4.75 26.375 C 6.566406 25.480469 8.566406 25.007812 10.59375 25 "/>\n      <path style=" stroke:none;fill-rule:evenodd;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 34.375 4.71875 L 42.15625 12.5 L 34.53125 12.5 C 34.480469 12.511719 34.425781 12.511719 34.375 12.5 Z M 6.25 25.71875 L 6.25 3.4375 C 6.25 3.265625 6.390625 3.125 6.5625 3.125 L 31.25 3.125 L 31.25 12.5 C 31.300781 13.980469 32.316406 15.253906 33.75 15.625 C 33.957031 15.675781 34.167969 15.675781 34.375 15.625 L 43.75 15.625 L 43.75 25.71875 C 44.859375 26.09375 45.910156 26.621094 46.875 27.28125 L 46.875 15.375 C 46.964844 13.722656 46.3125 12.117188 45.09375 11 L 35.71875 1.625 C 34.648438 0.523438 33.160156 -0.0664062 31.625 0 L 6.625 0 C 5.703125 -0.015625 4.8125 0.339844 4.152344 0.984375 C 3.496094 1.632812 3.125 2.515625 3.125 3.4375 L 3.125 27.28125 C 4.09375 26.625 5.144531 26.101562 6.25 25.71875 Z M 6.25 25.71875 "/>\n      <path style=" stroke:none;fill-rule:evenodd;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 8.625 28.125 C 6.335938 28.117188 4.136719 29.023438 2.515625 30.640625 C 0.898438 32.261719 -0.0078125 34.460938 0 36.75 L 0 41.375 C 0 46.136719 3.863281 50 8.625 50 L 41.375 50 C 46.132812 49.984375 49.984375 46.132812 50 41.375 L 50 36.75 C 50 31.988281 46.136719 28.125 41.375 28.125 Z M 8.625 28.125 "/>\n      <path style=" stroke:none;fill-rule:nonzero;fill:rgb(100%,100%,100%);fill-opacity:1;" d="M 14.40625 41.78125 L 12.09375 41.78125 L 12.09375 45.84375 C 12.003906 46.351562 11.5625 46.726562 11.046875 46.726562 C 10.53125 46.726562 10.089844 46.351562 10 45.84375 L 10 34.78125 C 10 34.210938 10.460938 33.75 11.03125 33.75 L 14.40625 33.75 C 15.925781 33.617188 17.390625 34.351562 18.191406 35.648438 C 18.992188 36.945312 18.992188 38.585938 18.191406 39.882812 C 17.390625 41.179688 15.925781 41.914062 14.40625 41.78125 Z M 12.09375 39.6875 L 14.40625 39.6875 C 15.152344 39.78125 15.882812 39.4375 16.289062 38.804688 C 16.691406 38.171875 16.691406 37.359375 16.289062 36.726562 C 15.882812 36.09375 15.152344 35.75 14.40625 35.84375 L 12.09375 35.84375 Z M 12.09375 39.6875 "/>\n      <path style=" stroke:none;fill-rule:nonzero;fill:rgb(100%,100%,100%);fill-opacity:1;" d="M 20.3125 45.84375 L 20.3125 34.78125 C 20.3125 34.210938 20.773438 33.75 21.34375 33.75 L 23.5625 33.75 C 27.1875 33.75 30.125 36.6875 30.125 40.3125 C 30.125 43.9375 27.1875 46.875 23.5625 46.875 L 21.34375 46.875 C 20.773438 46.875 20.3125 46.414062 20.3125 45.84375 Z M 22.40625 44.78125 L 23.5625 44.78125 C 26.03125 44.78125 28.03125 42.78125 28.03125 40.3125 C 28.03125 37.84375 26.03125 35.84375 23.5625 35.84375 L 22.40625 35.84375 Z M 22.40625 44.78125 "/>\n      <path style=" stroke:none;fill-rule:nonzero;fill:rgb(100%,100%,100%);fill-opacity:1;" d="M 33.1875 45.84375 L 33.1875 34.78125 C 33.183594 34.476562 33.3125 34.1875 33.542969 33.992188 C 33.769531 33.792969 34.074219 33.703125 34.375 33.75 L 40.625 33.75 C 41.132812 33.839844 41.507812 34.28125 41.507812 34.796875 C 41.507812 35.3125 41.132812 35.753906 40.625 35.84375 L 35.25 35.84375 L 35.25 39.28125 L 39.625 39.28125 C 40.195312 39.28125 40.65625 39.742188 40.65625 40.3125 C 40.65625 40.882812 40.195312 41.34375 39.625 41.34375 L 35.25 41.34375 L 35.25 45.84375 C 35.257812 46.359375 34.882812 46.796875 34.375 46.875 C 34.074219 46.921875 33.769531 46.832031 33.542969 46.632812 C 33.3125 46.4375 33.183594 46.148438 33.1875 45.84375 Z M 33.1875 45.84375 "/>\n      </g>'},
defaultIcon:{extension:".default",path:'<g id="surface1">\n      <path style=" stroke:none;fill-rule:evenodd;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 3.117188 44.777344 C 1.394531 44.777344 0 43.386719 0 41.671875 L 0 3.484375 C 0 1.769531 1.394531 0.378906 3.117188 0.378906 L 25.792969 0.378906 C 27.164062 0.304688 28.5 0.808594 29.480469 1.765625 L 37.980469 10.230469 C 39.144531 11.242188 39.769531 12.730469 39.683594 14.265625 L 39.683594 41.671875 C 39.683594 43.386719 38.289062 44.777344 36.5625 44.777344 Z M 25.511719 3.203125 L 3.117188 3.203125 C 2.960938 3.203125 2.832031 3.328125 2.832031 3.484375 L 2.832031 41.671875 C 2.832031 41.828125 2.960938 41.957031 3.117188 41.957031 L 36.5625 41.957031 C 36.679688 41.949219 36.785156 41.867188 36.820312 41.757812 L 36.820312 14.492188 L 28.34375 14.492188 C 28.160156 14.539062 27.964844 14.539062 27.777344 14.492188 C 26.480469 14.15625 25.554688 13.007812 25.511719 11.671875 Z M 28.34375 4.640625 L 28.34375 11.671875 C 28.390625 11.683594 28.441406 11.683594 28.488281 11.671875 L 35.402344 11.671875 Z M 28.34375 4.640625 "/>\n      </g>'}};
c.MODULES.modals=function(a){function b(b,d){var e='<div tabIndex="-1" class="fr-modal'.concat(a.opts.theme?" ".concat(a.opts.theme,"-theme"):"",'"><div class="fr-modal-wrapper">'),f='<button title="'.concat(a.language.translate("Cancel"),'" class="fr-command fr-btn fr-modal-close"><svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 24 24"><path d="').concat(c.SVG.close,'"/></svg></button>');e+='<div class="fr-modal-head">'.concat(b).concat(f,"</div>");e+='<div tabIndex="-1" class="fr-modal-body">'.concat(d,
"</div>");e+="</div></div>";b=n(a.doc.createElement("DIV"));b.html(e);return b.find("> .fr-modal")}function d(){for(var a in p)if(Object.prototype.hasOwnProperty.call(p,a)){var b=p[a];b&&b.$modal&&b.$modal.removeData().remove()}m&&m.removeData().remove();p={}}function f(b,c){if(p[b]){b=p[b].$modal;var d=b.data("instance")||a;d.events.enableBlur();b.hide();m.hide();n(d.o_doc).find("body").first().removeClass("fr-prevent-scroll fr-mobile");b.removeClass("fr-active");c||(d.accessibility.restoreSelection(),
d.events.trigger("modals.hide"))}}function l(b){if("string"===typeof b){if(!p[b])return;b=p[b].$modal}return b&&a.node.hasClass(b,"fr-active")&&a.core.sameInstance(b)||!1}var n=a.$;a.shared.modals||(a.shared.modals={});var p=a.shared.modals,m;return{_init:function(){a.events.on("shared.destroy",d,!0)},get:function(a){return p[a]},create:function(d,e,g){e='<div class="fr-modal-head-line">'.concat(e,"</div>");a.shared.$overlay||(a.shared.$overlay=n(a.doc.createElement("DIV")).addClass("fr-overlay"),
n("body").first().append(a.shared.$overlay));m=a.shared.$overlay;a.opts.theme&&m.addClass("".concat(a.opts.theme,"-theme"));if(!p[d]){var l=b(e,g);p[d]={$modal:l,$head:l.find(".fr-modal-head"),$body:l.find(".fr-modal-body")};a.helpers.isMobile()||l.addClass("fr-desktop");n("body").first().append(l);a.events.$on(l,"click",".fr-modal-close",function(){f(d)},!0);p[d].$body.css("margin-top",p[d].$head.outerHeight());a.events.$on(l,"keydown",function(b){var e=b.which;return e===c.KEYCODE.ESC?(f(d),a.accessibility.focusModalButton(l),
!1):n(b.currentTarget).is("input[type=text], textarea")||e===c.KEYCODE.ARROW_UP||e===c.KEYCODE.ARROW_DOWN||a.keys.isBrowserAction(b)?!0:(b.preventDefault(),b.stopPropagation(),!1)},!0);f(d,!0)}return p[d]},show:function(b){p[b]&&(b=p[b].$modal,b.data("instance",a),b.show(),m.show(),n(a.o_doc).find("body").first().addClass("fr-prevent-scroll"),a.helpers.isMobile()&&n(a.o_doc).find("body").first().addClass("fr-mobile"),b.addClass("fr-active"),a.accessibility.focusModal(b))},hide:f,resize:function(b){if(p[b]){var c=
p[b];b=c.$body;var d=a.o_win.innerHeight,e=c.$modal.find(".fr-modal-wrapper");c=e.outerHeight(!0);e=e.height()-(b.outerHeight(!0)-b.height());d=d-c+e;c="auto";b.get(0).scrollHeight>d&&(c=d);b.height(c)}},isVisible:l,areVisible:function(a){for(var b in p)if(Object.prototype.hasOwnProperty.call(p,b)&&l(b)&&("undefined"===typeof a||p[b].$modal.data("instance")===a))return p[b].$modal;return!1}}};c.MODULES.position=function(a){function b(){var b=a.selection.ranges(0),d=b.getBoundingClientRect();if(0===
d.top&&0===d.left&&0===d.width||0===d.height){var e=!1,f=a.opts.toolbarInline&&b.startContainer&&b.startContainer.firstChild&&"BR"===b.startContainer.firstChild.tagName;0===a.$el.find(".fr-marker").length&&(f?t(b.startContainer.firstChild).after(c.MARKERS):a.selection.save(),e=!0);d=a.$el.find(".fr-marker").first();d.css("display","inline");d.css("line-height","");b=d.offset();var g=d.outerHeight();d.css("display","none");d.css("line-height",0);d={};d.left=b&&b.left;d.width=0;d.height=g;d.top=b&&
b.top-(a.helpers.isMobile()&&!a.helpers.isIOS()||a.opts.iframe?0:a.helpers.scrollTop());d.right=1;d.bottom=1;d.ok=!0;e&&(f?a.$el.find(".fr-marker").remove():a.selection.restore())}return d}function d(b,c,d){var e=b.outerHeight(!0);if(!a.helpers.isMobile()&&a.$tb&&b.parent().get(0)!==a.$tb.get(0)){var f=b.parent().offset().top;d=c-e-(d||0);b.parent().get(0)===a.$sc.get(0)&&(f-=b.parent().position().top);var g=a.$sc.get(0).clientHeight;f+c+e>a.$sc.offset().top+g&&0<b.parent().offset().top+d&&0<d?d>
a.$wp.scrollTop()&&(c=d,b.addClass("fr-above")):b.removeClass("fr-above")}return c}function f(b,c,e,f){var g=e.data("container");!g||"BODY"===g.get(0).tagName&&"static"===g.css("position")||(b&&(b-=g.offset().left),c&&(c-=g.offset().top),"BODY"!==g.get(0).tagName?(b&&(b+=g.get(0).scrollLeft),c&&(c+=g.get(0).scrollTop)):"absolute"===g.css("position")&&(b&&(b+=g.position().left),c&&(c+=g.position().top)));if(a.opts.iframe&&g&&a.$tb&&g.get(0)!==a.$tb.get(0)){g=a.helpers.getPX(a.$wp.find(".fr-iframe").css("padding-top"));
var l=a.helpers.getPX(a.$wp.find(".fr-iframe").css("padding-left"));b&&(b+=a.$iframe.offset().left+l);c&&(c+=a.$iframe.offset().top+g)}g=b;l=e.outerWidth(!0);g+l>a.$sc.get(0).clientWidth-10&&(g=a.$sc.get(0).clientWidth-l-10);0>g&&(g=10);b&&e.css("left",g);c&&e.css("top",d(e,c,f))}function l(b){var c=t(b),d=c.is(".fr-sticky-on"),e=c.data("sticky-top"),f=c.data("sticky-scheduled");if("undefined"===typeof e){c.data("sticky-top",0);var g=t('<div class="fr-sticky-dummy" style="height: '.concat(c.outerHeight(),
'px;"></div>'));a.$box.prepend(g)}else a.$box.find(".fr-sticky-dummy").css("height",c.outerHeight());a.core.hasFocus()||0<a.$tb.findVisible("input:focus").length?(b=a.helpers.scrollTop(),g=Math.min(Math.max(b-a.$tb.parent().offset().top,0),a.$tb.parent().outerHeight()-c.outerHeight()),g!==e&&g!==f&&(clearTimeout(c.data("sticky-timeout")),c.data("sticky-scheduled",g),c.outerHeight()<b-a.$tb.parent().offset().top&&c.addClass("fr-opacity-0"),c.data("sticky-timeout",setTimeout(function(){var b=a.helpers.scrollTop();
b=Math.min(Math.max(b-a.$tb.parent().offset().top,0),a.$tb.parent().outerHeight()-c.outerHeight());0<b&&"BODY"===a.$tb.parent().get(0).tagName&&(b+=a.$tb.parent().position().top);b!==e&&(c.css("top",Math.max(b,0)),c.data("sticky-top",b),c.data("sticky-scheduled",b));c.removeClass("fr-opacity-0")},100))),d||(d=a.$tb.parent(),f=d.get(0).offsetWidth-d.get(0).clientWidth,c.css("top","0"),c.width(d.width()-f),c.addClass("fr-sticky-on"),a.$box.addClass("fr-sticky-box"))):(clearTimeout(t(b).css("sticky-timeout")),
c.css("top","0"),c.css("position",""),c.css("width",""),c.data("sticky-top",0),c.removeClass("fr-sticky-on"),a.$box.removeClass("fr-sticky-box"))}function n(){a.helpers.requestAnimationFrame()(n);if(!1!==a.events.trigger("position.refresh"))for(var b=0;b<a._stickyElements.length;b++)if(a.opts.toolbarBottom){var c=a.$tb.parent(),d=c.get(0).offsetWidth-c.get(0).clientWidth,e=t(a._stickyElements[b]);e.width(c.width()-d);e.addClass("fr-sticky-on");a.$box.addClass("fr-sticky-box")}else l(a._stickyElements[b])}
function p(){a._stickyElements=[];if(8>=a.helpers.getIOSVersion())n(),a.events.$on(t(a.o_win),"scroll",function(){if(a.core.hasFocus())for(var b=0;b<a._stickyElements.length;b++){var c=t(a._stickyElements[b]),d=c.parent(),e=a.helpers.scrollTop();!(c.outerHeight()<e-d.offset().top)||a.opts.toolbarBottom&&a.helpers.isIOS()||(c.addClass("fr-opacity-0"),c.data("sticky-top",-1),c.data("sticky-scheduled",-1))}},!0);else{"body"!==a.opts.scrollableContainer&&a.events.$on(t(a.opts.scrollableContainer),"scroll",
m,!0);a.events.$on(t(a.o_win),"scroll",m,!0);a.events.$on(t(a.o_win),"resize",m,!0);a.events.on("initialized",m);a.events.on("focus",m);a.events.$on(t(a.o_win),"resize","textarea",m,!0);var b=t(a.el).parents(".modal");b.get(0)&&a.events.$on(b,"scroll",m,!0)}a.events.on("destroy",function(){a._stickyElements=[]})}function m(){if(a._stickyElements)for(var b=0;b<a._stickyElements.length;b++){var c=a._stickyElements[b];if(c.offsetWidth){c=t(c);var d=c.outerHeight(),e=c.data("sticky-position"),f=t("body"===
a.opts.scrollableContainer?a.o_win:a.opts.scrollableContainer).outerHeight(),g=0,l=0;"body"!==a.opts.scrollableContainer&&(g=a.$sc.offset().top,l=t(a.o_win).outerHeight()-g-f);var n="body"===a.opts.scrollableContainer?a.helpers.scrollTop():g,p=c.is(".fr-sticky-on");c.data("sticky-parent")||c.data("sticky-parent",c.parent());var m=c.data("sticky-parent"),k=m.offset().top,B=m.outerHeight();c.data("sticky-offset")?a.$box.find(".fr-sticky-dummy").css("height","".concat(d,"px")):(c.data("sticky-offset",
!0),c.after('<div class="fr-sticky-dummy" style="height: '.concat(d,'px;"></div>')));if(!e){var u="auto"!==c.css("top")||"auto"!==c.css("bottom");u||c.css("position","fixed");e={top:a.node.hasClass(c.get(0),"fr-top"),bottom:a.node.hasClass(c.get(0),"fr-bottom")};u||c.css("position","");c.data("sticky-position",e);c.data("top",a.node.hasClass(c.get(0),"fr-top")?c.css("top"):"auto");c.data("bottom",a.node.hasClass(c.get(0),"fr-bottom")?c.css("bottom"):"auto")}var h=a.helpers.getPX(c.data("top"));u=
a.helpers.getPX(c.data("bottom"));h=e.top&&k<n+h&&k+B-d>=n+h&&(a.helpers.isInViewPort(a.$sc.get(0))||"body"===a.opts.scrollableContainer);d=e.bottom&&k+d<n+f-u&&k+B>n+f-u;h||d?(e=m.get(0).offsetWidth-m.get(0).clientWidth,c.css("width","".concat(m.get(0).getBoundingClientRect().width-e,"px")),p||(c.addClass("fr-sticky-on"),c.removeClass("fr-sticky-off"),c.css("top")&&("auto"!==c.data("top")?c.css("top",a.helpers.getPX(c.data("top"))+g):c.data("top","auto")),c.css("bottom")&&("auto"!==c.data("bottom")?
c.css("bottom",a.helpers.getPX(c.data("bottom"))+l):c.css("bottom","auto")))):a.node.hasClass(c.get(0),"fr-sticky-off")||(c.css("width",""),c.removeClass("fr-sticky-on"),c.addClass("fr-sticky-off"),c.css("top")&&"auto"!==c.data("top")&&e.top&&c.css("top",0),c.css("bottom")&&"auto"!==c.data("bottom")&&e.bottom&&c.css("bottom",0))}}}var t=a.$;return{_init:function(){p()},forSelection:function(c){var d=b();if(void 0!=d.top){c.css({top:0,left:0});var e=d.top+d.height,g=d.left+d.width/2-c.get(0).offsetWidth/
2+a.helpers.scrollLeft();a.opts.iframe||(e+=a.helpers.scrollTop());f(g,e,c,d.height)}},addSticky:function(b){b.addClass("fr-sticky");a.helpers.isIOS()&&!a.opts.toolbarBottom&&b.addClass("fr-sticky-ios");b.removeClass("fr-sticky");a._stickyElements.push(b.get(0))},refresh:m,at:f,getBoundingRect:b}};c.MODULES.refresh=function(a){function b(a,b){a.toggleClass("fr-disabled",b).attr("aria-disabled",b)}function c(b){var c=a.$tb.find('.fr-more-toolbar[data-name="'.concat(b.attr("data-group-name"),'"]'));
b=d(b,c);"rtl"===a.opts.direction?c.css("padding-right",b):c.css("padding-left",b)}function d(b,c){var d=0;c=c.find("> .fr-command, > .fr-btn-wrap");c.each(function(a,b){d+=f(b).outerWidth()});var e=a.helpers.getPX(f(c[0]).css("margin-left")),g=a.helpers.getPX(f(c[0]).css("margin-right"));var l="rtl"===a.opts.direction?a.$tb.outerWidth()-b.offset().left+a.$tb.offset().left-(d+b.outerWidth()+c.length*(e+g))/2:b.offset().left-a.$tb.offset().left-(d-b.outerWidth()+c.length*(e+g))/2;l+d+c.length*(e+g)>
a.$tb.outerWidth()&&(l-=(d+c.length*(e+g)-b.outerWidth())/2);0>l&&(l=0);return l}var f=a.$;return{undo:function(c){b(c,!a.undo.canDo())},redo:function(c){b(c,!a.undo.canRedo())},outdent:function(c){if(a.node.hasClass(c.get(0),"fr-no-refresh")||f("button#markdown-".concat(a.id,".fr-active")).length)return!1;for(var d=a.selection.blocks(),e=0;e<d.length;e++){var g="rtl"===a.opts.direction||"rtl"===f(d[e]).css("direction")?"margin-right":"margin-left",l=d[0].parentElement;if(0>"HTML P DIV UL OL LI TR BLOCKQUOTE BODY".split(" ").indexOf(l.parentNode.tagName)||
d[0].previousSibling&&"none"==l.parentNode.style.listStyleType)return b(c,!0),!0;if("LI"===d[e].tagName||"LI"===d[e].parentNode.tagName||0<a.helpers.getPX(f(d[e]).css(g)))return b(c,!1),!0}b(c,!0)},indent:function(c){if(a.node.hasClass(c.get(0),"fr-no-refresh")||f("button#markdown-".concat(a.id,".fr-active")).length)return!1;for(var d=a.selection.blocks(),e=0;e<d.length;e++){for(var g=d[e].previousSibling;g&&g.nodeType===Node.TEXT_NODE&&0===g.textContent.length;)g=g.previousSibling;if("LI"!==d[e].tagName||
g)return b(c,!1),!0;b(c,!0)}},moreText:c,moreParagraph:c,moreMisc:c,moreRich:c}};Object.assign(c.DEFAULTS,{attribution:!0,toolbarBottom:!1,toolbarButtons:null,toolbarButtonsXS:null,toolbarButtonsSM:null,toolbarButtonsMD:null,toolbarContainer:null,toolbarInline:!1,toolbarSticky:!0,toolbarStickyOffset:0,toolbarVisibleWithoutSelection:!1,toolbarResponsiveToEditor:!1});c.TOOLBAR_BUTTONS={moreText:{buttons:"bold italic underline strikeThrough subscript superscript fontFamily fontSize textColor backgroundColor inlineClass inlineStyle clearFormatting".split(" ")},
moreParagraph:{buttons:"alignLeft alignCenter formatOLSimple alignRight alignJustify formatOL formatUL paragraphFormat paragraphStyle lineHeight outdent indent quote".split(" ")},moreRich:{buttons:"trackChanges markdown insertLink insertFiles insertImage insertVideo insertTable emoticons fontAwesome specialCharacters embedly insertFile insertHR".split(" "),buttonsVisible:4},moreMisc:{buttons:"undo redo fullscreen print getPDF spellChecker selectAll html help".split(" "),align:"right",buttonsVisible:2},
trackChanges:{buttons:["showChanges","applyAll","removeAll","applyLast","removeLast"],buttonsVisible:0}};c.TOOLBAR_BUTTONS_MD=null;c.TOOLBAR_BUTTONS_SM={};c.TOOLBAR_BUTTONS_SM.moreText=Object.assign({},c.TOOLBAR_BUTTONS.moreText,{buttonsVisible:2});c.TOOLBAR_BUTTONS_SM.moreParagraph=Object.assign({},c.TOOLBAR_BUTTONS.moreParagraph,{buttonsVisible:2});c.TOOLBAR_BUTTONS_SM.moreRich=Object.assign({},c.TOOLBAR_BUTTONS.moreRich,{buttonsVisible:2});c.TOOLBAR_BUTTONS_SM.moreMisc=Object.assign({},c.TOOLBAR_BUTTONS.moreMisc,
{buttonsVisible:2});c.TOOLBAR_BUTTONS_SM.trackChanges=Object.assign({},c.TOOLBAR_BUTTONS.trackChanges,{buttonsVisible:0});c.TOOLBAR_BUTTONS_XS={};c.TOOLBAR_BUTTONS_XS.moreText=Object.assign({},c.TOOLBAR_BUTTONS.moreText,{buttonsVisible:0});c.TOOLBAR_BUTTONS_XS.moreParagraph=Object.assign({},c.TOOLBAR_BUTTONS.moreParagraph,{buttonsVisible:0});c.TOOLBAR_BUTTONS_XS.moreRich=Object.assign({},c.TOOLBAR_BUTTONS.moreRich,{buttonsVisible:0});c.TOOLBAR_BUTTONS_XS.moreMisc=Object.assign({},c.TOOLBAR_BUTTONS.moreMisc,
{buttonsVisible:2});c.TOOLBAR_BUTTONS_XS.trackChanges=Object.assign({},c.TOOLBAR_BUTTONS.trackChanges,{buttonsVisible:0});c.POWERED_BY='<a id="fr-logo" href="https://froala.com/wysiwyg-editor" target="_blank" title="Froala WYSIWYG HTML Editor"><span>Powered by</span><svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 822.8 355.33"><defs><style>.fr-logo{fill:#b1b2b7;}</style></defs><title>Froala</title><path class="fr-logo" d="M123.58,78.65A16.16,16.16,0,0,0,111.13,73H16.6C7.6,73,0,80.78,0,89.94V128.3a16.45,16.45,0,0,0,32.9,0V104.14h78.5A15.63,15.63,0,0,0,126.87,91.2,15.14,15.14,0,0,0,123.58,78.65Z"/><path class="fr-logo" d="M103.54,170a16.05,16.05,0,0,0-11.44-4.85H15.79A15.81,15.81,0,0,0,0,180.93v88.69a16.88,16.88,0,0,0,5,11.92,16,16,0,0,0,11.35,4.7h.17a16.45,16.45,0,0,0,16.41-16.6v-73.4H92.2A15.61,15.61,0,0,0,107.89,181,15.1,15.1,0,0,0,103.54,170Z"/><path class="fr-logo" d="M233,144.17c-5.29-6.22-16-7.52-24.14-7.52-16.68,0-28.72,7.71-36.5,23.47v-5.67a16.15,16.15,0,1,0-32.3,0v115.5a16.15,16.15,0,1,0,32.3,0v-38.7c0-19.09,3.5-63.5,35.9-63.5a44.73,44.73,0,0,1,5.95.27h.12c12.79,1.2,20.06-2.73,21.6-11.69C236.76,151.48,235.78,147.39,233,144.17Z"/><path class="fr-logo" d="M371.83,157c-13.93-13.11-32.9-20.33-53.43-20.33S279,143.86,265.12,157c-14.67,13.88-22.42,32.82-22.42,54.77,0,21.68,8,41.28,22.4,55.2,13.92,13.41,32.85,20.8,53.3,20.8s39.44-7.38,53.44-20.79c14.55-13.94,22.56-33.54,22.56-55.21S386.39,170.67,371.83,157Zm-9.73,54.77c0,25.84-18.38,44.6-43.7,44.6s-43.7-18.76-43.7-44.6c0-25.15,18.38-43.4,43.7-43.4S362.1,186.59,362.1,211.74Z"/><path class="fr-logo" d="M552.7,138.14a16.17,16.17,0,0,0-16,16.3v1C526.41,143.85,509,136.64,490,136.64c-19.83,0-38.19,7.24-51.69,20.4C424,171,416.4,190,416.4,212c0,21.61,7.78,41.16,21.9,55,13.56,13.33,31.92,20.67,51.7,20.67,18.83,0,36.29-7.41,46.7-19.37v1.57a16.15,16.15,0,1,0,32.3,0V154.44A16.32,16.32,0,0,0,552.7,138.14Zm-16.3,73.6c0,30.44-22.81,44.3-44,44.3-24.57,0-43.1-19-43.1-44.3s18.13-43.4,43.1-43.4C513.73,168.34,536.4,183.55,536.4,211.74Z"/><path class="fr-logo" d="M623.5,61.94a16.17,16.17,0,0,0-16,16.3v191.7a16.15,16.15,0,1,0,32.3,0V78.24A16.32,16.32,0,0,0,623.5,61.94Z"/><path class="fr-logo" d="M806.5,138.14a16.17,16.17,0,0,0-16,16.3v1c-10.29-11.63-27.74-18.84-46.7-18.84-19.83,0-38.19,7.24-51.69,20.4-14.33,14-21.91,33-21.91,55,0,21.61,7.78,41.16,21.9,55,13.56,13.33,31.92,20.67,51.7,20.67,18.83,0,36.29-7.41,46.7-19.37v1.57a16.15,16.15,0,1,0,32.3,0V154.44A16.32,16.32,0,0,0,806.5,138.14Zm-16.3,73.6c0,30.44-22.81,44.3-44,44.3-24.57,0-43.1-19-43.1-44.3s18.13-43.4,43.1-43.4C767.53,168.34,790.2,183.55,790.2,211.74Z"/></svg></a>';
c.MODULES.toolbar=function(a){function b(a){var b={};if(Array.isArray(a)){if(!Array.isArray(a[0])){for(var c=[],d=[],e=0;e<a.length;e++)"|"===a[e]||"-"===a[e]?(0<d.length&&c.push(d),d=[]):d.push(a[e]);0<d.length&&c.push(d);a=c}a.forEach(function(a,c){b["group".concat(c+1)]={buttons:a}});b.showMoreButtons=!1}else"object"!==f(a)||Array.isArray(a)||(b=a,b.showMoreButtons=!0);return b}function d(){var b=a.button.buildGroup(p());a.$tb.append(b);n();a.button.bindCommands(a.$tb)}function p(){var b=a.helpers.screenSize(a.opts.toolbarResponsiveToEditor);
P=b;return M[b]}function l(){for(var b=a.$tb.find(".fr-btn-grp, .fr-more-toolbar"),c=function(){var a=q(b[d]);a.children().each(function(b,c){a.before(c)});a.remove()},d=0;d<b.length;d++)c()}function n(){for(var b=a.$tb.find(".fr-more-toolbar"),c=function(){var c=q(b[d]);if(c.hasClass("fr-expanded")){var e=a.helpers.getPX(c.css("padding-left")),f=c.find("> .fr-command, > .fr-btn-wrap"),g=q(f[0]),l=a.helpers.getPX(g.css("margin-left")),h=a.helpers.getPX(g.css("margin-right")),k=a.helpers.getPX(g.css("margin-top")),
p=a.helpers.getPX(g.css("margin-bottom"));f.each(function(a,b){e+=q(b).outerWidth()+l+h});f=a.$tb.outerWidth();e>f&&(f=Math.floor(e/a.$tb.outerWidth()),e+=e/c[0].childElementCount*f,f=Math.ceil(e/a.$tb.outerWidth()),g=(a.helpers.getPX(g.css("height"))+k+p)*f,c.css("height",g))}else c.css("height","")},d=0;d<b.length;d++)c();!a.helpers.isMobile()&&a.opts.toolbarBottom?a.$tb.find(".fr-toolbar .fr-more-toolbar").removeClass("position-relative"):a.$tb.find(".fr-toolbar .fr-more-toolbar").addClass("position-relative")}
function m(){if(0==a.$tb.find("[data-name='trackChanges-".concat(a.id,"']")).length&&-1<a.opts.pluginsEnabled.indexOf("track_changes")){a.$tb.append(q('<div class="fr-more-toolbar"></div>').data("name","trackChanges-".concat(a.id)));for(var b=0,d=["showChanges","applyAll","removeAll","applyLast","removeLast"];b<d.length;b++){var e=d[b],f=c.COMMANDS[e];f&&(f.more_btn=!0,e=q(a.button.build(e,f,!0)),a.button.addButtons(e),a.$tb.find("[data-name='trackChanges-".concat(a.id,"']")).append(e))}}if(P!==a.helpers.screenSize(a.opts.toolbarResponsiveToEditor)){b=
p();d=q();e=q();a.$tb.find(".fr-btn-grp > .fr-command, .fr-more-toolbar > .fr-command, .fr-btn-grp > .fr-btn-wrap > .fr-command, .fr-more-toolbar > .fr-btn-wrap > .fr-command").addClass("fr-hidden");l();a.$tb.find(".fr-separator.fr-vs, .fr-separator.fr-hs").remove();for(var g in b){var k=b[g];if(k.buttons&&("trackChanges"!==g||-1!==a.opts.pluginsEnabled.indexOf("track_changes"))){f=void 0;var m=0,B=3,t=void 0;"trackChanges"!==g&&(t=q('<div class="fr-btn-grp fr-float-'.concat(b[g].align?b[g].align:
"left",'"></div>')));b.showMoreButtons&&(f=q('<div class="fr-more-toolbar"></div>').data("name","".concat(g,"-").concat(a.id)),"trackChanges"!==g&&"moreRich"!==g||!a.opts.trackChangesEnabled||f.addClass("fr-expanded"));for(var D=0;D<k.buttons.length;D++){void 0!==k.buttonsVisible&&(B=k.buttonsVisible);var C=a.$tb.find('> .fr-command[data-cmd="'+k.buttons[D]+'"], > div.fr-btn-wrap > .fr-command[data-cmd="'+k.buttons[D]+'"]'),v=null;a.node.hasClass(C.next().get(0),"fr-dropdown-menu")&&(v=C.next());
a.node.hasClass(C.next().get(0),"fr-options")&&(C.removeClass("fr-hidden"),C.next().removeClass("fr-hidden"),C=C.parent());C.removeClass("fr-hidden");b.showMoreButtons&&m>=B?(f.append(C),v&&f.append(v)):(t.append(C),"|"===k.buttons[D]?t.append(q('<div class="fr-separator fr-vs" role="separator" aria-orientation="vertical"></div>')):"-"===k.buttons[D]&&t.append(q('<div class="fr-separator fr-hs" role="separator" aria-orientation="horizontal"></div>')),v&&t.append(v));m++}if(b.showMoreButtons&&m>B){k=
a.$tb.find('.fr-command[data-cmd="'.concat(g,'"]'));if(0<k.length)k.removeClass("fr-hidden fr-open");else if(m=g,B=c.COMMANDS[m])B.more_btn=!0,k=q(a.button.build(m,B,!0)),a.button.addButtons(k);t&&t.append(k)}t&&d.push(t);b.showMoreButtons&&e.push(f)}}a.opts.toolbarBottom?(a.$tb.append(e),a.$tb.find(".fr-newline").remove(),a.$tb.append('<div class="fr-newline"></div>'),a.$tb.append(d)):(a.$tb.append(d),a.$tb.find(".fr-newline").remove(),a.$tb.append('<div class="fr-newline"></div>'),a.$tb.append(e));
a.$tb.removeClass("fr-toolbar-open");a.$box.removeClass("fr-toolbar-open");a.events.trigger("codeView.toggle")}n()}function t(){a.events.$on(q(a.o_win),"resize",m);a.events.$on(q(a.o_win),"orientationchange",m);a.opts.toolbarButtons&&-1<JSON.stringify(a.opts.toolbarButtons).indexOf("trackChanges")&&m();var b=a.$tb.find(".fr-more-toolbar[data-name=trackChanges-".concat(a.id,"]")),c=0!==b.length&&b.hasClass("fr-expanded");a.opts.trackChangesEnabled&&!c&&(c=a.$tb.find(".fr-command.fr-btn[data-cmd=trackChanges"),
b.addClass("fr-expanded"),c.toggleClass("fr-open"),a.toolbar.enable())}function D(b,d){setTimeout(function(){var e=a.opts.iframe?a.$iframe.get(0).contentWindow.document.activeElement:document.activeElement;b&&b.which==c.KEYCODE.ESC||!a.selection.inEditor()||!a.core.hasFocus()||a.popups.areVisible()||"false"==q(a.selection.blocks()[0]).closest("table").attr("contenteditable")||"INPUT"===e.tagName||"TEXTAREA"===e.tagName||!a.opts.toolbarVisibleWithoutSelection&&(a.selection.isCollapsed()||a.keys.isIME())&&
!d||(a.$tb.data("instance",a),!1!==a.events.trigger("toolbar.show",[b])&&(a.$tb.show(),a.opts.toolbarContainer||a.position.forSelection(a.$tb),1<a.opts.zIndex?a.$tb.css("z-index",a.opts.zIndex+1):a.$tb.css("z-index",null)))},0)}function C(b){if(b&&"blur"===b.type&&document.activeElement===a.el)return!1;if(b&&"keydown"===b.type&&a.keys.ctrlKey(b)||a.button.getButtons(".fr-dropdown.fr-active").next().find(a.o_doc.activeElement).length)return!0;a.helpers.isMobile()&&a.opts.toolbarInline&&(a.$tb.find(".fr-expanded").toggleClass("fr-expanded"),
a.$tb.find(".fr-open").removeClass("fr-open"),a.$tb.removeClass("fr-toolbar-open"),n());!1!==a.events.trigger("toolbar.hide")&&a.$tb.hide()}function v(b){clearTimeout(k);b&&b.which===c.KEYCODE.ESC||(k=setTimeout(D,a.opts.typingTimer))}function w(){a.events.on("window.mousedown",C);a.events.on("keydown",C);a.events.on("blur",C);a.events.$on(a.$tb,"transitionend",".fr-more-toolbar",function(){a.position.forSelection(a.$tb)});if(!a.helpers.isMobile())a.events.on("window.mouseup",D);if(a.helpers.isMobile())a.helpers.isIOS()||
(a.events.on("window.touchend",D),a.browser.mozilla&&setInterval(D,200));else a.events.on("window.keyup",v);a.events.on("keydown",function(b){b&&b.which===c.KEYCODE.ESC&&a.events.trigger("toolbar.esc")});a.events.on("keydown",function(a){if(a.which===c.KEYCODE.ALT)return a.stopPropagation(),!1},!0);a.events.$on(a.$wp,"scroll.toolbar",D);a.events.on("commands.after",D);a.helpers.isMobile()&&(a.events.$on(a.$doc,"selectionchange",v),a.events.$on(a.$doc,"orientationchange",D))}function G(){a.$tb.html("").removeData().remove();
a.$tb=null;a.$second_tb&&(a.$second_tb.html("").removeData().remove(),a.$second_tb=null)}function z(){a.$box.removeClass("fr-top fr-bottom fr-inline fr-basic");a.$box.find(".fr-sticky-dummy").remove()}function H(){a.opts.theme&&a.$tb.addClass("".concat(a.opts.theme,"-theme"));1<a.opts.zIndex&&a.$tb.css("z-index",a.opts.zIndex+1);"auto"!==a.opts.direction&&a.$tb.removeClass("fr-ltr fr-rtl").addClass("fr-".concat(a.opts.direction));a.helpers.isMobile()?a.$tb.addClass("fr-mobile"):a.$tb.addClass("fr-desktop");
a.opts.toolbarContainer?(a.opts.toolbarInline&&(w(),C()),a.opts.toolbarBottom?a.$tb.addClass("fr-bottom"):a.$tb.addClass("fr-top")):a.opts.toolbarInline?(a.$sc.append(a.$tb),a.$tb.data("container",a.$sc),a.$tb.addClass("fr-inline"),w(),a.opts.toolbarBottom=!1):(a.opts.toolbarBottom?(a.$box.append(a.$tb),a.$tb.addClass("fr-bottom"),a.$box.addClass("fr-bottom")):(a.opts.toolbarBottom=!1,a.$box.prepend(a.$tb),a.$tb.addClass("fr-top"),a.$box.addClass("fr-top")),a.$tb.addClass("fr-basic"),a.opts.toolbarSticky&&
(a.opts.toolbarStickyOffset&&(a.opts.toolbarBottom?a.$tb.css("bottom",a.opts.toolbarStickyOffset):a.$tb.css("top",a.opts.toolbarStickyOffset)),a.position.addSticky(a.$tb)));d();t();a.accessibility.registerToolbar(a.$tb);a.events.$on(a.$tb,"".concat(a._mousedown," ").concat(a._mouseup),function(b){var c=b.originalEvent?b.originalEvent.target||b.originalEvent.originalTarget:null;if(c&&"INPUT"!==c.tagName&&!a.edit.isDisabled())return b.stopPropagation(),b.preventDefault(),!1},!0);a.helpers.isMobile()&&
a.events.$on(a.$tb,"click",function(){a.popups.areVisible().length||a.id!==a.shared.selected_editor&&a.shared.selected_editor||a.$el.focus()});a.events.$on(a.$tb,"transitionend",".fr-more-toolbar",function(){a.$box.hasClass("fr-fullscreen")&&(a.opts.height=a.o_win.innerHeight-(a.opts.toolbarInline?0:a.$tb.outerHeight()+(a.$second_tb?a.$second_tb.outerHeight():0)),a.size.refresh())})}function U(){a.events.on("shortcut",function(b,c,d){var e;c&&!d?e=a.$tb.find('.fr-command[data-cmd="'.concat(c,'"]')):
c&&d&&(e=a.$tb.find('.fr-command[data-cmd="'.concat(c,'"][data-param1="').concat(d,'"]')));if(e.length&&(b.preventDefault(),b.stopPropagation(),e.parents(".fr-toolbar").data("instance",a),"keydown"===b.type))return a.button.exec(e),!1})}var q=a.$,M=[];M[c.XS]=b(a.opts.toolbarButtonsXS||a.opts.toolbarButtons||c.TOOLBAR_BUTTONS_XS||c.TOOLBAR_BUTTONS||[]);M[c.SM]=b(a.opts.toolbarButtonsSM||a.opts.toolbarButtons||c.TOOLBAR_BUTTONS_SM||c.TOOLBAR_BUTTONS||[]);M[c.MD]=b(a.opts.toolbarButtonsMD||a.opts.toolbarButtons||
c.TOOLBAR_BUTTONS_MD||c.TOOLBAR_BUTTONS||[]);M[c.LG]=b(a.opts.toolbarButtons||c.TOOLBAR_BUTTONS||[]);var P,k=null,x=!1;return{_init:function(){a.$sc=q(a.opts.scrollableContainer).first();if(!a.$wp)return!1;a.opts.toolbarInline||a.opts.toolbarBottom||(a.$second_tb=q(a.doc.createElement("div")).attr("class","fr-second-toolbar"),a.$box.append(a.$second_tb),(!1!==a.ul||a.opts.attribution)&&a.$second_tb.prepend(c.POWERED_BY));a.opts.toolbarContainer?(a.shared.$tb?(a.$tb=a.shared.$tb,a.opts.toolbarInline&&
w()):(a.shared.$tb=q(a.doc.createElement("DIV")),a.shared.$tb.addClass("fr-toolbar"),a.$tb=a.shared.$tb,q(a.opts.toolbarContainer).append(a.$tb),H(),a.$tb.data("instance",a)),a.opts.toolbarInline?a.$box.addClass("fr-inline"):a.$box.addClass("fr-basic"),a.events.on("focus",function(){a.$tb.data("instance",a)},!0),a.opts.toolbarInline=!1):a.opts.toolbarInline?(a.$box.addClass("fr-inline"),a.shared.$tb?(a.$tb=a.shared.$tb,w()):(a.shared.$tb=q(a.doc.createElement("DIV")),a.shared.$tb.addClass("fr-toolbar"),
a.$tb=a.shared.$tb,H())):(a.$box.addClass("fr-basic"),a.$tb=q(a.doc.createElement("DIV")),a.$tb.addClass("fr-toolbar"),H(),a.$tb.data("instance",a));a.events.on("destroy",z,!0);a.events.on(a.opts.toolbarInline||a.opts.toolbarContainer?"shared.destroy":"destroy",G,!0);a.events.on("edit.on",function(){a.$tb.removeClass("fr-disabled").removeAttr("aria-disabled")});a.events.on("edit.off",function(){a.$tb.addClass("fr-disabled").attr("aria-disabled",!0)});U()},hide:C,show:function(){if(!1===a.events.trigger("toolbar.show"))return!1;
a.$tb.show()},showInline:D,disable:function(){!x&&a.$tb&&(a.$tb.find(".fr-btn-grp > .fr-command, .fr-more-toolbar > .fr-command, .fr-btn-wrap > .fr-command").addClass("fr-disabled fr-no-refresh").attr("aria-disabled",!0),x=!0)},enable:function(){x&&a.$tb&&(a.$tb.find(".fr-btn-grp > .fr-command, .fr-more-toolbar > .fr-command, .fr-btn-wrap > .fr-command").removeClass("fr-disabled fr-no-refresh").attr("aria-disabled",!1),x=!1);a.button.bulkRefresh()},setMoreToolbarsHeight:n}};var O=["scroll","wheel",
"touchmove","touchstart","touchend"],z=["webkit","moz","ms","o"],H=["transitionend"],t=document.createElement("div").style,v="Webkit Moz ms O css style".split(" "),U={visibility:"hidden",display:"block"},w=["focus","blur","click"],G={},p=function(a,b){return{altKey:a.altKey,bubbles:a.bubbles,cancelable:a.cancelable,changedTouches:a.changedTouches,ctrlKey:a.ctrlKey,detail:a.detail,eventPhase:a.eventPhase,metaKey:a.metaKey,pageX:a.pageX,pageY:a.pageY,shiftKey:a.shiftKey,view:a.view,"char":a["char"],
key:a.key,keyCode:a.keyCode,button:a.button,buttons:a.buttons,clientX:a.clientX,clientY:a.clientY,offsetX:a.offsetX,offsetY:a.offsetY,pointerId:a.pointerId,pointerType:a.pointerType,screenX:a.screenX,screenY:a.screenY,targetTouches:a.targetTouches,toElement:a.toElement,touches:a.touches,type:a.type,which:a.which,target:a.target,currentTarget:b,originalEvent:a,stopPropagation:function(){a.stopPropagation()},stopImmediatePropagation:function(){a.stopImmediatePropagation()},preventDefault:function(){-1===
O.indexOf(a.type)&&a.preventDefault()}}},D=function(a,b){return function(c){var d=c.target;if(b)for(b=da(b);d&&d!==this;)Element.prototype.matches.call(d,da(b))&&a.call(d,p(c,d)),d=d.parentNode;else{var e=d;(e.ownerDocument&&e.ownerDocument.body&&e.ownerDocument.body.contains(e)||"#document"===e.nodeName||"HTML"===e.nodeName||e===window)&&a.call(d,p(c,d))}}},C=function(a,b){return new ba(a,b)},da=function(a){return a&&"string"==typeof a?a.replace(/^\s*>/g,":scope >").replace(/,\s*>/g,", :scope >"):
a},qa=function(a){return"function"===typeof a&&"number"!==typeof a.nodeType},P=C;C.fn=C.prototype={constructor:C,length:0,contains:function(a){if(!a)return!1;if(Array.isArray(a)){for(var b=0;b<a.length;b++)if(this.contains(a[b])&&this!=a[b])return!0;return!1}for(b=0;b<this.length;b++)for(var c=a;c;){if(c==this[b]||c[0]&&c[0].isEqualNode(this[b]))return!0;c=c.parentNode}return!1},findVisible:function(a){a=this.find(a);for(var b=a.length-1;0<=b;b--)P(a[b]).isVisible()||a.splice(b,1);return a},formatParams:function(a){var b=
"".concat(Object.keys(a).map(function(b){return"".concat(b,"=").concat(encodeURIComponent(a[b]))}).join("&"));return b?b:""},ajax:function(a){var b=new XMLHttpRequest,c=this.formatParams(a.data);"GET"===a.method.toUpperCase()&&(a.url=c?a.url+"?"+c:a.url);b.open(a.method,a.url,!0);a.withCredentials&&(b.withCredentials=!0);a.crossDomain&&b.setRequestHeader("Access-Control-Allow-Origin","*");for(var d in a.headers)Object.prototype.hasOwnProperty.call(a.headers,d)&&b.setRequestHeader(d,a.headers[d]);
Object.prototype.hasOwnProperty.call(a.headers,"Content-Type")||("json"===a.dataType?b.setRequestHeader("Content-Type","application/json"):b.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"));b.onload=function(){if(200==b.status){var c=b.responseText;"json"===a.dataType&&(c=JSON.parse(c));a.done(c,b.status,b)}else a.fail(b)};b.send(c)},prevAll:function(){var a=P();if(!this[0])return a;for(var b=this[0];b&&b.previousSibling;)b=b.previousSibling,a.push(b);return a},
index:function(a){return a?"string"===typeof a?[].indexOf.call(P(a),this[0]):[].indexOf.call(this,a.length?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},isVisible:function(){return this[0]?!!(this[0].offsetWidth||this[0].offsetHeight||this[0].getClientRects().length):!1},toArray:function(){return[].slice.call(this)},get:function(a){return null==a?[].slice.call(this):0>a?this[a+this.length]:this[a]},pushStack:function(a){a=C.merge(this.constructor(),a);a.prevObject=this;return a},
wrapAll:function(a){this[0]&&(qa(a)&&(a=a.call(this[0])),a=C(a,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&a.insertBefore(this[0]),a.map(function(){for(var a=this;a.firstElementChild;)a=a.firstElementChild;return a}).append(this));return this},wrapInner:function(a){if("string"===typeof a){for(var b=a.split(" "),c=0;c<b.length&&0===b[c].trim().length;)c++;c<b.length&&(P(a).length&&b[c].trim()===P(a)[0].tagName&&(a=document.createElement(b[c].trim())),c++);if("string"!==typeof a)for(var d=
P(a);c<b.length;c++){b[c]=b[c].trim();var f=b[c].split("=");d.attr(f[0],f[1].replace('"',""))}}for(;this[0].firstChild&&this[0].firstChild!==a&&"string"!==typeof a;)a.appendChild(this[0].firstChild)},wrapContent:function(a){for(var b=document.createElement(a.tagName),c=0;c<a.attributes.length;c++)P(b).attr(a.attributes[c].nodeName,a.attributes[c].value);P(this[0]).contents().wrapAll(b)},wrap:function(a){var b=qa(a);return this.each(function(c){P(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){this.nodeName&&
this.nodeName.toLowerCase()===name.toLowerCase()||C(this).replaceWith(this.childNodes)})},grep:function(a,b,c){for(var d=[],e=0,f=a.length,g=!c;e<f;e++)c=!b(a[e],e),c!==g&&d.push(a[e]);return d},map:function(a){return this.pushStack(C.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack([].slice.apply(this,arguments))},each:function(a){if(this.length)for(var b=0;b<this.length&&!1!==a.call(this[b],b,this[b]);b++);return this},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},
eq:function(a){var b=this.length;a=+a+(0>a?b:0);return this.pushStack(0<=a&&a<b?[this[a]]:[])},empty:function(){for(var a=0;a<this.length;a++)this[a].innerHTML=""},contents:function(){for(var a=P(),b=0;b<this.length;b++)for(var c=this[b].childNodes,d=0;d<c.length;d++)a.push(c[d]);return a},attr:function(a,b){if("object"===f(a)){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&null!==a[c]&&this.attr(c,a[c]);return this}if("undefined"!==typeof b){if("checked"===a)for(a=0;a<this.length;a++)this[a].checked=
b;else if("tagName"===a)for(a=0;a<this.length;a++)this[a].tagName=b;else for(c=0;c<this.length;c++)this[c].setAttribute(a,b);return this}if(0!==this.length&&(this[0].getAttribute||"checked"===a))return"checked"===a?this[0].checked:"tagName"===a?this[0].tagName:this[0].getAttribute(a)},removeAttr:function(a){for(var b=0;b<this.length;b++)this[b].removeAttribute&&this[b].removeAttribute(a);return this},hide:function(){this.css("display","none");return this},show:function(){this.css("display","block");
return this},focus:function(){this.length&&this[0].focus();return this},blur:function(){this.length&&this[0].blur();return this},data:function(a,b){if("undefined"!==typeof b){for(var c=0;c<this.length;c++)this[c]["data-"+a]=b,"object"!==f(b)&&"function"!==typeof b&&this[c].setAttribute&&this[c].setAttribute("data-"+a,b);return this}if("undefined"!==typeof b)return this.attr("data-"+a,b);if(0!==this.length)for(b=0;b<this.length;b++)if(c=this[b]["data-"+a],("undefined"===typeof c||null===c)&&this[b].getAttribute&&
(c=this[b].getAttribute("data-"+a)),"undefined"!=typeof c&&null!=c)return c},removeData:function(a){for(var b=0;b<this.length;b++)this[b].removeAttribute&&this[b].removeAttribute("data-"+a),this[b]["data-"+a]=null;return this},getCorrectStyleName:function(a){if(!G[a]){var b;a in t&&(b=a);for(var c=a[0].toUpperCase()+a.slice(1),d=v.length;d--;)a=v[d]+c,a in t&&(b=a);G[a]=b}return G[a]},css:function(a,b){if("undefined"!==typeof b){if(0===this.length)return this;("string"!==typeof b||""===b.trim()||
isNaN(b))&&"number"!==typeof b||!/(margin)|(padding)|(height)|(width)|(top)|(left)|(right)|(bottom)/gi.test(a)||/(line-height)/gi.test(a)||(b+="px");for(var c=0;c<this.length;c++)a=P(this).getCorrectStyleName(a),this[c].style[a]=b;return this}if("string"==typeof a){if(0===this.length)return;b=this[0].ownerDocument||document;b=b.defaultView||b.parentWindow;a=P(this).getCorrectStyleName(a);return b.getComputedStyle(this[0])[a]}for(c in a)Object.prototype.hasOwnProperty.call(a,c)&&this.css(c,a[c]);return this},
toggleClass:function(a,b){if(1<a.split(" ").length){a=a.split(" ");for(var c=0;c<a.length;c++)this.toggleClass(a[c],b);return this}for(c=0;c<this.length;c++)"undefined"===typeof b?this[c].classList.contains(a)?this[c].classList.remove(a):this[c].classList.add(a):b?this[c].classList.contains(a)||this[c].classList.add(a):this[c].classList.contains(a)&&this[c].classList.remove(a);return this},addClass:function(a){if(0===a.length)return this;if(1<a.split(" ").length){a=a.split(" ");for(var b=0;b<a.length;b++)this.addClass(a[b]);
return this}for(b=0;b<this.length;b++)this[b].classList.add(a);return this},removeClass:function(a){if(1<a.split(" ").length){a=a.split(" ");for(var b=0;b<a.length;b++)a[b]=a[b].trim(),a[b].length&&this.removeClass(a[b]);return this}for(b=0;b<this.length;b++)a.length&&this[b].classList.remove(a);return this},getClass:function(a){return a.getAttribute&&a.getAttribute("class")||""},stripAndCollapse:function(a){return(a.match(/[^\x20\t\r\n\f]+/g)||[]).join(" ")},hasClass:function(a){var b,c=0;for(a=
" "+a+" ";b=this[c++];)if(1===b.nodeType&&-1<(" "+P(this).stripAndCollapse(P(this).getClass(b))+" ").indexOf(a))return!0;return!1},scrollTop:function(a){if("undefined"!==typeof a)for(var b=0;b<this.length;b++)this[b]===document?window.scrollTo(document.documentElement.scrollLeft,a):this[b].scrollTop=a;else if(0!==this.length)return this[0]===document?document.documentElement.scrollTop:this[0].scrollTop},scrollLeft:function(a){if("undefined"!==typeof a)for(var b=0;b<this.length;b++)this[b]===document?
window.scrollTo(a,document.documentElement.scrollTop):this[b].scrollLeft=a;else if(0!==this.length)return this[0]===document?document.documentElement.scrollLeft:this[0].scrollLeft},on:function(a,b,c){if(1<a.split(" ").length){for(var d=a.split(" "),e=0;e<d.length;e++)if(-1!==H.indexOf(a))for(var f=0;f<z.length;f++)this.on(z[f]+a[0].toUpperCase()+a.slice(1),b,c);else this.on(d[e],b,c);return this}c="function"===typeof b?D(b,null):D(c,b);for(b=0;b<this.length;b++)d=P(this[b]),d.data("events")||d.data("events",
[]),d.data("events").push([a,c]),e=a.split("."),e=e[0],0<=O.indexOf(e)?d.get(0).addEventListener(e,c,{passive:!0}):d.get(0).addEventListener(e,c)},off:function(a){if(1<a.split(" ").length){a=a.split(" ");for(var b=0;b<a.length;b++)this.off(a[b]);return this}for(b=0;b<this.length;b++){var c=P(this[b]);if(c.data("events")){var d=a.split(".");d=d[0];for(var f=c.data("events")||[],p=f.length-1;0<=p;p--){var m=f[p];m[0]==a&&(c.get(0).removeEventListener(d,m[1]),f.splice(p,1))}}}},trigger:function(a){for(var b=
0;b<this.length;b++){if("function"===typeof Event)var c=0<=a.search(/^mouse/g)?new MouseEvent(a,{view:window,cancelable:!0,bubbles:!0}):new Event(a);else 0<=a.search(/^mouse/g)?(c=document.createEvent("MouseEvents"),c.initMouseEvent(a,!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null)):(c=document.createEvent("Event"),c.initEvent(a,!0,!0));if(0<=w.indexOf(a)&&"function"===typeof this[b][a])this[b][a]();else this[b].dispatchEvent(c)}},triggerHandler:function(){},val:function(a){if("undefined"!=typeof a){for(var b=
0;b<this.length;b++)this[b].value=a;return this}return this[0].value},siblings:function(){return P(this[0]).parent().children().not(this)},find:function(a){var b=P();if("string"!==typeof a){for(var c=0;c<a.length;c++)for(var d=0;d<this.length;d++)if(this[d]!==a[c]&&P(this[d]).contains(a[c])){b.push(a[c]);break}return b}a=da(a);for(c=0;c<this.length;c++)if(this[c].querySelectorAll){d=[];if(a&&"string"==typeof a)try{d=this[c].querySelectorAll(a)}catch(n){d=this[c].children}else{var l=a;("object"===
("undefined"===typeof HTMLElement?"undefined":f(HTMLElement))?l instanceof HTMLElement:l&&"object"===f(l)&&null!==l&&1===l.nodeType&&"string"===typeof l.nodeName)&&(d=[a])}for(l=0;l<d.length;l++)b.push(d[l])}return b},children:function(){for(var a=P(),b=0;b<this.length;b++)for(var c=this[b].children,d=0;d<c.length;d++)a.push(c[d]);return a},not:function(a){if("string"===typeof a)for(var b=this.length-1;0<=b;b--)Element.prototype.matches.call(this[b],a)&&this.splice(b,1);else if(a instanceof C)for(b=
this.length-1;0<=b;b--)for(var c=0;c<a.length;c++){if(this[b]===a[c]){this.splice(b,1);break}}else for(b=this.length-1;0<=b;b--)this[b]===a[0]&&this.splice(b,1);return this},add:function(a){for(var b=0;b<a.length;b++)this.push(a[b]);return this},closest:function(a){for(var b=0;b<this.length;b++){var c=Element.prototype.closest.call(this[b],a);if(c)return P(c)}return P()},html:function(a){if("undefined"==typeof a)return 0===this.length?void 0:this[0].innerHTML;if("string"===typeof a)for(var b=0;b<
this.length;b++){this[b].innerHTML=a;for(var c=this[b].children,d=this[b].ownerDocument||document,f=0;f<c.length;f++)if("SCRIPT"===c[f].tagName){var p=d.createElement("script");p.innerHTML=c[f].innerHTML;c[f].hasAttribute("async")&&p.setAttribute("async","");p.src=c[f].src;c[f].hasAttribute("defer")&&p.setAttribute("defer","");d.head.appendChild(p).parentNode.removeChild(p)}}else this[0].innerHTML="",this.append(a[0]),b=this[0].ownerDocument||document,"SCRIPT"===a[0].tagName&&(c=b.createElement("script"),
c.innerHTML=a[0].innerHTML,b.head.appendChild(c).parentNode.removeChild(c));return this},text:function(a){if(a)for(var b=0;b<this.length;b++)this[b].textContent=a;else return this.length?this[0].textContent:""},after:function(a){if(a)if("string"==typeof a)for(var b=0;b<this.length;b++){var c=this[b];if(c.nodeType!=Node.ELEMENT_NODE){var d=c.ownerDocument.createElement("SPAN");P(c).after(d);P(d).after(a).remove()}else c.insertAdjacentHTML("afterend",a)}else if(b=this[0],b.nextSibling)if(a instanceof
C)for(c=0;c<a.length;c++)b.nextSibling.parentNode.insertBefore(a[c],b.nextSibling);else b.nextSibling.parentNode.insertBefore(a,b.nextSibling);else P(b.parentNode).append(a);return this},clone:function(a){for(var b=P(),c=0;c<this.length;c++)b.push(this[c].cloneNode(a));return b},replaceWith:function(a){if("string"===typeof a)for(var b=0;b<this.length;b++)this[b].parentNode&&(this[b].outerHTML=a);else if(a&&a.length)for(b=0;b<this.length;b++)this.replaceWith(a[b]);else this.after(a).remove()},insertBefore:function(a){P(a).before(this[0]);
return this},before:function(a){if(a instanceof C){for(var b=0;b<a.length;b++)this.before(a[b]);return this}if(a)if("string"==typeof a)for(b=0;b<this.length;b++){var c=this[b];if(c.nodeType!=Node.ELEMENT_NODE){var d=c.ownerDocument.createElement("SPAN");P(c).before(d);P(d).before(a).remove()}else c.parentNode&&c.insertAdjacentHTML("beforebegin",a)}else if(b=this[0],b.parentNode)if(a instanceof C)for(c=0;c<a.length;c++)b.parentNode.insertBefore(a[c],b);else b.parentNode.insertBefore(a,b);return this},
append:function(a){if(0==this.length)return this;if("string"==typeof a)for(var b=0;b<this.length;b++){var c=this[b],d=c.ownerDocument.createElement("SPAN");P(c).append(d);P(d).after(a).remove()}else if(a instanceof C||Array.isArray(a))for(b=0;b<a.length;b++)this.append(a[b]);else"function"!==typeof a&&this[0].appendChild(a);return this},prepend:function(a){if(0==this.length)return this;if("string"==typeof a)for(var b=0;b<this.length;b++){var c=this[b],d=c.ownerDocument.createElement("SPAN");P(c).prepend(d);
P(d).before(a).remove()}else if(a instanceof C)for(b=0;b<a.length;b++)this.prepend(a[b]);else b=this[0],b.firstChild?b.firstChild?b.insertBefore(a,b.firstChild):b.appendChild(a):P(b).append(a);return this},remove:function(){for(var a=0;a<this.length;a++)this[a].parentNode&&this[a].parentNode.removeChild(this[a]);return this},prev:function(){return this.length&&this[0].previousElementSibling?P(this[0].previousElementSibling):P()},next:function(){return this.length&&this[0].nextElementSibling?P(this[0].nextElementSibling):
P()},nextAllVisible:function(){return this.next()},prevAllVisible:function(){return this.prev()},outerHeight:function(a){if(0!==this.length){var b=this[0];if(b===b.window)return b.innerHeight;var c={},d=this.isVisible();if(!d)for(var f in U)c[f]=b.style[f],b.style[f]=U[f];f=b.offsetHeight;a&&(f+=parseInt(P(b).css("marginTop"))+parseInt(P(b).css("marginBottom")));if(!d)for(var p in U)b.style[p]=c[p];return f}},outerWidth:function(a){if(0!==this.length){var b=this[0];if(b===b.window)return b.outerWidth;
var c={},d=this.isVisible();if(!d)for(var f in U)c[f]=b.style[f],b.style[f]=U[f];f=b.offsetWidth;a&&(f+=parseInt(P(b).css("marginLeft"))+parseInt(P(b).css("marginRight")));if(!d)for(var p in U)b.style[p]=c[p];return f}},width:function(a){if(void 0===a){if(this[0]instanceof HTMLDocument)return this[0].body.offsetWidth;if(this[0])return this[0].offsetWidth}else this[0].style.width=a+"px"},height:function(a){var b=this[0];if(void 0===a)return b instanceof HTMLDocument?(a=b.documentElement,Math.max(b.body.scrollHeight,
a.scrollHeight,b.body.offsetHeight,a.offsetHeight,a.clientHeight)):b.offsetHeight;b.style.height=a+"px"},is:function(a){return 0===this.length?!1:"string"==typeof a&&this[0].matches?this[0].matches(a):a instanceof C?this[0]==a[0]:this[0]==a},parent:function(){return 0===this.length?P():P(this[0].parentNode)},_matches:function(a,b){var c=a.matches||a.matchesSelector||a.msMatchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.oMatchesSelector;return a&&!b?c:c.call(a,b)},parents:function(a){for(var b=
P(),c=0;c<this.length;c++)for(var d=this[c].parentNode;d&&d!=document&&this._matches(d);)a?this._matches(d,a)&&b.push(d):b.push(d),d=d.parentNode;return b},parentsUntil:function(a,b){var c=P();a instanceof C&&0<a.length&&(a=a[0]);for(var d=0;d<this.length;d++)for(var e=this[d].parentNode;e&&e!=document&&e!=a&&this[d]!=a&&("string"!=typeof a||!Element.prototype.matches.call(e,a));)b?Element.prototype.matches.call(e,b)&&c.push(e):c.push(e),e=e.parentNode;return c},insertAfter:function(a){var b=a.parent()[0];
b&&b.insertBefore(this[0],a[0].nextElementSibling)},filter:function(a){var b=P();if("function"===typeof a)for(var c=0;c<this.length;c++)a.call(this[c],this[c])&&b.push(this[c]);else if("string"===typeof a)for(c=0;c<this.length;c++)this[c].matches(a)&&b.push(this[c]);return b},offset:function(){if(0!==this.length){var a=this[0].getBoundingClientRect(),b=this[0].ownerDocument.defaultView;return{top:a.top+b.pageYOffset,left:a.left+b.pageXOffset}}},position:function(){return{left:this[0].offsetLeft,top:this[0].offsetTop}},
push:[].push,splice:[].splice};C.extend=function(a){a=a||{};for(var b=1;b<arguments.length;b++)if(arguments[b])for(var c in arguments[b])Object.prototype.hasOwnProperty.call(arguments[b],c)&&(a[c]=arguments[b][c]);return a};C.merge=function(a,b){for(var c=+b.length,d=0,e=a.length;d<c;d++)a[e++]=b[d];a.length=e;return a};C.map=function(a,b,c){var d,e=0,f=[];if(Array.isArray(a))for(d=a.length;e<d;e++){var g=b(a[e],e,c);null!=g&&f.push(g)}else for(e in a)g=b(a[e],e,c),null!=g&&f.push(g);return[].concat.apply([],
f)};var ba=function(a,b){if(!a)return this;if("string"==typeof a&&"<"===a[0])return b=document.createElement("DIV"),b.innerHTML=a,P(b.firstElementChild);b=b instanceof C?b[0]:b;if("string"==typeof a){a=da(a);a=(b||document).querySelectorAll(a);for(b=0;b<a.length;b++)this[b]=a[b];this.length=a.length;return this}return a instanceof C?a:(this[0]=a,this.length=1,this)};ba.prototype=C.prototype;var X=c;X.Bootstrap=function(a,b,c){this.id=++X.ID;this.$=C;var d={};"function"==typeof b&&(c=b,b={});c&&(b.events||
(b.events={}),b.events.initialized=c);b&&b.documentReady&&(d.toolbarButtons=[["fullscreen","undo","redo","getPDF","print"],"bold italic underline textColor backgroundColor clearFormatting".split(" "),["alignLeft","alignCenter","alignRight","alignJustify"],["formatOL","formatUL","indent","outdent"],["paragraphFormat"],["fontFamily"],["fontSize"],["insertLink","insertImage","quote"]],d.paragraphFormatSelection=!0,d.fontFamilySelection=!0,d.fontSizeSelection=!0,d.placeholderText="",d.quickInsertEnabled=
!1,d.charCounterCount=!1);this.opts=Object.assign({},Object.assign({},X.DEFAULTS,d,"object"===f(b)&&b));b=JSON.stringify(this.opts);X.OPTS_MAPPING[b]=X.OPTS_MAPPING[b]||this.id;this.sid=X.OPTS_MAPPING[b];X.SHARED[this.sid]=X.SHARED[this.sid]||{};this.shared=X.SHARED[this.sid];this.shared.count=(this.shared.count||0)+1;this.$oel=C(a);this.$oel.data("froala.editor",this);this.o_doc=a.ownerDocument;this.o_win="defaultView"in this.o_doc?this.o_doc.defaultView:this.o_doc.parentWindow;this.c_scroll=C(this.o_win).scrollTop();
this._init()};X.Bootstrap.prototype._init=function(){var a=this.$oel.get(0).tagName;1<=this.$oel.closest("label").length&&console.warn("Note! It is not recommended to initialize the Froala Editor within a label tag.");var b=function(){"TEXTAREA"!==a&&(this._original_html=this._original_html||this.$oel.html());this.$box=this.$box||this.$oel;this.opts.fullPage&&(this.opts.iframe=!0);this.opts.iframe?(this.$iframe=C('<iframe src="about:blank" frameBorder="0">'),this.$wp=C("<div></div>"),this.$box.html(this.$wp),
this.$wp.append(this.$iframe),this.$iframe.get(0).contentWindow.document.open(),this.$iframe.get(0).contentWindow.document.write("<!DOCTYPE html>"),this.$iframe.get(0).contentWindow.document.write("<html><head></head><body></body></html>"),this.$iframe.get(0).contentWindow.document.close(),this.iframe_document=this.$iframe.get(0).contentWindow.document,this.$el=C(this.iframe_document.querySelector("body")),this.el=this.$el.get(0),this.$head=C(this.iframe_document.querySelector("head")),this.$html=
C(this.iframe_document.querySelector("html"))):(this.$el=C(this.o_doc.createElement("DIV")),this.el=this.$el.get(0),this.$wp=C(this.o_doc.createElement("DIV")).append(this.$el),this.$box.html(this.$wp));setTimeout(M.bind(this),0)}.bind(this),c=function(){this.$box=C("<div>");this.$oel.before(this.$box).hide();this._original_html=this.$oel.val();var a=this;this.$oel.parents("form").on("submit.".concat(this.id),function(){a.events.trigger("form.submit")});this.$oel.parents("form").on("reset.".concat(this.id),
function(){a.events.trigger("form.reset")});b()}.bind(this),d=function(){this.$el=this.$oel;this.el=this.$el.get(0);this.$el.attr("contenteditable",!0).css("outline","none").css("display","inline-block");this.opts.multiLine=!1;this.opts.toolbarInline=!1;setTimeout(M.bind(this),0)}.bind(this),f=function(){this.$el=this.$oel;this.el=this.$el.get(0);this.opts.toolbarInline=!1;setTimeout(M.bind(this),0)}.bind(this),p=function(){this.$el=this.$oel;this.el=this.$el.get(0);this.opts.toolbarInline=!1;this.$oel.on("click.popup",
function(a){a.preventDefault()});setTimeout(M.bind(this),0)}.bind(this);this.opts.editInPopup?p():"TEXTAREA"===a?c():"A"===a?d():"IMG"===a?f():"BUTTON"===a||"INPUT"===a?(this.opts.editInPopup=!0,this.opts.toolbarInline=!1,p()):b()};X.Bootstrap.prototype.load=function(a){for(var b in a)if(Object.prototype.hasOwnProperty.call(a,b)&&!this[b]&&!(X.PLUGINS[b]&&0>this.opts.pluginsEnabled.indexOf(b))&&(this[b]=new a[b](this),this[b]._init&&(this[b]._init(),this.opts.initOnClick&&"core"===b)))return!1};X.Bootstrap.prototype.destroy=
function(){this.destrying=!0;this.shared.count--;this.events&&this.events.$off();var a=this.html&&this.html.get();this.opts.iframe&&(this.events.disableBlur(),this.win.focus(),this.events.enableBlur());this.events&&(this.events.trigger("destroy",[],!0),this.events.trigger("shared.destroy",[],!0));if(0===this.shared.count){for(var b in this.shared)Object.prototype.hasOwnProperty.call(this.shared,b)&&(this.shared[b]=null,X.SHARED[this.sid][b]=null);delete X.SHARED[this.sid]}this.$oel.parents("form").off(".".concat(this.id));
this.$oel.off("click.popup");this.$oel.removeData("froala.editor");this.$oel.off("froalaEditor");this.core&&this.core.destroy(a);X.INSTANCES.splice(X.INSTANCES.indexOf(this),1)};return c});
(function(f,b){"object"===typeof exports&&"undefined"!==typeof module?b(require("froala-editor")):"function"===typeof define&&define.amd?define(["froala-editor"],b):b(f.FroalaEditor)})(this,function(f){f=f&&f.hasOwnProperty("default")?f["default"]:f;f.PLUGINS.align=function(b){var d=b.$;return{apply:function(c){var f=b.selection.element();if(d(f).parents(".fr-img-caption").length)d(f).css("text-align",c);else{b.selection.save();b.html.wrap(!0,!0,!0,!0);b.selection.restore();f=b.selection.blocks();
for(var M=0;M<f.length;M++)d(f[M]).css("text-align",c).removeClass("fr-temp-div"),""===d(f[M]).attr("class")&&d(f[M]).removeAttr("class"),""===d(f[M]).attr("style")&&d(f[M]).removeAttr("style");b.selection.save();b.html.unwrap();b.selection.restore()}},refresh:function(c){var f=b.selection.blocks();f.length&&(f=b.helpers.getAlignment(d(f[0])),c.find("> *").first().replaceWith(b.icon.create("align-".concat(f))))},refreshOnShow:function(c,f){c=b.selection.blocks();c.length&&(c=b.helpers.getAlignment(d(c[0])),
f.find('a.fr-command[data-param1="'.concat(c,'"]')).addClass("fr-active").attr("aria-selected",!0))},refreshForToolbar:function(c){var f=b.selection.blocks();f.length&&(f=b.helpers.getAlignment(d(f[0])),f=f.charAt(0).toUpperCase()+f.slice(1),"align".concat(f)===c.attr("data-cmd")&&c.addClass("fr-active"))}}};f.DefineIcon("align",{NAME:"align-left",SVG_KEY:"alignLeft"});f.DefineIcon("align-left",{NAME:"align-left",SVG_KEY:"alignLeft"});f.DefineIcon("align-right",{NAME:"align-right",SVG_KEY:"alignRight"});
f.DefineIcon("align-center",{NAME:"align-center",SVG_KEY:"alignCenter"});f.DefineIcon("align-justify",{NAME:"align-justify",SVG_KEY:"alignJustify"});f.RegisterCommand("align",{type:"dropdown",title:"Align",options:{left:"Align Left",center:"Align Center",right:"Align Right",justify:"Align Justify"},html:function(){var b='<ul class="fr-dropdown-list" role="presentation">',d=f.COMMANDS.align.options,c;for(c in d)d.hasOwnProperty(c)&&(b+='<li role="presentation"><a class="fr-command fr-title" tabIndex="-1" role="option" data-cmd="align"data-param1="\n        '.concat(c,
'" title="').concat(this.language.translate(d[c]),'">').concat(this.icon.create("align-".concat(c)),'<span class="fr-sr-only">\n        ').concat(this.language.translate(d[c]),"</span></a></li>"));return b+"</ul>"},callback:function(b,d){this.align.apply(d)},refresh:function(b){this.align.refresh(b)},refreshOnShow:function(b,d){this.align.refreshOnShow(b,d)},plugin:"align"});f.RegisterCommand("alignLeft",{type:"button",icon:"align-left",title:"Align Left",callback:function(){this.align.apply("left")},
refresh:function(b){this.align.refreshForToolbar(b)},plugin:"align"});f.RegisterCommand("alignRight",{type:"button",icon:"align-right",title:"Align Right",callback:function(){this.align.apply("right")},refresh:function(b){this.align.refreshForToolbar(b)},plugin:"align"});f.RegisterCommand("alignCenter",{type:"button",icon:"align-center",title:"Align Center",callback:function(){this.align.apply("center")},refresh:function(b){this.align.refreshForToolbar(b)},plugin:"align"});f.RegisterCommand("alignJustify",
{type:"button",icon:"align-justify",title:"Align Justify",callback:function(){this.align.apply("justify")},refresh:function(b){this.align.refreshForToolbar(b)},plugin:"align"})});
(function(f,b){"object"===typeof exports&&"undefined"!==typeof module?b(require("froala-editor")):"function"===typeof define&&define.amd?define(["froala-editor"],b):b(f.FroalaEditor)})(this,function(f){f=f&&f.hasOwnProperty("default")?f["default"]:f;Object.assign(f.POPUP_TEMPLATES,{"textColor.picker":"[_BUTTONS_][_TEXT_COLORS_][_CUSTOM_COLOR_]","backgroundColor.picker":"[_BUTTONS_][_BACKGROUND_COLORS_][_CUSTOM_COLOR_]"});Object.assign(f.DEFAULTS,{colorsText:"#61BD6D #1ABC9C #54ACD2 #2C82C9 #9365B8 #475577 #CCCCCC #41A85F #00A885 #3D8EB9 #2969B0 #553982 #28324E #000000 #F7DA64 #FBA026 #EB6B56 #E25041 #A38F84 #EFEFEF #FFFFFF #FAC51C #F37934 #D14841 #B8312F #7C706B #D1D5D8 REMOVE".split(" "),
colorsBackground:"#61BD6D #1ABC9C #54ACD2 #2C82C9 #9365B8 #475577 #CCCCCC #41A85F #00A885 #3D8EB9 #2969B0 #553982 #28324E #000000 #F7DA64 #FBA026 #EB6B56 #E25041 #A38F84 #EFEFEF #FFFFFF #FAC51C #F37934 #D14841 #B8312F #7C706B #D1D5D8 REMOVE".split(" "),colorsStep:7,colorsHEXInput:!0,colorsButtons:["colorsBack","|","-"]});f.PLUGINS.colors=function(b){function d(c){for(var d="text"===c?b.opts.colorsText:b.opts.colorsBackground,f='<div class="fr-color-set fr-'.concat(c,'-color fr-selected-set">'),m=
0;m<d.length;m++)0!==m&&0===m%b.opts.colorsStep&&(f+="<br>"),f="REMOVE"!==d[m]?f+'<span class="fr-command fr-select-color" style="background:'.concat(d[m],';" \n        tabIndex="-1" aria-selected="false" role="button" data-cmd="apply').concat(c,'Color" \n        data-param1="').concat(d[m],'"><span class="fr-sr-only"> ').concat(b.language.translate("Color")).concat(d[m]," \n        &nbsp;&nbsp;&nbsp;</span></span>"):f+'<span class="fr-command fr-select-color" data-cmd="apply'.concat(c,'Color"\n         tabIndex="-1" role="button" data-param1="REMOVE" \n         title="').concat(b.language.translate("Clear Formatting"),
'">').concat(b.icon.create("remove"),' \n        <span class="fr-sr-only"> ').concat(b.language.translate("Clear Formatting")," </span></span>");return"".concat(f,"</div>")}function c(c,d){b.events.on("popup.tab",function(m){var t=z(m.currentTarget);if(!b.popups.isVisible(d)||!t.is("span"))return!0;var v=m.which,p=!0;if(f.KEYCODE.TAB===v)v=c.find(".fr-buttons"),p=!b.accessibility.focusToolbar(v,m.shiftKey?!0:!1);else if(f.KEYCODE.ARROW_UP===v||f.KEYCODE.ARROW_DOWN===v||f.KEYCODE.ARROW_LEFT===v||f.KEYCODE.ARROW_RIGHT===
v){if(t.is("span.fr-select-color")){p=t.parent().find("span.fr-select-color");var D=p.index(t);t=b.opts.colorsStep;D=Math.floor(D/t)*t+D%t;var C=Math.floor(p.length/t)*t;f.KEYCODE.ARROW_UP===v?D=((D-t)%C+C)%C:f.KEYCODE.ARROW_DOWN===v?D=(D+t)%C:f.KEYCODE.ARROW_LEFT===v?D=((D-1)%C+C)%C:f.KEYCODE.ARROW_RIGHT===v&&(D=(D+1)%C);v=z(p.get(D));b.events.disableBlur();v.focus();p=!1}}else f.KEYCODE.ENTER===v&&(b.button.exec(t),p=!1);!1===p&&(m.preventDefault(),m.stopPropagation());return p},!0)}function m(c){var d=
b.popups.get("".concat(c,"Color.picker")),f=z(b.selection.element());var m="background"===c?"background-color":"color";var t=d.find(".fr-".concat(c,"-color .fr-select-color"));t.find(".fr-selected-color").remove();t.removeClass("fr-active-item");for(t.not('[data-param1="REMOVE"]').attr("aria-selected",!1);f.get(0)!==b.el;)if("transparent"===f.css(m)||"rgba(0, 0, 0, 0)"===f.css(m))f=f.parent();else{d=d.find(".fr-".concat(c,'-color .fr-select-color[data-param1="').concat(b.helpers.RGBToHex(f.css(m)),
'"]'));d.append('<span class="fr-selected-color" aria-hidden="true">\uf00c</span>');d.addClass("fr-active-item").attr("aria-selected",!0);break}d=b.popups.get("".concat(c,"Color.picker"));c=d.find(".fr-".concat(c,"-color .fr-active-item")).attr("data-param1");d=d.find(".fr-color-hex-layer input");c||(c="");d.length&&z(d.val(c).input).trigger("change")}function M(c){"REMOVE"!==c?b.format.applyStyle("background-color",b.helpers.HEXtoRGB(c)):b.format.removeStyle("background-color");b.popups.hide("backgroundColor.picker")}
function O(c){"REMOVE"!==c?b.format.applyStyle("color",b.helpers.HEXtoRGB(c)):b.format.removeStyle("color");b.popups.hide("textColor.picker")}var z=b.$,H='<div class="fr-color-hex-layer fr-active fr-layer" id="fr-color-hex-layer- \n  '.concat(b.id,'"><div class="fr-input-line"><input maxlength="7" id="[ID]"\n  type="text" placeholder="').concat(b.language.translate("HEX Color"),'" \n  tabIndex="1" aria-required="true"></div><div class="fr-action-buttons"><button \n  type="button" class="fr-command fr-submit" data-cmd="[COMMAND]" tabIndex="2" role="button">\n  ').concat(b.language.translate("OK"),
"</button></div></div>");return{showColorsPopup:function(f){var t=b.$tb.find('.fr-command[data-cmd="'.concat(f,'"]')),z=b.popups.get("".concat(f,".picker"));if(!z){z="";b.opts.toolbarInline&&0<b.opts.colorsButtons.length&&(z+='<div class="fr-buttons fr-colors-buttons fr-tabs">\n        '.concat(b.button.buildList(b.opts.colorsButtons),"\n        </div>"));var w="";"textColor"===f?(b.opts.colorsHEXInput&&(w=H.replace(/\[ID\]/g,"fr-color-hex-layer-text-".concat(b.id)).replace(/\[COMMAND\]/g,"customTextColor")),
z={buttons:z,text_colors:d("text"),custom_color:w}):(b.opts.colorsHEXInput&&(w=H.replace(/\[ID\]/g,"fr-color-hex-layer-background-".concat(b.id)).replace(/\[COMMAND\]/g,"customBackgroundColor")),z={buttons:z,background_colors:d("background"),custom_color:w});z=b.popups.create("".concat(f,".picker"),z);c(z,"".concat(f,".picker"))}z.hasClass("fr-active")||(b.popups.setContainer("".concat(f,".picker"),b.$tb),"textColor"===f?m("text"):m("background"),t.isVisible()?(w=b.button.getPosition(t),z=w.left,
w=w.top,b.popups.show("".concat(f,".picker"),z,w,t.outerHeight())):(b.position.forSelection(z),b.popups.show("".concat(f,".picker"))))},background:M,customColor:function(c){var d=b.popups.get("".concat(c,"Color.picker")).find(".fr-color-hex-layer input");d.length&&(d=d.val(),"background"===c?M(d):O(d))},text:O,back:function(){b.popups.hide("textColor.picker");b.popups.hide("backgroundColor.picker");b.toolbar.showInline()}}};f.DefineIcon("textColor",{NAME:"tint",SVG_KEY:"textColor"});f.RegisterCommand("textColor",
{title:"Text Color",undo:!1,focus:!0,refreshOnCallback:!1,popup:!0,callback:function(){this.popups.isVisible("textColor.picker")?(this.$el.find(".fr-marker").length&&(this.events.disableBlur(),this.selection.restore()),this.popups.hide("textColor.picker")):this.colors.showColorsPopup("textColor")}});f.RegisterCommand("applytextColor",{undo:!0,callback:function(b,d){this.colors.text(d)}});f.RegisterCommand("customTextColor",{title:"OK",undo:!0,callback:function(){this.colors.customColor("text")}});
f.DefineIcon("backgroundColor",{NAME:"paint-brush",SVG_KEY:"backgroundColor"});f.RegisterCommand("backgroundColor",{title:"Background Color",undo:!1,focus:!0,refreshOnCallback:!1,popup:!0,callback:function(){this.popups.isVisible("backgroundColor.picker")?(this.$el.find(".fr-marker").length&&(this.events.disableBlur(),this.selection.restore()),this.popups.hide("backgroundColor.picker")):this.colors.showColorsPopup("backgroundColor")}});f.RegisterCommand("applybackgroundColor",{undo:!0,callback:function(b,
d){this.colors.background(d)}});f.RegisterCommand("customBackgroundColor",{title:"OK",undo:!0,callback:function(){this.colors.customColor("background")}});f.DefineIcon("colorsBack",{NAME:"arrow-left",SVG_KEY:"back"});f.RegisterCommand("colorsBack",{title:"Back",undo:!1,focus:!1,back:!0,refreshAfterCallback:!1,callback:function(){this.colors.back()}});f.DefineIcon("remove",{NAME:"eraser",SVG_KEY:"remove"})});
(function(f,b){"object"===typeof exports&&"undefined"!==typeof module?b(require("froala-editor")):"function"===typeof define&&define.amd?define(["froala-editor"],b):b(f.FroalaEditor)})(this,function(f){f=f&&f.hasOwnProperty("default")?f["default"]:f;Object.assign(f.DEFAULTS,{dragInline:!0});f.PLUGINS.draggable=function(b){function d(c){if(c.originalEvent&&c.originalEvent.target&&c.originalEvent.target.nodeType===Node.TEXT_NODE)return!0;c.target&&"A"===c.target.tagName&&1===c.target.childNodes.length&&
"IMG"===c.target.childNodes[0].tagName&&(c.target=c.target.childNodes[0]);if(!v(c.target).hasClass("fr-draggable"))return c.preventDefault(),!1;b.undo.canDo()||b.undo.saveStep();b.opts.dragInline?b.$el.attr("contenteditable",!0):b.$el.attr("contenteditable",!1);b.opts.toolbarInline&&b.toolbar.hide();v(c.target).addClass("fr-dragging");b.browser.msie||b.browser.edge||b.selection.clear();c.originalEvent.dataTransfer.setData("text","Froala")}function c(c,d,f){if(b.opts.iframe){var p=b.helpers.getPX(b.$wp.find(".fr-iframe").css("padding-top")),
m=b.helpers.getPX(b.$wp.find(".fr-iframe").css("padding-left"));c+=b.$iframe.offset().top+p;d+=b.$iframe.offset().left+m}w.offset().top!==c&&w.css("top",c);w.offset().left!==d&&w.css("left",d);w.width()!==f&&w.css("width",f)}function m(d){var p=b.doc.elementFromPoint(d.originalEvent.pageX-b.win.pageXOffset,d.originalEvent.pageY-b.win.pageYOffset);if(!U(p)){for(var m=0,t=p;!U(t)&&t===p&&0<d.originalEvent.pageY-b.win.pageYOffset-m;)m++,t=b.doc.elementFromPoint(d.originalEvent.pageX-b.win.pageXOffset,
d.originalEvent.pageY-b.win.pageYOffset-m);if(!U(t)||w&&0===b.$el.find(t).length&&t!==w.get(0))t=null;for(var z=0,H=p;!U(H)&&H===p&&d.originalEvent.pageY-b.win.pageYOffset+z<v(b.doc).height();)z++,H=b.doc.elementFromPoint(d.originalEvent.pageX-b.win.pageXOffset,d.originalEvent.pageY-b.win.pageYOffset+z);if(!U(H)||w&&0===b.$el.find(H).length&&H!==w.get(0))H=null;p=null===H&&t?t:H&&null===t?H:H&&t?m<z?t:H:null}if(v(p).hasClass("fr-drag-helper"))return!1;p&&!b.node.isBlock(p)&&(p=b.node.blockParent(p));
p&&0<=["TD","TH","TR","THEAD","TBODY"].indexOf(p.tagName)&&(p=v(p).parents("table").get(0));p&&0<=["LI"].indexOf(p.tagName)&&(p=v(p).parents("UL, OL").get(0));p&&!v(p).hasClass("fr-drag-helper")?(w||(f.$draggable_helper||(f.$draggable_helper=v(document.createElement("div")).attr("class","fr-drag-helper")),w=f.$draggable_helper,b.events.on("shared.destroy",function(){w.html("").removeData().remove();w=null},!0)),d=d.originalEvent.pageY<v(p).offset().top+v(p).outerHeight()/2?!0:!1,m=v(p),t=0,d||0!==
m.next().length?(d||(m=m.next()),"before"===w.data("fr-position")&&m.is(w.data("fr-tag"))||(0<m.prev().length&&(t=parseFloat(m.prev().css("margin-bottom"))||0),t=Math.max(t,parseFloat(m.css("margin-top"))||0),c(m.offset().top-t/2-b.$box.offset().top,m.offset().left-b.win.pageXOffset-b.$box.offset().left,m.width()),w.data("fr-position","before"))):"after"===w.data("fr-position")&&m.is(w.data("fr-tag"))||(t=parseFloat(m.css("margin-bottom"))||0,c(m.offset().top+v(p).height()+t/2-b.$box.offset().top,
m.offset().left-b.win.pageXOffset-b.$box.offset().left,m.width()),w.data("fr-position","after")),w.data("fr-tag",m),w.addClass("fr-visible"),b.$box.append(w)):w&&0<b.$box.find(w).length&&w.removeClass("fr-visible")}function M(c){c.originalEvent.dataTransfer.dropEffect="move";if(b.opts.dragInline){a:{for(var d=0;d<f.INSTANCES.length;d++){var t=f.INSTANCES[d].$el.find(".fr-dragging");if(t.length){t=t.get(0);break a}}t=void 0}(!t||b.browser.msie||b.browser.edge)&&c.preventDefault()}else c.preventDefault(),
m(c)}function O(c){c.originalEvent.dataTransfer.dropEffect="move";b.opts.dragInline||c.preventDefault()}function z(c){b.$el.attr("contenteditable",!0);var d=b.$el.find(".fr-dragging");w&&w.hasClass("fr-visible")&&b.$box.find(w).length?H(c):d.length&&(c.preventDefault(),c.stopPropagation());w&&b.$box.find(w).length&&w.removeClass("fr-visible");d.removeClass("fr-dragging")}function H(c){b.$el.attr("contenteditable",!0);for(var d,m,t=0;t<f.INSTANCES.length;t++)if(d=f.INSTANCES[t].$el.find(".fr-dragging"),
d.length){m=f.INSTANCES[t];break}if(d.length){c.preventDefault();c.stopPropagation();if(w&&w.hasClass("fr-visible")&&b.$box.find(w).length)w.data("fr-tag")[w.data("fr-position")]('<span class="fr-marker"></span>'),w.removeClass("fr-visible");else if(!1===b.markers.insertAtPoint(c.originalEvent))return!1;d.removeClass("fr-dragging");d=b.events.chainTrigger("element.beforeDrop",d);if(!1===d)return!1;c=d;d.parent().is("A")&&1===d.parent().get(0).childNodes.length&&(c=d.parent());b.core.isEmpty()?b.events.focus():
(b.$el.find(".fr-marker").replaceWith(f.MARKERS),b.selection.restore());m===b||b.undo.canDo()||b.undo.saveStep();b.core.isEmpty()?b.$el.html(c):(t=b.markers.insert(),(b||"").selection&&c.contains(t)&&c.before(t),0===c.find(t).length?v(t).replaceWith(c):0===d.find(t).length&&v(t).replaceWith(d),d.after(f.MARKERS),b.selection.restore());b.popups.hideAll();b.selection.save();b.$el.find(b.html.emptyBlockTagsQuery()).not("TD, TH, LI, .fr-inner").not(b.opts.htmlAllowedEmptyTags.join(",")).remove();b.html.wrap();
b.html.fillEmptyBlocks();b.selection.restore();b.undo.saveStep();b.opts.iframe&&b.size.syncIframe();m!==b&&(m.popups.hideAll(),m.$el.find(m.html.emptyBlockTagsQuery()).not("TD, TH, LI, .fr-inner").remove(),m.html.wrap(),m.html.fillEmptyBlocks(),m.undo.saveStep(),m.events.trigger("element.dropped"),m.opts.iframe&&m.size.syncIframe());b.events.trigger("element.dropped",[c]);return!1}w&&w.removeClass("fr-visible");b.undo.canDo()||b.undo.saveStep();setTimeout(function(){b.undo.saveStep()},0)}function t(c){if(c&&
"DIV"===c.tagName&&b.node.hasClass(c,"fr-drag-helper"))c.parentNode.removeChild(c);else if(c&&c.nodeType===Node.ELEMENT_NODE){c=c.querySelectorAll("div.fr-drag-helper");for(var d=0;d<c.length;d++)c[d].parentNode.removeChild(c[d])}}var v=b.$,U=function(c){return!(c&&("HTML"===c.tagName||"BODY"===c.tagName||b.node.isElement(c)))},w;return{_init:function(){b.opts.enter===f.ENTER_BR&&(b.opts.dragInline=!0);b.events.on("dragstart",d,!0);b.events.on("dragover",M,!0);b.events.on("dragenter",O,!0);b.events.on("document.dragend",
z,!0);b.events.on("document.drop",z,!0);b.events.on("drop",H,!0);b.events.on("html.processGet",t)}}}});
(function(f,b){"object"===typeof exports&&"undefined"!==typeof module?b(require("froala-editor")):"function"===typeof define&&define.amd?define(["froala-editor"],b):b(f.FroalaEditor)})(this,function(f){f=f&&f.hasOwnProperty("default")?f["default"]:f;Object.assign(f.POPUP_TEMPLATES,{"file.insert":"[_BUTTONS_][_UPLOAD_LAYER_][_PROGRESS_BAR_]"});Object.assign(f.DEFAULTS,{fileUpload:!0,fileUploadURL:null,fileUploadParam:"file",fileUploadParams:{},fileUploadToS3:!1,fileUploadToAzure:!1,fileUploadMethod:"POST",
fileMaxSize:10485760,fileAllowedTypes:["*"],fileInsertButtons:["fileBack","|"],fileUseSelectedText:!1});f.PLUGINS.file=function(b){function d(){var a=b.popups.get("file.insert");a||(a=D());a.find(".fr-layer.fr-active").removeClass("fr-active").addClass("fr-pactive");a.find(".fr-file-progress-bar-layer").addClass("fr-active");a.find(".fr-buttons").hide();m(b.language.translate("Uploading"),0)}function c(a){var c=b.popups.get("file.insert");c&&(c.find(".fr-layer.fr-pactive").addClass("fr-active").removeClass("fr-pactive"),
c.find(".fr-file-progress-bar-layer").removeClass("fr-active"),c.find(".fr-buttons").show(),a&&(b.events.focus(),b.popups.hide("file.insert")))}function m(a,c){var d=b.popups.get("file.insert");d&&(d=d.find(".fr-file-progress-bar-layer"),d.find("h3").text(a+(c?" ".concat(c,"%"):"")),d.removeClass("fr-error"),c?(d.find("div").removeClass("fr-indeterminate"),d.find("div > span").css("width","".concat(c,"%"))):d.find("div").addClass("fr-indeterminate"))}function M(a,c,d,f){var e;b.edit.on();b.events.focus(!0);
b.selection.restore();b.opts.fileUseSelectedText&&b.selection.text().length&&(c=b.selection.text());a='<a href="'.concat(a,'" id="fr-inserted-file" ');if("undefined"!=typeof f)for(e in f)f.hasOwnProperty(e)&&"link"!=e&&(a+="".concat(e,'="').concat(f[e],'" '));-1==a.indexOf(' class="')&&(a+='class="fr-file" ');a+=">".concat(c,"</a>");b.html.insert(a);c=b.$el.find("#fr-inserted-file");c.removeAttr("id");b.popups.hide("file.insert");b.undo.saveStep();P();b.events.trigger("file.inserted",[c,d])}function O(a){try{if(!1===
b.events.trigger("file.uploaded",[a],!0))return b.edit.on(),!1;var c=JSON.parse(a);if(c.link)return c;t(2,a);return!1}catch(B){return t(4,a),!1}}function z(){t(4,this.response||this.responseText||this.responseXML)}function H(a){a.lengthComputable&&(a=a.loaded/a.total*100|0,m(b.language.translate("Uploading"),a))}function t(a,c){b.edit.on();var e=b.language.translate("Something went wrong. Please try again.");d();var f=b.popups.get("file.insert").find(".fr-file-progress-bar-layer");f.addClass("fr-error");
f=f.find("h3");f.text(e);b.events.disableBlur();f.focus();b.events.trigger("file.error",[{code:a,message:X[a]},c])}function v(){b.edit.on();c(!0)}function U(a){var c=new FileReader;c.onload=function(){var d=atob(c.result.split(",")[1]);var e=[];for(var f=0;f<d.length;f++)e.push(d.charCodeAt(f));d=a.type;a.name&&a.name.endsWith(".msg")&&(d="application/vnd.ms-outlook");e=window.URL.createObjectURL(new Blob([new Uint8Array(e)],{type:d}));b.file.insert(e,a.name,null)};d();c.readAsDataURL(a)}function w(a){if("undefined"!==
typeof a&&0<a.length){var c=a[0].type;a[0].name&&a[0].name.endsWith(".msg")&&(c="application/vnd.ms-outlook");if(!1===b.events.trigger("file.beforeUpload",[a]))return!1;var e=a[0];if(!(null!==b.opts.fileUploadURL&&"https://i.froala.com/upload"!==b.opts.fileUploadURL||b.opts.fileUploadToS3||b.opts.fileUploadToAzure))return U(e),!1;if(e.size>b.opts.fileMaxSize)return t(5),!1;if(0>b.opts.fileAllowedTypes.indexOf("*")&&0>b.opts.fileAllowedTypes.indexOf(c.replace(/file\//g,"")))return t(6),!1;var f;b.drag_support.formdata&&
(f=b.drag_support.formdata?new FormData:null);if(f){var p;if(!1!==b.opts.fileUploadToS3)for(p in f.append("key",b.opts.fileUploadToS3.keyStart+(new Date).getTime()+"-"+(e.name||"untitled")),f.append("success_action_status","201"),f.append("X-Requested-With","xhr"),f.append("Content-Type",c),b.opts.fileUploadToS3.params)b.opts.fileUploadToS3.params.hasOwnProperty(p)&&f.append(p,b.opts.fileUploadToS3.params[p]);for(p in b.opts.fileUploadParams)b.opts.fileUploadParams.hasOwnProperty(p)&&f.append(p,b.opts.fileUploadParams[p]);
f.append(b.opts.fileUploadParam,e);var m=b.opts.fileUploadURL;b.opts.fileUploadToS3&&(m=b.opts.fileUploadToS3.uploadURL?b.opts.fileUploadToS3.uploadURL:"https://".concat(b.opts.fileUploadToS3.region,".amazonaws.com/").concat(b.opts.fileUploadToS3.bucket));a=b.opts.fileUploadMethod;if(b.opts.fileUploadToAzure){var C=m=b.opts.fileUploadToAzure.uploadURL?"".concat(b.opts.fileUploadToAzure.uploadURL,"/").concat(e.name):encodeURI("https://".concat(b.opts.fileUploadToAzure.account,".blob.core.windows.net/").concat(b.opts.fileUploadToAzure.container,
"/").concat(e.name));b.opts.fileUploadToAzure.SASToken&&(m+=b.opts.fileUploadToAzure.SASToken);a="PUT"}var D=b.core.getXHR(m,a);if(b.opts.fileUploadToAzure){m=(new Date).toUTCString();if(!b.opts.fileUploadToAzure.SASToken&&b.opts.fileUploadToAzure.accessKey){var w=b.opts.fileUploadToAzure.account,G=b.opts.fileUploadToAzure.container;b.opts.fileUploadToAzure.uploadURL&&(w=b.opts.fileUploadToAzure.uploadURL.split("/"),G=w.pop(),w=w.pop().split(".")[0]);var P="x-ms-blob-type:BlockBlob\nx-ms-date:".concat(m,
"\nx-ms-version:2019-07-07");G=encodeURI("/"+w+"/"+G+"/"+e.name);var da=a=b.cryptoJSPlugin.cryptoJS.HmacSHA256(a+"\n\n\n"+e.size+"\n\n"+c+"\n\n\n\n\n\n\n"+P+"\n"+G,b.cryptoJSPlugin.cryptoJS.enc.Base64.parse(b.opts.fileUploadToAzure.accessKey)).toString(b.cryptoJSPlugin.cryptoJS.enc.Base64);D.setRequestHeader("Authorization","SharedKey "+w+":"+a)}D.setRequestHeader("x-ms-version","2019-07-07");D.setRequestHeader("x-ms-date",m);D.setRequestHeader("Content-Type",c);D.setRequestHeader("x-ms-blob-type",
"BlockBlob");for(p in b.opts.fileUploadParams)b.opts.fileUploadParams.hasOwnProperty(p)&&D.setRequestHeader(p,b.opts.fileUploadParams[p]);for(p in b.opts.fileUploadToAzure.params)b.opts.fileUploadToAzure.params.hasOwnProperty(p)&&D.setRequestHeader(p,b.opts.fileUploadToAzure.params[p])}D.onload=function(){a:{var a=e.name,c=C,d=D.status,f=D.response,g=D.responseXML,l=D.responseText;try{if(b.opts.fileUploadToS3||b.opts.fileUploadToAzure)if(201===d){if(b.opts.fileUploadToAzure){if(!1===b.events.trigger("file.uploadedToAzure",
[D.responseURL,da,f],!0)){b.edit.on();break a}var k=c}else try{var p=ba(g).find("Location").text(),m=ba(g).find("Key").text();!1===b.events.trigger("file.uploadedToS3",[p,m,g],!0)?(b.edit.on(),k=!1):k=p}catch(r){t(4,g),k=!1}k&&M(k,a,f||g)}else t(4,f||g);else if(200<=d&&300>d){var h=O(l);h&&M(h.link,a,f||l,h)}else t(3,f||l)}catch(r){t(4,f||l)}}};D.onerror=z;D.upload.onprogress=H;D.onabort=v;d();if(c=b.popups.get("file.insert"))c.off("abortUpload"),c.on("abortUpload",function(){4!==D.readyState&&D.abort()});
D.send(b.opts.fileUploadToAzure?e:f)}}}function G(a){b.events.$on(a,"dragover dragenter",".fr-file-upload-layer",function(){ba(this).addClass("fr-drop");return!1},!0);b.events.$on(a,"dragleave dragend",".fr-file-upload-layer",function(){ba(this).removeClass("fr-drop");return!1},!0);b.events.$on(a,"drop",".fr-file-upload-layer",function(c){c.preventDefault();c.stopPropagation();ba(this).removeClass("fr-drop");(c=c.originalEvent.dataTransfer)&&c.files&&(a.data("instance")||b).file.upload(c.files)},
!0);b.helpers.isIOS()&&b.events.$on(a,"touchstart",'.fr-file-upload-layer input[type="file"]',function(){ba(this).trigger("click")});b.events.$on(a,"change",'.fr-file-upload-layer input[type="file"]',function(){if(this.files){var c=a.data("instance")||b;c.events.disableBlur();a.find("input:focus").blur();c.events.enableBlur();c.file.upload(this.files)}ba(this).val("")},!0)}function p(){c()}function D(a){if(a)return b.popups.onHide("file.insert",p),!0;b.opts.fileUpload||b.opts.fileInsertButtons.splice(b.opts.fileInsertButtons.indexOf("fileUpload"),
1);a='<div class="fr-buttons fr-tabs">'.concat(b.button.buildList(b.opts.fileInsertButtons),"</div>");var c="";b.opts.fileUpload&&(c='<div class="fr-file-upload-layer fr-layer fr-active" id="fr-file-upload-layer-'.concat(b.id,'"><strong>').concat(b.language.translate("Drop file"),"</strong><br>(").concat(b.language.translate("or click"),')<div class="fr-form"><input type="file" name="').concat(b.opts.fileUploadParam,'" accept="').concat(0<=b.opts.fileAllowedTypes.indexOf("*")?"/":"").concat(b.opts.fileAllowedTypes.join(", ").toLowerCase(),
'" tabIndex="-1" aria-labelledby="fr-file-upload-layer-').concat(b.id,'" role="button"></div></div>'));a=b.popups.create("file.insert",{buttons:a,upload_layer:c,progress_bar:'<div class="fr-file-progress-bar-layer fr-layer"><h3 tabIndex="-1" class="fr-message">Uploading</h3><div class="fr-loader"><span class="fr-progress"></span></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-dismiss" data-cmd="fileDismissError" tabIndex="2" role="button">OK</button></div></div>'});
G(a);return a}function C(a){b.node.hasClass(a,"fr-file")}function da(a){var c=a.originalEvent.dataTransfer;if(c&&c.files&&c.files.length){var e=c.files[0];if(e&&"undefined"!==typeof e.type){if(0>e.type.indexOf("image")){if(!b.opts.fileUpload)return a.preventDefault(),a.stopPropagation(),!1;b.markers.remove();b.markers.insertAtPoint(a.originalEvent);b.$el.find(".fr-marker").replaceWith(f.MARKERS);b.popups.hideAll();b.popups.get("file.insert")||D();b.popups.setContainer("file.insert",b.$sc);b.popups.show("file.insert",
a.originalEvent.pageX,a.originalEvent.pageY);d();w(c.files);a.preventDefault();a.stopPropagation();return!1}}else 0>e.type.indexOf("image")&&(a.preventDefault(),a.stopPropagation())}}function qa(){b.events.on("drop",da);b.events.$on(b.$win,"keydown",function(a){a=a.which;var c=b.popups.get("file.insert");c&&a===f.KEYCODE.ESC&&c.trigger("abortUpload")});b.events.on("destroy",function(){var a=b.popups.get("file.insert");a&&a.trigger("abortUpload")})}function P(){var c=Array.prototype.slice.call(b.el.querySelectorAll("a.fr-file")),
d=[],f;for(f=0;f<c.length;f++)d.push(c[f].getAttribute("href"));if(a)for(f=0;f<a.length;f++)0>d.indexOf(a[f].getAttribute("href"))&&b.events.trigger("file.unlink",[a[f]]);a=c}var ba=b.$,X={1:"File cannot be loaded from the passed link.",2:"No link in upload response.",3:"Error during file upload.",4:"Parsing response failed.",5:"File is too large.",6:"File file type is invalid.",7:"Files can be uploaded only to same domain in IE 8 and IE 9."},a;return{_init:function(){qa();b.events.on("link.beforeRemove",
C);b.$wp&&(P(),b.events.on("contentChanged",P));D(!0)},showInsertPopup:function(){var a=b.$tb.find('.fr-command[data-cmd="insertFile"]'),d=b.popups.get("file.insert");d||(d=D());c();d.hasClass("fr-active")||(b.popups.refresh("file.insert"),b.popups.setContainer("file.insert",b.$tb),a.isVisible?(d=b.button.getPosition(a),b.popups.show("file.insert",d.left,d.top,a.outerHeight())):(b.position.forSelection(d),b.popups.show("file.insert")))},upload:w,insert:M,back:function(){b.events.disableBlur();b.selection.restore();
b.events.enableBlur();b.popups.hide("file.insert");b.toolbar.showInline()},hideProgressBar:c}};f.DefineIcon("insertFile",{NAME:"file-o",FA5NAME:"file",SVG_KEY:"insertFile"});f.RegisterCommand("insertFile",{title:"Upload File",undo:!1,focus:!0,refreshAfterCallback:!1,popup:!0,callback:function(){this.popups.isVisible("file.insert")?(this.$el.find(".fr-marker").length&&(this.events.disableBlur(),this.selection.restore()),this.popups.hide("file.insert")):this.file.showInsertPopup()},plugin:"file"});
f.DefineIcon("fileBack",{NAME:"arrow-left",SVG_KEY:"back"});f.RegisterCommand("fileBack",{title:"Back",undo:!1,focus:!1,back:!0,refreshAfterCallback:!1,callback:function(){this.file.back()},refresh:function(b){this.opts.toolbarInline?(b.removeClass("fr-hidden"),b.next(".fr-separator").removeClass("fr-hidden")):(b.addClass("fr-hidden"),b.next(".fr-separator").addClass("fr-hidden"))}});f.RegisterCommand("fileDismissError",{title:"OK",callback:function(){this.file.hideProgressBar(!0)}})});
(function(f,b){"object"===typeof exports&&"undefined"!==typeof module?b(require("froala-editor")):"function"===typeof define&&define.amd?define(["froala-editor"],b):b(f.FroalaEditor)})(this,function(f){f=f&&f.hasOwnProperty("default")?f["default"]:f;Object.assign(f.DEFAULTS,{fontFamily:{"Arial,Helvetica,sans-serif":"Arial","Georgia,serif":"Georgia","Impact,Charcoal,sans-serif":"Impact","Tahoma,Geneva,sans-serif":"Tahoma","Times New Roman,Times,serif,-webkit-standard":"Times New Roman","Verdana,Geneva,sans-serif":"Verdana"},
fontFamilySelection:!1,fontFamilyDefaultSelection:"Font Family"});f.PLUGINS.fontFamily=function(b){function d(b){b=b.replace(/(sans-serif|serif|monospace|cursive|fantasy)/gi,"").replace(/"|'| /g,"").split(",");return M(this).grep(b,function(b){return 0<b.length})}function c(b,c){for(var d=0;d<b.length;d++)for(var f=0;f<c.length;f++)if(b[d].toLowerCase()===c[f].toLowerCase())return[d,f];return null}function f(){var f=M(b.selection.element()).css("font-family");f=d(f);var m=[],H;for(H in b.opts.fontFamily)if(b.opts.fontFamily.hasOwnProperty(H)){var t=
d(H);(t=c(f,t))&&m.push([H,t])}if(0===m.length)return null;m.sort(function(b,c){var d=b[1][0]-c[1][0];return 0===d?b[1][1]-c[1][1]:d});return m[0][0]}var M=b.$;return{apply:function(c){b.format.applyStyle("font-family",c)},refreshOnShow:function(b,c){c.find(".fr-command.fr-active").removeClass("fr-active").attr("aria-selected",!1);c.find('.fr-command[data-param1="'.concat(f(),'"]')).addClass("fr-active").attr("aria-selected",!0)},refresh:function(c){if(b.opts.fontFamilySelection){var d=M(b.selection.element()).css("font-family").replace(/(sans-serif|serif|monospace|cursive|fantasy)/gi,
"").replace(/"|'|/g,"").split(",");c.find("> span").text(b.opts.fontFamily[f()]||d[0]||b.language.translate(b.opts.fontFamilyDefaultSelection))}}}};f.RegisterCommand("fontFamily",{type:"dropdown",displaySelection:function(b){return b.opts.fontFamilySelection},defaultSelection:function(b){return b.opts.fontFamilyDefaultSelection},displaySelectionWidth:120,html:function(){var b='<ul class="fr-dropdown-list" role="presentation">',d=this.opts.fontFamily,c;for(c in d)d.hasOwnProperty(c)&&(b+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="fontFamily" data-param1="'.concat(c,
'" \n        style="font-family: ').concat(c,'" title="').concat(d[c],'">').concat(d[c],"</a></li>"));return b+"</ul>"},title:"Font Family",callback:function(b,d){this.fontFamily.apply(d)},refresh:function(b){this.fontFamily.refresh(b)},refreshOnShow:function(b,d){this.fontFamily.refreshOnShow(b,d)},plugin:"fontFamily"});f.DefineIcon("fontFamily",{NAME:"font",SVG_KEY:"fontFamily"})});
(function(f,b){"object"===typeof exports&&"undefined"!==typeof module?b(require("froala-editor")):"function"===typeof define&&define.amd?define(["froala-editor"],b):b(f.FroalaEditor)})(this,function(f){f=f&&f.hasOwnProperty("default")?f["default"]:f;Object.assign(f.DEFAULTS,{fontSize:"8 9 10 11 12 14 18 24 30 36 48 60 72 96".split(" "),fontSizeSelection:!1,fontSizeDefaultSelection:"Font Size",fontSizeUnit:"px"});f.PLUGINS.fontSize=function(b){var d=b.$;return{apply:function(c){b.format.applyStyle("font-size",
c)},refreshOnShow:function(c,f){c=d(b.selection.element()).css("font-size");"pt"===b.opts.fontSizeUnit&&(c="".concat(Math.round(72*parseFloat(c,10)/96),"pt"));f.find(".fr-command.fr-active").removeClass("fr-active").attr("aria-selected",!1);f.find('.fr-command[data-param1="'.concat(c,'"]')).addClass("fr-active").attr("aria-selected",!0)},refresh:function(c){if(b.opts.fontSizeSelection){var f=b.helpers.getPX(d(b.selection.element()).css("font-size"));"pt"===b.opts.fontSizeUnit&&(f="".concat(Math.round(72*
parseFloat(f,10)/96),"pt"));c.find("> span").text(f)}}}};f.RegisterCommand("fontSize",{type:"dropdown",title:"Font Size",displaySelection:function(b){return b.opts.fontSizeSelection},displaySelectionWidth:30,defaultSelection:function(b){return b.opts.fontSizeDefaultSelection},html:function(){for(var b='<ul class="fr-dropdown-list" role="presentation">',d=this.opts.fontSize,c=0;c<d.length;c++){var f=d[c];b+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="fontSize" data-param1="'.concat(f).concat(this.opts.fontSizeUnit,
'" title="').concat(f,'">').concat(f,"</a></li>")}return b+"</ul>"},callback:function(b,d){this.fontSize.apply(d)},refresh:function(b){this.fontSize.refresh(b)},refreshOnShow:function(b,d){this.fontSize.refreshOnShow(b,d)},plugin:"fontSize"});f.DefineIcon("fontSize",{NAME:"text-height",SVG_KEY:"fontSize"})});
(function(f,b){"object"===typeof exports&&"undefined"!==typeof module?b(require("froala-editor")):"function"===typeof define&&define.amd?define(["froala-editor"],b):b(f.FroalaEditor)})(this,function(f){function b(d){"@babel/helpers - typeof";return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(b){return typeof b}:function(b){return b&&"function"==typeof Symbol&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},b(d)}f=f&&f.hasOwnProperty("default")?f["default"]:
f;Object.assign(f.POPUP_TEMPLATES,{"image.insert":"[_BUTTONS_][_UPLOAD_LAYER_][_BY_URL_LAYER_][_PROGRESS_BAR_]","image.edit":"[_BUTTONS_]","image.alt":"[_BUTTONS_][_ALT_LAYER_]","image.size":"[_BUTTONS_][_SIZE_LAYER_]"});Object.assign(f.DEFAULTS,{imageInsertButtons:["imageBack","|","imageUpload","imageByURL"],imageEditButtons:"imageReplace imageAlign imageCaption imageRemove imageLink linkOpen linkEdit linkRemove - imageDisplay imageStyle imageAlt imageSize".split(" "),imageAltButtons:["imageBack",
"|"],imageSizeButtons:["imageBack","|"],imageUpload:!0,imageUploadURL:null,imageCORSProxy:"https://cors-anywhere.froala.com",imageUploadRemoteUrls:!0,imageUploadParam:"file",imageUploadParams:{},imageUploadToS3:!1,imageUploadToAzure:!1,imageUploadMethod:"POST",imageMaxSize:10485760,imageAllowedTypes:["jpeg","jpg","png","gif","webp"],imageResize:!0,imageResizeWithPercent:!1,imageRoundPercent:!1,imageDefaultWidth:300,imageDefaultAlign:"center",imageDefaultDisplay:"block",imageSplitHTML:!1,imageStyles:{"fr-rounded":"Rounded",
"fr-bordered":"Bordered","fr-shadow":"Shadow"},imageMove:!0,imageMultipleStyles:!0,imageTextNear:!0,imagePaste:!0,imagePasteProcess:!1,imageMinWidth:16,imageOutputSize:!1,imageDefaultMargin:5,imageAddNewLine:!1});f.IMAGE_ALLOW_REGEX=/\.(gif|jpe?g|tiff?|png|webp|bmp)$/i;f.PLUGINS.image=function(d){function c(){var a=d.popups.get("image.insert").find(".fr-image-by-url-layer input");a.val("");y&&a.val(y.attr("src"));a.trigger("change")}function m(){var a=d.popups.get("image.edit");a||(a=D());if(a){var b=
y;d.popups.setContainer("image.edit",d.$sc);d.popups.refresh("image.edit");var c=b.offset().left+b.outerWidth()/2,e=b&&window.pageYOffset+b.get(0).getBoundingClientRect().top,f=d.$wp&&window.pageYOffset+d.$wp.get(0).getBoundingClientRect().top;f||(f=e);d.opts.iframe?(a=d.$wp.scrollTop()+a.outerHeight(),a<b.get(0).getBoundingClientRect().top&&(a=b.get(0).getBoundingClientRect().top),a>b.get(0).getBoundingClientRect().top+b.height()&&(a=b.get(0).getBoundingClientRect().top+b.height())):a=e>f?e:d.$wp&&
e+b.height()<f+d.$wp.height()?e+b.height():f+a.outerHeight();y.hasClass("fr-uploading")?C():d.popups.show("image.edit",c,a,1,!0)}}function M(){da()}function O(){for(var a="IMG"==d.el.tagName?[d.el]:d.el.querySelectorAll("img"),b=0;b<a.length;b++){var c=F(a[b]);if(!d.opts.htmlUntouched&&d.opts.useClasses){if(d.opts.imageDefaultAlign||d.opts.imageDefaultDisplay){var e=c;0<e.parents(".fr-img-caption").length&&(e=e.parents(".fr-img-caption").first());e.hasClass("fr-dii")||e.hasClass("fr-dib")||(e.addClass("fr-fi".concat(W(e)[0])),
e.addClass("fr-di".concat(ya(e)[0])),e.css("margin",""),e.css("float",""),e.css("display",""),e.css("z-index",""),e.css("position",""),e.css("overflow",""),e.css("vertical-align",""))}d.opts.imageTextNear||(0<c.parents(".fr-img-caption").length?c.parents(".fr-img-caption").first().removeClass("fr-dii").addClass("fr-dib"):c.removeClass("fr-dii").addClass("fr-dib"))}else if(!d.opts.htmlUntouched&&!d.opts.useClasses&&(d.opts.imageDefaultAlign||d.opts.imageDefaultDisplay)){e=c;0<e.parents(".fr-img-caption").length&&
(e=e.parents(".fr-img-caption").first());var f=e.hasClass("fr-dib")?"block":e.hasClass("fr-dii")?"inline":null,g=e.hasClass("fr-fil")?"left":e.hasClass("fr-fir")?"right":W(e);na(e,f,g);e.removeClass("fr-dib fr-dii fr-fir fr-fil")}if(d.opts.iframe)c.on("load",d.size.syncIframe)}}function z(a){"undefined"===typeof a&&(a=!0);var b=Array.prototype.slice.call(d.el.querySelectorAll("img")),c=[],e;for(e=0;e<b.length;e++)if(c.push(b[e].getAttribute("src")),F(b[e]).toggleClass("fr-draggable",d.opts.imageMove),
""===b[e].getAttribute("class")&&b[e].removeAttribute("class"),""===b[e].getAttribute("style")&&b[e].removeAttribute("style"),b[e].parentNode&&b[e].parentNode.parentNode&&d.node.hasClass(b[e].parentNode.parentNode,"fr-img-caption")){var f=b[e].parentNode.parentNode;d.browser.mozilla||f.setAttribute("contenteditable",!1);f.setAttribute("draggable",!1);f.classList.add("fr-draggable");(f=b[e].nextSibling)&&!d.browser.mozilla&&f.setAttribute("contenteditable",!0)}if(J)for(e=0;e<J.length;e++)0>c.indexOf(J[e].getAttribute("src"))&&
d.events.trigger("image.removed",[F(J[e])]);if(J&&a){a=[];for(e=0;e<J.length;e++)a.push(J[e].getAttribute("src"));for(e=0;e<b.length;e++)0>a.indexOf(b[e].getAttribute("src"))&&d.events.trigger("image.loaded",[F(b[e])])}J=b}function H(){aa||u();if(!y)return!1;var a=d.$wp||d.$sc;a.append(aa);aa.data("instance",d);var b=a.scrollTop()-("static"!=a.css("position")?a.offset().top:0),c=a.scrollLeft()-("static"!=a.css("position")?a.offset().left:0);c-=d.helpers.getPX(a.css("border-left-width"));b-=d.helpers.getPX(a.css("border-top-width"));
d.$el.is("img")&&d.$sc.is("body")&&(c=b=0);a=ra();ka()&&(a=a.find(".fr-img-wrap"));var e=0,f=0;d.opts.iframe&&(e=d.helpers.getPX(d.$wp.find(".fr-iframe").css("padding-top")),f=d.helpers.getPX(d.$wp.find(".fr-iframe").css("padding-left")));aa.css("top",(d.opts.iframe?a.offset().top+e:a.offset().top+b)-1).css("left",(d.opts.iframe?a.offset().left+f:a.offset().left+c)-1).css("width",a.get(0).getBoundingClientRect().width).css("height",a.get(0).getBoundingClientRect().height).addClass("fr-active")}function t(a){return'<div class="fr-handler fr-h'.concat(a,
'"></div>')}function v(a){ka()&&y.parents(".fr-img-caption").css("width",a);y.css("width",a)}function U(a){if(!d.core.sameInstance(aa))return!0;a.preventDefault();a.stopPropagation();if(d.$el.find("img.fr-error").left)return!1;d.undo.canDo()||d.undo.saveStep();var b=a.pageX||a.originalEvent.touches[0].pageX;if("mousedown"==a.type){a=d.$oel.get(0);var c=a.ownerDocument;c=c.defaultView||c.parentWindow;var e=!1;try{e=c.location!=c.parent.location&&!(c.$&&c.$.FE)}catch(Ga){}e&&c.frameElement&&(b+=d.helpers.getPX(F(a).offset().left)+
c.frameElement.clientLeft)}fa=F(this);fa.data("start-x",b);fa.data("start-width",y.width());fa.data("start-height",y.height());b=y.width();d.opts.imageResizeWithPercent&&(a=y.parentsUntil(d.$el,d.html.blockTagsQuery()).get(0)||d.el,b=(b/F(a).outerWidth()*100).toFixed(2)+"%");v(b);pa.show();d.popups.hideAll();wa=!1}function w(a){if(!d.core.sameInstance(aa))return!0;if(fa&&y){a.preventDefault();if(d.$el.find("img.fr-error").left)return!1;a=a.pageX||(a.originalEvent.touches?a.originalEvent.touches[0].pageX:
null);if(!a)return!1;var b=fa.data("start-x");a-=b;b=fa.data("start-width");if(fa.hasClass("fr-hnw")||fa.hasClass("fr-hsw"))a=0-a;if(d.opts.imageResizeWithPercent){var c=y.parentsUntil(d.$el,d.html.blockTagsQuery()).get(0)||d.el;b=((b+a)/F(c).outerWidth()*100).toFixed(2);d.opts.imageRoundPercent&&(b=Math.round(b));v("".concat(b,"%"));c=ka()?(d.helpers.getPX(y.parents(".fr-img-caption").css("width"))/F(c).outerWidth()*100).toFixed(2):(d.helpers.getPX(y.css("width"))/F(c).outerWidth()*100).toFixed(2);
c===b||d.opts.imageRoundPercent||v("".concat(c,"%"));y.css("height","").removeAttr("height")}else if(b+a>=d.opts.imageMinWidth&&(v(b+a),c=ka()?d.helpers.getPX(y.parents(".fr-img-caption").css("width")):d.helpers.getPX(y.css("width"))),c!==b+a&&v(c),(y.attr("style")||"").match(/(^height:)|(; *height:)/)||y.attr("height"))y.css("height",fa.data("start-height")*y.width()/fa.data("start-width")),y.removeAttr("height");H();d.events.trigger("image.resize",[y])}}function G(a){if(!d.core.sameInstance(aa))return!0;
if(fa&&y){a&&a.stopPropagation();if(d.$el.find("img.fr-error").left)return!1;fa=null;pa.hide();H();m();d.undo.saveStep();d.events.trigger("image.resizeEnd",[y])}else aa.removeClass("fr-active")}function p(a,b,c){d.edit.on();y&&y.addClass("fr-error");ua[a]?P(d.language.translate(ua[a])):P(d.language.translate("Something went wrong. Please try again."));!y&&c&&h(c);d.events.trigger("image.error",[{code:a,message:ua[a]},b,c])}function D(a){return a?(d.$wp&&d.events.$on(d.$wp,"scroll.image-edit",function(){y&&
d.popups.isVisible("image.edit")&&(d.events.disableBlur(),m())}),!0):0<d.opts.imageEditButtons.length?(a=""+'<div class="fr-buttons">\n        '.concat(d.button.buildList(d.opts.imageEditButtons),"\n        </div>"),d.popups.create("image.edit",{buttons:a})):!1}function C(a){var b=d.popups.get("image.insert");b||(b=ca());b.find(".fr-layer.fr-active").removeClass("fr-active").addClass("fr-pactive");b.find(".fr-image-progress-bar-layer").addClass("fr-active");b.find(".fr-buttons").hide();if(y){b=ra();
d.popups.setContainer("image.insert",d.$sc);var c=b.offset().left,e=b.offset().top+b.height();d.popups.show("image.insert",c,e,b.outerHeight())}"undefined"==typeof a&&qa(d.language.translate("Uploading"),0)}function da(a){var b=d.popups.get("image.insert");b&&(b.find(".fr-layer.fr-pactive").addClass("fr-active").removeClass("fr-pactive"),b.find(".fr-image-progress-bar-layer").removeClass("fr-active"),b.find(".fr-buttons").show(),a||d.$el.find("img.fr-error").length)&&(d.events.focus(),d.$el.find("img.fr-error").length&&
(d.$el.find("img.fr-error").remove(),d.undo.saveStep(),d.undo.run(),d.undo.dropRedo()),!d.$wp&&y&&(a=y,I(!0),d.selection.setAfter(a.get(0)),d.selection.restore()),d.popups.hide("image.insert"))}function qa(a,b){var c=d.popups.get("image.insert");c&&(c=c.find(".fr-image-progress-bar-layer"),c.find("h3").text(a+(b?" ".concat(b,"%"):"")),c.removeClass("fr-error"),b?(c.find("div").removeClass("fr-indeterminate"),c.find("div > span").css("width","".concat(b,"%"))):c.find("div").addClass("fr-indeterminate"))}
function P(a){C();var b=d.popups.get("image.insert").find(".fr-image-progress-bar-layer");b.addClass("fr-error");b=b.find("h3");b.text(a);d.events.disableBlur();b.focus()}function ba(a){ia.call(a.get(0))}function X(){var a=F(this);d.popups.hide("image.insert");a.removeClass("fr-uploading");a.next().is("br")&&a.next().remove();ba(a);d.events.trigger("image.loaded",[a])}function a(a,b,c,e,f){e&&"string"===typeof e&&(e=d.$(e));d.edit.off();qa(d.language.translate("Loading image"));b&&(a=d.helpers.sanitizeURL(a));
b=new Image;b.onload=function(){var b;if(e){d.undo.canDo()||e.hasClass("fr-uploading")||d.undo.saveStep();var T=e.data("fr-old-src");e.data("fr-image-pasted")&&(T=null);if(d.$wp){var g=e.clone().removeData("fr-old-src").removeClass("fr-uploading").removeAttr("data-fr-image-pasted");g.off("load");T&&e.attr("src",T);!d.opts.trackChangesEnabled||e[0].parentNode&&"SPAN"===e[0].parentNode.tagName&&e[0].parentNode.hasAttribute("data-tracking")||d.track_changes.replaceSpecialItem(e);e.replaceWith(g)}else g=
e;for(var sa=g.get(0).attributes,J=0;J<sa.length;J++){var h=sa[J];0===h.nodeName.indexOf("data-")?g.removeAttr(h.nodeName):c&&c.hasOwnProperty(h.nodeName)&&g.removeAttr(h.nodeName)}if("undefined"!=typeof c)for(b in c)c.hasOwnProperty(b)&&"link"!=b&&g.attr("".concat(b),c[b]);g.on("load",X);g.attr("src",a);d.edit.on();z(!1);e[0].src!=a&&d.selection.restore();d.undo.saveStep();d.events.disableBlur();d.$el.blur();d.events.trigger(T?"image.replaced":"image.inserted",[g,f])}else if(g=l(a,c,X))z(!1),d.undo.saveStep(),
d.events.disableBlur(),d.$el.blur(),d.events.trigger("image.inserted",[g,f])};b.onerror=function(){p(1)};C(d.language.translate("Loading image"));b.src=a}function e(a){try{if(!1===d.events.trigger("image.uploaded",[a],!0))return d.edit.on(),!1;var b=JSON.parse(a);if(b.link)return b;p(2,a);return!1}catch(Fa){return p(4,a),!1}}function g(){p(4,this.response||this.responseText||this.responseXML)}function B(a){a.lengthComputable&&(a=a.loaded/a.total*100|0,qa(d.language.translate("Uploading"),a))}function l(a,
b,c){var e="",f;a=F(document.createElement("img")).attr("src",a);if(b&&"undefined"!=typeof b)for(f in b)b.hasOwnProperty(f)&&"link"!=f&&(e+=" data-".concat(f,'="').concat(b[f],'"'),a.attr("".concat(f),b[f]));(b=d.opts.imageDefaultWidth)&&"auto"!=b&&(b=d.opts.imageResizeWithPercent?"100%":"".concat(b,"px"));a.attr("style",b?"width: ".concat(b,";"):"");na(a,d.opts.imageDefaultDisplay,d.opts.imageDefaultAlign);a.on("load",c);a.on("error",c);d.edit.on();d.events.focus(!0);d.selection.restore();d.undo.saveStep();
d.opts.imageSplitHTML?d.markers.split():d.markers.insert();d.html.wrap();c=d.$el.find(".fr-marker");if(c.length)(c.parent().is("hr")||c.parent().is("IMG"))&&c.parent().after(c),d.node.isLastSibling(c)&&c.parent().hasClass("fr-deletable")&&c.insertAfter(c.parent()),c.replaceWith(a);else{if(d.opts.trackChangesEnabled)return da(!0),!1;d.$el.append(a)}d.selection.clear();return a}function n(){d.edit.on();da(!0)}function L(b,c,f,J,h,k){function T(){var T=F(this);T.off("load");T.addClass("fr-uploading");
T.next().is("br")&&T.next().remove();d.placeholder.refresh();ba(T);H();C();d.edit.off();b.onload=function(){a:{qa(d.language.translate("Loading image"));var c=b.status,f=b.response,g=b.responseXML,sa=b.responseText;try{if(d.opts.imageUploadToS3||d.opts.imageUploadToAzure)if(201==c){if(d.opts.imageUploadToAzure){if(!1===d.events.trigger("image.uploadedToAzure",[b.responseURL,k,f],!0)){d.edit.on();break a}var J=h}else try{var l=F(g).find("Location").text(),Ca=F(g).find("Key").text();!1===d.events.trigger("image.uploadedToS3",
[l,Ca,g],!0)?(d.edit.on(),J=!1):J=l}catch(Ea){p(4,g),J=!1}J&&a(J,!1,[],T,f||g)}else p(4,f||g,T);else if(200<=c&&300>c){var wa=e(sa);wa&&a(wa.link,!1,wa,T,f||sa)}else p(3,f||sa,T)}catch(Ea){p(4,f||sa,T)}}};b.onerror=g;b.upload.onprogress=B;b.onabort=n;F(T.off("abortUpload")).on("abortUpload",function(){4!=b.readyState&&(b.abort(),J?(J.attr("src",J.data("fr-old-src")),J.removeClass("fr-uploading")):T.remove(),I(!0))});b.send(d.opts.imageUploadToAzure?f:c)}var sa=new FileReader;sa.onload=function(){var a=
sa.result;if(0>sa.result.indexOf("svg+xml")){a=atob(sa.result.split(",")[1]);for(var b=[],c=0;c<a.length;c++)b.push(a.charCodeAt(c));a=window.URL.createObjectURL(new Blob([new Uint8Array(b)],{type:"image/jpeg"}))}J?(J.on("load",T),J.on("error",function(){T();F(this).off("error")}),d.edit.on(),d.undo.saveStep(),J.data("fr-old-src",J.attr("src")),J.attr("src",a)):l(a,null,T)};sa.readAsDataURL(f)}function S(a,b){var c=new FileReader;c.onload=function(){var e=c.result;if(0>c.result.indexOf("svg+xml")){e=
atob(c.result.split(",")[1]);for(var f=[],T=0;T<e.length;T++)f.push(e.charCodeAt(T));e=window.URL.createObjectURL(new Blob([new Uint8Array(f)],{type:a.type}));b&&b.data("fr-old-src",b.attr("src"));d.image.insert(e,!1,null,b)}else d.image.insert(e,null,null,d.image.get())};C();c.readAsDataURL(a)}function A(a,b){if("undefined"!=typeof a&&0<a.length){if(!1===d.events.trigger("image.beforeUpload",[a,b]))return!1;a=a[0];if(!(null!==d.opts.imageUploadURL&&"https://i.froala.com/upload"!=d.opts.imageUploadURL||
d.opts.imageUploadToS3||d.opts.imageUploadToAzure))return S(a,b||y),!1;a.name||(a.name=(new Date).getTime()+"."+(a.type||"image/jpeg").replace(/image\//g,""));if(a.size>d.opts.imageMaxSize)return p(5),!1;if(0>d.opts.imageAllowedTypes.indexOf(a.type.replace(/image\//g,"")))return p(6),!1;var c;d.drag_support.formdata&&(c=d.drag_support.formdata?new FormData:null);if(c){var e;if(!1!==d.opts.imageUploadToS3)for(e in c.append("key",d.opts.imageUploadToS3.keyStart+(new Date).getTime()+"-"+(a.name||"untitled")),
c.append("success_action_status","201"),c.append("X-Requested-With","xhr"),c.append("Content-Type",a.type),d.opts.imageUploadToS3.params)d.opts.imageUploadToS3.params.hasOwnProperty(e)&&c.append(e,d.opts.imageUploadToS3.params[e]);for(e in d.opts.imageUploadParams)d.opts.imageUploadParams.hasOwnProperty(e)&&c.append(e,d.opts.imageUploadParams[e]);c.append(d.opts.imageUploadParam,a,a.name);var f=d.opts.imageUploadURL,T=d.opts.imageUploadMethod;d.opts.imageUploadToS3&&(f=d.opts.imageUploadToS3.uploadURL?
d.opts.imageUploadToS3.uploadURL:"https://".concat(d.opts.imageUploadToS3.region,".amazonaws.com/").concat(d.opts.imageUploadToS3.bucket));if(d.opts.imageUploadToAzure){var g=f=d.opts.imageUploadToAzure.uploadURL?"".concat(d.opts.imageUploadToAzure.uploadURL,"/").concat(a.name):encodeURI("https://".concat(d.opts.imageUploadToAzure.account,".blob.core.windows.net/").concat(d.opts.imageUploadToAzure.container,"/").concat(a.name));d.opts.imageUploadToAzure.SASToken&&(f+=d.opts.imageUploadToAzure.SASToken);
T="PUT"}f=d.core.getXHR(f,T);if(d.opts.imageUploadToAzure){var sa=(new Date).toUTCString();if(!d.opts.imageUploadToAzure.SASToken&&d.opts.imageUploadToAzure.accessKey){var J=d.opts.imageUploadToAzure.account;var h=d.opts.imageUploadToAzure.container;d.opts.imageUploadToAzure.uploadURL&&(J=d.opts.imageUploadToAzure.uploadURL.split("/"),h=J.pop(),J=J.pop().split(".")[0]);var l="x-ms-blob-type:BlockBlob\nx-ms-date:".concat(sa,"\nx-ms-version:2019-07-07");h=encodeURI("/"+J+"/"+h+"/"+a.name);h=T=d.cryptoJSPlugin.cryptoJS.HmacSHA256(T+
"\n\n\n"+a.size+"\n\n"+a.type+"\n\n\n\n\n\n\n"+l+"\n"+h,d.cryptoJSPlugin.cryptoJS.enc.Base64.parse(d.opts.imageUploadToAzure.accessKey)).toString(d.cryptoJSPlugin.cryptoJS.enc.Base64);f.setRequestHeader("Authorization","SharedKey "+J+":"+T)}f.setRequestHeader("x-ms-version","2019-07-07");f.setRequestHeader("x-ms-date",sa);f.setRequestHeader("Content-Type",a.type);f.setRequestHeader("x-ms-blob-type","BlockBlob");for(e in d.opts.imageUploadParams)d.opts.imageUploadParams.hasOwnProperty(e)&&f.setRequestHeader(e,
d.opts.imageUploadParams[e]);for(e in d.opts.imageUploadToAzure.params)d.opts.imageUploadToAzure.params.hasOwnProperty(e)&&f.setRequestHeader(e,d.opts.imageUploadToAzure.params[e])}L(f,c,a,b||y,g,h)}}}function la(a){d.events.$on(a,"dragover dragenter",".fr-image-upload-layer",function(a){F(this).addClass("fr-drop");(d.browser.msie||d.browser.edge)&&a.preventDefault();return!1},!0);d.events.$on(a,"dragleave dragend",".fr-image-upload-layer",function(a){F(this).removeClass("fr-drop");(d.browser.msie||
d.browser.edge)&&a.preventDefault();return!1},!0);d.events.$on(a,"drop",".fr-image-upload-layer",function(b){b.preventDefault();b.stopPropagation();F(this).removeClass("fr-drop");if((b=b.originalEvent.dataTransfer)&&b.files){var c=a.data("instance")||d;c.events.disableBlur();c.image.upload(b.files);c.events.enableBlur()}},!0);d.helpers.isIOS()&&d.events.$on(a,"touchstart",'.fr-image-upload-layer input[type="file"]',function(){F(this).trigger("click")},!0);d.events.$on(a,"change",'.fr-image-upload-layer input[type="file"]',
function(){if(this.files){var b=a.data("instance")||d;b.events.disableBlur();a.find("input:focus").blur();b.events.enableBlur();b.image.upload(this.files,y)}F(this).val("")},!0)}function R(a){if(a.is("img")&&0<a.parents(".fr-img-caption").length)return a.parents(".fr-img-caption")}function ma(a){var b=a.originalEvent.dataTransfer;if(b&&b.files&&b.files.length){var c=b.files[0];if(c&&c.type&&-1!==c.type.indexOf("image")&&0<=d.opts.imageAllowedTypes.indexOf(c.type.replace(/image\//g,""))){if(!d.opts.imageUpload)return a.preventDefault(),
a.stopPropagation(),!1;d.markers.remove();d.markers.insertAtPoint(a.originalEvent);d.$el.find(".fr-marker").replaceWith(f.MARKERS);0===d.$el.find(".fr-marker").length&&d.selection.setAtEnd(d.el);d.popups.hideAll();d.popups.get("image.insert")||ca();d.popups.setContainer("image.insert",d.$sc);var e=a.originalEvent.pageX,T=a.originalEvent.pageY;if(d.opts.iframe){var g=d.helpers.getPX(d.$wp.find(".fr-iframe").css("padding-top")),J=d.helpers.getPX(d.$wp.find(".fr-iframe").css("padding-left"));T+=d.$iframe.offset().top+
g;e+=d.$iframe.offset().left+J}d.popups.show("image.insert",e,T);C();0<=d.opts.imageAllowedTypes.indexOf(c.type.replace(/image\//g,""))?(I(!0),A(b.files)):p(6);a.preventDefault();a.stopPropagation();return!1}}}function Aa(){d.events.$on(d.$el,d._mousedown,"IMG"==d.el.tagName?null:'img:not([contenteditable="false"])',function(a){if("false"==F(this).parents("contenteditable").not(".fr-element").not(".fr-img-caption").not("body").first().attr("contenteditable"))return!0;d.helpers.isMobile()||d.selection.clear();
ta=!0;d.popups.areVisible()&&d.events.disableBlur();d.browser.msie&&(d.events.disableBlur(),d.$el.attr("contenteditable",!1));d.draggable||"touchstart"==a.type||a.preventDefault();a.stopPropagation()});d.events.$on(d.$el,d._mousedown,".fr-img-caption .fr-inner",function(a){d.core.hasFocus()||d.events.focus();a.stopPropagation()});d.events.$on(d.$el,"paste",".fr-img-caption .fr-inner",function(a){!0===d.opts.toolbarInline&&(d.toolbar.hide(),a.stopPropagation())});d.events.$on(d.$el,d._mousedown,'img:not([contenteditable="false"])',
function(a){var b=this;d.browser.mozilla&&3==a.which&&(F(this).attr("contenteditable",!1),setTimeout(function(){F(b).removeAttr("contenteditable")},200))});d.events.$on(d.$el,d._mouseup,"IMG"==d.el.tagName?null:'img:not([contenteditable="false"])',function(a){if("false"==F(this).parents("contenteditable").not(".fr-element").not(".fr-img-caption").not("body").first().attr("contenteditable"))return!0;ta&&(ta=!1,a.stopPropagation(),d.browser.msie&&(d.$el.attr("contenteditable",!0),d.events.enableBlur()))});
d.events.on("keyup",function(a){if(a.shiftKey&&""===d.selection.text().replace(/\n/g,"")&&d.keys.isArrow(a.which)){a=d.selection.element();var b=d.selection.endElement();a&&"IMG"==a.tagName?ba(F(a)):b&&"IMG"==b.tagName&&ba(F(b))}},!0);d.events.on("drop",ma);d.events.on("element.beforeDrop",R);d.events.on("mousedown window.mousedown",Ba);d.events.on("window.touchmove",xa);d.events.on("mouseup window.mouseup",function(){if(y&&!d.helpers.isMobile())return I(),!1;wa=!1});d.events.on("touchstart touchend",
function(){if(y&&d.helpers.isMobile())return I(),!1;wa=!1});d.events.on("commands.mousedown",function(a){0<a.parents(".fr-toolbar").length&&I()});d.events.on("image.resizeEnd",function(){d.opts.iframe&&d.size.syncIframe()});d.events.on("blur image.hideResizer commands.undo commands.redo element.dropped",function(){ta=!1;I(!0)});d.events.on("modals.hide",function(){y&&(oa(),d.selection.clear())});d.events.on("image.resizeEnd",function(){d.win.getSelection&&ba(y)});if(d.opts.imageAddNewLine)d.events.on("image.inserted",
function(a){var b=a.get(0);b.nextSibling&&"BR"===b.nextSibling.tagName&&(b=b.nextSibling);for(;b&&!d.node.isElement(b);)b=d.node.isLastSibling(b)?b.parentNode:null;d.node.isElement(b)&&(d.opts.enter===f.ENTER_BR?a.after("<br>"):F(d.node.blockParent(a.get(0))).after("<".concat(d.html.defaultTag(),"><br></").concat(d.html.defaultTag(),">")))})}function ca(a){if(a)return d.popups.onRefresh("image.insert",c),d.popups.onHide("image.insert",M),!0;var b;a="";d.opts.imageUpload||-1===d.opts.imageInsertButtons.indexOf("imageUpload")||
d.opts.imageInsertButtons.splice(d.opts.imageInsertButtons.indexOf("imageUpload"),1);var e=d.button.buildList(d.opts.imageInsertButtons);""!==e&&(a='<div class="fr-buttons fr-tabs">'.concat(e,"</div>"));e=d.opts.imageInsertButtons.indexOf("imageUpload");var f=d.opts.imageInsertButtons.indexOf("imageByURL"),T="";if(0<=e){var g=" fr-active";0<=f&&e>f&&(g="");T='<div class="fr-image-upload-layer'.concat(g,' fr-layer" id="fr-image-upload-layer-').concat(d.id,'"><strong>').concat(d.language.translate("Drop image"),
"</strong><br>(").concat(d.language.translate("or click"),')<div class="fr-form"><input type="file" accept="image/').concat(d.opts.imageAllowedTypes.join(", image/").toLowerCase(),'" tabIndex="-1" aria-labelledby="fr-image-upload-layer-').concat(d.id,'" role="button"></div></div>')}g="";0<=f&&(g=" fr-active",0<=e&&f>e&&(g=""),g='<div class="fr-image-by-url-layer'.concat(g,' fr-layer" id="fr-image-by-url-layer-').concat(d.id,'"><div class="fr-input-line"><input id="fr-image-by-url-layer-text-').concat(d.id,
'" type="text" placeholder="http://" tabIndex="1" aria-required="true"></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-submit" data-cmd="imageInsertByURL" tabIndex="2" role="button">').concat(d.language.translate("Insert"),"</button></div></div>"));a={buttons:a,upload_layer:T,by_url_layer:g,progress_bar:'<div class="fr-image-progress-bar-layer fr-layer"><h3 tabIndex="-1" class="fr-message">Uploading</h3><div class="fr-loader"><span class="fr-progress"></span></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-dismiss" data-cmd="imageDismissError" tabIndex="2" role="button">OK</button></div></div>'};
1<=d.opts.imageInsertButtons.length&&(b=d.popups.create("image.insert",a));d.$wp&&d.events.$on(d.$wp,"scroll",function(){y&&d.popups.isVisible("image.insert")&&Y()});la(b);return b}function za(){y&&d.popups.get("image.alt").find("input").val(y.attr("alt")||"").trigger("change")}function va(){d.popups.get("image.alt")||q();da();d.popups.refresh("image.alt");d.popups.setContainer("image.alt",d.$sc);var a=ra(),b=a.outerWidth()/2;ka()&&(a=a.find(".fr-img-wrap"),b=y.outerWidth()/2);b=a.offset().left+b;
var c=a.offset().top+a.outerHeight();a=a.outerHeight();d.opts.iframe&&ka()&&(a=y?y.outerHeight():0);d.popups.show("image.alt",b,c,a,!0)}function q(a){if(a)return d.popups.onRefresh("image.alt",za),!0;a="";a='<div class="fr-buttons fr-tabs">'.concat(d.button.buildList(d.opts.imageAltButtons),"</div>");var b="";b='<div class="fr-image-alt-layer fr-layer fr-active" id="fr-image-alt-layer-'.concat(d.id,'"><div class="fr-input-line"><input id="fr-image-alt-layer-text-').concat(d.id,'" type="text" placeholder="').concat(d.language.translate("Alternative Text"),
'" tabIndex="1"></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-submit" data-cmd="imageSetAlt" tabIndex="2" role="button">').concat(d.language.translate("Update"),"</button></div></div>");a=d.popups.create("image.alt",{buttons:a,alt_layer:b});d.$wp&&d.events.$on(d.$wp,"scroll.image-alt",function(){y&&d.popups.isVisible("image.alt")&&va()});return a}function ha(){var a=d.popups.get("image.size"),b=y.get(0).style.height?y.get(0).style.height:"auto",c=y.get(0).style.width?
y.get(0).style.width:"auto";y&&(ka()&&(y.parent().get(0).style.width||y.parent().parent()),a.find('input[name="width"]').val(c).trigger("change"),a.find('input[name="height"]').val(b).trigger("change"))}function V(){d.popups.get("image.size")||k();da();d.popups.refresh("image.size");d.popups.setContainer("image.size",d.$sc);var a=ra(),b=a.outerWidth()/2;ka()&&(a=a.find(".fr-img-wrap"),b=y.outerWidth()/2);var c=a.outerHeight();d.opts.iframe&&ka()&&(c=y?y.outerHeight():0);b=a.offset().left+b;a=a.offset().top+
a.outerHeight();d.popups.show("image.size",b,a,c,!0)}function k(a){if(a)return d.popups.onRefresh("image.size",ha),!0;a="";a='<div class="fr-buttons fr-tabs">'.concat(d.button.buildList(d.opts.imageSizeButtons),"</div>");var b="";b='<div class="fr-image-size-layer fr-layer fr-active" id="fr-image-size-layer-'.concat(d.id,'"><div class="fr-image-group"><div class="fr-input-line"><input id="fr-image-size-layer-width-\'').concat(d.id,'" type="text" name="width" placeholder="').concat(d.language.translate("Width"),
'" tabIndex="1"></div><div class="fr-input-line"><input id="fr-image-size-layer-height').concat(d.id,'" type="text" name="height" placeholder="').concat(d.language.translate("Height"),'" tabIndex="1"></div></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-submit" data-cmd="imageSetSize" tabIndex="2" role="button">').concat(d.language.translate("Update"),"</button></div></div>");a=d.popups.create("image.size",{buttons:a,size_layer:b});d.$wp&&d.events.$on(d.$wp,"scroll.image-size",
function(){y&&d.popups.isVisible("image.size")&&V()});return a}function x(a,b,c,d){a.pageX=b;U.call(this,a);a.pageX+=c*Math.floor(Math.pow(1.1,d));w.call(this,a);G.call(this,a);return++d}function u(){if(d.shared.$image_resizer)aa=d.shared.$image_resizer,pa=d.shared.$img_overlay,d.events.on("destroy",function(){F("body").first().append(aa.removeClass("fr-active"))},!0);else if(d.shared.$image_resizer=F(document.createElement("div")).attr("class","fr-image-resizer"),aa=d.shared.$image_resizer,d.events.$on(aa,
"mousedown",function(a){a.stopPropagation()},!0),d.opts.imageResize){aa.append(t("nw")+t("ne")+t("sw")+t("se"));d.shared.$img_overlay=F(document.createElement("div")).attr("class","fr-image-overlay");pa=d.shared.$img_overlay;var a=aa.get(0).ownerDocument;F(a).find("body").first().append(pa)}d.events.on("shared.destroy",function(){aa.html("").removeData().remove();aa=null;d.opts.imageResize&&(pa.remove(),pa=null)},!0);d.helpers.isMobile()||d.events.$on(F(d.o_win),"resize",function(){y&&!y.hasClass("fr-uploading")?
I(!0):y&&(H(),Y(),C(!1))});if(d.opts.imageResize){a=aa.get(0).ownerDocument;d.events.$on(aa,d._mousedown,".fr-handler",U);d.events.$on(F(a),d._mousemove,w);d.events.$on(F(a.defaultView||a.parentWindow),d._mouseup,G);d.events.$on(pa,"mouseleave",G);var b=1,c=null,e=0;d.events.on("keydown",function(a){if(y){var g=-1!=navigator.userAgent.indexOf("Mac OS X")?a.metaKey:a.ctrlKey,T=a.which;if(T!==c||200<a.timeStamp-e)b=1;(T==f.KEYCODE.EQUALS||d.browser.mozilla&&T==f.KEYCODE.FF_EQUALS)&&g&&!a.altKey?b=x.call(this,
a,1,1,b):(T==f.KEYCODE.HYPHEN||d.browser.mozilla&&T==f.KEYCODE.FF_HYPHEN)&&g&&!a.altKey?b=x.call(this,a,2,-1,b):d.keys.ctrlKey(a)||T!=f.KEYCODE.ENTER||(y.before("<br>"),ba(y));c=T;e=a.timeStamp}},!0);d.events.on("keyup",function(){b=1})}}function h(a){a=a||ra();!d.opts.trackChangesEnabled||d.helpers.isMobile()||a[0].parentNode&&"SPAN"===a[0].parentNode.tagName&&a[0].parentNode.hasAttribute("data-tracking")?a&&!1!==d.events.trigger("image.beforeRemove",[a])&&(d.popups.hideAll(),oa(),I(!0),d.undo.canDo()||
d.undo.saveStep(),a.get(0)==d.el?a.removeAttr("src"):(a.get(0).parentNode&&"A"==a.get(0).parentNode.tagName?(d.selection.setBefore(a.get(0).parentNode)||d.selection.setAfter(a.get(0).parentNode)||a.parent().after(f.MARKERS),F(a.get(0).parentNode).remove()):(d.selection.setBefore(a.get(0))||d.selection.setAfter(a.get(0))||a.after(f.MARKERS),a.remove()),d.html.fillEmptyBlocks(),d.selection.restore()),d.undo.saveStep()):(d.track_changes.removeSpecialItem(a),d.popups.hideAll(),I(!0))}function r(a){var b=
a.which;if(!y||b!=f.KEYCODE.BACKSPACE&&b!=f.KEYCODE.DELETE){if(y&&b==f.KEYCODE.ESC)return b=y,I(!0),d.selection.setAfter(b.get(0)),d.selection.restore(),a.preventDefault(),!1;if(!y||b!=f.KEYCODE.ARROW_LEFT&&b!=f.KEYCODE.ARROW_RIGHT){if(y&&b===f.KEYCODE.TAB)return a.preventDefault(),a.stopPropagation(),I(!0),!1;if(y&&b!=f.KEYCODE.F10&&!d.keys.isBrowserAction(a))return a.preventDefault(),a.stopPropagation(),!1}else{var c=y.get(0);I(!0);b==f.KEYCODE.ARROW_LEFT?d.selection.setBefore(c):d.selection.setAfter(c);
d.selection.restore();a.preventDefault();return!1}}else return a.preventDefault(),a.stopPropagation(),h(),!1}function N(a){if(a&&"IMG"==a.tagName){if(d.node.hasClass(a,"fr-uploading")||d.node.hasClass(a,"fr-error")?a.parentNode.removeChild(a):d.node.hasClass(a,"fr-draggable")&&a.classList.remove("fr-draggable"),a.parentNode&&a.parentNode.parentNode&&d.node.hasClass(a.parentNode.parentNode,"fr-img-caption")){var b=a.parentNode.parentNode;b.removeAttribute("contenteditable");b.removeAttribute("draggable");
b.classList.remove("fr-draggable");(a=a.nextSibling)&&a.removeAttribute("contenteditable")}}else if(a&&a.nodeType==Node.ELEMENT_NODE)for(a=a.querySelectorAll("img.fr-uploading, img.fr-error, img.fr-draggable"),b=0;b<a.length;b++)N(a[b])}function Z(a){if(!1===d.events.trigger("image.beforePasteUpload",[a]))return F(a).removeAttr("data-fr-image-pasted"),!1;y=F(a);H();m();C();y.on("load",function(){var a=[];H();1>F(d.popups.get("image.insert").get(0)).find("div.fr-active.fr-error").length&&C();F(this).data("events").filter(function(b){"load"===
b[0]&&a.push(b)});1>=a.length&&F(this).off("load")});a=F(a).attr("src").split(",");for(var b=atob(a[1]),c=[],e=0;e<b.length;e++)c.push(b.charCodeAt(e));a=d.browser.safari&&!d.opts.imageUploadURL?new Blob([new Uint8Array(c)],{type:a[0].replace(/data:/g,"")}):new Blob([new Uint8Array(c)],{type:a[0].replace(/data:/g,"").replace(/;base64/g,"")});A([a],y)}function ja(){d.opts.imagePaste?d.$el.find("img[data-fr-image-pasted]").each(function(a,b){d.opts.imagePasteProcess&&((a=d.opts.imageDefaultWidth)&&
"auto"!=a&&(a+=d.opts.imageResizeWithPercent?"%":"px"),F(b).css("width",a).removeClass("fr-dii fr-dib fr-fir fr-fil"),na(F(b),d.opts.imageDefaultDisplay,d.opts.imageDefaultAlign));0===b.src.indexOf("data:")?Z(b):0===b.src.indexOf("blob:")||0===b.src.indexOf("http")&&d.opts.imageUploadRemoteUrls&&d.opts.imageCORSProxy?(a=new Image,a.crossOrigin="Anonymous",a.onload=function(){var a=d.o_doc.createElement("CANVAS"),c=a.getContext("2d");a.height=this.naturalHeight;a.width=this.naturalWidth;c.drawImage(this,
0,0);setTimeout(function(){Z(b)},0);b.src=a.toDataURL(f.IMAGE_TYPE)},d.browser.msie&&f.IMAGE_ALLOW_REGEX.test(b.src)&&(f.IMAGE_TYPE="image/"+b.src.split(f.IMAGE_ALLOW_REGEX)[1]),a.src=(0===b.src.indexOf("blob:")?"":"".concat(d.opts.imageCORSProxy,"/"))+b.src,0!==b.src.indexOf("blob:")&&d.undo.saveStep()):0!==b.src.indexOf("http")||0===b.src.indexOf("https://mail.google.com/mail")?(d.selection.save(),F(b).remove(),d.selection.restore()):F(b).removeAttr("data-fr-image-pasted")}):d.$el.find("img[data-fr-image-pasted]").remove()}
function K(a){a=a.target.result;var b=d.opts.imageDefaultWidth;b&&"auto"!=b&&(b+=d.opts.imageResizeWithPercent?"%":"px");d.undo.saveStep();d.html.insert('<img data-fr-image-pasted="true" src="'.concat(a,'"').concat(b?' style="width: '.concat(b,';"'):"",">"));(a=d.$el.find('img[data-fr-image-pasted="true"]'))&&na(a,d.opts.imageDefaultDisplay,d.opts.imageDefaultAlign);d.events.trigger("paste.after")}function ea(a){if(a&&a.clipboardData&&a.clipboardData.items){var b=(a.clipboardData||window.clipboardData).getData("text/html")||
"";d.browser.mozilla&&(""===b||/\x3c!--StartFragment--\x3e([ ])\x3c!--EndFragment--\x3e/.test(b))&&(b=d.win.localStorage.getItem("fr-copied-html"));if((b=(new DOMParser).parseFromString(b,"text/html").querySelector("img"))&&!d.opts.imageUploadURL){if(!b)return!1;b=b.src;var c=null;if(a.clipboardData.types&&-1!=[].indexOf.call(a.clipboardData.types,"text/rtf")||a.clipboardData.getData("text/rtf"))c=a.clipboardData.items[0].getAsFile();else for(var e=0;e<a.clipboardData.items.length;e++)if(c=a.clipboardData.items[e].getAsFile()){f.IMAGE_TYPE=
c.type;break}if(c)return a=c,c=new FileReader,(e=d.opts.imageDefaultWidth)&&"auto"!=e&&(e+=d.opts.imageResizeWithPercent?"%":"px"),d.html.insert('<img data-fr-image-pasted="true" src="'.concat(b,'"').concat(e?' style="width: '.concat(e,';"'):"",">")),(e=d.$el.find('img[data-fr-image-pasted="true"]'))&&na(e,d.opts.imageDefaultDisplay,d.opts.imageDefaultAlign),d.events.trigger("paste.after"),c.onload=void 0,c.readAsDataURL(a,b),!1}else{b=null;if(a.clipboardData.types&&-1!=[].indexOf.call(a.clipboardData.types,
"text/rtf")||a.clipboardData.getData("text/rtf"))b=a.clipboardData.items[0].getAsFile();else for(c=0;c<a.clipboardData.items.length&&!(b=a.clipboardData.items[c].getAsFile());c++);if(b)return a=b,b=new FileReader,b.onload=K,b.readAsDataURL(a),!1}}}function Q(a){return a=a.replace(/<img /gi,'<img data-fr-image-pasted="true" ')}function ia(a){if("false"==F(this).parents("[contenteditable]").not(".fr-element").not(".fr-img-caption").not("body").first().attr("contenteditable")||a&&"touchend"==a.type&&
Ca)return!0;if(a&&d.edit.isDisabled())return a.stopPropagation(),a.preventDefault(),!1;for(var b=0;b<f.INSTANCES.length;b++)f.INSTANCES[b]!=d&&f.INSTANCES[b].events.trigger("image.hideResizer");d.toolbar.disable();a&&(a.stopPropagation(),a.preventDefault());d.helpers.isMobile()&&(d.events.disableBlur(),d.$el.blur(),d.events.enableBlur());d.opts.iframe&&d.size.syncIframe();y=F(this);oa();H();m();d.browser.msie?(d.popups.areVisible()&&d.events.disableBlur(),d.win.getSelection&&(d.win.getSelection().removeAllRanges(),
d.win.getSelection().addRange(d.doc.createRange()))):d.selection.clear();d.helpers.isIOS()&&(d.events.disableBlur(),d.$el.blur());d.button.bulkRefresh();d.events.trigger("video.hideResizer")}function I(a){y&&(wa||!0===a)&&(d.toolbar.enable(),aa.removeClass("fr-active"),d.popups.hideAll(),y=null,wa=!1,fa=null,pa&&pa.hide())}function Ba(){wa=!0}function xa(){wa=!1}function na(a,b,c){!d.opts.htmlUntouched&&d.opts.useClasses?(a.removeClass("fr-fil fr-fir fr-dib fr-dii"),c&&a.addClass("fr-fi".concat(c[0])),
b&&a.addClass("fr-di".concat(b[0]))):"inline"==b?(a.css({display:"inline-block",verticalAlign:"bottom",margin:d.opts.imageDefaultMargin}),"center"==c?a.css({"float":"none",marginBottom:"",marginTop:"",maxWidth:"calc(100% - ".concat(2*d.opts.imageDefaultMargin,"px)"),textAlign:"center"}):"left"==c?(b="0px",(c=a.parent("span.fr-img-caption").get(0))||(c=a.parent().get(0)),c&&"li"===c.tagName.toLowerCase()?b="20px":c&&"p"===c.tagName.toLowerCase()&&(b="15px"),a.css({"float":"left",marginLeft:0,maxWidth:"calc(100% - ".concat(d.opts.imageDefaultMargin,
"px)"),textAlign:"left",marginRight:b})):a.css({"float":"right",marginRight:0,maxWidth:"calc(100% - ".concat(d.opts.imageDefaultMargin,"px)"),textAlign:"right"})):"block"==b&&(a.css({display:"block","float":"none",verticalAlign:"top",margin:"".concat(d.opts.imageDefaultMargin,"px auto"),textAlign:"center"}),"left"==c?a.css({marginLeft:0,textAlign:"left"}):"right"==c&&a.css({marginRight:0,textAlign:"right"}))}function W(a){"undefined"==typeof a&&(a=ra());if(a){if(a.hasClass("fr-fil"))return"left";
if(a.hasClass("fr-fir"))return"right";if(!a.hasClass("fr-dib")&&!a.hasClass("fr-dii")){var b=a.css("float");a.css("float","none");if("block"==a.css("display")){a.css("float","");a.css("float")!=b&&a.css("float",b);if(0===parseInt(a.css("margin-left"),10))return"left";if(0===parseInt(a.css("margin-right"),10))return"right"}else{a.css("float","");a.css("float")!=b&&a.css("float",b);if("left"==a.css("float"))return"left";if("right"==a.css("float"))return"right"}}}return"center"}function ya(a){"undefined"==
typeof a&&(a=ra());var b=a.css("float");a.css("float","none");if("block"==a.css("display"))return a.css("float",""),a.css("float")!=b&&a.css("float",b),"block";a.css("float","");a.css("float")!=b&&a.css("float",b);return"inline"}function Y(){d.popups.get("image.insert")||ca();d.popups.isVisible("image.insert")||(da(),d.popups.refresh("image.insert"),d.popups.setContainer("image.insert",d.$sc));var a=ra(),b=a&&a.outerWidth()/2;ka()&&(a=a.find(".fr-img-wrap"),b=y.outerWidth()/2);b=a.offset().left+b;
var c=a.outerHeight(!0);d.opts.iframe&&ka()&&(c=y?y.outerHeight():0);a=0<d.$el.find("img[data-fr-image-pasted]").length?d.$wp.offset().top-d.helpers.scrollTop()+d.$wp.height():a.offset().top+a.outerHeight();d.popups.show("image.insert",b,a,c,!0)}function oa(){if(y){d.events.disableBlur();d.selection.clear();var a=d.doc.createRange();a.selectNode(y.get(0));d.browser.msie&&a.collapse(!0);d.selection.get().addRange(a);d.events.enableBlur()}}function ra(){return ka()?y.parents(".fr-img-caption").first():
y}function ka(){return y?0<y.parents(".fr-img-caption").length:!1}function E(a){for(var b=document.createDocumentFragment();a.firstChild;){var c=a.removeChild(a.firstChild);b.appendChild(c)}a.parentNode.replaceChild(b,a)}var F=d.$,y,aa,fa,pa,ta=!1,ua={1:"Image cannot be loaded from the passed link.",2:"No link in upload response.",3:"Error during file upload.",4:"Parsing response failed.",5:"File is too large.",6:"Image file type is invalid.",7:"Files can be uploaded only to same domain in IE 8 and IE 9.",
8:"Image file is corrupted."},J,Ca,wa=!1;return{_init:function(){Aa();"IMG"==d.el.tagName&&d.$el.addClass("fr-view");d.events.$on(d.$el,d.helpers.isMobile()&&!d.helpers.isWindowsPhone()?"touchend":"click","IMG"==d.el.tagName?null:'img:not([contenteditable="false"])',ia);d.helpers.isMobile()&&(d.events.$on(d.$el,"touchstart","IMG"==d.el.tagName?null:'img:not([contenteditable="false"])',function(){Ca=!1}),d.events.$on(d.$el,"touchmove",function(){Ca=!0}));d.$wp?(d.events.on("window.keydown keydown",
r,!0),d.events.on("keyup",function(a){if(y&&a.which==f.KEYCODE.ENTER)return!1},!0),d.events.$on(d.$el,"keydown",function(){var a=d.selection.element();if(a.nodeType===Node.TEXT_NODE||"BR"==a.tagName&&d.node.isLastSibling(a))a=a.parentNode;d.node.hasClass(a,"fr-inner")||(d.node.hasClass(a,"fr-img-caption")||(a=F(a).parents(".fr-img-caption").get(0)),d.node.hasClass(a,"fr-img-caption")&&(d.opts.trackChangesEnabled||F(a).after(f.INVISIBLE_SPACE+f.MARKERS),d.selection.restore()))})):d.events.$on(d.$win,
"keydown",r);d.events.on("toolbar.esc",function(){if(y){if(d.$wp)d.events.disableBlur(),d.events.focus();else{var a=y;I(!0);d.selection.setAfter(a.get(0));d.selection.restore()}return!1}},!0);d.events.on("toolbar.focusEditor",function(){if(y)return!1},!0);d.events.on("window.cut window.copy",function(a){if(y&&d.popups.isVisible("image.edit")&&!d.popups.get("image.edit").find(":focus").length){var b=ra();ka()?(b.before(f.START_MARKER),b.after(f.END_MARKER),d.selection.restore(),d.paste.saveCopiedText(b.get(0).outerHTML,
b.text())):(oa(),d.paste.saveCopiedText(y.get(0).outerHTML,y.attr("alt")));"copy"==a.type?setTimeout(function(){ba(y)}):(I(!0),d.undo.saveStep(),setTimeout(function(){d.undo.saveStep()},0))}},!0);if(d.browser.msie)d.events.on("keydown",function(a){if(!d.selection.isCollapsed()||!y)return!0;var b=a.which;b==f.KEYCODE.C&&d.keys.ctrlKey(a)?d.events.trigger("window.copy"):b==f.KEYCODE.X&&d.keys.ctrlKey(a)&&d.events.trigger("window.cut")});d.events.$on(F(d.o_win),"keydown",function(a){var b=a.which;if(y&&
b==f.KEYCODE.BACKSPACE)return a.preventDefault(),!1});d.events.$on(d.$win,"keydown",function(a){a=a.which;y&&y.hasClass("fr-uploading")&&a==f.KEYCODE.ESC&&y.trigger("abortUpload")});d.events.on("destroy",function(){y&&y.hasClass("fr-uploading")&&y.trigger("abortUpload")});d.events.on("paste.before",ea);d.events.on("paste.beforeCleanup",Q);d.events.on("paste.after",ja);d.events.on("html.set",O);d.events.on("html.inserted",O);O();d.events.on("destroy",function(){J=[]});d.events.on("html.processGet",
N);if(d.opts.imageOutputSize){var a;d.events.on("html.beforeGet",function(){a=d.el.querySelectorAll("img");for(var b=0;b<a.length;b++){var c=parseFloat(F(a[b]).css("padding-left")),e=parseFloat(F(a[b]).css("padding-right"));c+=e;c=F(a[b]).width()-c;c=a[b].style.width||c;e=a[b].style.height||F(a[b]).height();c&&a[b].setAttribute("width","".concat(c).replace(/px/,""));e&&a[b].setAttribute("height","".concat(e).replace(/px/,""))}})}if(d.opts.iframe)d.events.on("image.loaded",d.size.syncIframe);d.$wp&&
(z(),d.events.on("contentChanged",z));d.events.$on(F(d.o_win),"orientationchange.image",function(){setTimeout(function(){y&&ba(y)},100)});D(!0);ca(!0);k(!0);q(!0);d.events.on("node.remove",function(a){if("IMG"==a.get(0).tagName)return h(a),!1})},showInsertPopup:function(){var a=d.$tb.find('.fr-command[data-cmd="insertImage"]'),b=d.popups.get("image.insert");b||(b=ca());da();b.hasClass("fr-active")||(d.popups.refresh("image.insert"),d.popups.setContainer("image.insert",d.$tb),a.isVisible()?(b=d.button.getPosition(a),
d.popups.show("image.insert",b.left,b.top,a.outerHeight())):(d.position.forSelection(b),d.popups.show("image.insert")))},showLayer:function(a){var b=d.popups.get("image.insert");if(!y&&!d.opts.toolbarInline){var c=d.$tb.find('.fr-command[data-cmd="insertImage"]');var e=c.offset().left;c=c.offset().top+(d.opts.toolbarBottom?10:c.outerHeight()-10)}else if(y){e=ra();var f=0;ka()&&(e=e.find(".fr-img-wrap"),f=y.outerWidth()/2);c=e.offset().top+e.outerHeight();e=e.offset().left+f}!y&&d.opts.toolbarInline&&
(c=b.offset().top-d.helpers.getPX(b.css("margin-top")),b.hasClass("fr-above")&&(c+=b.outerHeight()));b.find(".fr-layer").removeClass("fr-active");b.find(".fr-".concat(a,"-layer")).addClass("fr-active");d.popups.show("image.insert",e,c,y?y.outerHeight():0,ka());d.accessibility.focusPopup(b)},refreshUploadButton:function(a){var b=d.popups.get("image.insert");b&&b.find(".fr-image-upload-layer").hasClass("fr-active")&&a.addClass("fr-active").attr("aria-pressed",!0)},refreshByURLButton:function(a){var b=
d.popups.get("image.insert");b&&b.find(".fr-image-by-url-layer").hasClass("fr-active")&&a.addClass("fr-active").attr("aria-pressed",!0)},upload:A,insertByURL:function(){var b=d.popups.get("image.insert").find(".fr-image-by-url-layer input");if(0<b.val().length){C();qa(d.language.translate("Loading image"));var c=b.val().trim();if(d.opts.imageUploadRemoteUrls&&d.opts.imageCORSProxy&&d.opts.imageUpload){var e=new XMLHttpRequest;e.onload=function(){200==this.status?A([new Blob([this.response],{type:this.response.type||
"image/png"})],y):p(1)};e.onerror=function(){a(c,!0,[],y)};e.open("GET","".concat(d.opts.imageCORSProxy,"/").concat(c),!0);e.responseType="blob";e.send()}else a(c,!0,[],y);b.val("");b.blur()}},align:function(a){var b=ra();b.removeClass("fr-fir fr-fil");!d.opts.htmlUntouched&&d.opts.useClasses?"left"==a?b.addClass("fr-fil"):"right"==a&&b.addClass("fr-fir"):na(b,ya(),a);oa();H();m();d.selection.clear()},refreshAlign:function(a){y&&a.find("> *").first().replaceWith(d.icon.create("image-align-".concat(W())))},
refreshAlignOnShow:function(a,b){y&&b.find('.fr-command[data-param1="'.concat(W(),'"]')).addClass("fr-active").attr("aria-selected",!0)},display:function(a){var b=ra();b.removeClass("fr-dii fr-dib");!d.opts.htmlUntouched&&d.opts.useClasses?"inline"==a?b.addClass("fr-dii"):"block"==a&&b.addClass("fr-dib"):na(b,a,W());oa();H();m();d.selection.clear()},refreshDisplayOnShow:function(a,b){y&&b.find('.fr-command[data-param1="'.concat(ya(),'"]')).addClass("fr-active").attr("aria-selected",!0)},replace:Y,
back:function(){y?(d.events.disableBlur(),F(".fr-popup input:focus").blur(),ba(y)):(d.events.disableBlur(),d.selection.restore(),d.events.enableBlur(),d.popups.hide("image.insert"),d.toolbar.showInline())},get:function(){return y},getEl:ra,insert:a,showProgressBar:C,remove:h,hideProgressBar:da,applyStyle:function(a,c,e){"undefined"==typeof c&&(c=d.opts.imageStyles);"undefined"==typeof e&&(e=d.opts.imageMultipleStyles);if(!y)return!1;var f=ra();e||(e=Object.keys(c),e.splice(e.indexOf(a),1),f.removeClass(e.join(" ")));
"object"==b(c[a])?(f.removeAttr("style"),f.css(c[a].style)):(f.toggleClass(a),ka()&&y.hasClass(a)&&y.removeClass(a));ba(y)},showAltPopup:va,showSizePopup:V,setAlt:function(a){if(y){var b=d.popups.get("image.alt");y.attr("alt",a||b.find("input").val()||"");b.find("input:focus").blur();ba(y)}},setSize:function(a,b){if(y){var c=d.popups.get("image.size");a=a||c.find('input[name="width"]').val()||"";b=b||c.find('input[name="height"]').val()||"";var e=/^[\d]+((px)|%)*$/g;y.removeAttr("width").removeAttr("height");
a.match(e)?y.css("width",a):y.css("width","");b.match(e)?y.css("height",b):y.css("height","");ka()&&(y.parents(".fr-img-caption").removeAttr("width").removeAttr("height"),a.match(e)?y.parents(".fr-img-caption").css("width",a):y.parents(".fr-img-caption").css("width",""),b.match(e)?y.parents(".fr-img-caption").css("height",b):y.parents(".fr-img-caption").css("height",""));c&&c.find("input:focus").blur();ba(y)}},toggleCaption:function(){if(y&&!ka()){var a=y;y.parent().is("a")&&(a=y.parent());var b=
y.parents("ul")&&0<y.parents("ul").length?y.parents("ul"):y.parents("ol")&&0<y.parents("ol").length?y.parents("ol"):[];if(0<b.length){var c=b.find("li").length,e=y.parents("li"),g=document.createElement("li");c-1===e.index()&&(b.append(g),g.innerHTML="&nbsp;")}if(a.attr("style")){b=a.attr("style").split(":");var J=-1<b.indexOf("width")?b[b.indexOf("width")+1].replace(";",""):""}else a.attr("width")&&(J=a.attr("width"));b=d.opts.imageResizeWithPercent?(-1<J.indexOf("px")?null:J)||"100%":y.width()+
"px";a.wrap('<div class="fr-img-space-wrap"><span '+(d.browser.mozilla?"":'contenteditable="false"')+'class="fr-img-caption '+y.attr("class")+'" style="'+(d.opts.useClasses?"":a.attr("style"))+'" draggable="false"></span></div>');a.wrap('<span class="fr-img-wrap"></span>');y.after('<span class="fr-inner"'.concat(d.browser.mozilla?"":' contenteditable="true"',">").concat(f.START_MARKER).concat(d.language.translate("Image Caption")).concat(f.END_MARKER,"</span>"));y.parents(".fr-img-caption").css("width",
b);a=y.parents(".fr-img-space-wrap").length;1==a?E(document.querySelector(".fr-img-space-wrap")):1<a&&(E(document.querySelector(".fr-img-space-wrap")),E(document.querySelector(".fr-img-space-wrap2")));I(!0);d.selection.restore()}else{a=ra();y.insertBefore(a);if(null!==a[0].querySelector("a")){e=a[0].querySelector("a");b=document.createElement("a");c=0;g=e.attributes;for(J=g.length;c<J;c++)e=g[c],b.setAttribute(e.nodeName,e.nodeValue);y.wrap(b)}y.attr("class",a.attr("class").replace("fr-img-caption",
"")).attr("style",a.attr("style"));a.remove();a=y.parents(".fr-img-space-wrap").length;1==a?E(document.querySelector(".fr-img-space-wrap")):1<a&&(E(document.querySelector(".fr-img-space-wrap")),E(document.querySelector(".fr-img-space-wrap2")));ba(y)}},hasCaption:ka,exitEdit:I,edit:ba}};f.DefineIcon("insertImage",{NAME:"image",SVG_KEY:"insertImage"});f.RegisterShortcut(f.KEYCODE.P,"insertImage",null,"P");f.RegisterCommand("insertImage",{title:"Insert Image",undo:!1,focus:!0,refreshAfterCallback:!1,
popup:!0,callback:function(){this.popups.isVisible("image.insert")?(this.$el.find(".fr-marker").length&&(this.events.disableBlur(),this.selection.restore()),this.popups.hide("image.insert")):this.image.showInsertPopup()},plugin:"image"});f.DefineIcon("imageUpload",{NAME:"upload",SVG_KEY:"upload"});f.RegisterCommand("imageUpload",{title:"Upload Image",undo:!1,focus:!1,toggle:!0,callback:function(){this.image.showLayer("image-upload")},refresh:function(b){this.image.refreshUploadButton(b)}});f.DefineIcon("imageByURL",
{NAME:"link",SVG_KEY:"insertLink"});f.RegisterCommand("imageByURL",{title:"By URL",undo:!1,focus:!1,toggle:!0,callback:function(){this.image.showLayer("image-by-url")},refresh:function(b){this.image.refreshByURLButton(b)}});f.RegisterCommand("imageInsertByURL",{title:"Insert Image",undo:!0,refreshAfterCallback:!1,callback:function(){this.image.insertByURL()},refresh:function(b){this.image.get()?b.text(this.language.translate("Replace")):b.text(this.language.translate("Insert"))}});f.DefineIcon("imageDisplay",
{NAME:"star",SVG_KEY:"imageDisplay"});f.RegisterCommand("imageDisplay",{title:"Display",type:"dropdown",options:{inline:"Inline",block:"Break Text"},callback:function(b,c){this.image.display(c)},refresh:function(b){this.opts.imageTextNear||b.addClass("fr-hidden")},refreshOnShow:function(b,c){this.image.refreshDisplayOnShow(b,c)}});f.DefineIcon("image-align",{NAME:"align-left",SVG_KEY:"alignLeft"});f.DefineIcon("image-align-left",{NAME:"align-left",SVG_KEY:"alignLeft"});f.DefineIcon("image-align-right",
{NAME:"align-right",SVG_KEY:"alignRight"});f.DefineIcon("image-align-center",{NAME:"align-justify",SVG_KEY:"alignCenter"});f.DefineIcon("imageAlign",{NAME:"align-justify",SVG_KEY:"alignJustify"});f.RegisterCommand("imageAlign",{type:"dropdown",title:"Align",options:{left:"Align Left",center:"None",right:"Align Right"},html:function(){var b='<ul class="fr-dropdown-list" role="presentation">',c=f.COMMANDS.imageAlign.options,m;for(m in c)c.hasOwnProperty(m)&&(b+='<li role="presentation"><a class="fr-command fr-title" tabIndex="-1" role="option" data-cmd="imageAlign" data-param1="'.concat(m,
'" title="').concat(this.language.translate(c[m]),'">').concat(this.icon.create("image-align-".concat(m)),'<span class="fr-sr-only">').concat(this.language.translate(c[m]),"</span></a></li>"));return b+"</ul>"},callback:function(b,c){this.image.align(c)},refresh:function(b){this.image.refreshAlign(b)},refreshOnShow:function(b,c){this.image.refreshAlignOnShow(b,c)}});f.DefineIcon("imageReplace",{NAME:"exchange",FA5NAME:"exchange-alt",SVG_KEY:"replaceImage"});f.RegisterCommand("imageReplace",{title:"Replace",
undo:!1,focus:!1,popup:!0,refreshAfterCallback:!1,callback:function(){this.image.replace()}});f.DefineIcon("imageRemove",{NAME:"trash",SVG_KEY:"remove"});f.RegisterCommand("imageRemove",{title:"Remove",callback:function(){this.image.remove()}});f.DefineIcon("imageBack",{NAME:"arrow-left",SVG_KEY:"back"});f.RegisterCommand("imageBack",{title:"Back",undo:!1,focus:!1,back:!0,callback:function(){this.image.back()},refresh:function(b){this.image.get()||this.opts.toolbarInline?(b.removeClass("fr-hidden"),
b.next(".fr-separator").removeClass("fr-hidden")):(b.addClass("fr-hidden"),b.next(".fr-separator").addClass("fr-hidden"))}});f.RegisterCommand("imageDismissError",{title:"OK",undo:!1,callback:function(){this.image.hideProgressBar(!0)}});f.DefineIcon("imageStyle",{NAME:"magic",SVG_KEY:"imageClass"});f.RegisterCommand("imageStyle",{title:"Style",type:"dropdown",html:function(){var d='<ul class="fr-dropdown-list" role="presentation">',c=this.opts.imageStyles,f;for(f in c)if(c.hasOwnProperty(f)){var M=
c[f];"object"==b(M)&&(M=M.title);d+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="imageStyle" data-param1="'.concat(f,'">').concat(this.language.translate(M),"</a></li>")}return d+"</ul>"},callback:function(b,c){this.image.applyStyle(c)},refreshOnShow:function(b,c){var d=this.$,f=this.image.getEl();f&&c.find(".fr-command").each(function(){var b=d(this).data("param1");b=f.hasClass(b);d(this).toggleClass("fr-active",b).attr("aria-selected",b)})}});f.DefineIcon("imageAlt",
{NAME:"info",SVG_KEY:"imageAltText"});f.RegisterCommand("imageAlt",{undo:!1,focus:!1,popup:!0,title:"Alternative Text",callback:function(){this.image.showAltPopup()}});f.RegisterCommand("imageSetAlt",{undo:!0,focus:!1,title:"Update",refreshAfterCallback:!1,callback:function(){this.image.setAlt()}});f.DefineIcon("imageSize",{NAME:"arrows-alt",SVG_KEY:"imageSize"});f.RegisterCommand("imageSize",{undo:!1,focus:!1,popup:!0,title:"Change Size",callback:function(){this.image.showSizePopup()}});f.RegisterCommand("imageSetSize",
{undo:!0,focus:!1,title:"Update",refreshAfterCallback:!1,callback:function(){this.image.setSize()}});f.DefineIcon("imageCaption",{NAME:"commenting",FA5NAME:"comment-alt",SVG_KEY:"imageCaption"});f.RegisterCommand("imageCaption",{undo:!0,focus:!1,title:"Image Caption",refreshAfterCallback:!0,callback:function(){this.image.toggleCaption()},refresh:function(b){this.image.get()&&b.toggleClass("fr-active",this.image.hasCaption())}})});
(function(f,b){"object"===typeof exports&&"undefined"!==typeof module?b(require("froala-editor")):"function"===typeof define&&define.amd?define(["froala-editor"],b):b(f.FroalaEditor)})(this,function(f){f=f&&f.hasOwnProperty("default")?f["default"]:f;Object.assign(f.POPUP_TEMPLATES,{"link.edit":"[_BUTTONS_]","link.insert":"[_BUTTONS_][_INPUT_LAYER_]"});Object.assign(f.DEFAULTS,{linkEditButtons:["linkOpen","linkStyle","linkEdit","linkRemove"],linkInsertButtons:["linkBack","|","linkList"],linkAttributes:{},
linkAutoPrefix:"http://",linkStyles:{"fr-green":"Green","fr-strong":"Thick"},linkMultipleStyles:!0,linkConvertEmailAddress:!0,linkAlwaysBlank:!1,linkAlwaysNoFollow:!1,linkNoOpener:!0,linkNoReferrer:!0,linkList:[{text:"Froala",href:"https://froala.com",target:"_blank"},{text:"Google",href:"https://google.com",target:"_blank"},{displayText:"Facebook",href:"https://facebook.com"}],linkText:!0});f.PLUGINS.link=function(b){function d(){var c=b.image?b.image.get():null;if(!c&&b.$wp){c=b.selection.ranges(0).commonAncestorContainer;
try{c&&(c.contains&&c.contains(b.el)||!b.el.contains(c)||b.el==c)&&(c=null)}catch(qa){c=null}if(c&&"A"===c.tagName)return c;c=b.selection.element();var d=b.selection.endElement();if("A"!=c.tagName&&!b.node.isElement(c)){var f;c=b.opts.iframe&&null!==(f=b.markdown)&&void 0!==f&&f.isEnabled?null:G(c).parentsUntil(b.$el,"a").first().get(0)}if("A"!=d.tagName&&!b.node.isElement(d)){var m;d=b.opts.iframe&&null!==(m=b.markdown)&&void 0!==m&&m.isEnabled?null:G(d).parentsUntil(b.$el,"a").first().get(0)}try{d&&
(d.contains&&d.contains(b.el)||!b.el.contains(d)||b.el==d)&&(d=null)}catch(qa){d=null}try{c&&(c.contains&&c.contains(b.el)||!b.el.contains(c)||b.el==c)&&(c=null)}catch(qa){c=null}return d&&d==c&&"A"==d.tagName?(b.browser.msie||b.helpers.isMobile())&&(b.selection.info(c).atEnd||b.selection.info(c).atStart)?null:c:null}if("A"==b.el.tagName)return b.el;if(c&&c.get(0).parentNode&&"A"==c.get(0).parentNode.tagName)return c.get(0).parentNode}function c(){var c=b.image?b.image.get():null,d=[];if(c)"A"==c.get(0).parentNode.tagName&&
d.push(c.get(0).parentNode);else{var f;if(b.win.getSelection){var m=b.win.getSelection();if(m.getRangeAt&&m.rangeCount){var t=b.doc.createRange();for(var v=0;v<m.rangeCount;++v)if(c=m.getRangeAt(v),(f=c.commonAncestorContainer)&&1!=f.nodeType&&(f=f.parentNode),f&&"a"==f.nodeName.toLowerCase())d.push(f);else{f=f.getElementsByTagName("a");for(var z=0;z<f.length;++z)t.selectNodeContents(f[z]),1>t.compareBoundaryPoints(c.END_TO_START,c)&&-1<t.compareBoundaryPoints(c.START_TO_END,c)&&d.push(f[z])}}}else if(b.doc.selection&&
"Control"!=b.doc.selection.type)if(c=b.doc.selection.createRange(),f=c.parentElement(),"a"==f.nodeName.toLowerCase())d.push(f);else for(f=f.getElementsByTagName("a"),t=b.doc.body.createTextRange(),m=0;m<f.length;++m)t.moveToElementText(f[m]),-1<t.compareEndPoints("StartToEnd",c)&&1>t.compareEndPoints("EndToStart",c)&&d.push(f[m])}return d}function m(c){if(b.core.hasFocus()||b.opts.iframe&&(!document.hasFocus||document.hasFocus())){O();if(c&&"keyup"===c.type&&(c.altKey||c.which==f.KEYCODE.ALT))return!0;
setTimeout(function(){if(!c||c&&(1==c.which||"mouseup"!=c.type)){var m=d(),p=b.image?b.image.get():null;if(m&&!p){if(b.image&&(p=b.node.contents(m),1==p.length&&"IMG"==p[0].tagName))return p=b.selection.ranges(0),0===p.startOffset&&0===p.endOffset?G(m).before(f.INVISIBLE_SPACE+f.MARKERS):G(m).after(f.INVISIBLE_SPACE+f.MARKERS),b.selection.restore(),!1;c&&c.stopPropagation();M(m)}}},b.helpers.isIOS()?100:0)}}function M(c){b.popups.get("link.edit")||z();c=G(c);b.popups.isVisible("link.edit")||b.popups.refresh("link.edit");
b.popups.setContainer("link.edit",b.$sc);var d=c.offset().left+c.outerWidth()/2,f=c.offset().top+c.outerHeight();b.popups.show("link.edit",d,f,c.outerHeight(),!0)}function O(){b.popups.hide("link.edit")}function z(){var c="";1<=b.opts.linkEditButtons.length&&("A"==b.el.tagName&&0<=b.opts.linkEditButtons.indexOf("linkRemove")&&b.opts.linkEditButtons.splice(b.opts.linkEditButtons.indexOf("linkRemove"),1),c='<div class="fr-buttons">'.concat(b.button.buildList(b.opts.linkEditButtons),"</div>"));c=b.popups.create("link.edit",
{buttons:c});b.$wp&&b.events.$on(b.$wp,"scroll.link-edit",function(){d()&&b.popups.isVisible("link.edit")&&M(d())});return c}function H(){var c=b.popups.get("link.insert"),f=d();if(f){f=G(f);var m=c.find('input.fr-link-attr[type="text"]'),t=c.find('input.fr-link-attr[type="checkbox"]'),v;for(v=0;v<m.length;v++){var z=G(m[v]);z.val(f.attr(z.attr("name")||""))}t.attr("checked",!1);for(v=0;v<t.length;v++)z=G(t[v]),f.attr(z.attr("name"))==z.data("checked")&&z.attr("checked",!0);c.find('input.fr-link-attr[type="text"][name="text"]').val(f.text())}else c.find('input.fr-link-attr[type="text"]').val(""),
c.find('input.fr-link-attr[type="checkbox"]').attr("checked",!1),c.find('input.fr-link-attr[type="text"][name="text"]').val(b.selection.text());c.find("input.fr-link-attr").trigger("change");b.image&&b.image.get()?c.find('.fr-link-attr[name="text"]').parent().hide():c.find('.fr-link-attr[name="text"]').parent().show()}function t(c){if(c)return b.popups.onRefresh("link.insert",H),!0;c="";1<=b.opts.linkInsertButtons.length&&(c='<div class="fr-buttons fr-tabs">'.concat(b.button.buildList(b.opts.linkInsertButtons),
"</div>"));var f="",m=0;f='<div class="fr-link-insert-layer fr-layer fr-active" id="fr-link-insert-layer-'.concat(b.id,'">');f+='<div class="fr-input-line"><input id="fr-link-insert-layer-url-'.concat(b.id,'" name="href" type="text" class="fr-link-attr" placeholder="').concat(b.language.translate("URL"),'" tabIndex="').concat(++m,'"></div>');b.opts.linkText&&(f+='<div class="fr-input-line"><input id="fr-link-insert-layer-text-'.concat(b.id,'" name="text" type="text" class="fr-link-attr" placeholder="').concat(b.language.translate("Text"),
'" tabIndex="').concat(++m,'"></div>'));for(var p in b.opts.linkAttributes)if(b.opts.linkAttributes.hasOwnProperty(p)){var t=b.opts.linkAttributes[p];f+='<div class="fr-input-line"><input name="'.concat(p,'" type="text" class="fr-link-attr" placeholder="').concat(b.language.translate(t),'" tabIndex="').concat(++m,'"></div>')}b.opts.linkAlwaysBlank||(f+='<div class="fr-checkbox-line"><span class="fr-checkbox"><input name="target" class="fr-link-attr" data-checked="_blank" type="checkbox" id="fr-link-target-'.concat(b.id,
'" tabIndex="').concat(++m,'"><span>').concat('<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="10" height="10" viewBox="0 0 32 32"><path d="M27 4l-15 15-7-7-5 5 12 12 20-20z" fill="#FFF"></path></svg>','</span></span><label id="fr-label-target-').concat(b.id,'">').concat(b.language.translate("Open in new tab"),"</label></div>"));f+='<div class="fr-action-buttons"><button class="fr-command fr-submit" role="button" data-cmd="linkInsert" href="#" tabIndex="'.concat(++m,
'" type="button">').concat(b.language.translate("Insert"),"</button></div></div>");p=b.popups.create("link.insert",{buttons:c,input_layer:f});b.$wp&&b.events.$on(b.$wp,"scroll.link-insert",function(){b.image&&b.image.get()&&b.popups.isVisible("link.insert")&&w();d&&b.popups.isVisible("link.insert")&&U()});return p}function v(p,t,v){if(b.opts.trackChangesEnabled){b.edit.on();b.events.focus(!0);b.undo.saveStep();b.markers.insert();b.html.wrap();if(!b.$el.find(".fr-marker").length){b.popups.hide("link.insert");
return}b.markers.remove()}"undefined"==typeof v&&(v={});if(!1===b.events.trigger("link.beforeInsert",[p,t,v]))return!1;var z=b.image?b.image.get():null;z||"A"==b.el.tagName?"A"==b.el.tagName&&b.$el.focus():(b.selection.restore(),b.popups.hide("link.insert"));var w=p;b.opts.linkConvertEmailAddress&&b.helpers.isEmail(p)&&!/^mailto:.*/i.test(p)&&(p="mailto:".concat(p));var H=/^([A-Za-z]:(\\){1,2}|[A-Za-z]:((\\){1,2}[^\\]+)+)(\\)?$/i;""===b.opts.linkAutoPrefix||(new RegExp("^("+f.LinkProtocols.join("|")+
"):.","i")).test(p)||/^data:image.*/i.test(p)||/^(https?:|ftps?:|file:|)\/\//i.test(p)||H.test(p)||0>'/{[#(."\\'.split("").indexOf((p||"")[0])&&(p=b.opts.linkAutoPrefix+p);p=b.helpers.sanitizeURL(p);b.opts.linkAlwaysBlank&&(v.target="_blank");b.opts.linkAlwaysNoFollow&&(v.rel="nofollow");b.helpers.isEmail(w)&&(v.target=null,v.rel=null);"_blank"==v.target?(b.opts.linkNoOpener&&(v.rel=v.rel?v.rel+" noopener":"noopener"),b.opts.linkNoReferrer&&(v.rel=v.rel?v.rel+" noreferrer":"noreferrer")):null==v.target&&
(v.rel=v.rel?v.rel.replace(/noopener/,"").replace(/noreferrer/,""):null);t=t||"";if(p===b.opts.linkAutoPrefix)return b.popups.get("link.insert").find('input[name="href"]').addClass("fr-error"),b.events.trigger("link.bad",[w]),!1;if(H=d()){w=G(H);w.attr("href",p);if(0<t.length&&w.text()!=t&&!z){b.opts.trackChangesEnabled&&(p=G(w.get(0).outerHTML),p.insertBefore(w.parent()),p=b.track_changes.wrapLinkInTracking(p,b.track_changes.getPendingChanges().length-1),p=b.track_changes.wrapInDelete(p),w.parent().append(p));
for(p=w.get(0);1===p.childNodes.length&&p.childNodes[0].nodeType==Node.ELEMENT_NODE;)p=p.childNodes[0];G(p).text(t)}z||w.prepend(f.START_MARKER).append(f.END_MARKER);for(var D in v)v[D]?w.attr(D,v[D]):w.removeAttr(D);z||b.selection.restore()}else{if(z)z.wrap('<a href="'.concat(p,'"></a>')),b.image.hasCaption()&&z.parent().append(z.parents(".fr-img-caption").find(".fr-inner"));else if(b.format.remove("a"),b.selection.isCollapsed())t=0===t.length?w:t,b.html.insert('<a href="'.concat(p,'">').concat(f.START_MARKER).concat(t.replace(/&/g,
"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")).concat(f.END_MARKER,"</a>")),b.selection.restore();else if(0<t.length&&t!=b.selection.text().replace(/\n/g,""))b.selection.remove(),b.html.insert('<a href="'.concat(p,'">').concat(f.START_MARKER).concat(t.replace(/&/g,"&amp;")).concat(f.END_MARKER,"</a>")),b.selection.restore();else{if(!b.selection.isCollapsed()){b.selection.save();for(t=b.$el.find(".fr-marker").addClass("fr-unprocessed").toArray();t.length;){H=G(t.pop());H.removeClass("fr-unprocessed");
if(t=b.node.deepestParent(H.get(0))){var C=H.get(0);w=D="";do C=C.parentNode,b.node.isBlock(C)||(D+=b.node.closeTagString(C),w=b.node.openTagString(C)+w);while(C!=t);C=b.node.openTagString(H.get(0))+H.html()+b.node.closeTagString(H.get(0));H.replaceWith('<span id="fr-break"></span>');H=t.outerHTML;H=H.replace(/<span id="fr-break"><\/span>/g,D+C+w);H=H.replace(w+D,"");t.outerHTML=H}t=b.$el.find(".fr-marker.fr-unprocessed").toArray()}b.html.cleanEmptyTags();b.selection.restore()}b.format.apply("a",
{href:p})}p=c();for(t=0;t<p.length;t++)w=G(p[t]),w.attr(v),w.removeAttr("_moz_dirty");1==p.length&&b.$wp&&!z&&(G(p[0]).prepend(f.START_MARKER).append(f.END_MARKER),b.selection.restore())}z?((v=b.popups.get("link.insert"))&&v.find("input:focus").blur(),b.image.edit(z)):m()}function U(){O();var c=d();if(c){b.popups.get("link.insert")||t();b.popups.isVisible("link.insert")||(b.popups.refresh("link.insert"),b.selection.save(),b.helpers.isMobile()&&(b.events.disableBlur(),b.$el.blur(),b.events.enableBlur()));
b.popups.setContainer("link.insert",b.$sc);c=(b.image?b.image.get():null)||G(c);var f=c.offset().left+c.outerWidth()/2,m=c.offset().top+c.outerHeight();b.popups.show("link.insert",f,m,c.outerHeight(),!0)}}function w(){var c=b.image?b.image.getEl():null;if(c){var d=b.popups.get("link.insert"),f=c.outerWidth()/2;b.image.hasCaption()&&(c=c.find(".fr-img-wrap"),G(c)&&G(c).find("img")&&(f=G(c).find("img").outerWidth()/2));d||t();H(!0);b.popups.setContainer("link.insert",b.$sc);d=c.offset().left+f;f=c.offset().top+
c.outerHeight();var m=c.outerHeight();b.opts.iframe&&b.image.hasCaption()&&G(c)&&G(c).find("img")&&(m=G(c).find("img").outerHeight());b.popups.show("link.insert",d,f,m,!0)}}var G=b.$;return{_init:function(){b.events.on("keyup",function(b){b.which!=f.KEYCODE.ESC&&m(b)});b.events.on("window.mouseup",m);b.events.$on(b.$el,"click","a",function(c){b.edit.isDisabled()&&c.preventDefault()});b.helpers.isMobile()&&b.events.$on(b.$doc,"selectionchange",m);t(!0);"A"==b.el.tagName&&b.$el.addClass("fr-view");
b.events.on("toolbar.esc",function(){if(b.popups.isVisible("link.edit"))return b.events.disableBlur(),b.events.focus(),!1},!0)},remove:function(){var c=d(),f=b.image?b.image.get():null;if(!1===b.events.trigger("link.beforeRemove",[c]))return!1;f&&c?b.image.hasCaption()?(f.addClass("img-link-caption"),G(c).replaceWith(G(c).html()),c=document.querySelectorAll("img.img-link-caption"),b.image.edit(G(c[0])),G(c[0]).removeClass("img-link-caption")):(f.unwrap(),b.image.edit(f)):c&&(b.selection.save(),G(c).replaceWith(G(c).html()),
b.selection.restore(),O())},showInsertPopup:function(){var c=b.$tb.find('.fr-command[data-cmd="insertLink"]'),d=b.popups.get("link.insert");d||(d=t());d.hasClass("fr-active")||(b.popups.refresh("link.insert"),b.popups.setContainer("link.insert",b.$tb||b.$sc),c.isVisible()?(d=b.button.getPosition(c),b.popups.show("link.insert",d.left,d.top,c.outerHeight())):(b.position.forSelection(d),b.popups.show("link.insert")))},usePredefined:function(c){c=b.opts.linkList[c];var d=b.popups.get("link.insert"),f=
d.find('input.fr-link-attr[type="text"]'),m=d.find('input.fr-link-attr[type="checkbox"]'),t;c.rel&&(d.rel=c.rel);for(t=0;t<f.length;t++){var p=G(f[t]);c[p.attr("name")]?(p.val(c[p.attr("name")]),p.toggleClass("fr-not-empty",!0)):"text"!=p.attr("name")&&p.val("")}for(t=0;t<m.length;t++)p=G(m[t]),p.attr("checked",p.data("checked")==c[p.attr("name")]);b.accessibility.focusPopup(d)},insertCallback:function(){var c=b.popups.get("link.insert"),d=c.find('input.fr-link-attr[type="text"]'),f=c.find('input.fr-link-attr[type="checkbox"]'),
m=(d.filter('[name="href"]').val()||"").trim(),t=b.opts.linkText?d.filter('[name="text"]').val():"",z={},w;for(w=0;w<d.length;w++){var H=G(d[w]);0>["href","text"].indexOf(H.attr("name"))&&(z[H.attr("name")]=H.val())}for(w=0;w<f.length;w++)H=G(f[w]),H.is(":checked")?z[H.attr("name")]=H.data("checked"):z[H.attr("name")]=H.data("unchecked")||null;c.rel?z.rel=c.rel:"";c=b.helpers.scrollTop();v(m,t,z);G(b.o_win).scrollTop(c)},insert:v,update:U,get:d,allSelected:c,back:function(){b.image&&b.image.get()?
b.image.back():(b.events.disableBlur(),b.selection.restore(),b.events.enableBlur(),d()&&b.$wp?(b.selection.restore(),O(),m()):"A"==b.el.tagName?(b.$el.focus(),m()):(b.popups.hide("link.insert"),b.toolbar.showInline()))},imageLink:w,applyStyle:function(c,f,t){"undefined"==typeof t&&(t=b.opts.linkMultipleStyles);"undefined"==typeof f&&(f=b.opts.linkStyles);var p=d();if(!p)return!1;t||(f=Object.keys(f),f.splice(f.indexOf(c),1),G(p).removeClass(f.join(" ")));G(p).toggleClass(c);m()}}};f.DefineIcon("insertLink",
{NAME:"link",SVG_KEY:"insertLink"});f.RegisterShortcut(f.KEYCODE.K,"insertLink",null,"K");f.RegisterCommand("insertLink",{title:"Insert Link",undo:!1,focus:!0,refreshOnCallback:!1,popup:!0,callback:function(){this.popups.isVisible("link.insert")?(this.$el.find(".fr-marker").length&&(this.events.disableBlur(),this.selection.restore()),this.popups.hide("link.insert")):this.link.showInsertPopup()},plugin:"link"});f.DefineIcon("linkOpen",{NAME:"external-link",FA5NAME:"external-link-alt",SVG_KEY:"openLink"});
f.RegisterCommand("linkOpen",{title:"Open Link",undo:!1,refresh:function(b){this.link.get()?b.removeClass("fr-hidden"):b.addClass("fr-hidden")},callback:function(){var b=this.link.get();b&&(-1!==b.href.indexOf("mailto:")?this.o_win.open(b.href).close():(b.target||(b.target="_self"),this.browser.msie||this.browser.edge?this.o_win.open(b.href,b.target):this.o_win.open(b.href,b.target,"noopener")),this.popups.hide("link.edit"))},plugin:"link"});f.DefineIcon("linkEdit",{NAME:"edit",SVG_KEY:"edit"});f.RegisterCommand("linkEdit",
{title:"Edit Link",undo:!1,refreshAfterCallback:!1,popup:!0,callback:function(){this.link.update()},refresh:function(b){this.link.get()?b.removeClass("fr-hidden"):b.addClass("fr-hidden")},plugin:"link"});f.DefineIcon("linkRemove",{NAME:"unlink",SVG_KEY:"unlink"});f.RegisterCommand("linkRemove",{title:"Unlink",callback:function(){this.link.remove()},refresh:function(b){this.link.get()?b.removeClass("fr-hidden"):b.addClass("fr-hidden")},plugin:"link"});f.DefineIcon("linkBack",{NAME:"arrow-left",SVG_KEY:"back"});
f.RegisterCommand("linkBack",{title:"Back",undo:!1,focus:!1,back:!0,refreshAfterCallback:!1,callback:function(){this.link.back()},refresh:function(b){var d=this.link.get()&&this.doc.hasFocus();this.image&&this.image.get()||d||this.opts.toolbarInline?(b.removeClass("fr-hidden"),b.next(".fr-separator").removeClass("fr-hidden")):(b.addClass("fr-hidden"),b.next(".fr-separator").addClass("fr-hidden"))},plugin:"link"});f.DefineIcon("linkList",{NAME:"search",SVG_KEY:"search"});f.RegisterCommand("linkList",
{title:"Choose Link",type:"dropdown",focus:!1,undo:!1,refreshAfterCallback:!1,html:function(){for(var b='<ul class="fr-dropdown-list" role="presentation">',d=this.opts.linkList,c=0;c<d.length;c++)b+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="linkList" data-param1="'.concat(c,'">').concat(d[c].displayText||d[c].text,"</a></li>");return b+"</ul>"},callback:function(b,d){this.link.usePredefined(d)},plugin:"link"});f.RegisterCommand("linkInsert",{focus:!1,refreshAfterCallback:!1,
callback:function(){this.link.insertCallback()},refresh:function(b){this.link.get()?b.text(this.language.translate("Update")):b.text(this.language.translate("Insert"))},plugin:"link"});f.DefineIcon("imageLink",{NAME:"link",SVG_KEY:"insertLink"});f.RegisterCommand("imageLink",{title:"Insert Link",undo:!1,focus:!1,popup:!0,callback:function(){this.link.imageLink()},refresh:function(b){if(this.link.get()){var d=b.prev();d.hasClass("fr-separator")&&d.removeClass("fr-hidden");b.addClass("fr-hidden")}else d=
b.prev(),d.hasClass("fr-separator")&&d.addClass("fr-hidden"),b.removeClass("fr-hidden")},plugin:"link"});f.DefineIcon("linkStyle",{NAME:"magic",SVG_KEY:"linkStyles"});f.RegisterCommand("linkStyle",{title:"Style",type:"dropdown",html:function(){var b='<ul class="fr-dropdown-list" role="presentation">',d=this.opts.linkStyles,c;for(c in d)d.hasOwnProperty(c)&&(b+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="linkStyle" data-param1="'.concat(c,'">').concat(this.language.translate(d[c]),
"</a></li>"));return b+"</ul>"},callback:function(b,d){this.link.applyStyle(d)},refreshOnShow:function(b,d){var c=this.$;if(b=this.link.get()){var f=c(b);d.find(".fr-command").each(function(){var b=c(this).data("param1");b=f.hasClass(b);c(this).toggleClass("fr-active",b).attr("aria-selected",b)})}},refresh:function(b){this.link.get()?b.removeClass("fr-hidden"):b.addClass("fr-hidden")},plugin:"link"})});
(function(f,b){"object"===typeof exports&&"undefined"!==typeof module?b(require("froala-editor")):"function"===typeof define&&define.amd?define(["froala-editor"],b):b(f.FroalaEditor)})(this,function(f){f=f&&f.hasOwnProperty("default")?f["default"]:f;Object.assign(f.DEFAULTS,{listAdvancedTypes:!0});f.PLUGINS.lists=function(b){function d(b){return'<span class="fr-open-'.concat(b.toLowerCase(),'"></span>')}function c(b){return'<span class="fr-close-'.concat(b.toLowerCase(),'"></span>')}function m(f){var m,
t;for(m=f.length-1;0<=m;m--)for(t=m-1;0<=t;t--){if(O(f[t]).find(f[m]).length||f[t]==f[m]){f.splice(m,1);break}if(O(f[t]).contains(f[m])){f.splice(t,1);break}}t=[];for(m=0;m<f.length;m++){var v=O(f[m]),z=f[m].parentNode,w=v.attr("class");v.before(c(z.tagName));if("LI"==z.parentNode.tagName)v.before(c("LI")),v.after(d("LI"));else if("OL"==z.parentNode.tagName)v.before(c("OL")),v.after(d("OL"));else if("UL"==z.parentNode.tagName)v.before(c("UL")),v.after(d("UL"));else{var G="";w&&(G+=' class="'.concat(w,
'"'));w="rtl"==b.opts.direction||"rtl"==v.css("direction")?"margin-right":"margin-left";b.helpers.getPX(O(z).css(w))&&0<=(O(z).attr("style")||"").indexOf("".concat(w,":"))&&(G+=' style="'.concat(w,":").concat(b.helpers.getPX(O(z).css(w)),'px;"'));b.html.defaultTag()&&0===v.find(b.html.blockTagsQuery()).length&&v.wrapInner(b.html.defaultTag()+G);b.node.isEmpty(v.get(0),!0)||0!==v.find(b.html.blockTagsQuery()).length||("DIV"==z.parentNode.tagName&&b.html.defaultTag()?(v.prepend(d(b.html.defaultTag())),
v.append(c(b.html.defaultTag()))):v.append("<br>"));v.append(d("LI"));v.prepend(c("LI"))}v.after(d(z.tagName));"LI"==z.parentNode.tagName&&(z=z.parentNode.parentNode);0>t.indexOf(z)&&t.push(z)}for(m=0;m<t.length;m++)f=O(t[m]),v=f.html(),v=v.replace(/<span class="fr-close-([a-z]*)"><\/span>/g,"</$1>"),v=v.replace(/<span class="fr-open-([a-z]*)"><\/span>/g,"<$1>"),f.replaceWith(b.node.openTagString(f.get(0))+v+b.node.closeTagString(f.get(0)));b.$el.find("li:empty").remove();b.$el.find("ul:empty, ol:empty").remove();
b.clean.lists();b.$el.find("ul:empty, ol:empty").remove();b.html.wrap()}function M(c){if("indent"==c||"outdent"==c){var d=!1,f=b.selection.blocks(),v=[],z=f[0].previousSibling||f[0].parentElement;if("outdent"==c){if("UL"!=f[0].parentNode.tagName&&"UL"!=z.parentNode.tagName&&"OL"!=z.parentNode.tagName&&"LI"!=z.parentNode.tagName)return;if(!f[0].previousSibling&&"none"==z.parentNode.style.listStyleType){v=z;for(b.selection.save();0<v.childNodes.length;)v.parentNode.parentNode.append(v.childNodes[0]);
b.clean.lists();b.selection.restore();return}}else{if("UL"!=f[0].parentElement.tagName&&"OL"!=f[0].parentElement.tagName&&"LI"!=f[0].parentElement.tagName)return;b.node.isBlock(f[0])&&"LI"!==f[0].tagName&&0<O(f[0]).parentsUntil(b.$el,"LI").length&&(f[0]=f[0].parentElement,z=f[0].parentElement);if(!f[0].previousSibling||"LI"!=f[0].previousSibling.tagName){v=z;b.selection.save();for(c="OL"==v.tagName?document.createElement("ol"):document.createElement("ul");0<v.childNodes.length;)c.append(v.childNodes[0]);
d=document.createElement("li");c.append(d);v.append(c);b.clean.lists();b.selection.restore();return}}for(z=0;z<f.length;z++)"LI"==f[z].tagName?(d=!0,v.push(f[z])):"LI"==f[z].parentNode.tagName&&(d=!0,v.push(f[z].parentNode));if(d){if("indent"==c){b.selection.save();for(c=0;c<v.length;c++)if(d=v[c].previousSibling)if(f=O(v[c]).find("> ul, > ol").last().get(0)){z=O(document.createElement("li"));if(f.childNodes.length)for(var w=f.childNodes[0].attributes,G=0;G<w.length;G++){var p=w[G];"style"===p.name&&
(z[0].style.cssText+=p.value)}O(f).prepend(z);for(w=b.node.contents(v[c])[0];w&&!b.node.isList(w);)G=w.nextSibling,z.append(w),w=G;O(d).append(O(f));O(v[c]).remove()}else(f=O(d).find("> ul, > ol").last().get(0))?O(f).append(O(v[c])):(f=O("<".concat(v[c].parentNode.tagName,">")),O(d).append(f),f.append(O(v[c])));b.clean.lists()}else b.selection.save(),m(v);b.selection.restore()}}}var O=b.$;return{_init:function(){b.events.on("commands.after",M);b.events.on("keydown",function(c){if(c.which==f.KEYCODE.TAB){for(var d=
b.selection.blocks(),m=[],v=0;v<d.length;v++)"LI"==d[v].tagName?m.push(d[v]):"LI"==d[v].parentNode.tagName&&m.push(d[v].parentNode);if(1<=m.length||m.length&&(b.selection.info(m[0]).atStart||b.node.isEmpty(m[0])))return c.preventDefault(),c.stopPropagation(),c.shiftKey?b.commands.outdent():b.commands.indent(),!1}},!0)},format:function(c,d){var f=b.selection.blocks(!0);var v=1<f.length&&f[f.length-1];f=b.selection.ranges();v&&f.length&&b.node.isEmpty(v)&&!f[0].endOffset&&f[0].setEndAfter(v.firstChild,
1);b.html.syncInputs();b.selection.save();b.browser.safari&&17>b.helpers.getSafariVersion()&&(v=b.selection.ranges(),f&&f[0].endContainer&&v&&v[0].endContainer&&!f[0].endContainer.isSameNode(v[0].endContainer)&&f[0].endContainer.previousSibling&&f[0].endContainer.previousSibling.isSameNode(v[0].endContainer)&&(v=O(v[0].endContainer).find('.fr-marker[data-type="false"]'),O(f[0].endContainer).append(v[0])));b.html.wrap(!0,!0,!0,!0);b.selection.restore();f=b.selection.blocks(!0);for(v=0;v<f.length;v++)"LI"!=
f[v].tagName&&"LI"==f[v].parentNode.tagName&&(f[v]=f[v].parentNode);b.selection.save();a:{v=!0;for(var z=0;z<f.length;z++){if("LI"!=f[z].tagName){v=!1;break a}f[z].parentNode.tagName!=c&&(v=!1)}}if(v)d||m(f);else{v=[];for(z=0;z<f.length;z++){var w=f[z].parentNode;"LI"==f[z].tagName&&w.tagName!=c&&0>v.indexOf(w)&&v.push(w)}for(z=v.length-1;0<=z;z--)w=O(v[z]),w.replaceWith("<".concat(c.toLowerCase()," ").concat(b.node.attributes(w.get(0)),">").concat(w.html(),"</").concat(c.toLowerCase(),">"));v=b.html.defaultTag();
z=null;var H;f.length&&(H="rtl"==b.opts.direction||"rtl"==O(f[0]).css("direction")?"margin-right":"margin-left");for(w=0;w<f.length;w++)if("TD"!=f[w].tagName&&"TH"!=f[w].tagName&&"LI"!=f[w].tagName){var p=b.helpers.getPX(O(f[w]).css(H))||0;f[w].style.marginLeft=null;null===z&&(z=p);var D=0<z?"<".concat(c,' style="').concat(H,": ").concat(z,'px ">'):"<".concat(c,">"),C="</".concat(c,">");for(p-=z;0<p/b.opts.indentMargin;)D+="</".concat(c,">"),C+=C,p-=b.opts.indentMargin;v&&f[w].tagName.toLowerCase()==
v?O(f[w]).replaceWith("".concat(D,"<li").concat(b.node.attributes(f[w]),">").concat(O(f[w]).html(),"</li>").concat(C)):O(f[w]).wrap("".concat(D,"<li></li>").concat(C))}b.clean.lists()}b.html.unwrap();b.selection.restore();d=d||"default";f=b.selection.blocks();for(v=0;v<f.length;v++)"LI"!=f[v].tagName&&"LI"==f[v].parentNode.tagName&&(f[v]=f[v].parentNode);for(v=0;v<f.length;v++)"LI"==f[v].tagName&&(O(f[v].parentNode).css("list-style-type","default"===d?"":d),0===(O(f[v].parentNode).attr("style")||
"").length&&O(f[v].parentNode).removeAttr("style"))},refresh:function(c,d){var f=O(b.selection.element());if(f.get(0)!=b.el){var m=f.get(0);(m="LI"!=m.tagName&&m.firstElementChild&&"LI"!=m.firstElementChild.tagName?f.parents("li").get(0):"LI"==m.tagName||m.firstElementChild?m.firstElementChild&&"LI"==m.firstElementChild.tagName?f.get(0).firstChild:f.get(0):f.parents("li").get(0))&&m.parentNode.tagName==d&&b.el.contains(m.parentNode)&&c.addClass("fr-active")}}}};f.DefineIcon("formatOLSimple",{NAME:"list-ol",
SVG_KEY:"orderedList"});f.RegisterCommand("formatOLSimple",{title:"Ordered List",type:"button",options:{"default":"Default",circle:"Circle",disc:"Disc",square:"Square"},refresh:function(b){this.lists.refresh(b,"OL")},callback:function(b,d){this.lists.format("OL",d)},plugin:"lists"});f.RegisterCommand("formatUL",{title:"Unordered List",type:"button",hasOptions:function(){return this.opts.listAdvancedTypes},options:{"default":"Default",circle:"Circle",disc:"Disc",square:"Square"},refresh:function(b){this.lists.refresh(b,
"UL")},callback:function(b,d){this.lists.format("UL",d)},plugin:"lists"});f.RegisterCommand("formatOL",{title:"Ordered List",hasOptions:function(){return this.opts.listAdvancedTypes},options:{"default":"Default","lower-alpha":"Lower Alpha","lower-greek":"Lower Greek","lower-roman":"Lower Roman","upper-alpha":"Upper Alpha","upper-roman":"Upper Roman"},refresh:function(b){this.lists.refresh(b,"OL")},callback:function(b,d){this.lists.format("OL",d)},plugin:"lists"});f.DefineIcon("formatUL",{NAME:"list-ul",
SVG_KEY:"unorderedList"});f.DefineIcon("formatOL",{NAME:"list-ol",SVG_KEY:"orderedList"})});
(function(f,b){"object"===typeof exports&&"undefined"!==typeof module?b(require("froala-editor")):"function"===typeof define&&define.amd?define(["froala-editor"],b):b(f.FroalaEditor)})(this,function(f){f=f&&f.hasOwnProperty("default")?f["default"]:f;Object.assign(f.DEFAULTS,{paragraphFormat:{N:"Normal",H1:"Heading 1",H2:"Heading 2",H3:"Heading 3",H4:"Heading 4",PRE:"Code"},paragraphFormatSelection:!1,paragraphDefaultSelection:"Paragraph Format"});f.PLUGINS.paragraphFormat=function(b){function d(c,
d){var f=b.html.defaultTag();if(d&&d.toLowerCase()!=f)if(0<c.find("ul, ol").length)for(d=O("<"+d+">"),c.prepend(d),c=b.node.contents(c.get(0))[0];c&&0>["UL","OL"].indexOf(c.tagName);)f=c.nextSibling,d.append(c),c=f;else c.html("<"+d+">"+c.html()+"</"+d+">")}function c(c,d){var f=b.html.defaultTag();d&&d.toLowerCase()!=f||(d='div class="fr-temp-div"');c.replaceWith(O("<"+d+">").html(c.html()))}function f(c,d){var f=b.html.defaultTag();d||(d='div class="fr-temp-div"'+(b.node.isEmpty(c.get(0),!0)?' data-empty="true"':
""));d.toLowerCase()==f?(b.node.isEmpty(c.get(0),!0)||c.append("<br/>"),c.replaceWith(c.html())):c.replaceWith(O("<"+d+">").html(c.html()))}function M(c,d){d||(d='div class="fr-temp-div"'+(b.node.isEmpty(c.get(0),!0)?' data-empty="true"':""));"H1"==d||"H2"==d||"H3"==d||"H4"==d||"H5"==d?-1<b.node.attributes(c.get(0)).indexOf("font-size:")?c.replaceWith(O("<"+d+" "+b.node.attributes(c.get(0)).replace(/font-size:[0-9]+px;?/,"")+">").html(c.html()).removeAttr("data-empty")):c.replaceWith(O("<"+d+" "+
b.node.attributes(c.get(0))+">").html(c.html()).removeAttr("data-empty")):c.replaceWith(O("<"+d+" "+b.node.attributes(c.get(0))+">").html(c.html()).removeAttr("data-empty"))}var O=b.$;return{apply:function(m){"N"==m&&(m=b.html.defaultTag());b.selection.save();b.html.wrap(!0,!0,!b.opts.paragraphFormat.BLOCKQUOTE,!0,!0);b.selection.restore();var z=b.selection.blocks();b.selection.save();b.$el.find("pre").attr("skip",!0);for(var t=0;t<z.length;t++)if(z[t].tagName!=m&&!b.node.isList(z[t])){var v=O(z[t]);
if("LI"==z[t].tagName)d(v,m);else if("LI"==z[t].parentNode.tagName&&z[t])c(v,m);else if(0<=["TD","TH"].indexOf(z[t].parentNode.tagName))f(v,m);else{if("PRE"===m&&null===v[0].nextSibling){var U=O("<br>");v[0].after(U[0])}M(v,m)}}b.$el.find('pre:not([skip="true"]) + pre:not([skip="true"])').each(function(){O(this).prev().append("<br>"+O(this).html());O(this).remove()});b.$el.find("pre").removeAttr("skip");b.html.unwrap();b.selection.restore()},refreshOnShow:function(c,d){c=b.selection.blocks();if(c.length){c=
c[0];var f="N",m=b.html.defaultTag();c.tagName.toLowerCase()!=m&&c!=b.el&&(f=c.tagName);d.find('.fr-command[data-param1="'+f+'"]').addClass("fr-active").attr("aria-selected",!0)}else d.find('.fr-command[data-param1="N"]').addClass("fr-active").attr("aria-selected",!0)},refresh:function(c){if(b.opts.paragraphFormatSelection){var d=b.selection.blocks();if(d.length){d=d[0];var f="N",m=b.html.defaultTag();d.tagName.toLowerCase()!=m&&d!=b.el&&(f=d.tagName);0<=["LI","TD","TH"].indexOf(f)&&(f="N");c.find(">span").text(b.language.translate(b.opts.paragraphFormat[f]))}else c.find(">span").text(b.language.translate(b.opts.paragraphFormat.N))}}}};
f.RegisterCommand("paragraphFormat",{type:"dropdown",displaySelection:function(b){return b.opts.paragraphFormatSelection},defaultSelection:function(b){return b.language.translate(b.opts.paragraphDefaultSelection)},displaySelectionWidth:80,html:function(){var b='<ul class="fr-dropdown-list" role="presentation">',d=this.opts.paragraphFormat,c;for(c in d)d.hasOwnProperty(c)&&(this.shortcuts.get("paragraphFormat."+c),b+='<li role="presentation"><'+("N"==c?this.html.defaultTag()||"DIV":c)+' style="padding: 0 !important; margin: 0 !important; border: 0 !important; background-color: transparent !important; '+
("PRE"==c||"N"==c?"font-size: 15px":"font-weight: bold !important; ")+("H1"==c?"font-size: 2em !important; ":"")+("H2"==c?"font-size: 1.5em !important; ":"")+("H3"==c?"font-size: 1.17em !important; ":"")+("H4"==c?"font-size: 15px !important;":"")+'"  role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="paragraphFormat" data-param1="'+c+'" title="'+this.language.translate(d[c])+'">'+this.language.translate(d[c])+"</a></"+("N"==c?this.html.defaultTag()||"DIV":c)+"></li>");
return b+"</ul>"},title:"Paragraph Format",callback:function(b,d){this.paragraphFormat.apply(d)},refresh:function(b){this.paragraphFormat.refresh(b)},refreshOnShow:function(b,d){this.paragraphFormat.refreshOnShow(b,d)},plugin:"paragraphFormat"});f.DefineIcon("paragraphFormat",{NAME:"paragraph",SVG_KEY:"paragraphFormat"})});
(function(f,b){"object"===typeof exports&&"undefined"!==typeof module?b(require("froala-editor")):"function"===typeof define&&define.amd?define(["froala-editor"],b):b(f.FroalaEditor)})(this,function(f){function b(b){var c=Array.isArray(b)?d(b):void 0;c||(c="undefined"!==typeof Symbol&&null!=b[Symbol.iterator]||null!=b["@@iterator"]?Array.from(b):void 0);if(!c)a:{if(b){if("string"===typeof b){c=d(b,void 0);break a}c=Object.prototype.toString.call(b).slice(8,-1);"Object"===c&&b.constructor&&(c=b.constructor.name);
if("Map"===c||"Set"===c){c=Array.from(b);break a}if("Arguments"===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)){c=d(b,void 0);break a}}c=void 0}if(!(b=c))throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");return b}function d(b,d){if(null==d||d>b.length)d=b.length;for(var c=0,f=Array(d);c<d;c++)f[c]=b[c];return f}f=f&&f.hasOwnProperty("default")?f["default"]:f;Object.assign(f.POPUP_TEMPLATES,
{"table.insert":"[_BUTTONS_][_ROWS_COLUMNS_]","table.edit":"[_BUTTONS_]","table.colors":"[_BUTTONS_][_COLORS_][_CUSTOM_COLOR_]"});Object.assign(f.DEFAULTS,{tableInsertMaxSize:10,tableEditButtons:"tableHeader tableFooter tableRemove tableRows tableColumns tableStyle - tableCells tableCellBackground tableCellVerticalAlign tableCellHorizontalAlign tableCellStyle".split(" "),tableInsertButtons:["tableBack","|"],tableResizer:!0,tableDefaultWidth:"100%",tableResizerOffset:5,tableResizingLimit:30,tableColorsButtons:["tableBack",
"|"],tableColors:"#61BD6D #1ABC9C #54ACD2 #2C82C9 #9365B8 #475577 #CCCCCC #41A85F #00A885 #3D8EB9 #2969B0 #553982 #28324E #000000 #F7DA64 #FBA026 #EB6B56 #E25041 #A38F84 #EFEFEF #FFFFFF #FAC51C #F37934 #D14841 #B8312F #7C706B #D1D5D8 REMOVE".split(" "),tableColorsStep:7,tableCellStyles:{"fr-highlighted":"Highlighted","fr-thick":"Thick"},tableStyles:{"fr-dashed-borders":"Dashed Borders","fr-alternate-rows":"Alternate Rows"},tableCellMultipleStyles:!0,tableMultipleStyles:!0,tableInsertHelper:!0,keepTextFormatOnTable:!1,
tableInsertHelperOffset:15});f.PLUGINS.table=function(c){function d(){var a=l();if(a){var b=c.popups.get("table.edit");b||(b=U());b&&(c.popups.setContainer("table.edit",c.$sc),a=Aa(a),c.popups.show("table.edit",a.left+(a.right-a.left)/2,a.bottom,a.bottom-a.top,!0),c.edit.isDisabled()&&(c.$el.removeClass("fr-no-selection"),c.edit.on(),c.button.bulkRefresh(),c.selection.setAtEnd(c.$el.find(".fr-selected-cell").last().get(0)),c.selection.restore()))}}function M(){var a=l();if(a){c.popups.get("table.colors")||
w();c.popups.setContainer("table.colors",c.$sc);a=Aa(a);var b=(a.left+a.right)/2,d=a.bottom,e=c.popups.get("table.colors"),f=c.$el.find(".fr-selected-cell").first();f=c.helpers.RGBToHex(f.css("background-color"));var g=e.find(".fr-table-colors-hex-layer input");e.find(".fr-selected-color").removeClass("fr-selected-color fr-active-item");e.find('span[data-param1="'.concat(f,'"]')).addClass("fr-selected-color fr-active-item");g.val(f).trigger("change");c.popups.show("table.colors",b,d,a.bottom-a.top,
!0)}}function O(){0===Y().length&&c.toolbar.enable()}function z(a){if(a)return c.popups.onHide("table.insert",function(){c.popups.get("table.insert").find('.fr-table-size .fr-select-table-size > span[data-row="1"][data-col="1"]').trigger("mouseover")}),!0;a="";0<c.opts.tableInsertButtons.length&&(a='<div class="fr-buttons fr-tabs">'.concat(c.button.buildList(c.opts.tableInsertButtons),"</div>"));a={buttons:a,rows_columns:t()};a=c.popups.create("table.insert",a);c.events.$on(a,"mouseover",".fr-table-size .fr-select-table-size .fr-table-cell",
function(a){H(E(a.currentTarget))},!0);v(a);return a}function H(a){var b=a.data("row");null!==b&&(b=parseInt(b));var d=a.data("col");null!==d&&(d=parseInt(d));var e=a.parent();e.siblings(".fr-table-size-info").html("".concat(b," &times; ").concat(d));e.find("> span").removeClass("hover fr-active-item");for(var f=1;f<=c.opts.tableInsertMaxSize;f++)for(var g=0;g<=c.opts.tableInsertMaxSize;g++){var h=e.find('> span[data-row="'.concat(f,'"][data-col="').concat(g,'"]'));f<=b&&g<=d?h.addClass("hover"):
f<=b+1||2>=f&&!c.helpers.isMobile()?h.css("display","inline-block"):2<f&&!c.helpers.isMobile()&&h.css("display","none")}a.addClass("fr-active-item")}function t(){for(var a='<div class="fr-table-size"><div class="fr-table-size-info">1 &times; 1</div><div class="fr-select-table-size">',b=1;b<=c.opts.tableInsertMaxSize;b++){for(var d=1;d<=c.opts.tableInsertMaxSize;d++){var e="inline-block";2<b&&!c.helpers.isMobile()&&(e="none");var f="fr-table-cell ";1==b&&1==d&&(f+=" hover");a+='<span class="fr-command '.concat(f,
'" tabIndex="-1" data-cmd="tableInsert" data-row="').concat(b,'" data-col="').concat(d,'" data-param1="').concat(b,'" data-param2="').concat(d,'" style="display: ').concat(e,';" role="button"><span></span><span class="fr-sr-only">').concat(b," &times; ").concat(d,"&nbsp;&nbsp;&nbsp;</span></span>")}a+='<div class="new-line"></div>'}return a+"</div></div>"}function v(a){c.events.$on(a,"focus","[tabIndex]",function(a){a=E(a.currentTarget);H(a)});c.events.on("popup.tab",function(a){var b=E(a.currentTarget);
if(!c.popups.isVisible("table.insert")||!b.is("span, a"))return!0;var d=a.which;if(f.KEYCODE.ARROW_UP==d||f.KEYCODE.ARROW_DOWN==d||f.KEYCODE.ARROW_LEFT==d||f.KEYCODE.ARROW_RIGHT==d){if(b.is("span.fr-table-cell")){var e=b.parent().find("span.fr-table-cell");var g=e.index(b);b=c.opts.tableInsertMaxSize;var h=g%b;g=Math.floor(g/b);f.KEYCODE.ARROW_UP==d?g=Math.max(0,g-1):f.KEYCODE.ARROW_DOWN==d?g=Math.min(c.opts.tableInsertMaxSize-1,g+1):f.KEYCODE.ARROW_LEFT==d?h=Math.max(0,h-1):f.KEYCODE.ARROW_RIGHT==
d&&(h=Math.min(c.opts.tableInsertMaxSize-1,h+1));d=E(e.get(g*b+h));H(d);c.events.disableBlur();d.focus();e=!1}}else f.KEYCODE.ENTER==d&&(c.button.exec(b),e=!1);!1===e&&(a.preventDefault(),a.stopPropagation());return e},!0)}function U(a){if(a)return c.popups.onHide("table.edit",O),!0;a="";return 0<c.opts.tableEditButtons.length?(a='<div class="fr-buttons">'.concat(c.button.buildList(c.opts.tableEditButtons),"</div>"),a=c.popups.create("table.edit",{buttons:a}),c.events.$on(c.$wp,"scroll.table-edit",
function(){c.popups.isVisible("table.edit")&&d()}),a):!1}function w(){var a="";0<c.opts.tableColorsButtons.length&&(a='<div class="fr-buttons fr-tabs">'.concat(c.button.buildList(c.opts.tableColorsButtons),"</div>"));var b="";c.opts.colorsHEXInput&&(b='<div class="fr-color-hex-layer fr-table-colors-hex-layer fr-active fr-layer" id="fr-table-colors-hex-layer-'.concat(c.id,'"><div class="fr-input-line"><input maxlength="7" id="fr-table-colors-hex-layer-text-').concat(c.id,'" type="text" placeholder="').concat(c.language.translate("HEX Color"),
'" tabIndex="1" aria-required="true"></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-submit" data-cmd="tableCellBackgroundCustomColor" tabIndex="2" role="button">').concat(c.language.translate("OK"),"</button></div></div>"));a={buttons:a,colors:G(),custom_color:b};a=c.popups.create("table.colors",a);c.events.$on(c.$wp,"scroll.table-colors",function(){c.popups.isVisible("table.colors")&&M()});p(a);return a}function G(){for(var a='<div class="fr-color-set fr-table-colors">',
b=0;b<c.opts.tableColors.length;b++)0!==b&&0===b%c.opts.tableColorsStep&&(a+="<br>"),a="REMOVE"!=c.opts.tableColors[b]?a+'<span class="fr-command" style="background: '.concat(c.opts.tableColors[b],';" tabIndex="-1" role="button" data-cmd="tableCellBackgroundColor" data-param1="').concat(c.opts.tableColors[b],'"><span class="fr-sr-only">').concat(c.language.translate("Color")," ").concat(c.opts.tableColors[b],"&nbsp;&nbsp;&nbsp;</span></span>"):a+'<span class="fr-command" data-cmd="tableCellBackgroundColor" tabIndex="-1" role="button" data-param1="REMOVE" title="'.concat(c.language.translate("Clear Formatting"),
'">').concat(c.icon.create("tableColorRemove"),'<span class="fr-sr-only">').concat(c.language.translate("Clear Formatting"),"</span></span>");return a+"</div>"}function p(a){c.events.on("popup.tab",function(b){var d=E(b.currentTarget);if(!c.popups.isVisible("table.colors")||!d.is("span"))return!0;var e=b.which,g=!0;if(f.KEYCODE.TAB==e)e=a.find(".fr-buttons"),g=!c.accessibility.focusToolbar(e,b.shiftKey?!0:!1);else if(f.KEYCODE.ARROW_UP==e||f.KEYCODE.ARROW_DOWN==e||f.KEYCODE.ARROW_LEFT==e||f.KEYCODE.ARROW_RIGHT==
e){g=d.parent().find("span.fr-command");var h=g.index(d);d=c.opts.colorsStep;h=Math.floor(h/d)*d+h%d;var J=Math.floor(g.length/d)*d;f.KEYCODE.ARROW_UP==e?h=((h-d)%J+J)%J:f.KEYCODE.ARROW_DOWN==e?h=(h+d)%J:f.KEYCODE.ARROW_LEFT==e?h=((h-1)%J+J)%J:f.KEYCODE.ARROW_RIGHT==e&&(h=(h+1)%J);e=E(g.get(h));c.events.disableBlur();e.focus();g=!1}else f.KEYCODE.ENTER==e&&(c.button.exec(d),g=!1);!1===g&&(b.preventDefault(),b.stopPropagation());return g},!0)}function D(a){var d={startTag:"",closeTag:""};if(c.opts.keepTextFormatOnTable){a:{d=
new Set;var e=a.textContent,f=0;for(a=[a.firstChild];0<a.length;){var g=a.pop();if(g&&(d.has(g)||(0===f&&e!==g.textContent&&(e=g.textContent,f++),d.add(g)),g.hasChildNodes()))for(var h=0;h<g.childNodes.length;){if(3===g.childNodes[h].nodeType){d=b(d);break a}if(g.childNodes[h].textContent)if(0===f&&g.childNodes[h].textContent!==e){e=g.childNodes[h].textContent;a.push(g.childNodes[h]);f++;break}else g.childNodes[h].textContent===e&&a.push(g.childNodes[h]);h++}}d=b(d)}d=C(d.reverse())}return{startTag:d.startTag,
closeTag:d.closeTag}}function C(a){var b="",d="",e=["br","#text","#comment","font"];if(0<a.length)for(var f=a.length-1;0<=f;f--){var g=a[f],h=c.node.isBlock(g),J=e.indexOf(g.nodeName.toLowerCase());if(!h&&0>J){h=g.style;J="";if(h&&h.length){for(var l=0;l<h.length;l++)J+=h[l]+": "+h[h[l]].replace(/"/gi,"")+"; ";J=J.trim()}b+=J?"<"+g.nodeName.toLowerCase()+' style="'+J+'">':"<"+g.nodeName.toLowerCase()+">";d="</"+g.nodeName.toLowerCase()+">"+d}}return{startTag:b,closeTag:d}}function da(){if(0<Y().length){var a=
oa();c.selection.setBefore(a.get(0))||c.selection.setAfter(a.get(0));c.selection.restore();c.popups.hide("table.edit");c.opts.trackChangesEnabled?(c.track_changes.removedTable(a),A()):a.remove();c.toolbar.enable()}}function qa(a){var b=oa();if(0<b.length&&!(0<c.$el.find("thead .fr-selected-cell").length&&"above"==a||0<c.$el.find("tfoot td.fr-selected-cell").length&&"below"==a)){var e,f=l(),g=R(f);if(null!=g){var h="above"==a?g.min_i:g.max_i;g="<tr>";for(e=0;e<f[h].length;e++)if("below"==a&&h<f.length-
1&&f[h][e]==f[h+1][e]||"above"==a&&0<h&&f[h][e]==f[h-1][e]){if(0===e||0<e&&f[h][e]!=f[h][e-1]){var J=E(f[h][e]);J.attr("rowspan",parseInt(J.attr("rowspan"),10)+1)}}else if(J=E(f[h][e]),"TH"==J.attr("tagName").toUpperCase())g+='<th style="'+J.attr("style")+'" ><br></th>';else{var m=D(f[h][e]);g+='<td style="'+J.attr("style")+'" >'+m.startTag+"<br>"+m.closeTag+"</td>"}g+="</tr>";b=0<c.$el.find("thead .fr-selected-cell").length&&"below"==a||0<c.$el.find("tfoot td.fr-selected-cell").length&&"above"==
a?E(b.find("tbody").not(b.find("> table tbody"))):E(b.find("tr").not(b.find("> table tr")).get(h));"below"==a?"TBODY"==b.attr("tagName")?b.prepend(g):b[0].parentNode&&b[0].insertAdjacentHTML("afterend",g):"above"==a&&("TBODY"==b.attr("tagName")?b.append(g):b.before(g),c.popups.isVisible("table.edit")&&d())}}}function P(a,b,c){var d,e,f=0,g=l(c);b=Math.min(b,g[0].length-1);if(b>a)for(d=a;d<=b;d++)if(!(d>a&&g[0][d]==g[0][d-1])){var h=Math.min(parseInt(g[0][d].getAttribute("colspan"),10)||1,b-a+1);if(1<
h&&g[0][d]==g[0][d+1])for(f=h-1,c=1;c<g.length;c++)if(g[c][d]!=g[c-1][d]){for(e=d;e<d+h;e++)if(void 0!==g[c][e]){var J=parseInt(g[c][e].getAttribute("colspan"),10)||1;if(1<J&&g[c][e]==g[c][e+1])f=Math.min(f,J-1),e+=f;else if(f=Math.max(0,f-1),!f)break}if(!f)break}}f&&X(g,f,"colspan",0,g.length-1,a,b)}function ba(a,b,c){var d,e,f=0,g=l(c);b=Math.min(b,g.length-1);if(b>a)for(c=a;c<=b;c++)if(!(c>a&&g[c][0]==g[c-1][0])&&void 0!==g[c][0]){var h=Math.min(parseInt(g[c][0].getAttribute("rowspan"),10)||1,
b-a+1);if(1<h&&g[c][0]==g[c+1][0])for(f=h-1,d=1;d<g[0].length;d++)if(g[c][d]!=g[c][d-1]){for(e=c;e<c+h;e++)if(void 0!==g[e][d]){var J=parseInt(g[e][d].getAttribute("rowspan"),10)||1;if(1<J&&g[e][d]==g[e+1][d])f=Math.min(f,J-1),e+=f;else if(f=Math.max(0,f-1),!f)break}if(!f)break}}f&&X(g,f,"rowspan",a,b,0,g[0].length-1)}function X(a,b,c,d,e,f,g){var h,J;for(h=d;h<=e;h++)for(J=f;J<=g;J++)if(!(h>d&&a[h][J]==a[h-1][J]||J>f&&a[h][J]==a[h][J-1])&&void 0!==a[h][J]){var l=parseInt(a[h][J].getAttribute(c),
10)||1;1<l&&(1<l-b?a[h][J].setAttribute(c,l-b):a[h][J].removeAttribute(c))}}function a(a,b,c,d,e){ba(a,b,e);P(c,d,e)}function e(a){var b=c.$el.find(".fr-selected-cell");"REMOVE"!=a?b.css("background-color",c.helpers.HEXtoRGB(a)):b.css("background-color","");d()}function g(a){a.style.removeProperty("border");a.style.removeProperty("border-top");a.style.removeProperty("border-bottom");a.style.removeProperty("border-left");a.style.removeProperty("border-right")}function B(a,b){a=a.childNodes;if(0<a.length)for(var c=
0;c<a.length;c++)"TD"===a[c].tagName?"fr-dashed-borders"===b||"fr-highlighted"===b||"fr-thick"===b?g(a[c]):"fr-alternate-rows"===b&&a[c].style.removeProperty("background-color"):B(a[c],b)}function l(a){a=a||null;var b=[];null==a&&0<Y().length&&(a=oa());if(a){if(!a.find("tr").html().match(/xl[0-9]+/gi))for(var c=a.find("tr:empty"),d=c.length-1;0<=d;d--)E(c[d]).remove();a.find("tr").not(a.find("> table tr")).each(function(a,c){var d=0;E(c).find("> th, > td").each(function(c,e){var f=E(e);c=parseInt(f.attr("colspan"),
10)||1;f=parseInt(f.attr("rowspan"),10)||1;for(var g=a;g<a+f;g++)for(var h=d;h<d+c;h++)b[g]||(b[g]=[]),b[g][h]?d++:b[g][h]=e;d+=c})})}return b}function n(a,b){for(var c=0;c<b.length;c++)for(var d=0;d<b[c].length;d++)if(b[c][d]==a)return{row:c,col:d}}function L(a,b,c){for(var d=a+1,e=b+1;d<c.length;){if(c[d][b]!=c[a][b]){d--;break}d++}for(d==c.length&&d--;e<c[a].length;){if(c[a][e]!=c[a][b]){e--;break}e++}e==c[a].length&&e--;return{row:d,col:e}}function S(){c.el.querySelector(".fr-cell-fixed")&&c.el.querySelector(".fr-cell-fixed").classList.remove("fr-cell-fixed");
c.el.querySelector(".fr-cell-handler")&&c.el.querySelector(".fr-cell-handler").classList.remove("fr-cell-handler")}function A(){var a=c.$el.find(".fr-selected-cell");0<a.length&&a.each(function(){var a=E(this);a.removeClass("fr-selected-cell");""===a.attr("class")&&a.removeAttr("class")});S()}function la(){c.events.disableBlur();c.selection.clear();c.$el.addClass("fr-no-selection");c.$el.blur();c.events.enableBlur()}function R(a){var b=c.$el.find(".fr-selected-cell");if(0<b.length){var d=a.length,
e=0,f=a[0].length,g=0,h;for(h=0;h<b.length;h++){var l=n(b[h],a),m=L(l.row,l.col,a);d=Math.min(l.row,d);e=Math.max(m.row,e);f=Math.min(l.col,f);g=Math.max(m.col,g)}return{min_i:d,max_i:e,min_j:f,max_j:g}}return null}function ma(a,b,c,d,e){var f=a,g=b,h=c,l=d,m;for(m=f;m<=g;m++){if(1<(parseInt(E(e[m][h]).attr("rowspan"),10)||1)||1<(parseInt(E(e[m][h]).attr("colspan"),10)||1)){var k=n(e[m][h],e);var J=L(k.row,k.col,e);f=Math.min(k.row,f);g=Math.max(J.row,g);h=Math.min(k.col,h);l=Math.max(J.col,l)}if(1<
(parseInt(E(e[m][l]).attr("rowspan"),10)||1)||1<(parseInt(E(e[m][l]).attr("colspan"),10)||1))k=n(e[m][l],e),J=L(k.row,k.col,e),f=Math.min(k.row,f),g=Math.max(J.row,g),h=Math.min(k.col,h),l=Math.max(J.col,l)}for(m=h;m<=l;m++){if(1<(parseInt(E(e[f][m]).attr("rowspan"),10)||1)||1<(parseInt(E(e[f][m]).attr("colspan"),10)||1))k=n(e[f][m],e),J=L(k.row,k.col,e),f=Math.min(k.row,f),g=Math.max(J.row,g),h=Math.min(k.col,h),l=Math.max(J.col,l);if(1<(parseInt(E(e[g][m]).attr("rowspan"),10)||1)||1<(parseInt(E(e[g][m]).attr("colspan"),
10)||1))k=n(e[g][m],e),J=L(k.row,k.col,e),f=Math.min(k.row,f),g=Math.max(J.row,g),h=Math.min(k.col,h),l=Math.max(J.col,l)}return f==a&&g==b&&h==c&&l==d?{min_i:a,max_i:b,min_j:c,max_j:d}:ma(f,g,h,l,e)}function Aa(a){var b=R(a);if(null!=b){var c=E(a[b.min_i][b.min_j]),d=E(a[b.min_i][b.max_j]);b=E(a[b.max_i][b.min_j]);a=c.length&&c.offset().left;d=d.length&&d.offset().left+d.outerWidth();c=c.length&&c.offset().top;b=b.length&&b.offset().top+b.outerHeight();return{left:a,right:d,top:c,bottom:b}}}function ca(a,
b){if(E(a).is(b))A(),E(a).addClass("fr-selected-cell");else{la();c.edit.off();var d=l(),e=n(a,d),f=n(b,d);if(e&&f)for(e=ma(Math.min(e.row,f.row),Math.max(e.row,f.row),Math.min(e.col,f.col),Math.max(e.col,f.col),d),A(),a.classList.add("fr-cell-fixed"),b.classList.add("fr-cell-handler"),b=e.min_i;b<=e.max_i;b++)for(f=e.min_j;f<=e.max_j;f++)E(a).closest("table").is(E(d[b][f]).closest("table"))&&E(d[b][f]).addClass("fr-selected-cell")}}function za(a){var b=null,d=E(a.target);"TD"==a.target.tagName||"TH"==
a.target.tagName?b=a.target:0<d.closest("th",d.closest("thead")[0]).length?b=d.closest("th",d.closest("thead")[0]).get(0):0<d.closest("td",d.closest("tr")[0]).length&&(b=d.closest("td",d.closest("tr")[0]).get(0));return-1===c.$el.html.toString().search(b)?null:b}function va(){A();c.popups.hide("table.edit")}function q(a){var b=za(a);if("false"==E(b).parents("[contenteditable]").not(".fr-element").not(".fr-img-caption").not("body").first().attr("contenteditable"))return!0;0<Y().length&&!b&&va();if(!c.edit.isDisabled()||
c.popups.isVisible("table.edit"))if(1!=a.which||1==a.which&&c.helpers.isMac()&&a.ctrlKey)(3==a.which||1==a.which&&c.helpers.isMac()&&a.ctrlKey)&&b&&va();else if(fa=!0,b){0<Y().length&&!a.shiftKey&&va();a.stopPropagation();c.events.trigger("image.hideResizer");c.events.trigger("video.hideResizer");aa=!0;var d=b.tagName.toLowerCase();a.shiftKey&&0<c.$el.find("".concat(d,".fr-selected-cell")).length?E(c.$el.find("".concat(d,".fr-selected-cell")).closest("table")).is(E(b).closest("table"))?ca(pa,b):la():
((c.keys.ctrlKey(a)||a.shiftKey)&&"TD"===a.currentTarget.tagName&&(1<Y().length||0===E(b).find(c.selection.element()).length&&!E(b).is(c.selection.element()))&&la(),pa=b,0<c.opts.tableEditButtons.length&&ca(pa,pa))}}function ha(a){if(!c.edit.isDisabled()&&c.popups.areVisible())return!0;var b=za(a);1===Y().length&&null===b&&(c.toolbar.enable(),A());if(1===Y().length&&b&&"TD"!==b.tagName&&"TH"!==b.tagName||!aa&&!c.$tb.is(a.target)&&!c.$tb.is(E(a.target).closest(".fr-toolbar")))c.toolbar.enable(),A();
("BODY"===a.target.tagName||"HTML"===a.target.tagName)&&!b&&0<Y().length&&c.toolbar.enable();if(!(1!=a.which||1==a.which&&c.helpers.isMac()&&a.ctrlKey)&&(fa=!1,aa&&((aa=!1,za(a)||1!=Y().length)?0<Y().length?c.selection.isCollapsed()?(d(),c.toolbar.enable()):(A(),c.edit.on()):Y().length||(c.$el.removeClass("fr-no-selection"),c.edit.on()):A()),ua)){ua=!1;F.removeClass("fr-moving");c.$el.removeClass("fr-no-selection");c.edit.on();a=parseFloat(F.css("left"))+c.opts.tableResizerOffset+c.$wp.offset().left;
c.opts.iframe&&(a-=c.$iframe.offset().left);F.data("release-position",a);F.removeData("max-left");F.removeData("max-right");a=F.data("origin");b=F.data("release-position");if(a!==b){var e=F.data("first"),f=F.data("second"),g=F.data("table"),h=g.outerWidth();c.undo.canDo()||c.undo.saveStep();if(null!=e&&null!=f){var m=l(g),k=[],W=[],J=[],n=[],p;for(p=0;p<m.length;p++){var q=E(m[p][e]);var r=E(m[p][f]);k[p]=q.outerWidth();J[p]=r.outerWidth();W[p]=k[p]/h*100;n[p]=J[p]/h*100}for(p=0;p<m.length;p++)q=
E(m[p][e]),r=E(m[p][f]),m[p][e]!=m[p][f]&&(h=(W[p]*(k[p]+b-a)/k[p]).toFixed(4),q.css("width",h+"%"),r.css("width",(W[p]+n[p]-h).toFixed(4)+"%"))}else{e=g.parent();k=parseFloat(e.css("padding-left"));W=parseFloat(e.css("padding-right"));k+=W;k=h/(e.width()-k)*100;W=(parseInt(g.css("margin-left"),10)||0)/e.width()*100;e=(parseInt(g.css("margin-right"),10)||0)/e.width()*100;if("rtl"==c.opts.direction&&0===f||"rtl"!=c.opts.direction&&0!==f)m=(h+b-a)/h*k,g.css("margin-right","calc(100% - ".concat(Math.round(m).toFixed(4),
"% - ").concat(Math.round(W).toFixed(4),"%)"));else if("rtl"==c.opts.direction&&0!==f||"rtl"!=c.opts.direction&&0===f)m=(h-b+a)/h*k,g.css("margin-left","calc(100% - ".concat(Math.round(m).toFixed(4),"% - ").concat(Math.round(e).toFixed(4),"%)"));g.css("width","".concat(Math.round(m).toFixed(4),"%"))}c.selection.restore();c.undo.saveStep();c.events.trigger("table.resized",[g.get(0)])}F.removeData("origin");F.removeData("release-position");F.removeData("first");F.removeData("second");F.removeData("table");
N()}}function V(a){if(!(E(a.currentTarget).is(E(a.originalEvent.relatedTarget))||a.currentTarget.contains(a.originalEvent.relatedTarget)||a.originalEvent.relatedTarget&&a.originalEvent.relatedTarget.contains(a.currentTarget))||a.currentTarget.querySelector("input, textarea"))if(c.events.$on(E("input, textarea"),"click",ka),!0===aa&&0<c.opts.tableEditButtons.length){if(E(a.currentTarget).closest("table").is(oa())){if("TBODY"===a.currentTarget.parentElement.parentElement.tagName&&"TD"==a.currentTarget.tagName&&
0===c.$el.find("th.fr-selected-cell").length&&0===c.$el.find("tfoot td.fr-selected-cell").length){ca(pa,a.currentTarget);return}if("TFOOT"===a.currentTarget.parentElement.parentElement.tagName&&"TD"==a.currentTarget.tagName&&0===c.$el.find("tbody td.fr-selected-cell").length){ca(pa,a.currentTarget);return}if("TH"==a.currentTarget.tagName&&0===c.$el.find("td.fr-selected-cell").length){ca(pa,a.currentTarget);return}}"TD"!==a.currentTarget.tagName&&"TH"!==a.currentTarget.tagName&&la()}}function k(a,
b,d,e){a=b;for(var f;a!=c.el&&"TD"!=a.tagName&&"TH"!=a.tagName;){"up"==e?f=a.previousElementSibling:"down"==e&&(f=a.nextElementSibling);if(f)break;a=a.parentNode}if("TD"==a.tagName||"TH"==a.tagName){for(a=f=a;a&&"TABLE"!=a.tagName&&a.parentNode!=c.el;)a=a.parentNode;a&&"TABLE"==a.tagName&&(b=l(E(a)),"up"==e?x(n(f,b),a,b):"down"==e&&u(n(f,b),a,b))}else f&&("up"==e&&c.selection.setAtEnd(f),"down"==e&&c.selection.setAtStart(f))}function x(a,b,d){0<E(".tribute-container").length&&"none"!=E(".tribute-container").css("display")||
(0<a.row?c.selection.setAtEnd(d[a.row-1][a.col]):k(a,b,d,"up"))}function u(a,b,d){if(!(0<E(".tribute-container").length&&"none"!=E(".tribute-container").css("display"))){var e=parseInt(d[a.row][a.col].getAttribute("rowspan"),10)||1;a.row<d.length-e?c.selection.setAtStart(d[a.row+e][a.col]):k(a,b,d,"down")}}function h(a){var b=a.which,d=c.selection.blocks();if(d.length){d=d[0];if("P"===d.tagName||"DIV"===d.tagName)d=d.parentNode;if("TD"==d.tagName||"TH"==d.tagName){for(var e=d;e&&"TABLE"!=e.tagName&&
e.parentNode!=c.el;)e=e.parentNode;if(e&&"TABLE"==e.tagName&&(f.KEYCODE.ARROW_LEFT==b||f.KEYCODE.ARROW_UP==b||f.KEYCODE.ARROW_RIGHT==b||f.KEYCODE.ARROW_DOWN==b)&&(0<Y().length&&va(),c.browser.webkit&&(f.KEYCODE.ARROW_UP==b||f.KEYCODE.ARROW_DOWN==b))){var g=c.selection.ranges(0).startContainer;if(g.nodeType!=Node.TEXT_NODE||!(f.KEYCODE.ARROW_UP==b&&(g.previousSibling&&"BR"!==g.previousSibling.tagName||g.previousSibling&&"BR"===g.previousSibling.tagName&&g.previousSibling.previousSibling)||f.KEYCODE.ARROW_DOWN==
b&&(g.nextSibling&&"BR"!==g.nextSibling.tagName||g.nextSibling&&"BR"===g.nextSibling.tagName&&g.nextSibling.nextSibling)))return a.preventDefault(),a.stopPropagation(),a=l(E(e)),d=n(d,a),f.KEYCODE.ARROW_UP==b?x(d,e,a):f.KEYCODE.ARROW_DOWN==b&&u(d,e,a),c.selection.restore(),!1}}}}function r(){c.shared.$table_resizer||(c.shared.$table_resizer=E(document.createElement("div")).attr("class","fr-table-resizer").html("<div></div>"));F=c.shared.$table_resizer;c.events.$on(F,"mousedown",function(a){if(!c.core.sameInstance(F))return!0;
0<Y().length&&va();if(1==a.which)return c.selection.save(),ua=!0,F.addClass("fr-moving"),la(),c.edit.off(),F.find("div").css("opacity",1),!1});c.events.$on(F,"mousemove",function(a){if(!c.core.sameInstance(F))return!0;ua&&(c.opts.iframe&&(a.pageX-=c.$iframe.offset().left),xa(a))});c.events.on("shared.destroy",function(){F.html("").removeData().remove();F=null},!0);c.events.on("destroy",function(){c.$el.find(".fr-selected-cell").removeClass("fr-selected-cell");E("body").first().append(F.hide())},!0)}
function N(){F&&(F.find("div").css("opacity",0),F.css("top",0),F.css("left",0),F.css("height",0),F.find("div").css("height",0),F.hide())}function Z(){y&&y.removeClass("fr-visible").css("left","-9999px")}function ja(a,b){if(c.$box.find(".fr-line-breaker").isVisible())return!1;y||W();c.$box.append(y);y.data("instance",c);b=E(b).find("tr").first();var d=a.pageX,e=0,f=0;if(c.opts.iframe){a=c.helpers.getPX(c.$wp.find(".fr-iframe").css("padding-top"));var g=c.helpers.getPX(c.$wp.find(".fr-iframe").css("padding-left"));
e+=c.$iframe.offset().left-c.helpers.scrollLeft()+g;f+=c.$iframe.offset().top-c.helpers.scrollTop()+a}var h;b.find("th, td").each(function(){var a=E(this);if(a.offset().left<=d&&d<a.offset().left+a.outerWidth()/2)return h=parseInt(y.find("a").css("width"),10),y.css("top",f+a.offset().top-c.$box.offset().top-h-5),y.css("left",e+a.offset().left-c.$box.offset().left-h/2),y.data("selected-cell",a),y.data("position","before"),y.addClass("fr-visible"),!1;if(a.offset().left+a.outerWidth()/2<=d&&d<a.offset().left+
a.outerWidth())return h=parseInt(y.find("a").css("width"),10),y.css("top",f+a.offset().top-c.$box.offset().top-h-5),y.css("left",e+a.offset().left-c.$box.offset().left+a.outerWidth()-h/2),y.data("selected-cell",a),y.data("position","after"),y.addClass("fr-visible"),!1})}function K(a,b){if(c.$box.find(".fr-line-breaker").isVisible())return!1;y||W();c.$box.append(y);y.data("instance",c);b=E(b);var d=a.pageY,e=0,f=0;if(c.opts.iframe){a=c.helpers.getPX(c.$wp.find(".fr-iframe").css("padding-top"));var g=
c.helpers.getPX(c.$wp.find(".fr-iframe").css("padding-left"));e+=c.$iframe.offset().left-c.helpers.scrollLeft()+g;f+=c.$iframe.offset().top-c.helpers.scrollTop()+a}var h;b.find("tr").each(function(){var a=E(this);h=parseInt(y.find("a").css("width"),10);var b=e+a.offset().left-c.$box.offset().left;b=0!==c.$box.offset().left?b-h-5:b+h-5;if(a.offset().top<=d&&d<a.offset().top+a.outerHeight()/2)return y.css("top",f+a.offset().top-c.$box.offset().top-h/2),y.css("left",b),y.data("selected-cell",a.find("td").first()),
y.data("position","above"),y.addClass("fr-visible"),!1;if(a.offset().top+a.outerHeight()/2<=d&&d<a.offset().top+a.outerHeight())return y.css("top",f+a.offset().top-c.$box.offset().top+a.outerHeight()-h/2),y.css("left",b),y.data("selected-cell",a.find("td").first()),y.data("position","below"),y.addClass("fr-visible"),!1})}function ea(a,b){if(0===Y().length){if(b&&("HTML"==b.tagName||"BODY"==b.tagName||c.node.isElement(b)))for(b=1;b<=c.opts.tableInsertHelperOffset;b++){var d=c.doc.elementFromPoint(a.pageX-
c.win.pageXOffset,a.pageY-c.win.pageYOffset+b);if(E(d).hasClass("fr-tooltip"))return!0;if(d&&("TH"==d.tagName||"TD"==d.tagName||"TABLE"==d.tagName)&&(E(d).parents(".fr-wrapper").length||c.opts.iframe)&&"false"!=E(d).closest("table").attr("contenteditable"))return ja(a,E(d).closest("table")),!0;d=c.doc.elementFromPoint(a.pageX-c.win.pageXOffset+b,a.pageY-c.win.pageYOffset);if(E(d).hasClass("fr-tooltip"))return!0;if(d&&("TH"==d.tagName||"TD"==d.tagName||"TABLE"==d.tagName)&&(E(d).parents(".fr-wrapper").length||
c.opts.iframe)&&"false"!=E(d).closest("table").attr("contenteditable"))return K(a,E(d).closest("table")),!0}c.core.sameInstance(y)&&Z()}}function Q(a){ta=null;var b=c.doc.elementFromPoint(a.pageX-c.win.pageXOffset,a.pageY-c.win.pageYOffset);if(c.opts.tableResizer&&(!c.popups.areVisible()||c.popups.areVisible()&&c.popups.isVisible("table.edit"))){var d=b,e=E(d),f;e&&(f=e.closest("table"));var g=f.parent();d&&"TD"!=d.tagName&&"TH"!=d.tagName&&(0<e.closest("td").length?d=e.closest("td"):0<e.closest("th").length&&
(d=e.closest("th")));if(!d||"TD"!=d.tagName&&"TH"!=d.tagName)F&&e.get(0)!=F.get(0)&&e.parent().get(0)!=F.get(0)&&c.core.sameInstance(F)&&N();else if(e=E(d),0!==c.$el.find(e).length){var h=e.offset().left-1;e=h+e.outerWidth();if(Math.abs(a.pageX-h)<=c.opts.tableResizerOffset||Math.abs(e-a.pageX)<=c.opts.tableResizerOffset){var m=l(f),k=n(d,m),W=L(k.row,k.col,m),p=f.offset().top;d=f.outerHeight()-1;if("rtl"!=c.opts.direction)if(a.pageX-h<=c.opts.tableResizerOffset){var J=h;if(0<k.col){var q=h-I(k.col-
1,m)+c.opts.tableResizingLimit;var t=h+I(k.col,m)-c.opts.tableResizingLimit;var u=k.col-1;var v=k.col}else u=null,v=0,q=f.offset().left-1-parseInt(f.css("margin-left"),10),t=f.offset().left-1+f.width()-m[0].length*c.opts.tableResizingLimit}else e-a.pageX<=c.opts.tableResizerOffset&&(J=e,W.col<m[W.row].length&&m[W.row][W.col+1]?(q=e-I(W.col,m)+c.opts.tableResizingLimit,t=e+I(W.col+1,m)-c.opts.tableResizingLimit,u=W.col,v=W.col+1):(u=W.col,v=null,q=f.offset().left-1+m[0].length*c.opts.tableResizingLimit,
t=g.offset().left-1+g.width()+parseFloat(g.css("padding-left"))));else e-a.pageX<=c.opts.tableResizerOffset?(J=e,0<k.col?(q=e-I(k.col,m)+c.opts.tableResizingLimit,t=e+I(k.col-1,m)-c.opts.tableResizingLimit,u=k.col,v=k.col-1):(u=null,v=0,q=f.offset().left+m[0].length*c.opts.tableResizingLimit,t=g.offset().left-1+g.width()+parseFloat(g.css("padding-left")))):a.pageX-h<=c.opts.tableResizerOffset&&(J=h,W.col<m[W.row].length&&m[W.row][W.col+1]?(q=h-I(W.col+1,m)+c.opts.tableResizingLimit,t=h+I(W.col,m)-
c.opts.tableResizingLimit,u=W.col+1,v=W.col):(u=W.col,v=null,q=g.offset().left+parseFloat(g.css("padding-left")),t=f.offset().left-1+f.width()-m[0].length*c.opts.tableResizingLimit));F||r();F.data("table",f);F.data("first",u);F.data("second",v);F.data("instance",c);c.$wp.append(F);f=J-c.win.pageXOffset-c.opts.tableResizerOffset-c.$wp.offset().left;g=p-c.$wp.offset().top+c.$wp.scrollTop();c.opts.iframe&&(h=c.helpers.getPX(c.$wp.find(".fr-iframe").css("padding-top")),u=c.helpers.getPX(c.$wp.find(".fr-iframe").css("padding-left")),
f+=c.$iframe.offset().left+u,g+=c.$iframe.offset().top+h,q+=c.$iframe.offset().left,t+=c.$iframe.offset().left);F.data("max-left",q);F.data("max-right",t);F.data("origin",J-c.win.pageXOffset);F.css("top",g);F.css("left",f);F.css("height",d);F.find("div").css("height",d);F.css("padding-left",c.opts.tableResizerOffset);F.css("padding-right",c.opts.tableResizerOffset);F.show()}else c.core.sameInstance(F)&&N()}}!c.opts.tableInsertHelper||c.popups.areVisible()||c.$tb.hasClass("fr-inline")&&c.$tb.isVisible()||
ea(a,b)}function ia(){if(ua){var a=F.data("table").offset().top-c.win.pageYOffset;if(c.opts.iframe){var b=c.helpers.getPX(c.$wp.find(".fr-iframe").css("padding-top"));a+=c.$iframe.offset().top-c.helpers.scrollTop()+b}F.css("top",a)}}function I(a,b){var c,d=E(b[0][a]).outerWidth();for(c=1;c<b.length;c++)d=Math.min(d,E(b[c][a]).outerWidth());return d}function Ba(a,b,c){for(var d=0;a<=b;a++)d+=I(a,c);return d}function xa(a){1<Y().length&&fa&&la();if(!1===fa&&!1===aa&&!1===ua){if(ta&&clearTimeout(ta),
!c.edit.isDisabled()||c.popups.isVisible("table.edit"))ta=setTimeout(Q,30,a)}else if(ua){a=a.pageX-c.win.pageXOffset;c.opts.iframe&&(a+=c.$iframe.offset().left);var b=F.data("max-left"),d=F.data("max-right");a>=b&&a<=d?F.css("left",a-c.opts.tableResizerOffset-c.$wp.offset().left):a<b&&parseFloat(F.css("left"),10)>b-c.opts.tableResizerOffset?F.css("left",b-c.opts.tableResizerOffset-c.$wp.offset().left):a>d&&parseFloat(F.css("left"),10)<d-c.opts.tableResizerOffset&&F.css("left",d-c.opts.tableResizerOffset-
c.$wp.offset().left)}else fa&&Z()}function na(a){c.node.isEmpty(a.get(0))?c.opts.keepTextFormatOnTable&&c.browser.mozilla?a.append(f.MARKERS):a.prepend(f.MARKERS):a.prepend(f.START_MARKER).append(f.END_MARKER)}function W(){c.shared.$ti_helper||(c.shared.$ti_helper=E(document.createElement("div")).attr("class","fr-insert-helper").html('<a class="fr-floating-btn" role="button" tabIndex="-1" title="'.concat(c.language.translate("Insert"),'"><svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><path d="M22,16.75 L16.75,16.75 L16.75,22 L15.25,22.000 L15.25,16.75 L10,16.75 L10,15.25 L15.25,15.25 L15.25,10 L16.75,10 L16.75,15.25 L22,15.25 L22,16.75 Z"/></svg></a>')),
c.events.bindClick(c.shared.$ti_helper,"a",function(){var a=y.data("selected-cell"),b=y.data("position"),d=y.data("instance")||c;"before"==b?(c.undo.saveStep(),a.addClass("fr-selected-cell"),d.table.insertColumn(b),a.removeClass("fr-selected-cell"),c.undo.saveStep()):"after"==b?(c.undo.saveStep(),a.addClass("fr-selected-cell"),d.table.insertColumn(b),a.removeClass("fr-selected-cell"),c.undo.saveStep()):"above"==b?(c.undo.saveStep(),a.addClass("fr-selected-cell"),d.table.insertRow(b),a.removeClass("fr-selected-cell"),
c.undo.saveStep()):"below"==b&&(c.undo.saveStep(),a.addClass("fr-selected-cell"),d.table.insertRow(b),a.removeClass("fr-selected-cell"),c.undo.saveStep());Z()}),c.events.on("shared.destroy",function(){c.shared.$ti_helper.html("").removeData().remove();c.shared.$ti_helper=null},!0),c.events.$on(c.shared.$ti_helper,"mousemove",function(a){a.stopPropagation()},!0),c.events.$on(E(c.o_win),"scroll",function(){Z()},!0),c.events.$on(c.$wp,"scroll",function(){Z()},!0));y=c.shared.$ti_helper;c.events.on("destroy",
function(){y=null});c.tooltip.bind(c.$box,".fr-insert-helper > a.fr-floating-btn")}function ya(){pa=null;clearTimeout(ta)}function Y(){return c.el.querySelectorAll(".fr-selected-cell")}function oa(){var a=Y();if(a.length){for(a=a[0];a&&"TABLE"!=a.tagName&&a.parentNode!=c.el;)a=a.parentNode;if(a&&"TABLE"==a.tagName)return E(a)}return E([])}function ra(a){var b=Y();if(null!=b&&0<b.length){var d=l();a=a.which;if(1==b.length)var e=b=b[0];else b=c.el.querySelector(".fr-cell-fixed"),e=c.el.querySelector(".fr-cell-handler");
e=n(e,d);if(f.KEYCODE.ARROW_RIGHT==a){if(e.col<d[0].length-1)return ca(b,d[e.row][e.col+1]),!1}else if(f.KEYCODE.ARROW_DOWN==a){if(e.row<d.length-1)return ca(b,d[e.row+1][e.col]),!1}else if(f.KEYCODE.ARROW_LEFT==a){if(0<e.col)return ca(b,d[e.row][e.col-1]),!1}else if(f.KEYCODE.ARROW_UP==a&&0<e.row)return ca(b,d[e.row-1][e.col]),!1}}function ka(){aa=!1}var E=c.$,F,y,aa,fa,pa,ta,ua;return{_init:function(){if(!c.$wp)return!1;c.helpers.isMobile()&&(c.events.$on(c.$el,"mousedown",q),c.events.$on(c.$win,
"mouseup",ha));if(!c.helpers.isMobile()){ua=aa=fa=!1;c.events.$on(c.$el,"mousedown",q);c.popups.onShow("image.edit",function(){A();aa=fa=!1});c.popups.onShow("link.edit",function(){A();aa=fa=!1});c.events.on("commands.mousedown",function(a){0<a.parents(".fr-toolbar").length&&A()});c.events.$on(c.$el,"mouseover","th, td",V);c.events.$on(c.$win,"mouseup",ha);c.opts.iframe&&c.events.$on(E(c.o_win),"mouseup",ha);c.events.$on(c.$win,"mousemove",xa);c.events.$on(E(c.o_win),"scroll",ia);c.events.on("contentChanged",
function(){0<Y().length&&(d(),c.$el.find("img").on("load.selected-cells",function(){E(this).off("load.selected-cells");0<Y().length&&d()}))});c.events.$on(E(c.o_win),"resize",function(){A()});c.events.on("toolbar.esc",function(){if(0<Y().length)return c.events.disableBlur(),c.events.focus(),!1},!0);c.events.$on(E(c.o_win),"keydown",function(){fa&&aa&&(aa=fa=!1,c.$el.removeClass("fr-no-selection"),c.edit.on(),c.selection.setAtEnd(c.$el.find(".fr-selected-cell").last().get(0)),c.selection.restore(),
A())});c.events.$on(c.$el,"keydown",function(a){a.shiftKey?!1===ra(a)&&setTimeout(function(){d()},0):h(a)});c.events.on("keydown",function(a){a:{if(a.which==f.KEYCODE.TAB){if(0<Y().length)var b=c.$el.find(".fr-selected-cell").last();else{var e=c.selection.element();"TD"==e.tagName||"TH"==e.tagName?b=E(e):e!=c.el&&(0<E(e).parentsUntil(c.$el,"td").length?b=E(e).parents("td").first():0<E(e).parentsUntil(c.$el,"th").length&&(b=E(e).parents("th").first()))}if(b){a.preventDefault();if(0===c.selection.get().focusOffset&&
0<E(c.selection.element()).parentsUntil(c.$el,"ol, ul").length&&(0<E(c.selection.element()).closest("li").prev().length||E(c.selection.element()).is("li")&&0<E(c.selection.element()).prev().length)){b=!0;break a}va();a.shiftKey?0<b.prev().length?na(b.prev()):0<b.closest("tr").length&&0<b.closest("tr").prev().length?na(b.closest("tr").prev().find("td").last()):0<b.closest("tbody").length&&0<b.closest("table").find("thead tr").length&&na(b.closest("table").find("thead tr th").last()):0<b.next().length?
na(b.next()):0<b.closest("tr").length&&0<b.closest("tr").next().length?na(b.closest("tr").next().find("td").first()):0<b.closest("thead").length&&0<b.closest("table").find("tbody tr").length?na(b.closest("table").find("tbody tr td").first()):(b.addClass("fr-selected-cell"),qa("below"),A(),na(b.closest("tr").next().find("td").first()));c.selection.restore();b=!1;break a}}b=void 0}if(!1===b)return!1;b=Y();if(0<b.length){if(0<b.length&&c.keys.ctrlKey(a)&&a.which==f.KEYCODE.A)return A(),c.popups.isVisible("table.edit")&&
c.popups.hide("table.edit"),!0;if(a.which==f.KEYCODE.ESC&&c.popups.isVisible("table.edit"))return A(),c.popups.hide("table.edit"),a.preventDefault(),a.stopPropagation(),a.stopImmediatePropagation(),!1;if(1<b.length&&(a.which==f.KEYCODE.BACKSPACE||a.which==f.KEYCODE.DELETE)){c.undo.saveStep();for(a=0;a<b.length;a++)E(b[a]).html("<br>"),a==b.length-1&&E(b[a]).prepend(f.MARKERS);c.selection.restore();c.undo.saveStep();return!1}if(1<b.length&&a.which!=f.KEYCODE.F10&&!c.keys.isBrowserAction(a))return a.preventDefault(),
!1}else{a:{if(a.altKey&&a.which==f.KEYCODE.SPACE){var g;b=c.selection.element();"TD"==b.tagName||"TH"==b.tagName?g=b:0<E(b).closest("td").length?g=E(b).closest("td").get(0):0<E(b).closest("th").length&&(g=E(b).closest("th").get(0));if(g){a.preventDefault();ca(g,g);d();a=!1;break a}}a=void 0}if(!1===a)return!1}},!0);var a=[];c.events.on("html.beforeGet",function(){a=Y();for(var b=0;b<a.length;b++)a[b].className=(a[b].className||"").replace(/fr-selected-cell/g,"")});c.events.on("html.afterGet",function(){for(var b=
0;b<a.length;b++)a[b].className=(a[b].className?a[b].className.trim()+" ":"")+"fr-selected-cell";a=[]});z(!0);U(!0)}c.events.on("destroy",ya)},insert:function(a,b){var d={startTag:"",closeTag:""};if(c.opts.keepTextFormatOnTable){var e=E(c.selection.element().firstChild).parentsUntil(c.$el);d=C(e)}e=d.startTag;var g=d.closeTag;d="<table "+(c.opts.tableDefaultWidth?'style="width: '+c.opts.tableDefaultWidth+';" ':"")+'class="fr-inserted-table"><tbody>';var h=100/b,m,l;for(m=0;m<a;m++){d+="<tr>";for(l=
0;l<b;l++)d+="<td"+(c.opts.tableDefaultWidth?' style="width: '+h.toFixed(4)+'%;"':"")+">"+e,0===m&&0===l&&(d+=f.MARKERS),d+="<br>"+g+"</td>";d+="</tr>"}d+="</tbody></table>";c.opts.trackChangesEnabled?(c.edit.on(),c.events.focus(!0),c.selection.restore(),c.undo.saveStep(),c.markers.insert(),c.html.wrap(),a=c.$el.find(".fr-marker"),c.node.isLastSibling(a)&&a.parent().hasClass("fr-deletable")&&a.insertAfter(a.parent()),a.replaceWith(d),c.selection.clear()):c.html.insert(d);c.selection.restore();a=c.$el.find(".fr-inserted-table");
a.removeClass("fr-inserted-table");c.events.trigger("table.inserted",[a.get(0)])},remove:da,insertRow:qa,deleteRow:function(){var b=oa();if(0<b.length){var d,e,f=l(),g=R(f);if(null!=g)if(0===g.min_i&&g.max_i==f.length-1)da();else{for(d=g.max_i;d>=g.min_i;d--){var h=E(b.find("tr").not(b.find("> table tr")).get(d));for(e=0;e<f[d].length;e++)if(0===e||f[d][e]!=f[d][e-1]){var m=E(f[d][e]);if(1<parseInt(m.attr("rowspan"),10)){var k=parseInt(m.attr("rowspan"),10)-1;1==k?m.removeAttr("rowspan"):m.attr("rowspan",
k)}if(d<f.length-1&&f[d][e]==f[d+1][e]&&(0===d||f[d][e]!=f[d-1][e])){m=f[d][e];for(k=e;0<k&&f[d][k]==f[d][k-1];)k--;0===k?E(b.find("tr").not(b.find("> table tr")).get(d+1)).prepend(m):E(f[d+1][k-1])[0].parentNode&&E(f[d+1][k-1])[0].insertAdjacentElement("afterend",m)}}e=h.parent();h.remove();0===e.find("tr").length&&e.remove();f=l(b)}a(0,f.length-1,0,f[0].length-1,b);0<g.min_i?c.selection.setAtEnd(f[g.min_i-1][0]):c.selection.setAtEnd(f[0][0]);c.selection.restore();c.popups.hide("table.edit")}}},
insertColumn:function(a){var b=oa();if(0<b.length){var e=l(),f=R(e);var g="before"==a?f.min_j:f.max_j;var h=100/e[0].length,m=100/(e[0].length+1),k;b.find("th, td").each(function(){k=E(this);k.data("old-width",k.outerWidth()/b.outerWidth()*100)});b.find("tr").not(b.find("> table tr")).each(function(b){for(var c=E(this),d=0,f=0,k;d-1<g;){k=c.find("> th, > td").get(f);if(!k){k=null;break}k==e[b][d]?(d+=parseInt(E(k).attr("colspan"),10)||1,f++):(d+=parseInt(E(e[b][d]).attr("colspan"),10)||1,"after"==
a&&(k=0===f?-1:c.find("> th, > td").get(f-1)))}f=E(k);if("after"==a&&d-1>g||"before"==a&&0<g&&e[b][g]==e[b][g-1]){if(0===b||0<b&&e[b][g]!=e[b-1][g])c=parseInt(f.attr("colspan"),10)+1,f.attr("colspan",c),f.css("width",(f.data("old-width")*m/h+m).toFixed(4)+"%"),f.removeData("old-width")}else d=(f.get(0)||"").tagName,0<c.find("th").length&&"TH"===d?b='<th style="width: '.concat(m.toFixed(4),'%;"><br></th>'):(b=D(e[b][g]),b='<td style="'.concat(f.attr("style"),"; width: ").concat(m.toFixed(4),'%;">')+
b.startTag+"<br>"+b.closeTag+"</td>"),E(b).append("<br>"),E(b).css("width","".concat(m.toFixed(4),"%")),-1==k?c.prepend(b):null==k?c.append(b):"before"==a?f.before(b):"after"==a&&f.after(b)});b.find("th, td").each(function(){k=E(this);k.data("old-width")&&(k.css("width",(k.data("old-width")*m/h).toFixed(4)+"%"),k.removeData("old-width"))});c.popups.isVisible("table.edit")&&d()}},deleteColumn:function(){var b=oa();if(0<b.length){var d,e,f=l(),g=R(f);if(null!=g)if(0===g.min_j&&g.max_j==f[0].length-
1)da();else{var h=0;for(d=0;d<f.length;d++)for(e=0;e<f[0].length;e++){var m=E(f[d][e]);!m.hasClass("fr-selected-cell")&&(m.data("old-width",m.outerWidth()/b.outerWidth()*100),e<g.min_j||e>g.max_j)&&(h+=m.outerWidth()/b.outerWidth()*100)}h/=f.length;for(e=g.max_j;e>=g.min_j;e--)for(d=0;d<f.length;d++)if(0===d||f[d][e]!=f[d-1][e])if(m=E(f[d][e]),1<(parseInt(m.attr("colspan"),10)||1)){var k=parseInt(m.attr("colspan"),10)-1;1==k?m.removeAttr("colspan"):m.attr("colspan",k);m.css("width",(100*(m.data("old-width")-
I(e,f))/h).toFixed(4)+"%");m.removeData("old-width")}else k=E(m.parent().get(0)),m.remove(),0===k.find("> th, > td").length&&(0===k.prev().length||0===k.next().length||k.prev().find("> th[rowspan], > td[rowspan]").length<k.prev().find("> th, > td").length)&&k.remove();a(0,f.length-1,0,f[0].length-1,b);0<g.min_j?c.selection.setAtEnd(f[g.min_i][g.min_j-1]):c.selection.setAtEnd(f[g.min_i][0]);c.selection.restore();c.popups.hide("table.edit");b.find("th, td").each(function(){m=E(this);m.data("old-width")&&
(m.css("width",(100*m.data("old-width")/h).toFixed(4)+"%"),m.removeData("old-width"))})}}},mergeCells:function(){if(1<Y().length&&(0===c.$el.find("th.fr-selected-cell").length||0===c.$el.find("td.fr-selected-cell").length)){S();var a=l();a=R(a);if(null!=a){var b,e=c.$el.find(".fr-selected-cell"),f=E(e[0]);var g=f.parent().find(".fr-selected-cell");var h=f.closest("table"),m=f.html(),k=0;for(b=0;b<g.length;b++)k+=E(g[b]).outerWidth();f.css("width",Math.min(100,k/h.outerWidth()*100).toFixed(4)+"%");
a.min_j<a.max_j&&f.attr("colspan",a.max_j-a.min_j+1);a.min_i<a.max_i&&f.attr("rowspan",a.max_i-a.min_i+1);for(b=1;b<e.length;b++)g=E(e[b]),"<br>"!=g.html()&&""!==g.html()&&(m+="<br>".concat(g.html())),g.remove();f.html(m);c.selection.setAtEnd(f.get(0));c.selection.restore();c.toolbar.enable();ba(a.min_i,a.max_i,h);e=h.find("tr:empty");for(b=e.length-1;0<=b;b--)E(e[b]).remove();P(a.min_j,a.max_j,h);d()}}},splitCellVertically:function(){if(1==Y().length){var a=c.$el.find(".fr-selected-cell"),b=parseInt(a.attr("colspan"),
10)||1,d=a.parent().outerWidth(),e=a.outerWidth(),f=a.clone().html("<br>"),g=l(),h=n(a.get(0),g);if(1<b){var m=Math.ceil(b/2);e=Ba(h.col,h.col+m-1,g)/d*100;d=Ba(h.col+m,h.col+b-1,g)/d*100;1<m?a.attr("colspan",m):a.removeAttr("colspan");1<b-m?f.attr("colspan",b-m):f.removeAttr("colspan");a.css("width",e.toFixed(4)+"%");f.css("width",d.toFixed(4)+"%")}else{for(b=0;b<g.length;b++)if(0===b||g[b][h.col]!=g[b-1][h.col])if(m=E(g[b][h.col]),!m.is(a)){var k=(parseInt(m.attr("colspan"),10)||1)+1;m.attr("colspan",
k)}e=e/d*100/2;a.css("width","".concat(e.toFixed(4),"%"));f.css("width","".concat(e.toFixed(4),"%"))}a[0].parentNode&&a[0].insertAdjacentElement("afterend",f[0]);A();c.popups.hide("table.edit")}},splitCellHorizontally:function(){if(1==Y().length){var a=c.$el.find(".fr-selected-cell"),b=a.parent(),d=a.closest("table"),e=parseInt(a.attr("rowspan"),10),f=l(),g=n(a.get(0),f),h=a.clone().html("<br>");if(1<e){b=Math.ceil(e/2);1<b?a.attr("rowspan",b):a.removeAttr("rowspan");1<e-b?h.attr("rowspan",e-b):h.removeAttr("rowspan");
a=g.row+b;for(g=0===g.col?g.col:g.col-1;0<=g&&(f[a][g]==f[a][g-1]||0<a&&f[a][g]==f[a-1][g]);)g--; -1==g?E(d.find("tr").not(d.find("> table tr")).get(a)).prepend(h):E(f[a][g])[0].parentNode&&E(f[a][g])[0].insertAdjacentElement("afterend",h[0])}else{d=E(document.createElement("tr")).append(h);for(h=0;h<f[0].length;h++)if(0===h||f[g.row][h]!=f[g.row][h-1])e=E(f[g.row][h]),e.is(a)||e.attr("rowspan",(parseInt(e.attr("rowspan"),10)||1)+1);b[0].parentNode&&b[0].insertAdjacentElement("afterend",d[0])}A();
c.popups.hide("table.edit")}},addHeader:function(){var a=oa();if(0<a.length&&0===a.find("> th").length){var b="<thead><tr>",c,e=0;e=a.find("tr").first().find("> th").length;a.find("tr").first().find("> td").each(function(){var a=E(this);e+=parseInt(a.attr("colspan"),10)||1});for(c=0;c<e;c++)b+="<th><br></th>";a.prepend(b+"</tr></thead>");d()}},addFooter:function(){var a=oa();if(0<a.length&&0===a.find("tfoot").length){var b="<tfoot><tr>",c=0;var e="> td";0<a.find("thead").length&&(e="> th");a.find("tr").first().find(e).each(function(){var a=
E(this);c+=parseInt(a.attr("colspan"),10)||1});for(e=0;e<c;e++)b+="<td><br></td>";a.append(b+"</tr></tfoot>");d()}},removeHeader:function(){var a=oa(),b=a.find("> thead");b=E(b);if(0<b.length)if(0===a.find("tbody tr").length)da();else if(b.remove(),0<Y().length)d();else if(c.popups.hide("table.edit"),a=a.find("tbody tr").first().find("td").first().get(0))c.selection.setAtEnd(a),c.selection.restore()},removeFooter:function(){var a=oa(),b=a.find("tfoot");if(0<b.length)if(0===a.find("tbody tr").length)da();
else if(b.remove(),0<Y().length)d();else if(c.popups.hide("table.edit"),a=a.find("tbody tr").first().find("td").first().get(0))c.selection.setAtEnd(a),c.selection.restore()},setBackground:e,showInsertPopup:function(){var a=c.$tb.find('.fr-command[data-cmd="insertTable"]'),b=c.popups.get("table.insert");b||(b=z());b.hasClass("fr-active")||(c.popups.refresh("table.insert"),c.popups.setContainer("table.insert",c.$tb),b=c.button.getPosition(a),c.popups.show("table.insert",b.left,b.top,a.outerHeight()))},
showEditPopup:d,showColorsPopup:M,back:function(){0<Y().length?d():(c.popups.hide("table.insert"),c.toolbar.showInline())},verticalAlign:function(a){c.$el.find(".fr-selected-cell").css("vertical-align",a)},horizontalAlign:function(a){c.$el.find(".fr-selected-cell").css("text-align",a)},applyStyle:function(a,b,d,e){0<b.length&&(c.opts.useClasses||("TABLE"===b.get(0).tagName?B(b.get(0),a):g(b.get(0))),d||(d=Object.keys(e),d.splice(d.indexOf(a),1),b.removeClass(d.join(" "))),b.toggleClass(a))},selectedTable:oa,
selectedCells:Y,customColor:function(){var a=c.popups.get("table.colors").find(".fr-table-colors-hex-layer input");a.length&&e(a.val())},selectCells:ca}};f.DefineIcon("insertTable",{NAME:"table",SVG_KEY:"insertTable"});f.RegisterCommand("insertTable",{title:"Insert Table",undo:!1,focus:!0,refreshOnCallback:!1,popup:!0,callback:function(){this.popups.isVisible("table.insert")?(this.$el.find(".fr-marker").length&&(this.events.disableBlur(),this.selection.restore()),this.popups.hide("table.insert")):
this.table.showInsertPopup()},plugin:"table"});f.RegisterCommand("tableInsert",{callback:function(b,d,f){this.table.insert(d,f);this.popups.hide("table.insert")}});f.DefineIcon("tableHeader",{NAME:"header",FA5NAME:"heading",SVG_KEY:"tableHeader"});f.RegisterCommand("tableHeader",{title:"Table Header",focus:!1,toggle:!0,callback:function(){this.popups.get("table.edit").find('.fr-command[data-cmd="tableHeader"]').hasClass("fr-active")?this.table.removeHeader():this.table.addHeader()},refresh:function(b){var c=
this.table.selectedTable();0<c.length&&(0===c.find("> thead").length?b.removeClass("fr-active").attr("aria-pressed",!1):b.addClass("fr-active").attr("aria-pressed",!0))}});f.DefineIcon("tableFooter",{NAME:"table",FA5NAME:"table",SVG_KEY:"tableFooter"});f.RegisterCommand("tableFooter",{title:"Table Footer",focus:!1,toggle:!0,callback:function(){this.popups.get("table.edit").find('.fr-command[data-cmd="tableFooter"]').hasClass("fr-active")?this.table.removeFooter():this.table.addFooter()},refresh:function(b){var c=
this.table.selectedTable();0<c.length&&(0===c.find("tfoot").length?b.removeClass("fr-active").attr("aria-pressed",!1):b.addClass("fr-active").attr("aria-pressed",!0))}});f.DefineIcon("tableRows",{NAME:"bars",SVG_KEY:"row"});f.RegisterCommand("tableRows",{type:"dropdown",focus:!1,title:"Row",options:{above:"Insert row above",below:"Insert row below","delete":"Delete row"},html:function(){var b='<ul class="fr-dropdown-list" role="presentation">',d=f.COMMANDS.tableRows.options,M;for(M in d)d.hasOwnProperty(M)&&
(b+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="tableRows" data-param1="'+M+'" title="'+this.language.translate(d[M])+'">'+this.language.translate(d[M])+"</a></li>");return b+"</ul>"},callback:function(b,d){"above"==d||"below"==d?this.table.insertRow(d):this.table.deleteRow()}});f.DefineIcon("tableColumns",{NAME:"bars fa-rotate-90",SVG_KEY:"columns"});f.RegisterCommand("tableColumns",{type:"dropdown",focus:!1,title:"Column",options:{before:"Insert column before",
after:"Insert column after","delete":"Delete column"},html:function(){var b='<ul class="fr-dropdown-list" role="presentation">',d=f.COMMANDS.tableColumns.options,M;for(M in d)d.hasOwnProperty(M)&&(b+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="tableColumns" data-param1="'.concat(M,'" title="').concat(this.language.translate(d[M]),'">').concat(this.language.translate(d[M]),"</a></li>"));return b+"</ul>"},callback:function(b,d){"before"==d||"after"==d?this.table.insertColumn(d):
this.table.deleteColumn()}});f.DefineIcon("tableCells",{NAME:"square-o",FA5NAME:"square",SVG_KEY:"cellOptions"});f.RegisterCommand("tableCells",{type:"dropdown",focus:!1,title:"Cell",options:{merge:"Merge cells","vertical-split":"Vertical split","horizontal-split":"Horizontal split"},html:function(){var b='<ul class="fr-dropdown-list" role="presentation">',d=f.COMMANDS.tableCells.options,M;for(M in d)d.hasOwnProperty(M)&&(b+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="tableCells" data-param1="'.concat(M,
'" title="').concat(this.language.translate(d[M]),'">').concat(this.language.translate(d[M]),"</a></li>"));return b+"</ul>"},callback:function(b,d){"merge"==d?this.table.mergeCells():"vertical-split"==d?this.table.splitCellVertically():this.table.splitCellHorizontally()},refreshOnShow:function(b,d){1<this.$el.find(".fr-selected-cell").length?(d.find('a[data-param1="vertical-split"]').addClass("fr-disabled").attr("aria-disabled",!0),d.find('a[data-param1="horizontal-split"]').addClass("fr-disabled").attr("aria-disabled",
!0),d.find('a[data-param1="merge"]').removeClass("fr-disabled").attr("aria-disabled",!1)):(d.find('a[data-param1="merge"]').addClass("fr-disabled").attr("aria-disabled",!0),d.find('a[data-param1="vertical-split"]').removeClass("fr-disabled").attr("aria-disabled",!1),d.find('a[data-param1="horizontal-split"]').removeClass("fr-disabled").attr("aria-disabled",!1))}});f.DefineIcon("tableRemove",{NAME:"trash",SVG_KEY:"removeTable"});f.RegisterCommand("tableRemove",{title:"Remove Table",focus:!1,callback:function(){this.table.remove()}});
f.DefineIcon("tableStyle",{NAME:"paint-brush",SVG_KEY:"tableStyle"});f.RegisterCommand("tableStyle",{title:"Table Style",type:"dropdown",focus:!1,html:function(){var b='<ul class="fr-dropdown-list" role="presentation">',d=this.opts.tableStyles,f;for(f in d)d.hasOwnProperty(f)&&(b+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="tableStyle" data-param1="'.concat(f,'" title="').concat(this.language.translate(d[f]),'">').concat(this.language.translate(d[f]),"</a></li>"));
return b+"</ul>"},callback:function(b,d){this.table.applyStyle(d,this.$el.find(".fr-selected-cell").closest("table"),this.opts.tableMultipleStyles,this.opts.tableStyles)},refreshOnShow:function(b,d){var c=this.$,f=this.$el.find(".fr-selected-cell").closest("table");f&&d.find(".fr-command").each(function(){var b=c(this).data("param1");b=f.hasClass(b);c(this).toggleClass("fr-active",b).attr("aria-selected",b)})}});f.DefineIcon("tableCellBackground",{NAME:"tint",SVG_KEY:"cellBackground"});f.RegisterCommand("tableCellBackground",
{title:"Cell Background",focus:!1,popup:!0,callback:function(){this.table.showColorsPopup()}});f.RegisterCommand("tableCellBackgroundColor",{undo:!0,focus:!1,callback:function(b,d){this.table.setBackground(d)}});f.DefineIcon("tableBack",{NAME:"arrow-left",SVG_KEY:"back"});f.RegisterCommand("tableBack",{title:"Back",undo:!1,focus:!1,back:!0,callback:function(){this.table.back()},refresh:function(b){0!==this.table.selectedCells().length||this.opts.toolbarInline?(b.removeClass("fr-hidden"),b.next(".fr-separator").removeClass("fr-hidden")):
(b.addClass("fr-hidden"),b.next(".fr-separator").addClass("fr-hidden"))}});f.DefineIcon("tableCellVerticalAlign",{NAME:"arrows-v",FA5NAME:"arrows-alt-v",SVG_KEY:"verticalAlignMiddle"});f.RegisterCommand("tableCellVerticalAlign",{type:"dropdown",focus:!1,title:"Vertical Align",options:{Top:"Align Top",Middle:"Align Middle",Bottom:"Align Bottom"},html:function(){var b='<ul class="fr-dropdown-list" role="presentation">',d=f.COMMANDS.tableCellVerticalAlign.options,M;for(M in d)d.hasOwnProperty(M)&&(b+=
'<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="tableCellVerticalAlign" data-param1="'.concat(M.toLowerCase(),'" title="').concat(this.language.translate(d[M]),'">').concat(this.language.translate(M),"</a></li>"));return b+"</ul>"},callback:function(b,d){this.table.verticalAlign(d)},refreshOnShow:function(b,d){d.find('.fr-command[data-param1="'+this.$el.find(".fr-selected-cell").css("vertical-align")+'"]').addClass("fr-active").attr("aria-selected",!0)}});f.DefineIcon("tableCellHorizontalAlign",
{NAME:"align-left",SVG_KEY:"alignLeft"});f.DefineIcon("align-left",{NAME:"align-left",SVG_KEY:"alignLeft"});f.DefineIcon("align-right",{NAME:"align-right",SVG_KEY:"alignRight"});f.DefineIcon("align-center",{NAME:"align-center",SVG_KEY:"alignCenter"});f.DefineIcon("align-justify",{NAME:"align-justify",SVG_KEY:"alignJustify"});f.RegisterCommand("tableCellHorizontalAlign",{type:"dropdown",focus:!1,title:"Horizontal Align",options:{left:"Align Left",center:"Align Center",right:"Align Right",justify:"Align Justify"},
html:function(){var b='<ul class="fr-dropdown-list" role="presentation">',d=f.COMMANDS.tableCellHorizontalAlign.options,M;for(M in d)d.hasOwnProperty(M)&&(b+='<li role="presentation"><a class="fr-command fr-title" tabIndex="-1" role="option" data-cmd="tableCellHorizontalAlign" data-param1="'.concat(M,'" title="').concat(this.language.translate(d[M]),'">').concat(this.icon.create("align-".concat(M)),'<span class="fr-sr-only">').concat(this.language.translate(d[M]),"</span></a></li>"));return b+"</ul>"},
callback:function(b,d){this.table.horizontalAlign(d)},refresh:function(b){var c=this.table.selectedCells(),d=this.$;c.length&&b.find("> *").first().replaceWith(this.icon.create("align-".concat(this.helpers.getAlignment(d(c[0])))))},refreshOnShow:function(b,d){d.find('.fr-command[data-param1="'+this.helpers.getAlignment(this.$el.find(".fr-selected-cell").first())+'"]').addClass("fr-active").attr("aria-selected",!0)}});f.DefineIcon("tableCellStyle",{NAME:"magic",SVG_KEY:"cellStyle"});f.RegisterCommand("tableCellStyle",
{title:"Cell Style",type:"dropdown",focus:!1,html:function(){var b='<ul class="fr-dropdown-list" role="presentation">',d=this.opts.tableCellStyles,f;for(f in d)d.hasOwnProperty(f)&&(b+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="tableCellStyle" data-param1="'.concat(f,'" title="').concat(this.language.translate(d[f]),'">').concat(this.language.translate(d[f]),"</a></li>"));return b+"</ul>"},callback:function(b,d){this.table.applyStyle(d,this.$el.find(".fr-selected-cell"),
this.opts.tableCellMultipleStyles,this.opts.tableCellStyles)},refreshOnShow:function(b,d){var c=this.$,f=this.$el.find(".fr-selected-cell").first();f&&d.find(".fr-command").each(function(){var b=c(this).data("param1");b=f.hasClass(b);c(this).toggleClass("fr-active",b).attr("aria-selected",b)})}});f.RegisterCommand("tableCellBackgroundCustomColor",{title:"OK",undo:!0,callback:function(){this.table.customColor()}});f.DefineIcon("tableColorRemove",{NAME:"eraser",SVG_KEY:"remove"})});
(function(f,b){"object"===typeof exports&&"undefined"!==typeof module?b(require("froala-editor")):"function"===typeof define&&define.amd?define(["froala-editor"],b):b(f.FroalaEditor)})(this,function(f){f=f&&f.hasOwnProperty("default")?f["default"]:f;Object.assign(f.POPUP_TEMPLATES,{"video.insert":"[_BUTTONS_][_BY_URL_LAYER_][_EMBED_LAYER_][_UPLOAD_LAYER_][_PROGRESS_BAR_]","video.edit":"[_BUTTONS_]","video.size":"[_BUTTONS_][_SIZE_LAYER_]"});Object.assign(f.DEFAULTS,{videoAllowedTypes:"mp4 webm ogg mp3 mpeg url".split(" "),
videoAllowedProviders:[".*"],videoDefaultAlign:"center",videoDefaultDisplay:"block",videoDefaultWidth:600,videoEditButtons:"videoReplace videoRemove videoDisplay videoAlign videoSize autoplay".split(" "),videoInsertButtons:["videoBack","|","videoByURL","videoEmbed","videoUpload"],videoMaxSize:52428800,videoMove:!0,videoResize:!0,videoResponsive:!1,videoSizeButtons:["videoBack","|"],videoSplitHTML:!1,videoTextNear:!0,videoUpload:!0,videoUploadMethod:"POST",videoUploadParam:"file",videoUploadParams:{},
videoUploadToS3:!1,videoUploadToAzure:!1,videoUploadURL:null});f.VIDEO_PROVIDERS=[{test_regex:/^.*((youtu.be)|(youtube.com))\/((v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))?\??v?=?([^#&\?]*).*/,url_regex:/(?:https?:\/\/)?(?:www\.)?(?:m\.)?(?:youtube\.com|youtu\.be)\/(?:watch\?v=|embed\/)?([0-9a-zA-Z_\-]+)(.+)?/g,url_text:"https://www.youtube.com/embed/$1?$2",html:'<iframe width="640" height="360" src="{url}&wmode=opaque&rel=0" frameborder="0" allowfullscreen></iframe>',provider:"youtube"},{test_regex:/^.*(?:vimeo.com)\/(?:channels(\/\w+\/)?|groups\/*\/videos\/\u200b\d+\/|video\/|)(\d+)(?:$|\/|\?)/,
url_regex:/(?:https?:\/\/)?(?:www\.|player\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/(?:[^\/]*)\/videos\/|album\/(?:\d+)\/video\/|video\/|)(\d+)(?:[a-zA-Z0-9_\-]+)?(\/[a-zA-Z0-9_\-]+)?/i,url_text:"https://player.vimeo.com/video/$1",html:'<iframe width="640" height="360" src="{url}" frameborder="0" allowfullscreen></iframe>',provider:"vimeo"},{test_regex:/^.+(dailymotion.com|dai.ly)\/(video|hub)?\/?([^_]+)[^#]*(#video=([^_&]+))?/,url_regex:/(?:https?:\/\/)?(?:www\.)?(?:dailymotion\.com|dai\.ly)\/(?:video|hub)?\/?(.+)/g,
url_text:"https://www.dailymotion.com/embed/video/$1",html:'<iframe width="640" height="360" src="{url}" frameborder="0" allowfullscreen></iframe>',provider:"dailymotion"},{test_regex:/^.+(screen.yahoo.com)\/[^_&]+/,url_regex:"",url_text:"",html:'<iframe width="640" height="360" src="{url}?format=embed" frameborder="0" allowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true" allowtransparency="true"></iframe>',provider:"yahoo"},{test_regex:/^.+(rutube.ru)\/[^_&]+/,url_regex:/(?:https?:\/\/)?(?:www\.)?(?:rutube\.ru)\/(?:video)?\/?(.+)/g,
url_text:"https://rutube.ru/play/embed/$1",html:'<iframe width="640" height="360" src="{url}" frameborder="0" allowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true" allowtransparency="true"></iframe>',provider:"rutube"},{test_regex:/^(?:.+)vidyard.com\/(?:watch)?\/?([^.&/]+)\/?(?:[^_.&]+)?/,url_regex:/^(?:.+)vidyard.com\/(?:watch)?\/?([^.&/]+)\/?(?:[^_.&]+)?/g,url_text:"https://play.vidyard.com/$1",html:'<iframe width="640" height="360" src="{url}" frameborder="0" allowfullscreen></iframe>',
provider:"vidyard"}];f.VIDEO_EMBED_REGEX=/^\W*((<iframe(.|\n)*>(\s|\n)*<\/iframe>)|(<embed(.|\n)*>))\W*$/i;f.PLUGINS.video=function(b){function d(){var a=b.popups.get("video.insert");a.find(".fr-video-by-url-layer input").val("").trigger("change");var c=a.find(".fr-video-embed-layer textarea");c.val("").trigger("change");c=a.find(".fr-video-upload-layer input");c.val("").trigger("change")}function c(){var a=b.popups.get("video.edit");a||(a=za());if(a){b.popups.setContainer("video.edit",b.$sc);b.popups.refresh("video.edit");
a=I.find("iframe, embed, ".concat(I.find("iframe, embed, audio").get(0)?"audio":"video"));var c=a.offset().left+a.outerWidth()/2,d=a.offset().top+a.outerHeight(),e=a.get(0).src?a.get(0).src:a.get(0).currentSrc;e=e.split(".");e=e[e.length-1];e=e.includes("pdf")||e.includes("txt")?!0:!1;a.hasClass("fr-file")||e||I.find("audio").get(0)?(document.getElementById("autoplay-".concat(b.id))&&(document.getElementById("autoplay-".concat(b.id)).style.display="none"),document.getElementById("videoReplace-".concat(b.id))&&
(document.getElementById("videoReplace-".concat(b.id)).style.display="none")):(document.getElementById("autoplay-".concat(b.id))&&(document.getElementById("autoplay-".concat(b.id)).style.display=""),document.getElementById("videoReplace-".concat(b.id))&&(document.getElementById("videoReplace-".concat(b.id)).style.display=""));b.popups.show("video.edit",c,d,a.outerHeight(),!0)}}function m(a){if(a)return b.popups.onRefresh("video.insert",d),b.popups.onHide("video.insert",x),!0;a="";b.opts.videoUpload||
-1===b.opts.videoInsertButtons.indexOf("videoUpload")||b.opts.videoInsertButtons.splice(b.opts.videoInsertButtons.indexOf("videoUpload"),1);var c=b.button.buildList(b.opts.videoInsertButtons);""!==c&&(a='<div class="fr-buttons">'+c+"</div>");c="";var e=b.opts.videoInsertButtons.indexOf("videoUpload"),f=b.opts.videoInsertButtons.indexOf("videoByURL"),g=b.opts.videoInsertButtons.indexOf("videoEmbed");if(0<=f){var h=" fr-active";if(f>e&&0<=e||f>g&&0<=g)h="";c='<div class="fr-video-by-url-layer fr-layer'.concat(h,
'" id="fr-video-by-url-layer-').concat(b.id,'"><div class="fr-input-line"><input id="fr-video-by-url-layer-text-').concat(b.id,'" type="text" placeholder="').concat(b.language.translate("Paste in a video URL"),'" tabIndex="1" aria-required="true"></div><div class="fr-action-buttons"><span style=\'float:left\'><div class="fr-checkbox-line fr-autoplay-margin"><span class="fr-checkbox"> <input id=\'videoPluginAutoplay\' data-checked="_blank" type="checkbox"> <span>').concat('<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="10" height="10" viewBox="0 0 32 32"><path d="M27 4l-15 15-7-7-5 5 12 12 20-20z" fill="#FFF"></path></svg>',
'</span></span> <label id="fr-label-target-').concat(b.id,'">Autoplay</label></div> </span><button type="button" class="fr-command fr-submit" data-cmd="videoInsertByURL" tabIndex="2" role="button">').concat(b.language.translate("Insert"),"</button></div></div>")}var k="";if(0<=g){h=" fr-active";if(g>e&&0<=e||g>f&&0<=f)h="";k='<div class="fr-video-embed-layer fr-layer'.concat(h,'" id="fr-video-embed-layer-').concat(b.id,'"><div class="fr-input-line"><textarea id="fr-video-embed-layer-text').concat(b.id,
'" type="text" placeholder="').concat(b.language.translate("Embedded Code"),'" tabIndex="1" aria-required="true" rows="5"></textarea></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-submit" data-cmd="videoInsertEmbed" tabIndex="2" role="button">').concat(b.language.translate("Insert"),"</button></div></div>")}h="";if(0<=e){h=" fr-active";if(e>g&&0<=g||e>f&&0<=f)h="";h='<div class="fr-video-upload-layer fr-layer'.concat(h,'" id="fr-video-upload-layer-').concat(b.id,'"><strong>').concat(b.language.translate("Drop video"),
"</strong><br>(").concat(b.language.translate("or click"),')<div class="fr-form"><input type="file" accept="video/').concat(b.opts.videoAllowedTypes.join(", video/").toLowerCase(),'" tabIndex="-1" aria-labelledby="fr-video-upload-layer-').concat(b.id,'" role="button"></div></div>')}a=b.popups.create("video.insert",{buttons:a,by_url_layer:c,embed_layer:k,upload_layer:h,progress_bar:'<div class="fr-video-progress-bar-layer fr-layer"><h3 tabIndex="-1" class="fr-message">Uploading</h3><div class="fr-loader"><span class="fr-progress"></span></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-dismiss" data-cmd="videoDismissError" tabIndex="2" role="button">OK</button></div></div>'});
ma(a);return a}function M(a){b.events.focus(!0);b.selection.restore();var c=!1;I&&(k(),c=!0);if(b.opts.trackChangesEnabled){b.edit.on();b.events.focus(!0);b.selection.restore();b.undo.saveStep();b.markers.insert();b.html.wrap();var d=b.$el.find(".fr-marker");b.node.isLastSibling(d)&&d.parent().hasClass("fr-deletable")&&d.insertAfter(d.parent());d.replaceWith('<span contenteditable="false" draggable="true" class="fr-jiv fr-video fr-deletable">'.concat(a,"</span>"));b.selection.clear()}else b.html.insert('<span contenteditable="false" draggable="true" class="fr-jiv fr-video fr-deletable">'.concat(a,
"</span>"),!1,b.opts.videoSplitHTML);b.popups.hide("video.insert");a=b.$el.find(".fr-jiv");a.removeClass("fr-jiv");a.toggleClass("fr-rv",b.opts.videoResponsive);u(a,b.opts.videoDefaultDisplay,b.opts.videoDefaultAlign);a.toggleClass("fr-draggable",b.opts.videoMove);b.events.trigger(c?"video.replaced":"video.inserted",[a])}function O(){var a=K(this);b.popups.hide("video.insert");a.removeClass("fr-uploading");a.parent().next().is("br")&&a.parent().next().remove();w(a.parent());b.events.trigger("video.loaded",
[a.parent()])}function z(a,c,d,e,f){b.edit.off();v("Loading video");c&&(a=b.helpers.sanitizeURL(a));H("Loading video");var h;if(e){b.undo.canDo()||e.find("video").hasClass("fr-uploading")||b.undo.saveStep();var k=e.find("video").data("fr-old-src"),l=e.data("fr-replaced");e.data("fr-replaced",!1);if(0<e.find("iframe").length)e.remove(),c=da(a,d,O);else{b.$wp?(c=e.clone(!0),c.find("video").removeData("fr-old-src").removeClass("fr-uploading"),c.find("video").off("canplay"),k&&e.find("video").attr("src",
k),e.replaceWith(c)):c=e;e=c.find("video").get(0).attributes;for(k=0;k<e.length;k++){var m=e[k];0===m.nodeName.indexOf("data-")&&c.find("video").removeAttr(m.nodeName)}if("undefined"!=typeof d)for(h in d)d.hasOwnProperty(h)&&"link"!=h&&c.find("video").attr("data-".concat(h),d[h]);c.find("video").on("canplay",O);c.find("video").attr("src",a)}b.edit.on();g();b.undo.saveStep();b.$el.blur();b.events.trigger(l?"video.replaced":"video.inserted",[c,f])}else c=da(a,d,O),g(),b.undo.saveStep(),b.events.trigger("video.inserted",
[c,f])}function H(a){var c=b.popups.get("video.insert");c||(c=m());c.find(".fr-layer.fr-active").removeClass("fr-active").addClass("fr-pactive");c.find(".fr-video-progress-bar-layer").addClass("fr-active");c.find(".fr-buttons").hide();if(I){c=I.find("iframe, embed, ".concat(I.find("iframe, embed, audio").get(0)?"audio":"video"));b.popups.setContainer("video.insert",b.$sc);var d=c.offset().left,e=c.offset().top+c.height();b.popups.show("video.insert",d,e,c.outerHeight())}"undefined"==typeof a&&v(b.language.translate("Uploading"),
0)}function t(a){var c=b.popups.get("video.insert");c&&(c.find(".fr-layer.fr-pactive").addClass("fr-active").removeClass("fr-pactive"),c.find(".fr-video-progress-bar-layer").removeClass("fr-active"),c.find(".fr-buttons").show(),a||b.$el.find("video.fr-error").length)&&(b.events.focus(),b.$el.find("video.fr-error").length&&(b.$el.find("video.fr-error").parent().remove(),b.undo.saveStep(),b.undo.run(),b.undo.dropRedo()),!b.$wp&&I&&(a=I,n(!0),b.selection.setAfter(a.find("video").get(0)),b.selection.restore()),
b.popups.hide("video.insert"))}function v(a,c){var d=b.popups.get("video.insert");d&&(d=d.find(".fr-video-progress-bar-layer"),d.find("h3").text(a+(c?" ".concat(c,"%"):"")),d.removeClass("fr-error"),c?(d.find("div").removeClass("fr-indeterminate"),d.find("div > span").css("width","".concat(c,"%"))):d.find("div").addClass("fr-indeterminate"))}function U(a){H();var c=b.popups.get("video.insert").find(".fr-video-progress-bar-layer");c.addClass("fr-error");c=c.find("h3");c.text(a);b.events.disableBlur();
c.focus()}function w(a){l.call(a.get(0))}function G(a){try{if(!1===b.events.trigger("video.uploaded",[a],!0))return b.edit.on(),!1;var c=JSON.parse(a);if(c.link)return c;ca(2,a);return!1}catch(Y){return ca(4,a),!1}}function p(){ca(4,this.response||this.responseText||this.responseXML)}function D(a){a.lengthComputable&&(a=a.loaded/a.total*100|0,v(b.language.translate("Uploading"),a))}function C(){b.edit.on();t(!0)}function da(a,c,d){var e="",f;if(c&&"undefined"!=typeof c)for(f in c)c.hasOwnProperty(f)&&
"link"!=f&&(e+=" ".concat(f,'="').concat(c[f],'"'));(c=b.opts.videoDefaultWidth)&&"auto"!=c&&(c="".concat(c,"px"));b.helpers.isMobile()&&b.browser.safari&&(e+=" autoplay playsinline");a=K(document.createElement("span")).attr("contenteditable","false").attr("draggable","true").attr("class","fr-video fr-dv"+b.opts.videoDefaultDisplay[0]+("center"!=b.opts.videoDefaultAlign?" fr-fv"+b.opts.videoDefaultAlign[0]:"")).html('<video src="'+a+'" '+e+(c?' style="width: '+c+';" ':"")+" controls>"+b.language.translate("Your browser does not support HTML5 video.")+
"</video>");a.toggleClass("fr-draggable",b.opts.videoMove);b.edit.on();b.events.focus(!0);b.selection.restore();b.undo.saveStep();b.opts.videoSplitHTML?b.markers.split():(b.cursor.enter(),b.markers.insert());b.html.wrap();e=b.$el.find(".fr-marker");b.node.isLastSibling(e)&&e.parent().hasClass("fr-deletable")&&e.insertAfter(e.parent());e.replaceWith(a);b.selection.clear();if(a.find("video").get(0).readyState>a.find("video").get(0).HAVE_FUTURE_DATA||b.helpers.isIOS())d.call(a.find("video").get(0));
else a.find("video").on("canplaythrough load",d);return a}function qa(a){if(!b.core.sameInstance(ia))return!0;a.preventDefault();a.stopPropagation();var c=a.pageX||(a.originalEvent.touches?a.originalEvent.touches[0].pageX:null),d=a.pageY||(a.originalEvent.touches?a.originalEvent.touches[0].pageY:null);if(!c||!d)return!1;if("mousedown"==a.type){var e=b.$oel.get(0).ownerDocument;e=e.defaultView||e.parentWindow;var f=!1;try{f=e.location!=e.parent.location&&!(e.$&&e.$.FE)}catch(ka){}f&&e.frameElement&&
(c+=b.helpers.getPX(K(e.frameElement).offset().left)+e.frameElement.clientLeft,d=a.clientY+b.helpers.getPX(K(e.frameElement).offset().top)+e.frameElement.clientTop)}b.undo.canDo()||b.undo.saveStep();Q=K(this);Q.data("start-x",c);Q.data("start-y",d);ea.show();b.popups.hideAll();S()}function P(a){if(!b.core.sameInstance(ia))return!0;if(Q){a.preventDefault();var c=a.pageX||(a.originalEvent.touches?a.originalEvent.touches[0].pageX:null);a=a.pageY||(a.originalEvent.touches?a.originalEvent.touches[0].pageY:
null);if(!c||!a)return!1;var d=Q.data("start-x"),e=Q.data("start-y");Q.data("start-x",c);Q.data("start-y",a);c-=d;a-=e;e=I.find("iframe, embed, ".concat(I.find("iframe, embed, audio").get(0)?"audio":"video"));d=e.width();var f=e.height();if(Q.hasClass("fr-hnw")||Q.hasClass("fr-hsw"))c=0-c;if(Q.hasClass("fr-hnw")||Q.hasClass("fr-hne"))a=0-a;e.css("width",d+c);e.css("height",f+a);e.removeAttr("width");e.removeAttr("height");B()}}function ba(a){if(!b.core.sameInstance(ia))return!0;Q&&I&&(a&&a.stopPropagation(),
Q=null,ea.hide(),B(),c(),b.undo.saveStep())}function X(a){return'<div class="fr-handler fr-h'.concat(a,'"></div>')}function a(a,b,c,d){a.pageX=b;a.pageY=b;qa.call(this,a);a.pageX+=c*Math.floor(Math.pow(1.1,d));a.pageY+=c*Math.floor(Math.pow(1.1,d));P.call(this,a);ba.call(this,a);return++d}function e(){if(b.shared.$video_resizer)ia=b.shared.$video_resizer,ea=b.shared.$vid_overlay,b.events.on("destroy",function(){K("body").first().append(ia.removeClass("fr-active"))},!0);else if(b.shared.$video_resizer=
K(document.createElement("div")).attr("class","fr-video-resizer"),ia=b.shared.$video_resizer,b.events.$on(ia,"mousedown",function(a){a.stopPropagation()},!0),b.opts.videoResize){ia.append(X("nw")+X("ne")+X("sw")+X("se"));b.shared.$vid_overlay=K(document.createElement("div")).attr("class","fr-video-overlay");ea=b.shared.$vid_overlay;var c=ia.get(0).ownerDocument;K(c).find("body").first().append(ea)}b.events.on("shared.destroy",function(){ia.html("").removeData().remove();ia=null;b.opts.videoResize&&
(ea.remove(),ea=null)},!0);b.helpers.isMobile()||b.events.$on(K(b.o_win),"resize.video",function(){n(!0)});if(b.opts.videoResize){c=ia.get(0).ownerDocument;b.events.$on(ia,b._mousedown,".fr-handler",qa);b.events.$on(K(c),b._mousemove,P);b.events.$on(K(c.defaultView||c.parentWindow),b._mouseup,ba);b.events.$on(ea,"mouseleave",ba);var d=1,e=null,g=0;b.events.on("keydown",function(c){if(I){var h=-1!=navigator.userAgent.indexOf("Mac OS X")?c.metaKey:c.ctrlKey,k=c.which;if(k!==e||200<c.timeStamp-g)d=1;
(k==f.KEYCODE.EQUALS||b.browser.mozilla&&k==f.KEYCODE.FF_EQUALS)&&h&&!c.altKey?d=a.call(this,c,1,1,d):(k==f.KEYCODE.HYPHEN||b.browser.mozilla&&k==f.KEYCODE.FF_HYPHEN)&&h&&!c.altKey&&(d=a.call(this,c,2,-1,d));e=k;g=c.timeStamp}});b.events.on("keyup",function(){d=1})}}function g(){var a=Array.prototype.slice.call(b.el.querySelectorAll("video, .fr-video > *")),c=[],d;for(d=0;d<a.length;d++)c.push(a[d].getAttribute("src")),K(a[d]).toggleClass("fr-draggable",b.opts.videoMove),""===a[d].getAttribute("class")&&
a[d].removeAttribute("class"),""===a[d].getAttribute("style")&&a[d].removeAttribute("style");if(xa)for(d=0;d<xa.length;d++)0>c.indexOf(xa[d].getAttribute("src"))&&b.events.trigger("video.removed",[K(xa[d])]);xa=a}function B(){ia||e();(b.$wp||b.$sc).append(ia);ia.data("instance",b);var a=I.find("iframe, embed, ".concat(I.find("iframe, embed, audio").get(0)?"audio":"video")),c=0,d=0;b.opts.iframe&&(d=b.helpers.getPX(b.$wp.find(".fr-iframe").css("padding-top")),c=b.helpers.getPX(b.$wp.find(".fr-iframe").css("padding-left")));
ia.css("top",(b.opts.iframe?a.offset().top+d-1:a.offset().top-b.$wp.offset().top-1)+b.$wp.scrollTop()).css("left",(b.opts.iframe?a.offset().left+c-1:a.offset().left-b.$wp.offset().left-1)+b.$wp.scrollLeft()).css("width",a.get(0).getBoundingClientRect().width).css("height",a.get(0).getBoundingClientRect().height).addClass("fr-active")}function l(a){if(a&&"touchend"==a.type&&na)return!0;if(a&&b.edit.isDisabled())return a.stopPropagation(),a.preventDefault(),!1;if(b.edit.isDisabled())return!1;for(a=
0;a<f.INSTANCES.length;a++)f.INSTANCES[a]!=b&&f.INSTANCES[a].events.trigger("video.hideResizer");b.toolbar.disable();b.helpers.isMobile()&&(b.events.disableBlur(),b.$el.blur(),b.events.enableBlur());b.$el.find(".fr-video.fr-active").removeClass("fr-active");I=K(this);I.addClass("fr-active");b.opts.iframe&&b.size.syncIframe();ja();B();c();b.selection.clear();b.button.bulkRefresh();b.events.trigger("image.hideResizer")}function n(a){I&&(b.shared.vid_exit_flag||!0===a)&&(ia.removeClass("fr-active"),
b.toolbar.enable(),I.removeClass("fr-active"),I=null,S())}function L(){b.shared.vid_exit_flag=!0}function S(){b.shared.vid_exit_flag=!1}function A(a){var c=a.originalEvent.dataTransfer;if(c&&c.files&&c.files.length){var d=c.files[0];if(d&&d.type&&-1!==d.type.indexOf("video")){if(!b.opts.videoUpload)return a.preventDefault(),a.stopPropagation(),!1;b.markers.remove();b.markers.insertAtPoint(a.originalEvent);b.$el.find(".fr-marker").replaceWith(f.MARKERS);b.popups.hideAll();b.popups.get("video.insert")||
m();b.popups.setContainer("video.insert",b.$sc);b.popups.show("video.insert",a.originalEvent.pageX,a.originalEvent.pageY);H();0<=b.opts.videoAllowedTypes.indexOf(d.type.replace(/video\//g,""))?R(c.files):ca(6);a.preventDefault();a.stopPropagation();return!1}}}function la(a){I&&I.find("iframe")&&I.find("iframe").length&&k();var b=new FileReader;b.onload=function(){var c=atob(b.result.split(",")[1]);for(var d=[],e=0;e<c.length;e++)d.push(c.charCodeAt(e));c=window.URL.createObjectURL(new Blob([new Uint8Array(d)],
{type:a.type}));z(c,!1,null,I)};H();b.readAsDataURL(a)}function R(a){if("undefined"!=typeof a&&0<a.length){if(!1===b.events.trigger("video.beforeUpload",[a]))return!1;a=a[0];if(!(null!==b.opts.videoUploadURL&&"https://i.froala.com/upload"!=b.opts.videoUploadURL||b.opts.videoUploadToS3||b.opts.videoUploadToAzure))return la(a),!1;if(a.size>b.opts.videoMaxSize)return ca(5),!1;if(0>b.opts.videoAllowedTypes.indexOf(a.type.replace(/video\//g,"")))return ca(6),!1;var c;b.drag_support.formdata&&(c=b.drag_support.formdata?
new FormData:null);if(c){var d;if(!1!==b.opts.videoUploadToS3)for(d in c.append("key",b.opts.videoUploadToS3.keyStart+(new Date).getTime()+"-"+(a.name||"untitled")),c.append("success_action_status","201"),c.append("X-Requested-With","xhr"),c.append("Content-Type",a.type),b.opts.videoUploadToS3.params)b.opts.videoUploadToS3.params.hasOwnProperty(d)&&c.append(d,b.opts.videoUploadToS3.params[d]);for(d in b.opts.videoUploadParams)b.opts.videoUploadParams.hasOwnProperty(d)&&c.append(d,b.opts.videoUploadParams[d]);
c.append(b.opts.videoUploadParam,a);var e=b.opts.videoUploadURL;b.opts.videoUploadToS3&&(e=b.opts.videoUploadToS3.uploadURL?b.opts.videoUploadToS3.uploadURL:"https://".concat(b.opts.videoUploadToS3.region,".amazonaws.com/").concat(b.opts.videoUploadToS3.bucket));var f=b.opts.videoUploadMethod;if(b.opts.videoUploadToAzure){var g=e=b.opts.videoUploadToAzure.uploadURL?"".concat(b.opts.videoUploadToAzure.uploadURL,"/").concat(a.name):encodeURI("https://".concat(b.opts.videoUploadToAzure.account,".blob.core.windows.net/").concat(b.opts.videoUploadToAzure.container,
"/").concat(a.name));b.opts.videoUploadToAzure.SASToken&&(e+=b.opts.videoUploadToAzure.SASToken);f="PUT"}var h=b.core.getXHR(e,f);if(b.opts.videoUploadToAzure){e=(new Date).toUTCString();if(!b.opts.videoUploadToAzure.SASToken&&b.opts.videoUploadToAzure.accessKey){var k=b.opts.videoUploadToAzure.account,l=b.opts.videoUploadToAzure.container;b.opts.videoUploadToAzure.uploadURL&&(k=b.opts.videoUploadToAzure.uploadURL.split("/"),l=k.pop(),k=k.pop().split(".")[0]);var m="x-ms-blob-type:BlockBlob\nx-ms-date:".concat(e,
"\nx-ms-version:2019-07-07");l=encodeURI("/"+k+"/"+l+"/"+a.name);var n=f=b.cryptoJSPlugin.cryptoJS.HmacSHA256(f+"\n\n\n"+a.size+"\n\n"+a.type+"\n\n\n\n\n\n\n"+m+"\n"+l,b.cryptoJSPlugin.cryptoJS.enc.Base64.parse(b.opts.videoUploadToAzure.accessKey)).toString(b.cryptoJSPlugin.cryptoJS.enc.Base64);h.setRequestHeader("Authorization","SharedKey "+k+":"+f)}h.setRequestHeader("x-ms-version","2019-07-07");h.setRequestHeader("x-ms-date",e);h.setRequestHeader("Content-Type",a.type);h.setRequestHeader("x-ms-blob-type",
"BlockBlob");for(d in b.opts.videoUploadParams)b.opts.videoUploadParams.hasOwnProperty(d)&&h.setRequestHeader(d,b.opts.videoUploadParams[d]);for(d in b.opts.videoUploadToAzure.params)b.opts.videoUploadToAzure.params.hasOwnProperty(d)&&h.setRequestHeader(d,b.opts.videoUploadToAzure.params[d])}h.onload=function(){a:{var a=I,c=g,d=n;v("Loading video");var e=h.status,f=h.response,k=h.responseXML,l=h.responseText;try{if(b.opts.videoUploadToS3||b.opts.videoUploadToAzure)if(201==e){if(b.opts.videoUploadToAzure){if(!1===
b.events.trigger("video.uploadedToAzure",[h.responseURL,d,f],!0)){b.edit.on();break a}var m=c}else try{var p=K(k).find("Location").text(),q=K(k).find("Key").text();!1===b.events.trigger("video.uploadedToS3",[p,q,k],!0)?(b.edit.on(),m=!1):m=p}catch(Da){ca(4,k),m=!1}m&&z(m,!1,[],a,f||k)}else ca(4,f||k);else if(200<=e&&300>e){var r=G(l);r&&z(r.link,!1,r,a,f||l)}else ca(3,f||l)}catch(Da){ca(4,f||l)}}};h.onerror=p;h.upload.onprogress=D;h.onabort=C;H();b.events.disableBlur();b.edit.off();b.events.enableBlur();
if(d=b.popups.get("video.insert"))K(d.off("abortUpload")).on("abortUpload",function(){4!=h.readyState&&h.abort()});h.send(b.opts.videoUploadToAzure?a:c)}}}function ma(a){b.events.$on(a,"dragover dragenter",".fr-video-upload-layer",function(){K(this).addClass("fr-drop");return!1},!0);b.events.$on(a,"dragleave dragend",".fr-video-upload-layer",function(){K(this).removeClass("fr-drop");return!1},!0);b.events.$on(a,"drop",".fr-video-upload-layer",function(c){c.preventDefault();c.stopPropagation();K(this).removeClass("fr-drop");
if((c=c.originalEvent.dataTransfer)&&c.files){var d=a.data("instance")||b;d.events.disableBlur();d.video.upload(c.files);d.events.enableBlur()}},!0);b.helpers.isIOS()&&b.events.$on(a,"touchstart",'.fr-video-upload-layer input[type="file"]',function(){K(this).trigger("click")},!0);b.events.$on(a,"change",'.fr-video-upload-layer input[type="file"]',function(){if(this.files){var c=a.data("instance")||b;c.events.disableBlur();a.find("input:focus").blur();c.events.enableBlur();c.video.upload(this.files)}K(this).val("")},
!0)}function Aa(){b.events.on("drop",A,!0);b.events.on("mousedown window.mousedown",L);b.events.on("window.touchmove",S);b.events.on("mouseup window.mouseup",n);b.events.on("commands.mousedown",function(a){0<a.parents(".fr-toolbar").length&&n()});b.events.on("video.hideResizer commands.undo commands.redo element.dropped",function(){n(!0)})}function ca(a,c){b.edit.on();I&&I.find("video").addClass("fr-error");U(b.language.translate("Something went wrong. Please try again."));b.events.trigger("video.error",
[{code:a,message:Ba[a]},c])}function za(){var a="";return 0<b.opts.videoEditButtons.length?(b.opts.videoResponsive&&(-1<b.opts.videoEditButtons.indexOf("videoSize")&&b.opts.videoEditButtons.splice(b.opts.videoEditButtons.indexOf("videoSize"),1),-1<b.opts.videoEditButtons.indexOf("videoDisplay")&&b.opts.videoEditButtons.splice(b.opts.videoEditButtons.indexOf("videoDisplay"),1),-1<b.opts.videoEditButtons.indexOf("videoAlign")&&b.opts.videoEditButtons.splice(b.opts.videoEditButtons.indexOf("videoAlign"),
1)),a+='<div class="fr-buttons"> \n      '.concat(b.button.buildList(b.opts.videoEditButtons)," \n      </div>"),a=b.popups.create("video.edit",{buttons:a}),b.events.$on(b.$wp,"scroll.video-edit",function(){I&&b.popups.isVisible("video.edit")&&(b.events.disableBlur(),w(I))}),a):!1}function va(){if(I){var a=b.popups.get("video.size"),c=I.find("iframe, embed, ".concat(I.find("iframe, embed, audio").get(0)?"audio":"video"));a.find('input[name="width"]').val(c.get(0).style.width||c.attr("width")).trigger("change");
a.find('input[name="height"]').val(c.get(0).style.height||c.attr("height")).trigger("change")}}function q(a){if(a)return b.popups.onRefresh("video.size",va),!0;a="";a='<div class="fr-buttons fr-tabs">'.concat(b.button.buildList(b.opts.videoSizeButtons),"</div>");var c="";c='<div class="fr-video-size-layer fr-layer fr-active" id="fr-video-size-layer-'.concat(b.id,'"><div class="fr-video-group"><div class="fr-input-line"><input id="fr-video-size-layer-width-').concat(b.id,'" type="text" name="width" placeholder="').concat(b.language.translate("Width"),
'" tabIndex="1"></div><div class="fr-input-line"><input id="fr-video-size-layer-height-').concat(b.id,'" type="text" name="height" placeholder="').concat(b.language.translate("Height"),'" tabIndex="1"></div></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-submit" data-cmd="videoSetSize" tabIndex="2" role="button">').concat(b.language.translate("Update"),"</button></div></div>");a=b.popups.create("video.size",{buttons:a,size_layer:c});b.events.$on(b.$wp,"scroll",function(){I&&
b.popups.isVisible("video.size")&&(b.events.disableBlur(),w(I))});return a}function ha(a){"undefined"==typeof a&&(a=I);if(a){if(a.hasClass("fr-fvl"))return"left";if(a.hasClass("fr-fvr"))return"right";if(!a.hasClass("fr-dvb")&&!a.hasClass("fr-dvi"))if("block"==a.css("display")){if("left"==a.css("text-algin"))return"left";if("right"==a.css("text-align"))return"right"}else{if("left"==a.css("float"))return"left";if("right"==a.css("float"))return"right"}}return"center"}function V(a){"undefined"==typeof a&&
(a=I);var b=a.css("float");a.css("float","none");if("block"==a.css("display"))return a.css("float",""),a.css("float")!=b&&a.css("float",b),"block";a.css("float","");a.css("float")!=b&&a.css("float",b);return"inline"}function k(){if(I&&!1!==b.events.trigger("video.beforeRemove",[I])){var a=I;b.popups.hideAll();n(!0);!b.opts.trackChangesEnabled||a[0].parentNode&&"SPAN"===a[0].parentNode.tagName&&a[0].parentNode.hasAttribute("data-tracking")?(b.selection.setBefore(a.get(0))||b.selection.setAfter(a.get(0)),
a.remove(),b.selection.restore(),b.html.fillEmptyBlocks()):b.track_changes.removeSpecialItem(a)}}function x(){t()}function u(a,c,d){!b.opts.htmlUntouched&&b.opts.useClasses?(a.removeClass("fr-fvl fr-fvr fr-dvb fr-dvi"),a.addClass("fr-fv".concat(d[0]," fr-dv").concat(c[0]))):"inline"==c?(a.css({display:"inline-block"}),"center"==d?a.css({"float":"none"}):"left"==d?a.css({"float":"left"}):a.css({"float":"right"})):(a.css({display:"block",clear:"both"}),"left"==d?a.css({textAlign:"left"}):"right"==d?
a.css({textAlign:"right"}):a.css({textAlign:"center"}))}function h(a){a.hasClass("fr-dvi")||a.hasClass("fr-dvb")||(a.addClass("fr-fv".concat(ha(a)[0])),a.addClass("fr-dv".concat(V(a)[0])))}function r(a){var b=a.hasClass("fr-dvb")?"block":a.hasClass("fr-dvi")?"inline":null,c=a.hasClass("fr-fvl")?"left":a.hasClass("fr-fvr")?"right":ha(a);u(a,b,c);a.removeClass("fr-dvb fr-dvi fr-fvr fr-fvl")}function N(){var a=b.$el.find("video").filter(function(){return 0===K(this).parents("span.fr-video").length});
if(0!=a.length){a.wrap(K(document.createElement("span")).attr("class","fr-video fr-deletable").attr("contenteditable","false"));b.$el.find("embed, iframe").filter(function(){b.browser.safari&&this.getAttribute("src")&&this.setAttribute("src",this.src);if(0<K(this).parents("span.fr-video").length)return!1;for(var a=K(this).attr("src"),c=0;c<f.VIDEO_PROVIDERS.length;c++){var d=f.VIDEO_PROVIDERS[c];if(d.test_regex.test(a)&&(new RegExp(b.opts.videoAllowedProviders.join("|"))).test(d.provider))return!0}return!1}).map(function(){return 0===
K(this).parents("object").length?this:K(this).parents("object").get(0)}).wrap(K(document.createElement("span")).attr("class","fr-video").attr("contenteditable","false"));a=b.$el.find("span.fr-video, video");for(var c=0;c<a.length;c++){var d=K(a[c]);!b.opts.htmlUntouched&&b.opts.useClasses?(h(d),b.opts.videoTextNear||d.removeClass("fr-dvi").addClass("fr-dvb")):b.opts.htmlUntouched||b.opts.useClasses||r(d)}a.toggleClass("fr-draggable",b.opts.videoMove)}}function Z(a){document.getElementById("autoplay-".concat(b.id)).style.cssText=
"background:".concat(a)}function ja(){if(I){b.selection.clear();var a=b.doc.createRange();a.selectNode(I.get(0));b.selection.get().addRange(a)}}var K=b.$,ea,Q,ia,I,Ba={1:"Video cannot be loaded from the passed link.",2:"No link in upload response.",3:"Error during file upload.",4:"Parsing response failed.",5:"File is too large.",6:"Video file type is invalid.",7:"Files can be uploaded only to same domain in IE 8 and IE 9."},xa,na;b.shared.vid_exit_flag=!1;return{_init:function(){b.opts.videoResponsive&&
(b.opts.videoResize=!1);Aa();b.helpers.isMobile()&&(b.events.$on(b.$el,"touchstart","span.fr-video",function(){na=!1}),b.events.$on(b.$el,"touchmove",function(){na=!0}));b.events.on("html.set",N);N();b.events.$on(b.$el,"mousedown","span.fr-video",function(a){a.stopPropagation();!b.browser.msie&&!b.browser.edge||a.target.innerText||(a.target.dragDrop(),l.call(this,a))});b.events.$on(b.$el,"click touchend","span.fr-video",function(a){if(a.target.innerText.length||"false"==K(this).parents("[contenteditable]").not(".fr-element").not(".fr-img-caption").not("body").first().attr("contenteditable"))return!0;
l.call(this,a)});b.events.on("keydown",function(a){var c=a.which;if(I&&(c==f.KEYCODE.BACKSPACE||c==f.KEYCODE.DELETE))return a.preventDefault(),k(),b.undo.saveStep(),!1;if(I&&c==f.KEYCODE.ESC)return n(!0),a.preventDefault(),!1;if(I&&c!=f.KEYCODE.F10&&!b.keys.isBrowserAction(a))return a.preventDefault(),!1},!0);b.events.on("toolbar.esc",function(){if(I)return b.events.disableBlur(),b.events.focus(),!1},!0);b.events.on("toolbar.focusEditor",function(){if(I)return!1},!0);b.events.on("keydown",function(){b.$el.find("span.fr-video:empty").remove()});
b.$wp&&(g(),b.events.on("contentChanged",g));m(!0);q(!0)},showInsertPopup:function(){var a=b.$tb.find('.fr-command[data-cmd="insertVideo"]'),c=b.popups.get("video.insert");c||(c=m());t();c.hasClass("fr-active")||(b.popups.refresh("video.insert"),b.popups.setContainer("video.insert",b.$tb),a.isVisible()?(c=b.button.getPosition(a),b.popups.show("video.insert",c.left,c.top,a.outerHeight())):(b.position.forSelection(c),b.popups.show("video.insert")))},showLayer:function(a){var c=b.popups.get("video.insert");
if(!I&&!b.opts.toolbarInline){var d=b.$tb.find('.fr-command[data-cmd="insertVideo"]');var e=d.offset().left;d=d.offset().top+(b.opts.toolbarBottom?10:d.outerHeight()-10)}b.opts.toolbarInline&&(d=c.offset().top-b.helpers.getPX(c.css("margin-top")),c.hasClass("fr-above")&&(d+=c.outerHeight()));c.find(".fr-layer").removeClass("fr-active");c.find(".fr-".concat(a,"-layer")).addClass("fr-active");b.popups.show("video.insert",e,d,0);b.accessibility.focusPopup(c)},refreshByURLButton:function(a){var c=b.popups.get("video.insert");
c&&c.find(".fr-video-by-url-layer").hasClass("fr-active")&&a.addClass("fr-active").attr("aria-pressed",!0)},refreshEmbedButton:function(a){var c=b.popups.get("video.insert");c&&c.find(".fr-video-embed-layer").hasClass("fr-active")&&a.addClass("fr-active").attr("aria-pressed",!0)},refreshUploadButton:function(a){var c=b.popups.get("video.insert");c&&c.find(".fr-video-upload-layer").hasClass("fr-active")&&a.addClass("fr-active").attr("aria-pressed",!0)},upload:R,insertByURL:function(a){var c=document.getElementById("videoPluginAutoplay")?
document.getElementById("videoPluginAutoplay").checked:!1;if("undefined"==typeof a){a=(b.popups.get("video.insert").find('.fr-video-by-url-layer input[type="text"]').val()||"").trim();var d=a.match(/(https?:\/\/)?(www\.)?(player\.)?vimeo\.com\/?(showcase\/)*([0-9))([a-z]*\/)*([0-9]{6,11})[?]?.*/);if(d&&7==d.length){d=d[6];var e=a.substring(0,a.lastIndexOf("/"));a=a.substring(a.lastIndexOf("/")+1,a.length);a=a.includes("?h=")||a.includes("?v=")||d===a?("".concat(e,"/").concat(a)||"").trim():("".concat(e,
"?h=").concat(a)||"").trim()}}d=null;/^http/.test(a)||(a="https://".concat(a));if(b.helpers.isURL(a))for(e=0;e<f.VIDEO_PROVIDERS.length;e++){var g=f.VIDEO_PROVIDERS[e];g.html.includes("autoplay=1")&&document.getElementById("videoPluginAutoplay").checked?(g.html=g.html,document.getElementById("videoPluginAutoplay").checked=!1):c?(c=g.html.indexOf("{url}")+5,g.html=[g.html.slice(0,c),"autoplay=1&mute=1",g.html.slice(c)].join(""),c=!1,document.getElementById("videoPluginAutoplay").checked=!1):(g=f.VIDEO_PROVIDERS[e],
g.html=g.html.replace("autoplay=1&mute=1",""));if(g.test_regex.test(a)&&(new RegExp(b.opts.videoAllowedProviders.join("|"))).test(g.provider)){d=a.replace(g.url_regex,g.url_text);d=g.html.replace(/\{url\}/,d);break}}d?M(d):(U(b.language.translate("Something went wrong. Please try again.")),b.events.trigger("video.linkError",[a]))},insertEmbed:function(a){"undefined"==typeof a&&(a=b.popups.get("video.insert").find(".fr-video-embed-layer textarea").val()||"");0!==a.length&&f.VIDEO_EMBED_REGEX.test(a)?
M(a):(U(b.language.translate("Something went wrong. Please try again.")),b.events.trigger("video.codeError",[a]))},insert:M,align:function(a){I.removeClass("fr-fvr fr-fvl");!b.opts.htmlUntouched&&b.opts.useClasses?"left"==a?I.addClass("fr-fvl"):"right"==a&&I.addClass("fr-fvr"):u(I,V(),a);ja();B();c();b.selection.clear()},refreshAlign:function(a){if(!I)return!1;a.find(">*").first().replaceWith(b.icon.create("video-align-".concat(ha())))},refreshAlignOnShow:function(a,b){I&&b.find('.fr-command[data-param1="'.concat(ha(),
'"]')).addClass("fr-active").attr("aria-selected",!0)},display:function(a){I.removeClass("fr-dvi fr-dvb");!b.opts.htmlUntouched&&b.opts.useClasses?"inline"==a?I.addClass("fr-dvi"):"block"==a&&I.addClass("fr-dvb"):u(I,a,ha());ja();B();c();b.selection.clear()},refreshDisplayOnShow:function(a,b){I&&b.find('.fr-command[data-param1="'.concat(V(),'"]')).addClass("fr-active").attr("aria-selected",!0)},remove:k,hideProgressBar:t,showSizePopup:function(){b.popups.get("video.size")||q();t();b.popups.refresh("video.size");
b.popups.setContainer("video.size",b.$sc);var a=I.find("iframe, embed, ".concat(I.find("iframe, embed, audio").get(0)?"audio":"video")),c=a.offset().left+a.outerWidth()/2,d=a.offset().top+a.height();b.popups.show("video.size",c,d,a.height(),!0)},replace:function(){b.popups.get("video.insert")||m();b.popups.isVisible("video.insert")||(t(),b.popups.refresh("video.insert"),b.popups.setContainer("video.insert",b.$sc));var a=I.offset().left+I.outerWidth()/2,c=I.offset().top+I.height();b.popups.show("video.insert",
a,c,I.outerHeight(),!0)},back:function(){I?(b.events.disableBlur(),I[0].click()):(b.events.disableBlur(),b.selection.restore(),b.events.enableBlur(),b.popups.hide("video.insert"),b.toolbar.showInline())},setSize:function(a,c){if(I){var d=b.popups.get("video.size"),e=I.find("iframe, embed, ".concat(I.find("iframe, embed, audio").get(0)?"audio":"video"));e.css("width",a||d.find('input[name="width"]').val());e.css("height",c||d.find('input[name="height"]').val());e.get(0).style.width&&e.removeAttr("width");
e.get(0).style.height&&e.removeAttr("height");d.find("input:focus").blur();setTimeout(function(){I.trigger("click")},b.helpers.isAndroid()?50:0)}},get:function(){return I},showProgressBar:H,_editVideo:w,setAutoplay:function(){if(I.find("iframe, embed, audio").get(0)){var a=I.find("iframe, embed, audio");a.get(0).src.includes("autoplay=1")?(Z("#FFFFFF"),a.get(0).src=a.get(0).src.replace("&autoplay=1","")):(Z("#D6D6D6"),a.get(0).src=a.get(0).src+"&autoplay=1")}else if(a=I.find("iframe, embed, video"),
a.get(0).outerHTML.includes("autoplay"))Z("#FFFFFF"),a.get(0).outerHTML=a.get(0).outerHTML.replace("autoplay","");else{Z("#D6D6D6");var b=a.get(0).outerHTML.indexOf("class")-1;a.get(0).outerHTML=[a.get(0).outerHTML.slice(0,b),"autoplay",a.get(0).outerHTML.slice(b)].join("")}}}};f.RegisterCommand("insertVideo",{title:"Insert Video",undo:!1,focus:!0,refreshAfterCallback:!1,popup:!0,callback:function(){this.popups.isVisible("video.insert")?(this.$el.find(".fr-marker").length&&(this.events.disableBlur(),
this.selection.restore()),this.popups.hide("video.insert")):this.video.showInsertPopup()},plugin:"video"});f.DefineIcon("insertVideo",{NAME:"video-camera",FA5NAME:"camera",SVG_KEY:"insertVideo"});f.DefineIcon("videoByURL",{NAME:"link",SVG_KEY:"insertLink"});f.RegisterCommand("videoByURL",{title:"By URL",undo:!1,focus:!1,toggle:!0,callback:function(){this.video.showLayer("video-by-url")},refresh:function(b){this.video.refreshByURLButton(b)}});f.DefineIcon("videoEmbed",{NAME:"code",SVG_KEY:"codeView"});
f.RegisterCommand("videoEmbed",{title:"Embedded Code",undo:!1,focus:!1,toggle:!0,callback:function(){this.video.showLayer("video-embed")},refresh:function(b){this.video.refreshEmbedButton(b)}});f.DefineIcon("videoUpload",{NAME:"upload",SVG_KEY:"upload"});f.RegisterCommand("videoUpload",{title:"Upload Video",undo:!1,focus:!1,toggle:!0,callback:function(){this.video.showLayer("video-upload")},refresh:function(b){this.video.refreshUploadButton(b)}});f.RegisterCommand("videoInsertByURL",{undo:!0,focus:!0,
callback:function(){this.video.insertByURL()}});f.RegisterCommand("videoInsertEmbed",{undo:!0,focus:!0,callback:function(){this.video.insertEmbed()}});f.DefineIcon("videoDisplay",{NAME:"star",SVG_KEY:"star"});f.RegisterCommand("videoDisplay",{title:"Display",type:"dropdown",options:{inline:"Inline",block:"Break Text"},callback:function(b,d){this.video.display(d)},refresh:function(b){this.opts.videoTextNear||b.addClass("fr-hidden")},refreshOnShow:function(b,d){this.video.refreshDisplayOnShow(b,d)}});
f.DefineIcon("video-align",{NAME:"align-left",SVG_KEY:"align Left"});f.DefineIcon("video-align-left",{NAME:"align-left",SVG_KEY:"alignLeft"});f.DefineIcon("video-align-right",{NAME:"align-right",SVG_KEY:"alignRight"});f.DefineIcon("video-align-center",{NAME:"align-justify",SVG_KEY:"alignJustify"});f.DefineIcon("videoAlign",{NAME:"align-center",SVG_KEY:"alignCenter"});f.RegisterCommand("videoAlign",{type:"dropdown",title:"Align",options:{left:"Align Left",center:"None",right:"Align Right"},html:function(){var b=
'<ul class="fr-dropdown-list" role="presentation">',d=f.COMMANDS.videoAlign.options,c;for(c in d)d.hasOwnProperty(c)&&(b+='<li role="presentation"><a class="fr-command fr-title" tabIndex="-1" role="option" data-cmd="videoAlign" data-param1="'.concat(c,'" title="').concat(this.language.translate(d[c]),'">').concat(this.icon.create("video-align-".concat(c)),'<span class="fr-sr-only">').concat(this.language.translate(d[c]),"</span></a></li>"));return b+"</ul>"},callback:function(b,d){this.video.align(d)},
refresh:function(b){this.video.refreshAlign(b)},refreshOnShow:function(b,d){this.video.refreshAlignOnShow(b,d)}});f.DefineIcon("videoReplace",{NAME:"exchange",FA5NAME:"exchange-alt",SVG_KEY:"replaceImage"});f.RegisterCommand("videoReplace",{title:"Replace",undo:!1,focus:!1,popup:!0,refreshAfterCallback:!1,callback:function(){this.video.replace()}});f.DefineIcon("videoRemove",{NAME:"trash",SVG_KEY:"remove"});f.RegisterCommand("videoRemove",{title:"Remove",callback:function(){this.video.remove()}});
f.DefineIcon("autoplay",{NAME:"autoplay",SVG_KEY:"autoplay"});f.RegisterCommand("autoplay",{undo:!1,focus:!1,popup:!0,title:"Autoplay",callback:function(){this.video.setAutoplay()}});f.DefineIcon("videoSize",{NAME:"arrows-alt",SVG_KEY:"imageSize"});f.RegisterCommand("videoSize",{undo:!1,focus:!1,popup:!0,title:"Change Size",callback:function(){this.video.showSizePopup()}});f.DefineIcon("videoBack",{NAME:"arrow-left",SVG_KEY:"back"});f.RegisterCommand("videoBack",{title:"Back",undo:!1,focus:!1,back:!0,
callback:function(){this.video.back()},refresh:function(b){this.video.get()||this.opts.toolbarInline?(b.removeClass("fr-hidden"),b.next().hasClass("fr-separator")&&b.next().removeClass("fr-hidden")):(b.addClass("fr-hidden"),b.next().hasClass("fr-separator")&&b.next().addClass("fr-hidden"))}});f.RegisterCommand("videoDismissError",{title:"OK",undo:!1,callback:function(){this.video.hideProgressBar(!0)}});f.RegisterCommand("videoSetSize",{undo:!0,focus:!1,title:"Update",refreshAfterCallback:!1,callback:function(){this.video.setSize()}})});
((C,u)=>{XF.FE=FroalaEditor;XF.isEditorEnabled=()=>XF.LocalStorage.get("editorDisabled")?!1:!0;XF.setIsEditorEnabled=a=>{a?XF.LocalStorage.remove("editorDisabled"):XF.LocalStorage.set("editorDisabled","1",!0)};XF.Editor=XF.Element.newHandler({options:{maxHeight:.7,minHeight:250,buttonsRemove:"",attachmentTarget:!0,deferred:!1,attachmentUploader:".js-attachmentUpload",attachmentContextInput:"attachment_hash_combined"},edMinHeight:63,form:null,buttonManager:null,ed:null,mentioner:null,emojiCompleter:null,
uploadUrl:null,init(){if(this.target.matches("textarea")){this.options.minHeight=Math.max(this.edMinHeight,this.options.minHeight);XF.trigger(u,XF.customEvent("editor:start",{editor:this}));this.form=this.target.closest("form");this.form||(this.form=null);if(this.options.attachmentTarget){let a,b;this.uploadUrl=null==(b=null==(a=this.target.closest("[data-xf-init~=attachment-manager]"))?void 0:a.querySelector(this.options.attachmentUploader))?void 0:b.getAttribute("href")}this.options.deferred||this.startInit()}else console.error("Editor can only be initialized on a textarea")},
startInit(a){const b=a&&a.beforeInit,e=a&&a.afterInit;this.target.style.visibility="";this.ed=new FroalaEditor(this.target,this.getEditorConfig(),()=>{b&&b(this,this.ed);this.editorInit();e&&e(this,this.ed)})},reInit(a){this.ed&&(this.ed.destroy(),this.startInit(a))},getEditorConfig(){var a=this.getHeightLimits();a={attribution:!1,direction:FroalaEditor.LANGUAGE.xf.direction,editorClass:"bbWrapper",fileUpload:!1,fileMaxSize:4294967296,fileUploadParam:"upload",fileUploadURL:!1,fontFamily:{arial:"Arial",
"'book antiqua'":"Book Antiqua","'courier new'":"Courier New",georgia:"Georgia",tahoma:"Tahoma","'times new roman'":"Times New Roman","'trebuchet ms'":"Trebuchet MS",verdana:"Verdana"},fontSize:"9 10 12 15 18 22 26".split(" "),heightMin:a[0],heightMax:a[1],htmlAllowedTags:"a audio b bdi bdo blockquote br cite code dfn div em h1 h2 h3 h4 h5 h6 hr i img li mark ol p pre s small span strike strong sub sup table tbody td tfoot th thead time tr u ul var video wbr".split(" "),key:"ZOD3gA8B10A6C5A2G3C-8TMIBDIa1NTMNZFFPFZc1d1Ib2a1E1fA4A3G3F3F2B6C4C4C3G3==",
htmlAllowComments:!1,iconsTemplate:"fa_svg",imageUpload:!1,imageCORSProxy:null,imageDefaultDisplay:"inline",imageDefaultWidth:0,imageEditButtons:"imageAlign imageSize imageAlt | imageReplace imageRemove | imageLink linkOpen linkEdit linkRemove".split(" "),imageManagerLoadURL:!1,imageMaxSize:4294967296,imagePaste:!1,imageResize:!0,imageUploadParam:"upload",imageUploadRemoteUrls:!1,imageUploadURL:!1,language:"xf",linkAlwaysBlank:!0,linkEditButtons:["linkOpen","linkEdit","linkRemove"],linkInsertButtons:["linkBack"],
listAdvancedTypes:!1,paragraphFormat:{N:"Normal",H2:"Heading 1",H3:"Heading 2",H4:"Heading 3"},placeholderText:"",tableResizer:!0,tableEditButtons:["tableHeader","tableRemove","|","tableRows","tableColumns"],toolbarSticky:!1,toolbarStickyOffset:36,tableInsertHelper:!1,videoAllowedTypes:["mp4","quicktime","ogg","webm"],videoAllowedProviders:[],videoDefaultAlign:"center",videoDefaultDisplay:"inline",videoDefaultWidth:500,videoEditButtons:["videoReplace","videoRemove","|","videoAlign","videoSize"],videoInsertButtons:["videoBack",
"|","videoUpload"],videoMaxSize:4294967296,videoMove:!0,videoUpload:!1,videoUploadParam:"upload",videoUploadURL:!1,zIndex:XF.getElEffectiveZIndex(this.target)+1,xfBbCodeAttachmentContextInput:this.options.attachmentContextInput};FroalaEditor.DefineIconTemplate("fa_svg",XF.Icon.getIcon("default","[FA5NAME]"));FroalaEditor.DefineIconTemplate("fal_svg",XF.Icon.getIcon("fal","[FA5NAME]"));FroalaEditor.DefineIconTemplate("far_svg",XF.Icon.getIcon("far","[FA5NAME]"));FroalaEditor.DefineIconTemplate("fas_svg",
XF.Icon.getIcon("fas","[FA5NAME]"));FroalaEditor.DefineIconTemplate("fad_svg",XF.Icon.getIcon("fad","[FA5NAME]"));FroalaEditor.DefineIconTemplate("fab_svg",XF.Icon.getIcon("fab","[FA5NAME]"));FroalaEditor.DefineIcon("insertVideo",{FA5NAME:"video-plus"});if(this.uploadUrl){var b={_xfToken:XF.config.csrf,_xfResponseType:"json",_xfWithData:1};a.fileUpload=!0;a.fileUploadParams=b;a.fileUploadURL=this.uploadUrl;a.imageUpload=!0;a.imageUploadParams=b;a.imageUploadURL=this.uploadUrl;a.imagePaste=!0;a.videoUpload=
!0;a.videoUploadParams=b;a.videoUploadURL=this.uploadUrl}else a.imageInsertButtons=["imageByURL"];b=this.getButtonConfig();a=XF.extendObject({},a,b);XF.trigger(this.target,XF.customEvent("editor:config",{config:a,editor:this}));return a},getButtonConfig(){try{var a=JSON.parse(u.querySelector(".js-editorToolbars").innerHTML)||{}}catch(d){console.error("Editor buttons data not valid: ",d);return}var b={};let e;try{e=JSON.parse(u.querySelector(".js-editorDropdowns").innerHTML)||{};for(const d of Object.keys(e))e[d].buttons&&
(b[d]=e[d].buttons)}catch(d){console.error("Editor dropdowns data not valid: ",d)}this.buttonManager=a=new XF.EditorButtons(this,a,b);XF.isElementWithinDraftForm(this.target)||a.addRemovedButton("xfDraft");(b=this.getAttachmentManager())&&b.supportsVideoAudioUploads||a.addRemovedButton("insertVideo");this.options.buttonsRemove&&a.addRemovedButtons(this.options.buttonsRemove.split(","));XF.trigger(this.target,XF.customEvent("editor:toolbar-buttons",{buttonManager:a,editor:this}));return a.getToolbars()},
editorInit(){const a=this.ed,b=this;this.watchEditorHeight();this.form&&(XF.on(this.form,"ajax-submit:before",()=>XF.EditorHelpers.sync(a)),XF.on(this.form,"draft:beforesync",()=>XF.EditorHelpers.sync(a)),XF.on(this.form,"draft:complete",c=>{({data:c}=c);let f;a.$tb.length&&!0===c.draft.saved&&(c=a.$tb[0].querySelector(".fr-command.fr-btn[data-cmd=xfDraft]"))&&(f=c.querySelector(".editorDraftIndicator"),f||(f=XF.createElementFromString('<b class="editorDraftIndicator"></b>'),c.appendChild(f)),setTimeout(()=>
{f.classList.add("is-active")},50),setTimeout(()=>{f.classList.remove("is-active")},2500))}),XF.on(this.form,"ajax-submit:before",function(c){0<a.$el.find(".fr-uploading").length&&!confirm(XF.phrase("files_being_uploaded_are_you_sure"))&&c.preventDefault()}),a.events.on("keydown",function(c){if("Enter"==c.key&&(XF.isMac()?c.metaKey:c.ctrlKey))return c.preventDefault(),XF.trigger(b.form,"submit"),!1},!0),XF.isElementWithinDraftForm(this.form)&&XF.Element.applyHandler(a.$el[0],"draft-trigger"));a.events.on("image.inserted",
function(c){c.removeClass("fr-dib").addClass("fr-dii")});a.events.on("image.beforePasteUpload",function(c){if("data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="==c.src)return!1});let e=!1;a.events.on("cut copy",function(c){if((c=a.selection.ranges(0))&&c.commonAncestorContainer){var f=c.commonAncestorContainer;if(f.nodeType==Node.TEXT_NODE)if(0==c.startOffset&&c.endOffset==f.length&&f.parentNode!=a.$el[0]){for(f=f.parentNode;f.parentNode!=a.$el[0]&&!f.previousSibling&&!f.nextSibling;)f=
f.parentNode;c.selectNode(f)}else f=f.parentNode;var g=f.querySelectorAll("p");g.forEach(n=>n.setAttribute("data-xf-p","1"));setTimeout(function(){g.forEach(n=>n.removeAttribute("data-xf-p"))},0)}});a.events.on("paste.before",function(c){e=!1;if(c&&c.clipboardData&&c.clipboardData.getData){let f="";c=c.clipboardData.types;if(a.helpers.isArray(c))for(const g of c)f+=g+";";else f=c;!/text\/plain/.test(f)||a.browser.mozilla||/text\/html/.test(f)||/text\/rtf/.test(f)&&a.browser.safari||(e=!0)}});a.events.on("paste.beforeCleanup",
function(c){e&&(c=c.replace(/\t/g,"    ").replace(/ {2}/g,"&nbsp; ").replace(/ {2}/g,"&nbsp; ").replace(/> /g,">&nbsp;"));c=c.replace(/(<pre[^>]*>)([\s\S]+?)(<\/pre>)/g,function(n,k,l,m){l=l.replace(/\r?\n/g,"<br>");return k+l+m});c=c.replace(/<p([^>]+)margin-top:\s*0[a-z]*;\s*margin-bottom:\s*0[a-z]*;([^>]*)>([\s\S]*?)<\/p>/g,function(n,k,l,m){return"<p"+k+l+' data-xf-p="1">'+m+"</p>"});c=c.replace(/<div(?=\s|>)/g,function(n){return n+' data-xf-p="1"'});var f;(f=c.match(/^(?:<meta[^>]*>)?<a href=(?:'|")([^'"]*)\/?(?:'|")>\1<\/a>$/))&&
(c=f[1].trim());(f=c.match(/\x3c!--StartFragment--\x3e<a href=(?:'|")([^'"]*)\/?(?:'|")>[^<]+<\/a>\x3c!--EndFragment--\x3e/))&&(c=f[1].trim());c=XF.adjustHtmlForRte(c);c=u.createRange().createContextualFragment(c);c=Array.from(c.childNodes);const g=function(n){let k,l,m,p;for(m=0;m<n.length;m++)if(k=n[m],k instanceof Element){if(k.hasAttributes())for(l=k.attributes,p=l.length-1;0<=p;p--){const q=l[p];"on"!=q.name.toLowerCase().substr(0,2)&&"style"!=q.name.toLowerCase()||k.removeAttribute(q.name)}g(k.childNodes)}};
g(c);f=XF.createElementFromString("<div></div>");f.append(...c);f.querySelectorAll("span.smilie").forEach(n=>{const k=n.getAttribute("data-shortname");n.getAttribute("data-smilie")&&k?u.createTextNode(XF.htmlspecialchars(k)).after(n):Array.from(n.childNodes).forEach(l=>n.parentNode.insertBefore(l,n));n.remove()});return f.innerHTML.trim()});a.events.on("paste.afterCleanup",function(c){return b.normalizePaste(c)});a.events.on("paste.after",function(){var c=a.selection.ranges(0);if(c&&c.getBoundingClientRect){c=
c.getBoundingClientRect();var f=u.documentElement,g=a.$wp[0].getBoundingClientRect();(0>c.top||0>c.left||c.bottom>f.clientHeight||c.right>f.clientWidth||c.bottom>g.bottom)&&setTimeout(function(){b.scrollToCursor()},100);XF.EditorHelpers.normalizeBrForEditor(a.$el[0])}});var d={url:XF.getAutoCompleteUrl()};this.mentioner=new XF.AutoCompleter(a.$el[0],d,a);XF.config.shortcodeToEmoji&&(d={url:XF.canonicalizeUrl("index.php?misc/find-emoji"),at:":",keepAt:!1,insertMode:"html",displayTemplate:'<div class="contentRow"><div class="contentRow-figure contentRow-figure--emoji">{{{icon}}}</div><div class="contentRow-main contentRow-main--close">{{{text}}}<div class="contentRow-minor contentRow-minor--smaller">{{{desc}}}</div></div></div>',
beforeInsert(c,f){XF.logRecentEmojiUsage(f.querySelector("img.smilie").dataset.shortname);return c}},this.emojiCompleter=new XF.AutoCompleter(a.$el[0],d,a));this.setupUploads();if(!XF.isEditorEnabled()){for(d=this.target.nextElementSibling;d&&!d.matches("input[data-bb-code]");)d=d.nextElementSibling;d?a.bbCode.toBbCode(d.value,!0):a.bbCode.toBbCode(null,!0)}XF.EditorHelpers.setupBlurSelectionWatcher(a);XF.on(this.target,"control:enabled",function(){a.edit.on()});XF.on(this.target,"control:disabled",
function(){a.edit.off()});XF.on(this.target,"control:enabled",function(){a.edit.on();a.bbCode&&a.bbCode.isBbCodeView()?a.$tb.find(".fr-command[data-cmd=xfBbCode]").removeClass("fr-disabled"):a.toolbar.enable()});XF.on(this.target,"control:disabled",function(){a.edit.off();a.toolbar.disable();a.$tb.find(" > .fr-command").addClass("fr-disabled")});XF.trigger(this.target,XF.customEvent("editor:init",{ed:a,editor:this}));XF.layoutChange()},focus(){XF.EditorHelpers.focus(this.ed)},blur(){XF.EditorHelpers.blur(this.ed)},
normalizePaste(a){a=a.replace(/(<(ul|li|p|div)>)\s+/ig,"$1");a=a.replace(/\s+(<\/(ul|li|p|div)>)/ig,"$1");a=a.replace(/<span>&nbsp;<\/span>/ig," ").replace(/(<\/li>)\s+(<li)/ig,"$1$2");const b=this.ed;a=u.createRange().createContextualFragment(a);const e=XF.createElementFromString("<div></div>");a=Array.from(a.childNodes);e.append(...a);e.querySelectorAll("table").forEach(k=>{k.style.width="100%";const l=XF.createElementFromString('<div class="bbTable"></div>');k.parentNode.insertBefore(l,k);l.appendChild(k);
k.querySelectorAll("[colspan], [rowspan]").forEach(p=>{p.removeAttribute("colspan");p.removeAttribute("rowspan")});let m=0;k.querySelectorAll("> tbody > tr").forEach(p=>{p=p.querySelectorAll("> td, > th").length;m=Math.max(m,p)});k.querySelectorAll("> tbody > tr").forEach(p=>{var q=p.querySelectorAll("> td, > th"),w=q.length;if(w<m)for(q=w&&"TH"===q[0].tagName?"<th />":"<td />";w<m;w++){const x=u.createElement(q);p.appendChild(x)}})});e.querySelectorAll("code, del, ins, sub, sup").forEach(k=>{const l=
u.createTextNode(k.innerHTML);k.parentNode.replaceChild(l,k)});let d=!1;e.querySelectorAll("h1").forEach(k=>{d=!0;const l=u.createElement("h2");l.appendChild(...k.childNodes);k.parentNode.replaceChild(l,k)});const c={H2:d?"H3":"H2",H3:d?"H4":"H3",H4:"H4",H5:"H4",H6:"H4"};e.querySelectorAll("h2, h3, h4, h5, h6").forEach(k=>{const l=u.createElement(c[k.tagName]);l.appendChild(...k.childNodes);k.parentNode.replaceChild(l,k)});if(a=e.querySelector("pre")){var f=a.innerHTML;f=f.replace(/\r?\n/g,"<br>").replace(/\t/g,
"    ").replace(/ {2}/g,"&nbsp; ").replace(/ {2}/g,"&nbsp; ").replace(/> /g,">&nbsp;").replace(/<br> /g,"<br>&nbsp;");var g=u.createElement("div");g.innerHTML=f+"<br>";a.parentNode.replaceChild(g,a)}b.opts.imagePaste||e.querySelectorAll("img[data-fr-image-pasted]").forEach(k=>{k.getAttribute("src").match(/https?:\/\//i)&&k.removeAttribute("data-fr-image-pasted")});e.querySelectorAll("br").forEach(k=>{for(var l=[],m=k.parentNode;m&&m!==e;)l.push(m),m=m.parentNode;if(0!==l.length&&!l.some(x=>b.node.isBlock(x))){m=
[];var p=!1,q=k;l=l[l.length-1];do{for(;q.nextSibling;){var w=q.nextSibling.cloneNode(!0);p?m.push(w):m=m.concat(w);q.parentNode.removeChild(q.nextSibling)}q=q.parentNode;if(!q||q===e)break;w=q.cloneNode();w.innerHTML="";m.forEach(x=>{w.appendChild(x)});m=[w];p=!0}while(q.parentNode&&q.parentNode!==e);k.parentNode.removeChild(k);l.after(...m);l.after(u.createElement("br"))}});a="";f=e.textContent.replace(/\s/g,"");try{a=(b.win.localStorage.getItem("fr-copied-text")||"").replace(/\s/g,"")}catch(k){}a!==
f&&e.querySelectorAll("p:not([data-xf-p])").forEach(k=>{if(k.nextSibling){const l=u.createElement("p");k.parentNode.insertBefore(l,k.nextSibling)}});e.querySelectorAll("p").forEach(k=>k.removeAttribute("data-xf-p"));f=Array.from(e.childNodes);a=u.createElement("div");g=null;for(var n of f)n.nodeType===Node.ELEMENT_NODE&&b.node.isBlock(n)?(a.appendChild(n),g=null):n.nodeType===Node.ELEMENT_NODE&&"BR"===n.tagName?(g||a.appendChild(u.createElement("p")),g=null):(g||(g=u.createElement("p"),a.appendChild(g)),
g.appendChild(n));n=a.children;1!==n.length||"P"!==n[0].tagName&&"DIV"!==n[0].tagName||(a=n[0]);return XF.EditorHelpers.normalizeBrForEditor(a.innerHTML)},watchEditorHeight(){const a=this.ed;XF.on(C,"resize",()=>{const d=this.getHeightLimits();a.opts.heightMin=d[0];a.opts.heightMax=d[1];a.size.refresh();XF.layoutChange()},{passive:!0});a.events.on("focus",()=>this.scrollToCursorAfterPendingResize());let b=a.$wp.height();const e=()=>{const d=a.$wp.height();b!=d&&(b=d,XF.layoutChange())};a.events.on("keyup",
e);a.events.on("commands.after",e);a.events.on("html.set",e);a.events.on("init",e);a.events.on("initialized",e)},getHeightLimits(){let a=this.options.maxHeight;const b=this.options.minHeight;var e=null;let d=null;this.target.closest(".overlay")&&(a=.1);a&&(e=u.documentElement.clientHeight,/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(e-=250),e=Math.floor(0<a?1>=a?e*a:a:e+a),e=Math.max(e,150));b&&e&&(d=Math.min(b,e),d==e&&--d);return[d,e]},setupUploads(){const a=this,b=this.ed;b.events.on("file.uploaded",
function(d){this.popups.hide("file.insert");this.events.focus();return a.handleUploadSuccess(d)});b.events.on("file.error",function(d,c){this.popups.hide("file.insert");a.handleUploadError(d,c);this.events.focus();return!1});this.uploadUrl||(b.events.on("image.beforeUpload",function(){return!1}),b.events.on("file.beforeUpload",function(){return!1}),b.events.on("video.beforeUpload",function(){return!1}));b.events.on("image.error",function(d,c){if(c)return this.popups.hide("image.insert"),a.handleUploadError(d,
c),!1});b.events.on("video.error",function(d,c){if(c)return this.popups.hide("video.insert"),a.handleUploadError(d,c),!1});b.events.on("image.uploaded",function(d){return a.handleUploadSuccess(d,function(){b.image.remove();b.popups.hide("image.insert");b.events.focus();return!1},function(){return!0})});b.events.on("video.uploaded",function(d){return a.handleUploadSuccess(d,function(){b.video.remove();b.popups.hide("video.insert");b.events.focus();return!1},function(){return!0})});const e=function(d,
c){if(c){try{var f=JSON.parse(c)}catch(g){return}d.hasClass("fr-video")&&(d=d.find("video"),d.attr("data-xf-init","video-init").attr("style","").empty());if(f.attachment){f=f.attachment.attachment_id;c=d[0].attributes;const g=/^data-(?!xf-init)/;for(let n=c.length-1;0<=n;n--)g.test(c[n].nodeName)&&d.removeAttr(c[n].nodeName);d.attr("data-attachment","full:"+f)}}};b.events.on("image.inserted video.inserted",e);b.events.on("image.replaced video.replaced",e);b.events.on("image.loaded",function(d){if(b.popups.isVisible("image.edit")){var c=
b.image.get();c&&c[0]==d[0]&&(c.attr("data-size",`${c[0].naturalWidth}x${c[0].naturalHeight}`),b.image.exitEdit(!0),c=b.selection.ranges(0),c.setStartAfter(d[0]),c.collapse(!0),d=b.selection.get(),d.removeAllRanges(),d.addRange(c),b.events.focus(),a.scrollToCursor())}});b.events.on("video.loaded",function(d){if(b.popups.isVisible("video.edit")){var c=b.video.get();c&&c[0]==d[0]&&(b.events.trigger("video.hideResizer"),b.popups.hide("video.edit"),c=b.selection.ranges(0),c.setStartAfter(d[0]),c.collapse(!0),
d=b.selection.get(),d.removeAllRanges(),d.addRange(c),b.events.focus(),a.scrollToCursor())}});b.events.on("popups.show.image.edit",function(){const d=b.image.get();d.length&&d.hasClass("smilie")&&(b.image.exitEdit(!0),b.selection.save(),setTimeout(function(){b.selection.restore()},0))})},handleUploadSuccess(a,b,e){let d;try{d=JSON.parse(a)}catch(c){d={status:"error",errors:[XF.phrase("oops_we_ran_into_some_problems")]}}return d.status&&"error"==d.status?(XF.alert(d.errors[0]),b?b(d):!1):(a=this.getAttachmentManager())&&
d.attachment?(a.insertUploadedRow(d.attachment),e?e(d,a):!1):!1},handleUploadError(a,b){let e;try{e=JSON.parse(b)}catch(d){e=null}e&&e.errors||(e={status:"error",errors:[XF.phrase("oops_we_ran_into_some_problems")]});XF.alert(e.errors[0])},getAttachmentManager(){const a=this.target.closest("[data-xf-init~=attachment-manager]");return a?XF.Element.getHandler(a,"attachment-manager"):null},isBbCodeView(){return this.ed.bbCode&&this.ed.bbCode.isBbCodeView?this.ed.bbCode.isBbCodeView():!1},insertContent(a,
b){const e=this.ed;this.isBbCodeView()?"undefined"!==typeof b&&e.bbCode.insertBbCode(b):(this.focus(),e.undo.saveStep(),e.html.insert(a),e.undo.saveStep(),XF.Element.initialize(e.$el[0]),XF.EditorHelpers.normalizeAfterInsert(e));this.scrollToCursor();this.scrollToCursorAfterPendingResize()},replaceContent(a,b){const e=this.ed;this.isBbCodeView()?"undefined"!==typeof b&&e.bbCode.replaceBbCode(b):e.html.set(a)},scrollToCursor(){const a=this.ed;if(this.isBbCodeView())XF.autofocus(a.bbCode.getTextArea()),
a.$box[0].scrollIntoView(!0);else{this.focus();var b=a.$box;const d=a.$wp,c=a.selection.endElement();var e=c.getBoundingClientRect().bottom;let f=!0,g=XF.windowHeight();XF.browser.ios&&(g-=250);if(0>e||e>=g)f=!1;if(d&&f){const n=d[0].getBoundingClientRect();if(e>n.bottom||e<n.top)f=!1}if(!f){e=b[0].getBoundingClientRect();if(0>e.top||e.bottom>=g)XF.browser.ios||b.addClass("is-scrolling-to"),b[0].scrollIntoView(!0),b.removeClass("is-scrolling-to");d?(b=a.position.getBoundingRect().top,b>d.offset().top-
a.helpers.scrollTop()+d.height()-50&&d.scrollTop(b+d.scrollTop()-(d.height()+d.offset().top)+a.helpers.scrollTop()+g/2)):c.scrollIntoView()}}},scrollToCursorAfterPendingResize(a){const b=function(){c&&clearTimeout(c);c=setTimeout(g,100)},e=this,d=this.ed;let c;const f=function(){XF.off(C,"resize",f);XF.on(C,"scroll",b);c&&clearTimeout(c);c=setTimeout(g,500)},g=function(){XF.off(C,"scroll",b);d.core.hasFocus()&&e.scrollToCursor()};XF.on(C,"resize",f);setTimeout(function(){XF.off(C,"resize",f)},2E3);
a&&(c=setTimeout(g,1E3))},base64ToBytes(a,b){b=b||512;a=atob(a);const e=[];for(let c=0;c<a.length;c+=b){var d=a.slice(c,c+b);const f=Array(d.length);for(let g=0;g<d.length;g++)f[g]=d.charCodeAt(g);d=new Uint8Array(f);e.push(d)}return e},editorSupportsUploads(){return-1!==this.ed.opts.imageInsertButtons.indexOf("imageUpload")},imageMatchesBase64Encoding(a){return a.attr("src").match(/^data:(image\/([a-z0-9]+));base64,(.*)$/)},replaceBase64ImageWithUpload(a){if(!a.hasClass("smilie")){var b;if(b=this.imageMatchesBase64Encoding(a)){var e=
b[1];var d=b[2];b=b[3];-1===this.ed.opts.imageAllowedTypes.indexOf(d)?a[0].remove():this.editorSupportsUploads()?(a=new Blob(this.base64ToBytes(b),{type:e}),1024<a.size&&this.ed.image.upload([a])):a[0].remove()}}},isInitialized(){return this.ed?!0:!1}});XF.EditorButtons=XF.create({xfEd:null,buttonClasses:null,toolbars:{},dropdowns:{},removeButtons:null,recalculateNeeded:!0,__construct(a,b,e){this.xfEd=a;this.removeButtons=[];b&&(this.toolbars=b);e&&(this.dropdowns=e)},addToolbar(a,b){this.toolbars[a]=
b;this.recalculateNeeded=!0},adjustToolbar(a,b){const e=this.toolbars[a];return e?(this.toolbars[a]=b(e,a,this),this.recalculateNeeded=!0):!1},adjustToolbars(a){for(const b of Object.keys(this.toolbars))this.adjustToolbar(b,a)},getToolbar(a){return this.getToolbars()[a]},getToolbars(){this.recalculateIfNeeded();if(XF.EditorHelpers.isPreviewAvailable(this.xfEd.target))for(const a of Object.keys(this.toolbars))this.toolbars[a].preview={buttons:["xfPreview"],align:"right"};return this.toolbars},addDropdown(a,
b){this.dropdowns[a]=b;this.recalculateNeeded=!0},adjustDropdown(a,b){const e=this.dropdowns[a];return e?(this.dropdowns[a]=b(e,a,this),this.recalculateNeeded=!0):!1},adjustDropdowns(a){for(const b of Object.keys(this.dropdowns))this.adjustDropdown(b,a)},getDropdown(a){return this.getDropdowns()[a]},getDropdowns(){this.recalculateIfNeeded();return this.dropdowns},addRemovedButton(a){this.removeButtons.push(a);this.recalculateNeeded=!0},addRemovedButtons(a){for(const b of a)this.removeButtons.push(b);
this.recalculateNeeded=!0},recalculateIfNeeded(){this.recalculateNeeded&&this.recalculate()},recalculate(){function a(k,l){if(!k.filter)return[];"string"==typeof l&&e[l]&&(l=e[l]);"string"==typeof l&&(l=l.split("|"));return k.filter(function(m){return!(0<=l.indexOf(m))})}const b=this.removeButtons,e=this.getButtonClasses();let d,c,f,g,n;for(n=0;n<b.length;n++){d=b[n];for(c of Object.keys(this.toolbars))for(g of Object.keys(this.toolbars[c]))this.toolbars[c][g].buttons=a(this.toolbars[c][g].buttons,
d);for(f of Object.keys(this.dropdowns))this.dropdowns[f]=a(this.dropdowns[f],d)}for(f of Object.keys(this.dropdowns))if(!this.dropdowns[f].length)for(c of Object.keys(this.toolbars))for(g of Object.keys(this.toolbars[c]))this.toolbars[c][g].buttons=a(this.toolbars[c][g].buttons,f);this.recalculateNeeded=!1},getButtonClasses(){this.buttonClasses||(this.buttonClasses={_basic:["bold","italic","underline","strikeThrough"],_extended:["textColor","fontFamily","fontSize","xfInlineCode","paragraphFormat"],
_link:["insertLink"],_align:["align","alignLeft","alignCenter","alignRight","alignJustify"],_list:["formatOL","formatUL","outdent","indent"],_indent:["outdent","indent"],_smilies:["xfSmilie"],_image:["insertImage","xfInsertGif"],_media:["insertVideo","xfMedia"],_block:"xfQuote xfCode xfSpoiler xfInlineSpoiler insertTable insertHR".split(" ")});return this.buttonClasses}});XF.EditorHelpers={toolbarSizes:{SM:420,MD:550,LG:800},setupBlurSelectionWatcher(a){const b=a.$el;let e=!1,d;const c=f=>{e&&(a.$el[0]==
f.target||a.$el[0].contains(f.target)||a.selection.inEditor()&&(d=a.selection.ranges(0)))};XF.on(u,"mousedown",c);XF.on(u,"keydown",c);a.events.on("blur",function(){a.$box.removeClass("is-focused");d?b.data("xf-ed-blur-sel",d):b.removeData("xf-ed-blur-sel");e=!1;d=null},!0);a.events.on("focus",function(){a.$box.addClass("is-focused");e=!0;d=null;setTimeout(function(){b.removeData("xf-ed-blur-sel")},0)});a.events.on("commands.before",function(f){(f=FroalaEditor.COMMANDS[f])&&("undefined"==typeof f.focus||
f.focus)&&XF.EditorHelpers.restoreMaintainedSelection(a)})},restoreMaintainedSelection(a){const b=a.$el.data("xf-ed-blur-sel");a.selection.inEditor()||(b?(a.markers.remove(),a.markers.place(b,!0,0),a.markers.place(b,!1,0)):a.selection.setAtEnd(a.el),a.selection.restore())},focus(a){XF.EditorHelpers.restoreMaintainedSelection(a);a.$tb.addClass("is-focused");a.events.focus()},blur(a){a.$el[0].blur();a.$tb.removeClass("is-focused");a.selection.clear()},sync(a){a.$oel.val(a.html.get())},wrapSelectionText(a,
b,e,d,c){d&&a.selection.save();a.undo.saveStep();d=u.createElement("div");var f=Array.from(a.el.querySelectorAll(".fr-marker")),g=null;if(a.selection.isCollapsed())d.appendChild(f[0]),d.appendChild(f[f.length-1]),f=d.innerHTML;else if(d.appendChild(f[f.length-1]),f=XF.EditorHelpers.bypassBrowserShims(a,()=>a.html.getSelected()),/<p>/i.test(f))if(c){g=u.createElement("div");g.innerHTML=f;const n=g.querySelector("p");n.insertAdjacentHTML("afterbegin",XF.htmlspecialchars(b));n.append(...Array.from(d.children));
n.insertAdjacentHTML("beforeend",XF.htmlspecialchars(e));g=1===g.children.length&&1===g.children[0].children.length?n.innerHTML:g.innerHTML}else f+=d.innerHTML,c=!0;else f+=d.innerHTML;null===g&&(g=XF.htmlspecialchars(b)+f+XF.htmlspecialchars(e));c||(g="<p>"+g+"</p>");a.html.insert(g);a.selection.restore();a.placeholder.hide();a.undo.saveStep();XF.EditorHelpers.normalizeAfterInsert(a)},insertCode(a,b,e){let d;switch(b.toLowerCase()){case "":d="CODE";b="";break;default:d="CODE",b=b.toLowerCase()}e=
e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/\t/g,"    ").replace(/\n /g,"\n&nbsp;").replace(/ {2}/g,"&nbsp; ").replace(/ {2}/g," &nbsp;").replace(/\n/g,"</p><p>");e="["+d+(b?"="+b:"")+"]"+e+"[/"+d+"]";e.match(/<\/p>/i)&&(e=("<p>"+e+"</p>").replace(/<p><\/p>/g,"<p><br></p>"));a.undo.saveStep();a.html.insert(e);a.undo.saveStep();XF.EditorHelpers.normalizeAfterInsert(a)},insertSpoiler(a,b){XF.EditorHelpers.wrapSelectionText(a,b?'[SPOILER="'+b+'"]':
"[SPOILER]","[/SPOILER]",!0)},normalizeBrForEditor(a){const b="string"===typeof a;let e;b?(e=XF.createElementFromString("<div></div>"),e.innerHTML=a):e=a;const d=(c,f)=>c.nodeType!==Node.ELEMENT_NODE?!1:c.matches(f)&&""===c.className&&!c.hasAttribute("id")&&!c.hasAttribute("style");Array.from(e.childNodes).forEach(c=>{if(c.nodeType===Node.ELEMENT_NODE&&c.matches("p")&&1===c.childNodes.length){var f=c.childNodes[0];d(f,"span")&&(c.innerHTML=f.innerHTML)}});Array.from(e.childNodes).forEach(c=>{if(c.nodeType===
Node.ELEMENT_NODE&&c.matches("p")&&!(1>=c.childNodes.length)&&d(c.childNodes[0],"br")){const f=c.parentNode,g=c.firstChild,n=u.createElement("p");n.appendChild(g);f.insertBefore(n,c)}});Array.from(e.childNodes).forEach(c=>{c.nodeType!==Node.ELEMENT_NODE||!c.matches("p")||1>=c.childNodes.length||(c=c.childNodes[c.childNodes.length-1],d(c,"br")&&c.remove())});return b?e.innerHTML:e},normalizeAfterInsert(a){const b=a.html.getSelected();/<br>\s*<\/p>/.test(b)&&(XF.EditorHelpers.normalizeBrForEditor(a.$el[0]),
a.undo_index--,a.undo_stack.pop(),a.undo.saveStep())},isPreviewAvailable(a){return a.dataset.previewUrl||a.closest("form").dataset.previewUrl?!0:!1},dialogs:{},loadDialog(a,b){const e=XF.EditorHelpers.dialogs;e[b]?e[b].show(a):console.error("Unknown dialog '"+b+"'")},bypassBrowserShims(a,b,e=["mozilla"]){const d={};for(const c of e)d[c]=a.browser[c],a.browser[c]=0;try{return b()}finally{for(const c of Object.keys(d))a.browser[c]=d[c]}}};XF.EditorDialog=XF.create({ed:null,overlay:null,dialog:null,
cache:!0,__construct(a){this.dialog=a},show(a){this.ed=a;a.selection.save();XF.loadOverlay(XF.canonicalizeUrl("index.php?editor/dialog&dialog="+this.dialog),{beforeShow:this.beforeShow.bind(this),afterShow:this.afterShow.bind(this),init:this.init.bind(this),cache:this.cache})},init(a){a.on("overlay:hidden",()=>{this.ed&&this.ed.markers.remove()});this._init(a)},_init(a){},beforeShow(a){this.overlay=a;this._beforeShow(a)},_beforeShow(a){},afterShow(a){this._afterShow(a);a.overlay.querySelector("textarea, input").focus()},
_afterShow(a){}});XF.EditorDialogMedia=XF.extend(XF.EditorDialog,{_beforeShow(a){u.querySelector("#editor_media_url").value=""},_init(a){XF.on(u.querySelector("#editor_media_form"),"submit",this.submit.bind(this))},submit(a){a.preventDefault();const b=this.ed,e=this.overlay;XF.ajax("POST",XF.canonicalizeUrl("index.php?editor/media"),{url:u.querySelector("#editor_media_url").value},d=>{d.matchBbCode?(b.selection.restore(),b.undo.saveStep(),b.html.insert(XF.htmlspecialchars(d.matchBbCode)),b.undo.saveStep(),
XF.EditorHelpers.normalizeAfterInsert(b),e.hide()):d.noMatch?XF.alert(d.noMatch):(b.selection.restore(),e.hide())})}});XF.EditorDialogSpoiler=XF.extend(XF.EditorDialog,{_beforeShow(a){u.querySelector("#editor_spoiler_title").value=""},_init(a){XF.on(u.querySelector("#editor_spoiler_form"),"submit",this.submit.bind(this))},submit(a){a.preventDefault();a=this.ed;const b=this.overlay;a.selection.restore();XF.EditorHelpers.insertSpoiler(a,u.querySelector("#editor_spoiler_title").value);b.hide()}});XF.EditorDialogCode=
XF.extend(XF.EditorDialog,{_beforeShow(a){this.ed.$el.blur()},_afterShow(a){a=a.container;var b=a.querySelector(".CodeMirror");const e=this.ed;const d=a.querySelector('[data-xf-init~="code-editor-switcher-container"]');XF.trigger(d,"code-editor:reinit");if(b)var c=b.CodeMirror;e.selection.isCollapsed()?b="":(b=e.html.getSelected().replace(/&nbsp;/gmi," ").replace(/\u200B/g,"").replace(/(<\/(p|div|pre|blockquote|h[1-6]|tr|th|ul|ol|li)>)\s*/gi,"$1\n").replace(/<(li|p)><br><\/\1>\s*/gi,"\n").replace(/<br>\s*/gi,
"\n"),b=u.createRange().createContextualFragment(b).firstChild.textContent.trim());e.selection.save();c?(c.getDoc().setValue(b),c.focus()):(c=a.querySelector(".js-codeEditor"),c.value=b,c.focus())},_init(a){XF.on(u.querySelector("#editor_code_form"),"submit",this.submit.bind(this))},submit(a){a.preventDefault();a=this.ed;const b=this.overlay;var e=b.container.querySelector(".CodeMirror");if(e){e=e.CodeMirror;var d=e.getDoc();e.save();d.setValue("");e.setOption("mode","")}e=u.querySelector("#editor_code_type");
d=u.querySelector("#editor_code_code");a.selection.restore();XF.EditorHelpers.insertCode(a,e.value,d.value);b.hide();d.value="";e.value=""}});XF.editorStart={started:!1,custom:[],startAll(){XF.editorStart.started||(XF.editorStart.setupLanguage(),XF.editorStart.registerOverrides(),XF.editorStart.registerToolbarSizes(),XF.editorStart.registerCommands(),XF.editorStart.registerCustomCommands(),XF.editorStart.registerEditorDropdowns(),XF.editorStart.registerDialogs(),XF.trigger(u,"editor:first-start"),
XF.editorStart.started=!0)},setupLanguage(){const a=XF.isRtl()?"rtl":"ltr";let b;try{b=JSON.parse(u.querySelector(".js-editorLanguage").innerHTML)||{}}catch(e){console.error(e),b={}}FroalaEditor.LANGUAGE.xf={translation:b,direction:a?a.toLowerCase():"ltr"}},registerOverrides(){const a=FroalaEditor.MODULES.helpers;FroalaEditor.MODULES.helpers=function(b,...e){e=a.apply(this,[b,...e]);const d=e.sanitizeURL;e.sanitizeURL=function(c){return d(c).replace(/["]/g,"%22").replace(/[']/g,"%27")};e.screenSize=
function(){function c(g,n){b.$box.data("size",n);return FroalaEditor[XF.hasOwn(FroalaEditor,n)?n:"LG"]}let f;try{f=b.$box.width();const g=XF.EditorHelpers.toolbarSizes;if(0>=f){let n=b.$box[0];for(;n=n.parentNode;)if(f=n.clientWidth,0<f){const k=C.getComputedStyle(n);f-=parseInt(k.paddingLeft,10)+parseInt(k.paddingRight,10);if(0<f)break}}return f<g.SM?c(f,"XS"):f<g.MD?c(f,"SM"):f<g.LG?c(f,"MD"):f<g.LG+50?c(f,"LG"):c(f,"XL")}catch(g){return c(f,"XS")}};return e}},registerToolbarSizes(){let a;try{a=
JSON.parse(u.querySelector(".js-editorToolbarSizes").innerHTML)||{}}catch(b){console.error("Toolbar sizes data not valid: ",b);return}XF.EditorHelpers.toolbarSizes=a},commands:{xfQuote:["quote-right",{title:"Quote",icon:"xfQuote",undo:!0,focus:!0,callback(){this.selection.save();this.html.wrap(!0,!0,!0,!0);this.selection.restore();var a=this.selection.blocks();const b=[];let e=!0,d;var c;1==a.length&&a[0].matches(".fr-temp-div")&&(a=[this.$el.find("p").get(0)]);for(d=0;d<a.length;d++){const f=c=a[d];
let g=null;for("BLOCKQUOTE"==c.tagName&&(g=c);c.parentNode&&c.parentNode!==this.el;)c=c.parentNode,g||"BLOCKQUOTE"!=c.tagName||(g=c);c={original:f,quote:g,root:c};c.quote&&(e=!1);b.push(c)}this.selection.save();if(e)for(a=u.createElement("blockquote"),b[0].root.parentNode.insertBefore(a,b[0].root),d=0;d<b.length;d++)a.append(b[d].root);else for(d=0;d<b.length;d++)if(a=b[d].quote)a.outerHTML=a.innerHTML;this.html.unwrap();this.selection.restore()}}],xfCode:["code",{title:"Code",icon:"xfCode",undo:!0,
focus:!0,callback(){XF.EditorHelpers.loadDialog(this,"code")}}],xfInlineCode:["terminal",{title:"Inline Code",icon:"xfInlineCode",undo:!0,focus:!0,refresh:function(a){const b=this.format.is("code");a.toggleClass("fr-active",b).attr("aria-pressed",b)},callback(){this.format.toggle("code")}}],xfMedia:["photo-video",{title:"Media",icon:"xfMedia",undo:!0,focus:!0,callback(){XF.EditorHelpers.loadDialog(this,"media")}}],xfSpoiler:["eye-slash",{title:"Spoiler",icon:"xfSpoiler",undo:!0,focus:!0,callback(){XF.EditorHelpers.loadDialog(this,
"spoiler")}}],xfInlineSpoiler:["mask",{title:"Inline Spoiler",icon:"xfInlineSpoiler",undo:!0,focus:!0,callback(){XF.EditorHelpers.wrapSelectionText(this,"[ISPOILER]","[/ISPOILER]",!0,!0)}}],xfSmilie:["smile",{title:"Smilies",icon:"xfSmilie",undo:!1,focus:!1,refreshOnCallback:!1,callback(){setTimeout(()=>this.xfSmilie.showMenu(),0)}}],xfInsertGif:["xfInsertGif",{title:"Insert GIF",icon:"xfInsertGif",undo:!1,focus:!1,refreshOnCallback:!1,callback(){setTimeout(()=>this.xfInsertGif.showMenu(),0)}}],xfDraft:["save",
{type:"dropdown",title:"Drafts",focus:!0,undo:!1,options:{xfDraftSave:"Save Draft",xfDraftDelete:"Delete Draft"},html(){const a={xfDraftSave:"Save Draft",xfDraftDelete:"Delete Draft"};let b='<ul class="fr-dropdown-list">';for(const e in a)b+='<li><a class="fr-command" data-cmd="xfDraft" data-param1="'+e+'">'+this.language.translate(a[e])+"</a></li>";return b+"</ul>"},callback(a,b){(a=this.$el[0].closest("form"))?(a=XF.Element.getHandler(a,"draft"))?"xfDraftSave"==b?a.triggerSave():"xfDraftDelete"==
b&&a.triggerDelete():console.error("No draft handler on parent form"):console.error("No parent form to find draft handler")}}],xfBbCode:["brackets",{title:"Toggle BB Code",icon:"xfBbCode",undo:!1,focus:!1,forcedRefresh:!0,callback(){this.bbCode.toggle()}}],xfPreview:["file-search",{title:"Preview",icon:"xfPreview",undo:!1,focus:!1,forcedRefresh:!0,callback(){this.contentPreview.toggle()}}]},registerCommands(){let a;FroalaEditor.PLUGINS.xfInsertGif=function(b){function e(){const h=new IntersectionObserver(c,
{root:w,rootMargin:"0px 0px 100px 0px"});w.querySelectorAll(".js-gif img:not(.js-observed)").forEach(r=>{r.classList.add("js-observed");h.observe(r)});const t=new IntersectionObserver(f,{root:w,rootMargin:"0px 0px 50px 0px"});w.querySelectorAll(".js-gifLoadMore").forEach(r=>{t.observe(r)});w.querySelectorAll(".js-gif").forEach(r=>XF.on(r,"click",d))}function d(h){h=h.currentTarget.querySelector("img");const t=h.parentNode;if(!t.classList.contains("is-loading")){t.classList.add("is-loading");var r=
h.dataset.insert,v=u.createElement("img");v.setAttribute("src",r);v.classList.add("fr-fic","fr-dii","fr-draggable");v.alt=h.alt;h=function(){b.selection.restore();XF.EditorHelpers.focus(b);b.undo.saveStep();b.html.insert(v.outerHTML);b.undo.saveStep();b.selection.save();XF.EditorHelpers.blur(b);XF.EditorHelpers.normalizeAfterInsert(b);q&&q.querySelector(".js-gifCloser").click();t.classList.remove("is-loading")};if(v.complete)h();else XF.on(v,"load",h)}}function c(h,t){for(const r of h)if(h=r.target,
r.isIntersecting)k(h);else a:{if(!h.dataset.loaded)break a;t=h.getAttribute("data-src");const v=h.getAttribute("src");h.setAttribute("src",t);h.setAttribute("data-src",v);h.dataset.loaded=""}}function f(h,t){for(const r of h)r.isIntersecting&&(h=r.target,n(h),t.unobserve(r.target))}function g(h){let t=h;h instanceof Event&&(t=h.target);if(t.offsetParent){var r=t.getBoundingClientRect(),v=r.bottom+100;t.childNodes.forEach(z=>{if(z.nodeType===Node.ELEMENT_NODE){var y=z.getBoundingClientRect();if(!(y.bottom<
r.top)){if(y.top>v)return!1;z.querySelectorAll(".js-gif img").forEach(B=>{B.getBoundingClientRect().top<=v&&k(B)})}}})}}function n(h){h.dataset.loading||(h.dataset.loading="1",XF.ajax("GET",h.dataset.href,t=>{t.html&&XF.setupHtmlInsert(t.html,r=>{const v=(r.matches(".js-gifContainer")?r:r.querySelector(".js-gifContainer")).closest(".js-gifContainer");setTimeout(()=>{h.outerHTML=v.innerHTML;e()},100)})}))}function k(h){if(!h.dataset.loaded){var t=h.getAttribute("data-src"),r=h.getAttribute("src");
h.setAttribute("src",t);h.setAttribute("data-src",r);h.dataset.loaded="1"}}function l(){const h=this,t=q.querySelector(".js-gifFullRow"),r=q.querySelector(".js-gifSearchRow");clearTimeout(A);A=setTimeout(function(){const v=h.value;if(!v||2>v.length)XF.display(r,"none"),XF.display(t),g(t);else{var z=XF.canonicalizeUrl("index.php?editor/insert-gif/search");XF.ajax("GET",z,{q:v},y=>{y.html&&XF.setupHtmlInsert(y.html,B=>{XF.display(t,"none");r.innerHTML=B.outerHTML;XF.display(r);w.scroll({top:0});e()})})}},
300)}let m=!1,p=!1,q,w,x=0,A;return{showMenu:function(){b.selection.save();XF.EditorHelpers.blur(b);var h=b.$tb.find('.fr-command[data-cmd="xfInsertGif"]')[0];if(!m){m=!0;let t=u.querySelector(".js-xfEditorMenu").innerHTML.trim();t=Mustache.render(t,{href:XF.canonicalizeUrl("index.php?editor/insert-gif")});q=u.createRange().createContextualFragment(t).querySelector(".menu");q.classList.add("menu--gif");h.insertAdjacentElement("afterend",q);h.dataset.xfClick="menu";const r=XF.Event.getElementHandler(h,
"menu","click");XF.on(h,"menu:complete",()=>{w=q.querySelector(".menu-scroller");if(!p){p=!0;e();const v=q.querySelector(".js-gifSearch");XF.on(v,"input",l);XF.on(q.querySelector(".js-gifCloser"),"click",()=>XF.EditorHelpers.focus(b));b.events.on("commands.mousedown",z=>{"xfInsertGif"!=z.data("cmd")&&r.close()});XF.on(q,"menu:closed",()=>{x=w.scrollTop})}w.scroll({top:x})});XF.on(q,"menu:closed",()=>{setTimeout(()=>{b.markers.remove()},50)})}(h=XF.DataStore.get(h,"xf-click-handlers"))&&h.menu&&h.menu.toggle()}}};
FroalaEditor.PLUGINS.xfSmilie=function(b){function e(h){const t=h.currentTarget,r=t.innerHTML;if(!t.classList.contains("smilie--lazyLoad")){XF.EditorHelpers.bypassBrowserShims(b,()=>{b.selection.restore();XF.EditorHelpers.focus(b);b.undo.saveStep();b.html.insert(r);b.undo.saveStep();b.selection.save();XF.EditorHelpers.blur(b);XF.EditorHelpers.normalizeAfterInsert(b)});if(m){const v=m.querySelector(".js-emojiInsertedRow");v.querySelector(".js-emojiInsert").innerHTML=r;XF.Transition.addClassTransitioned(v,
"is-active");clearTimeout(w);w=setTimeout(()=>XF.Transition.removeClassTransitioned(v,"is-active"),1500)}clearTimeout(x);x=setTimeout(()=>XF.logRecentEmojiUsage(t.dataset.shortname),1500)}}function d(h,t){for(const r of h)r.isIntersecting&&(h=r.target,f(h),t.unobserve(r.target))}function c(h,t){let r=h;h instanceof Event&&(r=h.target);if(t||r.offsetParent){var v=r.getBoundingClientRect(),z=v.bottom+100;r.childNodes.forEach(y=>{if(y.nodeType===Node.ELEMENT_NODE){var B=y.getBoundingClientRect();if(!(B.bottom<
v.top)){if(B.top>z)return!1;y.querySelectorAll("span.smilie--lazyLoad").forEach(D=>{D.getBoundingClientRect().top<=z&&f(D)})}}})}}function f(h){const t=XF.createElement("img",{className:h.getAttribute("class").replace(/(\s|^)smilie--lazyLoad(\s|$)/," "),alt:h.getAttribute("data-alt"),title:h.getAttribute("title"),src:h.getAttribute("data-src"),dataset:{shortname:h.dataset.shortname}}),r=()=>{C.requestAnimationFrame(()=>{h.outerHTML=t.outerHTML})};if(t.complete)XF.on(t,"load",r);else r()}function g(){const h=
this,t=m.querySelector(".js-emojiFullList"),r=m.querySelector(".js-emojiSearchResults");clearTimeout(A);A=setTimeout(()=>{const v=h.value;if(!v||2>v.length)XF.display(r,"none"),XF.display(t),c(t);else{var z=XF.canonicalizeUrl("index.php?editor/smilies-emoji/search");XF.ajax("GET",z,{q:v},y=>{y.html&&XF.setupHtmlInsert(y.html,B=>{XF.display(t,"none");r.innerHTML=B.outerHTML;XF.display(r);r.querySelectorAll(".js-emoji").forEach(D=>{XF.on(D,"click",e)})})})}},300)}function n(){let h;const t=XF.getRecentEmojiUsage(),
r=p.querySelector(".js-recentHeader"),v=p.querySelector(".js-recentBlock"),z=v.querySelector(".js-recentList"),y=p.querySelectorAll(".js-emojiList");if(t){var B=z.cloneNode(!0),D=[];B.innerHTML="";for(h in t){const F=t[h];y.forEach(E=>{if(E=E.querySelector(`.js-emoji[data-shortname="${F}"]`))return E=E.closest("li").cloneNode(!0),D.push(E),!1})}for(h in D)B.appendChild(D[h]);z.innerHTML=B.innerHTML;z.querySelectorAll(".js-emoji").forEach(F=>{XF.on(F,"click",e)});v.classList.contains("is-hidden")&&
(XF.display(v,"none"),v.classList.remove("is-hidden"),r.classList.remove("is-hidden"),XF.Animate.fadeDown(v,{speed:XF.config.speed.fast}));c(z,!0)}}let k=!1,l=!1,m,p,q=0,w,x,A;return{showMenu:function(){b.selection.save();XF.EditorHelpers.blur(b);var h=b.$tb.find('.fr-command[data-cmd="xfSmilie"]')[0];if(!k){k=!0;let t=u.querySelector(".js-xfEditorMenu").innerHTML.trim();t=Mustache.render(t,{href:XF.canonicalizeUrl("index.php?editor/smilies-emoji")});m=u.createRange().createContextualFragment(t).querySelector(".menu");
m.classList.add("menu--emoji");h.insertAdjacentElement("afterend",m);h.dataset.xfClick="menu";const r=XF.Event.getElementHandler(h,"menu","click");XF.on(h,"menu:complete",()=>{p=m.querySelector(".menu-scroller");if(!l){l=!0;const v=new IntersectionObserver(d,{root:p,rootMargin:"0px 0px 100px 0px"});p.querySelectorAll("span.smilie--lazyLoad").forEach(y=>{v.observe(y)});p.querySelectorAll(".js-emoji").forEach(y=>XF.on(y,"click",e));const z=m.querySelector(".js-emojiSearch");XF.on(z,"input",g);XF.on(m.querySelector(".js-emojiCloser"),
"click",()=>XF.EditorHelpers.focus(b));XF.on(u,"recent-emoji:logged",n);b.events.on("commands.mousedown",y=>{"xfSmilie"!=y.data("cmd")&&r.close()});XF.on(m,"menu:closed",()=>{q=p.scrollTop})}p.scroll({top:q})});XF.on(m,"menu:closed",()=>setTimeout(()=>b.markers.remove(),50))}(h=XF.DataStore.get(h,"xf-click-handlers"))&&h.menu&&h.menu.toggle()}}};XF.extendObject(FroalaEditor.DEFAULTS,{xfBbCodeAttachmentContextInput:"attachment_hash_combined"});FroalaEditor.PLUGINS.bbCode=function(b){function e(){return b.$tb.find(".fr-command[data-cmd=xfBbCode]")[0]}
function d(){const k=b.$oel;let l=k.data("xfBbCodeBox");if(!l){const m=parseInt(b.$wp.css("border-bottom-width"),10)+parseInt(b.$wp.css("border-top-width"),10);l=XF.createElementFromString('<textarea class="input" style="display: none"></textarea>');l.setAttribute("aria-label",XF.htmlspecialchars(XF.phrase("rich_text_box")));Object.assign(l.style,{minHeight:b.opts.heightMin?b.opts.heightMin+m+"px":null,maxHeight:b.opts.heightMax?b.opts.heightMax+"px":null,height:b.opts.height?b.opts.height+m+"px":
null,padding:b.$el.css("padding")});l.setAttribute("name",k.data("original-name"));k.data("xfBbCodeBox",l);b.$wp.after(l);XF.on(l,"focus",p=>b.$box.addClass("is-focused"));XF.on(l,"blur",p=>b.$box.removeClass("is-focused"));setTimeout(()=>{XF.Element.applyHandler(l,"textarea-handler");XF.Element.applyHandler(l,"user-mentioner");XF.Element.applyHandler(l,"emoji-completer");XF.isElementWithinDraftForm(l)&&XF.Element.applyHandler(l,"draft-trigger")},100)}return l}function c(k){return Array.from(b.$tb[0].querySelectorAll(".fr-btn-grp .fr-command, .fr-more-toolbar .fr-command")).filter(l=>
!l.isSameNode(k)&&!l.getAttribute("data-cmd").startsWith("more")&&"xfPreview"!==l.getAttribute("data-cmd"))}function f(k,l){const m=d(),p=function(q,w){n=!0;let x;b.undo.saveStep();b.$el.blur();x=e();c(x).forEach(A=>A.classList.add("fr-disabled"));x.classList.add("fr-active");b.$wp.css("display","none");b.$oel.attr("disabled","disabled");m.value=q;XF.display(m);m.disabled=!1;XF.trigger(m,"autosize");w||m.focus();XF.setIsEditorEnabled(!1)};"string"==typeof k?p(k,l):XF.ajax("POST",XF.canonicalizeUrl("index.php?editor/to-bb-code"),
{html:b.html.get()},function(q){p(q.bbCode,l)})}function g(k){const l=d(),m=function(p){n=!1;const q=e();c(q).forEach(w=>w.classList.remove("fr-disabled"));q.classList.remove("fr-active");b.$oel.removeAttr("disabled");b.html.set(p);XF.display(l,"none");l.disabled=!0;b.$wp.css("display","");b.events.focus();b.undo.saveStep();b.size.refresh();XF.setIsEditorEnabled(!0);XF.layoutChange()};if("string"==typeof k)m(k);else{k={bb_code:l.value};const p=b.$el[0].closest("form");p&&p[b.opts.xfBbCodeAttachmentContextInput]&&
(k.attachment_hash_combined=p[b.opts.xfBbCodeAttachmentContextInput].value);XF.ajax("POST",XF.canonicalizeUrl("index.php?editor/to-html"),k,function(q){m(q.editorHtml)})}}let n=!1;return{_init:function(){b.events.on("buttons.refresh",function(){return!n})},getBbCodeBox:d,toBbCode:f,isBbCodeView:function(){return n},getTextArea:function(){return n?d():null},insertBbCode:function(k){if(n){var l=d();XF.insertIntoTextBox(l,k)}},replaceBbCode:function(k){if(n){var l=d();XF.replaceIntoTextBox(l,k)}},toHtml:g,
toggle:function(){n?g():f()},getToggleableButtons:function(){return c(e())}}};FroalaEditor.PLUGINS.contentPreview=function(b){function e(){return b.$tb.find(".fr-command[data-cmd=xfPreview]")[0]}function d(){const m=b.$oel;var p=m.data("xfPreviewBox");if(!p){p=C.getComputedStyle(b.$el[0]);const q={paddingTop:p.paddingTop,paddingRight:p.paddingRight,paddingBottom:p.paddingBottom,paddingLeft:p.paddingLeft,minHeight:b.opts.heightMin?b.opts.heightMin+"px":null};p=XF.createElementFromString('<div class="xfPreview" style="display:none"></div>');
Object.assign(p.style,q);m.data("xfPreviewBox",p);b.$wp.after(p)}return p}function c(m){const p=b.$tb[0].querySelectorAll(".fr-btn-grp .fr-command");return Array.from(p).filter(q=>q!==m)}function f(m){const p=d(),q=function(x){l=!0;b.undo.saveStep();b.$el.blur();b.$tb.find('.fr-command.fr-open[data-cmd^="more"]').each(function(){b.commands.exec(this.getAttribute("data-cmd"))});var A=e();c(A).forEach(h=>{h.classList.add("fr-disabled","fr-invisible")});A.classList.add("fr-active");b.$tb.find(".fr-btn-grp").addClass("rte-tab--inactive").filter(".rte-tab--preview").removeClass("rte-tab--inactive");
b.$box.addClass("is-preview");b.bbCode.isBbCodeView()?(A=b.bbCode.getBbCodeBox(),XF.display(A,"none")):b.$wp.css("display","none");p.innerHTML="";p.append(...x.querySelector(".bbWrapper").childNodes);XF.display(p)};if("string"==typeof m)m=u.createRange().createContextualFragment(m),q(m.firstChild);else{b.events.trigger("form.submit");var w=b.$oel.closest("form")[0];m=b.$oel.data("preview-url")?b.$oel.data("preview-url"):w.dataset.previewUrl;w=XF.getDefaultFormData(w);XF.ajax("POST",XF.canonicalizeUrl(m),
w,x=>{XF.setupHtmlInsert(x.html,A=>{XF.activate(A);q(A)})})}}function g(m){var p=d();const q=e(),w=b.bbCode.isBbCodeView();l=!1;c(q).forEach(x=>x.classList.remove("fr-disabled","fr-invisible"));q&&q.classList.remove("fr-active");w&&b.bbCode.getToggleableButtons().forEach(x=>x.classList.add("fr-disabled"));b.$tb.find(".fr-btn-grp").removeClass("rte-tab--inactive").filter(".rte-tab--preview").addClass("rte-tab--inactive");b.$oel.removeAttr("disabled");XF.display(p,"none");b.$box.removeClass("is-preview");
w?(p=b.bbCode.getBbCodeBox(),XF.display(p)):b.$wp.css("display","");m||b.events.focus();XF.layoutChange()}function n(){const m=b.$oel[0];XF.EditorHelpers.isPreviewAvailable(m)&&(l?g():(XF.EditorHelpers.sync(b),(b.bbCode&&b.bbCode.isBbCodeView()?b.bbCode.getBbCodeBox().value:m.value)&&f()))}function k(){const m=b.$tb.find(".fr-btn-grp");XF.EditorHelpers.isPreviewAvailable(b.$oel[0])?(m.slice(m.length-1).addClass("rte-tab--inactive rte-tab--preview"),m.slice(m.length-2,m.length-1).addClass("rte-tab--beforePreview")):
m.slice(m.length-1).addClass("rte-tab--beforePreview")}let l=!1;return{_init:function(){b.events.on("buttons.refresh",function(){return!l});k();b.events.on("codeView.toggle",function(){k()});b.$tb.on("click",function(m){l&&(m.target.closest(".rte-tab--preview")||n())});XF.on(b.$tb[0].closest("form"),"preview:hide",function(){g(!0)})},toPreview:f,isPreview:function(){return l},toHtml:g,toggle:n}};for(a of Object.keys(this.commands))FroalaEditor.DefineIcon(a,{NAME:this.commands[a][0]}),FroalaEditor.RegisterCommand(a,
this.commands[a][1])},registerCustomCommands(){let a;try{a=JSON.parse(u.querySelector(".js-editorCustom").innerHTML)||{}}catch(b){console.error(b),a={}}for(const b of Object.keys(a))(function(e,d){const c="xfCustom_"+e,f=e.toUpperCase();e={};if("fa"==d.type)if(e=d.value.match(/^(?:(fa(?:[lrsdb]))\s)?fa-(.+)$/)){var g;const n=null!=(g=e[1])?g:"fa";e={FA5NAME:e[2],template:`${n}_svg`}}else e={NAME:d.value};else"svg"==d.type?e={template:"svg",PATH:d.value}:"image"==d.type&&(e={template:"image",SRC:'"'+
XF.canonicalizeUrl(d.value)+'"',ALT:'"'+d.title+'"'});g={title:d.title,icon:c,undo:!0,focus:!0,callback(){XF.EditorHelpers.wrapSelectionText(this,"yes"==d.option?"["+f+"=]":"["+f+"]","[/"+f+"]",!0)}};FroalaEditor.DefineIcon(c,e);FroalaEditor.RegisterCommand(c,g);XF.editorStart.custom.push(c)})(b,a[b]);FroalaEditor.DefineIcon("xfInsertGif",{template:"svg",PATH:"M11.5 9H13v6h-1.5zM9 9H6c-.6 0-1 .5-1 1v4c0 .5.4 1 1 1h3c.6 0 1-.5 1-1v-2H8.5v1.5h-2v-3H10V10c0-.5-.4-1-1-1zm10 1.5V9h-4.5v6H16v-2h2v-1.5h-2v-1z"});
FroalaEditor.DefineIcon("textColor",{NAME:"palette"});FroalaEditor.DefineIcon("fontFamily",{NAME:"font"});FroalaEditor.DefineIcon("fontSize",{NAME:"text-size"});FroalaEditor.DefineIcon("tableColumns",{NAME:"line-columns"});FroalaEditor.DefineIcon("insertHR",{NAME:"horizontal-rule"})},registerEditorDropdowns(){let a;try{a=JSON.parse(u.querySelector(".js-editorDropdowns").innerHTML)||{}}catch(b){console.error("Editor dropdowns data not valid: ",b),a={}}for(const b of Object.keys(a))(function(e,d){d.icon=
d.icon.substr(3);FroalaEditor.DefineIcon(e,{NAME:d.icon});FroalaEditor.RegisterCommand(e,{type:"dropdown",title:d.title,icon:e,undo:!1,focus:!1,html(){let c='<ul class="fr-dropdown-list">',f=d.buttons;var g;let n;(g=XF.getEditorInContainer(this.$oel[0]))&&g.buttonManager&&(f=g.buttonManager.getDropdown(e));for(const k in f)g=f[k],(n=FroalaEditor.COMMANDS[g])&&(c+='<li><a class="fr-command" data-cmd="'+g+'">'+this.icon.create(n.icon||g)+"&nbsp;&nbsp;"+this.language.translate(n.title)+"</a></li>");
return c+"</ul>"}})})(b,a[b])},registerDialogs(){XF.EditorHelpers.dialogs.media=new XF.EditorDialogMedia("media");XF.EditorHelpers.dialogs.spoiler=new XF.EditorDialogSpoiler("spoiler");XF.EditorHelpers.dialogs.code=new XF.EditorDialogCode("code")}};XF.on(u,"editor:start",XF.editorStart.startAll,{once:!0});XF.EditorPlaceholderClick=XF.Event.newHandler({eventNameSpace:"XFEditorPlaceholderClick",options:{},edInitialized:!1,init(){},click(a){a=this.target;const b=this;a.querySelector(".editorPlaceholder-editor").classList.remove("is-hidden");
a.querySelector(".editorPlaceholder-placeholder").classList.add("is-hidden");a=XF.getEditorInContainer(a);a instanceof XF.Editor?this.edInitialized||a.startInit({beforeInit(){b.edInitialized=!0},afterInit(e,d){d.events.focus(!0);XF.isIOS()&&(e.scrollToCursor(),e.scrollToCursorAfterPendingResize());d.opts.tooltips&&setTimeout(()=>{d.tooltip.hide()},30)}}):a instanceof Element&&a.focus()}});XF.Event.register("click","editor-placeholder","XF.EditorPlaceholderClick");XF.Element.register("editor","XF.Editor")})(window,
document);