2 lines
537 KiB
JavaScript
2 lines
537 KiB
JavaScript
/*! For license information please see 3672.ec397cd3.bundle.js.LICENSE.txt */
|
||
(self.webpackChunkamis_rpc_design=self.webpackChunkamis_rpc_design||[]).push([[3672],{80214:function(e){e.exports=function(){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,n,r){if("string"!=typeof e)return new t.Bootstrap(e,n,r);var a=document.querySelectorAll(e);n&&n.iframe_document&&(a=n.iframe_document.querySelectorAll(e));for(var o=[],i=0;i<a.length;i++){var s=a[i]["data-froala.editor"];s?o.push(s):o.push(new t.Bootstrap(a[i],n,r))}return 1==o.length?o[0]:o}Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;if(!document.documentElement.contains(t))return null;do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.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(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=t.length;0<=--n&&t.item(n)!==this;);return-1<n}),Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(e),r=1;r<arguments.length;r++){var a=arguments[r];if(null!=a)for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])}return n},writable:!0,configurable:!0}),function(){var e=/^\s*:scope/gi,t=/,\s*:scope/gi,n=document.createElement("div");function r(r,a){var o=r[a];r[a]=function(r){var a,i=!1,s=!1;if(r&&(r.match(e)||r.match(t))){this.parentNode||(n.appendChild(this),s=!0);var l=this.parentNode;return this.id||(this.id="rootedQuerySelector_id_".concat((new Date).getTime()),i=!0),a=o.call(l,r.replace(e,"#".concat(this.id)).replace(t,",#".concat(this.id))),i&&(this.id=""),s&&n.removeChild(this),a}return o.call(this,r)}}try{n.querySelectorAll(":scope *")}catch(e){r(Element.prototype,"querySelector"),r(Element.prototype,"querySelectorAll"),r(HTMLElement.prototype,"querySelector"),r(HTMLElement.prototype,"querySelectorAll")}}(),t.RegisterPlugins=function(e){for(var n=0;n<e.length;n++)e[n].call(t)},Object.assign(t,{DEFAULTS:{initOnClick:!1,pluginsEnabled:null},MODULES:{},PLUGINS:{},VERSION:"3.1.0",INSTANCES:[],OPTS_MAPPING:{},SHARED:{},ID:0}),t.MODULES.node=function(e){var n=e.$;function r(e){return e&&"IFRAME"!==e.tagName?Array.prototype.slice.call(e.childNodes||[]):[]}function a(e){return!!e&&e.nodeType===Node.ELEMENT_NODE&&0<=t.BLOCK_TAGS.indexOf(e.tagName.toLowerCase())}function o(e){var t={},n=e.attributes;if(n)for(var r=0;r<n.length;r++){var a=n[r];t[a.nodeName]=a.value}return t}function i(e){for(var t="",n=o(e),r=Object.keys(n).sort(),a=0;a<r.length;a++){var i=r[a],s=n[i];s.indexOf("'")<0&&0<=s.indexOf('"')?t+=" ".concat(i,"='").concat(s,"'"):(0<=s.indexOf('"')&&0<=s.indexOf("'")&&(s=s.replace(/"/g,""")),t+=" ".concat(i,'="').concat(s,'"'))}return t}function s(t){return t===e.el}return{isBlock:a,isEmpty:function(n,o){if(!n)return!0;if(n.querySelector("table"))return!1;var i=r(n);1===i.length&&a(i[0])&&(i=r(i[0]));for(var s=!1,l=0;l<i.length;l++){var c=i[l];if(!(o&&e.node.hasClass(c,"fr-marker")||c.nodeType===Node.TEXT_NODE&&0===c.textContent.length)){if("BR"!==c.tagName&&0<(c.textContent||"").replace(/\u200B/gi,"").replace(/\n/g,"").length)return!1;if(s)return!1;"BR"===c.tagName&&(s=!0)}}return!(n.querySelectorAll(t.VOID_ELEMENTS.join(",")).length-n.querySelectorAll("br").length||n.querySelector("".concat(e.opts.htmlAllowedEmptyTags.join(":not(.fr-marker),"),":not(.fr-marker)"))||1<n.querySelectorAll(t.BLOCK_TAGS.join(",")).length||n.querySelector("".concat(e.opts.htmlDoNotWrapTags.join(":not(.fr-marker),"),":not(.fr-marker)")))},blockParent:function(t){for(;t&&t.parentNode!==e.el&&(!t.parentNode||!e.node.hasClass(t.parentNode,"fr-inner"));)if(a(t=t.parentNode))return t;return null},deepestParent:function(n,r,o){if(void 0===r&&(r=[]),void 0===o&&(o=!0),r.push(e.el),0<=r.indexOf(n.parentNode)||n.parentNode&&e.node.hasClass(n.parentNode,"fr-inner")||n.parentNode&&0<=t.SIMPLE_ENTER_TAGS.indexOf(n.parentNode.tagName)&&o)return null;for(;r.indexOf(n.parentNode)<0&&n.parentNode&&!e.node.hasClass(n.parentNode,"fr-inner")&&(t.SIMPLE_ENTER_TAGS.indexOf(n.parentNode.tagName)<0||!o)&&(!a(n)||a(n.parentNode))&&(!a(n)||!a(n.parentNode)||!o);)n=n.parentNode;return n},rawAttributes:o,attributes:i,clearAttributes:function(e){for(var t=e.attributes,n=t.length-1;0<=n;n--){var r=t[n];e.removeAttribute(r.nodeName)}},openTagString:function(e){return"<".concat(e.tagName.toLowerCase()).concat(i(e),">")},closeTagString:function(e){return"</".concat(e.tagName.toLowerCase(),">")},isFirstSibling:function t(n,r){void 0===r&&(r=!0);for(var a=n.previousSibling;a&&r&&e.node.hasClass(a,"fr-marker");)a=a.previousSibling;return!a||a.nodeType===Node.TEXT_NODE&&""===a.textContent&&t(a)},isLastSibling:function t(n,r){void 0===r&&(r=!0);for(var a=n.nextSibling;a&&r&&e.node.hasClass(a,"fr-marker");)a=a.nextSibling;return!a||a.nodeType===Node.TEXT_NODE&&""===a.textContent&&t(a)},isList:function(e){return!!e&&0<=["UL","OL"].indexOf(e.tagName)},isLink:function(e){return!!e&&e.nodeType===Node.ELEMENT_NODE&&"a"===e.tagName.toLowerCase()},isElement:s,contents:r,isVoid:function(e){return e&&e.nodeType===Node.ELEMENT_NODE&&0<=t.VOID_ELEMENTS.indexOf((e.tagName||"").toLowerCase())},hasFocus:function(t){return t===e.doc.activeElement&&(!e.doc.hasFocus||e.doc.hasFocus())&&Boolean(s(t)||t.type||t.href||~t.tabIndex)},isEditable:function(e){return(!e.getAttribute||"false"!==e.getAttribute("contenteditable"))&&["STYLE","SCRIPT"].indexOf(e.tagName)<0},isDeletable:function(e){return e&&e.nodeType===Node.ELEMENT_NODE&&e.getAttribute("class")&&0<=(e.getAttribute("class")||"").indexOf("fr-deletable")},hasClass:function(e,t){return e instanceof n&&(e=e.get(0)),e&&e.classList&&e.classList.contains(t)},filter:function(t){return e.browser.msie?t:{acceptNode:t}}}},Object.assign(t.DEFAULTS,{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"],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"],htmlAllowedStyleProps:[".*"],htmlAllowComments:!0,htmlUntouched:!1,fullPage:!1}),t.HTML5Map={B:"STRONG",I:"EM",STRIKE:"S"},t.MODULES.clean=function(e){var n,r,a,o,i=e.$;function s(t){if(t.nodeType===Node.ELEMENT_NODE&&t.getAttribute("class")&&0<=t.getAttribute("class").indexOf("fr-marker"))return!1;var n,r=e.node.contents(t),a=[];for(n=0;n<r.length;n++)r[n].nodeType!==Node.ELEMENT_NODE||e.node.isVoid(r[n])?r[n].nodeType===Node.TEXT_NODE&&(r[n].textContent=r[n].textContent.replace(/\u200b/g,"")):r[n].textContent.replace(/\u200b/g,"").length!==r[n].textContent.length&&s(r[n]);if(t.nodeType===Node.ELEMENT_NODE&&!e.node.isVoid(t)&&(t.normalize(),r=e.node.contents(t),a=t.querySelectorAll(".fr-marker"),r.length-a.length==0)){for(n=0;n<r.length;n++)if(r[n].nodeType===Node.ELEMENT_NODE&&(r[n].getAttribute("class")||"").indexOf("fr-marker")<0)return!1;for(n=0;n<a.length;n++)t.parentNode.insertBefore(a[n].cloneNode(!0),t);return t.parentNode.removeChild(t),!1}}function l(t,n){if(t.nodeType===Node.COMMENT_NODE)return"\x3c!--".concat(t.nodeValue,"--\x3e");if(t.nodeType===Node.TEXT_NODE)return n?t.textContent.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"):t.textContent.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\u00A0/g," ").replace(/\u0009/g,"");if(t.nodeType!==Node.ELEMENT_NODE)return t.outerHTML;if(t.nodeType===Node.ELEMENT_NODE&&0<=["STYLE","SCRIPT","NOSCRIPT"].indexOf(t.tagName))return t.outerHTML;if(t.nodeType===Node.ELEMENT_NODE&&"svg"===t.tagName){var r=document.createElement("div"),a=t.cloneNode(!0);return r.appendChild(a),r.innerHTML}if("IFRAME"===t.tagName)return t.outerHTML.replace(/</g,"<").replace(/>/g,">");var o=t.childNodes;if(0===o.length)return t.outerHTML;for(var i="",s=0;s<o.length;s++)"PRE"===t.tagName&&(n=!0),i+=l(o[s],n);return e.node.openTagString(t)+i+e.node.closeTagString(t)}var c=[];function d(e){var t=e.replace(/;;/gi,";");return";"!==(t=t.replace(/^;/gi,"")).charAt(t.length)&&(t+=";"),t}function f(t){var n;for(n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=n.match(a),i=null;"style"===n&&e.opts.htmlAllowedStyleProps.length&&(i=t[n].match(o)),r&&i?t[n]=d(i.join(";")):r&&("style"!==n||i)||delete t[n]}for(var s="",l=Object.keys(t).sort(),c=0;c<l.length;c++)t[n=l[c]].indexOf('"')<0?s+=" ".concat(n,'="').concat(t[n],'"'):s+=" ".concat(n,"='").concat(t[n],"'");return s}function p(t,n){var r,a=document.implementation.createHTMLDocument("Froala DOC").createElement("DIV");i(a).append(t);var o="";if(a){var s=e.node.contents(a);for(r=0;r<s.length;r++)n(s[r]);for(s=e.node.contents(a),r=0;r<s.length;r++)o+=l(s[r])}return o}function u(t,n,r){var a=t=function(e){return c=[],(e=(e=(e=e.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,(function(e){return c.push(e),"[FROALA.EDITOR.SCRIPT ".concat(c.length-1,"]")}))).replace(/<noscript\b[^<]*(?:(?!<\/noscript>)<[^<]*)*<\/noscript>/gi,(function(e){return c.push(e),"[FROALA.EDITOR.NOSCRIPT ".concat(c.length-1,"]")}))).replace(/<meta((?:[\w\W]*?)) http-equiv="/g,'<meta$1 data-fr-http-equiv="')).replace(/<img((?:[\w\W]*?)) src="/g,'<img$1 data-fr-src="')}(t),o=null;return e.opts.fullPage&&(a=e.html.extractNode(t,"body")||(0<=t.indexOf("<body")?"":t),r&&(o=e.html.extractNode(t,"head")||"")),a=p(a,n),o&&(o=p(o,n)),function(t){return(t=(t=t.replace(/\[FROALA\.EDITOR\.SCRIPT ([\d]*)\]/gi,(function(t,n){return 0<=e.opts.htmlRemoveTags.indexOf("script")?"":c[parseInt(n,10)]}))).replace(/\[FROALA\.EDITOR\.NOSCRIPT ([\d]*)\]/gi,(function(t,n){return 0<=e.opts.htmlRemoveTags.indexOf("noscript")?"":c[parseInt(n,10)].replace(/</g,"<").replace(/>/g,">")}))).replace(/<img((?:[\w\W]*?)) data-fr-src="/g,'<img$1 src="')}(function(t,n,r){if(e.opts.fullPage){var a=e.html.extractDoctype(r),o=f(e.html.extractNodeAttrs(r,"html"));n=null===n?e.html.extractNode(r,"head")||"<title></title>":n;var i=f(e.html.extractNodeAttrs(r,"head")),s=f(e.html.extractNodeAttrs(r,"body"));return"".concat(a,"<html").concat(o,"><head").concat(i,">").concat(n,"</head><body").concat(s,">").concat(t,"</body></html>")}return t}(a,o,t))}function h(t){var n=e.doc.createElement("DIV");return n.innerText=t,n.textContent}function g(i){for(var s=e.node.contents(i),l=0;l<s.length;l++)s[l].nodeType!==Node.TEXT_NODE&&g(s[l]);!function(i){if("SPAN"===i.tagName&&0<=(i.getAttribute("class")||"").indexOf("fr-marker"))return!1;if("PRE"===i.tagName&&function(e){var t=e.innerHTML;0<=t.indexOf("\n")&&(e.innerHTML=t.replace(/\n/g,"<br>"))}(i),i.nodeType===Node.ELEMENT_NODE&&(i.getAttribute("data-fr-src")&&0!==i.getAttribute("data-fr-src").indexOf("blob:")&&i.setAttribute("data-fr-src",e.helpers.sanitizeURL(h(i.getAttribute("data-fr-src")))),i.getAttribute("href")&&i.setAttribute("href",e.helpers.sanitizeURL(h(i.getAttribute("href")))),i.getAttribute("src")&&i.setAttribute("src",e.helpers.sanitizeURL(h(i.getAttribute("src")))),0<=["TABLE","TBODY","TFOOT","TR"].indexOf(i.tagName)&&(i.innerHTML=i.innerHTML.trim())),!e.opts.pasteAllowLocalImages&&i.nodeType===Node.ELEMENT_NODE&&"IMG"===i.tagName&&i.getAttribute("data-fr-src")&&0===i.getAttribute("data-fr-src").indexOf("file://"))return i.parentNode.removeChild(i),!1;if(i.nodeType===Node.ELEMENT_NODE&&t.HTML5Map[i.tagName]&&""===e.node.attributes(i)){var s=t.HTML5Map[i.tagName],l="<".concat(s,">").concat(i.innerHTML,"</").concat(s,">");i.insertAdjacentHTML("beforebegin",l),(i=i.previousSibling).parentNode.removeChild(i.nextSibling)}if(e.opts.htmlAllowComments||i.nodeType!==Node.COMMENT_NODE)if(i.tagName&&i.tagName.match(r))"STYLE"==i.tagName&&e.helpers.isMac()&&function(){for(var e,t=i.innerHTML.trim(),n=[],r=/{([^}]+)}/g;e=r.exec(t);)n.push(e[1]);for(var a=function(e){var r=t.substring(0,t.indexOf("{")).trim();i.parentNode.querySelectorAll(r).forEach((function(t){t.removeAttribute("class"),t.setAttribute("style",n[e])})),t=t.substring(t.indexOf("}")+1)},o=0;-1!=t.indexOf("{");o++)a(o)}(),i.parentNode.removeChild(i);else if(i.tagName&&!i.tagName.match(n))"svg"===i.tagName?i.parentNode.removeChild(i):e.browser.safari&&"path"===i.tagName&&i.parentNode&&"svg"===i.parentNode.tagName||(i.outerHTML=i.innerHTML);else{var c=i.attributes;if(c)for(var f=c.length-1;0<=f;f--){var p=c[f],u=p.nodeName.match(a),g=null;"style"===p.nodeName&&e.opts.htmlAllowedStyleProps.length&&(g=p.value.match(o)),u&&g?p.value=d(g.join(";")):u&&("style"!==p.nodeName||g)||i.removeAttribute(p.nodeName)}}else 0!==i.data.indexOf("[FROALA.EDITOR")&&i.parentNode.removeChild(i)}(i)}return{_init:function(){e.opts.fullPage&&i.merge(e.opts.htmlAllowedTags,["head","title","style","link","base","body","html","meta"])},html:function(t,s,l,c){void 0===s&&(s=[]),void 0===l&&(l=[]),void 0===c&&(c=!1);var d,f=i.merge([],e.opts.htmlAllowedTags);for(d=0;d<s.length;d++)0<=f.indexOf(s[d])&&f.splice(f.indexOf(s[d]),1);var p=i.merge([],e.opts.htmlAllowedAttrs);for(d=0;d<l.length;d++)0<=p.indexOf(l[d])&&p.splice(p.indexOf(l[d]),1);return p.push("data-fr-.*"),p.push("fr-.*"),n=new RegExp("^".concat(f.join("$|^"),"$"),"gi"),a=new RegExp("^".concat(p.join("$|^"),"$"),"gi"),r=new RegExp("^".concat(e.opts.htmlRemoveTags.join("$|^"),"$"),"gi"),o=e.opts.htmlAllowedStyleProps.length?new RegExp("((^|;|\\s)".concat(e.opts.htmlAllowedStyleProps.join(":.+?(?=;|$))|((^|;|\\s)"),":.+?(?=(;)|$))"),"gi"):null,u(t,g,!0)},toHTML5:function(){var n=e.el.querySelectorAll(Object.keys(t.HTML5Map).join(","));if(n.length){var r=!1;e.el.querySelector(".fr-marker")||(e.selection.save(),r=!0);for(var a=0;a<n.length;a++)""===e.node.attributes(n[a])&&i(n[a]).replaceWith("<".concat(t.HTML5Map[n[a].tagName],">").concat(n[a].innerHTML,"</").concat(t.HTML5Map[n[a].tagName],">"));r&&e.selection.restore()}},tables:function(){!function(){for(var t=e.el.querySelectorAll("tr"),n=0;n<t.length;n++){for(var r=t[n].children,a=!0,o=0;o<r.length;o++)if("TH"!==r[o].tagName){a=!1;break}if(!1!==a&&0!==r.length){for(var i=t[n];i&&"TABLE"!==i.tagName&&"THEAD"!==i.tagName;)i=i.parentNode;var s=i;"THEAD"!==s.tagName&&(s=e.doc.createElement("THEAD"),i.insertBefore(s,i.firstChild)),s.appendChild(t[n])}}}()},lists:function(){!function(){var t,n=[];do{if(n.length){var r=n[0],a=e.doc.createElement("ul");r.parentNode.insertBefore(a,r);do{var o=r;r=r.nextSibling,a.appendChild(o)}while(r&&"LI"===r.tagName)}n=[];for(var i=e.el.querySelectorAll("li"),s=0;s<i.length;s++)t=i[s],e.node.isList(t.parentNode)||n.push(i[s])}while(0<n.length)}(),function(){for(var t=e.el.querySelectorAll("ol + ol, ul + ul"),n=0;n<t.length;n++){var r=t[n];if(e.node.isList(r.previousSibling)&&e.node.openTagString(r)===e.node.openTagString(r.previousSibling)){for(var a=e.node.contents(r),o=0;o<a.length;o++)r.previousSibling.appendChild(a[o]);r.parentNode.removeChild(r)}}}(),function(){for(var t=e.el.querySelectorAll("ul, ol"),n=0;n<t.length;n++)for(var r=e.node.contents(t[n]),a=null,o=r.length-1;0<=o;o--)"LI"!==r[o].tagName&&"UL"!=r[o].tagName&&"OL"!=r[o].tagName?(a||(a=i(e.doc.createElement("LI"))).insertBefore(r[o]),a.prepend(r[o])):a=null}(),function(){var t,n,r;do{n=!1;var a=e.el.querySelectorAll("li:empty");for(t=0;t<a.length;t++)a[t].parentNode.removeChild(a[t]);var o=e.el.querySelectorAll("ul, ol");for(t=0;t<o.length;t++)(r=o[t]).querySelector("LI")||(n=!0,r.parentNode.removeChild(r))}while(!0===n)}(),function(){for(var t=e.el.querySelectorAll("ul > ul, ol > ol, ul > ol, ol > ul"),n=0;n<t.length;n++){var r=t[n],a=r.previousSibling;a&&("LI"===a.tagName?a.appendChild(r):i(r).wrap("<li></li>"))}}(),function(){for(var t=e.el.querySelectorAll("li > ul, li > ol"),n=0;n<t.length;n++){var r=t[n];if(r.nextSibling){var a=r.nextSibling,o=i(e.doc.createElement("LI"));i(r.parentNode).after(o.get(0));do{var s=a;a=a.nextSibling,o.append(s)}while(a)}}}(),function(){for(var t=e.el.querySelectorAll("li > ul, li > ol"),n=0;n<t.length;n++){var r=t[n];if(e.node.isFirstSibling(r))i(r).before("<br/>");else if(r.previousSibling&&"BR"===r.previousSibling.tagName){for(var a=r.previousSibling.previousSibling;a&&e.node.hasClass(a,"fr-marker");)a=a.previousSibling;a&&"BR"!==a.tagName&&i(r.previousSibling).remove()}}}(),function(){for(var t=e.el.querySelectorAll("li:empty"),n=0;n<t.length;n++)i(t[n]).remove()}()},invisibleSpaces:function(t){return t.replace(/\u200b/g,"").length===t.length?t:e.clean.exec(t,s)},exec:u}},t.XS=0,t.SM=1,t.MD=2,t.LG=3,t.LinkRegExCommon="[".concat("a-z\\u0080-\\u009f\\u00a1-\\uffff0-9-_\\.","]{1,}"),t.LinkRegExEnd="((:[0-9]{1,5})|)(((\\/|\\?|#)[a-z\\u00a1-\\uffff0-9@?\\|!^=%&\\/~+#-\\'*-_{}]*)|())",t.LinkRegExTLD="((".concat(t.LinkRegExCommon,")(\\.(com|net|org|edu|mil|gov|co|biz|info|me|dev)))"),t.LinkRegExHTTP="((ftp|http|https):\\/\\/".concat(t.LinkRegExCommon,")"),t.LinkRegExAuth="((ftp|http|https):\\/\\/[\\u0021-\\uffff]{1,}@".concat(t.LinkRegExCommon,")"),t.LinkRegExWWW="(www\\.".concat(t.LinkRegExCommon,"\\.[a-z0-9-]{2,24})"),t.LinkRegEx="(".concat(t.LinkRegExTLD,"|").concat(t.LinkRegExHTTP,"|").concat(t.LinkRegExWWW,"|").concat(t.LinkRegExAuth,")").concat(t.LinkRegExEnd),t.LinkProtocols=["mailto","tel","sms","notes","data"],t.MAIL_REGEX=/.+@.+\..+/i,t.MODULES.helpers=function(n){var r,a=n.$;function o(){return/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&!l()}function i(){return/(Android)/g.test(navigator.userAgent)&&!l()}function s(){return/(Blackberry)/g.test(navigator.userAgent)}function l(){return/(Windows Phone)/gi.test(navigator.userAgent)}var c=null;return{_init:function(){n.browser=function(){var e={},t=function(){var e,t=-1;return"Microsoft Internet Explorer"===navigator.appName?(e=navigator.userAgent,null!==new RegExp("MSIE ([0-9]{1,}[\\.0-9]{0,})").exec(e)&&(t=parseFloat(RegExp.$1))):"Netscape"===navigator.appName&&(e=navigator.userAgent,null!==new RegExp("Trident/.*rv:([0-9]{1,}[\\.0-9]{0,})").exec(e)&&(t=parseFloat(RegExp.$1))),t}();if(0<t)e.msie=!0;else{var n=navigator.userAgent.toLowerCase(),r=/(edge)[ /]([\w.]+)/.exec(n)||/(chrome)[ /]([\w.]+)/.exec(n)||/(webkit)[ /]([\w.]+)/.exec(n)||/(opera)(?:.*version|)[ /]([\w.]+)/.exec(n)||/(msie) ([\w.]+)/.exec(n)||n.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(n)||[],a=r[1]||"";r[2],r[1]&&(e[a]=!0),e.chrome?e.webkit=!0:e.webkit&&(e.safari=!0)}return e.msie&&(e.version=t),e}()},isIOS:o,isMac:function(){return null===c&&(c=0<=navigator.platform.toUpperCase().indexOf("MAC")),c},isAndroid:i,isBlackberry:s,isWindowsPhone:l,isMobile:function(){return i()||o()||s()},isEmail:function(e){return!/^(https?:|ftps?:|)\/\//i.test(e)&&t.MAIL_REGEX.test(e)},requestAnimationFrame:function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}},getPX:function(e){return parseInt(e,10)||0},screenSize:function(){try{var e=a(".fr-box").width();if(e<768)return t.XS;if(768<=e&&e<992)return t.SM;if(992<=e&&e<1200)return t.MD;if(1200<=e)return t.LG}catch(e){return t.LG}},isTouch:function(){return"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch},sanitizeURL:function(e){return/^(https?:|ftps?:|)\/\//i.test(e)||/^([A-Za-z]:(\\){1,2}|[A-Za-z]:((\\){1,2}[^\\]+)+)(\\)?$/i.test(e)||new RegExp("^(".concat(t.LinkProtocols.join("|"),"):"),"i").test(e)?e:e=encodeURIComponent(e).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(/&/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,"}")},isArray:function(t){return t&&!Object.prototype.propertyIsEnumerable.call(t,"length")&&"object"===e(t)&&"number"==typeof t.length},RGBToHex:function(e){function t(e){return"0".concat(parseInt(e,10).toString(16)).slice(-2)}try{return e&&"transparent"!==e?/^#[0-9A-F]{6}$/i.test(e)?e:(e=e.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/),"#".concat(t(e[1])).concat(t(e[2])).concat(t(e[3])).toUpperCase()):""}catch(e){return null}},HEXtoRGB:function(e){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,r){return t+t+n+n+r+r}));var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?"rgb(".concat(parseInt(t[1],16),", ").concat(parseInt(t[2],16),", ").concat(parseInt(t[3],16),")"):""},isURL:function(e){return!!/^(https?:|ftps?:|)\/\//i.test(e)&&(e=String(e).replace(/</g,"%3C").replace(/>/g,"%3E").replace(/"/g,"%22").replace(/ /g,"%20"),new RegExp("^".concat(t.LinkRegExHTTP).concat(t.LinkRegExEnd,"$"),"gi").test(e))},getAlignment:function(e){e.css||(e=a(e));var t=(e.css("text-align")||"").replace(/-(.*)-/g,"");if(["left","right","justify","center"].indexOf(t)<0){if(!r){var o=a('<div dir="'.concat("rtl"===n.opts.direction?"rtl":"auto",'" style="text-align: ').concat(n.$el.css("text-align"),'; position: fixed; left: -3000px;"><span id="s1">.</span><span id="s2">.</span></div>'));a("body").first().append(o);var i=o.find("#s1").get(0).getBoundingClientRect().left,s=o.find("#s2").get(0).getBoundingClientRect().left;o.remove(),r=i<s?"left":"right"}t=r}return t},scrollTop:function(){return n.o_win.pageYOffset?n.o_win.pageYOffset:n.o_doc.documentElement&&n.o_doc.documentElement.scrollTop?n.o_doc.documentElement.scrollTop:n.o_doc.body.scrollTop?n.o_doc.body.scrollTop:0},scrollLeft:function(){return n.o_win.pageXOffset?n.o_win.pageXOffset:n.o_doc.documentElement&&n.o_doc.documentElement.scrollLeft?n.o_doc.documentElement.scrollLeft:n.o_doc.body.scrollLeft?n.o_doc.body.scrollLeft:0},isInViewPort:function(e){var t=e.getBoundingClientRect();return 0<=(t={top:Math.round(t.top),bottom:Math.round(t.bottom)}).top&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)||t.top<=0&&t.bottom>=(window.innerHeight||document.documentElement.clientHeight)}}},t.MODULES.events=function(e){var n,r=e.$,a={};function o(e,t,n){u(e,t,n)}function i(n){if(void 0===n&&(n=!0),!e.$wp)return!1;if(e.helpers.isIOS()&&e.$win.get(0).focus(),e.core.hasFocus())return!1;if(!e.core.hasFocus()&&n){var a=e.$win.scrollTop();if(e.browser.msie&&e.$box&&e.$box.css("position","fixed"),e.browser.msie&&e.$wp&&e.$wp.css("overflow","visible"),e.browser.msie&&e.$sc&&e.$sc.css("position","fixed"),c(),e.el.focus(),e.events.trigger("focus"),l(),e.browser.msie&&e.$sc&&e.$sc.css("position",""),e.browser.msie&&e.$box&&e.$box.css("position",""),e.browser.msie&&e.$wp&&e.$wp.css("overflow","auto"),a!==e.$win.scrollTop()&&e.$win.scrollTop(a),!e.selection.info(e.el).atStart)return!1}if(!e.core.hasFocus()||0<e.$el.find(".fr-marker").length)return!1;if(e.selection.info(e.el).atStart&&e.selection.isCollapsed()&&null!==e.html.defaultTag()){var o=e.markers.insert();if(o&&!e.node.blockParent(o)){r(o).remove();var i=e.$el.find(e.html.blockTagsQuery()).get(0);i&&(r(i).prepend(t.MARKERS),e.selection.restore())}else o&&r(o).remove()}}var s=!1;function l(){n=!0}function c(){n=!1}function d(){return n}function f(t,n,r){var o,i=t.split(" ");if(1<i.length){for(var s=0;s<i.length;s++)f(i[s],n,r);return!0}void 0===r&&(r=!1),o=0!==t.indexOf("shared.")?(a[t]=a[t]||[],a[t]):(e.shared._events[t]=e.shared._events[t]||[],e.shared._events[t]),r?o.unshift(n):o.push(n)}var p=[];function u(t,n,r,a,o){"function"==typeof r&&(o=a,a=r,r=!1);var i=o?e.shared.$_events:p,s=o?e.sid:e.id,l="".concat(n.trim().split(" ").join(".ed".concat(s," ")),".ed").concat(s);r?t.on(l,r,a):t.on(l,a),i.push([t,l])}function h(e){for(var t=0;t<e.length;t++)e[t][0].off(e[t][1])}function g(t,n,r){if(!e.edit.isDisabled()||r){var o,i;if(0!==t.indexOf("shared."))o=a[t];else{if(0<e.shared.count)return!1;o=e.shared._events[t]}if(o)for(var s=0;s<o.length;s++)if(!1===(i=o[s].apply(e,n)))return!1;return(!e.opts.events||!e.opts.events[t]||!1!==(i=e.opts.events[t].apply(e,n)))&&i}}function m(){for(var e in a)Object.prototype.hasOwnProperty.call(a,e)&&delete a[e]}function v(){for(var t in e.shared._events)Object.prototype.hasOwnProperty.call(e.shared._events,t)&&delete e.shared._events[t]}return{_init:function(){e.shared.$_events=e.shared.$_events||[],e.shared._events={},e.helpers.isMobile()?(e._mousedown="touchstart",e._mouseup="touchend",e._move="touchmove",e._mousemove="touchmove"):(e._mousedown="mousedown",e._mouseup="mouseup",e._move="",e._mousemove="mousemove"),o(e.$el,"click mouseup mousedown touchstart touchend dragenter dragover dragleave dragend drop dragstart",(function(e){g(e.type,[e])})),f("mousedown",(function(){for(var n=0;n<t.INSTANCES.length;n++)t.INSTANCES[n]!==e&&t.INSTANCES[n].popups&&t.INSTANCES[n].popups.areVisible()&&t.INSTANCES[n].$el.find(".fr-marker").remove()})),o(e.$win,e._mousedown,(function(e){g("window.mousedown",[e]),l()})),o(e.$win,e._mouseup,(function(e){g("window.mouseup",[e])})),o(e.$win,"cut copy keydown keyup touchmove touchend",(function(e){g("window.".concat(e.type),[e])})),o(e.$doc,"dragend drop",(function(e){g("document.".concat(e.type),[e])})),o(e.$el,"keydown keypress keyup input",(function(e){g(e.type,[e])})),o(e.$el,"focus",(function(e){d()&&(i(!1),!1===s&&g(e.type,[e]))})),o(e.$el,"blur",(function(e){d()&&!0===s&&(g(e.type,[e]),l())})),u(e.$el,"mousedown",'[contenteditable="true"]',(function(){c(),e.$el.blur()})),f("focus",(function(){s=!0})),f("blur",(function(){s=!1})),l(),o(e.$el,"cut copy paste beforepaste",(function(e){g(e.type,[e])})),f("destroy",m),f("shared.destroy",v)},on:f,trigger:g,bindClick:function(t,n,a){u(t,e._mousedown,n,(function(t){e.edit.isDisabled()||function(t){var n=r(t.currentTarget);e.edit.isDisabled()||e.node.hasClass(n.get(0),"fr-disabled")?t.preventDefault():"mousedown"===t.type&&1!==t.which||(e.helpers.isMobile()||t.preventDefault(),(e.helpers.isAndroid()||e.helpers.isWindowsPhone())&&0===n.parents(".fr-dropdown-menu").length&&(t.preventDefault(),t.stopPropagation()),n.addClass("fr-selected"),e.events.trigger("commands.mousedown",[n]))}(t)}),!0),u(t,"".concat(e._mouseup," ").concat(e._move),n,(function(t){e.edit.isDisabled()||function(t,n){var a=r(t.currentTarget);if(e.edit.isDisabled()||e.node.hasClass(a.get(0),"fr-disabled"))return t.preventDefault(),!1;if("mouseup"===t.type&&1!==t.which)return!0;if(e.button.getButtons(".fr-selected",!0).get(0)==a.get(0)&&!e.node.hasClass(a.get(0),"fr-selected"))return!0;if("touchmove"!==t.type){if(t.stopPropagation(),t.stopImmediatePropagation(),t.preventDefault(),!e.node.hasClass(a.get(0),"fr-selected"))return e.button.getButtons(".fr-selected",!0).removeClass("fr-selected"),!1;if(e.button.getButtons(".fr-selected",!0).removeClass("fr-selected"),a.data("dragging")||a.attr("disabled"))return a.removeData("dragging"),!1;var o=a.data("timeout");o&&(clearTimeout(o),a.removeData("timeout")),n.apply(e,[t])}else a.data("timeout")||a.data("timeout",setTimeout((function(){a.data("dragging",!0)}),100))}(t,a)}),!0),u(t,"mousedown click mouseup",n,(function(t){e.edit.isDisabled()||t.stopPropagation()}),!0),f("window.mouseup",(function(){e.edit.isDisabled()||(t.find(n).removeClass("fr-selected"),l())})),u(t,"mouseover",n,(function(){r(this).hasClass("fr-options")&&r(this).prev(".fr-btn").addClass("fr-btn-hover"),r(this).next(".fr-btn").hasClass("fr-options")&&r(this).next(".fr-btn").addClass("fr-btn-hover")})),u(t,"mouseout",n,(function(){r(this).hasClass("fr-options")&&r(this).prev(".fr-btn").removeClass("fr-btn-hover"),r(this).next(".fr-btn").hasClass("fr-options")&&r(this).next(".fr-btn").removeClass("fr-btn-hover")}))},disableBlur:c,enableBlur:l,blurActive:d,focus:i,chainTrigger:function(t,n,r){if(!e.edit.isDisabled()||r){var o,i;if(0!==t.indexOf("shared."))o=a[t];else{if(0<e.shared.count)return!1;o=e.shared._events[t]}if(o)for(var s=0;s<o.length;s++)void 0!==(i=o[s].apply(e,[n]))&&(n=i);return e.opts.events&&e.opts.events[t]&&void 0!==(i=e.opts.events[t].apply(e,[n]))&&(n=i),n}},$on:u,$off:function(){h(p),p=[],0===e.shared.count&&(h(e.shared.$_events),e.shared.$_events=[])}}},Object.assign(t.DEFAULTS,{indentMargin:20}),t.COMMANDS={bold:{title:"Bold",toggle:!0,refresh:function(e){var t=this.format.is("strong");e.toggleClass("fr-active",t).attr("aria-pressed",t)}},italic:{title:"Italic",toggle:!0,refresh:function(e){var t=this.format.is("em");e.toggleClass("fr-active",t).attr("aria-pressed",t)}},underline:{title:"Underline",toggle:!0,refresh:function(e){var t=this.format.is("u");e.toggleClass("fr-active",t).attr("aria-pressed",t)}},strikeThrough:{title:"Strikethrough",toggle:!0,refresh:function(e){var t=this.format.is("s");e.toggleClass("fr-active",t).attr("aria-pressed",t)}},subscript:{title:"Subscript",toggle:!0,refresh:function(e){var t=this.format.is("sub");e.toggleClass("fr-active",t).attr("aria-pressed",t)}},superscript:{title:"Superscript",toggle:!0,refresh:function(e){var t=this.format.is("sup");e.toggleClass("fr-active",t).attr("aria-pressed",t)}},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}},t.RegisterCommand=function(e,n){t.COMMANDS[e]=n},t.MODULES.commands=function(e){var n=e.$;function r(t){return e.html.defaultTag()&&(t="<".concat(e.html.defaultTag(),">").concat(t,"</").concat(e.html.defaultTag(),">")),t}var a={bold:function(){s(0,"strong")},subscript:function(){e.format.is("sup")&&e.format.remove("sup"),s(0,"sub")},superscript:function(){e.format.is("sub")&&e.format.remove("sub"),s(0,"sup")},italic:function(){s(0,"em")},strikeThrough:function(){s(0,"s")},underline:function(){s(0,"u")},undo:function(){e.undo.run()},redo:function(){e.undo.redo()},indent:function(){l(1)},outdent:function(){l(-1)},show:function(){e.opts.toolbarInline&&e.toolbar.showInline(null,!0)},insertHR:function(){e.selection.remove();var a="";e.core.isEmpty()&&(a=r(a="<br>")),e.html.insert('<hr id="fr-just" class="fr-just">'.concat(a));var o,i=e.$el.find("hr#fr-just").length?e.$el.find("hr#fr-just"):e.$el.find(".fr-just");if(i.removeAttr("id"),i.removeAttr("class"),0===i.next().length){var s=e.html.defaultTag();s?i.after(n(e.doc.createElement(s)).append("<br>").get(0)):i.after("<br>")}i.prev().is("hr")?o=e.selection.setAfter(i.get(0),!1):i.next().is("hr")?o=e.selection.setBefore(i.get(0),!1):e.selection.setAfter(i.get(0),!1)||e.selection.setBefore(i.get(0),!1),o||void 0===o||(a=r(a="".concat(t.MARKERS,"<br>")),i.after(a)),e.selection.restore()},clearFormatting:function(){e.format.remove()},selectAll:function(){e.doc.execCommand("selectAll",!1,!1)},moreText:function(e){o(e)},moreParagraph:function(e){o(e)},moreRich:function(e){o(e)},moreMisc:function(e){o(e)}};function o(t){!function(t){var n=e.$tb.find('.fr-more-toolbar[data-name="'.concat(t.attr("data-group-name"),'"]'));e.$tb.find(".fr-open").not(t).removeClass("fr-open"),t.toggleClass("fr-open"),e.$tb.find(".fr-more-toolbar").removeClass("fr-overflow-visible"),e.$tb.find(".fr-expanded").not(n).length?(e.$tb.find(".fr-expanded").toggleClass("fr-expanded"),n.toggleClass("fr-expanded")):(n.toggleClass("fr-expanded"),e.$box.toggleClass("fr-toolbar-open"),e.$tb.toggleClass("fr-toolbar-open"))}(e.$tb.find("[data-cmd=".concat(t,"]"))),e.toolbar.setMoreToolbarsHeight()}function i(r,o){if(!1!==e.events.trigger("commands.before",n.merge([r],o||[]))){var i=t.COMMANDS[r]&&t.COMMANDS[r].callback||a[r],s=!0,l=!1;t.COMMANDS[r]&&(void 0!==t.COMMANDS[r].focus&&(s=t.COMMANDS[r].focus),void 0!==t.COMMANDS[r].accessibilityFocus&&(l=t.COMMANDS[r].accessibilityFocus)),(!e.core.hasFocus()&&s&&!e.popups.areVisible()||!e.core.hasFocus()&&l&&e.accessibility.hasFocus())&&e.events.focus(!0),t.COMMANDS[r]&&!1!==t.COMMANDS[r].undo&&(e.$el.find(".fr-marker").length&&(e.events.disableBlur(),e.selection.restore()),e.undo.saveStep()),i&&i.apply(e,n.merge([r],o||[])),e.events.trigger("commands.after",n.merge([r],o||[])),t.COMMANDS[r]&&!1!==t.COMMANDS[r].undo&&e.undo.saveStep()}}function s(t,n){e.format.toggle(n)}function l(t){e.selection.save(),e.html.wrap(!0,!0,!0,!0),e.selection.restore();for(var r=e.selection.blocks(),a=0;a<r.length;a++)if("LI"!==r[a].tagName||"LI"!==r[a].parentNode.tagName){var o=n(r[a]);"LI"!=r[a].tagName&&"LI"==r[a].parentNode.tagName&&(o=n(r[a].parentNode));var i="rtl"===e.opts.direction||"rtl"===o.css("direction")?"margin-right":"margin-left",s=e.helpers.getPX(o.css(i));if(o.width()<2*e.opts.indentMargin&&0<t)continue;o.css(i,Math.max(s+t*e.opts.indentMargin,0)||""),o.removeClass("fr-temp-div")}e.selection.save(),e.html.unwrap(),e.selection.restore()}function c(e){return function(){i(e)}}var d={};for(var f in a)Object.prototype.hasOwnProperty.call(a,f)&&(d[f]=c(f));return Object.assign(d,{exec:i,_init:function(){e.events.on("keydown",(function(t){var n=e.selection.element();if(n&&"HR"===n.tagName&&!e.keys.isArrow(t.which))return t.preventDefault(),!1})),e.events.on("keyup",(function(r){var a=e.selection.element();if(a&&"HR"===a.tagName)if(r.which===t.KEYCODE.ARROW_LEFT||r.which===t.KEYCODE.ARROW_UP){if(a.previousSibling)return e.node.isBlock(a.previousSibling)?e.selection.setAtEnd(a.previousSibling):n(a).before(t.MARKERS),e.selection.restore(),!1}else if((r.which===t.KEYCODE.ARROW_RIGHT||r.which===t.KEYCODE.ARROW_DOWN)&&a.nextSibling)return e.node.isBlock(a.nextSibling)?e.selection.setAtStart(a.nextSibling):n(a).after(t.MARKERS),e.selection.restore(),!1})),e.events.on("mousedown",(function(e){if(e.target&&"HR"===e.target.tagName)return e.preventDefault(),e.stopPropagation(),!1})),e.events.on("mouseup",(function(){var r=e.selection.element();r===e.selection.endElement()&&r&&"HR"===r.tagName&&(r.nextSibling&&(e.node.isBlock(r.nextSibling)?e.selection.setAtStart(r.nextSibling):n(r).after(t.MARKERS)),e.selection.restore())}))}})},t.MODULES.cursorLists=function(e){var n=e.$;function r(e){for(var t=e;"LI"!==t.tagName;)t=t.parentNode;return t}function a(t){for(var n=t;!e.node.isList(n);)n=n.parentNode;return n}return{_startEnter:function(o){var i,s=r(o),l=s.nextSibling,c=s.previousSibling,d=e.html.defaultTag();if(e.node.isEmpty(s,!0)&&l){for(var f="",p="",u=o.parentNode;!e.node.isList(u)&&u.parentNode&&("LI"!==u.parentNode.tagName||u.parentNode===s);)f=e.node.openTagString(u)+f,p+=e.node.closeTagString(u),u=u.parentNode;f=e.node.openTagString(u)+f,p+=e.node.closeTagString(u);var h;for(h=u.parentNode&&"LI"===u.parentNode.tagName?"".concat(p,"<li>").concat(t.MARKERS,"<br>").concat(f):d?"".concat(p,"<").concat(d,">").concat(t.MARKERS,"<br></").concat(d,">").concat(f):"".concat(p+t.MARKERS,"<br>").concat(f);["UL","OL"].indexOf(u.tagName)<0||u.parentNode&&"LI"===u.parentNode.tagName;)u=u.parentNode;n(s).replaceWith('<span id="fr-break"></span>');var g=e.node.openTagString(u)+n(u).html()+e.node.closeTagString(u);g=g.replace(/<span id="fr-break"><\/span>/g,h),n(u).replaceWith(g),e.$el.find("li:empty").remove()}else if(c&&l||!e.node.isEmpty(s,!0)){for(var m="<br>",v=o.parentNode;v&&"LI"!==v.tagName;)m=e.node.openTagString(v)+m+e.node.closeTagString(v),v=v.parentNode;n(s).before("<li>".concat(m,"</li>")),n(o).remove()}else if(c){i=a(s);for(var b="".concat(t.MARKERS,"<br>"),E=o.parentNode;E&&"LI"!==E.tagName;)b=e.node.openTagString(E)+b+e.node.closeTagString(E),E=E.parentNode;i.parentNode&&"LI"===i.parentNode.tagName?n(i.parentNode).after("<li>".concat(b,"</li>")):d?n(i).after("<".concat(d,">").concat(b,"</").concat(d,">")):n(i).after(b),n(s).remove()}else(i=a(s)).parentNode&&"LI"===i.parentNode.tagName?l?n(i.parentNode).before("".concat(e.node.openTagString(s)+t.MARKERS,"<br></li>")):n(i.parentNode).after("".concat(e.node.openTagString(s)+t.MARKERS,"<br></li>")):d?n(i).before("<".concat(d,">").concat(t.MARKERS,"<br></").concat(d,">")):n(i).before("".concat(t.MARKERS,"<br>")),n(s).remove()},_middleEnter:function(a){for(var o=r(a),i="",s=a,l="",c="",d=!1;s!==o;){var f="A"===(s=s.parentNode).tagName&&e.cursor.isAtEnd(a,s)?"fr-to-remove":"";d||s==o||e.node.isBlock(s)||(d=!0,l+=t.INVISIBLE_SPACE),l=e.node.openTagString(n(s).clone().addClass(f).get(0))+l,c=e.node.closeTagString(s)+c}i=c+i+l+t.MARKERS+(e.opts.keepFormatOnDelete?t.INVISIBLE_SPACE:""),n(a).replaceWith('<span id="fr-break"></span>');var p=e.node.openTagString(o)+n(o).html()+e.node.closeTagString(o);p=p.replace(/<span id="fr-break"><\/span>/g,i),n(o).replaceWith(p)},_endEnter:function(a){for(var o=r(a),i=t.MARKERS,s="",l=a,c=!1;l!==o;)if(!(l=l.parentNode).classList.contains("fr-img-space-wrap")&&!l.classList.contains("fr-img-space-wrap2")){var d="A"===l.tagName&&e.cursor.isAtEnd(a,l)?"fr-to-remove":"";c||l===o||e.node.isBlock(l)||(c=!0,s+=t.INVISIBLE_SPACE),s=e.node.openTagString(n(l).clone().addClass(d).get(0))+s,i+=e.node.closeTagString(l)}var f=s+i;n(a).remove(),n(o).after(f)},_backspace:function(o){var i=r(o),s=i.previousSibling;if(s){s=n(s).find(e.html.blockTagsQuery()).get(-1)||s,n(o).replaceWith(t.MARKERS);var l=e.node.contents(s);l.length&&"BR"===l[l.length-1].tagName&&n(l[l.length-1]).remove(),n(i).find(e.html.blockTagsQuery()).not("ol, ul, table").each((function(){this.parentNode===i&&n(this).replaceWith(n(this).html()+(e.node.isEmpty(this)?"":"<br>"))}));for(var c,d=e.node.contents(i)[0];d&&!e.node.isList(d);)c=d.nextSibling,n(s).append(d),d=c;for(s=i.previousSibling;d;)c=d.nextSibling,n(s).append(d),d=c;1<(l=e.node.contents(s)).length&&"BR"===l[l.length-1].tagName&&n(l[l.length-1]).remove(),n(i).remove()}else{var f=a(i);if(n(o).replaceWith(t.MARKERS),f.parentNode&&"LI"===f.parentNode.tagName){var p=f.previousSibling;e.node.isBlock(p)?(n(i).find(e.html.blockTagsQuery()).not("ol, ul, table").each((function(){this.parentNode===i&&n(this).replaceWith(n(this).html()+(e.node.isEmpty(this)?"":"<br>"))})),n(p).append(n(i).html())):n(f).before(n(i).html())}else{var u=e.html.defaultTag();u&&0===n(i).find(e.html.blockTagsQuery()).length?n(f).before("<".concat(u,">").concat(n(i).html(),"</").concat(u,">")):n(f).before(n(i).html())}n(i).remove(),e.html.wrap(),0===n(f).find("li").length&&n(f).remove()}},_del:function(a){var o,i=r(a),s=i.nextSibling;if(s){(o=e.node.contents(s)).length&&"BR"===o[0].tagName&&n(o[0]).remove(),n(s).find(e.html.blockTagsQuery()).not("ol, ul, table").each((function(){this.parentNode===s&&n(this).replaceWith(n(this).html()+(e.node.isEmpty(this)?"":"<br>"))}));for(var l,c=a,d=e.node.contents(s)[0];d&&!e.node.isList(d);)l=d.nextSibling,n(c).after(d),c=d,d=l;for(;d;)l=d.nextSibling,n(i).append(d),d=l;n(a).replaceWith(t.MARKERS),n(s).remove()}else{for(var f=i;!f.nextSibling&&f!==e.el;)f=f.parentNode;if(f===e.el)return!1;if(f=f.nextSibling,e.node.isBlock(f))t.NO_DELETE_TAGS.indexOf(f.tagName)<0&&(n(a).replaceWith(t.MARKERS),(o=e.node.contents(i)).length&&"BR"===o[o.length-1].tagName&&n(o[o.length-1]).remove(),n(i).append(n(f).html()),n(f).remove());else for((o=e.node.contents(i)).length&&"BR"===o[o.length-1].tagName&&n(o[o.length-1]).remove(),n(a).replaceWith(t.MARKERS);f&&!e.node.isBlock(f)&&"BR"!==f.tagName;)n(i).append(n(f)),f=f.nextSibling}}}},t.NO_DELETE_TAGS=["TH","TD","TR","TABLE","FORM"],t.SIMPLE_ENTER_TAGS=["TH","TD","LI","DL","DT","FORM"],t.MODULES.cursor=function(e){var n=e.$;function r(t){return!!t&&(!!e.node.isBlock(t)||(t.nextSibling&&t.nextSibling.nodeType===Node.TEXT_NODE&&0===t.nextSibling.textContent.replace(/\u200b/g,"").length?r(t.nextSibling):!(t.nextSibling&&(!t.previousSibling||"BR"!==t.nextSibling.tagName||t.nextSibling.nextSibling))&&r(t.parentNode)))}function a(t){return!!t&&(!!e.node.isBlock(t)||(t.previousSibling&&t.previousSibling.nodeType===Node.TEXT_NODE&&0===t.previousSibling.textContent.replace(/\u200b/g,"").length?a(t.previousSibling):!t.previousSibling&&(!(t.previousSibling||!e.node.hasClass(t.parentNode,"fr-inner"))||a(t.parentNode))))}function o(t,n){return!!t&&t!==e.$wp.get(0)&&(t.previousSibling&&t.previousSibling.nodeType===Node.TEXT_NODE&&0===t.previousSibling.textContent.replace(/\u200b/g,"").length?o(t.previousSibling,n):!t.previousSibling&&(t.parentNode===n||o(t.parentNode,n)))}function i(t,n){return!!t&&t!==e.$wp.get(0)&&(t.nextSibling&&t.nextSibling.nodeType===Node.TEXT_NODE&&0===t.nextSibling.textContent.replace(/\u200b/g,"").length?i(t.nextSibling,n):!(t.nextSibling&&(!t.previousSibling||"BR"!==t.nextSibling.tagName||t.nextSibling.nextSibling))&&(t.parentNode===n||i(t.parentNode,n)))}function s(t){return 0<n(t).parentsUntil(e.$el,"LI").length&&0===n(t).parentsUntil("LI","TABLE").length}function l(e,t){var n=new RegExp("".concat(t?"^":"","(([\\uD83C-\\uDBFF\\uDC00-\\uDFFF]+\\u200D)*[\\uD83C-\\uDBFF\\uDC00-\\uDFFF]{2})").concat(t?"":"$"),"i"),r=e.match(n);return r?r[0].length:1}function c(r){for(var a,o=r;!o.previousSibling;)if(o=o.parentNode,e.node.isElement(o))return!1;if(o=o.previousSibling,!e.node.isBlock(o)&&e.node.isEditable(o)){for(a=e.node.contents(o);o.nodeType!==Node.TEXT_NODE&&!e.node.isDeletable(o)&&a.length&&e.node.isEditable(o);)o=a[a.length-1],a=e.node.contents(o);if(o.nodeType===Node.TEXT_NODE){var i=o.textContent,s=i.length;if(i.length&&"\n"===i[i.length-1])return o.textContent=i.substring(0,s-2),0===o.textContent.length&&o.parentNode.removeChild(o),c(r);e.opts.tabSpaces&&i.length>=e.opts.tabSpaces&&0===i.substr(i.length-e.opts.tabSpaces,i.length-1).replace(/ /g,"").replace(new RegExp(t.UNICODE_NBSP,"g"),"").length&&(s=i.length-e.opts.tabSpaces+1),o.textContent=i.substring(0,s-l(i)),e.opts.htmlUntouched&&!r.nextSibling&&o.textContent.length&&" "===o.textContent[o.textContent.length-1]&&(o.textContent=o.textContent.substring(0,o.textContent.length-1)+t.UNICODE_NBSP);var d=i.length!==o.textContent.length;if(0===o.textContent.length)if(d&&e.opts.keepFormatOnDelete)n(o).after(t.INVISIBLE_SPACE+t.MARKERS);else if(0!==i.length&&e.node.isBlock(o.parentNode))n(o).after(t.MARKERS);else if((2!=o.parentNode.childNodes.length||o.parentNode!=r.parentNode)&&1!=o.parentNode.childNodes.length||e.node.isBlock(o.parentNode)||e.node.isElement(o.parentNode)||!e.node.isDeletable(o.parentNode)){for(;!e.node.isElement(o.parentNode)&&e.node.isEmpty(o.parentNode)&&t.NO_DELETE_TAGS.indexOf(o.parentNode.tagName)<0;){var f=o;o=o.parentNode,f.parentNode.removeChild(f)}n(o).after(t.MARKERS),e.node.isElement(o.parentNode)&&!r.nextSibling&&o.previousSibling&&"BR"===o.previousSibling.tagName&&n(r).after("<br>"),o.parentNode.removeChild(o)}else n(o.parentNode).after(t.MARKERS),n(o.parentNode).remove();else n(o).after(t.MARKERS)}else e.node.isDeletable(o)?(n(o).after(t.MARKERS),n(o).remove()):r.nextSibling&&"BR"===r.nextSibling.tagName&&e.node.isVoid(o)&&"BR"!==o.tagName?(n(r.nextSibling).remove(),n(r).replaceWith(t.MARKERS)):!1!==e.events.trigger("node.remove",[n(o)])&&(n(o).after(t.MARKERS),n(o).remove())}else if(t.NO_DELETE_TAGS.indexOf(o.tagName)<0&&(e.node.isEditable(o)||e.node.isDeletable(o)))if(e.node.isDeletable(o))n(r).replaceWith(t.MARKERS),n(o).remove();else if(e.node.isEmpty(o)&&!e.node.isList(o))n(o).remove(),n(r).replaceWith(t.MARKERS);else{for(e.node.isList(o)&&(o=n(o).find("li").last().get(0)),(a=e.node.contents(o))&&"BR"===a[a.length-1].tagName&&n(a[a.length-1]).remove(),a=e.node.contents(o);a&&e.node.isBlock(a[a.length-1]);)o=a[a.length-1],a=e.node.contents(o);n(o).append(t.MARKERS);for(var p=r;!p.previousSibling;)p=p.parentNode;for(;p&&"BR"!==p.tagName&&!e.node.isBlock(p);){var u=p;p=p.nextSibling,n(o).append(u)}p&&"BR"===p.tagName&&n(p).remove(),n(r).remove()}else r.nextSibling&&"BR"===r.nextSibling.tagName&&n(r.nextSibling).remove();return!0}function d(r){var a=0<n(r).parentsUntil(e.$el,"BLOCKQUOTE").length,o=e.node.deepestParent(r,[],!a);if(o&&"BLOCKQUOTE"===o.tagName){var i=e.node.deepestParent(r,[n(r).parentsUntil(e.$el,"BLOCKQUOTE").get(0)]);i&&i.nextSibling&&(o=i)}if(null!==o){var s,l=o.nextSibling;if(e.node.isBlock(o)&&(e.node.isEditable(o)||e.node.isDeletable(o))&&l&&t.NO_DELETE_TAGS.indexOf(l.tagName)<0)if(e.node.isDeletable(l))n(l).remove(),n(r).replaceWith(t.MARKERS);else if(e.node.isBlock(l)&&e.node.isEditable(l))if(e.node.isList(l))if(e.node.isEmpty(o,!0))n(o).remove(),n(l).find("li").first().prepend(t.MARKERS);else{var c=n(l).find("li").first();"BLOCKQUOTE"===o.tagName&&(s=e.node.contents(o)).length&&e.node.isBlock(s[s.length-1])&&(o=s[s.length-1]),0===c.find("ul, ol").length&&(n(r).replaceWith(t.MARKERS),c.find(e.html.blockTagsQuery()).not("ol, ul, table").each((function(){this.parentNode===c.get(0)&&n(this).replaceWith(n(this).html()+(e.node.isEmpty(this)?"":"<br>"))})),n(o).append(e.node.contents(c.get(0))),c.remove(),0===n(l).find("li").length&&n(l).remove())}else{if((s=e.node.contents(l)).length&&"BR"===s[0].tagName&&n(s[0]).remove(),"BLOCKQUOTE"!==l.tagName&&"BLOCKQUOTE"===o.tagName)for(s=e.node.contents(o);s.length&&e.node.isBlock(s[s.length-1]);)o=s[s.length-1],s=e.node.contents(o);else if("BLOCKQUOTE"===l.tagName&&"BLOCKQUOTE"!==o.tagName)for(s=e.node.contents(l);s.length&&e.node.isBlock(s[0]);)l=s[0],s=e.node.contents(l);n(r).replaceWith(t.MARKERS),n(o).append(l.innerHTML),n(l).remove()}else{for(n(r).replaceWith(t.MARKERS);l&&"BR"!==l.tagName&&!e.node.isBlock(l)&&e.node.isEditable(l);){var d=l;l=l.nextSibling,n(o).append(d)}l&&"BR"===l.tagName&&e.node.isEditable(l)&&n(l).remove()}}}function f(){for(var t=e.el.querySelectorAll("blockquote:empty"),n=0;n<t.length;n++)t[n].parentNode.removeChild(t[n])}function p(r,a,o){var s,l=e.node.deepestParent(r,[],!o);if(l&&"BLOCKQUOTE"===l.tagName)return i(r,l)?(s=e.html.defaultTag(),a?n(r).replaceWith("<br>"+t.MARKERS):s?n(l).after("<".concat(s,">").concat(t.MARKERS,"<br></").concat(s,">")):n(l).after("".concat(t.MARKERS,"<br>")),n(r).remove()):u(r,a,o),!1;if(null===l)(s=e.html.defaultTag())&&e.node.isElement(r.parentNode)?n(r).replaceWith("<".concat(s,">").concat(t.MARKERS,"<br></").concat(s,">")):!r.previousSibling||n(r.previousSibling).is("br")||r.nextSibling?n(r).replaceWith("<br>".concat(t.MARKERS)):n(r).replaceWith("<br>".concat(t.MARKERS,"<br>"));else{var c=r,d="";"PRE"!=l.tagName||r.nextSibling||(a=!0),e.node.isBlock(l)&&!a||(d="<br/>");var f,p="",h="",g="",m="";(s=e.html.defaultTag())&&e.node.isBlock(l)&&(g="<".concat(s,">"),m="</".concat(s,">"),l.tagName===s.toUpperCase()&&(g=e.node.openTagString(n(l).clone().removeAttr("id").get(0))));do{if(c=c.parentNode,!a||c!==l||a&&!e.node.isBlock(l))if(p+=e.node.closeTagString(c),c===l&&e.node.isBlock(l))h=g+h;else{var v=("A"===c.tagName||e.node.hasClass(c,"fa"))&&i(r,c)?"fr-to-remove":"";h=e.node.openTagString(n(c).clone().addClass(v).get(0))+h}}while(c!==l);d=p+d+h+(r.parentNode===l&&e.node.isBlock(l)?"":t.INVISIBLE_SPACE)+t.MARKERS,e.node.isBlock(l)&&!n(l).find("*").last().is("br")&&n(l).append("<br/>"),n(r).after('<span id="fr-break"></span>'),n(r).remove(),l.nextSibling&&!e.node.isBlock(l.nextSibling)||e.node.isBlock(l)||n(l).after("<br>"),f=(f=!a&&e.node.isBlock(l)?e.node.openTagString(l)+n(l).html()+m:e.node.openTagString(l)+n(l).html()+e.node.closeTagString(l)).replace(/<span id="fr-break"><\/span>/g,d),n(l).replaceWith(f)}}function u(r,a,s){var l=e.node.deepestParent(r,[],!s);if(null===l)e.html.defaultTag()&&r.parentNode===e.el?n(r).replaceWith("<".concat(e.html.defaultTag(),">").concat(t.MARKERS,"<br></").concat(e.html.defaultTag(),">")):(r.nextSibling&&!e.node.isBlock(r.nextSibling)||n(r).after("<br>"),n(r).replaceWith("<br>".concat(t.MARKERS)));else if(r.previousSibling&&"IMG"==r.previousSibling.tagName||r.nextSibling&&"IMG"==r.nextSibling.tagName)n(r).replaceWith("<"+e.html.defaultTag()+">"+t.MARKERS+"<br></"+e.html.defaultTag()+">");else{var c=r,d="";"PRE"===l.tagName&&(a=!0),e.node.isBlock(l)&&!a||(d="<br>");var f="",p="";do{var u=c;if(c=c.parentNode,"BLOCKQUOTE"===l.tagName&&e.node.isEmpty(u)&&!e.node.hasClass(u,"fr-marker")&&n(u).contains(r)&&n(u).after(r),"BLOCKQUOTE"!==l.tagName||!i(r,c)&&!o(r,c))if(!a||c!==l||a&&!e.node.isBlock(l)){f+=e.node.closeTagString(c);var h="A"==c.tagName&&i(r,c)||e.node.hasClass(c,"fa")?"fr-to-remove":"";p=e.node.openTagString(n(c).clone().addClass(h).removeAttr("id").get(0))+p}else"BLOCKQUOTE"==l.tagName&&a&&(p=f="")}while(c!==l);var g=l===r.parentNode&&e.node.isBlock(l)||r.nextSibling;if("BLOCKQUOTE"===l.tagName)if(r.previousSibling&&e.node.isBlock(r.previousSibling)&&r.nextSibling&&"BR"===r.nextSibling.tagName&&(n(r.nextSibling).after(r),r.nextSibling&&"BR"===r.nextSibling.tagName&&n(r.nextSibling).remove()),a)d=f+d+t.MARKERS+p;else{var m=e.html.defaultTag();d="".concat(f+d+(m?"<".concat(m,">"):"")+t.MARKERS,"<br>").concat(m?"</".concat(m,">"):"").concat(p)}else d=f+d+p+(g?"":t.INVISIBLE_SPACE)+t.MARKERS;n(r).replaceWith('<span id="fr-break"></span>');var v=e.node.openTagString(l)+n(l).html()+e.node.closeTagString(l);v=v.replace(/<span id="fr-break"><\/span>/g,d),n(l).replaceWith(v)}}return{enter:function(l){var c=e.markers.insert();if(!c)return!0;for(var d=c.parentNode;d&&!e.node.isElement(d);){if("false"===d.getAttribute("contenteditable"))return n(c).replaceWith(t.MARKERS),e.selection.restore(),!1;if("true"===d.getAttribute("contenteditable"))break;d=d.parentNode}e.el.normalize();var f=!1;0<n(c).parentsUntil(e.$el,"BLOCKQUOTE").length&&(f=!0),n(c).parentsUntil(e.$el,"TD, TH").length&&(f=!1),r(c)?!s(c)||l||f?p(c,l,f):e.cursorLists._endEnter(c):a(c)?!s(c)||l||f?function r(a,s,l){var c,d=e.node.deepestParent(a,[],!l);if(d&&"TABLE"===d.tagName)return n(d).find("td, th").first().prepend(a),r(a,s,l);if(d&&"BLOCKQUOTE"===d.tagName)if(o(a,d)){if(!s)return(c=e.html.defaultTag())?n(d).before("<".concat(c,">").concat(t.MARKERS,"<br></").concat(c,">")):n(d).before("".concat(t.MARKERS,"<br>")),n(a).remove(),!1}else i(a,d)?p(a,s,!0):u(a,s,!0);if(null===d)(c=e.html.defaultTag())&&e.node.isElement(a.parentNode)?n(a).replaceWith("<".concat(c,">").concat(t.MARKERS,"<br></").concat(c,">")):n(a).replaceWith("<br>".concat(t.MARKERS));else{if(e.node.isBlock(d))if("PRE"===d.tagName&&(s=!0),s)n(a).remove(),n(d).prepend("<br>".concat(t.MARKERS));else if(a.nextSibling&&"IMG"==a.nextSibling.tagName||a.nextSibling&&a.nextSibling.nextElementSibling&&"IMG"==a.nextSibling.nextElementSibling)n(a).replaceWith("<"+e.html.defaultTag()+">"+t.MARKERS+"<br></"+e.html.defaultTag()+">");else{if(e.node.isEmpty(d,!0))return p(a,s,l);if(e.opts.keepFormatOnDelete){for(var f=a,h=t.INVISIBLE_SPACE;f!==d&&!e.node.isElement(f);)f=f.parentNode,h=e.node.openTagString(f)+h+e.node.closeTagString(f);n(d).before(h)}else n(d).before("".concat(e.node.openTagString(n(d).clone().removeAttr("id").get(0)),"<br>").concat(e.node.closeTagString(d)))}else n(d).before("<br>");n(a).remove()}}(c,l,f):e.cursorLists._startEnter(c):!s(c)||l||f?u(c,l,f):e.cursorLists._middleEnter(c),e.$el.find(".fr-to-remove").each((function(){for(var t=e.node.contents(this),r=0;r<t.length;r++)t[r].nodeType===Node.TEXT_NODE&&(t[r].textContent=t[r].textContent.replace(/\u200B/g,""));n(this).replaceWith(this.innerHTML)})),e.html.fillEmptyBlocks(!0),e.opts.htmlUntouched||(e.html.cleanEmptyTags(),e.clean.lists(),e.spaces.normalizeAroundCursor()),e.selection.restore()},backspace:function(){var i=!1,d=e.markers.insert();if(!d)return!0;for(var p=d.parentNode;p&&!e.node.isElement(p);){if("false"===p.getAttribute("contenteditable"))return n(d).replaceWith(t.MARKERS),e.selection.restore(),!1;if(p.innerText.length&&"true"===p.getAttribute("contenteditable"))break;p=p.parentNode}e.el.normalize();var u=d.previousSibling;if(u){var h=u.textContent;h&&h.length&&8203===h.charCodeAt(h.length-1)&&(1===h.length?n(u).remove():u.textContent=u.textContent.substr(0,h.length-l(h)))}return r(d)?s(d)&&o(d,n(d).parents("li").first().get(0))?e.cursorLists._backspace(d):i=c(d):a(d)?s(d)&&o(d,n(d).parents("li").first().get(0))?e.cursorLists._backspace(d):function(r){for(var a=0<n(r).parentsUntil(e.$el,"BLOCKQUOTE").length,o=e.node.deepestParent(r,[],!a),i=o;o&&!o.previousSibling&&"BLOCKQUOTE"!==o.tagName&&o.parentElement!==e.el&&!e.node.hasClass(o.parentElement,"fr-inner")&&t.SIMPLE_ENTER_TAGS.indexOf(o.parentElement.tagName)<0;)o=o.parentElement;if(o&&"BLOCKQUOTE"===o.tagName){var s=e.node.deepestParent(r,[n(r).parentsUntil(e.$el,"BLOCKQUOTE").get(0)]);s&&s.previousSibling&&(i=o=s)}if(null!==o){var l,c=o.previousSibling;if(e.node.isBlock(o)&&e.node.isEditable(o))if(c&&t.NO_DELETE_TAGS.indexOf(c.tagName)<0){if(e.node.isDeletable(c))n(c).remove(),n(r).replaceWith(t.MARKERS);else if(e.node.isEditable(c))if(e.node.isBlock(c))if(e.node.isEmpty(c)&&!e.node.isList(c))n(c).remove(),n(r).after(e.opts.keepFormatOnDelete?t.INVISIBLE_SPACE:"");else{if(e.node.isList(c)&&(c=n(c).find("li").last().get(0)),(l=e.node.contents(c)).length&&"BR"===l[l.length-1].tagName&&n(l[l.length-1]).remove(),"BLOCKQUOTE"===c.tagName&&"BLOCKQUOTE"!==o.tagName)for(l=e.node.contents(c);l.length&&e.node.isBlock(l[l.length-1]);)c=l[l.length-1],l=e.node.contents(c);else if("BLOCKQUOTE"!==c.tagName&&"BLOCKQUOTE"===i.tagName)for(l=e.node.contents(i);l.length&&e.node.isBlock(l[0]);)i=l[0],l=e.node.contents(i);if(e.node.isEmpty(o))n(r).remove(),e.selection.setAtEnd(c,!0);else{n(r).replaceWith(t.MARKERS);var d=c.childNodes;e.node.isBlock(d[d.length-1])?n(d[d.length-1]).append(i.innerHTML):n(c).append(i.innerHTML)}n(i).remove(),e.node.isEmpty(o)&&n(o).remove()}else n(r).replaceWith(t.MARKERS),"BLOCKQUOTE"===o.tagName&&c.nodeType===Node.ELEMENT_NODE?n(c).remove():(n(c).after(e.node.isEmpty(o)?"":n(o).html()),n(o).remove(),"BR"===c.tagName&&n(c).remove())}else c||(o&&"BLOCKQUOTE"===o.tagName&&0===n(o).text().replace(/\u200B/g,"").length?n(o).remove():e.node.isEmpty(o)&&o.parentNode&&e.node.isEditable(o.parentNode)&&o.parentNode!=e.el&&n(o.parentNode).remove())}}(d):i=c(d),n(d).remove(),f(),e.html.fillEmptyBlocks(!0),e.opts.htmlUntouched||(e.html.cleanEmptyTags(),e.clean.lists(),e.spaces.normalizeAroundCursor()),e.selection.restore(),i},del:function(){var o=e.markers.insert();if(!o)return!1;if(e.el.normalize(),r(o))if(s(o))if(0===n(o).parents("li").first().find("ul, ol").length)e.cursorLists._del(o);else{var i=n(o).parents("li").first().find("ul, ol").first().find("li").first();(i=i.find(e.html.blockTagsQuery()).get(-1)||i).prepend(o),e.cursorLists._backspace(o)}else d(o);else a(o),function(a){for(var o,i=a;!i.nextSibling;)if(i=i.parentNode,e.node.isElement(i))return!1;if("BR"===(i=i.nextSibling).tagName&&e.node.isEditable(i))if(i.nextSibling){if(e.node.isBlock(i.nextSibling)&&e.node.isEditable(i.nextSibling)){if(!(t.NO_DELETE_TAGS.indexOf(i.nextSibling.tagName)<0))return void n(i).remove();i=i.nextSibling,n(i.previousSibling).remove()}}else if(r(i))return void(s(a)?e.cursorLists._del(a):e.node.deepestParent(i)&&((!e.node.isEmpty(e.node.blockParent(i))||(e.node.blockParent(i).nextSibling&&t.NO_DELETE_TAGS.indexOf(e.node.blockParent(i).nextSibling.tagName))<0)&&n(i).remove(),d(a)));if(!e.node.isBlock(i)&&e.node.isEditable(i)){for(o=e.node.contents(i);i.nodeType!==Node.TEXT_NODE&&o.length&&!e.node.isDeletable(i)&&e.node.isEditable(i);)i=o[0],o=e.node.contents(i);i.nodeType===Node.TEXT_NODE?(n(i).before(t.MARKERS),i.textContent.length&&(i.textContent=i.textContent.substring(l(i.textContent,!0),i.textContent.length))):(e.node.isDeletable(i)||!1!==e.events.trigger("node.remove",[n(i)]))&&(n(i).before(t.MARKERS),n(i).remove()),n(a).remove()}else if(t.NO_DELETE_TAGS.indexOf(i.tagName)<0&&(e.node.isEditable(i)||e.node.isDeletable(i)))if(e.node.isDeletable(i))n(a).replaceWith(t.MARKERS),n(i).remove();else if(e.node.isList(i))a.previousSibling?(n(i).find("li").first().prepend(a),e.cursorLists._backspace(a)):(n(i).find("li").first().prepend(t.MARKERS),n(a).remove());else if((o=e.node.contents(i))&&"BR"===o[0].tagName&&n(o[0]).remove(),o&&"BLOCKQUOTE"===i.tagName){var c=o[0];for(n(a).before(t.MARKERS);c&&"BR"!==c.tagName;){var f=c;c=c.nextSibling,n(a).before(f)}c&&"BR"===c.tagName&&n(c).remove()}else n(a).after(n(i).html()).after(t.MARKERS),n(i).remove()}(o);n(o).remove(),f(),e.html.fillEmptyBlocks(!0),e.opts.htmlUntouched||(e.html.cleanEmptyTags(),e.clean.lists()),e.spaces.normalizeAroundCursor(),e.selection.restore()},isAtEnd:i,isAtStart:o}},t.MODULES.data=function(e){function t(e){for(var t=e.toString(),n=0,r=0;r<t.length;r++)n+=parseInt(t.charAt(r),10);return 10<n?n%9+1:n}function n(e,t,n){for(var r=Math.abs(n);0<r--;)e-=t;return n<0&&(e+=123),e}function r(t){return t&&"block"!==t.css("display")||t&&0===e.helpers.getPX(t.css("height"))?(t.remove(),!0):!(!t||"absolute"!==t.css("position")&&"fixed"!==t.css("position")||(t.remove(),0))}function a(t){return t&&0===e.$box.find(t).length}function o(){if(10<m&&(e[g("0ppecjvc==")](),setTimeout((function(){d.FE=null}),10)),!e.$box)return!1;e.$wp.prepend(g(g(u))),l=e.$wp.find("> div").first(),c=l.find("> a"),"rtl"===e.opts.direction&&l.css("left","auto").css("right",0).attr("direction","rtl"),m++}function i(e){for(var t=[g("9qqG-7amjlwq=="),g("KA3B3C2A6D1D5H5H1A3=="),g("3B9B3B5F3C4G3E3=="),g("QzbzvxyB2yA-9m=="),g("ji1kacwmgG5bc=="),g("nmA-13aogi1A3c1jd=="),g("BA9ggq=="),g("emznbjbH3fij=="),g("tkC-22d1qC-13sD1wzF-7=="),g("tA3jjf=="),g("1D1brkm==")],n=0;n<t.length;n++)if(String.prototype.endsWith||(String.prototype.endsWith=function(e,t){return(void 0===t||t>this.length)&&(t=this.length),this.substring(t-e.length,t)===e}),e.endsWith(t[n]))return!0;return!1}function s(){var e=g(p),t=g("tzgatD-13eD1dtdrvmF3c1nrC-7saQcdav==").split(".");return window.parent.document.querySelector(e)&&window[t[1]][t[2]]}var l,c,d=e.$,f="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==",p="MekC-11nB-8tIzpD7pewxvzC6mD-16xerg1==",u="sC-7OB2fwhVC4vsG-7ohPA4ZD4D-8f1J3stzB-11bFE2EE1MA2ND1KD1IE4cA-21pSD2D5ve1G3h1A8b1E5ZC3CD2FA16mC5OC5E1hpnG1NA10B1D7hkUD4I-7b2C3C5nXD2E3F3whidEC2EH3GI2mJE2E2bxci1WA10VC7pllSG2F3A7xd1A4ZC3DB2aaeGA2DE4H2E1j1ywD-13FD1A3VE4WA3D8C6wuc1A2hf1B5B7vnrrjA1B9ic1mpbD1oMB1iSB7rWC4RI4G-7upB6jd1A2F3H2EA4FD3kDF4A2moc1anJD1TD4VI4b2C7oeQF4c1E3XC7ZA3C3G3uDB2wGB6D1JC4D1JD4C1hTE6QC5pH4pD3C-22D7c1A3textAA4gdlB2mpozkmhNC1mrxA3yWA5edhg1I2H3B7ozgmvAI3I2B5GD1LD2RSNH1KA1XA5SB4PA3sA9tlmC-9tnf1G3nd1coBH4I2I2JC3C-16LE6A1tnUA3vbwQB1G3f1A20a3A8a1C6pxAB2eniuE1F3kH2lnjB2hB-16XA5PF1G4zwtYA5B-11mzTG2B9pHB3BE2hGH3B3B2cMD5C1F1wzPA8E7VG5H5vD3H-7C8tyvsVF2I1G2A5fE3bg1mgajoyxMA4fhuzSD8aQB2B4g1A20ukb1A4B3F3GG2CujjanIC1ObiB11SD1C5pWC1D4YB8YE5FE-11jXE2F-7jB4CC2G-10uLH4E1C2tA-13yjUH5d1H1A7sWD5E4hmjF-7pykafoGA16hDD4joyD-8OA33B3C2tC7cRE4SA31a1B8d1e2A4F4g1A2A22CC5zwlAC2C1A12==",h=function(){for(var e=0,t=document.domain,n=t.split("."),r="_gd".concat((new Date).getTime());e<n.length-1&&-1===document.cookie.indexOf("".concat(r,"=").concat(r));)t=n.slice(-1-++e).join("."),document.cookie="".concat(r,"=").concat(r,";domain=").concat(t,";");return document.cookie="".concat(r,"=;expires=Thu, 01 Jan 1970 00:00:01 GMT;domain=").concat(t,";"),(t||"").replace(/(^\.*)|(\.*$)/g,"")}(),g=function(e){if(!e)return e;for(var r="",a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".indexOf(e[0]),o=1;o<e.length-2;o++){for(var i=t(++a),s=e.charCodeAt(o),l="";/[0-9-]/.test(e[o+1]);)l+=e[++o];s=n(s,i,l=parseInt(l,10)||0),s^=a-1&31,r+=String.fromCharCode(s)}return r},m=0;return{_init:function(){var t=e.opts.key||[""],n=g("ziRA1E3B9pA5B-11D-11xg1A3ZB5D1D4B-11ED2EG2pdeoC1clIH4wB-22yQD5uF4YE3E3A9==");"string"==typeof t&&(t=[t]);for(var p,m,v,b=!(e.ul=!0),E=0,A=0;A<t.length;A++){var T=(m=t[A],4===(v=(g(m)||"").split("|")).length&&"V3"===v[0]?[v[1],v[3],v[2]]:[null,null,""]),C=T[2];if(C===g(g("LGnD1KNZf1CPBYCAZB-8F3UDSLLSG1VFf1A3C2=="))||0<=C.indexOf(h,C.length-h.length)||i(h)||s()){if(null!==(p=T[1])&&!(0==p.indexOf("TRIAL")?(p=new Date(p.replace(/TRIAL/,"")),new Date(p)<new Date&&(f="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==",1)):new Date(p)<new Date(g("AA15A8B6C4B5A2E2B3B1A7==")))||!(0<(h||"").length)||i(h)||s()){e.ul=!1;break}b=!0,u=f,E=T[0]||-1}}var S=new Image;!0===e.ul&&(o(),S.src=b?"".concat(g(n),"e=").concat(E):"".concat(g(n),"u")),!0===e.ul&&(e.events.on("contentChanged",(function(){(r(l)||r(c)||a(l)||a(c))&&o()})),e.events.on("html.get",(function(e){return e+g("qD2H-9G3ioD-17qA1tE1B-8qI3A4hA-13C-11E2C1njfldD1E6pg1C-8sC3hfbkcD2G3stC-22gqgB3G2B-7vtoA4nweeD1A31A15B9uC-16A1F5dkykdc1B8dE-11bA3F2D3A9gd1E7F2tlI-8H-7vtxB2A5B2C3B2F2B5A6ldbyC4iqC-22D-17E-13mA3D2dywiB3oxlvfC1H4C2TjqbzlnI3ntB4E3qA2zaqsC6D3pmnkoE3C6D5wvuE3bwifdhB6hch1E4xibD-17dmrC1rG-7pntnF6nB-8F1D2A11C8plrkmF2F3MC-16bocqA2WwA-21ayeA1C4d1isC-22rD-13D6DfjpjtC2E6hB2G2G4A-7D2==")}))),e.events.on("html.set",(function(){var t=e.el.querySelector('[data-f-id="pbf"]');t&&d(t).remove()})),e.events.on("destroy",(function(){l&&l.length&&l.remove()}),!0)}}},t.MODULES.edit=function(e){function t(){if(e.browser.mozilla)try{e.doc.execCommand("enableObjectResizing",!1,"false"),e.doc.execCommand("enableInlineTableEditing",!1,"false")}catch(e){}if(e.browser.msie)try{e.doc.body.addEventListener("mscontrolselect",(function(e){return e.srcElement.focus(),!1}))}catch(e){}}var n=!1;function r(){return n}return{_init:function(){e.events.on("focus",(function(){r()?e.edit.off():e.edit.on()}))},on:function(){e.$wp?(e.$el.attr("contenteditable",!0),e.$el.removeClass("fr-disabled").attr("aria-disabled",!1),t()):e.$el.is("a")&&e.$el.attr("contenteditable",!0),e.events.trigger("edit.on",[],!0),n=!1},off:function(){e.events.disableBlur(),e.$wp?(e.$el.attr("contenteditable",!1),e.$el.addClass("fr-disabled").attr("aria-disabled",!0)):e.$el.is("a")&&e.$el.attr("contenteditable",!1),e.events.trigger("edit.off"),e.events.enableBlur(),n=!0},disableDesign:t,isDisabled:r}},t.MODULES.format=function(e){var n=e.$;function r(e,t){var n="<".concat(e);for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n+=" ".concat(r,'="').concat(t[r],'"'));return n+">"}function a(e,t){var n=e;for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n+="id"===r?"#".concat(t[r]):"class"===r?".".concat(t[r]):"[".concat(r,'="').concat(t[r],'"]'));return n}function o(e,t){return!(!e||e.nodeType!==Node.ELEMENT_NODE)&&(e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.oMatchesSelector).call(e,t)}function i(t,a,o){if(t){for(;t.nodeType===Node.COMMENT_NODE;)t=t.nextSibling;if(t){if(e.node.isBlock(t)&&"HR"!==t.tagName)return e.node.hasClass(t.firstChild,"fr-marker")?i(t.firstChild.nextSibling,a,o):i(t.firstChild,a,o),!1;var s=n(e.doc.createElement(a));s.attr(o),s.insertBefore(t);for(var l=t;l&&!n(l).is(".fr-marker")&&0===n(l).find(".fr-marker").length&&"UL"!==l.tagName&&"OL"!==l.tagName;){var c=l;if(e.node.isBlock(l)&&"HR"!==t.tagName)return i(l.firstChild,a,o),!1;l=l.nextSibling,s.append(c)}if(l){if(n(l).find(".fr-marker").length||"UL"===l.tagName||"OL"===l.tagName)i(l.firstChild,a,o);else if(e.browser.mozilla&&e.node.hasClass(l,"fr-marker")){var d,f=e.selection.blocks(),p=f.length;for(d=0;d<p;d++)f[d]!=l.parentNode&&f[d].childNodes.length&&f[d].childNodes[0]!=l.parentNode&&(l=f[d].childNodes[1]||f[d].childNodes[0],(s=n(r(a,o)).insertBefore(l)).append(l))}}else{for(var u=s.get(0).parentNode;u&&!u.nextSibling&&!e.node.isElement(u);)u=u.parentNode;if(u){var h=u.nextSibling;h&&(e.node.isBlock(h)?"HR"===h.tagName?i(h.nextSibling,a,o):i(h.firstChild,a,o):i(h,a,o))}}s.is(":empty")&&s.remove()}}}function s(s,l){var c;if(void 0===l&&(l={}),l.style&&delete l.style,e.selection.isCollapsed())e.markers.insert(),e.$el.find(".fr-marker").replaceWith(r(s,l)+t.INVISIBLE_SPACE+t.MARKERS+function(e){return"</".concat(e,">")}(s)),e.selection.restore();else{var d;e.selection.save(),i(e.$el.find('.fr-marker[data-type="true"]').length&&e.$el.find('.fr-marker[data-type="true"]').get(0).nextSibling,s,l);do{for(d=e.$el.find("".concat(a(s,l)," > ").concat(a(s,l))),c=0;c<d.length;c++)d[c].outerHTML=d[c].innerHTML}while(d.length);e.el.normalize();var f=e.el.querySelectorAll(".fr-marker");for(c=0;c<f.length;c++){var p=n(f[c]);!0===p.data("type")?o(p.get(0).nextSibling,a(s,l))&&p.next().prepend(p):o(p.get(0).previousSibling,a(s,l))&&p.prev().append(p)}e.selection.restore()}}function l(t,n,r,i){if(!i){var s=!1;if(!0===t.data("type"))for(;e.node.isFirstSibling(t.get(0))&&!t.parent().is(e.$el)&&!t.parent().is("ol")&&!t.parent().is("ul");)t.parent().before(t),s=!0;else if(!1===t.data("type"))for(;e.node.isLastSibling(t.get(0))&&!t.parent().is(e.$el)&&!t.parent().is("ol")&&!t.parent().is("ul");)t.parent().after(t),s=!0;if(s)return!0}if(t.parents(n).length||void 0===n){var l,c="",d="",f=t.parent();if(f.is(e.$el)||e.node.isBlock(f.get(0)))return!1;for(;!(e.node.isBlock(f.parent().get(0))||void 0!==n&&o(f.get(0),a(n,r)));)c+=e.node.closeTagString(f.get(0)),d=e.node.openTagString(f.get(0))+d,f=f.parent();var p=t.get(0).outerHTML;return t.replaceWith('<span id="mark"></span>'),l=f.html().replace(/<span id="mark"><\/span>/,c+e.node.closeTagString(f.get(0))+d+p+c+e.node.openTagString(f.get(0))+d),f.replaceWith(e.node.openTagString(f.get(0))+l+e.node.closeTagString(f.get(0))),!0}return!1}function c(r,i){void 0===i&&(i={}),i.style&&delete i.style;var s=e.selection.isCollapsed();e.selection.save();for(var c=!0;c;){c=!1;for(var d=e.$el.find(".fr-marker"),f=0;f<d.length;f++){var p=n(d[f]),u=null;if(p.attr("data-cloned")||s||(u=p.clone().removeClass("fr-marker").addClass("fr-clone"),p.data("type")&&"true"===p.data("type").toString()?p.attr("data-cloned",!0).after(u):p.attr("data-cloned",!0).before(u)),l(p,r,i,s)){c=!0;break}}}!function t(r,i,s,l){for(var c=e.node.contents(r.get(0)),d=0;d<c.length;d++){var f=c[d];if(f.innerHTML&&8203==f.innerHTML.charCodeAt()&&f.tagName.toLocaleLowerCase()==s&&(f.outerHTML=f.innerHTML),e.node.hasClass(f,"fr-marker"))i=(i+1)%2;else if(i)if(0<n(f).find(".fr-marker").length)i=t(n(f),i,s,l);else{for(var p=n(f).find(s||"*:not(br)"),u=p.length-1;0<=u;u--){var h=p[u];e.node.isBlock(h)||e.node.isVoid(h)||void 0!==s&&!o(h,a(s,l))?e.node.isBlock(h)&&void 0===s&&"TABLE"!==f.tagName&&e.node.clearAttributes(h):e.node.hasClass(h,"fr-clone")||(h.outerHTML=h.innerHTML)}void 0===s&&f.nodeType===Node.ELEMENT_NODE&&!e.node.isVoid(f)||o(f,a(s,l))?e.node.isBlock(f)||e.node.hasClass(f,"fr-clone")||(f.outerHTML=f.innerHTML):void 0===s&&f.nodeType===Node.ELEMENT_NODE&&e.node.isBlock(f)&&"TABLE"!==f.tagName&&e.node.clearAttributes(f)}else 0<n(f).find(".fr-marker").length&&(i=t(n(f),i,s,l))}return i}(e.$el,0,r,i),s||(e.$el.find(".fr-marker").remove(),e.$el.find(".fr-clone").removeClass("fr-clone").addClass("fr-marker")),s&&e.$el.find(".fr-marker").before(t.INVISIBLE_SPACE).after(t.INVISIBLE_SPACE),e.html.cleanEmptyTags(),e.el.normalize(),e.selection.restore();var h=e.win.getSelection()&&e.win.getSelection().anchorNode;if(h){var g=e.node.blockParent(h),m=!!h.textContent.replace(/\u200B/g,"").length,v=e.win.getSelection().getRangeAt(0),b=v.startOffset,E=v.endOffset;e.selection.text().replace(/\u200B/g,"").length||function e(t,n){if(t&&n){if(t.isSameNode(n)?t.textContent=t.textContent.replace(/\u200B(?=.*\u200B)/g,""):t.nodeType===Node.TEXT_NODE&&(t.textContent=t.textContent.replace(/\u200B/g,"")),!t.childNodes.length)return!1;Array.isArray(t.childNodes)&&t.childNodes.forEach((function(t){e(t,n)}))}}(g,h);var A=e.win.getSelection().getRangeAt(0);if(h.nodeType===Node.TEXT_NODE&&(!m||!e.selection.text().length&&b===E)){var T=h.textContent.search(/\u200B/g)+1;A.setStart(h,T),A.setEnd(h,T)}}}function d(r,a){var o,s,c,d,p,u=null;if(e.selection.isCollapsed()){e.markers.insert();var h=(s=e.$el.find(".fr-marker")).parent();if(e.node.openTagString(h.get(0))==='<span style="'.concat(r,": ").concat(h.css(r),';">')){if(e.node.isEmpty(h.get(0)))u=n(e.doc.createElement("span")).attr("style","".concat(r,": ").concat(a,";")).html("".concat(t.INVISIBLE_SPACE).concat(t.MARKERS)),h.replaceWith(u);else{var g={};g["style*"]="".concat(r,":"),l(s,"span",g,!0),s=e.$el.find(".fr-marker"),a?(u=n(e.doc.createElement("span")).attr("style","".concat(r,": ").concat(a,";")).html("".concat(t.INVISIBLE_SPACE).concat(t.MARKERS)),s.replaceWith(u)):s.replaceWith(t.INVISIBLE_SPACE+t.MARKERS)}e.html.cleanEmptyTags()}else e.node.isEmpty(h.get(0))&&h.is("span")?(s.replaceWith(t.MARKERS),h.css(r,a)):(u=n('<span style="'.concat(r,": ").concat(a,';">').concat(t.INVISIBLE_SPACE).concat(t.MARKERS,"</span>")),s.replaceWith(u));u&&f(u,r,a)}else{if(e.selection.save(),null===a||"color"===r&&0<e.$el.find(".fr-marker").parents("u, a").length){var m=e.$el.find(".fr-marker");for(o=0;o<m.length;o++)if(!0===(s=n(m[o])).data("type")||"true"===s.data("type"))for(;e.node.isFirstSibling(s.get(0))&&!s.parent().is(e.$el)&&!e.node.isElement(s.parent().get(0))&&!e.node.isBlock(s.parent().get(0));)s.parent().before(s);else for(;e.node.isLastSibling(s.get(0))&&!s.parent().is(e.$el)&&!e.node.isElement(s.parent().get(0))&&!e.node.isBlock(s.parent().get(0));)s.parent().after(s)}for(var v=e.$el.find('.fr-marker[data-type="true"]').get(0).nextSibling;v.firstChild;)v=v.firstChild;var b={class:"fr-unprocessed"};for(a&&(b.style="".concat(r,": ").concat(a,";")),i(v,"span",b),e.$el.find(".fr-marker + .fr-unprocessed").each((function(){n(this).prepend(n(this).prev())})),e.$el.find(".fr-unprocessed + .fr-marker").each((function(){n(this).prev().append(n(this))})),(a||"").match(/\dem$/)&&e.$el.find("span.fr-unprocessed").removeClass("fr-unprocessed");0<e.$el.find("span.fr-unprocessed").length;){if((u=e.$el.find("span.fr-unprocessed").first().removeClass("fr-unprocessed")).parent().get(0).normalize(),u.parent().is("span")&&1===u.parent().get(0).childNodes.length){u.parent().css(r,a);var E=u;u=u.parent(),E.replaceWith(E.html())}var A=u.find("span");for(o=A.length-1;0<=o;o--)c=A[o],d=r,p=void 0,(p=n(c)).css(d,""),""===p.attr("style")&&p.replaceWith(p.html());f(u,r,a)}}!function(){for(var t;0<e.$el.find(".fr-split:empty").length;)e.$el.find(".fr-split:empty").remove();e.$el.find(".fr-split").removeClass("fr-split"),e.$el.find('[style=""]').removeAttr("style"),e.$el.find('[class=""]').removeAttr("class"),e.html.cleanEmptyTags();for(var r=e.$el.find("span"),a=r.length-1;0<=a;a--){var o=r[a];o.attributes&&0!==o.attributes.length||n(o).replaceWith(o.innerHTML)}e.el.normalize();var i=e.$el.find("span[style] + span[style]");for(t=0;t<i.length;t++){var s=n(i[t]),c=n(i[t]).prev();s.get(0).previousSibling===c.get(0)&&e.node.openTagString(s.get(0))===e.node.openTagString(c.get(0))&&(s.prepend(c.html()),c.remove())}e.$el.find("span[style] span[style]").each((function(){if(0<=n(this).attr("style").indexOf("font-size")){var e=n(this).parents("span[style]");0<=e.attr("style").indexOf("background-color")&&(n(this).attr("style","".concat(n(this).attr("style"),";").concat(e.attr("style"))),l(n(this),"span[style]",{},!1))}})),e.el.normalize(),e.selection.restore()}()}function f(t,r,a){var o,i,s,l=t.parentsUntil(e.$el,"span[style]"),c=[];for(o=l.length-1;0<=o;o--)i=l[o],s=r,0===n(i).attr("style").indexOf("".concat(s,":"))||0<=n(i).attr("style").indexOf(";".concat(s,":"))||0<=n(i).attr("style").indexOf("; ".concat(s,":"))||c.push(l[o]);if((l=l.not(c)).length){for(var d="",f="",p="",u="",h=t.get(0);h=h.parentNode,n(h).addClass("fr-split"),d+=e.node.closeTagString(h),f=e.node.openTagString(n(h).clone().addClass("fr-split").get(0))+f,l.get(0)!==h&&(p+=e.node.closeTagString(h),u=e.node.openTagString(n(h).clone().addClass("fr-split").get(0))+u),l.get(0)!==h;);var g="".concat(d+e.node.openTagString(n(l.get(0)).clone().css(r,a||"").get(0))+u+t.css(r,"").get(0).outerHTML+p,"</span>").concat(f);t.replaceWith('<span id="fr-break"></span>');var m=l.get(0).outerHTML;n(l.get(0)).replaceWith(m.replace(/<span id="fr-break"><\/span>/g,(function(){return g})))}}function p(t,n){void 0===n&&(n={}),n.style&&delete n.style;var r=e.selection.ranges(0),i=r.startContainer;if(i.nodeType===Node.ELEMENT_NODE&&0<i.childNodes.length&&i.childNodes[r.startOffset]&&(i=i.childNodes[r.startOffset]),!r.collapsed&&i.nodeType===Node.TEXT_NODE&&r.startOffset===(i.textContent||"").length){for(;!e.node.isBlock(i.parentNode)&&!i.nextSibling;)i=i.parentNode;i.nextSibling&&(i=i.nextSibling)}for(var s=i;s&&s.nodeType===Node.ELEMENT_NODE&&!o(s,a(t,n));)s=s.firstChild;if(s&&s.nodeType===Node.ELEMENT_NODE&&o(s,a(t,n)))return!0;var l=i;for(l&&l.nodeType!==Node.ELEMENT_NODE&&(l=l.parentNode);l&&l.nodeType===Node.ELEMENT_NODE&&l!==e.el&&!o(l,a(t,n));)l=l.parentNode;return!(!l||l.nodeType!==Node.ELEMENT_NODE||l===e.el||!o(l,a(t,n)))}return{is:p,toggle:function(e,t){p(e,t)?c(e,t):s(e,t)},apply:s,remove:c,applyStyle:d,removeStyle:function(e){d(e,null)}}},t.MODULES.spaces=function(e){function n(n,r){var a=n.previousSibling,o=n.nextSibling,i=n.textContent,s=n.parentNode,l=[t.ENTER_P,t.ENTER_DIV,t.ENTER_BR];if(!e.html.isPreformatted(s)){r&&(i=i.replace(/[\f\n\r\t\v ]{2,}/g," "),o&&"BR"!==o.tagName&&!e.node.isBlock(o)||!(e.node.isBlock(s)||e.node.isLink(s)&&!s.nextSibling||e.node.isElement(s))||(i=i.replace(/[\f\n\r\t\v ]{1,}$/g,"")),a&&"BR"!==a.tagName&&!e.node.isBlock(a)||!(e.node.isBlock(s)||e.node.isLink(s)&&!s.previousSibling||e.node.isElement(s))||(i=i.replace(/^[\f\n\r\t\v ]{1,}/g,"")),(e.node.isBlock(o)||e.node.isBlock(a))&&(i=i.replace(/^[\f\n\r\t\v ]{1,}/g,""))," "===i&&(a&&e.node.isVoid(a)||o&&e.node.isVoid(o))&&!(a&&o&&e.node.isVoid(a)||o&&a&&e.node.isVoid(o))&&(i="")),(!a&&e.node.isBlock(o)||!o&&e.node.isBlock(a))&&e.node.isBlock(s)&&s!==e.el&&(i=i.replace(/^[\f\n\r\t\v ]{1,}/g,"")),r||(i=i.replace(new RegExp(t.UNICODE_NBSP,"g")," "));for(var c="",d=0;d<i.length;d++)32!=i.charCodeAt(d)||0!==d&&32!=c.charCodeAt(d-1)||(e.opts.enter!==t.ENTER_BR&&e.opts.enter!==t.ENTER_DIV||!(a&&"BR"===a.tagName||o&&"BR"===o.tagName))&&(a&&o&&e.node.isVoid(a)||a&&o&&e.node.isVoid(o))?c+=i[d]:c+=t.UNICODE_NBSP;(!o||o&&e.node.isBlock(o)||o&&o.nodeType===Node.ELEMENT_NODE&&e.win.getComputedStyle(o)&&"block"===e.win.getComputedStyle(o).display)&&(!e.node.isVoid(a)||a&&-1!==["P","DIV","BR"].indexOf(a.tagName)&&-1!==l.indexOf(e.opts.enter))&&(c=c.replace(/ $/,t.UNICODE_NBSP)),!a||e.node.isVoid(a)||e.node.isBlock(a)||1!==(c=c.replace(/^\u00A0([^ $])/," $1")).length||160!==c.charCodeAt(0)||!o||e.node.isVoid(o)||e.node.isBlock(o)||e.node.hasClass(a,"fr-marker")&&e.node.hasClass(o,"fr-marker")||(c=" "),r||(c=c.replace(/([^ \u00A0])\u00A0([^ \u00A0])/g,"$1 $2")),n.textContent!==c&&(n.textContent=c)}}function r(t,r){if(void 0!==t&&t||(t=e.el),void 0===r&&(r=!1),!t.getAttribute||"false"!==t.getAttribute("contenteditable"))if(t.nodeType===Node.TEXT_NODE)n(t,r);else if(t.nodeType===Node.ELEMENT_NODE)for(var a=e.doc.createTreeWalker(t,NodeFilter.SHOW_TEXT,e.node.filter((function(t){for(var n=t.parentNode;n&&n!==e.el;){if("STYLE"===n.tagName||"IFRAME"===n.tagName)return!1;if("PRE"===n.tagName)return!1;n=n.parentNode}return null!==t.textContent.match(/([ \u00A0\f\n\r\t\v]{2,})|(^[ \u00A0\f\n\r\t\v]{1,})|([ \u00A0\f\n\r\t\v]{1,}$)/g)&&!e.node.hasClass(t.parentNode,"fr-marker")})),!1);a.nextNode();)n(a.currentNode,r)}return{normalize:r,normalizeAroundCursor:function(){for(var t=[],n=e.el.querySelectorAll(".fr-marker"),a=0;a<n.length;a++){for(var o,i=(o=e.node.blockParent(n[a])||n[a]).nextSibling,s=o.previousSibling;i&&"BR"===i.tagName;)i=i.nextSibling;for(;s&&"BR"===s.tagName;)s=s.previousSibling;o&&t.indexOf(o)<0&&t.push(o),s&&t.indexOf(s)<0&&t.push(s),i&&t.indexOf(i)<0&&t.push(i)}for(var l=0;l<t.length;l++)r(t[l])}}},t.START_MARKER='<span class="fr-marker" data-id="0" data-type="true" style="display: none; line-height: 0;">'.concat(t.INVISIBLE_SPACE="​","</span>"),t.END_MARKER='<span class="fr-marker" data-id="0" data-type="false" style="display: none; line-height: 0;">'.concat(t.INVISIBLE_SPACE,"</span>"),t.MARKERS=t.START_MARKER+t.END_MARKER,t.MODULES.markers=function(e){var n=e.$;function r(){if(!e.$wp)return null;try{var r=e.selection.ranges(0),a=r.commonAncestorContainer;if(a!==e.el&&!e.$el.contains(a))return null;var o=r.cloneRange(),i=r.cloneRange();o.collapse(!0);var s=n(e.doc.createElement("SPAN")).addClass("fr-marker").attr("style","display: none; line-height: 0;").html(t.INVISIBLE_SPACE).get(0);if(o.insertNode(s),s=e.$el.find("span.fr-marker").get(0)){for(var l=s.nextSibling;l&&l.nodeType===Node.TEXT_NODE&&0===l.textContent.length;)n(l).remove(),l=e.$el.find("span.fr-marker").get(0).nextSibling;return e.selection.clear(),e.selection.get().addRange(i),s}return null}catch(e){}}function a(){e.$el.find(".fr-marker").remove()}return{place:function(r,a,o){var i,s,l;try{var c=r.cloneRange();if(c.collapse(a),c.insertNode(function(r,a){var o=n(e.doc.createElement("SPAN"));return o.addClass("fr-marker").attr("data-id",a).attr("data-type",r).attr("style","display: ".concat(e.browser.safari?"none":"inline-block","; line-height: 0;")).html(t.INVISIBLE_SPACE),o.get(0)}(a,o)),!0===a)for(l=(i=e.$el.find('span.fr-marker[data-type="true"][data-id="'.concat(o,'"]')).get(0)).nextSibling;l&&l.nodeType===Node.TEXT_NODE&&0===l.textContent.length;)n(l).remove(),l=i.nextSibling;if(!0===a&&!r.collapsed){for(;!e.node.isElement(i.parentNode)&&!l;)n(i.parentNode).after(i),l=i.nextSibling;if(l&&l.nodeType===Node.ELEMENT_NODE&&e.node.isBlock(l)&&"HR"!==l.tagName){for(s=[l];l=s[0],(s=e.node.contents(l))[0]&&e.node.isBlock(s[0]););n(l).prepend(n(i))}}if(!1===a&&!r.collapsed){if((l=(i=e.$el.find('span.fr-marker[data-type="false"][data-id="'.concat(o,'"]')).get(0)).previousSibling)&&l.nodeType===Node.ELEMENT_NODE&&e.node.isBlock(l)&&"HR"!==l.tagName){for(s=[l];l=s[s.length-1],(s=e.node.contents(l))[s.length-1]&&e.node.isBlock(s[s.length-1]););n(l).append(n(i))}(i.parentNode&&0<=["TD","TH"].indexOf(i.parentNode.tagName)||!i.previousSibling&&e.node.isBlock(i.parentElement))&&i.parentNode.previousSibling&&!i.previousSibling&&n(i.parentNode.previousSibling).append(i)}var d=e.$el.find('span.fr-marker[data-type="'.concat(a,'"][data-id="').concat(o,'"]')).get(0);return d&&(d.style.display="none"),d}catch(e){return null}},insert:r,split:function(){e.selection.isCollapsed()||e.selection.remove();var t=e.$el.find(".fr-marker").get(0);if(t||(t=r()),!t)return null;var a=e.node.deepestParent(t);if(a||(a=e.node.blockParent(t))&&"LI"!==a.tagName&&(a=null),a)if(e.node.isBlock(a)&&e.node.isEmpty(a))"LI"!==a.tagName||a.parentNode.firstElementChild!==a||e.node.isEmpty(a.parentNode)?n(a).replaceWith('<span class="fr-marker"></span>'):n(a).append('<span class="fr-marker"></span>');else if(e.cursor.isAtStart(t,a))n(a).before('<span class="fr-marker"></span>'),n(t).remove();else if(e.cursor.isAtEnd(t,a))n(a).after('<span class="fr-marker"></span>'),n(t).remove();else{for(var o=t,i="",s="";o=o.parentNode,i+=e.node.closeTagString(o),s=e.node.openTagString(o)+s,o!==a;);n(t).replaceWith('<span id="fr-break"></span>');var l=e.node.openTagString(a)+n(a).html()+e.node.closeTagString(a);l=l.replace(/<span id="fr-break"><\/span>/g,"".concat(i,'<span class="fr-marker"></span>').concat(s)),n(a).replaceWith(l)}return e.$el.find(".fr-marker").get(0)},insertAtPoint:function(t){var n,o=t.clientX,i=t.clientY;a();var s=null;if(void 0!==e.doc.caretPositionFromPoint?(n=e.doc.caretPositionFromPoint(o,i),(s=e.doc.createRange()).setStart(n.offsetNode,n.offset),s.setEnd(n.offsetNode,n.offset)):void 0!==e.doc.caretRangeFromPoint&&(n=e.doc.caretRangeFromPoint(o,i),(s=e.doc.createRange()).setStart(n.startContainer,n.startOffset),s.setEnd(n.startContainer,n.startOffset)),null!==s&&void 0!==e.win.getSelection){var l=e.win.getSelection();l.removeAllRanges(),l.addRange(s)}else if(void 0!==e.doc.body.createTextRange)try{(s=e.doc.body.createTextRange()).moveToPoint(o,i);var c=s.duplicate();c.moveToPoint(o,i),s.setEndPoint("EndToEnd",c),s.select()}catch(e){return!1}r()},remove:a}},t.MODULES.selection=function(e){var n=e.$;function r(){var t="";return e.win.getSelection?t=e.win.getSelection():e.doc.getSelection?t=e.doc.getSelection():e.doc.selection&&(t=e.doc.selection.createRange().text),t.toString()}function a(){return e.win.getSelection?e.win.getSelection():e.doc.getSelection?e.doc.getSelection():e.doc.selection.createRange()}function o(t){var n=a(),r=[];if(n&&n.getRangeAt&&n.rangeCount){r=[];for(var o=0;o<n.rangeCount;o++)r.push(n.getRangeAt(o))}else r=e.doc.createRange?[e.doc.createRange()]:[];return void 0!==t?r[t]:r}function i(){var e=a();try{e.removeAllRanges?e.removeAllRanges():e.empty?e.empty():e.clear&&e.clear()}catch(e){}}function s(e,t){var n=e;return n.nodeType===Node.ELEMENT_NODE&&0<n.childNodes.length&&n.childNodes[t]&&(n=n.childNodes[t]),n.nodeType===Node.TEXT_NODE&&(n=n.parentNode),n}function l(){if(e.$wp){e.markers.remove();var t,r,a=o(),i=[];for(r=0;r<a.length;r++)if(a[r].startContainer!==e.doc||e.browser.msie){var s=(t=a[r]).collapsed,l=e.markers.place(t,!0,r),c=e.markers.place(t,!1,r);if(void 0!==l&&l||!s||(n(".fr-marker").remove(),e.selection.setAtEnd(e.el)),e.el.normalize(),e.browser.safari&&!s)try{(t=e.doc.createRange()).setStartAfter(l),t.setEndBefore(c),i.push(t)}catch(e){}}if(e.browser.safari&&i.length)for(e.selection.clear(),r=0;r<i.length;r++)e.selection.get().addRange(i[r])}}function c(){var t,r=e.el.querySelectorAll('.fr-marker[data-type="true"]');if(!e.$wp)return e.markers.remove(),!1;if(0===r.length)return!1;if(e.browser.msie||e.browser.edge)for(t=0;t<r.length;t++)r[t].style.display="inline-block";e.core.hasFocus()||e.browser.msie||e.browser.webkit||e.$el.focus(),i();var o=a();for(t=0;t<r.length;t++){var s=n(r[t]).data("id"),l=r[t],c=e.doc.createRange(),f=e.$el.find('.fr-marker[data-type="false"][data-id="'.concat(s,'"]'));(e.browser.msie||e.browser.edge)&&f.css("display","inline-block");var p=null;if(0<f.length){f=f[0];try{for(var u=!1,h=l.nextSibling,g=null;h&&h.nodeType===Node.TEXT_NODE&&0===h.textContent.length;)h=(g=h).nextSibling,n(g).remove();for(var m=f.nextSibling;m&&m.nodeType===Node.TEXT_NODE&&0===m.textContent.length;)m=(g=m).nextSibling,n(g).remove();if(l.nextSibling===f||f.nextSibling===l){for(var v=l.nextSibling===f?l:f,b=v===l?f:l,E=v.previousSibling;E&&E.nodeType===Node.TEXT_NODE&&0===E.length;)E=(g=E).previousSibling,n(g).remove();if(E&&E.nodeType===Node.TEXT_NODE)for(;E&&E.previousSibling&&E.previousSibling.nodeType===Node.TEXT_NODE;)E.previousSibling.textContent+=E.textContent,E=E.previousSibling,n(E.nextSibling).remove();for(var A=b.nextSibling;A&&A.nodeType===Node.TEXT_NODE&&0===A.length;)A=(g=A).nextSibling,n(g).remove();if(A&&A.nodeType===Node.TEXT_NODE)for(;A&&A.nextSibling&&A.nextSibling.nodeType===Node.TEXT_NODE;)A.nextSibling.textContent=A.textContent+A.nextSibling.textContent,A=A.nextSibling,n(A.previousSibling).remove();if(E&&(e.node.isVoid(E)||e.node.isBlock(E))&&(E=null),A&&(e.node.isVoid(A)||e.node.isBlock(A))&&(A=null),E&&A&&E.nodeType===Node.TEXT_NODE&&A.nodeType===Node.TEXT_NODE){n(l).remove(),n(f).remove();var T=E.textContent.length;E.textContent+=A.textContent,n(A).remove(),e.opts.htmlUntouched||e.spaces.normalize(E),c.setStart(E,T),c.setEnd(E,T),u=!0}else!E&&A&&A.nodeType===Node.TEXT_NODE?(n(l).remove(),n(f).remove(),e.opts.htmlUntouched||e.spaces.normalize(A),p=n(e.doc.createTextNode("")).get(0),n(A).before(p),c.setStart(A,0),c.setEnd(A,0),u=!0):!A&&E&&E.nodeType===Node.TEXT_NODE&&(n(l).remove(),n(f).remove(),e.opts.htmlUntouched||e.spaces.normalize(E),p=n(e.doc.createTextNode("")).get(0),n(E).after(p),c.setStart(E,E.textContent.length),c.setEnd(E,E.textContent.length),u=!0)}if(!u){var C=void 0,S=void 0;S=(e.browser.chrome||e.browser.edge)&&l.nextSibling===f?(C=d(f,c,!0)||c.setStartAfter(f),d(l,c,!1)||c.setEndBefore(l)):(l.previousSibling===f&&(f=(l=f).nextSibling),f.nextSibling&&"BR"===f.nextSibling.tagName||!f.nextSibling&&e.node.isBlock(l.previousSibling)||l.previousSibling&&"BR"===l.previousSibling.tagName||(l.style.display="inline",f.style.display="inline",p=n(e.doc.createTextNode("")).get(0)),C=d(l,c,!0)||n(l).before(p)&&c.setStartBefore(l),d(f,c,!1)||n(f).after(p)&&c.setEndAfter(f)),"function"==typeof C&&C(),"function"==typeof S&&S()}}catch(e){}}p&&n(p).remove();try{o.addRange(c)}catch(e){}}e.markers.remove()}function d(t,r,a){var o,i=t.previousSibling,s=t.nextSibling;return i&&s&&i.nodeType===Node.TEXT_NODE&&s.nodeType===Node.TEXT_NODE?(o=i.textContent.length,a?(s.textContent=i.textContent+s.textContent,n(i).remove(),n(t).remove(),e.opts.htmlUntouched||e.spaces.normalize(s),function(){r.setStart(s,o)}):(i.textContent+=s.textContent,n(s).remove(),n(t).remove(),e.opts.htmlUntouched||e.spaces.normalize(i),function(){r.setEnd(i,o)})):i&&!s&&i.nodeType===Node.TEXT_NODE?(o=i.textContent.length,a?(e.opts.htmlUntouched||e.spaces.normalize(i),function(){r.setStart(i,o)}):(e.opts.htmlUntouched||e.spaces.normalize(i),function(){r.setEnd(i,o)})):!(!s||i||s.nodeType!==Node.TEXT_NODE)&&(a?(e.opts.htmlUntouched||e.spaces.normalize(s),function(){r.setStart(s,0)}):(e.opts.htmlUntouched||e.spaces.normalize(s),function(){r.setEnd(s,0)}))}function f(){for(var e=o(),t=0;t<e.length;t++)if(!e[t].collapsed)return!1;return!0}function p(t){var n,r,a=!1,o=!1;if(e.win.getSelection){var i=e.win.getSelection();i.rangeCount&&((r=(n=i.getRangeAt(0)).cloneRange()).selectNodeContents(t),r.setEnd(n.startContainer,n.startOffset),a=u(r),r.selectNodeContents(t),r.setStart(n.endContainer,n.endOffset),o=u(r))}else e.doc.selection&&"Control"!==e.doc.selection.type&&((r=(n=e.doc.selection.createRange()).duplicate()).moveToElementText(t),r.setEndPoint("EndToStart",n),a=u(r),r.moveToElementText(t),r.setEndPoint("StartToEnd",n),o=u(r));return{atStart:a,atEnd:o}}function u(e){return""===e.toString().replace(/[\u200B-\u200D\uFEFF]/g,"")}function h(t,r){void 0===r&&(r=!0);var a=n(t).html();a&&a.replace(/\u200b/g,"").length!==a.length&&n(t).html(a.replace(/\u200b/g,""));for(var o=e.node.contents(t),i=0;i<o.length;i++)o[i].nodeType!==Node.ELEMENT_NODE?n(o[i]).remove():(h(o[i],0===i),0===i&&(r=!1));if(t.nodeType===Node.TEXT_NODE){var s=n(document.createElement("span")).attr("data-first","true").attr("data-text","true");n(t)[0].replaceWith(s[0])}else r&&n(t).attr("data-first",!0)}function g(){return 0===n(this).find("fr-inner").length}function m(){try{if(!e.$wp)return!1;for(var t=o(0).commonAncestorContainer;t&&!e.node.isElement(t);)t=t.parentNode;return!!e.node.isElement(t)}catch(e){return!1}}function v(n,r){if(!n||0<n.getElementsByClassName("fr-marker").length)return!1;for(var a=n.firstChild;a&&(e.node.isBlock(a)||r&&!e.node.isVoid(a)&&a.nodeType===Node.ELEMENT_NODE);)a=(n=a).firstChild;n.innerHTML=t.MARKERS+n.innerHTML}function b(n,r){if(!n||0<n.getElementsByClassName("fr-marker").length)return!1;for(var a=n.lastChild;a&&(e.node.isBlock(a)||r&&!e.node.isVoid(a)&&a.nodeType===Node.ELEMENT_NODE);)a=(n=a).lastChild;var o=e.doc.createElement("SPAN");for(o.setAttribute("id","fr-sel-markers"),o.innerHTML=t.MARKERS;n.parentNode&&e.opts.htmlAllowedEmptyTags&&0<=e.opts.htmlAllowedEmptyTags.indexOf(n.tagName.toLowerCase());)n=n.parentNode;n.appendChild(o);var i=n.querySelector("#fr-sel-markers");i.outerHTML=i.innerHTML}return{text:r,get:a,ranges:o,clear:i,element:function(){var t=a();try{if(t.rangeCount){var i,s=o(0),l=s.startContainer;if(e.node.isElement(l)&&0===s.startOffset&&l.childNodes.length)for(;l.childNodes.length&&l.childNodes[0].nodeType===Node.ELEMENT_NODE;)l=l.childNodes[0];if(l.nodeType===Node.TEXT_NODE&&s.startOffset===(l.textContent||"").length&&l.nextSibling&&(l=l.nextSibling),l.nodeType===Node.ELEMENT_NODE){var c=!1;if(0<l.childNodes.length&&l.childNodes[s.startOffset]){for(i=l.childNodes[s.startOffset];i&&i.nodeType===Node.TEXT_NODE&&0===i.textContent.length;)i=i.nextSibling;if(i&&i.textContent.replace(/\u200B/g,"")===r().replace(/\u200B/g,"")&&(l=i,c=!0),!c&&1<l.childNodes.length&&0<s.startOffset&&l.childNodes[s.startOffset-1]){for(i=l.childNodes[s.startOffset-1];i&&i.nodeType===Node.TEXT_NODE&&0===i.textContent.length;)i=i.nextSibling;i&&i.textContent.replace(/\u200B/g,"")===r().replace(/\u200B/g,"")&&(l=i,c=!0)}}else!s.collapsed&&l.nextSibling&&l.nextSibling.nodeType===Node.ELEMENT_NODE&&(i=l.nextSibling)&&i.textContent.replace(/\u200B/g,"")===r().replace(/\u200B/g,"")&&(l=i,c=!0);!c&&0<l.childNodes.length&&n(l.childNodes[0]).text().replace(/\u200B/g,"")===r().replace(/\u200B/g,"")&&["BR","IMG","HR"].indexOf(l.childNodes[0].tagName)<0&&(l=l.childNodes[0])}for(;l.nodeType!==Node.ELEMENT_NODE&&l.parentNode;)l=l.parentNode;for(var d=l;d&&"HTML"!==d.tagName;){if(d===e.el)return l;d=n(d).parent()[0]}}}catch(e){}return e.el},endElement:function(){var t=a();try{if(t.rangeCount){var i,s=o(0),l=s.endContainer;if(l.nodeType===Node.ELEMENT_NODE){var c=!1;0<l.childNodes.length&&l.childNodes[s.endOffset]&&n(l.childNodes[s.endOffset]).text()===r()?(l=l.childNodes[s.endOffset],c=!0):!s.collapsed&&l.previousSibling&&l.previousSibling.nodeType===Node.ELEMENT_NODE?(i=l.previousSibling)&&i.textContent.replace(/\u200B/g,"")===r().replace(/\u200B/g,"")&&(l=i,c=!0):!s.collapsed&&0<l.childNodes.length&&l.childNodes[s.endOffset]&&(i=l.childNodes[s.endOffset].previousSibling).nodeType===Node.ELEMENT_NODE&&i&&i.textContent.replace(/\u200B/g,"")===r().replace(/\u200B/g,"")&&(l=i,c=!0),!c&&0<l.childNodes.length&&n(l.childNodes[l.childNodes.length-1]).text()===r()&&["BR","IMG","HR"].indexOf(l.childNodes[l.childNodes.length-1].tagName)<0&&(l=l.childNodes[l.childNodes.length-1])}for(l.nodeType===Node.TEXT_NODE&&0===s.endOffset&&l.previousSibling&&l.previousSibling.nodeType===Node.ELEMENT_NODE&&(l=l.previousSibling);l.nodeType!==Node.ELEMENT_NODE&&l.parentNode;)l=l.parentNode;for(var d=l;d&&"HTML"!==d.tagName;){if(d===e.el)return l;d=n(d).parent()[0]}}}catch(e){}return e.el},save:l,restore:c,isCollapsed:f,isFull:function(){if(f())return!1;e.selection.save();var n,r=e.el.querySelectorAll("td, th, img, br");for(n=0;n<r.length;n++)r[n].nextSibling&&(r[n].innerHTML='<span class="fr-mk">'.concat(t.INVISIBLE_SPACE,"</span>").concat(r[n].innerHTML));var a=!1,o=p(e.el);for(o.atStart&&o.atEnd&&(a=!0),r=e.el.querySelectorAll(".fr-mk"),n=0;n<r.length;n++)r[n].parentNode.removeChild(r[n]);return e.selection.restore(),a},inEditor:m,remove:function(){if(f())return!0;var r;function a(e){for(var t=e.previousSibling;t&&t.nodeType===Node.TEXT_NODE&&0===t.textContent.length;){var r=t;t=t.previousSibling,n(r).remove()}return t}function o(e){for(var t=e.nextSibling;t&&t.nodeType===Node.TEXT_NODE&&0===t.textContent.length;){var r=t;t=t.nextSibling,n(r).remove()}return t}l();var i=e.$el.find('.fr-marker[data-type="true"]');for(r=0;r<i.length;r++)for(var s=i[r];!(a(s)||e.node.isBlock(s.parentNode)||e.$el.is(s.parentNode)||e.node.hasClass(s.parentNode,"fr-inner"));)n(s.parentNode).before(s);var d=e.$el.find('.fr-marker[data-type="false"]');for(r=0;r<d.length;r++){for(var p=d[r];!(o(p)||e.node.isBlock(p.parentNode)||e.$el.is(p.parentNode)||e.node.hasClass(p.parentNode,"fr-inner"));)n(p.parentNode).after(p);p.parentNode&&e.node.isBlock(p.parentNode)&&e.node.isEmpty(p.parentNode)&&!e.$el.is(p.parentNode)&&!e.node.hasClass(p.parentNode,"fr-inner")&&e.opts.keepFormatOnDelete&&n(p.parentNode).after(p)}if(function(){for(var t=e.$el.find(".fr-marker"),r=0;r<t.length;r++)if(n(t[r]).parentsUntil('.fr-element, [contenteditable="true"]','[contenteditable="false"]').length)return!1;return!0}()){!function t(r,a){var o=e.node.contents(r.get(0));0<=["TD","TH"].indexOf(r.get(0).tagName)&&1===r.find(".fr-marker").length&&(e.node.hasClass(o[0],"fr-marker")||"BR"==o[0].tagName&&e.node.hasClass(o[0].nextElementSibling,"fr-marker"))&&r.attr("data-del-cell",!0);for(var i=0;i<o.length;i++){var s=o[i];e.node.hasClass(s,"fr-marker")?a=(a+1)%2:a?0<n(s).find(".fr-marker").length?a=t(n(s),a):["TD","TH"].indexOf(s.tagName)<0&&!e.node.hasClass(s,"fr-inner")?!e.opts.keepFormatOnDelete||0<e.$el.find("[data-first]").length||e.node.isVoid(s)?n(s).remove():h(s):e.node.hasClass(s,"fr-inner")?0===n(s).find(".fr-inner").length?n(s).html("<br>"):n(s).find(".fr-inner").filter(g).html("<br>"):(n(s).empty(),n(s).attr("data-del-cell",!0)):0<n(s).find(".fr-marker").length&&(a=t(n(s),a))}return a}(e.$el,0);var u=e.$el.find('[data-first="true"]');if(u.length)e.$el.find(".fr-marker").remove(),u.append(t.INVISIBLE_SPACE+t.MARKERS).removeAttr("data-first"),u.attr("data-text")&&u.replaceWith(u.html());else for(e.$el.find("table").filter((function(){return 0<n(this).find("[data-del-cell]").length&&n(this).find("[data-del-cell]").length===n(this).find("td, th").length})).remove(),e.$el.find("[data-del-cell]").removeAttr("data-del-cell"),i=e.$el.find('.fr-marker[data-type="true"]'),r=0;r<i.length;r++){var m=i[r],v=m.nextSibling,b=e.$el.find('.fr-marker[data-type="false"][data-id="'.concat(n(m).data("id"),'"]')).get(0);if(b){if(m&&(!v||v!==b)){var E=e.node.blockParent(m),A=e.node.blockParent(b),T=!1,C=!1;if(E&&0<=["UL","OL"].indexOf(E.tagName)&&(T=!(E=null)),A&&0<=["UL","OL"].indexOf(A.tagName)&&(C=!(A=null)),n(m).after(b),E!==A)if(null!==E||T)if(null!==A||C||0!==n(E).parentsUntil(e.$el,"table").length)E&&A&&0===n(E).parentsUntil(e.$el,"table").length&&0===n(A).parentsUntil(e.$el,"table").length&&!n(E).contains(A)&&!n(A).contains(E)&&(n(E).append(n(A).html()),n(A).remove());else{for(v=E;!v.nextSibling&&v.parentNode!==e.el;)v=v.parentNode;for(v=v.nextSibling;v&&"BR"!==v.tagName;){var S=v.nextSibling;n(E).append(v),v=S}v&&"BR"===v.tagName&&n(v).remove()}else{var y=e.node.deepestParent(m);y?(n(y).after(n(A).html()),n(A).remove()):0===n(A).parentsUntil(e.$el,"table").length&&(n(m).next().after(n(A).html()),n(A).remove())}}}else b=n(m).clone().attr("data-type",!1),n(m).after(b)}}e.$el.find("li:empty").remove(),e.opts.keepFormatOnDelete||e.html.fillEmptyBlocks(),e.html.cleanEmptyTags(!0),e.opts.htmlUntouched||(e.clean.lists(),e.$el.find("li:empty").append("<br>"),e.spaces.normalize());var L=e.$el.find(".fr-marker").last().get(0),R=e.$el.find(".fr-marker").first().get(0);void 0!==L&&void 0!==R&&!L.nextSibling&&R.previousSibling&&"BR"===R.previousSibling.tagName&&e.node.isElement(L.parentNode)&&e.node.isElement(R.parentNode)&&e.$el.append("<br>"),c()},blocks:function(){var t,r,i=[],l=a();if(m()&&l.rangeCount){var c=o();for(t=0;t<c.length;t++){var d=c[t],f=s(d.startContainer,d.startOffset),p=s(d.endContainer,d.endOffset);(e.node.isBlock(f)||e.node.hasClass(f,"fr-inner"))&&i.indexOf(f)<0&&i.push(f),(r=e.node.blockParent(f))&&i.indexOf(r)<0&&i.push(r);for(var u=[],h=f;h!==p&&h!==e.el;)u.indexOf(h)<0&&h.children&&h.children.length?(u.push(h),h=h.children[0]):h.nextSibling?h=h.nextSibling:h.parentNode&&(h=h.parentNode,u.push(h)),e.node.isBlock(h)&&u.indexOf(h)<0&&i.indexOf(h)<0&&(h!==p||0<d.endOffset)&&i.push(h);e.node.isBlock(p)&&i.indexOf(p)<0&&0<d.endOffset&&i.push(p),(r=e.node.blockParent(p))&&i.indexOf(r)<0&&i.push(r)}}for(t=i.length-1;0<t;t--)n(i[t]).find(i).length&&i.splice(t,1);return i},info:p,setAtEnd:b,setAtStart:v,setBefore:function(r,a){void 0===a&&(a=!0);for(var o=r.previousSibling;o&&o.nodeType===Node.TEXT_NODE&&0===o.textContent.length;)o=o.previousSibling;return o?(e.node.isBlock(o)?b(o):"BR"===o.tagName?n(o).before(t.MARKERS):n(o).after(t.MARKERS),!0):!!a&&(e.node.isBlock(r)?v(r):n(r).before(t.MARKERS),!0)},setAfter:function(r,a){void 0===a&&(a=!0);for(var o=r.nextSibling;o&&o.nodeType===Node.TEXT_NODE&&0===o.textContent.length;)o=o.nextSibling;return o?(e.node.isBlock(o)?v(o):n(o).before(t.MARKERS),!0):!!a&&(e.node.isBlock(r)?b(r):n(r).after(t.MARKERS),!0)},rangeElement:s}},Object.assign(t.DEFAULTS,{language:null}),t.LANGUAGE={},t.MODULES.language=function(e){var n;return{_init:function(){t.LANGUAGE&&(n=t.LANGUAGE[e.opts.language]),n&&n.direction&&(e.opts.direction=n.direction)},translate:function(e){return n&&n.translation[e]&&n.translation[e].length?n.translation[e]:e}}},Object.assign(t.DEFAULTS,{placeholderText:"Type something"}),t.MODULES.placeholder=function(e){var t=e.$;function n(){e.$placeholder||(e.$placeholder=t(e.doc.createElement("SPAN")).addClass("fr-placeholder"),e.$wp.append(e.$placeholder));var n=e.opts.iframe?e.$iframe.prev().outerHeight(!0):e.$el.prev().outerHeight(!0),r=0,a=0,o=0,i=0,s=0,l=0,c=e.node.contents(e.el),d=t(e.selection.element()).css("text-align");if(c.length&&c[0].nodeType===Node.ELEMENT_NODE){var f=t(c[0]);(0<e.$wp.prev().length||0<e.$el.prev().length)&&e.ready&&(r=e.helpers.getPX(f.css("margin-top")),i=e.helpers.getPX(f.css("padding-top")),a=e.helpers.getPX(f.css("margin-left")),o=e.helpers.getPX(f.css("margin-right")),s=e.helpers.getPX(f.css("padding-left")),l=e.helpers.getPX(f.css("padding-right"))),e.$placeholder.css("font-size",f.css("font-size")),e.$placeholder.css("line-height",f.css("line-height"))}else e.$placeholder.css("font-size",e.$el.css("font-size")),e.$placeholder.css("line-height",e.$el.css("line-height"));e.$wp.addClass("show-placeholder"),e.$placeholder.css({marginTop:Math.max(e.helpers.getPX(e.$el.css("margin-top")),r)+(n||0),paddingTop:Math.max(e.helpers.getPX(e.$el.css("padding-top")),i),paddingLeft:Math.max(e.helpers.getPX(e.$el.css("padding-left")),s),marginLeft:Math.max(e.helpers.getPX(e.$el.css("margin-left")),a),paddingRight:Math.max(e.helpers.getPX(e.$el.css("padding-right")),l),marginRight:Math.max(e.helpers.getPX(e.$el.css("margin-right")),o),textAlign:d}).text(e.language.translate(e.opts.placeholderText||e.$oel.attr("placeholder")||"")),e.$placeholder.html(e.$placeholder.text().replace(/\n/g,"<br>"))}function r(){e.$wp.removeClass("show-placeholder")}function a(){if(!e.$wp)return!1;e.core.isEmpty()?n():r()}return{_init:function(){if(!e.$wp)return!1;e.events.on("init input keydown keyup contentChanged initialized",a)},show:n,hide:r,refresh:a,isVisible:function(){return!e.$wp||e.node.hasClass(e.$wp.get(0),"show-placeholder")}}},t.UNICODE_NBSP=String.fromCharCode(160),t.VOID_ELEMENTS=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],t.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"],Object.assign(t.DEFAULTS,{htmlAllowedEmptyTags:["textarea","a","iframe","object","video","style","script",".fa",".fr-emoticon",".fr-inner","path","line","hr"],htmlDoNotWrapTags:["script","style"],htmlSimpleAmpersand:!1,htmlIgnoreCSSProperties:[],htmlExecuteScripts:!0}),t.MODULES.html=function(e){var n=e.$;function r(){return e.opts.enter===t.ENTER_P?"p":e.opts.enter===t.ENTER_DIV?"div":e.opts.enter===t.ENTER_BR?null:void 0}function a(t,n){return!(!t||t===e.el)&&(n?-1!=["PRE","SCRIPT","STYLE"].indexOf(t.tagName)||a(t.parentNode,n):-1!==["PRE","SCRIPT","STYLE"].indexOf(t.tagName))}function o(n){var r,a=[],o=[];if(n){var s=e.el.querySelectorAll(".fr-marker");for(r=0;r<s.length;r++){var l=e.node.blockParent(s[r])||s[r];if(l){var c=l.nextSibling,d=l.previousSibling;l&&o.indexOf(l)<0&&e.node.isBlock(l)&&o.push(l),d&&e.node.isBlock(d)&&o.indexOf(d)<0&&o.push(d),c&&e.node.isBlock(c)&&o.indexOf(c)<0&&o.push(c)}}}else o=e.el.querySelectorAll(i());var f=i();for(f+=",".concat(t.VOID_ELEMENTS.join(",")),f+=", .fr-inner",f+=",".concat(e.opts.htmlAllowedEmptyTags.join(":not(.fr-marker),"),":not(.fr-marker)"),r=o.length-1;0<=r;r--)if(!(o[r].textContent&&0<o[r].textContent.replace(/\u200B|\n/g,"").length||0<o[r].querySelectorAll(f).length)){for(var p=e.node.contents(o[r]),u=!1,h=0;h<p.length;h++)if(p[h].nodeType!==Node.COMMENT_NODE&&p[h].textContent&&0<p[h].textContent.replace(/\u200B|\n/g,"").length){u=!0;break}u||a.push(o[r])}return a}function i(){return t.BLOCK_TAGS.join(", ")}function s(r){var a,o,i=n.merge([],t.VOID_ELEMENTS);i=n.merge(i,e.opts.htmlAllowedEmptyTags),i=void 0===r?n.merge(i,t.BLOCK_TAGS):n.merge(i,t.NO_DELETE_TAGS),a=e.el.querySelectorAll("*:empty:not(".concat(i.join("):not("),"):not(.fr-marker):not(template)"));do{o=!1;for(var s=0;s<a.length;s++)0!==a[s].attributes.length&&void 0===a[s].getAttribute("href")||(a[s].parentNode.removeChild(a[s]),o=!0);a=e.el.querySelectorAll("*:empty:not(".concat(i.join("):not("),"):not(.fr-marker):not(template)"))}while(a.length&&o)}function l(t,n){var a=r();if(n&&(a="div"),a){for(var o=e.doc.createDocumentFragment(),i=null,s=!1,l=t.firstChild,c=!1;l;){var d=l.nextSibling;if(l.nodeType===Node.ELEMENT_NODE&&(e.node.isBlock(l)||0<=e.opts.htmlDoNotWrapTags.indexOf(l.tagName.toLowerCase())&&!e.node.hasClass(l,"fr-marker")))i=null,o.appendChild(l.cloneNode(!0));else if(l.nodeType!==Node.ELEMENT_NODE&&l.nodeType!==Node.TEXT_NODE)i=null,o.appendChild(l.cloneNode(!0));else if("BR"===l.tagName)null===i?(i=e.doc.createElement(a),c=!0,n&&(i.setAttribute("class","fr-temp-div"),i.setAttribute("data-empty",!0)),i.appendChild(l.cloneNode(!0)),o.appendChild(i)):!1===s&&(i.appendChild(e.doc.createElement("br")),n&&(i.setAttribute("class","fr-temp-div"),i.setAttribute("data-empty",!0))),i=null;else{var f=l.textContent;l.nodeType!==Node.TEXT_NODE||0<f.replace(/\n/g,"").replace(/(^ *)|( *$)/g,"").length||f.replace(/(^ *)|( *$)/g,"").length&&f.indexOf("\n")<0?(null===i&&(i=e.doc.createElement(a),c=!0,n&&i.setAttribute("class","fr-temp-div"),o.appendChild(i),s=!1),i.appendChild(l.cloneNode(!0)),s||e.node.hasClass(l,"fr-marker")||l.nodeType===Node.TEXT_NODE&&0===f.replace(/ /g,"").length||(s=!0)):c=!0}l=d}c&&(t.innerHTML="",t.appendChild(o))}}function c(e,t){for(var n=e.length-1;0<=n;n--)l(e[n],t)}function d(t,n,r,a,o){if(!e.$wp)return!1;void 0===t&&(t=!1),void 0===n&&(n=!1),void 0===r&&(r=!1),void 0===a&&(a=!1),void 0===o&&(o=!1);var i=e.$wp.scrollTop();l(e.el,t),a&&c(e.el.querySelectorAll(".fr-inner"),t),n&&c(e.el.querySelectorAll("td, th"),t),r&&c(e.el.querySelectorAll("blockquote"),t),o&&c(e.el.querySelectorAll("li"),t),i!==e.$wp.scrollTop()&&e.$wp.scrollTop(i)}function f(t){if(void 0===t&&(t=e.el),t&&0<=["SCRIPT","STYLE","PRE"].indexOf(t.tagName))return!1;for(var n=e.doc.createTreeWalker(t,NodeFilter.SHOW_TEXT,e.node.filter((function(e){return null!==e.textContent.match(/([ \n]{2,})|(^[ \n]{1,})|([ \n]{1,}$)/g)})),!1);n.nextNode();){var r=n.currentNode;if(!a(r.parentNode,!0)){var o=e.node.isBlock(r.parentNode)||e.node.isElement(r.parentNode),i=r.textContent.replace(/(?!^)( ){2,}(?!$)/g," ").replace(/\n/g," ").replace(/^[ ]{2,}/g," ").replace(/[ ]{2,}$/g," ");if(o){var s=r.previousSibling,l=r.nextSibling;s&&l&&" "===i?i=e.node.isBlock(s)&&e.node.isBlock(l)?"":" ":(s||(i=i.replace(/^ */,"")),l||(i=i.replace(/ *$/,"")))}r.textContent=i}}}function p(e,t,n){var r=new RegExp(t,"gi").exec(e);return r?r[n]:null}function u(e){var t=e.doctype,n="<!DOCTYPE html>";return t&&(n="<!DOCTYPE ".concat(t.name).concat(t.publicId?' PUBLIC "'.concat(t.publicId,'"'):"").concat(!t.publicId&&t.systemId?" SYSTEM":"").concat(t.systemId?' "'.concat(t.systemId,'"'):"",">")),n}function h(n){var r=n.parentNode;if(r&&(e.node.isBlock(r)||e.node.isElement(r))&&["TD","TH"].indexOf(r.tagName)<0){for(var a=n.previousSibling,o=n.nextSibling;a&&(a.nodeType===Node.TEXT_NODE&&0===a.textContent.replace(/\n|\r/g,"").length||e.node.hasClass(a,"fr-tmp"));)a=a.previousSibling;if(o)return!1;a&&r&&"BR"!==a.tagName&&!e.node.isBlock(a)&&!o&&0<r.textContent.replace(/\u200B/g,"").length&&0<a.textContent.length&&!e.node.hasClass(a,"fr-marker")&&(e.el===r&&!o&&e.opts.enter===t.ENTER_BR&&e.browser.msie||n.parentNode.removeChild(n))}else!r||e.node.isBlock(r)||e.node.isElement(r)||n.previousSibling||n.nextSibling||!e.node.isDeletable(n.parentNode)||h(n.parentNode)}function g(){e.opts.htmlUntouched||(s(),d(),f(),e.spaces.normalize(null,!0),e.html.fillEmptyBlocks(),e.clean.lists(),e.clean.tables(),e.clean.toHTML5(),e.html.cleanBRs()),e.selection.restore(),m(),e.placeholder.refresh()}function m(){e.node.isEmpty(e.el)&&(null!==r()?e.el.querySelector(i())||e.el.querySelector("".concat(e.opts.htmlDoNotWrapTags.join(":not(.fr-marker),"),":not(.fr-marker)"))||(e.core.hasFocus()?(e.$el.html("<".concat(r(),">").concat(t.MARKERS,"<br/></").concat(r(),">")),e.selection.restore()):e.$el.html("<".concat(r(),"><br/></").concat(r(),">"))):e.el.querySelector("*:not(.fr-marker):not(br)")||(e.core.hasFocus()?(e.$el.html("".concat(t.MARKERS,"<br/>")),e.selection.restore()):e.$el.html("<br/>")))}function v(e,t){return p(e,"<".concat(t,"[^>]*?>([\\w\\W]*)</").concat(t,">"),1)}function b(t,r){var a=n("<div ".concat(p(t,"<".concat(r,"([^>]*?)>"),1)||"",">"));return e.node.rawAttributes(a.get(0))}function E(e){return(p(e,"<!DOCTYPE([^>]*?)>",0)||"<!DOCTYPE html>").replace(/\n/g," ").replace(/ {2,}/g," ")}function A(t,n){e.opts.htmlExecuteScripts?t.html(n):t.get(0).innerHTML=n}function T(e){var t;return(t=/:not\(([^)]*)\)/g).test(e)&&(e=e.replace(t," $1 ")),100*(e.match(/(#[^\s+>~.[:]+)/g)||[]).length+10*(e.match(/(\[[^]]+\])/g)||[]).length+10*(e.match(/(\.[^\s+>~.[:]+)/g)||[]).length+10*(e.match(/(:[\w-]+\([^)]*\))/gi)||[]).length+10*(e.match(/(:[^\s+>~.[:]+)/g)||[]).length+(e.match(/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi)||[]).length+((e=(e=e.replace(/[*\s+>~]/g," ")).replace(/[#.]/g," ")).match(/([^\s+>~.[:]+)/g)||[]).length}function C(t){if(e.events.trigger("html.processGet",[t]),t&&t.getAttribute&&""===t.getAttribute("class")&&t.removeAttribute("class"),t&&t.getAttribute&&""===t.getAttribute("style")&&t.removeAttribute("style"),t&&t.nodeType===Node.ELEMENT_NODE){var n,r=t.querySelectorAll('[class=""],[style=""]');for(n=0;n<r.length;n++){var a=r[n];""===a.getAttribute("class")&&a.removeAttribute("class"),""===a.getAttribute("style")&&a.removeAttribute("style")}if("BR"===t.tagName)h(t);else{var o=t.querySelectorAll("br");for(n=0;n<o.length;n++)h(o[n])}}}function S(e,t){return e[3]-t[3]}function y(){for(var t=e.el.querySelectorAll("input, textarea"),n=0;n<t.length;n++)"checkbox"!==t[n].type&&"radio"!==t[n].type||(t[n].checked?t[n].setAttribute("checked",t[n].checked):e.$(t[n]).removeAttr("checked")),t[n].getAttribute("value")&&t[n].setAttribute("value",t[n].value)}function L(t){var n=e.doc.createElement("div");return n.innerHTML=t,null!==n.querySelector(i())}function R(t){var r=null;if(void 0===t&&(r=e.selection.element()),e.opts.keepFormatOnDelete)return!1;var a,o,i=r?(r.textContent.match(/\u200B/g)||[]).length-r.querySelectorAll(".fr-marker").length:0;if((e.el.textContent.match(/\u200B/g)||[]).length-e.el.querySelectorAll(".fr-marker").length===i)return!1;do{o=!1,a=e.el.querySelectorAll("*:not(.fr-marker)");for(var s=0;s<a.length;s++){var l=a[s];if(r!==l){var c=l.textContent;0===l.children.length&&1===c.length&&8203===c.charCodeAt(0)&&"TD"!==l.tagName&&(n(l).remove(),o=!0)}}}while(o)}function N(){R(),e.placeholder&&setTimeout(e.placeholder.refresh,0)}return{defaultTag:r,isPreformatted:a,emptyBlocks:o,emptyBlockTagsQuery:function(){return"".concat(t.BLOCK_TAGS.join(":empty, "),":empty")},blockTagsQuery:i,fillEmptyBlocks:function(n){var r=o(n);e.node.isEmpty(e.el)&&e.opts.enter===t.ENTER_BR&&r.push(e.el);for(var a=0;a<r.length;a++){var i=r[a];"false"===i.getAttribute("contenteditable")||i.querySelector("".concat(e.opts.htmlAllowedEmptyTags.join(":not(.fr-marker),"),":not(.fr-marker)"))||e.node.isVoid(i)||"TABLE"!==i.tagName&&"TBODY"!==i.tagName&&"TR"!==i.tagName&&"UL"!==i.tagName&&"OL"!==i.tagName&&i.appendChild(e.doc.createElement("br"))}if(e.browser.msie&&e.opts.enter===t.ENTER_BR){var s=e.node.contents(e.el);s.length&&s[s.length-1].nodeType===Node.TEXT_NODE&&e.$el.append("<br>")}},cleanEmptyTags:s,cleanWhiteTags:R,cleanBlankSpaces:f,blocks:function(){return e.$el.get(0).querySelectorAll(i())},getDoctype:u,set:function(t){var r=e.clean.html((t||"").trim(),[],[],e.opts.fullPage);if(e.opts.fullPage){var a=v(r,"body")||(0<=r.indexOf("<body")?"":r),o=b(r,"body"),i=v(r,"head")||"<title></title>",s=b(r,"head"),l=n("<div>");l.append(i).contents().each((function(){(this.nodeType===Node.COMMENT_NODE||0<=["BASE","LINK","META","NOSCRIPT","SCRIPT","STYLE","TEMPLATE","TITLE"].indexOf(this.tagName))&&this.parentNode.removeChild(this)}));var c=l.html().trim();i=n("<div>").append(i).contents().map((function(){return this.nodeType===Node.COMMENT_NODE?"\x3c!--".concat(this.nodeValue,"--\x3e"):0<=["BASE","LINK","META","NOSCRIPT","SCRIPT","STYLE","TEMPLATE","TITLE"].indexOf(this.tagName)?this.outerHTML:""})).toArray().join("");var d=E(r),f=b(r,"html");A(e.$el,"".concat(c,"\n").concat(a)),e.node.clearAttributes(e.el),e.$el.attr(o),e.$el.addClass("fr-view"),e.$el.attr("spellcheck",e.opts.spellcheck),e.$el.attr("dir",e.opts.direction),A(e.$head,i),e.node.clearAttributes(e.$head.get(0)),e.$head.attr(s),e.node.clearAttributes(e.$html.get(0)),e.$html.attr(f),e.iframe_document.doctype.parentNode.replaceChild(function(e,t){var n=e.match(/<!DOCTYPE ?([^ ]*) ?([^ ]*) ?"?([^"]*)"? ?"?([^"]*)"?>/i);return n?t.implementation.createDocumentType(n[1],n[3],n[4]):t.implementation.createDocumentType("html")}(d,e.iframe_document),e.iframe_document.doctype)}else A(e.$el,r);var p=e.edit.isDisabled();e.edit.on(),e.core.injectStyle(e.opts.iframeDefaultStyle+e.opts.iframeStyle),g(),e.opts.useClasses||(e.$el.find("[fr-original-class]").each((function(){this.setAttribute("class",this.getAttribute("fr-original-class")),this.removeAttribute("fr-original-class")})),e.$el.find("[fr-original-style]").each((function(){this.setAttribute("style",this.getAttribute("fr-original-style")),this.removeAttribute("fr-original-style")}))),p&&e.edit.off(),e.events.trigger("html.set"),e.events.trigger("charCounter.update")},syncInputs:y,get:function(t,n){if(!e.$wp)return e.$oel.clone().removeClass("fr-view").removeAttr("contenteditable").get(0).outerHTML;var r="";e.events.trigger("html.beforeGet");var a,o,i=[],s={},l=[];if(y(),!e.opts.useClasses&&!n){var c=new RegExp("^".concat(e.opts.htmlIgnoreCSSProperties.join("$|^"),"$"),"gi");for(a=0;a<e.doc.styleSheets.length;a++){var d=void 0,f=0;try{d=e.doc.styleSheets[a].cssRules,e.doc.styleSheets[a].ownerNode&&"STYLE"===e.doc.styleSheets[a].ownerNode.nodeType&&(f=1)}catch(e){}if(d)for(var p=0,h=d.length;p<h;p++)if(d[p].selectorText&&0<d[p].style.cssText.length){var g=d[p].selectorText.replace(/body |\.fr-view /g,"").replace(/::/g,":"),m=void 0;try{m=e.el.querySelectorAll(g)}catch(e){m=[]}for(o=0;o<m.length;o++){!m[o].getAttribute("fr-original-style")&&m[o].getAttribute("style")?(m[o].setAttribute("fr-original-style",m[o].getAttribute("style")),i.push(m[o])):m[o].getAttribute("fr-original-style")||(m[o].setAttribute("fr-original-style",""),i.push(m[o])),s[m[o]]||(s[m[o]]={});for(var v=1e3*f+T(d[p].selectorText),b=d[p].style.cssText.split(";"),E=0;E<b.length;E++){var A=b[E].trim().split(":")[0];if(A&&!A.match(c)&&(s[m[o]][A]||(s[m[o]][A]=0)<=(m[o].getAttribute("fr-original-style")||"").indexOf("".concat(A,":"))&&(s[m[o]][A]=1e4),v>=s[m[o]][A]&&(s[m[o]][A]=v,b[E].trim().length))){var L=b[E].trim().split(":");L.splice(0,1),l.push([m[o],A.trim(),L.join(":").trim(),v])}}}}}for(l.sort(S),a=0;a<l.length;a++){var R=l[a];R[0].style[R[1]]=R[2]}for(a=0;a<i.length;a++)if(i[a].getAttribute("class")&&(i[a].setAttribute("fr-original-class",i[a].getAttribute("class")),i[a].removeAttribute("class")),0<(i[a].getAttribute("fr-original-style")||"").trim().length){var N=i[a].getAttribute("fr-original-style").split(";");for(o=0;o<N.length;o++)if(0<N[o].indexOf(":")){var O=N[o].split(":"),w=O[0];O.splice(0,1),i[a].style[w.trim()]=O.join(":").trim()}}}if(e.node.isEmpty(e.el))e.opts.fullPage&&(r=u(e.iframe_document),r+="<html".concat(e.node.attributes(e.$html.get(0)),">").concat(e.$html.find("head").get(0).outerHTML,"<body></body></html>"));else if(void 0===t&&(t=!1),e.opts.fullPage){r=u(e.iframe_document),e.$el.removeClass("fr-view");var x=e.opts.heightMin,I=e.opts.height,M=e.opts.heightMax;e.opts.heightMin=null,e.opts.height=null,e.opts.heightMax=null,e.size.refresh(),r+="<html".concat(e.node.attributes(e.$html.get(0)),">").concat(e.$html.html(),"</html>"),e.opts.heightMin=x,e.opts.height=I,e.opts.heightMax=M,e.size.refresh(),e.$el.addClass("fr-view")}else r=e.$el.html();if(!e.opts.useClasses&&!n)for(a=0;a<i.length;a++)i[a].getAttribute("fr-original-class")&&(i[a].setAttribute("class",i[a].getAttribute("fr-original-class")),i[a].removeAttribute("fr-original-class")),null!==i[a].getAttribute("fr-original-style")&&void 0!==i[a].getAttribute("fr-original-style")?(0!==i[a].getAttribute("fr-original-style").length?i[a].setAttribute("style",i[a].getAttribute("fr-original-style")):i[a].removeAttribute("style"),i[a].removeAttribute("fr-original-style")):i[a].removeAttribute("style");e.opts.fullPage&&(r=(r=(r=(r=(r=(r=(r=(r=r.replace(/<style data-fr-style="true">(?:[\w\W]*?)<\/style>/g,"")).replace(/<link([^>]*)data-fr-style="true"([^>]*)>/g,"")).replace(/<style(?:[\w\W]*?)class="firebugResetStyles"(?:[\w\W]*?)>(?:[\w\W]*?)<\/style>/g,"")).replace(/<body((?:[\w\W]*?)) spellcheck="true"((?:[\w\W]*?))>((?:[\w\W]*?))<\/body>/g,"<body$1$2>$3</body>")).replace(/<body((?:[\w\W]*?)) contenteditable="(true|false)"((?:[\w\W]*?))>((?:[\w\W]*?))<\/body>/g,"<body$1$3>$4</body>")).replace(/<body((?:[\w\W]*?)) dir="([\w]*)"((?:[\w\W]*?))>((?:[\w\W]*?))<\/body>/g,"<body$1$3>$4</body>")).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>')).replace(/<body((?:[\w\W]*?)) class=""((?:[\w\W]*?))>((?:[\w\W]*?))<\/body>/g,"<body$1$2>$3</body>")),e.opts.htmlSimpleAmpersand&&(r=r.replace(/&/gi,"&")),e.events.trigger("html.afterGet"),t||(r=r.replace(/<span[^>]*? class\s*=\s*["']?fr-marker["']?[^>]+>\u200b<\/span>/gi,"")),r=e.clean.invisibleSpaces(r),r=e.clean.exec(r,C);var D=e.events.chainTrigger("html.get",r);return"string"==typeof D&&(r=D),(r=r.replace(/<pre(?:[\w\W]*?)>(?:[\w\W]*?)<\/pre>/g,(function(e){return e.replace(/<br>/g,"\n")}))).replace(/<meta((?:[\w\W]*?)) data-fr-http-equiv="/g,'<meta$1 http-equiv="')},getSelected:function(){function t(t,r){for(;r&&(r.nodeType===Node.TEXT_NODE||!e.node.isBlock(r))&&!e.node.isElement(r)&&!e.node.hasClass(r,"fr-inner");)r&&r.nodeType!==Node.TEXT_NODE&&n(t).wrapInner(e.node.openTagString(r)+e.node.closeTagString(r)),r=r.parentNode;r&&t.innerHTML===r.innerHTML?t.innerHTML=r.outerHTML:-1!=r.innerText.indexOf(t.innerHTML)&&(t.innerHTML=e.node.openTagString(r)+r.innerHTML+e.node.closeTagString(r))}var r,a,o="";if(void 0!==e.win.getSelection){e.browser.mozilla&&(e.selection.save(),1<e.$el.find('.fr-marker[data-type="false"]').length&&(e.$el.find('.fr-marker[data-type="false"][data-id="0"]').remove(),e.$el.find('.fr-marker[data-type="false"]:last').attr("data-id","0"),e.$el.find(".fr-marker").not('[data-id="0"]').remove()),e.selection.restore());for(var i=e.selection.ranges(),s=0;s<i.length;s++){var l=document.createElement("div");l.appendChild(i[s].cloneContents()),t(l,(a=r=void 0,a=null,e.win.getSelection?(r=e.win.getSelection())&&r.rangeCount&&(a=r.getRangeAt(0).commonAncestorContainer).nodeType!==Node.ELEMENT_NODE&&(a=a.parentNode):(r=e.doc.selection)&&"Control"!==r.type&&(a=r.createRange().parentElement()),null!==a&&(0<=n(a).parents().toArray().indexOf(e.el)||a===e.el)?a:null)),0<n(l).find(".fr-element").length&&(l=e.el),o+=l.innerHTML}}else void 0!==e.doc.selection&&"Text"===e.doc.selection.type&&(o=e.doc.selection.createRange().htmlText);return o},insert:function(t,r,a){var o;if(e.selection.isCollapsed()||e.selection.remove(),o=r?t:e.clean.html(t),t.indexOf('class="fr-marker"')<0&&(o=function(t){var n=e.doc.createElement("div");return n.innerHTML=t,e.selection.setAtEnd(n,!0),n.innerHTML}(o)),e.node.isEmpty(e.el)&&!e.opts.keepFormatOnDelete&&L(o))e.el.innerHTML=o;else{var i=e.markers.insert();if(i){e.node.isLastSibling(i)&&n(i).parent().hasClass("fr-deletable")&&n(i).insertAfter(n(i).parent());var s=e.node.blockParent(i);if((L(o)||a)&&(e.node.deepestParent(i)||s&&"LI"===s.tagName)){if(s&&"LI"===s.tagName&&(o=function(t){if(!e.html.defaultTag())return t;var r=e.doc.createElement("div");r.innerHTML=t;for(var a=r.querySelectorAll(":scope > ".concat(e.html.defaultTag())),o=a.length-1;0<=o;o--){var i=a[o];e.node.isBlock(i.previousSibling)||(i.previousSibling&&!e.node.isEmpty(i)&&n("<br>").insertAfter(i.previousSibling),i.outerHTML=i.innerHTML)}return r.innerHTML}(o)),!(i=e.markers.split()))return!1;i.outerHTML=o}else i.outerHTML=o}else e.el.innerHTML+=o}g(),e.keys.positionCaret(),e.events.trigger("html.inserted")},wrap:d,unwrap:function(){e.$el.find("div.fr-temp-div").each((function(){this.previousSibling&&this.previousSibling.nodeType===Node.TEXT_NODE&&n(this).before("<br>"),n(this).attr("data-empty")||!this.nextSibling||e.node.isBlock(this.nextSibling)&&!n(this.nextSibling).hasClass("fr-temp-div")?n(this).replaceWith(n(this).html()):n(this).replaceWith("".concat(n(this).html(),"<br>"))})),e.$el.find(".fr-temp-div").removeClass("fr-temp-div").filter((function(){return""===n(this).attr("class")})).removeAttr("class")},escapeEntities:function(e){return e.replace(/</gi,"<").replace(/>/gi,">").replace(/"/gi,""").replace(/'/gi,"'")},checkIfEmpty:m,extractNode:v,extractNodeAttrs:b,extractDoctype:E,cleanBRs:function(){for(var t=e.el.getElementsByTagName("br"),n=0;n<t.length;n++)h(t[n])},_init:function(){e.$wp&&(e.events.on("mouseup",N),e.events.on("keydown",N),e.events.on("contentChanged",m))},_setHtml:A}},t.ENTER_P=0,t.ENTER_DIV=1,t.ENTER_BR=2,t.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(t.DEFAULTS,{enter:t.ENTER_P,multiLine:!0,tabSpaces:0}),t.MODULES.keys=function(e){var n,r,a,o=e.$,i=!1;function s(t){if(e.selection.isCollapsed())if(["INPUT","BUTTON","TEXTAREA"].indexOf(t.target&&t.target.tagName)<0&&e.cursor.backspace(),e.helpers.isIOS()){var n=e.selection.ranges(0);n.deleteContents(),n.insertNode(document.createTextNode("")),e.selection.get().modify("move","forward","character")}else["INPUT","BUTTON","TEXTAREA"].indexOf(t.target&&t.target.tagName)<0&&t.preventDefault(),t.stopPropagation();else t.preventDefault(),t.stopPropagation(),e.selection.remove();e.placeholder.refresh()}function l(t){["INPUT","BUTTON","TEXTAREA"].indexOf(t.target&&t.target.tagName)<0&&t.preventDefault(),t.stopPropagation(),""===e.selection.text()&&"IMG"!=e.selection.element().tagName?e.cursor.del():e.selection.remove(),e.placeholder.refresh()}function c(){if(e.browser.mozilla&&e.selection.isCollapsed()&&!i){var t=e.selection.ranges(0),n=t.startContainer,r=t.startOffset;n&&n.nodeType===Node.TEXT_NODE&&r<=n.textContent.length&&0<r&&32===n.textContent.charCodeAt(r-1)&&(e.selection.save(),e.spaces.normalize(),e.selection.restore())}}function d(){e.selection.isFull()&&setTimeout((function(){var n=e.html.defaultTag();n?e.$el.html("<".concat(n,">").concat(t.MARKERS,"<br/></").concat(n,">")):e.$el.html("".concat(t.MARKERS,"<br/>")),e.selection.restore(),e.placeholder.refresh(),e.button.bulkRefresh(),e.undo.saveStep()}),0)}function f(){i=!1}function p(){i=!1}function u(){var n=e.html.defaultTag();n?e.$el.html("<".concat(n,">").concat(t.MARKERS,"<br/></").concat(n,">")):e.$el.html("".concat(t.MARKERS,"<br/>")),e.selection.restore()}function h(e,t){if((-1<e.innerHTML.indexOf("<span")||-1<e.parentElement.innerHTML.indexOf("<span")||-1<e.parentElement.parentElement.innerHTML.indexOf("<span"))&&(e.classList.contains("fr-img-space-wrap")||e.parentElement.classList.contains("fr-img-space-wrap")||e.parentElement.parentElement.classList.contains("fr-img-space-wrap"))){if(o(e.parentElement).is("p")){var n=e.parentElement.innerHTML;return(n=n.replace(/<br>/g,"")).length<1?e.parentElement.insertAdjacentHTML("afterbegin"," "):" "!=n&&" "!=n&&"Backspace"==t.key?s(t):" "!=n&&" "!=n&&"Delete"==t.key&&l(t),!0}if(o(e).is("p")){var r=e.innerHTML.replace(/<br>/g,"");return r.length<1?e.insertAdjacentHTML("afterbegin"," "):" "!=r&&" "!=r&&"Backspace"==t.key?s(t):" "!=r&&" "!=r&&"Delete"==t.key&&l(t),!0}}return!1}function g(r){var a=e.selection.element();if(a&&0<=["INPUT","TEXTAREA"].indexOf(a.tagName))return!0;if(r&&E(r.which))return!0;e.events.disableBlur();var o=r.which;if(16===o)return!0;if((n=o)===t.KEYCODE.IME)return i=!0;i=!1;var c=A(o)&&!b(r)&&!r.altKey,d=o===t.KEYCODE.BACKSPACE||o===t.KEYCODE.DELETE;if((e.selection.isFull()&&!e.opts.keepFormatOnDelete&&!e.placeholder.isVisible()||d&&e.placeholder.isVisible()&&e.opts.keepFormatOnDelete)&&(c||d)&&(u(),!A(o)))return r.preventDefault(),!0;if(o===t.KEYCODE.ENTER)r.shiftKey||a.classList.contains("fr-inner")||a.parentElement.classList.contains("fr-inner")?function(t){t.preventDefault(),t.stopPropagation(),e.opts.multiLine&&(e.selection.isCollapsed()||e.selection.remove(),e.cursor.enter(!0))}(r):function(t){e.opts.multiLine?(e.helpers.isIOS()||(t.preventDefault(),t.stopPropagation()),e.selection.isCollapsed()||e.selection.remove(),e.cursor.enter()):(t.preventDefault(),t.stopPropagation())}(r);else if(o===t.KEYCODE.BACKSPACE&&(r.metaKey||r.ctrlKey))setTimeout((function(){e.events.disableBlur(),e.events.focus()}),0);else if(o!==t.KEYCODE.BACKSPACE||b(r)||r.altKey)if(o!==t.KEYCODE.DELETE||b(r)||r.altKey||r.shiftKey)o===t.KEYCODE.SPACE?function(n){var r=e.selection.element();if(!e.helpers.isMobile()&&r&&"A"===r.tagName){n.preventDefault(),n.stopPropagation(),e.selection.isCollapsed()||e.selection.remove();var a=e.markers.insert();if(a){var o=a.previousSibling;!a.nextSibling&&a.parentNode&&"A"===a.parentNode.tagName?(a.parentNode.insertAdjacentHTML("afterend"," ".concat(t.MARKERS)),a.parentNode.removeChild(a)):(o&&o.nodeType===Node.TEXT_NODE&&1===o.textContent.length&&160===o.textContent.charCodeAt(0)?o.textContent+=" ":a.insertAdjacentHTML("beforebegin"," "),a.outerHTML=t.MARKERS),e.selection.restore()}}}(r):o===t.KEYCODE.TAB?function(t){if(0<e.opts.tabSpaces)if(e.selection.isCollapsed()){e.undo.saveStep(),t.preventDefault(),t.stopPropagation();for(var n="",r=0;r<e.opts.tabSpaces;r++)n+=" ";e.html.insert(n),e.placeholder.refresh(),e.undo.saveStep()}else t.preventDefault(),t.stopPropagation(),t.shiftKey?e.commands.outdent():e.commands.indent()}(r):b(r)||!A(r.which)||e.selection.isCollapsed()||r.ctrlKey||r.altKey||e.selection.remove();else{if(h(a,r))return r.preventDefault(),void r.stopPropagation();e.placeholder.isVisible()?(e.opts.keepFormatOnDelete||u(),r.preventDefault(),r.stopPropagation()):l(r)}else{if(h(a,r))return r.preventDefault(),void r.stopPropagation();e.placeholder.isVisible()?(e.opts.keepFormatOnDelete||u(),r.preventDefault(),r.stopPropagation()):s(r)}e.events.enableBlur()}function m(){if(!e.$wp)return!0;var t;e.opts.height||e.opts.heightMax?(t=e.position.getBoundingRect().top,(e.helpers.isIOS()||e.helpers.isAndroid())&&(t-=e.helpers.scrollTop()),e.opts.iframe&&(t+=e.$iframe.offset().top),t>e.$wp.offset().top-e.helpers.scrollTop()+e.$wp.height()-20&&e.$wp.scrollTop(t+e.$wp.scrollTop()-(e.$wp.height()+e.$wp.offset().top)+e.helpers.scrollTop()+20)):(t=e.position.getBoundingRect().top,e.opts.toolbarBottom&&(t+=e.opts.toolbarStickyOffset),(e.helpers.isIOS()||e.helpers.isAndroid())&&(t-=e.helpers.scrollTop()),e.opts.iframe&&(t+=e.$iframe.offset().top,t-=e.helpers.scrollTop()),(t+=e.opts.toolbarStickyOffset)>e.o_win.innerHeight-20&&o(e.o_win).scrollTop(t+e.helpers.scrollTop()-e.o_win.innerHeight+20),t=e.position.getBoundingRect().top,e.opts.toolbarBottom||(t-=e.opts.toolbarStickyOffset),(e.helpers.isIOS()||e.helpers.isAndroid())&&(t-=e.helpers.scrollTop()),e.opts.iframe&&(t+=e.$iframe.offset().top,t-=e.helpers.scrollTop()),t<100&&o(e.o_win).scrollTop(t+e.helpers.scrollTop()-100))}function v(r){var a=e.selection.element();if(a&&0<=["INPUT","TEXTAREA"].indexOf(a.tagName))return!0;if(r&&0===r.which&&n&&(r.which=n),e.helpers.isAndroid()&&e.browser.mozilla)return!0;if(i)return!1;if(r&&e.helpers.isIOS()&&r.which===t.KEYCODE.ENTER&&e.doc.execCommand("undo"),!e.selection.isCollapsed())return!0;if(r&&(r.which===t.KEYCODE.META||r.which===t.KEYCODE.CTRL))return!0;if(r&&E(r.which))return!0;if(r&&!e.helpers.isIOS()&&(r.which===t.KEYCODE.ENTER||r.which===t.KEYCODE.BACKSPACE||37<=r.which&&r.which<=40&&!e.browser.msie))try{m()}catch(e){}var o=e.selection.element();(function(e){if(!e)return!1;var t=e.innerHTML;return!!((t=t.replace(/<span[^>]*? class\s*=\s*["']?fr-marker["']?[^>]+>\u200b<\/span>/gi,""))&&/\u200B/.test(t)&&0<t.replace(/\u200B/gi,"").length)})(o)&&!e.node.hasClass(o,"fr-marker")&&"IFRAME"!==o.tagName&&function(t){return!e.helpers.isIOS()||0===((t.textContent||"").match(/[\u3041-\u3096\u30A0-\u30FF\u4E00-\u9FFF\u3130-\u318F\uAC00-\uD7AF]/gi)||[]).length}(o)&&(e.selection.save(),function(t){for(var n=e.doc.createTreeWalker(t,NodeFilter.SHOW_TEXT,e.node.filter((function(e){return/\u200B/gi.test(e.textContent)})),!1);n.nextNode();){var r=n.currentNode;r.textContent=r.textContent.replace(/\u200B/gi,"")}}(o),e.selection.restore())}function b(e){if(-1!==navigator.userAgent.indexOf("Mac OS X")){if(e.metaKey&&!e.altKey)return!0}else if(e.ctrlKey&&!e.altKey)return!0;return!1}function E(e){if(e>=t.KEYCODE.ARROW_LEFT&&e<=t.KEYCODE.ARROW_DOWN)return!0}function A(n){if(n>=t.KEYCODE.ZERO&&n<=t.KEYCODE.NINE)return!0;if(n>=t.KEYCODE.NUM_ZERO&&n<=t.KEYCODE.NUM_MULTIPLY)return!0;if(n>=t.KEYCODE.A&&n<=t.KEYCODE.Z)return!0;if(e.browser.webkit&&0===n)return!0;switch(n){case t.KEYCODE.SPACE:case t.KEYCODE.QUESTION_MARK:case t.KEYCODE.NUM_PLUS:case t.KEYCODE.NUM_MINUS:case t.KEYCODE.NUM_PERIOD:case t.KEYCODE.NUM_DIVISION:case t.KEYCODE.SEMICOLON:case t.KEYCODE.FF_SEMICOLON:case t.KEYCODE.DASH:case t.KEYCODE.EQUALS:case t.KEYCODE.FF_EQUALS:case t.KEYCODE.COMMA:case t.KEYCODE.PERIOD:case t.KEYCODE.SLASH:case t.KEYCODE.APOSTROPHE:case t.KEYCODE.SINGLE_QUOTE:case t.KEYCODE.OPEN_SQUARE_BRACKET:case t.KEYCODE.BACKSLASH:case t.KEYCODE.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}function T(n){var o=n.which;if(b(n)||37<=o&&o<=40||!A(o)&&o!==t.KEYCODE.DELETE&&o!==t.KEYCODE.BACKSPACE&&o!==t.KEYCODE.ENTER&&o!==t.KEYCODE.IME)return!0;r||(a=e.snapshot.get(),e.undo.canDo()||e.undo.saveStep()),clearTimeout(r),r=setTimeout((function(){r=null,e.undo.saveStep()}),Math.max(250,e.opts.typingTimer))}function C(t){var n=t.which;if(b(t)||37<=n&&n<=40)return!0;a&&r?(e.undo.saveStep(a),a=null):void 0!==n&&0!==n||a||r||e.undo.saveStep()}function S(t){if(t&&"BR"===t.tagName)return!1;try{return 0===(t.textContent||"").length&&t.querySelector&&!t.querySelector(":scope > br")||t.childNodes&&1===t.childNodes.length&&t.childNodes[0].getAttribute&&("false"===t.childNodes[0].getAttribute("contenteditable")||e.node.hasClass(t.childNodes[0],"fr-img-caption"))}catch(e){return!1}}function y(n){var r=e.el.childNodes,a=e.html.defaultTag(),o=e.node.blockParent(e.selection.blocks()[0]);return o&&"TR"==o.tagName&&null==o.getAttribute("contenteditable")&&(o=o.closest("table")),!e.node.isEditable(n.target)||o&&"false"===o.getAttribute("contenteditable")?e.toolbar.disable():e.toolbar.enable(),!(!n.target||n.target===e.el)||0===r.length||void(r[0].offsetHeight+r[0].offsetTop<=n.offsetY?S(r[r.length-1])&&(a?e.$el.append("<".concat(a,">").concat(t.MARKERS,"<br></").concat(a,">")):e.$el.append("".concat(t.MARKERS,"<br>")),e.selection.restore(),m()):n.offsetY<=10&&S(r[0])&&(a?e.$el.prepend("<".concat(a,">").concat(t.MARKERS,"<br></").concat(a,">")):e.$el.prepend("".concat(t.MARKERS,"<br>")),e.selection.restore(),m()))}function L(){r&&clearTimeout(r)}return{_init:function(){e.events.on("keydown",T),e.events.on("input",c),e.events.on("mousedown",p),e.events.on("keyup input",C),e.events.on("keypress",f),e.events.on("keydown",g),e.events.on("keyup",v),e.events.on("destroy",L),e.events.on("html.inserted",v),e.events.on("cut",d),e.opts.multiLine&&e.events.on("click",y)},ctrlKey:b,isCharacter:A,isArrow:E,forceUndo:function(){r&&(clearTimeout(r),e.undo.saveStep(),a=null)},isIME:function(){return i},isBrowserAction:function(e){var n=e.which;return b(e)||n===t.KEYCODE.F5},positionCaret:m}},Object.assign(t.DEFAULTS,{pastePlain:!1,pasteDeniedTags:["colgroup","col","meta"],pasteDeniedAttrs:["class","id"],pasteAllowedStyleProps:[".*"],pasteAllowLocalImages:!1}),t.MODULES.paste=function(e){var n,r,a,o,i=e.$;function s(t,n){try{e.win.localStorage.setItem("fr-copied-html",t),e.win.localStorage.setItem("fr-copied-text",n)}catch(e){}}function l(t){var n=e.html.getSelected();s(n,i(e.doc.createElement("div")).html(n).text()),"cut"===t.type&&(e.undo.saveStep(),setTimeout((function(){e.selection.save(),e.html.wrap(),e.selection.restore(),e.events.focus(),e.undo.saveStep()}),0))}var c=!1;function d(t){if("INPUT"===t.target.nodeName&&"text"===t.target.type)return!0;if(e.edit.isDisabled())return!1;if(f(t.target))return!1;if(c)return!1;if(t.originalEvent&&(t=t.originalEvent),!1===e.events.trigger("paste.before",[t]))return t.preventDefault(),!1;if(t&&t.clipboardData&&t.clipboardData.getData){var o="",s=t.clipboardData.types;if(e.helpers.isArray(s))for(var l=0;l<s.length;l++)o+="".concat(s[l],";");else o=s;if(n="",/text\/rtf/.test(o)&&(r=t.clipboardData.getData("text/rtf")),/text\/html/.test(o)&&!e.browser.safari?n=t.clipboardData.getData("text/html"):/text\/rtf/.test(o)&&e.browser.safari?n=r:/public.rtf/.test(o)&&e.browser.safari&&(n=t.clipboardData.getData("text/rtf")),""!==n)return u(),t.preventDefault&&(t.stopPropagation(),t.preventDefault()),!1;n=null}return function(){var t;e.selection.save(),e.events.disableBlur(),n=null,a?(a.html(""),e.browser.edge&&e.opts.iframe&&e.$el.append(a)):(a=i('<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>'),e.browser.webkit||e.browser.mozilla?(a.css("top",e.$sc.scrollTop()),e.$el.after(a)):e.browser.edge&&e.opts.iframe?e.$el.append(a):e.$box.after(a),e.events.on("destroy",(function(){a.remove()}))),e.helpers.isIOS()&&e.$sc&&(t=e.$sc.scrollTop()),e.opts.iframe&&e.$el.attr("contenteditable","false"),a.focus(),e.helpers.isIOS()&&e.$sc&&e.$sc.scrollTop(t),e.win.setTimeout(u,1)}(),!1}function f(e){return e&&"false"===e.contentEditable}function p(a){if(a.originalEvent&&(a=a.originalEvent),f(a.target))return!1;if(a&&a.dataTransfer&&a.dataTransfer.getData){var s="",l=a.dataTransfer.types;if(e.helpers.isArray(l))for(var c=0;c<l.length;c++)s+="".concat(l[c],";");else s=l;if(n="",/text\/rtf/.test(s)&&(r=a.dataTransfer.getData("text/rtf")),/text\/html/.test(s)?n=a.dataTransfer.getData("text/html"):/text\/rtf/.test(s)&&e.browser.safari?n=r:/text\/plain/.test(s)&&!this.browser.mozilla&&(n=e.html.escapeEntities(a.dataTransfer.getData("text/plain")).replace(/\n/g,"<br>")),""!==n){e.keys.forceUndo(),o=e.snapshot.get(),e.selection.save(),e.$el.find(".fr-marker").removeClass("fr-marker").addClass("fr-marker-helper");var d=e.markers.insertAtPoint(a);if(e.$el.find(".fr-marker").removeClass("fr-marker").addClass("fr-marker-placeholder"),e.$el.find(".fr-marker-helper").addClass("fr-marker").removeClass("fr-marker-helper"),e.selection.restore(),e.selection.remove(),e.$el.find(".fr-marker-placeholder").addClass("fr-marker").removeClass("fr-marker-placeholder"),!1!==d){var p=e.el.querySelector(".fr-marker");return i(p).replaceWith(t.MARKERS),e.selection.restore(),u(),a.preventDefault&&(a.stopPropagation(),a.preventDefault()),!1}}else n=null}}function u(){e.opts.iframe&&e.$el.attr("contenteditable","true"),e.browser.edge&&e.opts.iframe&&e.$box.after(a),o||(e.keys.forceUndo(),o=e.snapshot.get()),n||(n=a.get(0).innerHTML,e.selection.restore(),e.events.enableBlur());var t=n.match(/(class="?Mso|class='?Mso|class="?Xl|class='?Xl|class=Xl|style="[^"]*\bmso-|style='[^']*\bmso-|w:WordDocument|LibreOffice)/gi),r=e.events.chainTrigger("paste.beforeCleanup",n);r&&"string"==typeof r&&(n=r),(!t||t&&!1!==e.events.trigger("paste.wordPaste",[n]))&&g(n,t)}function h(e){for(var t="",n=0;n++<e;)t+=" ";return t}function g(n,r,a){var s,l=null,c=null;if(0<=n.toLowerCase().indexOf("<body")){var d="";0<=n.indexOf("<style")&&(d=n.replace(/[.\s\S\w\W<>]*(<style[^>]*>[\s]*[.\s\S\w\W<>]*[\s]*<\/style>)[.\s\S\w\W<>]*/gi,"$1")),n=(n=d+n.replace(/[.\s\S\w\W<>]*<body[^>]*>[\s]*([.\s\S\w\W<>]*)[\s]*<\/body>[.\s\S\w\W<>]*/gi,"$1")).replace(/ \n/g," ").replace(/\n /g," ").replace(/([^>])\n([^<])/g,"$1 $2")}var f=!1;0<=n.indexOf('id="docs-internal-guid')&&(n=n.replace(/^[\w\W\s\S]* id="docs-internal-guid[^>]*>([\w\W\s\S]*)<\/b>[\w\W\s\S]*$/g,"$1"),f=!0),0<=n.indexOf('content="Sheets"')&&(n=n.replace(/width:0px;/g,""));var p=!1;if(!r)if((p=function(t){var n=null;try{n=e.win.localStorage.getItem("fr-copied-text")}catch(e){}return!(!n||i("<div>").html(t).text().replace(/\u00A0/gi," ").replace(/\r|\n/gi,"")!==n.replace(/\u00A0/gi," ").replace(/\r|\n/gi,""))}(n))&&(n=e.win.localStorage.getItem("fr-copied-html")),p)n=e.clean.html(n,e.opts.pasteDeniedTags,e.opts.pasteDeniedAttrs);else{var u=e.opts.htmlAllowedStyleProps;e.opts.htmlAllowedStyleProps=e.opts.pasteAllowedStyleProps,e.opts.htmlAllowComments=!1,n=(n=(n=n.replace(/<span class="Apple-tab-span">\s*<\/span>/g,h(e.opts.tabSpaces||4))).replace(/<span class="Apple-tab-span" style="white-space:pre">(\t*)<\/span>/g,(function(t,n){return h(n.length*(e.opts.tabSpaces||4))}))).replace(/\t/g,h(e.opts.tabSpaces||4)),n=e.clean.html(n,e.opts.pasteDeniedTags,e.opts.pasteDeniedAttrs),e.opts.htmlAllowedStyleProps=u,e.opts.htmlAllowComments=!0,n=(n=(n=v(n)).replace(/\r/g,"")).replace(/^ */g,"").replace(/ *$/g,"")}!r||e.wordPaste&&a||(0===(n=n.replace(/^\n*/g,"").replace(/^ /g,"")).indexOf("<colgroup>")&&(n="<table>".concat(n,"</table>")),n=v(n=function(t){var n;t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=t.replace(/<p(.*?)class="?'?MsoListParagraph"?'? ([\s\S]*?)>([\s\S]*?)<\/p>/gi,"<ul><li>$3</li></ul>")).replace(/<p(.*?)class="?'?NumberedText"?'? ([\s\S]*?)>([\s\S]*?)<\/p>/gi,"<ol><li>$3</li></ol>")).replace(/<p(.*?)class="?'?MsoListParagraphCxSpFirst"?'?([\s\S]*?)(level\d)?([\s\S]*?)>([\s\S]*?)<\/p>/gi,"<ul><li$3>$5</li>")).replace(/<p(.*?)class="?'?NumberedTextCxSpFirst"?'?([\s\S]*?)(level\d)?([\s\S]*?)>([\s\S]*?)<\/p>/gi,"<ol><li$3>$5</li>")).replace(/<p(.*?)class="?'?MsoListParagraphCxSpMiddle"?'?([\s\S]*?)(level\d)?([\s\S]*?)>([\s\S]*?)<\/p>/gi,"<li$3>$5</li>")).replace(/<p(.*?)class="?'?NumberedTextCxSpMiddle"?'?([\s\S]*?)(level\d)?([\s\S]*?)>([\s\S]*?)<\/p>/gi,"<li$3>$5</li>")).replace(/<p(.*?)class="?'?MsoListBullet"?'?([\s\S]*?)(level\d)?([\s\S]*?)>([\s\S]*?)<\/p>/gi,"<li$3>$5</li>")).replace(/<p(.*?)class="?'?MsoListParagraphCxSpLast"?'?([\s\S]*?)(level\d)?([\s\S]*?)>([\s\S]*?)<\/p>/gi,"<li$3>$5</li></ul>")).replace(/<p(.*?)class="?'?NumberedTextCxSpLast"?'?([\s\S]*?)(level\d)?([\s\S]*?)>([\s\S]*?)<\/p>/gi,"<li$3>$5</li></ol>")).replace(/<span([^<]*?)style="?'?mso-list:Ignore"?'?([\s\S]*?)>([\s\S]*?)<span/gi,"<span><span")).replace(/<!--\[if !supportLists\]-->([\s\S]*?)<!--\[endif\]-->/gi,"")).replace(/<!\[if !supportLists\]>([\s\S]*?)<!\[endif\]>/gi,"")).replace(/(\n|\r| class=(")?Mso[a-zA-Z0-9]+(")?)/gi," ")).replace(/<!--[\s\S]*?-->/gi,"")).replace(/<(\/)*(meta|link|span|\\?xml:|st1:|o:|font)(.*?)>/gi,"");var r,a=["style","script","applet","embed","noframes","noscript"];for(n=0;n<a.length;n++){var o=new RegExp("<".concat(a[n],".*?").concat(a[n],"(.*?)>"),"gi");t=t.replace(o,"")}for(t=(t=(t=t.replace(/ /gi," ")).replace(/<td([^>]*)><\/td>/g,"<td$1><br></td>")).replace(/<th([^>]*)><\/th>/g,"<th$1><br></th>");(t=(r=t).replace(/<[^/>][^>]*><\/[^>]+>/gi,""))!==r;);t=(t=t.replace(/<lilevel([^1])([^>]*)>/gi,'<li data-indent="true"$2>')).replace(/<lilevel1([^>]*)>/gi,"<li$1>"),t=(t=(t=e.clean.html(t,e.opts.pasteDeniedTags,e.opts.pasteDeniedAttrs)).replace(/<a>(.[^<]+)<\/a>/gi,"$1")).replace(/<br> */g,"<br>");var i=e.o_doc.createElement("div");i.innerHTML=t;var s=i.querySelectorAll("li[data-indent]");for(n=0;n<s.length;n++){var l=s[n],c=l.previousElementSibling;if(c&&"LI"===c.tagName){var d=c.querySelector(":scope > ul, :scope > ol");d||(d=document.createElement("ul"),c.appendChild(d)),d.appendChild(l)}else l.removeAttribute("data-indent")}return e.html.cleanBlankSpaces(i),i.innerHTML}(n))),e.opts.pastePlain&&!p&&(n=function(t){var n,r=null,a=e.doc.createElement("div");a.innerHTML=t;var o=a.querySelectorAll("p, div, h1, h2, h3, h4, h5, h6, pre, blockquote");for(n=0;n<o.length;n++)(r=o[n]).outerHTML="<".concat(e.html.defaultTag()||"DIV",">").concat(r.innerHTML,"</").concat(e.html.defaultTag()||"DIV",">");for(n=(o=a.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("),")"))).length-1;0<=n;n--)(r=o[n]).outerHTML=r.innerHTML;return function t(n){for(var r=e.node.contents(n),a=0;a<r.length;a++)r[a].nodeType!==Node.TEXT_NODE&&r[a].nodeType!==Node.ELEMENT_NODE?r[a].parentNode.removeChild(r[a]):t(r[a])}(a),a.innerHTML}(n));var g=e.events.chainTrigger("paste.afterCleanup",n);if("string"==typeof g&&(n=g),""!==n){var m=e.o_doc.createElement("div");0<=(m.innerHTML=n).indexOf("<body>")?(e.html.cleanBlankSpaces(m),e.spaces.normalize(m,!0)):e.spaces.normalize(m);var b=m.getElementsByTagName("span");for(s=b.length-1;0<=s;s--){var E=b[s];0===E.attributes.length&&(E.outerHTML=E.innerHTML)}if(!0===e.opts.linkAlwaysBlank){var A=m.getElementsByTagName("a");for(s=A.length-1;0<=s;s--){var T=A[s];T.getAttribute("target")||T.setAttribute("target","_blank")}}var C=e.selection.element(),S=!1;if(C&&i(C).parentsUntil(e.el,"ul, ol").length&&(S=!0),S){var y=m.children;1===y.length&&0<=["OL","UL"].indexOf(y[0].tagName)&&(y[0].outerHTML=y[0].innerHTML)}if(!f){var L=m.getElementsByTagName("br");for(s=L.length-1;0<=s;s--){var R=L[s];e.node.isBlock(R.previousSibling)&&R.parentNode.removeChild(R)}}if(e.opts.enter===t.ENTER_BR)for(s=(l=m.querySelectorAll("p, div")).length-1;0<=s;s--)0===(c=l[s]).attributes.length&&(c.outerHTML=c.innerHTML+(c.nextSibling&&!e.node.isEmpty(c)?"<br>":""));else if(e.opts.enter===t.ENTER_DIV)for(s=(l=m.getElementsByTagName("p")).length-1;0<=s;s--)0===(c=l[s]).attributes.length&&(c.outerHTML="<div>".concat(c.innerHTML,"</div>"));else e.opts.enter===t.ENTER_P&&1===m.childNodes.length&&"P"===m.childNodes[0].tagName&&0===m.childNodes[0].attributes.length&&(m.childNodes[0].outerHTML=m.childNodes[0].innerHTML);n=m.innerHTML,p&&(n=function(n){var r,a=e.o_doc.createElement("div");a.innerHTML=n;for(var o=a.querySelectorAll("*:empty:not(td):not(th):not(tr):not(iframe):not(svg):not(".concat(t.VOID_ELEMENTS.join("):not("),"):not(").concat(e.opts.htmlAllowedEmptyTags.join("):not("),")"));o.length;){for(r=0;r<o.length;r++)o[r].parentNode.removeChild(o[r]);o=a.querySelectorAll("*:empty:not(td):not(th):not(tr):not(iframe):not(svg):not(".concat(t.VOID_ELEMENTS.join("):not("),"):not(").concat(e.opts.htmlAllowedEmptyTags.join("):not("),")"))}return a.innerHTML}(n)),e.html.insert(n,!0)}e.events.trigger("paste.after"),e.undo.saveStep(o),o=null,e.undo.saveStep()}function m(e){for(var t=e.length-1;0<=t;t--)e[t].attributes&&e[t].attributes.length&&e.splice(t,1);return e}function v(t){var n,r=e.o_doc.createElement("div");r.innerHTML=t;for(var a=m(Array.prototype.slice.call(r.querySelectorAll(":scope > div:not([style]), td > div:not([style]), th > div:not([style]), li > div:not([style])")));a.length;){var o=a[a.length-1];if(e.html.defaultTag()&&"div"!==e.html.defaultTag())o.querySelector(e.html.blockTagsQuery())?o.outerHTML=o.innerHTML:o.outerHTML="<".concat(e.html.defaultTag(),">").concat(o.innerHTML,"</").concat(e.html.defaultTag(),">");else{var i=o.querySelectorAll("*");!i.length||"BR"!==i[i.length-1].tagName&&0===o.innerText.length||!i.length||"BR"!==i[i.length-1].tagName||i[i.length-1].nextSibling?o.outerHTML=o.innerHTML+(o.nextSibling?"<br>":""):o.outerHTML=o.innerHTML}a=m(Array.prototype.slice.call(r.querySelectorAll(":scope > div:not([style]), td > div:not([style]), th > div:not([style]), li > div:not([style])")))}for(a=m(Array.prototype.slice.call(r.querySelectorAll("div:not([style])")));a.length;){for(n=0;n<a.length;n++){var s=a[n],l=s.innerHTML.replace(/\u0009/gi,"").trim();s.outerHTML=l}a=m(Array.prototype.slice.call(r.querySelectorAll("div:not([style])")))}return r.innerHTML}function b(){e.el.removeEventListener("copy",l),e.el.removeEventListener("cut",l),e.el.removeEventListener("paste",d)}return{_init:function(){e.el.addEventListener("copy",l),e.el.addEventListener("cut",l),e.el.addEventListener("paste",d,{capture:!0}),e.events.on("drop",p),e.browser.msie&&e.browser.version<11&&(e.events.on("mouseup",(function(e){2===e.button&&(setTimeout((function(){c=!1}),50),c=!0)}),!0),e.events.on("beforepaste",d)),e.events.on("destroy",b)},cleanEmptyTagsAndDivs:v,getRtfClipboard:function(){return r},saveCopiedText:s,clean:g}},Object.assign(t.DEFAULTS,{shortcutsEnabled:[],shortcutsHint:!0}),t.SHORTCUTS_MAP={},t.RegisterShortcut=function(e,n,r,a,o,i){t.SHORTCUTS_MAP[(o?"^":"")+(i?"@":"")+e]={cmd:n,val:r,letter:a,shift:o,option:i},t.DEFAULTS.shortcutsEnabled.push(n)},t.RegisterShortcut(t.KEYCODE.E,"show",null,"E",!1,!1),t.RegisterShortcut(t.KEYCODE.B,"bold",null,"B",!1,!1),t.RegisterShortcut(t.KEYCODE.I,"italic",null,"I",!1,!1),t.RegisterShortcut(t.KEYCODE.U,"underline",null,"U",!1,!1),t.RegisterShortcut(t.KEYCODE.S,"strikeThrough",null,"S",!1,!1),t.RegisterShortcut(t.KEYCODE.CLOSE_SQUARE_BRACKET,"indent",null,"]",!1,!1),t.RegisterShortcut(t.KEYCODE.OPEN_SQUARE_BRACKET,"outdent",null,"[",!1,!1),t.RegisterShortcut(t.KEYCODE.Z,"undo",null,"Z",!1,!1),t.RegisterShortcut(t.KEYCODE.Z,"redo",null,"Z",!0,!1),t.RegisterShortcut(t.KEYCODE.Y,"redo",null,"Y",!1,!1),t.MODULES.shortcuts=function(e){var n=null,r=!1;function a(n){if(!e.core.hasFocus())return!0;var a=n.which,o=-1!==navigator.userAgent.indexOf("Mac OS X")?n.metaKey:n.ctrlKey;if("keyup"===n.type&&r&&a!==t.KEYCODE.META)return r=!1;"keydown"===n.type&&(r=!1);var i=(n.shiftKey?"^":"")+(n.altKey?"@":"")+a,s=e.node.blockParent(e.selection.blocks()[0]);if(s&&"TR"==s.tagName&&null==s.getAttribute("contenteditable")&&(s=s.closest("table")),o&&t.SHORTCUTS_MAP[i]&&(!s||"false"!==s.getAttribute("contenteditable"))){var l=t.SHORTCUTS_MAP[i].cmd;if(l&&0<=e.opts.shortcutsEnabled.indexOf(l)){var c=t.SHORTCUTS_MAP[i].val;if(!1===e.events.trigger("shortcut",[n,l,c]))return!(r=!0);if(l&&(e.commands[l]||t.COMMANDS[l]&&t.COMMANDS[l].callback))return n.preventDefault(),n.stopPropagation(),"keydown"===n.type&&((e.commands[l]||t.COMMANDS[l].callback)(),r=!0),!1}}}return{_init:function(){e.events.on("keydown",a,!0),e.events.on("keyup",a,!0)},get:function(r){if(!e.opts.shortcutsHint)return null;if(!n)for(var a in n={},t.SHORTCUTS_MAP)Object.prototype.hasOwnProperty.call(t.SHORTCUTS_MAP,a)&&0<=e.opts.shortcutsEnabled.indexOf(t.SHORTCUTS_MAP[a].cmd)&&(n["".concat(t.SHORTCUTS_MAP[a].cmd,".").concat(t.SHORTCUTS_MAP[a].val||"")]={shift:t.SHORTCUTS_MAP[a].shift,option:t.SHORTCUTS_MAP[a].option,letter:t.SHORTCUTS_MAP[a].letter});var o=n[r];return o?(e.helpers.isMac()?String.fromCharCode(8984):"".concat(e.language.translate("Ctrl"),"+"))+(o.shift?e.helpers.isMac()?String.fromCharCode(8679):"".concat(e.language.translate("Shift"),"+"):"")+(o.option?e.helpers.isMac()?String.fromCharCode(8997):"".concat(e.language.translate("Alt"),"+"):"")+o.letter:null}}},t.MODULES.snapshot=function(e){function t(e){for(var t=e.parentNode.childNodes,n=0,r=null,a=0;a<t.length;a++){if(r){var o=t[a].nodeType===Node.TEXT_NODE&&""===t[a].textContent,i=r.nodeType===Node.TEXT_NODE&&t[a].nodeType===Node.TEXT_NODE,s=r.nodeType===Node.TEXT_NODE&&""===r.textContent;o||i||s||n++}if(t[a]===e)return n;r=t[a]}}function n(n){var r=[];if(!n.parentNode)return[];for(;!e.node.isElement(n);)r.push(t(n)),n=n.parentNode;return r.reverse()}function r(e,t){for(;e&&e.nodeType===Node.TEXT_NODE;){var n=e.previousSibling;n&&n.nodeType===Node.TEXT_NODE&&(t+=n.textContent.length),e=n}return t}function a(t){for(var n=e.el,r=0;r<t.length;r++)n=n.childNodes[t[r]];return n}function o(t,n){try{var r=a(n.scLoc),o=n.scOffset,i=a(n.ecLoc),s=n.ecOffset,l=e.doc.createRange();l.setStart(r,o),l.setEnd(i,s),t.addRange(l)}catch(e){}}return{get:function(){var t,a={};if(e.events.trigger("snapshot.before"),a.html=(e.$wp?e.$el.html():e.$oel.get(0).outerHTML).replace(/ style=""/g,""),a.ranges=[],e.$wp&&e.selection.inEditor()&&e.core.hasFocus())for(var o=e.selection.ranges(),i=0;i<o.length;i++)a.ranges.push({scLoc:n((t=o[i]).startContainer),scOffset:r(t.startContainer,t.startOffset),ecLoc:n(t.endContainer),ecOffset:r(t.endContainer,t.endOffset)});return e.events.trigger("snapshot.after",[a]),a},restore:function(t){e.$el.html()!==t.html&&(e.opts.htmlExecuteScripts?e.$el.html(t.html):e.el.innerHTML=t.html);var n=e.selection.get();e.selection.clear(),e.events.focus(!0);for(var r=0;r<t.ranges.length;r++)o(n,t.ranges[r])},equal:function(t,n){return t.html===n.html&&(!e.core.hasFocus()||JSON.stringify(t.ranges)===JSON.stringify(n.ranges))}}},t.MODULES.undo=function(e){function n(n){var r=n.which;e.keys.ctrlKey(n)&&(r===t.KEYCODE.Z&&n.shiftKey&&n.preventDefault(),r===t.KEYCODE.Z&&n.preventDefault())}var r=null;function a(){if(e.undo_stack&&!e.undoing)for(;e.undo_stack.length>e.undo_index;)e.undo_stack.pop()}function o(){e.undo_index=0,e.undo_stack=[]}function i(){e.undo_stack=[]}return{_init:function(){o(),e.events.on("initialized",(function(){r=(e.$wp?e.$el.html():e.$oel.get(0).outerHTML).replace(/ style=""/g,"")})),e.events.on("blur",(function(){e.el.querySelector(".fr-dragging")||e.undo.saveStep()})),e.events.on("keydown",n),e.events.on("destroy",i)},run:function(){if(1<e.undo_index){e.undoing=!0;var t=e.undo_stack[--e.undo_index-1];clearTimeout(e._content_changed_timer),e.snapshot.restore(t),r=t.html,e.popups.hideAll(),e.toolbar.enable(),e.events.trigger("contentChanged"),e.events.trigger("commands.undo"),e.undoing=!1}},redo:function(){if(e.undo_index<e.undo_stack.length){e.undoing=!0;var t=e.undo_stack[e.undo_index++];clearTimeout(e._content_changed_timer),e.snapshot.restore(t),r=t.html,e.popups.hideAll(),e.toolbar.enable(),e.events.trigger("contentChanged"),e.events.trigger("commands.redo"),e.undoing=!1}},canDo:function(){return!(0===e.undo_stack.length||e.undo_index<=1)},canRedo:function(){return e.undo_index!==e.undo_stack.length},dropRedo:a,reset:o,saveStep:function(t){!e.undo_stack||e.undoing||e.el.querySelector(".fr-marker")||(void 0===t?(t=e.snapshot.get(),e.undo_stack[e.undo_index-1]&&e.snapshot.equal(e.undo_stack[e.undo_index-1],t)||(a(),e.undo_stack.push(t),e.undo_index++,t.html!==r&&(e.events.trigger("contentChanged"),r=t.html))):(a(),0<e.undo_index?e.undo_stack[e.undo_index-1]=t:(e.undo_stack.push(t),e.undo_index++)))}}},Object.assign(t.DEFAULTS,{height:null,heightMax:null,heightMin:null,width:null}),t.MODULES.size=function(e){function t(){n(),e.opts.height&&e.$el.css("minHeight",e.opts.height-e.helpers.getPX(e.$el.css("padding-top"))-e.helpers.getPX(e.$el.css("padding-bottom"))),e.$iframe.height(e.$el.outerHeight(!0))}function n(){e.opts.heightMin?e.$el.css("minHeight",e.opts.heightMin):e.$el.css("minHeight",""),e.opts.heightMax?(e.$wp.css("maxHeight",e.opts.heightMax),e.$wp.css("overflow","auto")):(e.$wp.css("maxHeight",""),e.$wp.css("overflow","")),e.opts.height?(e.$wp.css("height",e.opts.height),e.$wp.css("overflow","auto"),e.$el.css("minHeight",e.opts.height-e.helpers.getPX(e.$el.css("padding-top"))-e.helpers.getPX(e.$el.css("padding-bottom")))):(e.$wp.css("height",""),e.opts.heightMin||e.$el.css("minHeight",""),e.opts.heightMax||e.$wp.css("overflow","")),e.opts.width&&e.$box.width(e.opts.width)}return{_init:function(){if(!e.$wp)return!1;n(),e.$iframe&&(e.events.on("keyup keydown",(function(){setTimeout(t,0)}),!0),e.events.on("commands.after html.set init initialized paste.after",t))},syncIframe:t,refresh:n}},Object.assign(t.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}),t.MODULES.core=function(e){var n=e.$;return{_init:function(){if(t.INSTANCES.push(e),e.drag_support={filereader:"undefined"!=typeof FileReader,formdata:Boolean(e.win.FormData),progress:"upload"in new XMLHttpRequest},e.$wp){(function(){if(e.$box.addClass("fr-box".concat(e.opts.editorClass?" ".concat(e.opts.editorClass):"")),e.$box.attr("role","application"),e.$wp.addClass("fr-wrapper"),e.opts.documentReady&&e.$box.addClass("fr-document"),e.opts.iframe||e.$el.addClass("fr-element fr-view"),e.opts.iframe){e.$iframe.addClass("fr-iframe"),e.$el.addClass("fr-view");for(var t=0;t<e.o_doc.styleSheets.length;t++){var n=void 0;try{n=e.o_doc.styleSheets[t].cssRules}catch(e){}if(n)for(var r=0,a=n.length;r<a;r++)!n[r].selectorText||0!==n[r].selectorText.indexOf(".fr-view")&&0!==n[r].selectorText.indexOf(".fr-element")||0<n[r].style.cssText.length&&(0===n[r].selectorText.indexOf(".fr-view")?e.opts.iframeStyle+="".concat(n[r].selectorText.replace(/\.fr-view/g,"body"),"{").concat(n[r].style.cssText,"}"):e.opts.iframeStyle+="".concat(n[r].selectorText.replace(/\.fr-element/g,"body"),"{").concat(n[r].style.cssText,"}"))}}"auto"!==e.opts.direction&&e.$box.removeClass("fr-ltr fr-rtl").addClass("fr-".concat(e.opts.direction)),e.$el.attr("dir",e.opts.direction),e.$wp.attr("dir",e.opts.direction),1<e.opts.zIndex&&e.$box.css("z-index",e.opts.zIndex),e.opts.theme&&e.$box.addClass("".concat(e.opts.theme,"-theme")),e.opts.tabIndex=e.opts.tabIndex||e.$oel.attr("tabIndex"),e.opts.tabIndex&&e.$el.attr("tabIndex",e.opts.tabIndex)})(),e.html.set(e._original_html),e.$el.attr("spellcheck",e.opts.spellcheck),e.helpers.isMobile()&&(e.$el.attr("autocomplete",e.opts.spellcheck?"on":"off"),e.$el.attr("autocorrect",e.opts.spellcheck?"on":"off"),e.$el.attr("autocapitalize",e.opts.spellcheck?"on":"off")),e.opts.disableRightClick&&e.events.$on(e.$el,"contextmenu",(function(e){if(2===e.button)return e.preventDefault(),e.stopPropagation(),!1}));try{e.doc.execCommand("styleWithCSS",!1,!1)}catch(e){}}"TEXTAREA"===e.$oel.get(0).tagName&&(e.events.on("contentChanged",(function(){e.$oel.val(e.html.get())})),e.events.on("form.submit",(function(){e.$oel.val(e.html.get())})),e.events.on("form.reset",(function(){e.html.set(e._original_html)})),e.$oel.val(e.html.get())),e.helpers.isIOS()&&e.events.$on(e.$doc,"selectionchange",(function(){e.$doc.get(0).hasFocus()||e.$win.get(0).focus()})),e.events.trigger("init"),e.opts.autofocus&&!e.opts.initOnClick&&e.$wp&&e.events.on("initialized",(function(){e.events.focus(!0)}))},destroy:function(t){"TEXTAREA"===e.$oel.get(0).tagName&&e.$oel.val(t),e.$box&&e.$box.removeAttr("role"),e.$wp&&("TEXTAREA"===e.$oel.get(0).tagName?(e.$el.html(""),e.$wp.html(""),e.$box.replaceWith(e.$oel),e.$oel.show()):(e.$wp.replaceWith(t),e.$el.html(""),e.$box.removeClass("fr-view fr-ltr fr-box ".concat(e.opts.editorClass||"")),e.opts.theme&&e.$box.addClass("".concat(e.opts.theme,"-theme")))),this.$wp=null,this.$el=null,this.el=null,this.$box=null},isEmpty:function(){return e.node.isEmpty(e.el)},getXHR:function(t,n){var r=new XMLHttpRequest;for(var a in r.open(n,t,!0),e.opts.requestWithCredentials&&(r.withCredentials=!0),e.opts.requestHeaders)Object.prototype.hasOwnProperty.call(e.opts.requestHeaders,a)&&r.setRequestHeader(a,e.opts.requestHeaders[a]);return r},injectStyle:function(t){if(e.opts.iframe){e.$head.find("style[data-fr-style], link[data-fr-style]").remove(),e.$head.append('<style data-fr-style="true">'.concat(t,"</style>"));for(var r=0;r<e.opts.iframeStyleFiles.length;r++){var a=n('<link data-fr-style="true" rel="stylesheet" href="'.concat(e.opts.iframeStyleFiles[r],'">'));a.get(0).addEventListener("load",e.size.syncIframe),e.$head.append(a)}}},hasFocus:function(){return e.browser.mozilla&&e.helpers.isMobile()?e.selection.inEditor():e.node.hasFocus(e.el)||0<e.$el.find("*:focus").length},sameInstance:function(t){if(!t)return!1;var n=t.data("instance");return!!n&&n.id===e.id}}},t.POPUP_TEMPLATES={"text.edit":"[_EDIT_]"},t.RegisterTemplate=function(e,n){t.POPUP_TEMPLATES[e]=n},t.MODULES.popups=function(e){var n=e.$;e.shared.popups||(e.shared.popups={});var r,a=e.shared.popups;function o(t,n){n.isVisible()||(n=e.$sc),n.is(a[t].data("container"))||(a[t].data("container",n),n.append(a[t]))}function i(){n(this).toggleClass("fr-not-empty",!0)}function s(){var e=n(this);e.toggleClass("fr-not-empty",""!==e.val())}function l(t){return a[t]&&e.node.hasClass(a[t],"fr-active")&&e.core.sameInstance(a[t])||!1}function c(e){for(var t in a)if(Object.prototype.hasOwnProperty.call(a,t)&&l(t)&&(void 0===e||a[t].data("instance")===e))return a[t];return!1}function d(t){var o=null;if((o="string"!=typeof t?t:a[t])&&e.node.hasClass(o,"fr-active")&&(o.removeClass("fr-active fr-above"),e.events.trigger("popups.hide.".concat(t)),e.$tb&&(1<e.opts.zIndex?e.$tb.css("zIndex",e.opts.zIndex+1):e.$tb.css("zIndex","")),e.events.disableBlur(),o.find("input, textarea, button").each((function(){this===this.ownerDocument.activeElement&&this.blur()})),o.find("input, textarea").attr("disabled","disabled"),r))for(var i=0;i<r.length;i++)n(r[i]).removeClass("fr-btn-active-popup")}function f(e){for(var t in void 0===e&&(e=[]),a)Object.prototype.hasOwnProperty.call(a,t)&&e.indexOf(t)<0&&d(t)}function p(){e.shared.exit_flag=!0}function u(){e.shared.exit_flag=!1}function h(){return e.shared.exit_flag}function g(r){var o=a[r];return{_windowResize:function(){var t=o.data("instance")||e;!t.helpers.isMobile()&&o.isVisible()&&(t.events.disableBlur(),t.popups.hide(r),t.events.enableBlur())},_inputFocus:function(t){var r=o.data("instance")||e,a=n(t.currentTarget);if(a.is("input:file")&&a.closest(".fr-layer").addClass("fr-input-focus"),t.preventDefault(),t.stopPropagation(),setTimeout((function(){r.events.enableBlur()}),100),r.helpers.isMobile()){var i=n(r.o_win).scrollTop();setTimeout((function(){n(r.o_win).scrollTop(i)}),0)}},_inputBlur:function(t){var r=o.data("instance")||e,a=n(t.currentTarget);a.is("input:file")&&a.closest(".fr-layer").removeClass("fr-input-focus"),document.activeElement!==this&&n(this).isVisible()&&(r.events.blurActive()&&r.events.trigger("blur"),r.events.enableBlur())},_editorKeydown:function(n){var a=o.data("instance")||e;a.keys.ctrlKey(n)||n.which===t.KEYCODE.ALT||n.which===t.KEYCODE.ESC||(l(r)&&o.findVisible(".fr-back").length?a.button.exec(o.findVisible(".fr-back").first()):n.which!==t.KEYCODE.ALT&&a.popups.hide(r))},_preventFocus:function(t){var r=o.data("instance")||e,a=t.originalEvent?t.originalEvent.target||t.originalEvent.originalTarget:null;"mouseup"===t.type||n(a).is(":focus")||r.events.disableBlur(),"mouseup"!==t.type||n(a).hasClass("fr-command")||0<n(a).parents(".fr-command").length||n(a).hasClass("fr-dropdown-content")||e.button.hideActiveDropdowns(o),(e.browser.safari||e.browser.mozilla)&&"mousedown"===t.type&&n(a).is("input[type=file]")&&r.events.disableBlur();var i="input, textarea, button, select, label, .fr-command";if(a&&!n(a).is(i)&&0===n(a).parents(i).length)return t.stopPropagation(),!1;a&&n(a).is(i)&&t.stopPropagation(),u()},_editorMouseup:function(){o.isVisible()&&h()&&0<o.findVisible("input:focus, textarea:focus, button:focus, select:focus").length&&e.events.disableBlur()},_windowMouseup:function(t){if(!e.core.sameInstance(o))return!0;var n=o.data("instance")||e;o.isVisible()&&h()&&(t.stopPropagation(),n.markers.remove(),n.popups.hide(r),u())},_windowKeydown:function(n){if(!e.core.sameInstance(o))return!0;var a=o.data("instance")||e,i=n.which;if(t.KEYCODE.ESC===i){if(a.popups.isVisible(r)&&a.opts.toolbarInline)return n.stopPropagation(),a.popups.isVisible(r)&&(o.findVisible(".fr-back").length?(a.button.exec(o.findVisible(".fr-back").first()),a.accessibility.focusPopupButton(o)):o.findVisible(".fr-dismiss").length?a.button.exec(o.findVisible(".fr-dismiss").first()):(a.popups.hide(r),a.toolbar.showInline(null,!0),a.accessibility.focusPopupButton(o))),!1;if(a.popups.isVisible(r))return o.findVisible(".fr-back").length?(a.button.exec(o.findVisible(".fr-back").first),a.accessibility.focusPopupButton(o)):o.findVisible(".fr-dismiss").length?a.button.exec(o.findVisible(".fr-dismiss").first()):(a.popups.hide(r),a.accessibility.focusPopupButton(o)),!1}},_repositionPopup:function(){if(!e.opts.height&&!e.opts.heightMax||e.opts.toolbarInline)return!0;if(e.$wp&&l(r)&&o.parent().get(0)===e.$sc.get(0)){var t=o.offset().top-e.$wp.offset().top,n=e.$wp.outerHeight();e.node.hasClass(o.get(0),"fr-above")&&(t+=o.outerHeight()),n<t||t<0?o.addClass("fr-hidden"):o.removeClass("fr-hidden")}}}}function m(t,r){e.events.on("mouseup",t._editorMouseup,!0),e.$wp&&e.events.on("keydown",t._editorKeydown),e.events.on("focus",(function(){a[r].removeClass("focused")})),e.events.on("blur",(function(){c()&&e.markers.remove(),e.helpers.isMobile()?a[r].hasClass("focused")?(f(),a[r].removeClass("focused")):a[r].addClass("focused"):a[r].find("iframe").length||f()})),e.$wp&&!e.helpers.isMobile()&&e.events.$on(e.$wp,"scroll.popup".concat(r),t._repositionPopup),e.events.on("window.mouseup",t._windowMouseup,!0),e.events.on("window.keydown",t._windowKeydown,!0),a[r].data("inst".concat(e.id),!0),e.events.on("destroy",(function(){e.core.sameInstance(a[r])&&(n("body").first().append(a[r]),a[r].removeClass("fr-active"))}),!0)}function v(){var e=n(this).prev().children().first();e.attr("checked",!e.attr("checked"))}function b(){for(var e in a)if(Object.prototype.hasOwnProperty.call(a,e)){var t=a[e];t&&(t.html("").removeData().remove(),a[e]=null)}a=[]}return e.shared.exit_flag=!1,{_init:function(){e.events.on("shared.destroy",b,!0),e.events.on("window.mousedown",p),e.events.on("window.touchmove",u),e.events.$on(n(e.o_win),"scroll",u),e.events.on("mousedown",(function(t){c()&&(t.stopPropagation(),e.$el.find(".fr-marker").remove(),p(),e.events.disableBlur())}))},create:function(r,o){var l=function(r,o){var i,s=function(n,r){var a=t.POPUP_TEMPLATES[n];if(!a)return null;for(var o in"function"==typeof a&&(a=a.apply(e)),r)Object.prototype.hasOwnProperty.call(r,o)&&(a=a.replace("[_".concat(o.toUpperCase(),"_]"),r[o]));return a}(r,o),l=n(e.doc.createElement("DIV"));if(!s)return l.addClass("fr-popup fr-empty"),(i=n("body").first()).append(l),l.data("container",i),a[r]=l;l.addClass("fr-popup".concat(e.helpers.isMobile()?" fr-mobile":" fr-desktop").concat(e.opts.toolbarInline?" fr-inline":"")),l.html(s),e.opts.theme&&l.addClass("".concat(e.opts.theme,"-theme")),1<e.opts.zIndex&&(!e.opts.editInPopup&&e.$tb?e.$tb.css("z-index",e.opts.zIndex+2):l.css("z-index",e.opts.zIndex+2)),"auto"!==e.opts.direction&&l.removeClass("fr-ltr fr-rtl").addClass("fr-".concat(e.opts.direction)),l.find("input, textarea").attr("dir",e.opts.direction).attr("disabled","disabled"),(i=n("body").first()).append(l),l.data("container",i);var c=(a[r]=l).find(".fr-color-hex-layer");if(0<c.length){var d=e.helpers.getPX(l.find(".fr-color-set > span").css("width")),f=e.helpers.getPX(c.css("paddingLeft")),p=e.helpers.getPX(c.css("paddingRight"));c.css("width",d*e.opts.colorsStep+f+p)}return e.button.bindCommands(l,!1),l}(r,o),c=g(r);m(c,r),e.events.$on(l,"mousedown mouseup touchstart touchend touch","*",c._preventFocus,!0),e.events.$on(l,"focus","input, textarea, button, select",c._inputFocus,!0),e.events.$on(l,"blur","input, textarea, button, select",c._inputBlur,!0);var d=l.find("input, textarea");return function(e){for(var t=0;t<e.length;t++){var r=e[t],a=n(r);0===a.next().length&&a.attr("placeholder")&&(a.after('<label for="'.concat(a.attr("id"),'">').concat(a.attr("placeholder"),"</label>")),a.attr("placeholder",""))}}(d),e.events.$on(d,"focus",i),e.events.$on(d,"blur change",s),e.events.$on(l,"click",".fr-checkbox + label",v),e.accessibility.registerPopup(r),e.helpers.isIOS()&&e.events.$on(l,"touchend","label",(function(){n("#".concat(n(this).attr("for"))).prop("checked",(function(e,t){return!t}))}),!0),e.events.$on(n(e.o_win),"resize",c._windowResize,!0),l},get:function(t){var n=a[t];return n&&!n.data("inst".concat(e.id))&&m(g(t),t),n},show:function(t,n,i,s,d){if(l(t)||(c()&&0<e.$el.find(".fr-marker").length?(e.events.disableBlur(),e.selection.restore()):c()||(e.events.disableBlur(),e.events.focus(),e.events.enableBlur())),f([t]),!a[t])return!1;var p=e.button.getButtons(".fr-dropdown.fr-active");p.removeClass("fr-active").attr("aria-expanded",!1).parents(".fr-toolbar").css("zIndex","").find("> .fr-dropdown-wrapper").css("height",""),p.next().attr("aria-hidden",!0).css("overflow","").find("> .fr-dropdown-wrapper").css("height",""),a[t].data("instance",e),e.$tb&&e.$tb.data("instance",e);var h=l(t);a[t].addClass("fr-active").removeClass("fr-hidden").find("input, textarea").removeAttr("disabled");var m=a[t].data("container");if(function(t,n){n.isVisible()||(n=e.$sc),n.contains([a[t].get(0)])||n.append(a[t])}(t,m),e.opts.toolbarInline&&m&&e.$tb&&m.get(0)===e.$tb.get(0)&&(o(t,e.$sc),i=e.$tb.offset().top-e.helpers.getPX(e.$tb.css("margin-top")),n=e.$tb.offset().left+e.$tb.outerWidth()/2,e.node.hasClass(e.$tb.get(0),"fr-above")&&i&&(i+=e.$tb.outerHeight()),s=0),m=a[t].data("container"),e.opts.iframe&&!s&&!h){var v=e.helpers.getPX(e.$wp.find(".fr-iframe").css("padding-top")),b=e.helpers.getPX(e.$wp.find(".fr-iframe").css("padding-left"));n&&(n-=e.$iframe.offset().left+b),i&&(i-=e.$iframe.offset().top+v)}m.is(e.$tb)?e.$tb.css("zIndex",(e.opts.zIndex||1)+4):a[t].css("zIndex",(e.opts.zIndex||1)+4),e.opts.toolbarBottom&&m&&e.$tb&&m.get(0)===e.$tb.get(0)&&(a[t].addClass("fr-above"),i&&(i-=a[t].outerHeight())),d&&(n-=a[t].width()/2),n+a[t].outerWidth()>e.$sc.offset().left+e.$sc.width()&&(n-=n+a[t].outerWidth()-e.$sc.offset().left-e.$sc.width()),n<e.$sc.offset().left&&"rtl"===e.opts.direction&&(n=e.$sc.offset().left),a[t].removeClass("fr-active"),e.position.at(n,i,a[t],s||0),a[t].addClass("fr-active"),h||e.accessibility.focusPopup(a[t]),e.opts.toolbarInline&&e.toolbar.hide(),e.$tb&&(r=e.$tb.find(".fr-btn-active-popup")),e.events.trigger("popups.show.".concat(t)),g(t)._repositionPopup(),u()},hide:d,onHide:function(t,n){e.events.on("popups.hide.".concat(t),n)},hideAll:f,setContainer:o,refresh:function(t){a[t].data("instance",e),e.events.trigger("popups.refresh.".concat(t));for(var r=a[t].find(".fr-command"),o=0;o<r.length;o++){var i=n(r[o]);0===i.parents(".fr-dropdown-menu").length&&e.button.refresh(i)}},onRefresh:function(t,n){e.events.on("popups.refresh.".concat(t),n)},onShow:function(t,n){e.events.on("popups.show.".concat(t),n)},isVisible:l,areVisible:c}},t.MODULES.accessibility=function(e){var n=e.$,r=!0;function a(t){t&&t.length&&!e.$el.find('[contenteditable="true"]').is(":focus")&&(t.data("blur-event-set")||t.parents(".fr-popup").length||(e.events.$on(t,"blur",(function(){var n=t.parents(".fr-toolbar, .fr-popup").data("instance")||e;n.events.blurActive()&&!e.core.hasFocus()&&n.events.trigger("blur"),setTimeout((function(){n.events.enableBlur()}),100)}),!0),t.data("blur-event-set",!0)),(t.parents(".fr-toolbar, .fr-popup").data("instance")||e).events.disableBlur(),t.get(0).focus(),e.shared.$f_el=t)}function o(e,t){var n=t?"last":"first",r=f(p(e))[n]();if(r.length)return a(r),!0}function i(t){return t.is("input, textarea, select")&&l(),e.events.disableBlur(),t.get(0).focus(),!0}function s(t,r){var a=t.find("input, textarea, button, select").filter((function(){return n(this).isVisible()})).not(":disabled");if((a=r?a.last():a.first()).length)return i(a);if(e.shared.with_kb){var o=t.findVisible(".fr-active-item").first();if(o.length)return i(o);var s=t.findVisible("[tabIndex]").first();if(s.length)return i(s)}}function l(){0===e.$el.find(".fr-marker").length&&e.core.hasFocus()&&e.selection.save()}function c(){var t=e.popups.areVisible();if(t){var n=t.find(".fr-buttons");return n.find("button:focus, .fr-group span:focus").length?!o(t.data("instance").$tb):!o(n)}return!o(e.$tb)}function d(){var t=null;return e.shared.$f_el.is(".fr-dropdown.fr-active")?t=e.shared.$f_el:e.shared.$f_el.closest(".fr-dropdown-menu").prev().is(".fr-dropdown.fr-active")&&(t=e.shared.$f_el.closest(".fr-dropdown-menu").prev()),t}function f(t){for(var r=-1,a=0;a<t.length;a++)n(t[a]).hasClass("fr-open")&&(r=a);var o=t.index(e.$tb.find(".fr-more-toolbar.fr-expanded > button.fr-command").first());if(0<o&&-1!==r){var i=t.slice(o,t.length),s=(t=t.slice(0,o)).slice(0,r+1),l=t.slice(r+1,t.length);t=s;for(var c=0;c<i.length;c++)t.push(i[c]);for(var d=0;d<l.length;d++)t.push(l[d])}return t}function p(e){return e.findVisible("button:not(.fr-disabled), .fr-group span.fr-command").filter((function(e){var t=n(e).parents(".fr-more-toolbar");return 0===t.length||0<t.length&&t.hasClass("fr-expanded")}))}function u(t,r,i){if(e.shared.$f_el){var l=d();l&&(e.button.click(l),e.shared.$f_el=l);var c,u=f(p(t)),h=u.index(e.shared.$f_el);return 0===h&&!i||h===u.length-1&&i?(r&&(t.parent().is(".fr-popup")&&(c=!s(t.parent().children().not(".fr-buttons"),!i)),!1===c&&(e.shared.$f_el=null)),r&&!1===c||o(t,!i)):a(n(u.get(h+(i?1:-1)))),!1}}function h(e,t){return u(e,t,!0)}function g(e,t){return u(e,t)}function m(t){if(e.shared.$f_el){var n;if(e.shared.$f_el.is(".fr-dropdown.fr-active"))return a(n=t?e.shared.$f_el.next().find(".fr-command:not(.fr-disabled)").first():e.shared.$f_el.next().find(".fr-command:not(.fr-disabled)").last()),!1;if(e.shared.$f_el.is("a.fr-command"))return(n=t?e.shared.$f_el.closest("li").nextAllVisible().first().find(".fr-command:not(.fr-disabled)").first():e.shared.$f_el.closest("li").prevAllVisible().first().find(".fr-command:not(.fr-disabled)").first()).length||(n=t?e.shared.$f_el.closest(".fr-dropdown-menu").find(".fr-command:not(.fr-disabled)").first():e.shared.$f_el.closest(".fr-dropdown-menu").find(".fr-command:not(.fr-disabled)").last()),a(n),!1}}function v(){if(e.shared.$f_el){if(e.shared.$f_el.hasClass("fr-dropdown"))e.button.click(e.shared.$f_el);else if(e.shared.$f_el.is("button.fr-back")){e.opts.toolbarInline&&(e.events.disableBlur(),e.events.focus());var t=e.popups.areVisible(e);t&&(e.shared.with_kb=!1),e.button.click(e.shared.$f_el),A(t)}else{if(e.events.disableBlur(),e.button.click(e.shared.$f_el),e.shared.$f_el.attr("data-group-name")){var n=e.$tb.find('.fr-more-toolbar[data-name="'.concat(e.shared.$f_el.attr("data-group-name"),'"]')),r=e.shared.$f_el;n.hasClass("fr-expanded")&&(r=n.findVisible("button:not(.fr-disabled)").first()),r&&a(r)}else if(e.shared.$f_el.attr("data-popup")){var o=e.popups.areVisible(e);o&&o.data("popup-button",e.shared.$f_el)}else if(e.shared.$f_el.attr("data-modal")){var i=e.modals.areVisible(e);i&&i.data("modal-button",e.shared.$f_el)}e.shared.$f_el=null}return!1}}function b(){e.shared.$f_el&&(e.events.disableBlur(),e.shared.$f_el.blur(),e.shared.$f_el=null),!1!==e.events.trigger("toolbar.focusEditor")&&(e.events.disableBlur(),e.$el.get(0).focus(),e.events.focus())}function E(t){t&&t.length&&(e.events.$on(t,"keydown",(function(r){if(!n(r.target).is("a.fr-command, button.fr-command, .fr-group span.fr-command"))return!0;var a=t.parents(".fr-popup").data("instance")||t.data("instance")||e;e.shared.with_kb=!0;var o=a.accessibility.exec(r,t);return e.shared.with_kb=!1,o}),!0),e.events.$on(t,"mouseenter","[tabIndex]",(function(a){var o=t.parents(".fr-popup").data("instance")||t.data("instance")||e;if(!r)return a.stopPropagation(),void a.preventDefault();var i=n(a.currentTarget);o.shared.$f_el&&o.shared.$f_el.not(i)&&o.accessibility.focusEditor()}),!0),e.$tb&&e.events.$on(e.$tb,"transitionend",".fr-more-toolbar",(function(){e.shared.$f_el=n(document.activeElement)})))}function A(e){var t=e.data("popup-button");t&&setTimeout((function(){a(t),e.data("popup-button",null)}),0)}function T(t){var n=e.popups.areVisible(t);n&&n.data("popup-button",null)}function C(n){var r=-1!==navigator.userAgent.indexOf("Mac OS X")?n.metaKey:n.ctrlKey;if(n.which!==t.KEYCODE.F10||r||n.shiftKey||!n.altKey)return!0;e.shared.with_kb=!0;var a=e.popups.areVisible(e),o=!1;return a&&(o=s(a.children().not(".fr-buttons"))),o||c(),e.shared.with_kb=!1,n.preventDefault(),n.stopPropagation(),!1}return{_init:function(){e.$wp?e.events.on("keydown",C,!0):e.events.$on(e.$win,"keydown",C,!0),e.events.on("mousedown",(function(t){T(e),e.shared.$f_el&&e.el.isSameNode(e.shared.$f_el[0])&&(e.accessibility.restoreSelection(),t.stopPropagation(),e.events.disableBlur(),e.shared.$f_el=null)}),!0),e.events.on("blur",(function(){e.shared.$f_el=null,T(e)}),!0)},registerPopup:function(a){var i=e.popups.get(a),l=function(r){var a=e.popups.get(r);return{_tiKeydown:function(i){var l=a.data("instance")||e;if(!1===l.events.trigger("popup.tab",[i]))return!1;var c=i.which,d=a.find(":focus").first();if(t.KEYCODE.TAB===c){i.preventDefault();var f=a.children().not(".fr-buttons"),p=f.findVisible("input, textarea, button, select").not(".fr-no-touch input, .fr-no-touch textarea, .fr-no-touch button, .fr-no-touch select, :disabled").toArray(),u=p.indexOf(this)+(i.shiftKey?-1:1);if(0<=u&&u<p.length)return l.events.disableBlur(),n(p[u]).focus(),i.stopPropagation(),!1;var h=a.find(".fr-buttons");if(h.length&&o(h,Boolean(i.shiftKey)))return i.stopPropagation(),!1;if(s(f))return i.stopPropagation(),!1}else{if(t.KEYCODE.ENTER!==c||!i.target||"TEXTAREA"===i.target.tagName)return t.KEYCODE.ESC===c?(i.preventDefault(),i.stopPropagation(),l.accessibility.restoreSelection(),l.popups.isVisible(r)&&a.findVisible(".fr-back").length?(l.opts.toolbarInline&&(l.events.disableBlur(),l.events.focus()),l.button.exec(a.findVisible(".fr-back").first()),A(a)):l.popups.isVisible(r)&&a.findVisible(".fr-dismiss").length?l.button.exec(a.findVisible(".fr-dismiss").first()):(l.popups.hide(r),l.opts.toolbarInline&&l.toolbar.showInline(null,!0),A(a)),!1):t.KEYCODE.SPACE===c&&(d.is(".fr-submit")||d.is(".fr-dismiss"))?(i.preventDefault(),i.stopPropagation(),l.events.disableBlur(),l.button.exec(d),!0):l.keys.isBrowserAction(i)||d.is("input[type=text], textarea")||t.KEYCODE.SPACE===c&&(d.is(".fr-link-attr")||d.is("input[type=file]"))?void i.stopPropagation():(i.stopPropagation(),i.preventDefault(),!1);var g=null;0<a.findVisible(".fr-submit").length?g=a.findVisible(".fr-submit").first():a.findVisible(".fr-dismiss").length&&(g=a.findVisible(".fr-dismiss").first()),g&&(i.preventDefault(),i.stopPropagation(),l.events.disableBlur(),l.button.exec(g))}},_tiMouseenter:function(){T(a.data("instance")||e)}}}(a);E(i.find(".fr-buttons")),e.events.$on(i,"mouseenter","tabIndex",l._tiMouseenter,!0),e.events.$on(i.children().not(".fr-buttons"),"keydown","[tabIndex]",l._tiKeydown,!0),e.popups.onHide(a,(function(){(i.data("instance")||e).accessibility.restoreSelection()})),e.popups.onShow(a,(function(){r=!1,setTimeout((function(){r=!0}),0)}))},registerToolbar:E,focusToolbarElement:a,focusToolbar:o,focusContent:s,focusPopup:function(t){var n=t.children().not(".fr-buttons");n.data("mouseenter-event-set")||(e.events.$on(n,"mouseenter","[tabIndex]",(function(a){var o=t.data("instance")||e;if(!r)return a.stopPropagation(),void a.preventDefault();var i=n.find(":focus").first();i.length&&!i.is("input, button, textarea, select")&&(o.events.disableBlur(),i.blur(),o.events.disableBlur(),o.events.focus())})),n.data("mouseenter-event-set",!0)),!s(n)&&e.shared.with_kb&&o(t.find(".fr-buttons"))},focusModal:function(t){e.core.hasFocus()||(e.events.disableBlur(),e.events.focus()),e.accessibility.saveSelection(),e.events.disableBlur(),e.el.blur(),e.selection.clear(),e.events.disableBlur(),e.shared.with_kb?t.find(".fr-command[tabIndex], [tabIndex]").first().focus():t.find("[tabIndex]").first().focus()},focusEditor:b,focusPopupButton:A,focusModalButton:function(e){var t=e.data("modal-button");t&&setTimeout((function(){a(t),e.data("modal-button",null)}),0)},hasFocus:function(){return null!==e.shared.$f_el},exec:function(n,r){var o=-1!==navigator.userAgent.indexOf("Mac OS X")?n.metaKey:n.ctrlKey,i=n.which,s=!1;return i!==t.KEYCODE.TAB||o||n.shiftKey||n.altKey?i!==t.KEYCODE.ARROW_RIGHT||o||n.shiftKey||n.altKey?i!==t.KEYCODE.TAB||o||!n.shiftKey||n.altKey?i!==t.KEYCODE.ARROW_LEFT||o||n.shiftKey||n.altKey?i!==t.KEYCODE.ARROW_UP||o||n.shiftKey||n.altKey?i!==t.KEYCODE.ARROW_DOWN||o||n.shiftKey||n.altKey?i!==t.KEYCODE.ENTER&&i!==t.KEYCODE.SPACE||o||n.shiftKey||n.altKey?i!==t.KEYCODE.ESC||o||n.shiftKey||n.altKey?i!==t.KEYCODE.F10||o||n.shiftKey||!n.altKey||(s=c()):s=function(t){if(e.shared.$f_el){var n=d();return n?(e.button.click(n),a(n)):t.parent().findVisible(".fr-back").length?(e.shared.with_kb=!1,e.opts.toolbarInline&&(e.events.disableBlur(),e.events.focus()),e.button.exec(t.parent().findVisible(".fr-back")).first(),A(t.parent())):e.shared.$f_el.is("button, .fr-group span")&&(t.parent().is(".fr-popup")?(e.accessibility.restoreSelection(),e.shared.$f_el=null,!1!==e.events.trigger("toolbar.esc")&&(e.popups.hide(t.parent()),e.opts.toolbarInline&&e.toolbar.showInline(null,!0),A(t.parent()))):b()),!1}}(r):s=v():s=e.shared.$f_el&&e.shared.$f_el.is(".fr-dropdown:not(.fr-active)")?v():m(!0):s=m():s=g(r):s=g(r,!0):s=h(r):s=h(r,!0),e.shared.$f_el||void 0!==s||(s=!0),!s&&e.keys.isBrowserAction(n)&&(s=!0),!!s||(n.preventDefault(),n.stopPropagation(),!1)},saveSelection:l,restoreSelection:function(){e.$el.find(".fr-marker").length&&(e.events.disableBlur(),e.selection.restore(),e.events.enableBlur())}}},Object.assign(t.DEFAULTS,{tooltips:!0}),t.MODULES.tooltip=function(e){var t=e.$;function n(){e.helpers.isMobile()||e.$tooltip&&e.$tooltip.removeClass("fr-visible").css("left","-3000px").css("position","fixed")}function r(n,r){if(!e.helpers.isMobile()&&(n.data("title")||n.data("title",n.attr("title")),n.data("title"))){e.$tooltip||e.opts.tooltips&&!e.helpers.isMobile()&&(e.shared.$tooltip?e.$tooltip=e.shared.$tooltip:(e.shared.$tooltip=t(e.doc.createElement("DIV")).addClass("fr-tooltip"),e.$tooltip=e.shared.$tooltip,e.opts.theme&&e.$tooltip.addClass("".concat(e.opts.theme,"-theme")),t(e.o_doc).find("body").first().append(e.$tooltip)),e.events.on("shared.destroy",(function(){e.$tooltip.html("").removeData().remove(),e.$tooltip=null}),!0)),n.removeAttr("title"),e.$tooltip.text(e.language.translate(n.data("title"))),e.$tooltip.addClass("fr-visible");var a=n.offset().left+(n.outerWidth()-e.$tooltip.outerWidth())/2;a<0&&(a=0),a+e.$tooltip.outerWidth()>t(e.o_win).width()&&(a=t(e.o_win).width()-e.$tooltip.outerWidth()),void 0===r&&(r=e.opts.toolbarBottom),n.offset().top-t(window).scrollTop()+n.outerHeight()+10>=t(window).height()&&(r=!0);var o=r?n.offset().top-e.$tooltip.height():n.offset().top+n.outerHeight();e.$tooltip.css("position",""),e.$tooltip.css("left",a),e.$tooltip.css("top",Math.ceil(o)),"static"!==t(e.o_doc).find("body").first().css("position")?(e.$tooltip.css("margin-left",-t(e.o_doc).find("body").first().offset().left),e.$tooltip.css("margin-top",-t(e.o_doc).find("body").first().offset().top)):(e.$tooltip.css("margin-left",""),e.$tooltip.css("margin-top",""))}}return{hide:n,to:r,bind:function(a,o,i){e.opts.tooltips&&!e.helpers.isMobile()&&(e.events.$on(a,"mouseover",o,(function(n){e.node.hasClass(n.currentTarget,"fr-disabled")||e.edit.isDisabled()||r(t(n.currentTarget),i)}),!0),e.events.$on(a,"mouseout ".concat(e._mousedown," ").concat(e._mouseup),o,(function(){n()}),!0))}}},t.TOOLBAR_VISIBLE_BUTTONS=3,t.MODULES.button=function(e){var n=e.$,r=[];(e.opts.toolbarInline||e.opts.toolbarContainer)&&(e.shared.buttons||(e.shared.buttons=[]),r=e.shared.buttons);var a=[];function o(e,t,r){for(var a=n(),o=0;o<e.length;o++){var i=n(e[o]);if(i.is(t)&&(a=a.add(i)),r&&i.is(".fr-dropdown")){var s=i.next().find(t);a=a.add(s)}}return a}function i(t,i){var s,l=n();if(!t)return l;for(s in l=(l=l.add(o(r,t,i))).add(o(a,t,i)),e.shared.popups)if(Object.prototype.hasOwnProperty.call(e.shared.popups,s)){var c=e.shared.popups[s].children().find(t);l=l.add(c)}for(s in e.shared.modals)if(Object.prototype.hasOwnProperty.call(e.shared.modals,s)){var d=e.shared.modals[s].$modal.find(t);l=l.add(d)}return l}function s(e){e.addClass("fr-blink"),setTimeout((function(){e.removeClass("fr-blink")}),500);for(var t=e.data("cmd"),n=[];void 0!==e.data("param".concat(n.length+1));)n.push(e.data("param".concat(n.length+1)));var r=i(".fr-dropdown.fr-active");r.length&&(r.removeClass("fr-active").attr("aria-expanded",!1).next().attr("aria-hidden",!0).css("overflow","").find("> .fr-dropdown-wrapper").css("height",""),r.prev(".fr-expanded").removeClass("fr-expanded"),r.parents(".fr-toolbar:not(.fr-inline)").css("zIndex","")),e.parents(".fr-popup, .fr-toolbar").data("instance").commands.exec(t,n)}function l(r){var a=r.parents(".fr-popup, .fr-toolbar").data("instance");if(0===r.parents(".fr-popup").length&&r.data("popup")&&!r.hasClass("fr-btn-active-popup")&&r.addClass("fr-btn-active-popup"),0!==r.parents(".fr-popup").length||r.data("popup")||a.popups.hideAll(),a.popups.areVisible()&&!a.popups.areVisible(a)){for(var o=0;o<t.INSTANCES.length;o++)t.INSTANCES[o]!==a&&t.INSTANCES[o].popups&&t.INSTANCES[o].popups.areVisible()&&t.INSTANCES[o].$el.find(".fr-marker").remove();a.popups.hideAll()}e.node.hasClass(r.get(0),"fr-dropdown")?function(r){var a=r.next(),o=e.node.hasClass(r.get(0),"fr-active"),s=i(".fr-dropdown.fr-active").not(r),l=r.parents(".fr-toolbar, .fr-popup").data("instance")||e;l.helpers.isIOS()&&!l.el.querySelector(".fr-marker")&&(l.selection.save(),l.selection.clear(),l.selection.restore()),a.parents(".fr-more-toolbar").addClass("fr-overflow-visible");var c=0,d=0,f=a.find("> .fr-dropdown-wrapper");if(!o){var p=r.data("cmd");a.find(".fr-command").removeClass("fr-active").attr("aria-selected",!1),t.COMMANDS[p]&&t.COMMANDS[p].refreshOnShow&&t.COMMANDS[p].refreshOnShow.apply(l,[r,a]),a.css("left",r.offset().left-r.parents(".fr-btn-wrap, .fr-toolbar, .fr-buttons").offset().left-("rtl"===e.opts.direction?a.width()-r.outerWidth():0)),a.addClass("test-height"),c=a.outerHeight(),d=e.helpers.getPX(f.css("max-height")),a.removeClass("test-height"),a.css("top","").css("bottom","");var u=r.outerHeight()/10;if(!e.opts.toolbarBottom&&a.offset().top+r.outerHeight()+c<n(e.o_doc).height())a.css("top",r.position().top+r.outerHeight()-u);else{var h=0,g=r.parents(".fr-more-toolbar");0<g.length&&(h=g.first().height()),a.css("bottom",r.parents(".fr-popup, .fr-toolbar").first().height()-h-r.position().top)}}r.addClass("fr-blink").toggleClass("fr-active"),r.hasClass("fr-options")&&r.prev().toggleClass("fr-expanded"),r.hasClass("fr-active")?(a.attr("aria-hidden",!1),r.attr("aria-expanded",!0),function(e,t,n){n<=t&&e.parent().css("overflow","auto"),e.css("height",Math.min(t,n))}(f,c,d)):(a.attr("aria-hidden",!0).css("overflow",""),r.attr("aria-expanded",!1),f.css("height","")),setTimeout((function(){r.removeClass("fr-blink")}),300),a.css("margin-left",""),a.offset().left+a.outerWidth()>e.$sc.offset().left+e.$sc.width()&&a.css("margin-left",-(a.offset().left+a.outerWidth()-e.$sc.offset().left-e.$sc.width())),a.offset().left<e.$sc.offset().left&&"rtl"===e.opts.direction&&a.css("margin-left",e.$sc.offset().left),s.removeClass("fr-active").attr("aria-expanded",!1).next().attr("aria-hidden",!0).css("overflow","").find("> .fr-dropdown-wrapper").css("height",""),s.prev(".fr-expanded").removeClass("fr-expanded"),s.parents(".fr-toolbar:not(.fr-inline)").css("zIndex",""),0!==r.parents(".fr-popup").length||e.opts.toolbarInline||(e.node.hasClass(r.get(0),"fr-active")?e.$tb.css("zIndex",(e.opts.zIndex||1)+4):e.$tb.css("zIndex",""));var m=a.find("a.fr-command.fr-active").first();e.helpers.isMobile()||(m.length?(e.accessibility.focusToolbarElement(m),f.scrollTop(Math.abs(m.parents(".fr-dropdown-content").offset().top-m.offset().top)-m.offset().top)):(e.accessibility.focusToolbarElement(r),f.scrollTop(0)))}(r):(function(e){s(e)}(r),t.COMMANDS[r.data("cmd")]&&!1!==t.COMMANDS[r.data("cmd")].refreshAfterCallback&&a.button.bulkRefresh())}function c(e){l(n(e.currentTarget))}function d(e){var t=e.find(".fr-dropdown.fr-active");t.length&&(t.removeClass("fr-active").attr("aria-expanded",!1).next().attr("aria-hidden",!0).css("overflow","").find("> .fr-dropdown-wrapper").css("height",""),t.parents(".fr-toolbar:not(.fr-inline)").css("zIndex",""),t.prev().removeClass("fr-expanded"))}function f(e){e.preventDefault(),e.stopPropagation()}function p(t){if(t.stopPropagation(),!e.helpers.isMobile())return!1}function u(t){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=2<arguments.length?arguments[2]:void 0;if(e.helpers.isMobile()&&!1===n.showOnMobile)return"";var a=n.displaySelection;"function"==typeof a&&(a=a(e));var o="";if("options"!==n.type)if(a){var i="function"==typeof n.defaultSelection?n.defaultSelection(e):n.defaultSelection;o='<span style="width:'.concat(n.displaySelectionWidth||100,'px">').concat(e.language.translate(i||n.title),"</span>")}else o=e.icon.create(n.icon||t),o+='<span class="fr-sr-only">'.concat(e.language.translate(n.title)||"","</span>");var s=n.popup?' data-popup="true"':"",l=n.modal?' data-modal="true"':"",c=e.shortcuts.get("".concat(t,"."));c=c?" (".concat(c,")"):"";var d="".concat(t,"-").concat(e.id),f="dropdown-menu-".concat(d),p='<button id="'.concat(d,'"').concat(n.more_btn?' data-group-name="'.concat(d,'" '):"",'type="button" tabIndex="-1" role="button"').concat(n.toggle?' aria-pressed="false"':"").concat("dropdown"===n.type||"options"===n.type?' aria-controls="'.concat(f,'" aria-expanded="false" aria-haspopup="true"'):"").concat(n.disabled?' aria-disabled="true"':"",' title="').concat(e.language.translate(n.title)||"").concat(c,'" class="fr-command fr-btn').concat("dropdown"===n.type||"options"==n.type?" fr-dropdown":"").concat("options"==n.type?" fr-options":"").concat("more"==n.type?" fr-more":"").concat(n.displaySelection?" fr-selection":"").concat(n.back?" fr-back":"").concat(n.disabled?" fr-disabled":"").concat(r?"":" fr-hidden",'" data-cmd="').concat(t,'"').concat(s).concat(l,">").concat(o,"</button>");if("dropdown"===n.type||"options"===n.type){var h='<div id="'.concat(f,'" class="fr-dropdown-menu" role="listbox" aria-labelledby="').concat(d,'" aria-hidden="true"><div class="fr-dropdown-wrapper" role="presentation"><div class="fr-dropdown-content" role="presentation">');h+=function(t,n){var r="";if(n.html)"function"==typeof n.html?r+=n.html.call(e):r+=n.html;else{var a=n.options;for(var o in"function"==typeof a&&(a=a()),r+='<ul class="fr-dropdown-list" role="presentation">',a)if(Object.prototype.hasOwnProperty.call(a,o)){var i=e.shortcuts.get("".concat(t,".").concat(o));i=i?'<span class="fr-shortcut">'.concat(i,"</span>"):"",r+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="'.concat("options"===n.type?t.replace(/Options/g,""):t,'" data-param1="').concat(o,'" title="').concat(a[o],'">').concat(e.language.translate(a[o]),"</a></li>")}r+="</ul>"}return r}(t,n),p+=h+="</div></div></div>"}return n.hasOptions&&n.hasOptions.apply(e)&&(p='<div class="fr-btn-wrap">'.concat(p," ").concat(u(t+"Options",Object.assign({},n,{type:"options",hasOptions:!1}),r)," </div>")),p}function h(r){var a=e.$tb&&e.$tb.data("instance")||e;if(!1===e.events.trigger("buttons.refresh"))return!0;setTimeout((function(){for(var o=a.selection.inEditor()&&a.core.hasFocus(),i=0;i<r.length;i++){var s=n(r[i]),l=s.data("cmd");0===s.parents(".fr-popup").length?o||t.COMMANDS[l]&&t.COMMANDS[l].forcedRefresh?a.button.refresh(s):e.node.hasClass(s.get(0),"fr-dropdown")||(s.removeClass("fr-active"),s.attr("aria-pressed")&&s.attr("aria-pressed",!1)):s.parents(".fr-popup").isVisible()&&a.button.refresh(s)}}),0)}function g(){h(r),h(a)}function m(){r=[],a=[]}e.shared.popup_buttons||(e.shared.popup_buttons=[]),a=e.shared.popup_buttons;var v=null;function b(){clearTimeout(v),v=setTimeout(g,50)}return{_init:function(){e.opts.toolbarInline?e.events.on("toolbar.show",g):(e.events.on("mouseup",b),e.events.on("keyup",b),e.events.on("blur",b),e.events.on("focus",b),e.events.on("contentChanged",b),e.helpers.isMobile()&&e.events.$on(e.$doc,"selectionchange",g)),e.events.on("shared.destroy",m)},build:u,buildList:function(n,r){for(var a="",o=0;o<n.length;o++){var i=n[o],s=t.COMMANDS[i];s&&void 0!==s.plugin&&e.opts.pluginsEnabled.indexOf(s.plugin)<0||(s?a+=u(i,s,void 0===r||0<=r.indexOf(i)):"|"===i?a+='<div class="fr-separator fr-vs" role="separator" aria-orientation="vertical"></div>':"-"===i&&(a+='<div class="fr-separator fr-hs" role="separator" aria-orientation="horizontal"></div>'))}return a},buildGroup:function(n){var r="",a="";for(var o in n){var i=n[o];if(i.buttons){for(var s="",l="",c=0,d="left",f=t.TOOLBAR_VISIBLE_BUTTONS,p=0;p<i.buttons.length;p++){var h=i.buttons[p],g=t.COMMANDS[h];g||("|"==h?s+='<div class="fr-separator fr-vs" role="separator" aria-orientation="vertical"></div>':"-"==h&&(s+='<div class="fr-separator fr-hs" role="separator" aria-orientation="horizontal"></div>')),!g||g&&void 0!==g.plugin&&e.opts.pluginsEnabled.indexOf(g.plugin)<0||(void 0!==n[o].align&&(d=n[o].align),void 0!==n[o].buttonsVisible&&(f=n[o].buttonsVisible),n.showMoreButtons&&f<=c?l+=u(h,g,!0):s+=u(h,g,!0),c++)}if(n.showMoreButtons&&f<c){var m=o,v=t.COMMANDS[m];v.more_btn=!0,s+=u(m,v,!0)}r+='<div class="fr-btn-grp fr-float-'.concat(d,'">').concat(s,"</div>"),n.showMoreButtons&&0<l.length&&(a+='<div class="fr-more-toolbar" data-name="'.concat(o+"-"+e.id,'">').concat(l,"</div>"))}}return e.opts.toolbarBottom?"".concat(a,'<div class="fr-newline"></div>').concat(r):"".concat(r,'<div class="fr-newline"></div>').concat(a)},bindCommands:function(o,i){e.events.bindClick(o,".fr-command:not(.fr-disabled)",c),e.events.$on(o,"".concat(e._mousedown," ").concat(e._mouseup," ").concat(e._move),".fr-dropdown-menu",f,!0),e.events.$on(o,"".concat(e._mousedown," ").concat(e._mouseup," ").concat(e._move),".fr-dropdown-menu .fr-dropdown-wrapper",p,!0);var s=o.get(0).ownerDocument,l="defaultView"in s?s.defaultView:s.parentWindow;function u(r){(!r||r.type===e._mouseup&&r.target!==n("html").get(0)||"keydown"===r.type&&(e.keys.isCharacter(r.which)&&!e.keys.ctrlKey(r)||r.which===t.KEYCODE.ESC))&&d(o)}e.events.$on(n(l),"".concat(e._mouseup," resize keydown"),u,!0),e.opts.iframe&&e.events.$on(e.$win,e._mouseup,u,!0),e.node.hasClass(o.get(0),"fr-popup")?n.merge(a,o.find(".fr-btn").toArray()):n.merge(r,o.find(".fr-btn").toArray()),e.tooltip.bind(o,".fr-btn, .fr-title",i)},refresh:function(n){var r,a=n.parents(".fr-popup, .fr-toolbar").data("instance")||e,o=n.data("cmd");e.node.hasClass(n.get(0),"fr-dropdown")?r=n.next():(n.removeClass("fr-active"),n.attr("aria-pressed")&&n.attr("aria-pressed",!1)),t.COMMANDS[o]&&t.COMMANDS[o].refresh?t.COMMANDS[o].refresh.apply(a,[n,r]):e.refresh[o]&&a.refresh[o](n,r)},bulkRefresh:g,exec:s,click:l,hideActiveDropdowns:d,addButtons:function(e){for(var t=0;t<e.length;t++)r.push(e)},getButtons:i,getPosition:function(t){var n=t.offset().left,r=e.opts.toolbarBottom?10:t.outerHeight()-10;return{left:n,top:t.offset().top+r}}}},t.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:" "},t.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"},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"},insertHR:{NAME:"minus",SVG_KEY:"horizontalLine"},clearFormatting:{NAME:"eraser",SVG_KEY:"clearFormatting"},selectAll:{NAME:"mouse-pointer",SVG_KEY:"selectAll"},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"}},t.DefineIconTemplate=function(e,n){t.ICON_TEMPLATES[e]=n},t.DefineIcon=function(e,n){t.ICONS[e]=n},Object.assign(t.DEFAULTS,{iconsTemplate:"svg"}),t.MODULES.icon=function(e){return{create:function(n){var r=null,a=t.ICONS[n];if(void 0!==a){var o=a.template||t.ICON_DEFAULT_TEMPLATE||e.opts.iconsTemplate;o&&o.apply&&(o=o.apply(e)),a.FA5NAME||(a.FA5NAME=a.NAME),"svg"!==o||a.PATH||(a.PATH=t.SVG[a.SVG_KEY]||""),o&&(o=t.ICON_TEMPLATES[o])&&(r=o.replace(/\[([a-zA-Z0-9]*)\]/g,(function(e,t){return"NAME"===t?a[t]||n:a[t]})))}return r||n},getTemplate:function(n){var r=t.ICONS[n],a=e.opts.iconsTemplate;return void 0!==r?a=r.template||t.ICON_DEFAULT_TEMPLATE||e.opts.iconsTemplate:a}}},t.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",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",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",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",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",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",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",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",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"},t.MODULES.modals=function(e){var n=e.$;e.shared.modals||(e.shared.modals={});var r,a=e.shared.modals;function o(){for(var e in a)if(Object.prototype.hasOwnProperty.call(a,e)){var t=a[e];t&&t.$modal&&t.$modal.removeData().remove()}r&&r.removeData().remove(),a={}}function i(t,o){if(a[t]){var i=a[t].$modal,s=i.data("instance")||e;s.events.enableBlur(),i.hide(),r.hide(),n(s.o_doc).find("body").first().removeClass("prevent-scroll fr-mobile"),i.removeClass("fr-active"),o||(s.accessibility.restoreSelection(),s.events.trigger("modals.hide"))}}function s(t){var n;if("string"==typeof t){if(!a[t])return;n=a[t].$modal}else n=t;return n&&e.node.hasClass(n,"fr-active")&&e.core.sameInstance(n)||!1}return{_init:function(){e.events.on("shared.destroy",o,!0)},get:function(e){return a[e]},create:function(o,s,l){if(s='<div class="fr-modal-head-line">'.concat(s,"</div>"),e.shared.$overlay||(e.shared.$overlay=n(e.doc.createElement("DIV")).addClass("fr-overlay"),n("body").first().append(e.shared.$overlay)),r=e.shared.$overlay,e.opts.theme&&r.addClass("".concat(e.opts.theme,"-theme")),!a[o]){var c=function(r,a){var o='<div tabIndex="-1" class="fr-modal'.concat(e.opts.theme?" ".concat(e.opts.theme,"-theme"):"",'"><div class="fr-modal-wrapper">'),i='<button title="'.concat(e.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(t.SVG.close,'"/></svg></button>');o+='<div class="fr-modal-head">'.concat(r).concat(i,"</div>"),o+='<div tabIndex="-1" class="fr-modal-body">'.concat(a,"</div>"),o+="</div></div>";var s=n(e.doc.createElement("DIV"));return s.html(o),s.find("> .fr-modal")}(s,l);a[o]={$modal:c,$head:c.find(".fr-modal-head"),$body:c.find(".fr-modal-body")},e.helpers.isMobile()||c.addClass("fr-desktop"),n("body").first().append(c),e.events.$on(c,"click",".fr-modal-close",(function(){i(o)}),!0),a[o].$body.css("margin-top",a[o].$head.outerHeight()),e.events.$on(c,"keydown",(function(r){var a=r.which;return a===t.KEYCODE.ESC?(i(o),e.accessibility.focusModalButton(c),!1):!(!n(r.currentTarget).is("input[type=text], textarea")&&a!==t.KEYCODE.ARROW_UP&&a!==t.KEYCODE.ARROW_DOWN&&!e.keys.isBrowserAction(r)&&(r.preventDefault(),r.stopPropagation(),1))}),!0),i(o,!0)}return a[o]},show:function(t){if(a[t]){var o=a[t].$modal;o.data("instance",e),o.show(),r.show(),n(e.o_doc).find("body").first().addClass("prevent-scroll"),e.helpers.isMobile()&&n(e.o_doc).find("body").first().addClass("fr-mobile"),o.addClass("fr-active"),e.accessibility.focusModal(o)}},hide:i,resize:function(t){if(a[t]){var n=a[t],r=n.$modal,o=n.$body,i=e.o_win.innerHeight,s=r.find(".fr-modal-wrapper"),l=i-s.outerHeight(!0)+(s.height()-(o.outerHeight(!0)-o.height())),c="auto";l<o.get(0).scrollHeight&&(c=l),o.height(c)}},isVisible:s,areVisible:function(e){for(var t in a)if(Object.prototype.hasOwnProperty.call(a,t)&&s(t)&&(void 0===e||a[t].$modal.data("instance")===e))return a[t].$modal;return!1}}},t.MODULES.position=function(e){var t=e.$;function n(){var t=e.selection.ranges(0).getBoundingClientRect();if(0===t.top&&0===t.left&&0===t.width||0===t.height){var n=!1;0===e.$el.find(".fr-marker").length&&(e.selection.save(),n=!0);var r=e.$el.find(".fr-marker").first();r.css("display","inline"),r.css("line-height","");var a=r.offset(),o=r.outerHeight();r.css("display","none"),r.css("line-height",0),(t={}).left=a&&a.left,t.width=0,t.height=o,t.top=a&&a.top-(e.helpers.isMobile()&&!e.helpers.isIOS()||e.opts.iframe?0:e.helpers.scrollTop()),t.right=1,t.bottom=1,t.ok=!0,n&&e.selection.restore()}return t}function r(t,n,r,a){var o=r.data("container");if(!o||"BODY"===o.get(0).tagName&&"static"===o.css("position")||(t&&(t-=o.offset().left),n&&(n-=o.offset().top),"BODY"!==o.get(0).tagName?(t&&(t+=o.get(0).scrollLeft),n&&(n+=o.get(0).scrollTop)):"absolute"===o.css("position")&&(t&&(t+=o.position().left),n&&(n+=o.position().top))),e.opts.iframe&&o&&e.$tb&&o.get(0)!==e.$tb.get(0)){var i=e.helpers.getPX(e.$wp.find(".fr-iframe").css("padding-top")),s=e.helpers.getPX(e.$wp.find(".fr-iframe").css("padding-left"));t&&(t+=e.$iframe.offset().left+s),n&&(n+=e.$iframe.offset().top+i)}var l=function(t,n){var r=t.outerWidth(!0);return n+r>e.$sc.get(0).clientWidth-10&&(n=e.$sc.get(0).clientWidth-r-10),n<0&&(n=10),n}(r,t);t&&r.css("left",l),n&&r.css("top",function(t,n,r){var a=t.outerHeight(!0);if(!e.helpers.isMobile()&&e.$tb&&t.parent().get(0)!==e.$tb.get(0)){var o=t.parent().offset().top,i=n-a-(r||0);t.parent().get(0)===e.$sc.get(0)&&(o-=t.parent().position().top);var s=e.$sc.get(0).clientHeight;o+n+a>e.$sc.offset().top+s&&0<t.parent().offset().top+i&&0<i?i>e.$wp.scrollTop()&&(n=i,t.addClass("fr-above")):t.removeClass("fr-above")}return n}(r,n,a))}function a(n){var r=t(n),a=r.is(".fr-sticky-on"),o=r.data("sticky-top"),i=r.data("sticky-scheduled");if(void 0===o){r.data("sticky-top",0);var s=t('<div class="fr-sticky-dummy" style="height: '.concat(r.outerHeight(),'px;"></div>'));e.$box.prepend(s)}else e.$box.find(".fr-sticky-dummy").css("height",r.outerHeight());if(e.core.hasFocus()||0<e.$tb.findVisible("input:focus").length){var l=e.helpers.scrollTop(),c=Math.min(Math.max(l-e.$tb.parent().offset().top,0),e.$tb.parent().outerHeight()-r.outerHeight());if(c!==o&&c!==i&&(clearTimeout(r.data("sticky-timeout")),r.data("sticky-scheduled",c),r.outerHeight()<l-e.$tb.parent().offset().top&&r.addClass("fr-opacity-0"),r.data("sticky-timeout",setTimeout((function(){var t=e.helpers.scrollTop(),n=Math.min(Math.max(t-e.$tb.parent().offset().top,0),e.$tb.parent().outerHeight()-r.outerHeight());0<n&&"BODY"===e.$tb.parent().get(0).tagName&&(n+=e.$tb.parent().position().top),n!==o&&(r.css("top",Math.max(n,0)),r.data("sticky-top",n),r.data("sticky-scheduled",n)),r.removeClass("fr-opacity-0")}),100))),!a){var d=e.$tb.parent(),f=d.get(0).offsetWidth-d.get(0).clientWidth;r.css("top","0"),r.width(d.width()-f),r.addClass("fr-sticky-on"),e.$box.addClass("fr-sticky-box")}}else clearTimeout(t(n).css("sticky-timeout")),r.css("top","0"),r.css("position",""),r.css("width",""),r.data("sticky-top",0),r.removeClass("fr-sticky-on"),e.$box.removeClass("fr-sticky-box")}function o(n){if(n.offsetWidth){var r=t(n),a=r.outerHeight(),o=r.data("sticky-position"),i=t("body"===e.opts.scrollableContainer?e.o_win:e.opts.scrollableContainer).outerHeight(),s=0,l=0;"body"!==e.opts.scrollableContainer&&(s=e.$sc.offset().top,l=t(e.o_win).outerHeight()-s-i);var c="body"===e.opts.scrollableContainer?e.helpers.scrollTop():s,d=r.is(".fr-sticky-on");r.data("sticky-parent")||r.data("sticky-parent",r.parent());var f=r.data("sticky-parent"),p=f.offset().top,u=f.outerHeight();if(r.data("sticky-offset")?e.$box.find(".fr-sticky-dummy").css("height","".concat(a,"px")):(r.data("sticky-offset",!0),r.after('<div class="fr-sticky-dummy" style="height: '.concat(a,'px;"></div>'))),!o){var h="auto"!==r.css("top")||"auto"!==r.css("bottom");h||r.css("position","fixed"),o={top:e.node.hasClass(r.get(0),"fr-top"),bottom:e.node.hasClass(r.get(0),"fr-bottom")},h||r.css("position",""),r.data("sticky-position",o),r.data("top",e.node.hasClass(r.get(0),"fr-top")?r.css("top"):"auto"),r.data("bottom",e.node.hasClass(r.get(0),"fr-bottom")?r.css("bottom"):"auto")}var g=e.helpers.getPX(r.data("top")),m=e.helpers.getPX(r.data("bottom")),v=o.top&&p<c+g&&c+g<=p+u-a&&(e.helpers.isInViewPort(e.$sc.get(0))||"body"===e.opts.scrollableContainer),b=o.bottom&&p+a<c+i-m&&c+i-m<p+u;if(v||b){var E=f.get(0).offsetWidth-f.get(0).clientWidth;r.css("width","".concat(f.get(0).getBoundingClientRect().width-E,"px")),d||(r.addClass("fr-sticky-on"),r.removeClass("fr-sticky-off"),r.css("top")&&("auto"!==r.data("top")?r.css("top",e.helpers.getPX(r.data("top"))+s):r.data("top","auto")),r.css("bottom")&&("auto"!==r.data("bottom")?r.css("bottom",e.helpers.getPX(r.data("bottom"))+l):r.css("bottom","auto")))}else e.node.hasClass(r.get(0),"fr-sticky-off")||(r.css("width",""),r.removeClass("fr-sticky-on"),r.addClass("fr-sticky-off"),r.css("top")&&"auto"!==r.data("top")&&o.top&&r.css("top",0),r.css("bottom")&&"auto"!==r.data("bottom")&&o.bottom&&r.css("bottom",0))}}function i(){if(e.helpers.requestAnimationFrame()(i),!1!==e.events.trigger("position.refresh"))for(var t=0;t<e._stickyElements.length;t++)a(e._stickyElements[t])}function s(){if(e._stickyElements)for(var t=0;t<e._stickyElements.length;t++)o(e._stickyElements[t])}return{_init:function(){e._stickyElements=[],e.helpers.isIOS()?(i(),e.events.$on(t(e.o_win),"scroll",(function(){if(e.core.hasFocus())for(var n=0;n<e._stickyElements.length;n++){var r=t(e._stickyElements[n]),a=r.parent(),o=e.helpers.scrollTop();r.outerHeight()<o-a.offset().top&&(r.addClass("fr-opacity-0"),r.data("sticky-top",-1),r.data("sticky-scheduled",-1))}}),!0)):("body"!==e.opts.scrollableContainer&&e.events.$on(t(e.opts.scrollableContainer),"scroll",s,!0),e.events.$on(t(e.o_win),"scroll",s,!0),e.events.$on(t(e.o_win),"resize",s,!0),e.events.on("initialized",s),e.events.on("focus",s),e.events.$on(t(e.o_win),"resize","textarea",s,!0)),e.events.on("destroy",(function(){e._stickyElements=[]}))},forSelection:function(t){var a=n();t.css({top:0,left:0});var o=a.top+a.height,i=a.left+a.width/2-t.get(0).offsetWidth/2+e.helpers.scrollLeft();e.opts.iframe||(o+=e.helpers.scrollTop()),r(i,o,t,a.height)},addSticky:function(t){t.addClass("fr-sticky"),e.helpers.isIOS()&&t.addClass("fr-sticky-ios"),t.removeClass("fr-sticky"),e._stickyElements.push(t.get(0))},refresh:s,at:r,getBoundingRect:n}},t.MODULES.refresh=function(e){var t=e.$;function n(e,t){e.toggleClass("fr-disabled",t).attr("aria-disabled",t)}function r(n){var r=e.$tb.find('.fr-more-toolbar[data-name="'.concat(n.attr("data-group-name"),'"]')),a=function(n,r){var a=0,o=r.find("> .fr-command, > .fr-btn-wrap");o.each((function(e,n){a+=t(n).outerWidth()}));var i,s=e.helpers.getPX(t(o[0]).css("margin-left")),l=e.helpers.getPX(t(o[0]).css("margin-right"));return(i="rtl"===e.opts.direction?e.$tb.outerWidth()-n.offset().left+e.$tb.offset().left-(a+n.outerWidth()+o.length*(s+l))/2:n.offset().left-e.$tb.offset().left-(a-n.outerWidth()+o.length*(s+l))/2)+a+o.length*(s+l)>e.$tb.outerWidth()&&(i-=(a+o.length*(s+l)-n.outerWidth())/2),i<0&&(i=0),i}(n,r);"rtl"===e.opts.direction?r.css("padding-right",a):r.css("padding-left",a)}return{undo:function(t){n(t,!e.undo.canDo())},redo:function(t){n(t,!e.undo.canRedo())},outdent:function(r){if(e.node.hasClass(r.get(0),"fr-no-refresh"))return!1;for(var a=e.selection.blocks(),o=0;o<a.length;o++){var i="rtl"===e.opts.direction||"rtl"===t(a[o]).css("direction")?"margin-right":"margin-left";if("LI"===a[o].tagName||"LI"===a[o].parentNode.tagName)return n(r,!1),!0;if(0<e.helpers.getPX(t(a[o]).css(i)))return n(r,!1),!0}n(r,!0)},indent:function(t){if(e.node.hasClass(t.get(0),"fr-no-refresh"))return!1;for(var r=e.selection.blocks(),a=0;a<r.length;a++){for(var o=r[a].previousSibling;o&&o.nodeType===Node.TEXT_NODE&&0===o.textContent.length;)o=o.previousSibling;if("LI"!==r[a].tagName||o)return n(t,!1),!0;n(t,!0)}},moreText:r,moreParagraph:r,moreMisc:r,moreRich:r}},Object.assign(t.DEFAULTS,{attribution:!0,toolbarBottom:!1,toolbarButtons:null,toolbarButtonsXS:null,toolbarButtonsSM:null,toolbarButtonsMD:null,toolbarContainer:null,toolbarInline:!1,toolbarSticky:!0,toolbarStickyOffset:0,toolbarVisibleWithoutSelection:!1}),t.TOOLBAR_BUTTONS={moreText:{buttons:["bold","italic","underline","strikeThrough","subscript","superscript","fontFamily","fontSize","textColor","backgroundColor","inlineClass","inlineStyle","clearFormatting"]},moreParagraph:{buttons:["alignLeft","alignCenter","formatOLSimple","alignRight","alignJustify","formatOL","formatUL","paragraphFormat","paragraphStyle","lineHeight","outdent","indent","quote"]},moreRich:{buttons:["insertLink","insertImage","insertVideo","insertTable","emoticons","fontAwesome","specialCharacters","embedly","insertFile","insertHR"]},moreMisc:{buttons:["undo","redo","fullscreen","print","getPDF","spellChecker","selectAll","html","help"],align:"right",buttonsVisible:2}},t.TOOLBAR_BUTTONS_MD=null,(t.TOOLBAR_BUTTONS_SM={}).moreText=Object.assign({},t.TOOLBAR_BUTTONS.moreText,{buttonsVisible:2}),t.TOOLBAR_BUTTONS_SM.moreParagraph=Object.assign({},t.TOOLBAR_BUTTONS.moreParagraph,{buttonsVisible:2}),t.TOOLBAR_BUTTONS_SM.moreRich=Object.assign({},t.TOOLBAR_BUTTONS.moreRich,{buttonsVisible:2}),t.TOOLBAR_BUTTONS_SM.moreMisc=Object.assign({},t.TOOLBAR_BUTTONS.moreMisc,{buttonsVisible:2}),(t.TOOLBAR_BUTTONS_XS={}).moreText=Object.assign({},t.TOOLBAR_BUTTONS.moreText,{buttonsVisible:0}),t.TOOLBAR_BUTTONS_XS.moreParagraph=Object.assign({},t.TOOLBAR_BUTTONS.moreParagraph,{buttonsVisible:0}),t.TOOLBAR_BUTTONS_XS.moreRich=Object.assign({},t.TOOLBAR_BUTTONS.moreRich,{buttonsVisible:0}),t.TOOLBAR_BUTTONS_XS.moreMisc=Object.assign({},t.TOOLBAR_BUTTONS.moreMisc,{buttonsVisible:2}),t.POWERED_BY='<a id="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>',t.MODULES.toolbar=function(n){var r,a=n.$,o=[];function i(t){var n={};if(Array.isArray(t)){if(!Array.isArray(t[0])){for(var r=[],a=[],o=0;o<t.length;o++)"|"===t[o]||"-"===t[o]?(0<a.length&&r.push(a),a=[]):a.push(t[o]);0<a.length&&r.push(a),t=r}t.forEach((function(e,t){n["group".concat(t+1)]={buttons:e}})),n.showMoreButtons=!1}else"object"!==e(t)||Array.isArray(t)||((n=t).showMoreButtons=!0);return n}function s(){var e=n.helpers.screenSize();return o[r=e]}function l(){for(var e=n.$tb.find(".fr-more-toolbar"),t="",r=0;r<e.length;r++){var o=a(e[r]);o.hasClass("fr-expanded")?function(){var e=n.helpers.getPX(o.css("padding-left")),r=o.find("> .fr-command, > .fr-btn-wrap"),i=a(r[0]),s=n.helpers.getPX(i.css("margin-left")),l=n.helpers.getPX(i.css("margin-right")),c=n.helpers.getPX(i.css("margin-top")),d=n.helpers.getPX(i.css("margin-bottom"));if(r.each((function(t,n){e+=a(n).outerWidth()+s+l})),n.$tb.outerWidth()<e){var f=Math.floor(e/n.$tb.outerWidth());e+=f*(e/o[0].childElementCount),f=Math.ceil(e/n.$tb.outerWidth());var p=(n.helpers.getPX(i.css("height"))+c+d)*f;o.css("height",p),t=p}}():o.css("height","")}n.$tb.css("padding-bottom",t)}function c(){if(r!==n.helpers.screenSize()){var e=s(),o=a(),i=a();for(var c in n.$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"),function(){for(var e=n.$tb.find(".fr-btn-grp, .fr-more-toolbar"),t=function(t){var n=a(e[t]);n.children().each((function(e,t){n.before(t)})),n.remove()},r=0;r<e.length;r++)t(r)}(),e){var d=e[c];if(d.buttons){var f=void 0,p=0,u=3,h=a('<div class="fr-btn-grp fr-float-'.concat(e[c].align?e[c].align:"left",'"></div>'));e.showMoreButtons&&(f=a('<div class="fr-more-toolbar"></div>').data("name","".concat(c,"-").concat(n.id)));for(var g=0;g<d.buttons.length;g++){void 0!==d.buttonsVisible&&(u=d.buttonsVisible);var m=n.$tb.find('> .fr-command[data-cmd="'+d.buttons[g]+'"], > div.fr-btn-wrap > .fr-command[data-cmd="'+d.buttons[g]+'"]'),v=null;n.node.hasClass(m.next().get(0),"fr-dropdown-menu")&&(v=m.next()),n.node.hasClass(m.next().get(0),"fr-options")&&(m.removeClass("fr-hidden"),m.next().removeClass("fr-hidden"),m=m.parent()),m.removeClass("fr-hidden"),e.showMoreButtons&&u<=p?(f.append(m),v&&f.append(v)):(h.append(m),v&&h.append(v)),p++}if(e.showMoreButtons&&u<p){var b=n.$tb.find('.fr-command[data-cmd="'.concat(c,'"]'));if(0<b.length)b.removeClass("fr-hidden fr-open");else{var E=c,A=t.COMMANDS[E];A.more_btn=!0,b=a(n.button.build(E,A,!0)),n.button.addButtons(b)}h.append(b)}o.push(h),e.showMoreButtons&&i.push(f)}}n.opts.toolbarBottom?(n.$tb.append(i),n.$tb.find(".fr-newline").remove(),n.$tb.append('<div class="fr-newline"></div>'),n.$tb.append(o)):(n.$tb.append(o),n.$tb.find(".fr-newline").remove(),n.$tb.append('<div class="fr-newline"></div>'),n.$tb.append(i)),n.$tb.removeClass("fr-toolbar-open"),n.$box.removeClass("fr-toolbar-open"),n.events.trigger("codeView.toggle")}l()}function d(e,r){setTimeout((function(){if((!e||e.which!=t.KEYCODE.ESC)&&n.selection.inEditor()&&n.core.hasFocus()&&!n.popups.areVisible()&&"false"!=a(n.selection.blocks()[0]).closest("table").attr("contenteditable")&&(n.opts.toolbarVisibleWithoutSelection||!n.selection.isCollapsed()&&!n.keys.isIME()||r)){if(n.$tb.data("instance",n),!1===n.events.trigger("toolbar.show",[e]))return;n.$tb.show(),n.opts.toolbarContainer||n.position.forSelection(n.$tb),1<n.opts.zIndex?n.$tb.css("z-index",n.opts.zIndex+1):n.$tb.css("z-index",null)}}),0)}function f(e){return(!e||"blur"!==e.type||document.activeElement!==n.el)&&(!(!e||"keydown"!==e.type||!n.keys.ctrlKey(e))||!!n.button.getButtons(".fr-dropdown.fr-active").next().find(n.o_doc.activeElement).length||void(!1!==n.events.trigger("toolbar.hide")&&n.$tb.hide()))}o[t.XS]=i(n.opts.toolbarButtonsXS||n.opts.toolbarButtons||t.TOOLBAR_BUTTONS_XS||t.TOOLBAR_BUTTONS||[]),o[t.SM]=i(n.opts.toolbarButtonsSM||n.opts.toolbarButtons||t.TOOLBAR_BUTTONS_SM||t.TOOLBAR_BUTTONS||[]),o[t.MD]=i(n.opts.toolbarButtonsMD||n.opts.toolbarButtons||t.TOOLBAR_BUTTONS_MD||t.TOOLBAR_BUTTONS||[]),o[t.LG]=i(n.opts.toolbarButtons||t.TOOLBAR_BUTTONS||[]);var p=null;function u(e){clearTimeout(p),e&&e.which===t.KEYCODE.ESC||(p=setTimeout(d,n.opts.typingTimer))}function h(){n.events.on("window.mousedown",f),n.events.on("keydown",f),n.events.on("blur",f),n.events.$on(n.$tb,"transitionend",".fr-more-toolbar",(function(){n.position.forSelection(n.$tb)})),n.helpers.isMobile()||n.events.on("window.mouseup",d),n.helpers.isMobile()?n.helpers.isIOS()||(n.events.on("window.touchend",d),n.browser.mozilla&&setInterval(d,200)):n.events.on("window.keyup",u),n.events.on("keydown",(function(e){e&&e.which===t.KEYCODE.ESC&&f()})),n.events.on("keydown",(function(e){if(e.which===t.KEYCODE.ALT)return e.stopPropagation(),!1}),!0),n.events.$on(n.$wp,"scroll.toolbar",d),n.events.on("commands.after",d),n.helpers.isMobile()&&(n.events.$on(n.$doc,"selectionchange",u),n.events.$on(n.$doc,"orientationchange",d))}function g(){n.$tb.html("").removeData().remove(),n.$tb=null,n.$second_tb&&(n.$second_tb.html("").removeData().remove(),n.$second_tb=null)}function m(){n.$box.removeClass("fr-top fr-bottom fr-inline fr-basic"),n.$box.find(".fr-sticky-dummy").remove()}function v(){n.opts.theme&&n.$tb.addClass("".concat(n.opts.theme,"-theme")),1<n.opts.zIndex&&n.$tb.css("z-index",n.opts.zIndex+1),"auto"!==n.opts.direction&&n.$tb.removeClass("fr-ltr fr-rtl").addClass("fr-".concat(n.opts.direction)),n.helpers.isMobile()?n.$tb.addClass("fr-mobile"):n.$tb.addClass("fr-desktop"),n.opts.toolbarContainer?(n.opts.toolbarInline&&(h(),f()),n.opts.toolbarBottom?n.$tb.addClass("fr-bottom"):n.$tb.addClass("fr-top")):n.opts.toolbarInline?(n.$sc.append(n.$tb),n.$tb.data("container",n.$sc),n.$tb.addClass("fr-inline"),h(),n.opts.toolbarBottom=!1):(n.opts.toolbarBottom&&!n.helpers.isIOS()?(n.$box.append(n.$tb),n.$tb.addClass("fr-bottom"),n.$box.addClass("fr-bottom")):(n.opts.toolbarBottom=!1,n.$box.prepend(n.$tb),n.$tb.addClass("fr-top"),n.$box.addClass("fr-top")),n.$tb.addClass("fr-basic"),n.opts.toolbarSticky&&(n.opts.toolbarStickyOffset&&(n.opts.toolbarBottom?n.$tb.css("bottom",n.opts.toolbarStickyOffset):n.$tb.css("top",n.opts.toolbarStickyOffset)),n.position.addSticky(n.$tb))),function(){var e=n.button.buildGroup(s());n.$tb.append(e),l(),n.button.bindCommands(n.$tb)}(),n.events.$on(a(n.o_win),"resize",c),n.events.$on(a(n.o_win),"orientationchange",c),n.accessibility.registerToolbar(n.$tb),n.events.$on(n.$tb,"".concat(n._mousedown," ").concat(n._mouseup),(function(e){var t=e.originalEvent?e.originalEvent.target||e.originalEvent.originalTarget:null;if(t&&"INPUT"!==t.tagName&&!n.edit.isDisabled())return e.stopPropagation(),e.preventDefault(),!1}),!0),n.helpers.isMobile()&&n.events.$on(n.$tb,"click",(function(){n.$el.focus()})),n.events.$on(n.$tb,"transitionend",".fr-more-toolbar",(function(){n.$box.hasClass("fr-fullscreen")&&(n.opts.height=n.o_win.innerHeight-(n.opts.toolbarInline?0:n.$tb.outerHeight()+(n.$second_tb?n.$second_tb.outerHeight():0)),n.size.refresh())}))}var b=!1;return{_init:function(){if(n.$sc=a(n.opts.scrollableContainer).first(),!n.$wp)return!1;n.opts.toolbarInline||n.opts.toolbarBottom||(n.$second_tb=a(n.doc.createElement("div")).attr("class","second-toolbar"),n.$box.append(n.$second_tb),(!1!==n.ul||n.opts.attribution)&&n.$second_tb.prepend(t.POWERED_BY)),n.opts.toolbarContainer?(n.shared.$tb?(n.$tb=n.shared.$tb,n.opts.toolbarInline&&h()):(n.shared.$tb=a(n.doc.createElement("DIV")),n.shared.$tb.addClass("fr-toolbar"),n.$tb=n.shared.$tb,a(n.opts.toolbarContainer).append(n.$tb),v(),n.$tb.data("instance",n)),n.opts.toolbarInline?n.$box.addClass("fr-inline"):n.$box.addClass("fr-basic"),n.events.on("focus",(function(){n.$tb.data("instance",n)}),!0),n.opts.toolbarInline=!1):n.opts.toolbarInline?(n.$box.addClass("fr-inline"),n.shared.$tb?(n.$tb=n.shared.$tb,h()):(n.shared.$tb=a(n.doc.createElement("DIV")),n.shared.$tb.addClass("fr-toolbar"),n.$tb=n.shared.$tb,v())):(n.$box.addClass("fr-basic"),n.$tb=a(n.doc.createElement("DIV")),n.$tb.addClass("fr-toolbar"),v(),n.$tb.data("instance",n)),n.events.on("destroy",m,!0),n.events.on(n.opts.toolbarInline||n.opts.toolbarContainer?"shared.destroy":"destroy",g,!0),n.events.on("edit.on",(function(){n.$tb.removeClass("fr-disabled").removeAttr("aria-disabled")})),n.events.on("edit.off",(function(){n.$tb.addClass("fr-disabled").attr("aria-disabled",!0)})),n.events.on("shortcut",(function(e,t,r){var a;if(t&&!r?a=n.$tb.find('.fr-command[data-cmd="'.concat(t,'"]')):t&&r&&(a=n.$tb.find('.fr-command[data-cmd="'.concat(t,'"][data-param1="').concat(r,'"]'))),a.length&&(e.preventDefault(),e.stopPropagation(),a.parents(".fr-toolbar").data("instance",n),"keydown"===e.type))return n.button.exec(a),!1}))},hide:f,show:function(){if(!1===n.events.trigger("toolbar.show"))return!1;n.$tb.show()},showInline:d,disable:function(){!b&&n.$tb&&(n.$tb.find(".fr-btn-grp > .fr-command, .fr-more-toolbar > .fr-command").addClass("fr-disabled fr-no-refresh").attr("aria-disabled",!0),b=!0)},enable:function(){b&&n.$tb&&(n.$tb.find(".fr-btn-grp > .fr-command, .fr-more-toolbar > .fr-command").removeClass("fr-disabled fr-no-refresh").attr("aria-disabled",!1),b=!1),n.button.bulkRefresh()},setMoreToolbarsHeight:l}};var n=["scroll","wheel","touchmove","touchstart","touchend"],r=["webkit","moz","ms","o"],a=["transitionend"],o=document.createElement("div").style,i=["Webkit","Moz","ms","O","css","style"],s={visibility:"hidden",display:"block"},l=["focus","blur","click"],c={},d=function(e,t){return{altKey:e.altKey,bubbles:e.bubbles,cancelable:e.cancelable,changedTouches:e.changedTouches,ctrlKey:e.ctrlKey,detail:e.detail,eventPhase:e.eventPhase,metaKey:e.metaKey,pageX:e.pageX,pageY:e.pageY,shiftKey:e.shiftKey,view:e.view,char:e.char,key:e.key,keyCode:e.keyCode,button:e.button,buttons:e.buttons,clientX:e.clientX,clientY:e.clientY,offsetX:e.offsetX,offsetY:e.offsetY,pointerId:e.pointerId,pointerType:e.pointerType,screenX:e.screenX,screenY:e.screenY,targetTouches:e.targetTouches,toElement:e.toElement,touches:e.touches,type:e.type,which:e.which,target:e.target,currentTarget:t,originalEvent:e,stopPropagation:function(){e.stopPropagation()},stopImmediatePropagation:function(){e.stopImmediatePropagation()},preventDefault:function(){-1===n.indexOf(e.type)&&e.preventDefault()}}},f=function(e,t){return function(n){var r=n.target;if(t)for(t=u(t);r&&r!==this;)r.matches&&r.matches(u(t))&&e.call(r,d(n,r)),r=r.parentNode;else(function(e){return e.ownerDocument&&e.ownerDocument.body.contains(e)||"#document"===e.nodeName||"HTML"===e.nodeName||e===window})(r)&&e.call(r,d(n,r))}},p=function(e,t){return new m(e,t)},u=function(e){return e&&"string"==typeof e?e.replace(/^\s*>/g,":scope >").replace(/,\s*>/g,", :scope >"):e},h=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},g=p;p.fn=p.prototype={constructor:p,length:0,contains:function(e){if(!e)return!1;if(Array.isArray(e)){for(var t=0;t<e.length;t++)if(this.contains(e[t])&&this!=e[t])return!0;return!1}for(var n=0;n<this.length;n++)for(var r=e;r;){if(r==this[n]||r[0]&&r[0].isEqualNode(this[n]))return!0;r=r.parentNode}return!1},findVisible:function(e){for(var t=this.find(e),n=t.length-1;0<=n;n--)g(t[n]).isVisible()||t.splice(n,1);return t},formatParams:function(e){return"".concat(Object.keys(e).map((function(t){return"".concat(t,"=").concat(encodeURIComponent(e[t]))})).join("&"))||""},ajax:function(e){var t=new XMLHttpRequest,n=this.formatParams(e.data);for(var r in"GET"===e.method.toUpperCase()&&(e.url=n?e.url+"?"+n:e.url),t.open(e.method,e.url,!0),e.withCredentials&&(t.withCredentials=!0),e.crossDomain&&t.setRequestHeader("Access-Control-Allow-Origin","*"),e.headers)Object.prototype.hasOwnProperty.call(e.headers,r)&&t.setRequestHeader(r,e.headers[r]);Object.prototype.hasOwnProperty.call(e.headers,"Content-Type")||("json"===e.dataType?t.setRequestHeader("Content-Type","application/json"):t.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8")),t.onload=function(){if(200==t.status){var n=t.responseText;"json"===e.dataType&&(n=JSON.parse(n)),e.done(n,t.status,t)}else e.fail(t)},t.send(n)},prevAll:function(){var e=g();if(!this[0])return e;for(var t=this[0];t&&t.previousSibling;)t=t.previousSibling,e.push(t);return e},index:function(e){return e?"string"==typeof e?[].indexOf.call(g(e),this[0]):[].indexOf.call(this,e.length?e[0]:e):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)},toArray:function(){return[].slice.call(this)},get:function(e){return null==e?[].slice.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=p.merge(this.constructor(),e);return t.prevObject=this,t},wrapAll:function(e){var t;return this[0]&&(h(e)&&(e=e.call(this[0])),t=p(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){if("string"==typeof e){for(var t=e.split(" "),n=0;n<t.length&&0===t[n].trim().length;)n++;if(n<t.length&&(g(e).length&&t[n].trim()===g(e)[0].tagName&&(e=document.createElement(t[n].trim())),n++),"string"!=typeof e)for(var r=g(e);n<t.length;n++){t[n]=t[n].trim();var a=t[n].split("=");r.attr(a[0],a[1].replace('"',""))}}for(;!this[0].firstChild&&this[0].firstChild!==e;)e.appendChild(this[0].firstChild)},wrap:function(e){var t=h(e);return this.each((function(n){g(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(){return this.parent().each((function(){this.nodeName&&this.nodeName.toLowerCase()===name.toLowerCase()||p(this).replaceWith(this.childNodes)}))},grep:function(e,t,n){for(var r=[],a=0,o=e.length,i=!n;a<o;a++)!t(e[a],a)!==i&&r.push(e[a]);return r},map:function(e){return this.pushStack(p.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack([].slice.apply(this,arguments))},each:function(e){if(this.length)for(var t=0;t<this.length&&!1!==e.call(this[t],t,this[t]);t++);return this},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},empty:function(){for(var e=0;e<this.length;e++)this[e].innerHTML=""},contents:function(){for(var e=g(),t=0;t<this.length;t++)for(var n=this[t].childNodes,r=0;r<n.length;r++)e.push(n[r]);return e},attr:function(t,n){if("object"===e(t)){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&null!==t[r]&&this.attr(r,t[r]);return this}if(void 0===n)return 0===this.length||!this[0].getAttribute&&"checked"!==t?void 0:"checked"===t?this[0].checked:"tagName"===t?this[0].tagName:this[0].getAttribute(t);if("checked"===t)for(var a=0;a<this.length;a++)this[a].checked=n;else if("tagName"===t)for(var o=0;o<this.length;o++)this[o].tagName=n;else for(var i=0;i<this.length;i++)this[i].setAttribute(t,n);return this},removeAttr:function(e){for(var t=0;t<this.length;t++)this[t].removeAttribute&&this[t].removeAttribute(e);return this},hide:function(){return this.css("display","none"),this},show:function(){return this.css("display","block"),this},focus:function(){return this.length&&this[0].focus(),this},blur:function(){return this.length&&this[0].blur(),this},data:function(t,n){if(void 0!==n){for(var r=0;r<this.length;r++)"object"!==e(this[r]["data-"+t]=n)&&"function"!=typeof n&&this[r].setAttribute&&this[r].setAttribute("data-"+t,n);return this}if(void 0!==n)return this.attr("data-"+t,n);if(0!==this.length)for(var a=0;a<this.length;a++){var o=this[a]["data-"+t];if(null==o&&this[a].getAttribute&&(o=this[a].getAttribute("data-"+t)),void 0!==o&&null!=o)return o}},removeData:function(e){for(var t=0;t<this.length;t++)this[t].removeAttribute&&this[t].removeAttribute("data-"+e),this[t]["data-"+e]=null;return this},getCorrectStyleName:function(e){if(!c[e]){var t;e in o&&(t=e);for(var n=e[0].toUpperCase()+e.slice(1),r=i.length;r--;)(e=i[r]+n)in o&&(t=e);c[e]=t}return c[e]},css:function(e,t){if(void 0!==t){if(0===this.length)return this;("string"!=typeof t||""===t.trim()||isNaN(t))&&"number"!=typeof t||!/(margin)|(padding)|(height)|(width)|(top)|(left)|(right)|(bottom)/gi.test(e)||/(line-height)/gi.test(e)||(t+="px");for(var n=0;n<this.length;n++)e=g(this).getCorrectStyleName(e),this[n].style[e]=t;return this}if("string"==typeof e){if(0===this.length)return;var r=this[0].ownerDocument||document,a=r.defaultView||r.parentWindow;return e=g(this).getCorrectStyleName(e),a.getComputedStyle(this[0])[e]}for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&this.css(o,e[o]);return this},toggleClass:function(e,t){if(1<e.split(" ").length){for(var n=e.split(" "),r=0;r<n.length;r++)this.toggleClass(n[r],t);return this}for(var a=0;a<this.length;a++)void 0===t?this[a].classList.contains(e)?this[a].classList.remove(e):this[a].classList.add(e):t?this[a].classList.contains(e)||this[a].classList.add(e):this[a].classList.contains(e)&&this[a].classList.remove(e);return this},addClass:function(e){if(0===e.length)return this;if(1<e.split(" ").length){for(var t=e.split(" "),n=0;n<t.length;n++)this.addClass(t[n]);return this}for(var r=0;r<this.length;r++)this[r].classList.add(e);return this},removeClass:function(e){if(1<e.split(" ").length){for(var t=e.split(" "),n=0;n<t.length;n++)t[n]=t[n].trim(),t[n].length&&this.removeClass(t[n]);return this}for(var r=0;r<this.length;r++)e.length&&this[r].classList.remove(e);return this},getClass:function(e){return e.getAttribute&&e.getAttribute("class")||""},stripAndCollapse:function(e){return(e.match(/[^\x20\t\r\n\f]+/g)||[]).join(" ")},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&-1<(" "+g(this).stripAndCollapse(g(this).getClass(n))+" ").indexOf(t))return!0;return!1},scrollTop:function(e){if(void 0===e)return 0===this.length?void 0:this[0]===document?document.documentElement.scrollTop:this[0].scrollTop;for(var t=0;t<this.length;t++)this[t]===document?window.scrollTo(document.documentElement.scrollLeft,e):this[t].scrollTop=e},scrollLeft:function(e){if(void 0===e)return 0===this.length?void 0:this[0]===document?document.documentElement.scrollLeft:this[0].scrollLeft;for(var t=0;t<this.length;t++)this[t]===document?window.scrollTo(e,document.documentElement.scrollTop):this[t].scrollLeft=e},on:function(e,t,o){if(1<e.split(" ").length){for(var i=e.split(" "),s=0;s<i.length;s++)if(-1!==a.indexOf(e))for(var l=0;l<r.length;l++)this.on(r[l]+e[0].toUpperCase()+e.slice(1),t,o);else this.on(i[s],t,o);return this}o="function"==typeof t?f(t,null):f(o,t);for(var c=0;c<this.length;c++){var d=g(this[c]);d.data("events")||d.data("events",[]),d.data("events").push([e,o]);var p=e.split(".");p=p[0],0<=n.indexOf(p)?d.get(0).addEventListener(p,o,{passive:!0}):d.get(0).addEventListener(p,o)}},off:function(e){if(1<e.split(" ").length){for(var t=e.split(" "),n=0;n<t.length;n++)this.off(t[n]);return this}for(var r=0;r<this.length;r++){var a=g(this[r]);if(a.data("events")){var o=e.split(".");o=o[0];for(var i=a.data("events")||[],s=i.length-1;0<=s;s--){var l=i[s];l[0]==e&&(a.get(0).removeEventListener(o,l[1]),i.splice(s,1))}}}},trigger:function(e){for(var t=0;t<this.length;t++){var n=void 0;"function"==typeof Event?n=0<=e.search(/^mouse/g)?new MouseEvent(e,{view:window,cancelable:!0,bubbles:!0}):new Event(e):0<=e.search(/^mouse/g)?(n=document.createEvent("MouseEvents")).initMouseEvent(e,!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null):(n=document.createEvent("Event")).initEvent(e,!0,!0),0<=l.indexOf(e)&&"function"==typeof this[t][e]?this[t][e]():this[t].dispatchEvent(n)}},triggerHandler:function(){},val:function(e){if(void 0===e)return this[0].value;for(var t=0;t<this.length;t++)this[t].value=e;return this},siblings:function(){return g(this[0]).parent().children().not(this)},find:function(t){var n=g();if("string"!=typeof t){for(var r=0;r<t.length;r++)for(var a=0;a<this.length;a++)if(this[a]!==t[r]&&g(this[a]).contains(t[r])){n.push(t[r]);break}return n}var o=function(t){return"object"===("undefined"==typeof HTMLElement?"undefined":e(HTMLElement))?t instanceof HTMLElement:t&&"object"===e(t)&&null!==t&&1===t.nodeType&&"string"==typeof t.nodeName};t=u(t);for(var i=0;i<this.length;i++)if(this[i].querySelectorAll){var s=[];t&&"string"==typeof t?s=this[i].querySelectorAll(t):o(t)&&(s=[t]);for(var l=0;l<s.length;l++)n.push(s[l])}return n},children:function(){for(var e=g(),t=0;t<this.length;t++)for(var n=this[t].children,r=0;r<n.length;r++)e.push(n[r]);return e},not:function(e){if("string"==typeof e)for(var t=this.length-1;0<=t;t--)this[t].matches(e)&&this.splice(t,1);else if(e instanceof p){for(var n=this.length-1;0<=n;n--)for(var r=0;r<e.length;r++)if(this[n]===e[r]){this.splice(n,1);break}}else for(var a=this.length-1;0<=a;a--)this[a]===e[0]&&this.splice(a,1);return this},add:function(e){for(var t=0;t<e.length;t++)this.push(e[t]);return this},closest:function(e){for(var t=0;t<this.length;t++){var n=this[t].closest&&this[t].closest(e);if(n)return g(n)}return g()},html:function(e){if(void 0===e)return 0===this.length?void 0:this[0].innerHTML;if("string"==typeof e)for(var t=0;t<this.length;t++){this[t].innerHTML=e;for(var n=this[t].children,r=this[t].ownerDocument||document,a=0;a<n.length;a++)if("SCRIPT"===n[a].tagName){var o=r.createElement("script");o.innerHTML=n[a].innerHTML,r.head.appendChild(o).parentNode.removeChild(o)}}else{this[0].innerHTML="",this.append(e[0]);var i=this[0].ownerDocument||document;if("SCRIPT"===e[0].tagName){var s=i.createElement("script");s.innerHTML=e[0].innerHTML,i.head.appendChild(s).parentNode.removeChild(s)}}return this},text:function(e){if(!e)return this.length?this[0].textContent:"";for(var t=0;t<this.length;t++)this[t].textContent=e},after:function(e){if(e)if("string"==typeof e)for(var t=0;t<this.length;t++){var n=this[t];if(n.nodeType!=Node.ELEMENT_NODE){var r=n.ownerDocument.createElement("SPAN");g(n).after(r),g(r).after(e).remove()}else n.insertAdjacentHTML("afterend",e)}else{var a=this[0];if(a.nextSibling)if(e instanceof p)for(var o=0;o<e.length;o++)a.nextSibling.parentNode.insertBefore(e[o],a.nextSibling);else a.nextSibling.parentNode.insertBefore(e,a.nextSibling);else g(a.parentNode).append(e)}return this},clone:function(e){for(var t=g(),n=0;n<this.length;n++)t.push(this[n].cloneNode(e));return t},replaceWith:function(e){if("string"==typeof e)for(var t=0;t<this.length;t++)this[t].parentNode&&(this[t].outerHTML=e);else if(e.length)for(var n=0;n<this.length;n++)this.replaceWith(e[n]);else this.after(e).remove()},insertBefore:function(e){return g(e).before(this[0]),this},before:function(e){if(e instanceof p){for(var t=0;t<e.length;t++)this.before(e[t]);return this}if(e)if("string"==typeof e)for(var n=0;n<this.length;n++){var r=this[n];if(r.nodeType!=Node.ELEMENT_NODE){var a=r.ownerDocument.createElement("SPAN");g(r).before(a),g(a).before(e).remove()}else r.parentNode&&r.insertAdjacentHTML("beforebegin",e)}else{var o=this[0];if(o.parentNode)if(e instanceof p)for(var i=0;i<e.length;i++)o.parentNode.insertBefore(e[i],o);else o.parentNode.insertBefore(e,o)}return this},append:function(e){if(0==this.length)return this;if("string"==typeof e)for(var t=0;t<this.length;t++){var n=this[t],r=n.ownerDocument.createElement("SPAN");g(n).append(r),g(r).after(e).remove()}else if(e instanceof p||Array.isArray(e))for(var a=0;a<e.length;a++)this.append(e[a]);else"function"!=typeof e&&this[0].appendChild(e);return this},prepend:function(e){if(0==this.length)return this;if("string"==typeof e)for(var t=0;t<this.length;t++){var n=this[t],r=n.ownerDocument.createElement("SPAN");g(n).prepend(r),g(r).before(e).remove()}else if(e instanceof p)for(var a=0;a<e.length;a++)this.prepend(e[a]);else{var o=this[0];o.firstChild?o.firstChild?o.insertBefore(e,o.firstChild):o.appendChild(e):g(o).append(e)}return this},remove:function(){for(var e=0;e<this.length;e++)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this},prev:function(){return this.length&&this[0].previousElementSibling?g(this[0].previousElementSibling):g()},next:function(){return this.length&&this[0].nextElementSibling?g(this[0].nextElementSibling):g()},nextAllVisible:function(){return this.next()},prevAllVisible:function(){return this.prev()},outerHeight:function(e){if(0!==this.length){var t=this[0];if(t===t.window)return t.innerHeight;var n={},r=this.isVisible();if(!r)for(var a in s)n[a]=t.style[a],t.style[a]=s[a];var o=t.offsetHeight;if(e&&(o+=parseInt(g(t).css("marginTop"))+parseInt(g(t).css("marginBottom"))),!r)for(var i in s)t.style[i]=n[i];return o}},outerWidth:function(e){if(0!==this.length){var t=this[0];if(t===t.window)return t.outerWidth;var n={},r=this.isVisible();if(!r)for(var a in s)n[a]=t.style[a],t.style[a]=s[a];var o=t.offsetWidth;if(e&&(o+=parseInt(g(t).css("marginLeft"))+parseInt(g(t).css("marginRight"))),!r)for(var i in s)t.style[i]=n[i];return o}},width:function(e){if(void 0===e)return this[0]instanceof HTMLDocument?this[0].body.offsetWidth:this[0].offsetWidth;this[0].style.width=e+"px"},height:function(e){var t=this[0];if(void 0===e){if(t instanceof HTMLDocument){var n=t.documentElement;return Math.max(t.body.scrollHeight,n.scrollHeight,t.body.offsetHeight,n.offsetHeight,n.clientHeight)}return t.offsetHeight}t.style.height=e+"px"},is:function(e){return 0!==this.length&&("string"==typeof e&&this[0].matches?this[0].matches(e):e instanceof p?this[0]==e[0]:this[0]==e)},parent:function(){return 0===this.length?g():g(this[0].parentNode)},parents:function(e){for(var t=g(),n=0;n<this.length;n++)for(var r=this[n].parentNode;r&&r!=document&&r.matches;)e?r.matches(e)&&t.push(r):t.push(r),r=r.parentNode;return t},parentsUntil:function(e,t){var n=g();e instanceof p&&0<e.length&&(e=e[0]);for(var r=0;r<this.length;r++)for(var a=this[r].parentNode;a&&a!=document&&a.matches&&a!=e&&this[r]!=e&&("string"!=typeof e||!a.matches(e));)t?a.matches(t)&&n.push(a):n.push(a),a=a.parentNode;return n},insertAfter:function(e){var t=e.parent()[0];t&&t.insertBefore(this[0],e[0].nextElementSibling)},filter:function(e){var t=g();if("function"==typeof e)for(var n=0;n<this.length;n++)e.call(this[n],this[n])&&t.push(this[n]);else if("string"==typeof e)for(var r=0;r<this.length;r++)this[r].matches(e)&&t.push(this[r]);return t},offset:function(){var e=this[0].getBoundingClientRect(),t=this[0].ownerDocument.defaultView;return{top:e.top+t.pageYOffset,left:e.left+t.pageXOffset}},position:function(){return{left:this[0].offsetLeft,top:this[0].offsetTop}},push:[].push,splice:[].splice},p.extend=function(e){e=e||{};for(var t=1;t<arguments.length;t++)if(arguments[t])for(var n in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],n)&&(e[n]=arguments[t][n]);return e},p.merge=function(e,t){for(var n=+t.length,r=0,a=e.length;r<n;r++)e[a++]=t[r];return e.length=a,e},p.map=function(e,t,n){var r,a,o=0,i=[];if(Array.isArray(e))for(r=e.length;o<r;o++)null!=(a=t(e[o],o,n))&&i.push(a);else for(o in e)null!=(a=t(e[o],o,n))&&i.push(a);return[].concat.apply([],i)};var m=function(e,t){if(!e)return this;if("string"==typeof e&&"<"===e[0]){var n=document.createElement("DIV");return n.innerHTML=e,g(n.firstElementChild)}if(t=t instanceof p?t[0]:t,"string"!=typeof e)return e instanceof p?e:(this[0]=e,this.length=1,this);e=u(e);for(var r=(t||document).querySelectorAll(e),a=0;a<r.length;a++)this[a]=r[a];return this.length=r.length,this};m.prototype=p.prototype;var v=t;function b(){this.doc=this.$el.get(0).ownerDocument,this.win="defaultView"in this.doc?this.doc.defaultView:this.doc.parentWindow,this.$doc=p(this.doc),this.$win=p(this.win),this.opts.pluginsEnabled||(this.opts.pluginsEnabled=Object.keys(v.PLUGINS)),this.opts.initOnClick?(this.load(v.MODULES),this.$el.on("touchstart.init",(function(){p(this).data("touched",!0)})),this.$el.on("touchmove.init",(function(){p(this).removeData("touched")})),this.$el.on("mousedown.init touchend.init dragenter.init focus.init",function(e){if("touchend"===e.type&&!this.$el.data("touched"))return!0;if(1===e.which||!e.which){this.$el.off("mousedown.init touchstart.init touchmove.init touchend.init dragenter.init focus.init"),this.load(v.MODULES),this.load(v.PLUGINS);var t=e.originalEvent&&e.originalEvent.originalTarget;if(t&&"IMG"===t.tagName&&p(t).trigger("mousedown"),void 0===this.ul&&this.destroy(),"touchend"===e.type&&this.image&&e.originalEvent&&e.originalEvent.target&&p(e.originalEvent.target).is("img")){var n=this;setTimeout((function(){n.image.edit(p(e.originalEvent.target))}),100)}this.ready=!0,this.events.trigger("initialized")}}.bind(this)),this.events.trigger("initializationDelayed")):(this.load(v.MODULES),this.load(v.PLUGINS),p(this.o_win).scrollTop(this.c_scroll),void 0===this.ul&&this.destroy(),this.ready=!0,this.events.trigger("initialized"))}return v.Bootstrap=function(t,n,r){this.id=++v.ID,this.$=p;var a={};"function"==typeof n&&(r=n,n={}),r&&(n.events||(n.events={}),n.events.initialized=r),n&&n.documentReady&&(a.toolbarButtons=[["fullscreen","undo","redo","getPDF","print"],["bold","italic","underline","textColor","backgroundColor","clearFormatting"],["alignLeft","alignCenter","alignRight","alignJustify"],["formatOL","formatUL","indent","outdent"],["paragraphFormat"],["fontFamily"],["fontSize"],["insertLink","insertImage","quote"]],a.paragraphFormatSelection=!0,a.fontFamilySelection=!0,a.fontSizeSelection=!0,a.placeholderText="",a.quickInsertEnabled=!1,a.charCounterCount=!1),this.opts=Object.assign({},Object.assign({},v.DEFAULTS,a,"object"===e(n)&&n));var o=JSON.stringify(this.opts);v.OPTS_MAPPING[o]=v.OPTS_MAPPING[o]||this.id,this.sid=v.OPTS_MAPPING[o],v.SHARED[this.sid]=v.SHARED[this.sid]||{},this.shared=v.SHARED[this.sid],this.shared.count=(this.shared.count||0)+1,this.$oel=p(t),this.$oel.data("froala.editor",this),this.o_doc=t.ownerDocument,this.o_win="defaultView"in this.o_doc?this.o_doc.defaultView:this.o_doc.parentWindow,this.c_scroll=p(this.o_win).scrollTop(),this._init()},v.Bootstrap.prototype._init=function(){var e=this.$oel.get(0).tagName;this.$oel.closest("label").length;var t=function(){"TEXTAREA"!==e&&(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=p('<iframe src="about:blank" frameBorder="0">'),this.$wp=p("<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=p(this.iframe_document.querySelector("body")),this.el=this.$el.get(0),this.$head=p(this.iframe_document.querySelector("head")),this.$html=p(this.iframe_document.querySelector("html"))):(this.$el=p(this.o_doc.createElement("DIV")),this.el=this.$el.get(0),this.$wp=p(this.o_doc.createElement("DIV")).append(this.$el),this.$box.html(this.$wp)),setTimeout(b.bind(this),0)}.bind(this),n=function(){this.$box=p("<div>"),this.$oel.before(this.$box).hide(),this._original_html=this.$oel.val();var e=this;this.$oel.parents("form").on("submit.".concat(this.id),(function(){e.events.trigger("form.submit")})),this.$oel.parents("form").on("reset.".concat(this.id),(function(){e.events.trigger("form.reset")})),t()}.bind(this),r=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(b.bind(this),0)}.bind(this),a=function(){this.$el=this.$oel,this.el=this.$el.get(0),this.opts.toolbarInline=!1,setTimeout(b.bind(this),0)}.bind(this),o=function(){this.$el=this.$oel,this.el=this.$el.get(0),this.opts.toolbarInline=!1,this.$oel.on("click.popup",(function(e){e.preventDefault()})),setTimeout(b.bind(this),0)}.bind(this);this.opts.editInPopup?o():"TEXTAREA"===e?n():"A"===e?r():"IMG"===e?a():"BUTTON"===e||"INPUT"===e?(this.opts.editInPopup=!0,this.opts.toolbarInline=!1,o()):t()},v.Bootstrap.prototype.load=function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)){if(this[t])continue;if(v.PLUGINS[t]&&this.opts.pluginsEnabled.indexOf(t)<0)continue;if(this[t]=new e[t](this),this[t]._init&&(this[t]._init(),this.opts.initOnClick&&"core"===t))return!1}},v.Bootstrap.prototype.destroy=function(){this.destrying=!0,this.shared.count--,this.events&&this.events.$off();var e=this.html&&this.html.get();if(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)),0===this.shared.count){for(var t in this.shared)Object.prototype.hasOwnProperty.call(this.shared,t)&&(this.shared[t]=null,v.SHARED[this.sid][t]=null);delete v.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(e),v.INSTANCES.splice(v.INSTANCES.indexOf(this),1)},t}()},46117:function(e,t,n){!function(e){"use strict";(e=e&&e.hasOwnProperty("default")?e.default:e).LANGUAGE.zh_cn={translation:{"Type something":"输入内容",Bold:"粗体",Italic:"斜体",Underline:"下划线",Strikethrough:"删除线",Insert:"插入",Delete:"删除",Cancel:"取消",OK:"确定",Back:"后退",Remove:"删除",More:"更多",Update:"更新",Style:"样式","Font Family":"字体","Font Size":"字号",Colors:"颜色",Background:"背景",Text:"字体","HEX Color":"十六进制颜色","Paragraph Format":"段落格式",Normal:"正文",Code:"代码","Heading 1":"标题1","Heading 2":"标题2","Heading 3":"标题3","Heading 4":"标题4","Paragraph Style":"段落样式","Inline Style":"内联样式",Align:"对齐方式","Align Left":"左对齐","Align Center":"居中","Align Right":"右对齐","Align Justify":"两端对齐",None:"无","Ordered List":"编号","Unordered List":"项目符号","Decrease Indent":"减少缩进量","Increase Indent":"增加缩进量","Insert Link":"插入超链接","Open in new tab":"在新标签页中打开","Open Link":"打开超链接","Edit Link":"编辑超链接",Unlink:"删除超链接","Choose Link":"选择超链接","Insert Image":"插入图片","Upload Image":"上传图片","By URL":"通过 URL",Browse:"浏览","Drop image":"拖入图片","or click":"或点击","Manage Images":"管理图片",Loading:"加载中",Deleting:"删除中",Tags:"标签","Are you sure? Image will be deleted.":"图片将会被删除,是否确认?",Replace:"替换",Uploading:"上传中","Loading image":"图片加载中",Display:"显示",Inline:"嵌入型","Break Text":"上下型环绕","Alternative Text":"替换文字","Change Size":"改变大小",Width:"宽度",Height:"高度","Something went wrong. Please try again.":"发生错误,请重试。","Image Caption":"图片标题","Advanced Edit":"高级编辑","Insert Video":"插入视频","Embedded Code":"嵌入代码","Paste in a video URL":"粘贴视频网址","Drop video":"拖入视频","Your browser does not support HTML5 video.":"您的浏览器不支持 HTML5 视频。","Upload Video":"上传视频","Insert Table":"插入表格","Table Header":"表头","Remove Table":"删除表格","Table Style":"表格样式","Horizontal Align":"水平对齐方式",Row:"行","Insert row above":"在上方插入","Insert row below":"在下方插入","Delete row":"删除行",Column:"列","Insert column before":"在左侧插入","Insert column after":"在右侧插入","Delete column":"删除列",Cell:"单元格","Merge cells":"合并单元格","Horizontal split":"水平分割","Vertical split":"垂直分割","Cell Background":"单元格背景","Vertical Align":"垂直对齐方式",Top:"靠上",Middle:"居中",Bottom:"靠下","Align Top":"靠上对齐","Align Middle":"居中对齐","Align Bottom":"靠下对齐","Cell Style":"单元格样式","Upload File":"上传文件","Drop file":"拖入文件",Emoticons:"表情符号","Grinning face":"露齿笑脸","Grinning face with smiling eyes":"露齿笑到眯起眼","Face with tears of joy":"笑哭","Smiling face with open mouth":"张嘴微笑","Smiling face with open mouth and smiling eyes":"眯眼张嘴微笑","Smiling face with open mouth and cold sweat":"带冷汗的张嘴微笑","Smiling face with open mouth and tightly-closed eyes":"紧闭双眼张嘴微笑","Smiling face with halo":"带光环微笑","Smiling face with horns":"带牛角的微笑","Winking face":"眨眼","Smiling face with smiling eyes":"眯眼微笑","Face savoring delicious food":"馋","Relieved face":"如释重负","Smiling face with heart-shaped eyes":"桃心眼微笑","Smiling face with sunglasses":"戴太阳镜微笑","Smirking face":"得意地笑","Neutral face":"中性脸","Expressionless face":"面无表情","Unamused face":"不高兴","Face with cold sweat":"冷汗","Pensive face":"沉思","Confused face":"迷惑","Confounded face":"困惑","Kissing face":"嘴巴嘟嘟","Face throwing a kiss":"飞吻","Kissing face with smiling eyes":"眯眼接吻","Kissing face with closed eyes":"闭眼接吻","Face with stuck out tongue":"吐舌","Face with stuck out tongue and winking eye":"眨眼吐舌","Face with stuck out tongue and tightly-closed eyes":"眯眼吐舌","Disappointed face":"失望","Worried face":"担心","Angry face":"生气","Pouting face":"撅嘴","Crying face":"大哭","Persevering face":"坚强","Face with look of triumph":"扬眉吐气","Disappointed but relieved face":"失望","Frowning face with open mouth":"皱眉","Anguished face":"痛苦","Fearful face":"害怕","Weary face":"疲惫","Sleepy face":"困了","Tired face":"累了","Grimacing face":"扭曲脸","Loudly crying face":"大哭","Face with open mouth":"张开嘴","Hushed face":"安静","Face with open mouth and cold sweat":"冷汗","Face screaming in fear":"害怕尖叫","Astonished face":"惊讶","Flushed face":"脸红","Sleeping face":"熟睡","Dizzy face":"眩晕","Face without mouth":"没有嘴的脸","Face with medical mask":"口罩脸",Break:"换行",Subscript:"下标",Superscript:"上标",Fullscreen:"全屏","Insert Horizontal Line":"插入水平线","Clear Formatting":"清除格式",Save:"保存",Undo:"撤消",Redo:"恢复","Select All":"全选","Code View":"代码视图",Quote:"引用",Increase:"增加引用级别",Decrease:"减少引用级别","Quick Insert":"快速插入","Special Characters":"特殊字符",Latin:"拉丁字母",Greek:"希腊字母",Cyrillic:"西里尔字母",Punctuation:"标点",Currency:"货币",Arrows:"箭头",Math:"数学",Misc:"杂项",Print:"打印","Spell Checker":"拼写检查器",Help:"帮助",Shortcuts:"快捷键","Inline Editor":"内联编辑器","Show the editor":"显示编辑器","Common actions":"常用操作",Copy:"复制",Cut:"剪切",Paste:"粘贴","Basic Formatting":"基本格式","Increase quote level":"增加引用级别","Decrease quote level":"减少引用级别","Image / Video":"图像/视频","Resize larger":"放大","Resize smaller":"缩小",Table:"表格","Select table cell":"选择单元格","Extend selection one cell":"增加选中的单元格","Extend selection one row":"增加选中的行",Navigation:"导航","Focus popup / toolbar":"焦点弹出/工具栏","Return focus to previous position":"将焦点返回到上一个位置","Embed URL":"嵌入网址","Paste in a URL to embed":"粘贴要嵌入的网址","The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?":"粘贴的内容来自微软 Word 文档。你想保留还是清除格式?",Keep:"保留",Clean:"清除","Word Paste Detected":"检测到粘贴自 Word 的内容",Characters:"字数统计","More Text":" 更多文字","More Paragraph":"更多段落","More Rich":"更多丰富","More Misc":"更多杂项"},direction:"ltr"}}(n(80214))},65614:function(e,t,n){!function(e){"use strict";(e=e&&e.hasOwnProperty("default")?e.default:e).PLUGINS.align=function(e){var t=e.$;return{apply:function(n){var r=e.selection.element();if(t(r).parents(".fr-img-caption").length)t(r).css("text-align",n);else{e.selection.save(),e.html.wrap(!0,!0,!0,!0),e.selection.restore();for(var a=e.selection.blocks(),o=0;o<a.length;o++)t(a[o]).css("text-align",n).removeClass("fr-temp-div"),""===t(a[o]).attr("class")&&t(a[o]).removeAttr("class"),""===t(a[o]).attr("style")&&t(a[o]).removeAttr("style");e.selection.save(),e.html.unwrap(),e.selection.restore()}},refresh:function(n){var r=e.selection.blocks();if(r.length){var a=e.helpers.getAlignment(t(r[0]));n.find("> *").first().replaceWith(e.icon.create("align-".concat(a)))}},refreshOnShow:function(n,r){var a=e.selection.blocks();if(a.length){var o=e.helpers.getAlignment(t(a[0]));r.find('a.fr-command[data-param1="'.concat(o,'"]')).addClass("fr-active").attr("aria-selected",!0)}},refreshForToolbar:function(n){var r=e.selection.blocks();if(r.length){var a=e.helpers.getAlignment(t(r[0]));a=a.charAt(0).toUpperCase()+a.slice(1),"align".concat(a)===n.attr("data-cmd")&&n.addClass("fr-active")}}}},e.DefineIcon("align",{NAME:"align-left",SVG_KEY:"alignLeft"}),e.DefineIcon("align-left",{NAME:"align-left",SVG_KEY:"alignLeft"}),e.DefineIcon("align-right",{NAME:"align-right",SVG_KEY:"alignRight"}),e.DefineIcon("align-center",{NAME:"align-center",SVG_KEY:"alignCenter"}),e.DefineIcon("align-justify",{NAME:"align-justify",SVG_KEY:"alignJustify"}),e.RegisterCommand("align",{type:"dropdown",title:"Align",options:{left:"Align Left",center:"Align Center",right:"Align Right",justify:"Align Justify"},html:function(){var t='<ul class="fr-dropdown-list" role="presentation">',n=e.COMMANDS.align.options;for(var r in n)n.hasOwnProperty(r)&&(t+='<li role="presentation"><a class="fr-command fr-title" tabIndex="-1" role="option" data-cmd="align"data-param1="\n '.concat(r,'" title="').concat(this.language.translate(n[r]),'">').concat(this.icon.create("align-".concat(r)),'<span class="fr-sr-only">\n ').concat(this.language.translate(n[r]),"</span></a></li>"));return t+"</ul>"},callback:function(e,t){this.align.apply(t)},refresh:function(e){this.align.refresh(e)},refreshOnShow:function(e,t){this.align.refreshOnShow(e,t)},plugin:"align"}),e.RegisterCommand("alignLeft",{type:"button",icon:"align-left",title:"Align Left",callback:function(){this.align.apply("left")},refresh:function(e){this.align.refreshForToolbar(e)},plugin:"align"}),e.RegisterCommand("alignRight",{type:"button",icon:"align-right",title:"Align Right",callback:function(){this.align.apply("right")},refresh:function(e){this.align.refreshForToolbar(e)},plugin:"align"}),e.RegisterCommand("alignCenter",{type:"button",icon:"align-center",title:"Align Center",callback:function(){this.align.apply("center")},refresh:function(e){this.align.refreshForToolbar(e)},plugin:"align"}),e.RegisterCommand("alignJustify",{type:"button",icon:"align-justify",title:"Align Justify",callback:function(){this.align.apply("justify")},refresh:function(e){this.align.refreshForToolbar(e)},plugin:"align"})}(n(80214))},21571:function(e,t,n){!function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e,Object.assign(e.DEFAULTS,{charCounterMax:-1,charCounterCount:!0}),e.PLUGINS.charCounter=function(t){var n,r=t.$,a=function(){return(t.el.textContent||"").replace(/\u200B/g,"").length};function o(n){if(t.opts.charCounterMax<0)return!0;if(a()<t.opts.charCounterMax)return!0;var r=n.which;return!(!t.keys.ctrlKey(n)&&t.keys.isCharacter(r)||r===e.KEYCODE.IME)||(n.preventDefault(),n.stopPropagation(),t.events.trigger("charCounter.exceeded"),!1)}function i(e){return t.opts.charCounterMax<0||r("<div>").html(e).text().length+a()<=t.opts.charCounterMax?e:(t.events.trigger("charCounter.exceeded"),"")}function s(){if(t.opts.charCounterCount){var e=a()+(0<t.opts.charCounterMax?"/"+t.opts.charCounterMax:"");n.text("".concat(t.language.translate("Characters")," : ").concat(e)),t.opts.toolbarBottom&&n.css("margin-bottom",t.$tb.outerHeight(!0));var r=t.$wp.get(0).offsetWidth-t.$wp.get(0).clientWidth;0<=r&&("rtl"==t.opts.direction?n.css("margin-left",r):n.css("margin-right",r))}}return{_init:function(){return!!t.$wp&&!!t.opts.charCounterCount&&((n=r(document.createElement("span")).attr("class","fr-counter")).css("bottom",t.$wp.css("border-bottom-width")),t.$second_tb&&t.$second_tb.append(n),t.events.on("keydown",o,!0),t.events.on("paste.afterCleanup",i),t.events.on("keyup contentChanged input",(function(){t.events.trigger("charCounter.update")})),t.events.on("charCounter.update",s),t.events.trigger("charCounter.update"),void t.events.on("destroy",(function(){r(t.o_win).off("resize.char".concat(t.id)),n.removeData().remove(),n=null})))},count:a}}}(n(80214))},2929:function(e,t,n){!function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e,Object.assign(e.DEFAULTS,{codeMirror:window.CodeMirror,codeMirrorOptions:{lineNumbers:!0,tabMode:"indent",indentWithTabs:!0,lineWrapping:!0,mode:"text/html",tabSize:2},codeBeautifierOptions:{end_with_newline:!0,indent_inner_html:!0,extra_liners:["p","h1","h2","h3","h4","h5","h6","blockquote","pre","ul","ol","table","dl"],brace_style:"expand",indent_char:"\t",indent_size:1,wrap_line_length:0},codeViewKeepActiveButtons:["fullscreen"]}),e.PLUGINS.codeView=function(e){var t,n,r=e.$,a=function(){return e.$box.hasClass("fr-code-view")};function o(){return n?n.getValue():t.val()}function i(){a()&&(n&&n.setSize(null,e.opts.height?e.opts.height:"auto"),e.opts.heightMin||e.opts.height?(e.$box.find(".CodeMirror-scroll, .CodeMirror-gutters").css("min-height",e.opts.heightMin||e.opts.height),t.css("height",e.opts.height)):e.$box.find(".CodeMirror-scroll, .CodeMirror-gutters").css("min-height",""))}var s,l=!1;function c(){a()&&e.events.trigger("blur")}function d(){a()&&l&&e.events.trigger("focus")}function f(u){void 0===u&&(u=!a());var h=e.$tb.find('.fr-command[data-cmd="html"]');u?(e.popups.hideAll(),function(u){t||(function(){t=r('<textarea class="fr-code" tabIndex="-1">'),e.$wp.append(t),t.attr("dir",e.opts.direction),e.$box.hasClass("fr-basic")||(s=r('<a data-cmd="html" title="Code View" class="fr-command fr-btn html-switch'.concat(e.helpers.isMobile()?"":" fr-desktop",'" role="button" tabIndex="-1"><i class="fa fa-code"></i></button>')),e.$box.append(s),e.events.bindClick(e.$box,"a.html-switch",(function(){e.events.trigger("commands.before",["html"]),f(!1),e.events.trigger("commands.after",["html"])})));var n=function(){return!a()};e.events.on("buttons.refresh",n),e.events.on("copy",n,!0),e.events.on("cut",n,!0),e.events.on("paste",n,!0),e.events.on("destroy",p,!0),e.events.on("html.set",(function(){a()&&f(!0)})),e.events.on("codeView.update",i),e.events.on("codeView.toggle",(function(){e.$box.hasClass("fr-code-view")&&f()})),e.events.on("form.submit",(function(){a()&&(e.html.set(o()),e.events.trigger("contentChanged",[],!0))}),!0)}(),!n&&e.opts.codeMirror?((n=e.opts.codeMirror.fromTextArea(t.get(0),e.opts.codeMirrorOptions)).on("blur",c),n.on("focus",d)):(e.events.$on(t,"keydown keyup change input",(function(){e.opts.height?this.removeAttribute("rows"):(this.rows=1,0===this.value.length?this.style.height="auto":this.style.height="".concat(this.scrollHeight,"px"))})),e.events.$on(t,"blur",c),e.events.$on(t,"focus",d))),e.undo.saveStep(),e.html.cleanEmptyTags(),e.html.cleanWhiteTags(!0),e.core.hasFocus()&&(e.core.isEmpty()||(e.selection.save(),e.$el.find('.fr-marker[data-type="true"]').first().replaceWith('<span class="fr-tmp fr-sm">F</span>'),e.$el.find('.fr-marker[data-type="false"]').last().replaceWith('<span class="fr-tmp fr-em">F</span>')));var h=e.html.get(!1,!0);e.$el.find("span.fr-tmp").remove(),e.$box.toggleClass("fr-code-view",!0);var g,m,v=!1;if(e.core.hasFocus()&&(v=!0,e.events.disableBlur(),e.$el.blur()),h=(h=h.replace(/<span class="fr-tmp fr-sm">F<\/span>/,"FROALA-SM")).replace(/<span class="fr-tmp fr-em">F<\/span>/,"FROALA-EM"),e.codeBeautifier&&!h.includes("fr-embedly")&&(h=e.codeBeautifier.run(h,e.opts.codeBeautifierOptions)),n){g=h.indexOf("FROALA-SM"),(m=h.indexOf("FROALA-EM"))<g?g=m:m-=9;var b=(h=h.replace(/FROALA-SM/g,"").replace(/FROALA-EM/g,"")).substring(0,g).length-h.substring(0,g).replace(/\n/g,"").length,E=h.substring(0,m).length-h.substring(0,m).replace(/\n/g,"").length;g=h.substring(0,g).length-h.substring(0,h.substring(0,g).lastIndexOf("\n")+1).length,m=h.substring(0,m).length-h.substring(0,h.substring(0,m).lastIndexOf("\n")+1).length,n.setSize(null,e.opts.height?e.opts.height:"auto"),e.opts.heightMin&&e.$box.find(".CodeMirror-scroll").css("min-height",e.opts.heightMin),n.setValue(h),l=!v,n.focus(),l=!0,n.setSelection({line:b,ch:g},{line:E,ch:m}),n.refresh(),n.clearHistory()}else{g=h.indexOf("FROALA-SM"),m=h.indexOf("FROALA-EM")-9,e.opts.heightMin&&t.css("min-height",e.opts.heightMin),e.opts.height&&t.css("height",e.opts.height),e.opts.heightMax&&t.css("max-height",e.opts.height||e.opts.heightMax),t.val(h.replace(/FROALA-SM/g,"").replace(/FROALA-EM/g,"")).trigger("change");var A=r(e.o_doc).scrollTop();l=!v,t.focus(),l=!0,t.get(0).setSelectionRange(g,m),r(e.o_doc).scrollTop(A)}e.$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").not(u).filter((function(){return e.opts.codeViewKeepActiveButtons.indexOf(r(this).data("cmd"))<0})).addClass("fr-disabled").attr("aria-disabled",!0),u.addClass("fr-active").attr("aria-pressed",!0),!e.helpers.isMobile()&&e.opts.toolbarInline&&e.toolbar.hide()}(h)):(e.$box.toggleClass("fr-code-view",!1),function(t){var n=o();e.html.set(n),e.$el.blur(),e.$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").not(t).removeClass("fr-disabled").attr("aria-disabled",!1),t.removeClass("fr-active").attr("aria-pressed",!1),e.selection.setAtStart(e.el),e.selection.restore(),e.placeholder.refresh(),e.undo.saveStep()}(h),e.events.trigger("codeView.update"))}function p(){a()&&f(!1),n&&n.toTextArea(),t.val("").removeData().remove(),t=null,s&&(s.remove(),s=null)}return{_init:function(){if(e.events.on("focus",(function(){e.opts.toolbarContainer&&function(){var t=e.$tb.find('.fr-command[data-cmd="html"]');a()?(e.$tb.find(".fr-btn-grp > .fr-command, .fr-more-toolbar > .fr-command").not(t).filter((function(){return e.opts.codeViewKeepActiveButtons.indexOf(r(this).data("cmd"))<0})).addClass("fr-disabled").attr("aria-disabled",!1),t.addClass("fr-active").attr("aria-pressed",!1)):(e.$tb.find(".fr-btn-grp > .fr-command, .fr-more-toolbar > .fr-command").not(t).removeClass("fr-disabled").attr("aria-disabled",!1),t.removeClass("fr-active").attr("aria-pressed",!1))}()})),!e.$wp)return!1},toggle:f,isActive:a,get:o}},e.RegisterCommand("html",{title:"Code View",undo:!1,focus:!1,forcedRefresh:!0,toggle:!0,callback:function(){this.codeView.toggle()},plugin:"codeView"}),e.DefineIcon("html",{NAME:"code",SVG_KEY:"codeView"})}(n(80214))},5814:function(e,t,n){!function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e,Object.assign(e.POPUP_TEMPLATES,{"textColor.picker":"[_BUTTONS_][_TEXT_COLORS_][_CUSTOM_COLOR_]","backgroundColor.picker":"[_BUTTONS_][_BACKGROUND_COLORS_][_CUSTOM_COLOR_]"}),Object.assign(e.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"],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"],colorsStep:7,colorsHEXInput:!0,colorsButtons:["colorsBack","|","-"]}),e.PLUGINS.colors=function(t){var n=t.$,r='<div class="fr-color-hex-layer fr-active fr-layer" id="fr-color-hex-layer- \n '.concat(t.id,'"><div class="fr-input-line"><input maxlength="7" id="[ID]"\n type="text" placeholder="').concat(t.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(t.language.translate("OK"),"</button></div></div>");function a(e){for(var n="text"===e?t.opts.colorsText:t.opts.colorsBackground,r='<div class="fr-color-set fr-'.concat(e,'-color fr-selected-set">'),a=0;a<n.length;a++)0!==a&&a%t.opts.colorsStep==0&&(r+="<br>"),"REMOVE"!==n[a]?r+='<span class="fr-command fr-select-color" style="background:'.concat(n[a],';" \n tabIndex="-1" aria-selected="false" role="button" data-cmd="apply').concat(e,'Color" \n data-param1="').concat(n[a],'"><span class="fr-sr-only"> ').concat(t.language.translate("Color")).concat(n[a]," \n </span></span>"):r+='<span class="fr-command fr-select-color" data-cmd="apply'.concat(e,'Color"\n tabIndex="-1" role="button" data-param1="REMOVE" \n title="').concat(t.language.translate("Clear Formatting"),'">').concat(t.icon.create("remove"),' \n <span class="fr-sr-only"> ').concat(t.language.translate("Clear Formatting")," </span></span>");return"".concat(r,"</div>")}function o(e){"REMOVE"!==e?t.format.applyStyle("background-color",t.helpers.HEXtoRGB(e)):t.format.removeStyle("background-color"),t.popups.hide("backgroundColor.picker")}function i(e){"REMOVE"!==e?t.format.applyStyle("color",t.helpers.HEXtoRGB(e)):t.format.removeStyle("color"),t.popups.hide("textColor.picker")}return{showColorsPopup:function(o){var i=t.$tb.find('.fr-command[data-cmd="'.concat(o,'"]')),s=t.popups.get("".concat(o,".picker"));if(s||(s=function(o){var i="";t.opts.toolbarInline&&0<t.opts.colorsButtons.length&&(i+='<div class="fr-buttons fr-colors-buttons fr-tabs">\n '.concat(t.button.buildList(t.opts.colorsButtons),"\n </div>"));var s,l="";s="textColor"===o?(t.opts.colorsHEXInput&&(l=r.replace(/\[ID\]/g,"fr-color-hex-layer-text-".concat(t.id)).replace(/\[COMMAND\]/g,"customTextColor")),{buttons:i,text_colors:a("text"),custom_color:l}):(t.opts.colorsHEXInput&&(l=r.replace(/\[ID\]/g,"fr-color-hex-layer-background-".concat(t.id)).replace(/\[COMMAND\]/g,"customBackgroundColor")),{buttons:i,background_colors:a("background"),custom_color:l});var c,d,f=t.popups.create("".concat(o,".picker"),s);return c=f,d="".concat(o,".picker"),t.events.on("popup.tab",(function(r){var a=n(r.currentTarget);if(!t.popups.isVisible(d)||!a.is("span"))return!0;var o=r.which,i=!0;if(e.KEYCODE.TAB===o){var s=c.find(".fr-buttons");i=!t.accessibility.focusToolbar(s,!!r.shiftKey)}else if(e.KEYCODE.ARROW_UP===o||e.KEYCODE.ARROW_DOWN===o||e.KEYCODE.ARROW_LEFT===o||e.KEYCODE.ARROW_RIGHT===o){if(a.is("span.fr-select-color")){var l=a.parent().find("span.fr-select-color"),f=l.index(a),p=t.opts.colorsStep,u=Math.floor(l.length/p),h=f%p,g=Math.floor(f/p)*p+h,m=u*p;e.KEYCODE.ARROW_UP===o?g=((g-p)%m+m)%m:e.KEYCODE.ARROW_DOWN===o?g=(g+p)%m:e.KEYCODE.ARROW_LEFT===o?g=((g-1)%m+m)%m:e.KEYCODE.ARROW_RIGHT===o&&(g=(g+1)%m);var v=n(l.get(g));t.events.disableBlur(),v.focus(),i=!1}}else e.KEYCODE.ENTER===o&&(t.button.exec(a),i=!1);return!1===i&&(r.preventDefault(),r.stopPropagation()),i}),!0),f}(o)),!s.hasClass("fr-active"))if(t.popups.setContainer("".concat(o,".picker"),t.$tb),function(e){var r,a=t.popups.get("".concat(e,"Color.picker")),o=n(t.selection.element());r="background"===e?"background-color":"color";var i=a.find(".fr-".concat(e,"-color .fr-select-color"));for(i.find(".fr-selected-color").remove(),i.removeClass("fr-active-item"),i.not('[data-param1="REMOVE"]').attr("aria-selected",!1);o.get(0)!==t.el;){if("transparent"!==o.css(r)&&"rgba(0, 0, 0, 0)"!==o.css(r)){var s=a.find(".fr-".concat(e,'-color .fr-select-color[data-param1="').concat(t.helpers.RGBToHex(o.css(r)),'"]'));s.append('<span class="fr-selected-color" aria-hidden="true"></span>'),s.addClass("fr-active-item").attr("aria-selected",!0);break}o=o.parent()}!function(e){var r=t.popups.get("".concat(e,"Color.picker")),a=r.find(".fr-".concat(e,"-color .fr-active-item")).attr("data-param1"),o=r.find(".fr-color-hex-layer input");a||(a=""),o.length&&n(o.val(a).input).trigger("change")}(e)}("textColor"===o?"text":"background"),i.isVisible()){var l=t.button.getPosition(i),c=l.left,d=l.top;t.popups.show("".concat(o,".picker"),c,d,i.outerHeight())}else t.position.forSelection(s),t.popups.show("".concat(o,".picker"))},background:o,customColor:function(e){var n=t.popups.get("".concat(e,"Color.picker")).find(".fr-color-hex-layer input");if(n.length){var r=n.val();"background"===e?o(r):i(r)}},text:i,back:function(){t.popups.hide("textColor.picker"),t.popups.hide("backgroundColor.picker"),t.toolbar.showInline()}}},e.DefineIcon("textColor",{NAME:"tint",SVG_KEY:"textColor"}),e.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")}}),e.RegisterCommand("applytextColor",{undo:!0,callback:function(e,t){this.colors.text(t)}}),e.RegisterCommand("customTextColor",{title:"OK",undo:!0,callback:function(){this.colors.customColor("text")}}),e.DefineIcon("backgroundColor",{NAME:"paint-brush",SVG_KEY:"backgroundColor"}),e.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")}}),e.RegisterCommand("applybackgroundColor",{undo:!0,callback:function(e,t){this.colors.background(t)}}),e.RegisterCommand("customBackgroundColor",{title:"OK",undo:!0,callback:function(){this.colors.customColor("background")}}),e.DefineIcon("colorsBack",{NAME:"arrow-left",SVG_KEY:"back"}),e.RegisterCommand("colorsBack",{title:"Back",undo:!1,focus:!1,back:!0,refreshAfterCallback:!1,callback:function(){this.colors.back()}}),e.DefineIcon("remove",{NAME:"eraser",SVG_KEY:"remove"})}(n(80214))},26899:function(e,t,n){!function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e,Object.assign(e.DEFAULTS,{dragInline:!0}),e.PLUGINS.draggable=function(t){var n=t.$;function r(e){return!(!e.originalEvent||!e.originalEvent.target||e.originalEvent.target.nodeType!==Node.TEXT_NODE)||(e.target&&"A"===e.target.tagName&&1===e.target.childNodes.length&&"IMG"===e.target.childNodes[0].tagName&&(e.target=e.target.childNodes[0]),n(e.target).hasClass("fr-draggable")?(t.undo.canDo()||t.undo.saveStep(),t.opts.dragInline?t.$el.attr("contenteditable",!0):t.$el.attr("contenteditable",!1),t.opts.toolbarInline&&t.toolbar.hide(),n(e.target).addClass("fr-dragging"),t.browser.msie||t.browser.edge||t.selection.clear(),void e.originalEvent.dataTransfer.setData("text","Froala")):(e.preventDefault(),!1))}var a,o=function(e){return!(e&&("HTML"===e.tagName||"BODY"===e.tagName||t.node.isElement(e)))};function i(e,n,r){if(t.opts.iframe){var o=t.helpers.getPX(t.$wp.find(".fr-iframe").css("padding-top")),i=t.helpers.getPX(t.$wp.find(".fr-iframe").css("padding-left"));e+=t.$iframe.offset().top+o,n+=t.$iframe.offset().left+i}a.offset().top!==e&&a.css("top",e),a.offset().left!==n&&a.css("left",n),a.width()!==r&&a.css("width",r)}function s(r){r.originalEvent.dataTransfer.dropEffect="move",t.opts.dragInline?(!function(){for(var t=null,n=0;n<e.INSTANCES.length;n++)if((t=e.INSTANCES[n].$el.find(".fr-dragging")).length)return t.get(0)}()||t.browser.msie||t.browser.edge)&&r.preventDefault():(r.preventDefault(),function(r){var s=t.doc.elementFromPoint(r.originalEvent.pageX-t.win.pageXOffset,r.originalEvent.pageY-t.win.pageYOffset);if(!o(s)){for(var l=0,c=s;!o(c)&&c===s&&0<r.originalEvent.pageY-t.win.pageYOffset-l;)l++,c=t.doc.elementFromPoint(r.originalEvent.pageX-t.win.pageXOffset,r.originalEvent.pageY-t.win.pageYOffset-l);(!o(c)||a&&0===t.$el.find(c).length&&c!==a.get(0))&&(c=null);for(var d=0,f=s;!o(f)&&f===s&&r.originalEvent.pageY-t.win.pageYOffset+d<n(t.doc).height();)d++,f=t.doc.elementFromPoint(r.originalEvent.pageX-t.win.pageXOffset,r.originalEvent.pageY-t.win.pageYOffset+d);(!o(f)||a&&0===t.$el.find(f).length&&f!==a.get(0))&&(f=null),s=null===f&&c?c:f&&null===c?f:f&&c?l<d?c:f:null}if(n(s).hasClass("fr-drag-helper"))return!1;if(s&&!t.node.isBlock(s)&&(s=t.node.blockParent(s)),s&&0<=["TD","TH","TR","THEAD","TBODY"].indexOf(s.tagName)&&(s=n(s).parents("table").get(0)),s&&0<=["LI"].indexOf(s.tagName)&&(s=n(s).parents("UL, OL").get(0)),s&&!n(s).hasClass("fr-drag-helper")){var p;a||(e.$draggable_helper||(e.$draggable_helper=n(document.createElement("div")).attr("class","fr-drag-helper")),a=e.$draggable_helper,t.events.on("shared.destroy",(function(){a.html("").removeData().remove(),a=null}),!0)),p=r.originalEvent.pageY<n(s).offset().top+n(s).outerHeight()/2;var u=n(s),h=0;p||0!==u.next().length?(p||(u=u.next()),"before"===a.data("fr-position")&&u.is(a.data("fr-tag"))||(0<u.prev().length&&(h=parseFloat(u.prev().css("margin-bottom"))||0),h=Math.max(h,parseFloat(u.css("margin-top"))||0),i(u.offset().top-h/2-t.$box.offset().top,u.offset().left-t.win.pageXOffset-t.$box.offset().left,u.width()),a.data("fr-position","before"))):"after"===a.data("fr-position")&&u.is(a.data("fr-tag"))||(h=parseFloat(u.css("margin-bottom"))||0,i(u.offset().top+n(s).height()+h/2-t.$box.offset().top,u.offset().left-t.win.pageXOffset-t.$box.offset().left,u.width()),a.data("fr-position","after")),a.data("fr-tag",u),a.addClass("fr-visible"),t.$box.append(a)}else a&&0<t.$box.find(a).length&&a.removeClass("fr-visible")}(r))}function l(e){e.originalEvent.dataTransfer.dropEffect="move",t.opts.dragInline||e.preventDefault()}function c(e){t.$el.attr("contenteditable",!0);var n=t.$el.find(".fr-dragging");a&&a.hasClass("fr-visible")&&t.$box.find(a).length?d(e):n.length&&(e.preventDefault(),e.stopPropagation()),a&&t.$box.find(a).length&&a.removeClass("fr-visible"),n.removeClass("fr-dragging")}function d(r){var o,i;t.$el.attr("contenteditable",!0);for(var s=0;s<e.INSTANCES.length;s++)if((o=e.INSTANCES[s].$el.find(".fr-dragging")).length){i=e.INSTANCES[s];break}if(o.length){if(r.preventDefault(),r.stopPropagation(),a&&a.hasClass("fr-visible")&&t.$box.find(a).length)a.data("fr-tag")[a.data("fr-position")]('<span class="fr-marker"></span>'),a.removeClass("fr-visible");else if(!1===t.markers.insertAtPoint(r.originalEvent))return!1;if(o.removeClass("fr-dragging"),!1===(o=t.events.chainTrigger("element.beforeDrop",o)))return!1;var l=o;if(o.parent().is("A")&&1===o.parent().get(0).childNodes.length&&(l=o.parent()),t.core.isEmpty()?t.events.focus():(t.$el.find(".fr-marker").replaceWith(e.MARKERS),t.selection.restore()),i===t||t.undo.canDo()||t.undo.saveStep(),t.core.isEmpty())t.$el.html(l);else{var c=t.markers.insert();0===l.find(c).length?n(c).replaceWith(l):0===o.find(c).length&&n(c).replaceWith(o),o.after(e.MARKERS),t.selection.restore()}return t.popups.hideAll(),t.selection.save(),t.$el.find(t.html.emptyBlockTagsQuery()).not("TD, TH, LI, .fr-inner").not(t.opts.htmlAllowedEmptyTags.join(",")).remove(),t.html.wrap(),t.html.fillEmptyBlocks(),t.selection.restore(),t.undo.saveStep(),t.opts.iframe&&t.size.syncIframe(),i!==t&&(i.popups.hideAll(),i.$el.find(i.html.emptyBlockTagsQuery()).not("TD, TH, LI, .fr-inner").remove(),i.html.wrap(),i.html.fillEmptyBlocks(),i.undo.saveStep(),i.events.trigger("element.dropped"),i.opts.iframe&&i.size.syncIframe()),t.events.trigger("element.dropped",[l]),!1}a&&a.removeClass("fr-visible"),t.undo.canDo()||t.undo.saveStep(),setTimeout((function(){t.undo.saveStep()}),0)}function f(e){if(e&&"DIV"===e.tagName&&t.node.hasClass(e,"fr-drag-helper"))e.parentNode.removeChild(e);else if(e&&e.nodeType===Node.ELEMENT_NODE)for(var n=e.querySelectorAll("div.fr-drag-helper"),r=0;r<n.length;r++)n[r].parentNode.removeChild(n[r])}return{_init:function(){t.opts.enter===e.ENTER_BR&&(t.opts.dragInline=!0),t.events.on("dragstart",r,!0),t.events.on("dragover",s,!0),t.events.on("dragenter",l,!0),t.events.on("document.dragend",c,!0),t.events.on("document.drop",c,!0),t.events.on("drop",d,!0),t.events.on("html.processGet",f)}}}}(n(80214))},79787:function(e,t,n){!function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e,Object.assign(e.DEFAULTS,{entities:""'¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿŒœŠšŸƒˆ˜ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩαβγδεζηθικλμνξοπρςστυφχψωϑϒϖ   ‌‍‎‏–—‘’‚“”„†‡•…‰′″‹›‾⁄€ℑ℘ℜ™ℵ←↑→↓↔↵⇐⇑⇒⇓⇔∀∂∃∅∇∈∉∋∏∑−∗√∝∞∠∧∨∩∪∫∴∼≅≈≠≡≤≥⊂⊃⊄⊆⊇⊕⊗⊥⋅⌈⌉⌊⌋⟨⟩◊♠♣♥♦"}),e.PLUGINS.entities=function(e){var t,n,r=e.$;function a(e){var r=e.textContent;if(r.match(t)){for(var a="",o=0;o<r.length;o++)n[r[o]]?a+=n[r[o]]:a+=r[o];e.textContent=a}}function o(t){if(t&&0<=["STYLE","SCRIPT","svg","IFRAME"].indexOf(t.tagName))return!0;for(var n=e.node.contents(t),r=0;r<n.length;r++)n[r].nodeType===Node.TEXT_NODE?a(n[r]):o(n[r]);return t.nodeType===Node.TEXT_NODE&&a(t),!1}var i=function(t){return 0===t.length?"":e.clean.exec(t,o).replace(/\&/g,"&")};return{_init:function(){e.opts.htmlSimpleAmpersand||(e.opts.entities="".concat(e.opts.entities,"&"));var a=r(document.createElement("div")).html(e.opts.entities).text(),o=e.opts.entities.split(";");n={},t="";for(var s=0;s<a.length;s++){var l=a.charAt(s);n[l]="".concat(o[s],";"),t+="\\".concat(l+(s<a.length-1?"|":""))}t=new RegExp("(".concat(t,")"),"g"),e.events.on("html.get",i,!0)}}}}(n(80214))},62584:function(e,t,n){!function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e,Object.assign(e.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"}),e.PLUGINS.fontFamily=function(e){var t=e.$;function n(e){var n=e.replace(/(sans-serif|serif|monospace|cursive|fantasy)/gi,"").replace(/"|'| /g,"").split(",");return t(this).grep(n,(function(e){return 0<e.length}))}function r(e,t){for(var n=0;n<e.length;n++)for(var r=0;r<t.length;r++)if(e[n].toLowerCase()===t[r].toLowerCase())return[n,r];return null}function a(){var a=n(t(e.selection.element()).css("font-family")),o=[];for(var i in e.opts.fontFamily)if(e.opts.fontFamily.hasOwnProperty(i)){var s=r(a,n(i));s&&o.push([i,s])}return 0===o.length?null:(o.sort((function(e,t){var n=e[1][0]-t[1][0];return 0===n?e[1][1]-t[1][1]:n})),o[0][0])}return{apply:function(t){e.format.applyStyle("font-family",t)},refreshOnShow:function(e,t){t.find(".fr-command.fr-active").removeClass("fr-active").attr("aria-selected",!1),t.find('.fr-command[data-param1="'.concat(a(),'"]')).addClass("fr-active").attr("aria-selected",!0)},refresh:function(n){if(e.opts.fontFamilySelection){var r=t(e.selection.element()).css("font-family").replace(/(sans-serif|serif|monospace|cursive|fantasy)/gi,"").replace(/"|'|/g,"").split(",");n.find("> span").text(e.opts.fontFamily[a()]||r[0]||e.language.translate(e.opts.fontFamilyDefaultSelection))}}}},e.RegisterCommand("fontFamily",{type:"dropdown",displaySelection:function(e){return e.opts.fontFamilySelection},defaultSelection:function(e){return e.opts.fontFamilyDefaultSelection},displaySelectionWidth:120,html:function(){var e='<ul class="fr-dropdown-list" role="presentation">',t=this.opts.fontFamily;for(var n in t)t.hasOwnProperty(n)&&(e+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="fontFamily" data-param1="'.concat(n,'" \n style="font-family: ').concat(n,'" title="').concat(t[n],'">').concat(t[n],"</a></li>"));return e+"</ul>"},title:"Font Family",callback:function(e,t){this.fontFamily.apply(t)},refresh:function(e){this.fontFamily.refresh(e)},refreshOnShow:function(e,t){this.fontFamily.refreshOnShow(e,t)},plugin:"fontFamily"}),e.DefineIcon("fontFamily",{NAME:"font",SVG_KEY:"fontFamily"})}(n(80214))},22133:function(e,t,n){!function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e,Object.assign(e.DEFAULTS,{fontSize:["8","9","10","11","12","14","18","24","30","36","48","60","72","96"],fontSizeSelection:!1,fontSizeDefaultSelection:"12",fontSizeUnit:"px"}),e.PLUGINS.fontSize=function(e){var t=e.$;return{apply:function(t){e.format.applyStyle("font-size",t)},refreshOnShow:function(n,r){var a=t(e.selection.element()).css("font-size");"pt"===e.opts.fontSizeUnit&&(a="".concat(Math.round(72*parseFloat(a,10)/96),"pt")),r.find(".fr-command.fr-active").removeClass("fr-active").attr("aria-selected",!1),r.find('.fr-command[data-param1="'.concat(a,'"]')).addClass("fr-active").attr("aria-selected",!0)},refresh:function(n){if(e.opts.fontSizeSelection){var r=e.helpers.getPX(t(e.selection.element()).css("font-size"));"pt"===e.opts.fontSizeUnit&&(r="".concat(Math.round(72*parseFloat(r,10)/96),"pt")),n.find("> span").text(r)}}}},e.RegisterCommand("fontSize",{type:"dropdown",title:"Font Size",displaySelection:function(e){return e.opts.fontSizeSelection},displaySelectionWidth:30,defaultSelection:function(e){return e.opts.fontSizeDefaultSelection},html:function(){for(var e='<ul class="fr-dropdown-list" role="presentation">',t=this.opts.fontSize,n=0;n<t.length;n++){var r=t[n];e+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="fontSize" data-param1="'.concat(r).concat(this.opts.fontSizeUnit,'" title="').concat(r,'">').concat(r,"</a></li>")}return e+"</ul>"},callback:function(e,t){this.fontSize.apply(t)},refresh:function(e){this.fontSize.refresh(e)},refreshOnShow:function(e,t){this.fontSize.refreshOnShow(e,t)},plugin:"fontSize"}),e.DefineIcon("fontSize",{NAME:"text-height",SVG_KEY:"fontSize"})}(n(80214))},80631:function(e,t,n){!function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e,Object.assign(e.POPUP_TEMPLATES,{"forms.edit":"[_BUTTONS_]","forms.update":"[_BUTTONS_][_TEXT_LAYER_]"}),Object.assign(e.DEFAULTS,{formEditButtons:["inputStyle","inputEdit"],formStyles:{"fr-rounded":"Rounded","fr-large":"Large"},formMultipleStyles:!0,formUpdateButtons:["inputBack","|"]}),e.PLUGINS.forms=function(e){var t,n=e.$;function r(t){e.selection.clear(),n(this).data("mousedown",!0)}function a(e){n(this).data("mousedown")&&(e.stopPropagation(),n(this).removeData("mousedown"),l(t=this)),e.preventDefault()}function o(){e.$el.find("input, textarea, button").removeData("mousedown")}function i(){n(this).removeData("mousedown")}function s(){return t||null}function l(r){if(-1==["checkbox","radio"].indexOf(r.type)){var a=e.popups.get("forms.edit");a||(a=function(){var t="";0<e.opts.formEditButtons.length&&(t='<div class="fr-buttons">'.concat(e.button.buildList(e.opts.formEditButtons),"</div>"));var n={buttons:t},r=e.popups.create("forms.edit",n);return e.$wp&&e.events.$on(e.$wp,"scroll.link-edit",(function(){s()&&e.popups.isVisible("forms.edit")&&l(s())})),r}());var o=n(t=r);e.popups.refresh("forms.edit"),e.popups.setContainer("forms.edit",e.$sc);var i=o.offset().left+o.outerWidth()/2,c=o.offset().top+o.outerHeight();e.popups.show("forms.edit",i,c,o.outerHeight())}}function c(){var t=e.popups.get("forms.update"),r=s();if(r){var a=n(r);a.is("button")?t.find('input[type="text"][name="text"]').val(a.text()):a.is("input[type=button]")||a.is("input[type=submit]")||a.is("input[type=reset]")?t.find('input[type="text"][name="text"]').val(a.val()):t.find('input[type="text"][name="text"]').val(a.attr("placeholder"))}t.find('input[type="text"][name="text"]').trigger("change")}function d(){t=null}function f(t){if(t)return e.popups.onRefresh("forms.update",c),e.popups.onHide("forms.update",d),!0;var n="";1<=e.opts.formUpdateButtons.length&&(n='<div class="fr-buttons">'.concat(e.button.buildList(e.opts.formUpdateButtons),"</div>"));var r=0,a={buttons:n,text_layer:'<div class="fr-forms-text-layer fr-layer fr-active"> \n <div class="fr-input-line"><input name="text" type="text" placeholder="Text" tabIndex=" '.concat(++r,' "></div>\n <div class="fr-action-buttons"><button class="fr-command fr-submit" data-cmd="updateInput" href="#" tabIndex="').concat(2,'" type="button">').concat(e.language.translate("Update"),"</button></div></div>")};return e.popups.create("forms.update",a)}return{_init:function(){e.events.$on(e.$el,e._mousedown,"input, textarea, button",r),e.events.$on(e.$el,e._mouseup,"input, textarea, button",a),e.events.$on(e.$el,"touchmove","input, textarea, button",i),e.events.$on(e.$el,e._mouseup,o),e.events.$on(e.$win,e._mouseup,o),f(!0),e.events.$on(e.$el,"submit","form",(function(e){return e.preventDefault(),!1}))},updateInput:function(){var t=e.popups.get("forms.update"),r=s();if(r){var a=n(r),o=t.find('input[type="text"][name="text"]').val()||"";a.is("button")?o.length?a.text(o):a.text(""):-1!=["button","submit","reset"].indexOf(r.type)?a.attr("value",o):a.attr("placeholder",o),e.popups.hide("forms.update"),l(r)}},getInput:s,applyStyle:function(t,r,a){void 0===r&&(r=e.opts.formStyles),void 0===a&&(a=e.opts.formMultipleStyles);var o=s();if(!o)return!1;if(!a){var i=Object.keys(r);i.splice(i.indexOf(t),1),n(o).removeClass(i.join(" "))}n(o).toggleClass(t)},showUpdatePopup:function(){var t=s();if(t){var r=n(t),a=e.popups.get("forms.update");a||(a=f()),e.popups.isVisible("forms.update")||e.popups.refresh("forms.update"),e.popups.setContainer("forms.update",e.$sc);var o=r.offset().left+r.outerWidth()/2,i=r.offset().top+r.outerHeight();e.popups.show("forms.update",o,i,r.outerHeight())}},showEditPopup:l,back:function(){e.events.disableBlur(),e.selection.restore(),e.events.enableBlur();var t=s();t&&e.$wp&&("BUTTON"===t.tagName&&e.selection.restore(),l(t))}}},e.RegisterCommand("updateInput",{undo:!1,focus:!1,title:"Update",callback:function(){this.forms.updateInput()}}),e.DefineIcon("inputStyle",{NAME:"magic",SVG_KEY:"inlineStyle"}),e.RegisterCommand("inputStyle",{title:"Style",type:"dropdown",html:function(){var e='<ul class="fr-dropdown-list">',t=this.opts.formStyles;for(var n in t)t.hasOwnProperty(n)&&(e+='<li><a class="fr-command" tabIndex="-1" data-cmd="inputStyle" data-param1="'.concat(n,'">').concat(this.language.translate(t[n]),"</a></li>"));return e+"</ul>"},callback:function(e,t){var n=this.forms.getInput();n&&(this.forms.applyStyle(t),this.forms.showEditPopup(n))},refreshOnShow:function(e,t){var n=this.$,r=this.forms.getInput();if(r){var a=n(r);t.find(".fr-command").each((function(){var e=n(this).data("param1");n(this).toggleClass("fr-active",a.hasClass(e))}))}}}),e.DefineIcon("inputEdit",{NAME:"edit",SVG_KEY:"edit"}),e.RegisterCommand("inputEdit",{title:"Edit Button",undo:!1,refreshAfterCallback:!1,callback:function(){this.forms.showUpdatePopup()}}),e.DefineIcon("inputBack",{NAME:"arrow-left",SVG_KEY:"back"}),e.RegisterCommand("inputBack",{title:"Back",undo:!1,focus:!1,back:!0,refreshAfterCallback:!1,callback:function(){this.forms.back()}}),e.RegisterCommand("updateInput",{undo:!1,focus:!1,title:"Update",callback:function(){this.forms.updateInput()}})}(n(80214))},68220:function(e,t,n){!function(e){"use strict";(e=e&&e.hasOwnProperty("default")?e.default:e).PLUGINS.fullscreen=function(e){var t,n,r,a,o=e.$,i=function(){return e.$box.hasClass("fr-fullscreen")};function s(){if(e.helpers.isIOS()&&e.core.hasFocus())return e.$el.blur(),setTimeout(c,250),!1;t=e.helpers.scrollTop(),e.$box.toggleClass("fr-fullscreen"),o("body").first().toggleClass("fr-fullscreen"),e.helpers.isMobile()&&(e.$tb.data("parent",e.$tb.parent()),e.$box.prepend(e.$tb),e.$tb.data("sticky-dummy")&&e.$tb.after(e.$tb.data("sticky-dummy"))),n=e.opts.height,r=e.opts.heightMax,a=e.opts.z_index,e.opts.height=e.o_win.innerHeight-(e.opts.toolbarInline?0:e.$tb.outerHeight()+(e.$second_tb?e.$second_tb.outerHeight():0)),e.opts.zIndex=2147483641,e.opts.heightMax=null,e.size.refresh(),e.opts.toolbarInline&&e.toolbar.showInline();for(var i=e.$box.parent();!i.first().is("body");)i.addClass("fr-fullscreen-wrapper"),i=i.parent();e.opts.toolbarContainer&&e.$box.prepend(e.$tb),e.events.trigger("charCounter.update"),e.events.trigger("codeView.update"),e.$win.trigger("scroll")}function l(){if(e.helpers.isIOS()&&e.core.hasFocus())return e.$el.blur(),setTimeout(c,250),!1;e.$box.toggleClass("fr-fullscreen"),o("body").first().toggleClass("fr-fullscreen"),e.$tb.data("parent")&&e.$tb.data("parent").prepend(e.$tb),e.$tb.data("sticky-dummy")&&e.$tb.after(e.$tb.data("sticky-dummy")),e.opts.height=n,e.opts.heightMax=r,e.opts.zIndex=a,e.size.refresh(),o(e.o_win).scrollTop(t),e.opts.toolbarInline&&e.toolbar.showInline(),e.events.trigger("charCounter.update"),e.opts.toolbarSticky&&e.opts.toolbarStickyOffset&&(e.opts.toolbarBottom?e.$tb.css("bottom",e.opts.toolbarStickyOffset).data("bottom",e.opts.toolbarStickyOffset):e.$tb.css("top",e.opts.toolbarStickyOffset).data("top",e.opts.toolbarStickyOffset));for(var i=e.$box.parent();!i.first().is("body");)i.removeClass("fr-fullscreen-wrapper"),i=i.parent();e.opts.toolbarContainer&&o(e.opts.toolbarContainer).append(e.$tb),o(e.o_win).trigger("scroll"),e.events.trigger("codeView.update")}function c(){i()?l():s(),d(e.$tb.find('.fr-command[data-cmd="fullscreen"]'));var t=e.$tb.find('.fr-command[data-cmd="moreText"]'),n=e.$tb.find('.fr-command[data-cmd="moreParagraph"]'),r=e.$tb.find('.fr-command[data-cmd="moreRich"]'),a=e.$tb.find('.fr-command[data-cmd="moreMisc"]');t.length&&e.refresh.moreText(t),n.length&&e.refresh.moreParagraph(n),r.length&&e.refresh.moreRich(r),a.length&&e.refresh.moreMisc(a)}function d(t){var n=i();t.toggleClass("fr-active",n).attr("aria-pressed",n),t.find("> *").not(".fr-sr-only").replaceWith(n?e.icon.create("fullscreenCompress"):e.icon.create("fullscreen"))}return{_init:function(){if(!e.$wp)return!1;e.events.$on(o(e.o_win),"resize",(function(){i()&&(l(),s())})),e.events.on("toolbar.hide",(function(){if(i()&&e.helpers.isMobile())return!1})),e.events.on("position.refresh",(function(){if(e.helpers.isIOS())return!i()})),e.events.on("destroy",(function(){i()&&l()}),!0)},toggle:c,refresh:d,isActive:i}},e.RegisterCommand("fullscreen",{title:"Fullscreen",undo:!1,focus:!1,accessibilityFocus:!0,forcedRefresh:!0,toggle:!0,callback:function(){this.fullscreen.toggle()},refresh:function(e){this.fullscreen.refresh(e)},plugin:"fullscreen"}),e.DefineIcon("fullscreen",{NAME:"expand",SVG_KEY:"fullscreen"}),e.DefineIcon("fullscreenCompress",{NAME:"compress",SVG_KEY:"exitFullscreen"})}(n(80214))},30609:function(e,t,n){!function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e,Object.assign(e.DEFAULTS,{helpSets:[{title:"Inline Editor",commands:[{val:"OSkeyE",desc:"Show the editor"}]},{title:"Common actions",commands:[{val:"OSkeyC",desc:"Copy"},{val:"OSkeyX",desc:"Cut"},{val:"OSkeyV",desc:"Paste"},{val:"OSkeyZ",desc:"Undo"},{val:"OSkeyShift+Z",desc:"Redo"},{val:"OSkeyK",desc:"Insert Link"},{val:"OSkeyP",desc:"Insert Image"}]},{title:"Basic Formatting",commands:[{val:"OSkeyA",desc:"Select All"},{val:"OSkeyB",desc:"Bold"},{val:"OSkeyI",desc:"Italic"},{val:"OSkeyU",desc:"Underline"},{val:"OSkeyS",desc:"Strikethrough"},{val:"OSkey]",desc:"Increase Indent"},{val:"OSkey[",desc:"Decrease Indent"}]},{title:"Quote",commands:[{val:"OSkey'",desc:"Increase quote level"},{val:"OSkeyShift+'",desc:"Decrease quote level"}]},{title:"Image / Video",commands:[{val:"OSkey+",desc:"Resize larger"},{val:"OSkey-",desc:"Resize smaller"}]},{title:"Table",commands:[{val:"Alt+Space",desc:"Select table cell"},{val:"Shift+Left/Right arrow",desc:"Extend selection one cell"},{val:"Shift+Up/Down arrow",desc:"Extend selection one row"}]},{title:"Navigation",commands:[{val:"OSkey/",desc:"Shortcuts"},{val:"Alt+F10",desc:"Focus popup / toolbar"},{val:"Esc",desc:"Return focus to previous position"}]}]}),e.PLUGINS.help=function(e){var t,n=e.$,r="help";return{_init:function(){},show:function(){if(!t){var a="<h4>".concat(e.language.translate("Shortcuts"),"</h4>"),o=function(){for(var t='<div class="fr-help-modal">',n=0;n<e.opts.helpSets.length;n++){var r=e.opts.helpSets[n],a="<table>";a+="<thead><tr><th>".concat(e.language.translate(r.title),"</th></tr></thead>"),a+="<tbody>";for(var o=0;o<r.commands.length;o++){var i=r.commands[o];a+="<tr>",a+="<td>".concat(e.language.translate(i.desc),"</td>"),a+="<td>".concat(i.val.replace("OSkey",e.helpers.isMac()?"⌘":"Ctrl+"),"</td>"),a+="</tr>"}t+=a+="</tbody></table>"}return t+"</div>"}(),i=e.modals.create(r,a,o);t=i.$modal,e.events.$on(n(e.o_win),"resize",(function(){e.modals.resize(r)}))}e.modals.show(r),e.modals.resize(r)},hide:function(){e.modals.hide(r)}}},e.DefineIcon("help",{NAME:"question",SVG_KEY:"help"}),e.RegisterShortcut(e.KEYCODE.SLASH,"help",null,"/"),e.RegisterCommand("help",{title:"Help",icon:"help",undo:!1,focus:!1,modal:!0,callback:function(){this.help.show()},plugin:"help",showOnMobile:!1})}(n(80214))},60833:function(e,t,n){!function(e){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e=e&&e.hasOwnProperty("default")?e.default:e,Object.assign(e.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(e.DEFAULTS,{imageInsertButtons:["imageBack","|","imageUpload","imageByURL"],imageEditButtons:["imageReplace","imageAlign","imageCaption","imageRemove","imageLink","linkOpen","linkEdit","linkRemove","-","imageDisplay","imageStyle","imageAlt","imageSize"],imageAltButtons:["imageBack","|"],imageSizeButtons:["imageBack","|"],imageUpload:!0,imageUploadURL:null,imageCORSProxy:"https://cors-anywhere.froala.com",imageUploadRemoteUrls:!0,imageUploadParam:"file",imageUploadParams:{},imageUploadToS3:!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}),e.PLUGINS.image=function(n){var r,a,o,i,s,l,c=n.$,d="https://i.froala.com/upload",f=!1,p=1,u=2,h=3,g=4,m=5,v=6,b={};function E(){var e=n.popups.get("image.insert").find(".fr-image-by-url-layer input");e.val(""),r&&e.val(r.attr("src")),e.trigger("change")}function A(){var e=n.popups.get("image.edit");if(e||(e=M()),e){var t=Te();Ce()&&(t=t.find(".fr-img-wrap")),n.popups.setContainer("image.edit",n.$sc),n.popups.refresh("image.edit");var a=t.offset().left+t.outerWidth()/2,o=t.offset().top+t.outerHeight();r.hasClass("fr-uploading")?D():n.popups.show("image.edit",a,o,t.outerHeight(),!0)}}function T(){k()}function C(e){0<e.parents(".fr-img-caption").length&&(e=e.parents(".fr-img-caption").first());var t=e.hasClass("fr-dib")?"block":e.hasClass("fr-dii")?"inline":null,n=e.hasClass("fr-fil")?"left":e.hasClass("fr-fir")?"right":me(e);ge(e,t,n),e.removeClass("fr-dib fr-dii fr-fir fr-fil")}function S(){for(var e,t="IMG"==n.el.tagName?[n.el]:n.el.querySelectorAll("img"),r=0;r<t.length;r++){var a=c(t[r]);!n.opts.htmlUntouched&&n.opts.useClasses?((n.opts.imageDefaultAlign||n.opts.imageDefaultDisplay)&&(0<(e=a).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(me(e)[0])),e.addClass("fr-di".concat(ve(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",""))),n.opts.imageTextNear||(0<a.parents(".fr-img-caption").length?a.parents(".fr-img-caption").first().removeClass("fr-dii").addClass("fr-dib"):a.removeClass("fr-dii").addClass("fr-dib"))):n.opts.htmlUntouched||n.opts.useClasses||(n.opts.imageDefaultAlign||n.opts.imageDefaultDisplay)&&C(a),n.opts.iframe&&a.on("load",n.size.syncIframe)}}function y(e){void 0===e&&(e=!0);var t,r=Array.prototype.slice.call(n.el.querySelectorAll("img")),a=[];for(t=0;t<r.length;t++)if(a.push(r[t].getAttribute("src")),c(r[t]).toggleClass("fr-draggable",n.opts.imageMove),""===r[t].getAttribute("class")&&r[t].removeAttribute("class"),""===r[t].getAttribute("style")&&r[t].removeAttribute("style"),r[t].parentNode&&r[t].parentNode.parentNode&&n.node.hasClass(r[t].parentNode.parentNode,"fr-img-caption")){var o=r[t].parentNode.parentNode;n.browser.mozilla||o.setAttribute("contenteditable",!1),o.setAttribute("draggable",!1),o.classList.add("fr-draggable");var i=r[t].nextSibling;i&&!n.browser.mozilla&&i.setAttribute("contenteditable",!0)}if(s)for(t=0;t<s.length;t++)a.indexOf(s[t].getAttribute("src"))<0&&n.events.trigger("image.removed",[c(s[t])]);if(s&&e){var l=[];for(t=0;t<s.length;t++)l.push(s[t].getAttribute("src"));for(t=0;t<r.length;t++)l.indexOf(r[t].getAttribute("src"))<0&&n.events.trigger("image.loaded",[c(r[t])])}s=r}function L(){if(a||function(){var t;if(n.shared.$image_resizer?(a=n.shared.$image_resizer,i=n.shared.$img_overlay,n.events.on("destroy",(function(){c("body").first().append(a.removeClass("fr-active"))}),!0)):(n.shared.$image_resizer=c(document.createElement("div")).attr("class","fr-image-resizer"),a=n.shared.$image_resizer,n.events.$on(a,"mousedown",(function(e){e.stopPropagation()}),!0),n.opts.imageResize&&(a.append(R("nw")+R("ne")+R("sw")+R("se")),n.shared.$img_overlay=c(document.createElement("div")).attr("class","fr-image-overlay"),i=n.shared.$img_overlay,t=a.get(0).ownerDocument,c(t).find("body").first().append(i))),n.events.on("shared.destroy",(function(){a.html("").removeData().remove(),a=null,n.opts.imageResize&&(i.remove(),i=null)}),!0),n.helpers.isMobile()||n.events.$on(c(n.o_win),"resize",(function(){r&&!r.hasClass("fr-uploading")?fe(!0):r&&(L(),be(),D(!1))})),n.opts.imageResize){t=a.get(0).ownerDocument,n.events.$on(a,n._mousedown,".fr-handler",O),n.events.$on(c(t),n._mousemove,w),n.events.$on(c(t.defaultView||t.parentWindow),n._mouseup,x),n.events.$on(i,"mouseleave",x);var o=1,s=null,l=0;n.events.on("keydown",(function(t){if(r){var a=-1!=navigator.userAgent.indexOf("Mac OS X")?t.metaKey:t.ctrlKey,i=t.which;(i!==s||200<t.timeStamp-l)&&(o=1),(i==e.KEYCODE.EQUALS||n.browser.mozilla&&i==e.KEYCODE.FF_EQUALS)&&a&&!t.altKey?o=te.call(this,t,1,1,o):(i==e.KEYCODE.HYPHEN||n.browser.mozilla&&i==e.KEYCODE.FF_HYPHEN)&&a&&!t.altKey?o=te.call(this,t,2,-1,o):n.keys.ctrlKey(t)||i!=e.KEYCODE.ENTER||(r.before("<br>"),_(r)),s=i,l=t.timeStamp}}),!0),n.events.on("keyup",(function(){o=1}))}}(),!r)return!1;var t=n.$wp||n.$sc;t.append(a),a.data("instance",n);var o=t.scrollTop()-("static"!=t.css("position")?t.offset().top:0),s=t.scrollLeft()-("static"!=t.css("position")?t.offset().left:0);s-=n.helpers.getPX(t.css("border-left-width")),o-=n.helpers.getPX(t.css("border-top-width")),n.$el.is("img")&&n.$sc.is("body")&&(s=o=0);var l=Te();Ce()&&(l=l.find(".fr-img-wrap"));var d=0,f=0;n.opts.iframe&&(d=n.helpers.getPX(n.$wp.find(".fr-iframe").css("padding-top")),f=n.helpers.getPX(n.$wp.find(".fr-iframe").css("padding-left"))),a.css("top",(n.opts.iframe?l.offset().top+d:l.offset().top+o)-1).css("left",(n.opts.iframe?l.offset().left+f:l.offset().left+s)-1).css("width",l.get(0).getBoundingClientRect().width).css("height",l.get(0).getBoundingClientRect().height).addClass("fr-active")}function R(e){return'<div class="fr-handler fr-h'.concat(e,'"></div>')}function N(e){Ce()?r.parents(".fr-img-caption").css("width",e):r.css("width",e)}function O(e){if(!n.core.sameInstance(a))return!0;if(e.preventDefault(),e.stopPropagation(),n.$el.find("img.fr-error").left)return!1;n.undo.canDo()||n.undo.saveStep();var t=e.pageX||e.originalEvent.touches[0].pageX;if("mousedown"==e.type){var s=n.$oel.get(0).ownerDocument,l=s.defaultView||s.parentWindow,d=!1;try{d=l.location!=l.parent.location&&!(l.$&&l.$.FE)}catch(e){}d&&l.frameElement&&(t+=n.helpers.getPX(c(l.frameElement).offset().left)+l.frameElement.clientLeft)}(o=c(this)).data("start-x",t),o.data("start-width",r.width()),o.data("start-height",r.height());var f=r.width();if(n.opts.imageResizeWithPercent){var p=r.parentsUntil(n.$el,n.html.blockTagsQuery()).get(0)||n.el;f=(f/c(p).outerWidth()*100).toFixed(2)+"%"}N(f),i.show(),n.popups.hideAll(),he()}function w(e){if(!n.core.sameInstance(a))return!0;var t;if(o&&r){if(e.preventDefault(),n.$el.find("img.fr-error").left)return!1;var i=e.pageX||(e.originalEvent.touches?e.originalEvent.touches[0].pageX:null);if(!i)return!1;var s=i-o.data("start-x"),l=o.data("start-width");if((o.hasClass("fr-hnw")||o.hasClass("fr-hsw"))&&(s=0-s),n.opts.imageResizeWithPercent){var d=r.parentsUntil(n.$el,n.html.blockTagsQuery()).get(0)||n.el;l=((l+s)/c(d).outerWidth()*100).toFixed(2),n.opts.imageRoundPercent&&(l=Math.round(l)),N("".concat(l,"%")),(t=Ce()?(n.helpers.getPX(r.parents(".fr-img-caption").css("width"))/c(d).outerWidth()*100).toFixed(2):(n.helpers.getPX(r.css("width"))/c(d).outerWidth()*100).toFixed(2))===l||n.opts.imageRoundPercent||N("".concat(t,"%")),r.css("height","").removeAttr("height")}else l+s>=n.opts.imageMinWidth&&(N(l+s),t=Ce()?n.helpers.getPX(r.parents(".fr-img-caption").css("width")):n.helpers.getPX(r.css("width"))),t!==l+s&&N(t),((r.attr("style")||"").match(/(^height:)|(; *height:)/)||r.attr("height"))&&(r.css("height",o.data("start-height")*r.width()/o.data("start-width")),r.removeAttr("height"));L(),n.events.trigger("image.resize",[Ae()])}}function x(e){if(!n.core.sameInstance(a))return!0;if(o&&r){if(e&&e.stopPropagation(),n.$el.find("img.fr-error").left)return!1;o=null,i.hide(),L(),A(),n.undo.saveStep(),n.events.trigger("image.resizeEnd",[Ae()])}else a.removeClass("fr-active")}function I(e,t,a){n.edit.on(),r&&r.addClass("fr-error"),b[e]?B(n.language.translate(b[e])):B(n.language.translate("Something went wrong. Please try again.")),!r&&a&&ne(a),n.events.trigger("image.error",[{code:e,message:b[e]},t,a])}function M(e){if(e)return n.$wp&&n.events.$on(n.$wp,"scroll.image-edit",(function(){r&&n.popups.isVisible("image.edit")&&(n.events.disableBlur(),A())})),!0;var t="";if(0<n.opts.imageEditButtons.length){var a={buttons:t+='<div class="fr-buttons"> \n '.concat(n.button.buildList(n.opts.imageEditButtons),"\n </div>")};return n.popups.create("image.edit",a)}return!1}function D(e){var t=n.popups.get("image.insert");if(t||(t=X()),t.find(".fr-layer.fr-active").removeClass("fr-active").addClass("fr-pactive"),t.find(".fr-image-progress-bar-layer").addClass("fr-active"),t.find(".fr-buttons").hide(),r){var a=Te();n.popups.setContainer("image.insert",n.$sc);var o=a.offset().left,i=a.offset().top+a.height();n.popups.show("image.insert",o,i,a.outerHeight())}void 0===e&&$(n.language.translate("Uploading"),0)}function k(e){var t=n.popups.get("image.insert");if(t&&(t.find(".fr-layer.fr-pactive").addClass("fr-active").removeClass("fr-pactive"),t.find(".fr-image-progress-bar-layer").removeClass("fr-active"),t.find(".fr-buttons").show(),e||n.$el.find("img.fr-error").length)){if(n.events.focus(),n.$el.find("img.fr-error").length&&(n.$el.find("img.fr-error").remove(),n.undo.saveStep(),n.undo.run(),n.undo.dropRedo()),!n.$wp&&r){var a=r;fe(!0),n.selection.setAfter(a.get(0)),n.selection.restore()}n.popups.hide("image.insert")}}function $(e,t){var r=n.popups.get("image.insert");if(r){var a=r.find(".fr-image-progress-bar-layer");a.find("h3").text(e+(t?" ".concat(t,"%"):"")),a.removeClass("fr-error"),t?(a.find("div").removeClass("fr-indeterminate"),a.find("div > span").css("width","".concat(t,"%"))):a.find("div").addClass("fr-indeterminate")}}function B(e){D();var t=n.popups.get("image.insert").find(".fr-image-progress-bar-layer");t.addClass("fr-error");var r=t.find("h3");r.text(e),n.events.disableBlur(),r.focus()}function _(e){de.call(e.get(0))}function H(){var e=c(this);n.popups.hide("image.insert"),e.removeClass("fr-uploading"),e.next().is("br")&&e.next().remove(),_(e),n.events.trigger("image.loaded",[e])}function P(e,t,r,a,o){a&&"string"==typeof a&&(a=n.$(a)),n.edit.off(),$(n.language.translate("Loading image")),t&&(e=n.helpers.sanitizeURL(e));var i=new Image;i.onload=function(){var t,i;if(a){n.undo.canDo()||a.hasClass("fr-uploading")||n.undo.saveStep();var s=a.data("fr-old-src");a.data("fr-image-pasted")&&(s=null),n.$wp?((t=a.clone().removeData("fr-old-src").removeClass("fr-uploading").removeAttr("data-fr-image-pasted")).off("load"),s&&a.attr("src",s),a.replaceWith(t)):t=a;for(var l=t.get(0).attributes,c=0;c<l.length;c++){var d=l[c];0===d.nodeName.indexOf("data-")&&t.removeAttr(d.nodeName)}if(void 0!==r)for(i in r)r.hasOwnProperty(i)&&"link"!=i&&t.attr("data-".concat(i),r[i]);t.on("load",H),t.attr("src",e),n.edit.on(),y(!1),n.undo.saveStep(),n.events.disableBlur(),n.$el.blur(),n.events.trigger(s?"image.replaced":"image.inserted",[t,o])}else t=K(e,r,H),y(!1),n.undo.saveStep(),n.events.disableBlur(),n.$el.blur(),n.events.trigger("image.inserted",[t,o])},i.onerror=function(){I(p)},D(n.language.translate("Loading image")),i.src=e}function U(e){$(n.language.translate("Loading image"));var t=this.status,r=this.response,a=this.responseXML,o=this.responseText;try{if(n.opts.imageUploadToS3)if(201==t){var i=function(e){try{var t=c(e).find("Location").text(),r=c(e).find("Key").text();return!1===n.events.trigger("image.uploadedToS3",[t,r,e],!0)?(n.edit.on(),!1):t}catch(t){return I(g,e),!1}}(a);i&&P(i,!1,[],e,r||a)}else I(g,r||a,e);else if(200<=t&&t<300){var s=function(e){try{if(!1===n.events.trigger("image.uploaded",[e],!0))return n.edit.on(),!1;var t=JSON.parse(e);return t.link?t:(I(u,e),!1)}catch(t){return I(g,e),!1}}(o);s&&P(s.link,!1,s,e,r||o)}else I(h,r||o,e)}catch(t){I(g,r||o,e)}}function W(){I(g,this.response||this.responseText||this.responseXML)}function V(e){if(e.lengthComputable){var t=e.loaded/e.total*100|0;$(n.language.translate("Uploading"),t)}}function K(e,t,r){var a,o=c(document.createElement("img")).attr("src",e);if(t&&void 0!==t)for(a in t)t.hasOwnProperty(a)&&"link"!=a&&(" data-".concat(a,'="').concat(t[a],'"'),o.attr("data-str".concat(a),t[a]));var i=n.opts.imageDefaultWidth;i&&"auto"!=i&&(i=n.opts.imageResizeWithPercent?"100%":"".concat(i,"px")),o.attr("style",i?"width: ".concat(i,";"):""),ge(o,n.opts.imageDefaultDisplay,n.opts.imageDefaultAlign),o.on("load",r),o.on("error",r),n.edit.on(),n.events.focus(!0),n.selection.restore(),n.undo.saveStep(),n.opts.imageSplitHTML?n.markers.split():n.markers.insert(),n.html.wrap();var s=n.$el.find(".fr-marker");return s.length?(s.parent().is("hr")&&s.parent().after(s),n.node.isLastSibling(s)&&s.parent().hasClass("fr-deletable")&&s.insertAfter(s.parent()),s.replaceWith(o)):n.$el.append(o),n.selection.clear(),o}function F(){n.edit.on(),k(!0)}function z(e,t){if(void 0!==e&&0<e.length){if(!1===n.events.trigger("image.beforeUpload",[e,t]))return!1;var a,o=e[0];if((null===n.opts.imageUploadURL||n.opts.imageUploadURL==d)&&!n.opts.imageUploadToS3)return function(e,t){var r=new FileReader;r.onload=function(){var a=r.result;if(r.result.indexOf("svg+xml")<0){for(var o=atob(r.result.split(",")[1]),i=[],s=0;s<o.length;s++)i.push(o.charCodeAt(s));a=window.URL.createObjectURL(new Blob([new Uint8Array(i)],{type:e.type})),n.image.insert(a,!1,null,t)}},D(),r.readAsDataURL(e)}(o,t||r),!1;if(o.name||(o.name=(new Date).getTime()+"."+(o.type||"image/jpeg").replace(/image\//g,"")),o.size>n.opts.imageMaxSize)return I(m),!1;if(n.opts.imageAllowedTypes.indexOf(o.type.replace(/image\//g,""))<0)return I(v),!1;if(n.drag_support.formdata&&(a=n.drag_support.formdata?new FormData:null),a){var i;if(!1!==n.opts.imageUploadToS3)for(i in a.append("key",n.opts.imageUploadToS3.keyStart+(new Date).getTime()+"-"+(o.name||"untitled")),a.append("success_action_status","201"),a.append("X-Requested-With","xhr"),a.append("Content-Type",o.type),n.opts.imageUploadToS3.params)n.opts.imageUploadToS3.params.hasOwnProperty(i)&&a.append(i,n.opts.imageUploadToS3.params[i]);for(i in n.opts.imageUploadParams)n.opts.imageUploadParams.hasOwnProperty(i)&&a.append(i,n.opts.imageUploadParams[i]);a.append(n.opts.imageUploadParam,o,o.name);var s=n.opts.imageUploadURL;n.opts.imageUploadToS3&&(s=n.opts.imageUploadToS3.uploadURL?n.opts.imageUploadToS3.uploadURL:"https://".concat(n.opts.imageUploadToS3.region,".amazonaws.com/").concat(n.opts.imageUploadToS3.bucket)),function(e,t,r,a){function o(){var r=c(this);r.off("load"),r.addClass("fr-uploading"),r.next().is("br")&&r.next().remove(),n.placeholder.refresh(),_(r),L(),D(),n.edit.off(),e.onload=function(){U.call(e,r)},e.onerror=W,e.upload.onprogress=V,e.onabort=F,c(r.off("abortUpload")).on("abortUpload",(function(){4!=e.readyState&&(e.abort(),a?(a.attr("src",a.data("fr-old-src")),a.removeClass("fr-uploading")):r.remove(),fe(!0))})),e.send(t)}var i=new FileReader;i.onload=function(){var e=i.result;if(i.result.indexOf("svg+xml")<0){for(var t=atob(i.result.split(",")[1]),r=[],s=0;s<t.length;s++)r.push(t.charCodeAt(s));e=window.URL.createObjectURL(new Blob([new Uint8Array(r)],{type:"image/jpeg"}))}a?(a.on("load",o),a.on("error",(function(){o(),c(this).off("error")})),n.edit.on(),n.undo.saveStep(),a.data("fr-old-src",a.attr("src")),a.attr("src",e)):K(e,null,o)},i.readAsDataURL(r)}(n.core.getXHR(s,n.opts.imageUploadMethod),a,o,t||r)}}}function Y(e){if(e.is("img")&&0<e.parents(".fr-img-caption").length)return e.parents(".fr-img-caption")}function G(t){var r=t.originalEvent.dataTransfer;if(r&&r.files&&r.files.length){var a=r.files[0];if(a&&a.type&&-1!==a.type.indexOf("image")&&0<=n.opts.imageAllowedTypes.indexOf(a.type.replace(/image\//g,""))){if(!n.opts.imageUpload)return t.preventDefault(),t.stopPropagation(),!1;n.markers.remove(),n.markers.insertAtPoint(t.originalEvent),n.$el.find(".fr-marker").replaceWith(e.MARKERS),0===n.$el.find(".fr-marker").length&&n.selection.setAtEnd(n.el),n.popups.hideAll();var o=n.popups.get("image.insert");o||(o=X()),n.popups.setContainer("image.insert",n.$sc);var i=t.originalEvent.pageX,s=t.originalEvent.pageY;if(n.opts.iframe){var l=n.helpers.getPX(n.$wp.find(".fr-iframe").css("padding-top")),c=n.helpers.getPX(n.$wp.find(".fr-iframe").css("padding-left"));s+=n.$iframe.offset().top+l,i+=n.$iframe.offset().left+c}return n.popups.show("image.insert",i,s),D(),0<=n.opts.imageAllowedTypes.indexOf(a.type.replace(/image\//g,""))?(fe(!0),z(r.files)):I(v),t.preventDefault(),t.stopPropagation(),!1}}}function X(e){if(e)return n.popups.onRefresh("image.insert",E),n.popups.onHide("image.insert",T),!0;var t,a,o="";n.opts.imageUpload||-1===n.opts.imageInsertButtons.indexOf("imageUpload")||n.opts.imageInsertButtons.splice(n.opts.imageInsertButtons.indexOf("imageUpload"),1);var i=n.button.buildList(n.opts.imageInsertButtons);""!==i&&(o='<div class="fr-buttons fr-tabs">'.concat(i,"</div>"));var s=n.opts.imageInsertButtons.indexOf("imageUpload"),l=n.opts.imageInsertButtons.indexOf("imageByURL"),d="";0<=s&&(t=" fr-active",0<=l&&l<s&&(t=""),d='<div class="fr-image-upload-layer'.concat(t,' fr-layer" id="fr-image-upload-layer-').concat(n.id,'"><strong>').concat(n.language.translate("Drop image"),"</strong><br>(").concat(n.language.translate("or click"),')<div class="fr-form"><input type="file" accept="image/').concat(n.opts.imageAllowedTypes.join(", image/").toLowerCase(),'" tabIndex="-1" aria-labelledby="fr-image-upload-layer-').concat(n.id,'" role="button"></div></div>'));var f="";0<=l&&(t=" fr-active",0<=s&&s<l&&(t=""),f='<div class="fr-image-by-url-layer'.concat(t,' fr-layer" id="fr-image-by-url-layer-').concat(n.id,'"><div class="fr-input-line"><input id="fr-image-by-url-layer-text-').concat(n.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(n.language.translate("Insert"),"</button></div></div>"));var p={buttons:o,upload_layer:d,by_url_layer:f,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>'};return 1<=n.opts.imageInsertButtons.length&&(a=n.popups.create("image.insert",p)),n.$wp&&n.events.$on(n.$wp,"scroll",(function(){r&&n.popups.isVisible("image.insert")&&be()})),function(e){n.events.$on(e,"dragover dragenter",".fr-image-upload-layer",(function(e){return c(this).addClass("fr-drop"),(n.browser.msie||n.browser.edge)&&e.preventDefault(),!1}),!0),n.events.$on(e,"dragleave dragend",".fr-image-upload-layer",(function(e){return c(this).removeClass("fr-drop"),(n.browser.msie||n.browser.edge)&&e.preventDefault(),!1}),!0),n.events.$on(e,"drop",".fr-image-upload-layer",(function(t){t.preventDefault(),t.stopPropagation(),c(this).removeClass("fr-drop");var r=t.originalEvent.dataTransfer;if(r&&r.files){var a=e.data("instance")||n;a.events.disableBlur(),a.image.upload(r.files),a.events.enableBlur()}}),!0),n.helpers.isIOS()&&n.events.$on(e,"touchstart",'.fr-image-upload-layer input[type="file"]',(function(){c(this).trigger("click")}),!0),n.events.$on(e,"change",'.fr-image-upload-layer input[type="file"]',(function(){if(this.files){var t=e.data("instance")||n;t.events.disableBlur(),e.find("input:focus").blur(),t.events.enableBlur(),t.image.upload(this.files,r)}c(this).val("")}),!0)}(a),a}function q(){r&&n.popups.get("image.alt").find("input").val(r.attr("alt")||"").trigger("change")}function j(){var e=n.popups.get("image.alt");e||(e=Z()),k(),n.popups.refresh("image.alt"),n.popups.setContainer("image.alt",n.$sc);var t=Te();Ce()&&(t=t.find(".fr-img-wrap"));var r=t.offset().left+t.outerWidth()/2,a=t.offset().top+t.outerHeight();n.popups.show("image.alt",r,a,t.outerHeight(),!0)}function Z(e){if(e)return n.popups.onRefresh("image.alt",q),!0;var t={buttons:'<div class="fr-buttons fr-tabs">'.concat(n.button.buildList(n.opts.imageAltButtons),"</div>"),alt_layer:'<div class="fr-image-alt-layer fr-layer fr-active" id="fr-image-alt-layer-'.concat(n.id,'"><div class="fr-input-line"><input id="fr-image-alt-layer-text-').concat(n.id,'" type="text" placeholder="').concat(n.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(n.language.translate("Update"),"</button></div></div>")},a=n.popups.create("image.alt",t);return n.$wp&&n.events.$on(n.$wp,"scroll.image-alt",(function(){r&&n.popups.isVisible("image.alt")&&j()})),a}function Q(){var e=n.popups.get("image.size");if(r)if(Ce()){var t=r.parent();t.get(0).style.width||(t=r.parent().parent()),e.find('input[name="width"]').val(t.get(0).style.width).trigger("change"),e.find('input[name="height"]').val(t.get(0).style.height).trigger("change")}else e.find('input[name="width"]').val(r.get(0).style.width).trigger("change"),e.find('input[name="height"]').val(r.get(0).style.height).trigger("change")}function J(){var e=n.popups.get("image.size");e||(e=ee()),k(),n.popups.refresh("image.size"),n.popups.setContainer("image.size",n.$sc);var t=Te();Ce()&&(t=t.find(".fr-img-wrap"));var r=t.offset().left+t.outerWidth()/2,a=t.offset().top+t.outerHeight();n.popups.show("image.size",r,a,t.outerHeight(),!0)}function ee(e){if(e)return n.popups.onRefresh("image.size",Q),!0;var t={buttons:'<div class="fr-buttons fr-tabs">'.concat(n.button.buildList(n.opts.imageSizeButtons),"</div>"),size_layer:'<div class="fr-image-size-layer fr-layer fr-active" id="fr-image-size-layer-'.concat(n.id,'"><div class="fr-image-group"><div class="fr-input-line"><input id="fr-image-size-layer-width-\'').concat(n.id,'" type="text" name="width" placeholder="').concat(n.language.translate("Width"),'" tabIndex="1"></div><div class="fr-input-line"><input id="fr-image-size-layer-height').concat(n.id,'" type="text" name="height" placeholder="').concat(n.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(n.language.translate("Update"),"</button></div></div>")},a=n.popups.create("image.size",t);return n.$wp&&n.events.$on(n.$wp,"scroll.image-size",(function(){r&&n.popups.isVisible("image.size")&&J()})),a}function te(e,t,n,r){return e.pageX=t,O.call(this,e),e.pageX=e.pageX+n*Math.floor(Math.pow(1.1,r)),w.call(this,e),x.call(this,e),++r}function ne(t){(t=t||Te())&&!1!==n.events.trigger("image.beforeRemove",[t])&&(n.popups.hideAll(),Ee(),fe(!0),n.undo.canDo()||n.undo.saveStep(),t.get(0)==n.el?t.removeAttr("src"):(t.get(0).parentNode&&"A"==t.get(0).parentNode.tagName?(n.selection.setBefore(t.get(0).parentNode)||n.selection.setAfter(t.get(0).parentNode)||t.parent().after(e.MARKERS),c(t.get(0).parentNode).remove()):(n.selection.setBefore(t.get(0))||n.selection.setAfter(t.get(0))||t.after(e.MARKERS),t.remove()),n.html.fillEmptyBlocks(),n.selection.restore()),n.undo.saveStep())}function re(t){var a=t.which;if(r&&(a==e.KEYCODE.BACKSPACE||a==e.KEYCODE.DELETE))return t.preventDefault(),t.stopPropagation(),ne(),!1;if(r&&a==e.KEYCODE.ESC){var o=r;return fe(!0),n.selection.setAfter(o.get(0)),n.selection.restore(),t.preventDefault(),!1}if(!r||a!=e.KEYCODE.ARROW_LEFT&&a!=e.KEYCODE.ARROW_RIGHT)return r&&a===e.KEYCODE.TAB?(t.preventDefault(),t.stopPropagation(),fe(!0),!1):r&&a!=e.KEYCODE.F10&&!n.keys.isBrowserAction(t)?(t.preventDefault(),t.stopPropagation(),!1):void 0;var i=r.get(0);return fe(!0),a==e.KEYCODE.ARROW_LEFT?n.selection.setBefore(i):n.selection.setAfter(i),n.selection.restore(),t.preventDefault(),!1}function ae(e){if(e&&"IMG"==e.tagName){if(n.node.hasClass(e,"fr-uploading")||n.node.hasClass(e,"fr-error")?e.parentNode.removeChild(e):n.node.hasClass(e,"fr-draggable")&&e.classList.remove("fr-draggable"),e.parentNode&&e.parentNode.parentNode&&n.node.hasClass(e.parentNode.parentNode,"fr-img-caption")){var t=e.parentNode.parentNode;t.removeAttribute("contenteditable"),t.removeAttribute("draggable"),t.classList.remove("fr-draggable");var r=e.nextSibling;r&&r.removeAttribute("contenteditable")}}else if(e&&e.nodeType==Node.ELEMENT_NODE)for(var a=e.querySelectorAll("img.fr-uploading, img.fr-error, img.fr-draggable"),o=0;o<a.length;o++)ae(a[o])}function oe(e){if(!1===n.events.trigger("image.beforePasteUpload",[e]))return!1;r=c(e),L(),A(),be(),D(),r.on("load",(function(){var e=[];L(),c(n.popups.get("image.insert").get(0)).find("div.fr-active.fr-error").length<1&&D(),c(this).data("events").find((function(t){"load"===t[0]&&e.push(t)})),e.length<=1&&c(this).off("load")}));for(var t=c(e).attr("src").split(","),a=atob(t[1]),o=[],i=0;i<a.length;i++)o.push(a.charCodeAt(i));z([new Blob([new Uint8Array(o)],{type:t[0].replace(/data\:/g,"").replace(/;base64/g,"")})],r)}function ie(){n.opts.imagePaste?n.$el.find("img[data-fr-image-pasted]").each((function(e,t){if(n.opts.imagePasteProcess){var r=n.opts.imageDefaultWidth;r&&"auto"!=r&&(r+=n.opts.imageResizeWithPercent?"%":"px"),c(t).css("width",r).removeClass("fr-dii fr-dib fr-fir fr-fil"),ge(c(t),n.opts.imageDefaultDisplay,n.opts.imageDefaultAlign)}if(0===t.src.indexOf("data:"))oe(t);else if(0===t.src.indexOf("blob:")||0===t.src.indexOf("http")&&n.opts.imageUploadRemoteUrls&&n.opts.imageCORSProxy){var a=new Image;a.crossOrigin="Anonymous",a.onload=function(){var e,r=n.o_doc.createElement("CANVAS"),a=r.getContext("2d");r.height=this.naturalHeight,r.width=this.naturalWidth,a.drawImage(this,0,0),setTimeout((function(){oe(t)}),0),e=2e3<this.naturalWidth||1500<this.naturalHeight?"jpeg":"png",t.src=r.toDataURL("image/".concat(e))},a.src=(0===t.src.indexOf("blob:")?"":"".concat(n.opts.imageCORSProxy,"/"))+t.src}else 0!==t.src.indexOf("http")||0===t.src.indexOf("https://mail.google.com/mail")?(n.selection.save(),c(t).remove(),n.selection.restore()):c(t).removeAttr("data-fr-image-pasted")})):n.$el.find("img[data-fr-image-pasted]").remove()}function se(e){var t=e.target.result,r=n.opts.imageDefaultWidth;r&&"auto"!=r&&(r+=n.opts.imageResizeWithPercent?"%":"px"),n.undo.saveStep(),n.html.insert('<img data-fr-image-pasted="true" src="'.concat(t,'"').concat(r?' style="width: '.concat(r,';"'):"",">"));var a=n.$el.find('img[data-fr-image-pasted="true"]');a&&ge(a,n.opts.imageDefaultDisplay,n.opts.imageDefaultAlign),n.events.trigger("paste.after")}function le(e){if(e&&e.clipboardData&&e.clipboardData.items){var t=null;if(e.clipboardData.types&&-1!=[].indexOf.call(e.clipboardData.types,"text/rtf")||e.clipboardData.getData("text/rtf"))t=e.clipboardData.items[0].getAsFile();else for(var n=0;n<e.clipboardData.items.length&&!(t=e.clipboardData.items[n].getAsFile());n++);if(t)return function(e){var t=new FileReader;t.onload=se,t.readAsDataURL(e)}(t),!1}}function ce(e){return e.replace(/<img /gi,'<img data-fr-image-pasted="true" ')}function de(t){if("false"==c(this).parents("[contenteditable]").not(".fr-element").not(".fr-img-caption").not("body").first().attr("contenteditable"))return!0;if(t&&"touchend"==t.type&&l)return!0;if(t&&n.edit.isDisabled())return t.stopPropagation(),t.preventDefault(),!1;for(var a=0;a<e.INSTANCES.length;a++)e.INSTANCES[a]!=n&&e.INSTANCES[a].events.trigger("image.hideResizer");n.toolbar.disable(),t&&(t.stopPropagation(),t.preventDefault()),n.helpers.isMobile()&&(n.events.disableBlur(),n.$el.blur(),n.events.enableBlur()),n.opts.iframe&&n.size.syncIframe(),r=c(this),Ee(),L(),A(),n.browser.msie?(n.popups.areVisible()&&n.events.disableBlur(),n.win.getSelection&&(n.win.getSelection().removeAllRanges(),n.win.getSelection().addRange(n.doc.createRange()))):n.selection.clear(),n.helpers.isIOS()&&(n.events.disableBlur(),n.$el.blur()),n.button.bulkRefresh(),n.events.trigger("video.hideResizer")}function fe(e){r&&(pe||!0===e)&&(n.toolbar.enable(),a.removeClass("fr-active"),n.popups.hide("image.edit"),r=null,he(),o=null,i&&i.hide())}b[p]="Image cannot be loaded from the passed link.",b[u]="No link in upload response.",b[h]="Error during file upload.",b[g]="Parsing response failed.",b[m]="File is too large.",b[v]="Image file type is invalid.",b[7]="Files can be uploaded only to same domain in IE 8 and IE 9.";var pe=!(b[8]="Image file is corrupted.");function ue(){pe=!0}function he(){pe=!1}function ge(e,t,r){!n.opts.htmlUntouched&&n.opts.useClasses?(e.removeClass("fr-fil fr-fir fr-dib fr-dii"),r&&e.addClass("fr-fi".concat(r[0])),t&&e.addClass("fr-di".concat(t[0]))):"inline"==t?(e.css({display:"inline-block",verticalAlign:"bottom",margin:n.opts.imageDefaultMargin}),"center"==r?e.css({float:"none",marginBottom:"",marginTop:"",maxWidth:"calc(100% - ".concat(2*n.opts.imageDefaultMargin,"px)"),textAlign:"center"}):"left"==r?e.css({float:"left",marginLeft:0,maxWidth:"calc(100% - ".concat(n.opts.imageDefaultMargin,"px)"),textAlign:"left"}):e.css({float:"right",marginRight:0,maxWidth:"calc(100% - ".concat(n.opts.imageDefaultMargin,"px)"),textAlign:"right"})):"block"==t&&(e.css({display:"block",float:"none",verticalAlign:"top",margin:"".concat(n.opts.imageDefaultMargin,"px auto"),textAlign:"center"}),"left"==r?e.css({marginLeft:0,textAlign:"left"}):"right"==r&&e.css({marginRight:0,textAlign:"right"}))}function me(e){if(void 0===e&&(e=Te()),e){if(e.hasClass("fr-fil"))return"left";if(e.hasClass("fr-fir"))return"right";if(e.hasClass("fr-dib")||e.hasClass("fr-dii"))return"center";var t=e.css("float");if(e.css("float","none"),"block"==e.css("display")){if(e.css("float",""),e.css("float")!=t&&e.css("float",t),0===parseInt(e.css("margin-left"),10))return"left";if(0===parseInt(e.css("margin-right"),10))return"right"}else{if(e.css("float",""),e.css("float")!=t&&e.css("float",t),"left"==e.css("float"))return"left";if("right"==e.css("float"))return"right"}}return"center"}function ve(e){void 0===e&&(e=Te());var t=e.css("float");return e.css("float","none"),"block"==e.css("display")?(e.css("float",""),e.css("float")!=t&&e.css("float",t),"block"):(e.css("float",""),e.css("float")!=t&&e.css("float",t),"inline")}function be(){var e=n.popups.get("image.insert");e||(e=X()),n.popups.isVisible("image.insert")||(k(),n.popups.refresh("image.insert"),n.popups.setContainer("image.insert",n.$sc));var t=Te();Ce()&&(t=t.find(".fr-img-wrap"));var r=t.offset().left+t.outerWidth()/2,a=t.offset().top+t.outerHeight();n.popups.show("image.insert",r,a,t.outerHeight(!0),!0)}function Ee(){if(r){n.events.disableBlur(),n.selection.clear();var e=n.doc.createRange();e.selectNode(r.get(0)),n.browser.msie&&e.collapse(!0),n.selection.get().addRange(e),n.events.enableBlur()}}function Ae(){return r}function Te(){return Ce()?r.parents(".fr-img-caption").first():r}function Ce(){return!!r&&0<r.parents(".fr-img-caption").length}return{_init:function(){var t;n.events.$on(n.$el,n._mousedown,"IMG"==n.el.tagName?null:'img:not([contenteditable="false"])',(function(e){if("false"==c(this).parents("contenteditable").not(".fr-element").not(".fr-img-caption").not("body").first().attr("contenteditable"))return!0;n.helpers.isMobile()||n.selection.clear(),f=!0,n.popups.areVisible()&&n.events.disableBlur(),n.browser.msie&&(n.events.disableBlur(),n.$el.attr("contenteditable",!1)),n.draggable||"touchstart"==e.type||e.preventDefault(),e.stopPropagation()})),n.events.$on(n.$el,n._mousedown,".fr-img-caption .fr-inner",(function(e){n.core.hasFocus()||n.events.focus(),e.stopPropagation()})),n.events.$on(n.$el,"paste",".fr-img-caption .fr-inner",(function(e){n.toolbar.hide(),e.stopPropagation()})),n.events.$on(n.$el,n._mouseup,"IMG"==n.el.tagName?null:'img:not([contenteditable="false"])',(function(e){if("false"==c(this).parents("contenteditable").not(".fr-element").not(".fr-img-caption").not("body").first().attr("contenteditable"))return!0;f&&(f=!1,e.stopPropagation(),n.browser.msie&&(n.$el.attr("contenteditable",!0),n.events.enableBlur()))})),n.events.on("keyup",(function(e){if(e.shiftKey&&""===n.selection.text().replace(/\n/g,"")&&n.keys.isArrow(e.which)){var t=n.selection.element(),r=n.selection.endElement();t&&"IMG"==t.tagName?_(c(t)):r&&"IMG"==r.tagName&&_(c(r))}}),!0),n.events.on("drop",G),n.events.on("element.beforeDrop",Y),n.events.on("window.mousedown",ue),n.events.on("window.touchmove",he),n.events.on("mouseup window.mouseup",(function(){if(r)return fe(),!1;he()})),n.events.on("commands.mousedown",(function(e){0<e.parents(".fr-toolbar").length&&fe()})),n.events.on("image.resizeEnd",(function(){n.opts.iframe&&n.size.syncIframe()})),n.events.on("blur image.hideResizer commands.undo commands.redo element.dropped",(function(){fe(!(f=!1))})),n.events.on("modals.hide",(function(){r&&(Ee(),n.selection.clear())})),n.events.on("image.resizeEnd",(function(){n.win.getSelection&&_(r)})),n.opts.imageAddNewLine&&n.events.on("image.inserted",(function(t){var r=t.get(0);for(r.nextSibling&&"BR"===r.nextSibling.tagName&&(r=r.nextSibling);r&&!n.node.isElement(r);)r=n.node.isLastSibling(r)?r.parentNode:null;n.node.isElement(r)&&(n.opts.enter===e.ENTER_BR?t.after("<br>"):c(n.node.blockParent(t.get(0))).after("<".concat(n.html.defaultTag(),"><br></").concat(n.html.defaultTag(),">")))})),"IMG"==n.el.tagName&&n.$el.addClass("fr-view"),n.events.$on(n.$el,n.helpers.isMobile()&&!n.helpers.isWindowsPhone()?"touchend":"click","IMG"==n.el.tagName?null:'img:not([contenteditable="false"])',de),n.helpers.isMobile()&&(n.events.$on(n.$el,"touchstart","IMG"==n.el.tagName?null:'img:not([contenteditable="false"])',(function(){l=!1})),n.events.$on(n.$el,"touchmove",(function(){l=!0}))),n.$wp?(n.events.on("window.keydown keydown",re,!0),n.events.on("keyup",(function(t){if(r&&t.which==e.KEYCODE.ENTER)return!1}),!0),n.events.$on(n.$el,"keydown",(function(){var t=n.selection.element();(t.nodeType===Node.TEXT_NODE||"BR"==t.tagName&&n.node.isLastSibling(t))&&(t=t.parentNode),n.node.hasClass(t,"fr-inner")||(n.node.hasClass(t,"fr-img-caption")||(t=c(t).parents(".fr-img-caption").get(0)),n.node.hasClass(t,"fr-img-caption")&&(c(t).after(e.INVISIBLE_SPACE+e.MARKERS),n.selection.restore()))}))):n.events.$on(n.$win,"keydown",re),n.events.on("toolbar.esc",(function(){if(r){if(n.$wp)n.events.disableBlur(),n.events.focus();else{var e=r;fe(!0),n.selection.setAfter(e.get(0)),n.selection.restore()}return!1}}),!0),n.events.on("toolbar.focusEditor",(function(){if(r)return!1}),!0),n.events.on("window.cut window.copy",(function(t){if(r&&n.popups.isVisible("image.edit")&&!n.popups.get("image.edit").find(":focus").length){var a=Te();Ce()?(a.before(e.START_MARKER),a.after(e.END_MARKER),n.selection.restore(),n.paste.saveCopiedText(a.get(0).outerHTML,a.text())):(Ee(),n.paste.saveCopiedText(r.get(0).outerHTML,r.attr("alt"))),"copy"==t.type?setTimeout((function(){_(r)})):(fe(!0),n.undo.saveStep(),setTimeout((function(){n.undo.saveStep()}),0))}}),!0),n.browser.msie&&n.events.on("keydown",(function(t){if(!n.selection.isCollapsed()||!r)return!0;var a=t.which;a==e.KEYCODE.C&&n.keys.ctrlKey(t)?n.events.trigger("window.copy"):a==e.KEYCODE.X&&n.keys.ctrlKey(t)&&n.events.trigger("window.cut")})),n.events.$on(c(n.o_win),"keydown",(function(t){var n=t.which;if(r&&n==e.KEYCODE.BACKSPACE)return t.preventDefault(),!1})),n.events.$on(n.$win,"keydown",(function(t){var n=t.which;r&&r.hasClass("fr-uploading")&&n==e.KEYCODE.ESC&&r.trigger("abortUpload")})),n.events.on("destroy",(function(){r&&r.hasClass("fr-uploading")&&r.trigger("abortUpload")})),n.events.on("paste.before",le),n.events.on("paste.beforeCleanup",ce),n.events.on("paste.after",ie),n.events.on("html.set",S),n.events.on("html.inserted",S),S(),n.events.on("destroy",(function(){s=[]})),n.events.on("html.processGet",ae),n.opts.imageOutputSize&&n.events.on("html.beforeGet",(function(){t=n.el.querySelectorAll("img");for(var e=0;e<t.length;e++){var r=t[e].style.width||c(t[e]).width(),a=t[e].style.height||c(t[e]).height();r&&t[e].setAttribute("width","".concat(r).replace(/px/,"")),a&&t[e].setAttribute("height","".concat(a).replace(/px/,""))}})),n.opts.iframe&&n.events.on("image.loaded",n.size.syncIframe),n.$wp&&(y(),n.events.on("contentChanged",y)),n.events.$on(c(n.o_win),"orientationchange.image",(function(){setTimeout((function(){r&&_(r)}),100)})),M(!0),X(!0),ee(!0),Z(!0),n.events.on("node.remove",(function(e){if("IMG"==e.get(0).tagName)return ne(e),!1}))},showInsertPopup:function(){var e=n.$tb.find('.fr-command[data-cmd="insertImage"]'),t=n.popups.get("image.insert");if(t||(t=X()),k(),!t.hasClass("fr-active"))if(n.popups.refresh("image.insert"),n.popups.setContainer("image.insert",n.$tb),e.isVisible()){var r=n.button.getPosition(e),a=r.left,o=r.top;n.popups.show("image.insert",a,o,e.outerHeight())}else n.position.forSelection(t),n.popups.show("image.insert")},showLayer:function(e){var t,a,o=n.popups.get("image.insert");if(r||n.opts.toolbarInline){if(r){var i=Te();Ce()&&(i=i.find(".fr-img-wrap")),a=i.offset().top+i.outerHeight(),t=i.offset().left}}else{var s=n.$tb.find('.fr-command[data-cmd="insertImage"]');t=s.offset().left,a=s.offset().top+(n.opts.toolbarBottom?10:s.outerHeight()-10)}!r&&n.opts.toolbarInline&&(a=o.offset().top-n.helpers.getPX(o.css("margin-top")),o.hasClass("fr-above")&&(a+=o.outerHeight())),o.find(".fr-layer").removeClass("fr-active"),o.find(".fr-".concat(e,"-layer")).addClass("fr-active"),n.popups.show("image.insert",t,a,r?r.outerHeight():0),n.accessibility.focusPopup(o)},refreshUploadButton:function(e){var t=n.popups.get("image.insert");t&&t.find(".fr-image-upload-layer").hasClass("fr-active")&&e.addClass("fr-active").attr("aria-pressed",!0)},refreshByURLButton:function(e){var t=n.popups.get("image.insert");t&&t.find(".fr-image-by-url-layer").hasClass("fr-active")&&e.addClass("fr-active").attr("aria-pressed",!0)},upload:z,insertByURL:function(){var e=n.popups.get("image.insert").find(".fr-image-by-url-layer input");if(0<e.val().length){D(),$(n.language.translate("Loading image"));var t=e.val().trim();if(n.opts.imageUploadRemoteUrls&&n.opts.imageCORSProxy&&n.opts.imageUpload){var a=new XMLHttpRequest;a.onload=function(){200==this.status?z([new Blob([this.response],{type:this.response.type||"image/png"})],r):I(p)},a.onerror=function(){P(t,!0,[],r)},a.open("GET","".concat(n.opts.imageCORSProxy,"/").concat(t),!0),a.responseType="blob",a.send()}else P(t,!0,[],r);e.val(""),e.blur()}},align:function(e){var t=Te();t.removeClass("fr-fir fr-fil"),!n.opts.htmlUntouched&&n.opts.useClasses?"left"==e?t.addClass("fr-fil"):"right"==e&&t.addClass("fr-fir"):ge(t,ve(),e),Ee(),L(),A(),n.selection.clear()},refreshAlign:function(e){r&&e.find("> *").first().replaceWith(n.icon.create("image-align-".concat(me())))},refreshAlignOnShow:function(e,t){r&&t.find('.fr-command[data-param1="'.concat(me(),'"]')).addClass("fr-active").attr("aria-selected",!0)},display:function(e){var t=Te();t.removeClass("fr-dii fr-dib"),!n.opts.htmlUntouched&&n.opts.useClasses?"inline"==e?t.addClass("fr-dii"):"block"==e&&t.addClass("fr-dib"):ge(t,e,me()),Ee(),L(),A(),n.selection.clear()},refreshDisplayOnShow:function(e,t){r&&t.find('.fr-command[data-param1="'.concat(ve(),'"]')).addClass("fr-active").attr("aria-selected",!0)},replace:be,back:function(){r?(n.events.disableBlur(),c(".fr-popup input:focus").blur(),_(r)):(n.events.disableBlur(),n.selection.restore(),n.events.enableBlur(),n.popups.hide("image.insert"),n.toolbar.showInline())},get:Ae,getEl:Te,insert:P,showProgressBar:D,remove:ne,hideProgressBar:k,applyStyle:function(e,a,o){if(void 0===a&&(a=n.opts.imageStyles),void 0===o&&(o=n.opts.imageMultipleStyles),!r)return!1;var i=Te();if(!o){var s=Object.keys(a);s.splice(s.indexOf(e),1),i.removeClass(s.join(" "))}"object"==t(a[e])?(i.removeAttr("style"),i.css(a[e].style)):i.toggleClass(e),_(r)},showAltPopup:j,showSizePopup:J,setAlt:function(e){if(r){var t=n.popups.get("image.alt");r.attr("alt",e||t.find("input").val()||""),t.find("input:focus").blur(),_(r)}},setSize:function(e,t){if(r){var a=n.popups.get("image.size");e=e||a.find('input[name="width"]').val()||"",t=t||a.find('input[name="height"]').val()||"";var o=/^[\d]+((px)|%)*$/g;r.removeAttr("width").removeAttr("height"),e.match(o)?r.css("width",e):r.css("width",""),t.match(o)?r.css("height",t):r.css("height",""),Ce()&&(r.parents(".fr-img-caption").removeAttr("width").removeAttr("height"),e.match(o)?r.parents(".fr-img-caption").css("width",e):r.parents(".fr-img-caption").css("width",""),t.match(o)?r.parents(".fr-img-caption").css("height",t):r.parents(".fr-img-caption").css("height","")),a&&a.find("input:focus").blur(),_(r)}},toggleCaption:function(){var t;if(r&&!Ce()){(t=r).parent().is("a")&&(t=r.parent());var a,o,i=r.parents("ul")&&0<r.parents("ul").length?r.parents("ul"):r.parents("ol")&&0<r.parents("ol").length?r.parents("ol"):[];if(0<i.length){var s=i.find("li").length,l=r.parents("li"),c=document.createElement("li");s-1===l.index()&&(i.append(c),c.innerHTML=" ")}t.attr("style")&&(o=-1<(a=t.attr("style").split(":")).indexOf("width")?a[a.indexOf("width")+1].replace(";",""):"");var d=n.opts.imageResizeWithPercent?(-1<o.indexOf("px")?null:o)||"100%":r.width()+"px";t.wrap('<div class="fr-img-space-wrap"><span '+(n.browser.mozilla?"":'contenteditable="false"')+'class="fr-img-caption '+r.attr("class")+'" style="'+(n.opts.useClasses?"":t.attr("style"))+'" draggable="false"></span><p class="fr-img-space-wrap2"> </p></div>'),t.wrap('<span class="fr-img-wrap"></span>'),r.after('<span class="fr-inner"'.concat(n.browser.mozilla?"":' contenteditable="true"',">").concat(e.START_MARKER).concat(n.language.translate("Image Caption")).concat(e.END_MARKER,"</span>")),r.removeAttr("class").removeAttr("style").removeAttr("width"),r.parents(".fr-img-caption").css("width",d),fe(!0),n.selection.restore()}else t=Te(),r.insertAfter(t),r.attr("class",t.attr("class").replace("fr-img-caption","")).attr("style",t.attr("style")),t.remove(),_(r)},hasCaption:Ce,exitEdit:fe,edit:_}},e.DefineIcon("insertImage",{NAME:"image",SVG_KEY:"insertImage"}),e.RegisterShortcut(e.KEYCODE.P,"insertImage",null,"P"),e.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"}),e.DefineIcon("imageUpload",{NAME:"upload",SVG_KEY:"upload"}),e.RegisterCommand("imageUpload",{title:"Upload Image",undo:!1,focus:!1,toggle:!0,callback:function(){this.image.showLayer("image-upload")},refresh:function(e){this.image.refreshUploadButton(e)}}),e.DefineIcon("imageByURL",{NAME:"link",SVG_KEY:"insertLink"}),e.RegisterCommand("imageByURL",{title:"By URL",undo:!1,focus:!1,toggle:!0,callback:function(){this.image.showLayer("image-by-url")},refresh:function(e){this.image.refreshByURLButton(e)}}),e.RegisterCommand("imageInsertByURL",{title:"Insert Image",undo:!0,refreshAfterCallback:!1,callback:function(){this.image.insertByURL()},refresh:function(e){this.image.get()?e.text(this.language.translate("Replace")):e.text(this.language.translate("Insert"))}}),e.DefineIcon("imageDisplay",{NAME:"star",SVG_KEY:"imageDisplay"}),e.RegisterCommand("imageDisplay",{title:"Display",type:"dropdown",options:{inline:"Inline",block:"Break Text"},callback:function(e,t){this.image.display(t)},refresh:function(e){this.opts.imageTextNear||e.addClass("fr-hidden")},refreshOnShow:function(e,t){this.image.refreshDisplayOnShow(e,t)}}),e.DefineIcon("image-align",{NAME:"align-left",SVG_KEY:"alignLeft"}),e.DefineIcon("image-align-left",{NAME:"align-left",SVG_KEY:"alignLeft"}),e.DefineIcon("image-align-right",{NAME:"align-right",SVG_KEY:"alignRight"}),e.DefineIcon("image-align-center",{NAME:"align-justify",SVG_KEY:"alignCenter"}),e.DefineIcon("imageAlign",{NAME:"align-justify",SVG_KEY:"alignJustify"}),e.RegisterCommand("imageAlign",{type:"dropdown",title:"Align",options:{left:"Align Left",center:"None",right:"Align Right"},html:function(){var t='<ul class="fr-dropdown-list" role="presentation">',n=e.COMMANDS.imageAlign.options;for(var r in n)n.hasOwnProperty(r)&&(t+='<li role="presentation"><a class="fr-command fr-title" tabIndex="-1" role="option" data-cmd="imageAlign" data-param1="'.concat(r,'" title="').concat(this.language.translate(n[r]),'">').concat(this.icon.create("image-align-".concat(r)),'<span class="fr-sr-only">').concat(this.language.translate(n[r]),"</span></a></li>"));return t+"</ul>"},callback:function(e,t){this.image.align(t)},refresh:function(e){this.image.refreshAlign(e)},refreshOnShow:function(e,t){this.image.refreshAlignOnShow(e,t)}}),e.DefineIcon("imageReplace",{NAME:"exchange",FA5NAME:"exchange-alt",SVG_KEY:"replaceImage"}),e.RegisterCommand("imageReplace",{title:"Replace",undo:!1,focus:!1,popup:!0,refreshAfterCallback:!1,callback:function(){this.image.replace()}}),e.DefineIcon("imageRemove",{NAME:"trash",SVG_KEY:"remove"}),e.RegisterCommand("imageRemove",{title:"Remove",callback:function(){this.image.remove()}}),e.DefineIcon("imageBack",{NAME:"arrow-left",SVG_KEY:"back"}),e.RegisterCommand("imageBack",{title:"Back",undo:!1,focus:!1,back:!0,callback:function(){this.image.back()},refresh:function(e){this.$,this.image.get()||this.opts.toolbarInline?(e.removeClass("fr-hidden"),e.next(".fr-separator").removeClass("fr-hidden")):(e.addClass("fr-hidden"),e.next(".fr-separator").addClass("fr-hidden"))}}),e.RegisterCommand("imageDismissError",{title:"OK",undo:!1,callback:function(){this.image.hideProgressBar(!0)}}),e.DefineIcon("imageStyle",{NAME:"magic",SVG_KEY:"imageClass"}),e.RegisterCommand("imageStyle",{title:"Style",type:"dropdown",html:function(){var e='<ul class="fr-dropdown-list" role="presentation">',n=this.opts.imageStyles;for(var r in n)if(n.hasOwnProperty(r)){var a=n[r];"object"==t(a)&&(a=a.title),e+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="imageStyle" data-param1="'.concat(r,'">').concat(this.language.translate(a),"</a></li>")}return e+"</ul>"},callback:function(e,t){this.image.applyStyle(t)},refreshOnShow:function(e,t){var n=this.$,r=this.image.getEl();r&&t.find(".fr-command").each((function(){var e=n(this).data("param1"),t=r.hasClass(e);n(this).toggleClass("fr-active",t).attr("aria-selected",t)}))}}),e.DefineIcon("imageAlt",{NAME:"info",SVG_KEY:"imageAltText"}),e.RegisterCommand("imageAlt",{undo:!1,focus:!1,popup:!0,title:"Alternative Text",callback:function(){this.image.showAltPopup()}}),e.RegisterCommand("imageSetAlt",{undo:!0,focus:!1,title:"Update",refreshAfterCallback:!1,callback:function(){this.image.setAlt()}}),e.DefineIcon("imageSize",{NAME:"arrows-alt",SVG_KEY:"imageSize"}),e.RegisterCommand("imageSize",{undo:!1,focus:!1,popup:!0,title:"Change Size",callback:function(){this.image.showSizePopup()}}),e.RegisterCommand("imageSetSize",{undo:!0,focus:!1,title:"Update",refreshAfterCallback:!1,callback:function(){this.image.setSize()}}),e.DefineIcon("imageCaption",{NAME:"commenting",FA5NAME:"comment-alt",SVG_KEY:"imageCaption"}),e.RegisterCommand("imageCaption",{undo:!0,focus:!1,title:"Image Caption",refreshAfterCallback:!0,callback:function(){this.image.toggleCaption()},refresh:function(e){this.image.get()&&e.toggleClass("fr-active",this.image.hasCaption())}})}(n(80214))},35020:function(e,t,n){!function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e,Object.assign(e.DEFAULTS,{inlineClasses:{"fr-class-code":"Code","fr-class-highlighted":"Highlighted","fr-class-transparency":"Transparent"}}),e.PLUGINS.inlineClass=function(e){var t=e.$;return{apply:function(t){e.format.toggle("span",{class:t})},refreshOnShow:function(n,r){r.find(".fr-command").each((function(){var n=t(this).data("param1"),r=e.format.is("span",{class:n});t(this).toggleClass("fr-active",r).attr("aria-selected",r)}))}}},e.RegisterCommand("inlineClass",{type:"dropdown",title:"Inline Class",html:function(){var e='<ul class="fr-dropdown-list" role="presentation">',t=this.opts.inlineClasses;for(var n in t)t.hasOwnProperty(n)&&(e+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="inlineClass" data-param1="'.concat(n,'" title="').concat(t[n],'">').concat(t[n],"</a></li>"));return e+"</ul>"},callback:function(e,t){this.inlineClass.apply(t)},refreshOnShow:function(e,t){this.inlineClass.refreshOnShow(e,t)},plugin:"inlineClass"}),e.DefineIcon("inlineClass",{NAME:"tag",SVG_KEY:"inlineClass"})}(n(80214))},71630:function(e,t,n){!function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e,Object.assign(e.DEFAULTS,{inlineStyles:{"Big Red":"font-size: 20px; color: red;","Small Blue":"font-size: 14px; color: blue;"}}),e.PLUGINS.inlineStyle=function(e){return{apply:function(t){for(var n=t.split(";"),r=0;r<n.length;r++){var a=n[r].split(":");n[r].length&&2==a.length&&e.format.applyStyle(a[0].trim(),a[1].trim())}}}},e.RegisterCommand("inlineStyle",{type:"dropdown",html:function(){var e='<ul class="fr-dropdown-list" role="presentation">',t=this.opts.inlineStyles;for(var n in t)if(t.hasOwnProperty(n)){var r=t[n]+(-1===t[n].indexOf("display:block;")?" display:block;":"");e+='<li role="presentation"><span style="'.concat(r,'" role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="inlineStyle" data-param1="').concat(t[n],'" title="').concat(this.language.translate(n),'">').concat(this.language.translate(n),"</a></span></li>")}return e+"</ul>"},title:"Inline Style",callback:function(e,t){this.inlineStyle.apply(t)},plugin:"inlineStyle"}),e.DefineIcon("inlineStyle",{NAME:"paint-brush",SVG_KEY:"inlineStyle"})}(n(80214))},86392:function(e,t,n){!function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e,Object.assign(e.DEFAULTS,{lineBreakerTags:["table","hr","form","dl","span.fr-video",".fr-embedly","img"],lineBreakerOffset:15,lineBreakerHorizontalOffset:10}),e.PLUGINS.lineBreaker=function(t){var n,r,a,o=t.$;function i(e,r){var a,i,s,l,c,d,f,p;if(null==e)c=(l=r.parent()).offset().top,a=(f=r.offset().top)-Math.min((f-c)/2,t.opts.lineBreakerOffset),s=l.outerWidth(),i=l.offset().left;else if(null==r)(d=(l=e.parent()).offset().top+l.outerHeight())<(p=e.offset().top+e.outerHeight())&&(d=(l=o(l).parent()).offset().top+l.outerHeight()),a=p+Math.min(Math.abs(d-p)/2,t.opts.lineBreakerOffset),s=l.outerWidth(),i=l.offset().left;else{l=e.parent();var u=e.offset().top+e.height(),h=r.offset().top;if(h<u)return!1;a=(u+h)/2,s=l.outerWidth(),i=l.offset().left}if(t.opts.iframe){var g=t.helpers.getPX(t.$wp.find(".fr-iframe").css("padding-top")),m=t.helpers.getPX(t.$wp.find(".fr-iframe").css("padding-left"));i+=t.$iframe.offset().left-t.helpers.scrollLeft()+m,a+=t.$iframe.offset().top-t.helpers.scrollTop()+g}t.$box.append(n),n.css("top",a-t.win.pageYOffset),n.css("left",i-t.win.pageXOffset),n.css("width",s),n.data("tag1",e),n.data("tag2",r),n.addClass("fr-visible").data("instance",t)}function s(e){if(e){var n=o(e);if(0===t.$el.find(n).length)return null;if(e.nodeType!=Node.TEXT_NODE&&n.is(t.opts.lineBreakerTags.join(",")))return n;if(0<n.parents(t.opts.lineBreakerTags.join(",")).length)return e=n.parents(t.opts.lineBreakerTags.join(",")).get(0),0!==t.$el.find(o(e)).length&&o(e).is(t.opts.lineBreakerTags.join(","))?o(e):null}return null}function l(e,n){var r=t.doc.elementFromPoint(e,n);return r&&!o(r).closest(".fr-line-breaker").length&&!t.node.isElement(r)&&r!=t.$wp.get(0)&&function(e){if(void 0!==e.inFroalaWrapper)return e.inFroalaWrapper;for(var n=e;e.parentNode&&e.parentNode!==t.$wp.get(0);)e=e.parentNode;return n.inFroalaWrapper=e.parentNode==t.$wp.get(0),n.inFroalaWrapper}(r)?r:null}function c(e,n,r){for(var a=r,o=null;a<=t.opts.lineBreakerOffset&&!o;)(o=l(e,n-a))||(o=l(e,n+a)),a+=r;return o}function d(e,n,r){for(var a=null,o=100;!a&&e>t.$box.offset().left&&e<t.$box.offset().left+t.$box.outerWidth()&&0<o;)(a=l(e,n))||(a=c(e,n,5)),"left"==r?e-=t.opts.lineBreakerHorizontalOffset:e+=t.opts.lineBreakerHorizontalOffset,o-=t.opts.lineBreakerHorizontalOffset;return a}function f(e){var r=a=null,o=null,l=t.doc.elementFromPoint(e.pageX-t.win.pageXOffset,e.pageY-t.win.pageYOffset);(r=l&&("HTML"==l.tagName||"BODY"==l.tagName||t.node.isElement(l)||0<=(l.getAttribute("class")||"").indexOf("fr-line-breaker"))?((o=c(e.pageX-t.win.pageXOffset,e.pageY-t.win.pageYOffset,1))||(o=d(e.pageX-t.win.pageXOffset-t.opts.lineBreakerHorizontalOffset,e.pageY-t.win.pageYOffset,"left")),o||(o=d(e.pageX-t.win.pageXOffset+t.opts.lineBreakerHorizontalOffset,e.pageY-t.win.pageYOffset,"right")),s(o)):s(l))?function(e,r){var a,o,l=e.offset().top,c=e.offset().top+e.outerHeight();if(Math.abs(c-r)<=t.opts.lineBreakerOffset||Math.abs(r-l)<=t.opts.lineBreakerOffset)if(Math.abs(c-r)<Math.abs(r-l)){for(var d=(o=e.get(0)).nextSibling;d&&d.nodeType==Node.TEXT_NODE&&0===d.textContent.length;)d=d.nextSibling;if(!d)return i(e,null),!0;if(a=s(d))return i(e,a),!0}else{if(!(o=e.get(0)).previousSibling)return i(null,e),!0;if(a=s(o.previousSibling))return i(a,e),!0}n.removeClass("fr-visible").removeData("instance")}(r,e.pageY):t.core.sameInstance(n)&&n.removeClass("fr-visible").removeData("instance")}function p(e){return!(n.hasClass("fr-visible")&&!t.core.sameInstance(n))&&(t.popups.areVisible()||t.el.querySelector(".fr-selected-cell")?(n.removeClass("fr-visible"),!0):void(!1!==r||t.edit.isDisabled()||(a&&clearTimeout(a),a=setTimeout(f,30,e))))}function u(){a&&clearTimeout(a),n&&n.hasClass("fr-visible")&&n.removeClass("fr-visible").removeData("instance")}var h=function(){r=!0,u()},g=function(){r=!1};function m(r){r.preventDefault();var a=n.data("instance")||t;n.removeClass("fr-visible").removeData("instance");var o=n.data("tag1"),i=n.data("tag2"),s=t.html.defaultTag();null==o?s&&"TD"!=i.parent().get(0).tagName&&0===i.parents(s).length?i.before("<".concat(s,">").concat(e.MARKERS,"<br></").concat(s,">")):i.before("".concat(e.MARKERS,"<br>")):s&&"TD"!=o.parent().get(0).tagName&&0===o.parents(s).length?o.after("<".concat(s,">").concat(e.MARKERS,"<br></").concat(s,">")):o.after("".concat(e.MARKERS,"<br>")),a.selection.restore(),t.toolbar.enable()}return{_init:function(){if(!t.$wp)return!1;t.shared.$line_breaker||(t.shared.$line_breaker=o(document.createElement("div")).attr("class","fr-line-breaker").html('<a class="fr-floating-btn" role="button" tabIndex="-1" title="'.concat(t.language.translate("Break"),'"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><rect x="17" y="7" width="2" height="8"/><rect x="10" y="13" width="7" height="2"/><path d="M10.000,10.000 L10.000,18.013 L5.000,14.031 L10.000,10.000 Z"/></svg></a>'))),n=t.shared.$line_breaker,t.events.on("shared.destroy",(function(){n.html("").removeData().remove(),n=null}),!0),t.events.on("destroy",(function(){n.removeData("instance").removeClass("fr-visible"),o("body").first().append(n),clearTimeout(a)}),!0),t.events.$on(n,"mousemove",(function(e){e.stopPropagation()}),!0),t.events.bindClick(n,"a",m),r=!1,t.events.$on(t.$win,"mousemove",p),t.events.$on(o(t.win),"scroll",u),t.events.on("popups.show.table.edit",u),t.events.on("commands.after",u),t.events.$on(o(t.win),"mousedown",h),t.events.$on(o(t.win),"mouseup",g)}}}}(n(80214))},76067:function(e,t,n){!function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e,Object.assign(e.DEFAULTS,{lineHeights:{Default:"",Single:"1",1.15:"1.15",1.5:"1.5",Double:"2"}}),e.PLUGINS.lineHeight=function(e){var t=e.$;return{_init:function(){},apply:function(n){e.selection.save(),e.html.wrap(!0,!0,!0,!0),e.selection.restore();var r=e.selection.blocks();r.length&&t(r[0]).parent().is("td")&&e.format.applyStyle("line-height",n.toString()),e.selection.save();for(var a=0;a<r.length;a++)t(r[a]).css("line-height",n),""===t(r[a]).attr("style")&&t(r[a]).removeAttr("style");e.html.unwrap(),e.selection.restore()},refreshOnShow:function(n,r){var a=e.selection.blocks();if(a.length){var o=t(a[0]);r.find(".fr-command").each((function(){var e=t(this).data("param1"),n=o.attr("style"),r=0<=(n||"").indexOf("line-height: "+e+";");if(n){var a=n.substring(n.indexOf("line-height")),i=a.substr(0,a.indexOf(";")),s=i&&i.split(":")[1];s&&s.length||"Default"!==o.text()||(r=!0)}n&&-1!==n.indexOf("line-height")||""!==e||(r=!0),t(this).toggleClass("fr-active",r).attr("aria-selected",r)}))}}}},e.RegisterCommand("lineHeight",{type:"dropdown",html:function(){var e='<ul class="fr-dropdown-list" role="presentation">',t=this.opts.lineHeights;for(var n in t)t.hasOwnProperty(n)&&(e+='<li role="presentation"><a class="fr-command '.concat(n,'" tabIndex="-1" role="option" data-cmd="lineHeight" data-param1="').concat(t[n],'" title="').concat(this.language.translate(n),'">').concat(this.language.translate(n),"</a></li>"));return e+"</ul>"},title:"Line Height",callback:function(e,t){this.lineHeight.apply(t)},refreshOnShow:function(e,t){this.lineHeight.refreshOnShow(e,t)},plugin:"lineHeight"}),e.DefineIcon("lineHeight",{NAME:"arrows-v",FA5NAME:"arrows-alt-v",SVG_KEY:"lineHeight"})}(n(80214))},72529:function(e,t,n){!function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e,Object.assign(e.POPUP_TEMPLATES,{"link.edit":"[_BUTTONS_]","link.insert":"[_BUTTONS_][_INPUT_LAYER_]"}),Object.assign(e.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}),e.PLUGINS.link=function(t){var n=t.$;function r(){var e=t.image?t.image.get():null;if(e||!t.$wp)return"A"==t.el.tagName?t.el:e&&e.get(0).parentNode&&"A"==e.get(0).parentNode.tagName?e.get(0).parentNode:void 0;var r=t.selection.ranges(0).commonAncestorContainer;try{r&&(r.contains&&r.contains(t.el)||!t.el.contains(r)||t.el==r)&&(r=null)}catch(e){r=null}if(r&&"A"===r.tagName)return r;var a=t.selection.element(),o=t.selection.endElement();"A"==a.tagName||t.node.isElement(a)||(a=n(a).parentsUntil(t.$el,"a").first().get(0)),"A"==o.tagName||t.node.isElement(o)||(o=n(o).parentsUntil(t.$el,"a").first().get(0));try{o&&(o.contains&&o.contains(t.el)||!t.el.contains(o)||t.el==o)&&(o=null)}catch(e){o=null}try{a&&(a.contains&&a.contains(t.el)||!t.el.contains(a)||t.el==a)&&(a=null)}catch(e){a=null}return o&&o==a&&"A"==o.tagName?(t.browser.msie||t.helpers.isMobile())&&(t.selection.info(a).atEnd||t.selection.info(a).atStart)?null:a:null}function a(){var e,n,r,a,o=t.image?t.image.get():null,i=[];if(o)"A"==o.get(0).parentNode.tagName&&i.push(o.get(0).parentNode);else if(t.win.getSelection){var s=t.win.getSelection();if(s.getRangeAt&&s.rangeCount){a=t.doc.createRange();for(var l=0;l<s.rangeCount;++l)if((n=(e=s.getRangeAt(l)).commonAncestorContainer)&&1!=n.nodeType&&(n=n.parentNode),n&&"a"==n.nodeName.toLowerCase())i.push(n);else{r=n.getElementsByTagName("a");for(var c=0;c<r.length;++c)a.selectNodeContents(r[c]),a.compareBoundaryPoints(e.END_TO_START,e)<1&&-1<a.compareBoundaryPoints(e.START_TO_END,e)&&i.push(r[c])}}}else if(t.doc.selection&&"Control"!=t.doc.selection.type)if("a"==(n=(e=t.doc.selection.createRange()).parentElement()).nodeName.toLowerCase())i.push(n);else{r=n.getElementsByTagName("a"),a=t.doc.body.createTextRange();for(var d=0;d<r.length;++d)a.moveToElementText(r[d]),-1<a.compareEndPoints("StartToEnd",e)&&a.compareEndPoints("EndToStart",e)<1&&i.push(r[d])}return i}function o(a){if(t.core.hasFocus()){if(s(),a&&"keyup"===a.type&&(a.altKey||a.which==e.KEYCODE.ALT))return!0;setTimeout((function(){if(!a||a&&(1==a.which||"mouseup"!=a.type)){var o=r(),s=t.image?t.image.get():null;if(o&&!s){if(t.image){var l=t.node.contents(o);if(1==l.length&&"IMG"==l[0].tagName){var c=t.selection.ranges(0);return 0===c.startOffset&&0===c.endOffset?n(o).before(e.MARKERS):n(o).after(e.MARKERS),t.selection.restore(),!1}}a&&a.stopPropagation(),i(o)}}}),t.helpers.isIOS()?100:0)}}function i(e){var a=t.popups.get("link.edit");a||(a=function(){var e="";1<=t.opts.linkEditButtons.length&&("A"==t.el.tagName&&0<=t.opts.linkEditButtons.indexOf("linkRemove")&&t.opts.linkEditButtons.splice(t.opts.linkEditButtons.indexOf("linkRemove"),1),e='<div class="fr-buttons">'.concat(t.button.buildList(t.opts.linkEditButtons),"</div>"));var n={buttons:e},a=t.popups.create("link.edit",n);return t.$wp&&t.events.$on(t.$wp,"scroll.link-edit",(function(){r()&&t.popups.isVisible("link.edit")&&i(r())})),a}());var o=n(e);t.popups.isVisible("link.edit")||t.popups.refresh("link.edit"),t.popups.setContainer("link.edit",t.$sc);var s=o.offset().left+o.outerWidth()/2,l=o.offset().top+o.outerHeight();t.popups.show("link.edit",s,l,o.outerHeight(),!0)}function s(){t.popups.hide("link.edit")}function l(){var e=t.popups.get("link.insert"),a=r();if(a){var o,i,s=n(a),l=e.find('input.fr-link-attr[type="text"]'),c=e.find('input.fr-link-attr[type="checkbox"]');for(o=0;o<l.length;o++)(i=n(l[o])).val(s.attr(i.attr("name")||""));for(c.attr("checked",!1),o=0;o<c.length;o++)i=n(c[o]),s.attr(i.attr("name"))==i.data("checked")&&i.attr("checked",!0);e.find('input.fr-link-attr[type="text"][name="text"]').val(s.text())}else e.find('input.fr-link-attr[type="text"]').val(""),e.find('input.fr-link-attr[type="checkbox"]').attr("checked",!1),e.find('input.fr-link-attr[type="text"][name="text"]').val(t.selection.text());e.find("input.fr-link-attr").trigger("change"),t.image&&t.image.get()?e.find('.fr-link-attr[name="text"]').parent().hide():e.find('.fr-link-attr[name="text"]').parent().show()}function c(e){if(e)return t.popups.onRefresh("link.insert",l),!0;var n="";1<=t.opts.linkInsertButtons.length&&(n='<div class="fr-buttons fr-tabs">'.concat(t.button.buildList(t.opts.linkInsertButtons),"</div>"));var r="",a=0;for(var o in r='<div class="fr-link-insert-layer fr-layer fr-active" id="fr-link-insert-layer-'.concat(t.id,'">'),r+='<div class="fr-input-line"><input id="fr-link-insert-layer-url-'.concat(t.id,'" name="href" type="text" class="fr-link-attr" placeholder="').concat(t.language.translate("URL"),'" tabIndex="').concat(++a,'"></div>'),t.opts.linkText&&(r+='<div class="fr-input-line"><input id="fr-link-insert-layer-text-'.concat(t.id,'" name="text" type="text" class="fr-link-attr" placeholder="').concat(t.language.translate("Text"),'" tabIndex="').concat(++a,'"></div>')),t.opts.linkAttributes)if(t.opts.linkAttributes.hasOwnProperty(o)){var i=t.opts.linkAttributes[o];r+='<div class="fr-input-line"><input name="'.concat(o,'" type="text" class="fr-link-attr" placeholder="').concat(t.language.translate(i),'" tabIndex="').concat(++a,'"></div>')}t.opts.linkAlwaysBlank||(r+='<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(t.id,'" tabIndex="').concat(++a,'"><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(t.id,'">').concat(t.language.translate("Open in new tab"),"</label></div>"));var s={buttons:n,input_layer:r+='<div class="fr-action-buttons"><button class="fr-command fr-submit" role="button" data-cmd="linkInsert" href="#" tabIndex="'.concat(++a,'" type="button">').concat(t.language.translate("Insert"),"</button></div></div>")},c=t.popups.create("link.insert",s);return t.$wp&&t.events.$on(t.$wp,"scroll.link-insert",(function(){(t.image?t.image.get():null)&&t.popups.isVisible("link.insert")&&p(),t.popups.isVisible("link.insert")&&f()})),c}function d(i,s,l){if(void 0===l&&(l={}),!1===t.events.trigger("link.beforeInsert",[i,s,l]))return!1;var c=t.image?t.image.get():null;c||"A"==t.el.tagName?"A"==t.el.tagName&&t.$el.focus():(t.selection.restore(),t.popups.hide("link.insert"));var d=i;if(t.opts.linkConvertEmailAddress&&t.helpers.isEmail(i)&&!/^mailto:.*/i.test(i)&&(i="mailto:".concat(i)),""===t.opts.linkAutoPrefix||new RegExp("^("+e.LinkProtocols.join("|")+"):.","i").test(i)||/^data:image.*/i.test(i)||/^(https?:|ftps?:|file:|)\/\//i.test(i)||/^([A-Za-z]:(\\){1,2}|[A-Za-z]:((\\){1,2}[^\\]+)+)(\\)?$/i.test(i)||["/","{","[","#","(","."].indexOf((i||"")[0])<0&&(i=t.opts.linkAutoPrefix+t.helpers.sanitizeURL(i)),i=t.helpers.sanitizeURL(i),t.opts.linkAlwaysBlank&&(l.target="_blank"),t.opts.linkAlwaysNoFollow&&(l.rel="nofollow"),t.helpers.isEmail(d)&&(l.target=null,l.rel=null),"_blank"==l.target?(t.opts.linkNoOpener&&(l.rel?l.rel+=" noopener":l.rel="noopener"),t.opts.linkNoReferrer&&(l.rel?l.rel+=" noreferrer":l.rel="noreferrer")):null==l.target&&(l.rel?l.rel=l.rel.replace(/noopener/,"").replace(/noreferrer/,""):l.rel=null),s=s||"",i===t.opts.linkAutoPrefix)return t.popups.get("link.insert").find('input[name="href"]').addClass("fr-error"),t.events.trigger("link.bad",[d]),!1;var f,p=r();if(p){if((f=n(p)).attr("href",i),0<s.length&&f.text()!=s&&!c){for(var u=f.get(0);1===u.childNodes.length&&u.childNodes[0].nodeType==Node.ELEMENT_NODE;)u=u.childNodes[0];n(u).text(s)}for(var h in c||f.prepend(e.START_MARKER).append(e.END_MARKER),l)l[h]?f.attr(h,l[h]):f.removeAttr(h);c||t.selection.restore()}else{c?(c.wrap('<a href="'.concat(i,'"></a>')),t.image.hasCaption()&&c.parent().append(c.parents(".fr-img-caption").find(".fr-inner"))):(t.format.remove("a"),t.selection.isCollapsed()?(s=0===s.length?d:s,t.html.insert('<a href="'.concat(i,'">').concat(e.START_MARKER).concat(s.replace(/&/g,"&").replace(/</,"<",">",">")).concat(e.END_MARKER,"</a>")),t.selection.restore()):0<s.length&&s!=t.selection.text().replace(/\n/g,"")?(t.selection.remove(),t.html.insert('<a href="'.concat(i,'">').concat(e.START_MARKER).concat(s.replace(/&/g,"&")).concat(e.END_MARKER,"</a>")),t.selection.restore()):(function(){if(!t.selection.isCollapsed()){t.selection.save();for(var e=t.$el.find(".fr-marker").addClass("fr-unprocessed").toArray();e.length;){var r=n(e.pop());r.removeClass("fr-unprocessed");var a=t.node.deepestParent(r.get(0));if(a){for(var o=r.get(0),i="",s="";o=o.parentNode,t.node.isBlock(o)||(i+=t.node.closeTagString(o),s=t.node.openTagString(o)+s),o!=a;);var l=t.node.openTagString(r.get(0))+r.html()+t.node.closeTagString(r.get(0));r.replaceWith('<span id="fr-break"></span>');var c=a.outerHTML;c=(c=c.replace(/<span id="fr-break"><\/span>/g,i+l+s)).replace(s+i,""),a.outerHTML=c}e=t.$el.find(".fr-marker.fr-unprocessed").toArray()}t.html.cleanEmptyTags(),t.selection.restore()}}(),t.format.apply("a",{href:i})));for(var g=a(),m=0;m<g.length;m++)(f=n(g[m])).attr(l),f.removeAttr("_moz_dirty");1==g.length&&t.$wp&&!c&&(n(g[0]).prepend(e.START_MARKER).append(e.END_MARKER),t.selection.restore())}if(c){var v=t.popups.get("link.insert");v&&v.find("input:focus").blur(),t.image.edit(c)}else o()}function f(){s();var e=r();if(e){var a=t.popups.get("link.insert");a||(a=c()),t.popups.isVisible("link.insert")||(t.popups.refresh("link.insert"),t.selection.save(),t.helpers.isMobile()&&(t.events.disableBlur(),t.$el.blur(),t.events.enableBlur())),t.popups.setContainer("link.insert",t.$sc);var o=(t.image?t.image.get():null)||n(e),i=o.offset().left+o.outerWidth()/2,l=o.offset().top+o.outerHeight();t.popups.show("link.insert",i,l,o.outerHeight(),!0)}}function p(){var e=t.image?t.image.getEl():null;if(e){var n=t.popups.get("link.insert");t.image.hasCaption()&&(e=e.find(".fr-img-wrap")),n||(n=c()),l(),t.popups.setContainer("link.insert",t.$sc);var r=e.offset().left+e.outerWidth()/2,a=e.offset().top+e.outerHeight();t.popups.show("link.insert",r,a,e.outerHeight(),!0)}}return{_init:function(){t.events.on("keyup",(function(t){t.which!=e.KEYCODE.ESC&&o(t)})),t.events.on("window.mouseup",o),t.events.$on(t.$el,"click","a",(function(e){t.edit.isDisabled()&&e.preventDefault()})),t.helpers.isMobile()&&t.events.$on(t.$doc,"selectionchange",o),c(!0),"A"==t.el.tagName&&t.$el.addClass("fr-view"),t.events.on("toolbar.esc",(function(){if(t.popups.isVisible("link.edit"))return t.events.disableBlur(),t.events.focus(),!1}),!0)},remove:function(){var e=r(),a=t.image?t.image.get():null;if(!1===t.events.trigger("link.beforeRemove",[e]))return!1;a&&e?(a.unwrap(),t.image.edit(a)):e&&(t.selection.save(),n(e).replaceWith(n(e).html()),t.selection.restore(),s())},showInsertPopup:function(){var e=t.$tb.find('.fr-command[data-cmd="insertLink"]'),n=t.popups.get("link.insert");if(n||(n=c()),!n.hasClass("fr-active"))if(t.popups.refresh("link.insert"),t.popups.setContainer("link.insert",t.$tb||t.$sc),e.isVisible()){var r=t.button.getPosition(e),a=r.left,o=r.top;t.popups.show("link.insert",a,o,e.outerHeight())}else t.position.forSelection(n),t.popups.show("link.insert")},usePredefined:function(e){var r,a,o=t.opts.linkList[e],i=t.popups.get("link.insert"),s=i.find('input.fr-link-attr[type="text"]'),l=i.find('input.fr-link-attr[type="checkbox"]');for(o.rel&&(i.rel=o.rel),a=0;a<s.length;a++)o[(r=n(s[a])).attr("name")]?(r.val(o[r.attr("name")]),r.toggleClass("fr-not-empty",!0)):"text"!=r.attr("name")&&r.val("");for(a=0;a<l.length;a++)(r=n(l[a])).attr("checked",r.data("checked")==o[r.attr("name")]);t.accessibility.focusPopup(i)},insertCallback:function(){var e,r,a=t.popups.get("link.insert"),o=a.find('input.fr-link-attr[type="text"]'),i=a.find('input.fr-link-attr[type="checkbox"]'),s=(o.filter('[name="href"]').val()||"").trim(),l=o.filter('[name="text"]').val(),c={};for(r=0;r<o.length;r++)e=n(o[r]),["href","text"].indexOf(e.attr("name"))<0&&(c[e.attr("name")]=e.val());for(r=0;r<i.length;r++)(e=n(i[r])).is(":checked")?c[e.attr("name")]=e.data("checked"):c[e.attr("name")]=e.data("unchecked")||null;a.rel&&(c.rel=a.rel);var f=t.helpers.scrollTop();d(s,l,c),n(t.o_win).scrollTop(f)},insert:d,update:f,get:r,allSelected:a,back:function(){t.image&&t.image.get()?t.image.back():(t.events.disableBlur(),t.selection.restore(),t.events.enableBlur(),r()&&t.$wp?(t.selection.restore(),s(),o()):"A"==t.el.tagName?(t.$el.focus(),o()):(t.popups.hide("link.insert"),t.toolbar.showInline()))},imageLink:p,applyStyle:function(e,a,i){void 0===i&&(i=t.opts.linkMultipleStyles),void 0===a&&(a=t.opts.linkStyles);var s=r();if(!s)return!1;if(!i){var l=Object.keys(a);l.splice(l.indexOf(e),1),n(s).removeClass(l.join(" "))}n(s).toggleClass(e),o()}}},e.DefineIcon("insertLink",{NAME:"link",SVG_KEY:"insertLink"}),e.RegisterShortcut(e.KEYCODE.K,"insertLink",null,"K"),e.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"}),e.DefineIcon("linkOpen",{NAME:"external-link",FA5NAME:"external-link-alt",SVG_KEY:"openLink"}),e.RegisterCommand("linkOpen",{title:"Open Link",undo:!1,refresh:function(e){this.link.get()?e.removeClass("fr-hidden"):e.addClass("fr-hidden")},callback:function(){var e=this.link.get();e&&(-1!==e.href.indexOf("mailto:")?this.o_win.open(e.href).close():(e.target||(e.target="_self"),this.browser.msie||this.browser.edge?this.o_win.open(e.href,e.target):this.o_win.open(e.href,e.target,"noopener")),this.popups.hide("link.edit"))},plugin:"link"}),e.DefineIcon("linkEdit",{NAME:"edit",SVG_KEY:"edit"}),e.RegisterCommand("linkEdit",{title:"Edit Link",undo:!1,refreshAfterCallback:!1,popup:!0,callback:function(){this.link.update()},refresh:function(e){this.link.get()?e.removeClass("fr-hidden"):e.addClass("fr-hidden")},plugin:"link"}),e.DefineIcon("linkRemove",{NAME:"unlink",SVG_KEY:"unlink"}),e.RegisterCommand("linkRemove",{title:"Unlink",callback:function(){this.link.remove()},refresh:function(e){this.link.get()?e.removeClass("fr-hidden"):e.addClass("fr-hidden")},plugin:"link"}),e.DefineIcon("linkBack",{NAME:"arrow-left",SVG_KEY:"back"}),e.RegisterCommand("linkBack",{title:"Back",undo:!1,focus:!1,back:!0,refreshAfterCallback:!1,callback:function(){this.link.back()},refresh:function(e){var t=this.link.get()&&this.doc.hasFocus();this.image&&this.image.get()||t||this.opts.toolbarInline?(e.removeClass("fr-hidden"),e.next(".fr-separator").removeClass("fr-hidden")):(e.addClass("fr-hidden"),e.next(".fr-separator").addClass("fr-hidden"))},plugin:"link"}),e.DefineIcon("linkList",{NAME:"search",SVG_KEY:"search"}),e.RegisterCommand("linkList",{title:"Choose Link",type:"dropdown",focus:!1,undo:!1,refreshAfterCallback:!1,html:function(){for(var e='<ul class="fr-dropdown-list" role="presentation">',t=this.opts.linkList,n=0;n<t.length;n++)e+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="linkList" data-param1="'.concat(n,'">').concat(t[n].displayText||t[n].text,"</a></li>");return e+"</ul>"},callback:function(e,t){this.link.usePredefined(t)},plugin:"link"}),e.RegisterCommand("linkInsert",{focus:!1,refreshAfterCallback:!1,callback:function(){this.link.insertCallback()},refresh:function(e){this.link.get()?e.text(this.language.translate("Update")):e.text(this.language.translate("Insert"))},plugin:"link"}),e.DefineIcon("imageLink",{NAME:"link",SVG_KEY:"insertLink"}),e.RegisterCommand("imageLink",{title:"Insert Link",undo:!1,focus:!1,popup:!0,callback:function(){this.link.imageLink()},refresh:function(e){var t;this.link.get()?((t=e.prev()).hasClass("fr-separator")&&t.removeClass("fr-hidden"),e.addClass("fr-hidden")):((t=e.prev()).hasClass("fr-separator")&&t.addClass("fr-hidden"),e.removeClass("fr-hidden"))},plugin:"link"}),e.DefineIcon("linkStyle",{NAME:"magic",SVG_KEY:"linkStyles"}),e.RegisterCommand("linkStyle",{title:"Style",type:"dropdown",html:function(){var e='<ul class="fr-dropdown-list" role="presentation">',t=this.opts.linkStyles;for(var n in t)t.hasOwnProperty(n)&&(e+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="linkStyle" data-param1="'.concat(n,'">').concat(this.language.translate(t[n]),"</a></li>"));return e+"</ul>"},callback:function(e,t){this.link.applyStyle(t)},refreshOnShow:function(e,t){var n=this.$,r=this.link.get();if(r){var a=n(r);t.find(".fr-command").each((function(){var e=n(this).data("param1"),t=a.hasClass(e);n(this).toggleClass("fr-active",t).attr("aria-selected",t)}))}},refresh:function(e){this.link.get()?e.removeClass("fr-hidden"):e.addClass("fr-hidden")},plugin:"link"})}(n(80214))},24496:function(e,t,n){!function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e,Object.assign(e.DEFAULTS,{listAdvancedTypes:!0}),e.PLUGINS.lists=function(t){var n=t.$;function r(e){return'<span class="fr-open-'.concat(e.toLowerCase(),'"></span>')}function a(e){return'<span class="fr-close-'.concat(e.toLowerCase(),'"></span>')}function o(e){var o,i;for(o=e.length-1;0<=o;o--)for(i=o-1;0<=i;i--)if(n(e[i]).find(e[o]).length||e[i]==e[o]){e.splice(o,1);break}var s=[];for(o=0;o<e.length;o++){var l=n(e[o]),c=e[o].parentNode,d=l.attr("class");if(l.before(a(c.tagName)),"LI"==c.parentNode.tagName)l.before(a("LI")),l.after(r("LI"));else{var f="";d&&(f+=' class="'.concat(d,'"'));var p="rtl"==t.opts.direction||"rtl"==l.css("direction")?"margin-right":"margin-left";t.helpers.getPX(n(c).css(p))&&0<=(n(c).attr("style")||"").indexOf("".concat(p,":"))&&(f+=' style="'.concat(p,":").concat(t.helpers.getPX(n(c).css(p)),'px;"')),t.html.defaultTag()&&0===l.find(t.html.blockTagsQuery()).length&&l.wrapInner(t.html.defaultTag()+f),t.node.isEmpty(l.get(0),!0)||0!==l.find(t.html.blockTagsQuery()).length||l.append("<br>"),l.append(r("LI")),l.prepend(a("LI"))}l.after(r(c.tagName)),"LI"==c.parentNode.tagName&&(c=c.parentNode.parentNode),s.indexOf(c)<0&&s.push(c)}for(o=0;o<s.length;o++){var u=n(s[o]),h=u.html();h=(h=h.replace(/<span class="fr-close-([a-z]*)"><\/span>/g,"</$1>")).replace(/<span class="fr-open-([a-z]*)"><\/span>/g,"<$1>"),u.replaceWith(t.node.openTagString(u.get(0))+h+t.node.closeTagString(u.get(0)))}t.$el.find("li:empty").remove(),t.$el.find("ul:empty, ol:empty").remove(),t.clean.lists(),t.html.wrap()}function i(e){t.selection.save();for(var r=0;r<e.length;r++){var a=e[r].previousSibling;if(a){var o=n(e[r]).find("> ul, > ol").last().get(0);if(o){var i=n(document.createElement("li"));n(o).prepend(i);for(var s=t.node.contents(e[r])[0];s&&!t.node.isList(s);){var l=s.nextSibling;i.append(s),s=l}n(a).append(n(o)),n(e[r]).remove()}else{var c=n(a).find("> ul, > ol").last().get(0);if(c)n(c).append(n(e[r]));else{var d=n("<".concat(e[r].parentNode.tagName,">"));n(a).append(d),d.append(n(e[r]))}}}}t.clean.lists(),t.selection.restore()}function s(e){t.selection.save(),o(e),t.selection.restore()}function l(e){if("indent"==e||"outdent"==e){var n=!1,r=t.selection.blocks(),a=[],o=r[0].previousSibling||r[0].parentElement;if("outdent"==e){if("LI"==o.tagName||"LI"!=o.parentNode.tagName)return}else if(!r[0].previousSibling||"LI"!=r[0].previousSibling.tagName)return;for(var l=0;l<r.length;l++)"LI"==r[l].tagName?(n=!0,a.push(r[l])):"LI"==r[l].parentNode.tagName&&(n=!0,a.push(r[l].parentNode));n&&("indent"==e?i(a):s(a))}}return{_init:function(){t.events.on("commands.after",l),t.events.on("keydown",(function(n){if(n.which==e.KEYCODE.TAB){for(var r=t.selection.blocks(),a=[],o=0;o<r.length;o++)"LI"==r[o].tagName?a.push(r[o]):"LI"==r[o].parentNode.tagName&&a.push(r[o].parentNode);if(1<a.length||a.length&&(t.selection.info(a[0]).atStart||t.node.isEmpty(a[0])))return n.preventDefault(),n.stopPropagation(),n.shiftKey?s(a):i(a),!1}}),!0)},format:function(e,r){var a,i;for(t.html.syncInputs(),t.selection.save(),t.html.wrap(!0,!0,!0,!0),t.selection.restore(),i=t.selection.blocks(),a=0;a<i.length;a++)"LI"!=i[a].tagName&&"LI"==i[a].parentNode.tagName&&(i[a]=i[a].parentNode);if(t.selection.save(),function(e,t){for(var n=!0,r=0;r<e.length;r++){if("LI"!=e[r].tagName)return!1;e[r].parentNode.tagName!=t&&(n=!1)}return n}(i,e)?r||o(i):function(e,r){!function(e,r){for(var a=[],o=0;o<e.length;o++){var i=e[o].parentNode;"LI"==e[o].tagName&&i.tagName!=r&&a.indexOf(i)<0&&a.push(i)}for(var s=a.length-1;0<=s;s--){var l=n(a[s]);l.replaceWith("<".concat(r.toLowerCase()," ").concat(t.node.attributes(l.get(0)),">").concat(l.html(),"</").concat(r.toLowerCase(),">"))}}(e,r);var a,o=t.html.defaultTag(),i=null;e.length&&(a="rtl"==t.opts.direction||"rtl"==n(e[0]).css("direction")?"margin-right":"margin-left");for(var s=0;s<e.length;s++)if("TD"!=e[s].tagName&&"TH"!=e[s].tagName&&"LI"!=e[s].tagName){var l=t.helpers.getPX(n(e[s]).css(a))||0;(e[s].style.marginLeft=null)===i&&(i=l);var c=0<i?"<".concat(r,' style="').concat(a,": ").concat(i,'px ">'):"<".concat(r,">"),d="</".concat(r,">");for(l-=i;0<l/t.opts.indentMargin;)c+="</".concat(r,">"),d+=d,l-=t.opts.indentMargin;o&&e[s].tagName.toLowerCase()==o?n(e[s]).replaceWith("".concat(c,"<li").concat(t.node.attributes(e[s]),">").concat(n(e[s]).html(),"</li>").concat(d)):n(e[s]).wrap("".concat(c,"<li></li>").concat(d))}t.clean.lists()}(i,e),t.html.unwrap(),t.selection.restore(),r=r||"default"){for(i=t.selection.blocks(),a=0;a<i.length;a++)"LI"!=i[a].tagName&&"LI"==i[a].parentNode.tagName&&(i[a]=i[a].parentNode);for(a=0;a<i.length;a++)"LI"==i[a].tagName&&(n(i[a].parentNode).css("list-style-type","default"===r?"":r),0===(n(i[a].parentNode).attr("style")||"").length&&n(i[a].parentNode).removeAttr("style"))}},refresh:function(e,r){var a=n(t.selection.element());if(a.get(0)!=t.el){var o=a.get(0);(o="LI"!=o.tagName&&o.firstElementChild&&"LI"!=o.firstElementChild.tagName?a.parents("li").get(0):"LI"==o.tagName||o.firstElementChild?o.firstElementChild&&"LI"==o.firstElementChild.tagName?a.get(0).firstChild:a.get(0):a.parents("li").get(0))&&o.parentNode.tagName==r&&t.el.contains(o.parentNode)&&e.addClass("fr-active")}}}},e.DefineIcon("formatOLSimple",{NAME:"list-ol",SVG_KEY:"orderedList"}),e.RegisterCommand("formatOLSimple",{title:"Ordered List",type:"button",options:{default:"Default",circle:"Circle",disc:"Disc",square:"Square"},refresh:function(e){this.lists.refresh(e,"OL")},callback:function(e,t){this.lists.format("OL",t)},plugin:"lists"}),e.RegisterCommand("formatUL",{title:"Unordered List",type:"button",hasOptions:function(){return this.opts.listAdvancedTypes},options:{default:"Default",circle:"Circle",disc:"Disc",square:"Square"},refresh:function(e){this.lists.refresh(e,"UL")},callback:function(e,t){this.lists.format("UL",t)},plugin:"lists"}),e.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(e){this.lists.refresh(e,"OL")},callback:function(e,t){this.lists.format("OL",t)},plugin:"lists"}),e.DefineIcon("formatUL",{NAME:"list-ul",SVG_KEY:"unorderedList"}),e.DefineIcon("formatOL",{NAME:"list-ol",SVG_KEY:"orderedList"})}(n(80214))},77154:function(e,t,n){!function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e,Object.assign(e.DEFAULTS,{paragraphFormat:{N:"Normal",H1:"Heading 1",H2:"Heading 2",H3:"Heading 3",H4:"Heading 4",PRE:"Code"},paragraphFormatSelection:!1,paragraphDefaultSelection:"Paragraph Format"}),e.PLUGINS.paragraphFormat=function(e){var t=e.$;function n(n,r){var a=e.html.defaultTag();if(r&&r.toLowerCase()!=a)if(0<n.find("ul, ol").length){var o=t("<"+r+">");n.prepend(o);for(var i=e.node.contents(n.get(0))[0];i&&["UL","OL"].indexOf(i.tagName)<0;){var s=i.nextSibling;o.append(i),i=s}}else n.html("<"+r+">"+n.html()+"</"+r+">")}return{apply:function(r){"N"==r&&(r=e.html.defaultTag()),e.selection.save(),e.html.wrap(!0,!0,!e.opts.paragraphFormat.BLOCKQUOTE,!0,!0),e.selection.restore();var a,o,i,s,l,c,d,f,p=e.selection.blocks();e.selection.save(),e.$el.find("pre").attr("skip",!0);for(var u=0;u<p.length;u++)if(p[u].tagName!=r&&!e.node.isList(p[u])){var h=t(p[u]);"LI"==p[u].tagName?n(h,r):"LI"==p[u].parentNode.tagName&&p[u]?(c=h,d=r,f=e.html.defaultTag(),d&&d.toLowerCase()!=f||(d='div class="fr-temp-div"'),c.replaceWith(t("<"+d+">").html(c.html()))):0<=["TD","TH"].indexOf(p[u].parentNode.tagName)?(i=h,s=r,l=e.html.defaultTag(),s||(s='div class="fr-temp-div"'+(e.node.isEmpty(i.get(0),!0)?' data-empty="true"':"")),s.toLowerCase()==l?(e.node.isEmpty(i.get(0),!0)||i.append("<br/>"),i.replaceWith(i.html())):i.replaceWith(t("<"+s+">").html(i.html()))):(a=h,(o=r)||(o='div class="fr-temp-div"'+(e.node.isEmpty(a.get(0),!0)?' data-empty="true"':"")),"H1"!=o&&"H2"!=o&&"H3"!=o&&"H4"!=o&&"H5"!=o||!e.node.attributes(a.get(0)).includes("font-size:")?a.replaceWith(t("<"+o+" "+e.node.attributes(a.get(0))+">").html(a.html()).removeAttr("data-empty")):a.replaceWith(t("<"+o+" "+e.node.attributes(a.get(0)).replace(/font-size:[0-9]+px;?/,"")+">").html(a.html()).removeAttr("data-empty")))}e.$el.find('pre:not([skip="true"]) + pre:not([skip="true"])').each((function(){t(this).prev().append("<br>"+t(this).html()),t(this).remove()})),e.$el.find("pre").removeAttr("skip"),e.html.unwrap(),e.selection.restore()},refreshOnShow:function(t,n){var r=e.selection.blocks();if(r.length){var a=r[0],o="N",i=e.html.defaultTag();a.tagName.toLowerCase()!=i&&a!=e.el&&(o=a.tagName),n.find('.fr-command[data-param1="'+o+'"]').addClass("fr-active").attr("aria-selected",!0)}else n.find('.fr-command[data-param1="N"]').addClass("fr-active").attr("aria-selected",!0)},refresh:function(t){if(e.opts.paragraphFormatSelection){var n=e.selection.blocks();if(n.length){var r=n[0],a="N",o=e.html.defaultTag();r.tagName.toLowerCase()!=o&&r!=e.el&&(a=r.tagName),0<=["LI","TD","TH"].indexOf(a)&&(a="N"),t.find(">span").text(e.language.translate(e.opts.paragraphFormat[a]))}else t.find(">span").text(e.language.translate(e.opts.paragraphFormat.N))}}}},e.RegisterCommand("paragraphFormat",{type:"dropdown",displaySelection:function(e){return e.opts.paragraphFormatSelection},defaultSelection:function(e){return e.language.translate(e.opts.paragraphDefaultSelection)},displaySelectionWidth:80,html:function(){var e='<ul class="fr-dropdown-list" role="presentation">',t=this.opts.paragraphFormat;for(var n in t)if(t.hasOwnProperty(n)){var r=this.shortcuts.get("paragraphFormat."+n);r=r?'<span class="fr-shortcut">'+r+"</span>":"",e+='<li role="presentation"><'+("N"==n?this.html.defaultTag()||"DIV":n)+' style="padding: 0 !important; margin: 0 !important;" role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="paragraphFormat" data-param1="'+n+'" title="'+this.language.translate(t[n])+'">'+this.language.translate(t[n])+"</a></"+("N"==n?this.html.defaultTag()||"DIV":n)+"></li>"}return e+"</ul>"},title:"Paragraph Format",callback:function(e,t){this.paragraphFormat.apply(t)},refresh:function(e){this.paragraphFormat.refresh(e)},refreshOnShow:function(e,t){this.paragraphFormat.refreshOnShow(e,t)},plugin:"paragraphFormat"}),e.DefineIcon("paragraphFormat",{NAME:"paragraph",SVG_KEY:"paragraphFormat"})}(n(80214))},73397:function(e,t,n){!function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e,Object.assign(e.DEFAULTS,{paragraphStyles:{"fr-text-gray":"Gray","fr-text-bordered":"Bordered","fr-text-spaced":"Spaced","fr-text-uppercase":"Uppercase"},paragraphMultipleStyles:!0}),e.PLUGINS.paragraphStyle=function(e){var t=e.$;return{_init:function(){},apply:function(n,r,a){void 0===r&&(r=e.opts.paragraphStyles),void 0===a&&(a=e.opts.paragraphMultipleStyles);var o="";a||((o=Object.keys(r)).splice(o.indexOf(n),1),o=o.join(" ")),e.selection.save(),e.html.wrap(!0,!0,!0,!0),e.selection.restore();var i=e.selection.blocks();e.selection.save();for(var s=t(i[0]).hasClass(n),l=0;l<i.length;l++)t(i[l]).removeClass(o).toggleClass(n,!s),t(i[l]).hasClass("fr-temp-div")&&t(i[l]).removeClass("fr-temp-div"),""===t(i[l]).attr("class")&&t(i[l]).removeAttr("class");e.html.unwrap(),e.selection.restore()},refreshOnShow:function(n,r){var a=e.selection.blocks();if(a.length){var o=t(a[0]);r.find(".fr-command").each((function(){var e=t(this).data("param1"),n=o.hasClass(e);t(this).toggleClass("fr-active",n).attr("aria-selected",n)}))}}}},e.RegisterCommand("paragraphStyle",{type:"dropdown",html:function(){var e='<ul class="fr-dropdown-list" role="presentation">',t=this.opts.paragraphStyles;for(var n in t)t.hasOwnProperty(n)&&(e+='<li role="presentation"><a class="fr-command '.concat(n,'" tabIndex="-1" role="option" data-cmd="paragraphStyle" data-param1="').concat(n,'" title="').concat(this.language.translate(t[n]),'">').concat(this.language.translate(t[n]),"</a></li>"));return e+"</ul>"},title:"Paragraph Style",callback:function(e,t){this.paragraphStyle.apply(t)},refreshOnShow:function(e,t){this.paragraphStyle.refreshOnShow(e,t)},plugin:"paragraphStyle"}),e.DefineIcon("paragraphStyle",{NAME:"magic",SVG_KEY:"paragraphStyle"})}(n(80214))},64936:function(e,t,n){!function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e,Object.assign(e.DEFAULTS,{html2pdf:window.html2pdf}),e.PLUGINS.print=function(e){return{run:function(){!function(t){var n=e.html.get(),r=null;e.shared.print_iframe?r=e.shared.print_iframe:((r=document.createElement("iframe")).name="fr-print",r.style.position="fixed",r.style.top="0",r.style.left="-9999px",r.style.height="100%",r.style.width="0",r.style.overflow="hidden",r.style["z-index"]="2147483647",r.style.tabIndex="-1",e.events.on("shared.destroy",(function(){r.remove()})),e.shared.print_iframe=r);try{document.body.removeChild(r)}catch(e){}document.body.appendChild(r);r.addEventListener("load",(function t(){setTimeout((function(){e.events.disableBlur(),window.frames["fr-print"].focus(),window.frames["fr-print"].print(),e.$win.get(0).focus(),e.events.disableBlur(),e.events.focus()}),0),r.removeEventListener("load",t)}));var a=r.contentWindow;a.document.open(),a.document.write("<!DOCTYPE html><html "+(e.opts.documentReady?'style="margin: 0; padding: 0;"':"")+"><head><title>"+document.title+"</title>"),Array.prototype.forEach.call(document.querySelectorAll("style"),(function(e){e=e.cloneNode(!0),a.document.write(e.outerHTML)}));var o=document.querySelectorAll("link[rel=stylesheet]");Array.prototype.forEach.call(o,(function(e){var t=document.createElement("link");t.rel=e.rel,t.href=e.href,t.media="print",t.type="text/css",t.media="all",a.document.write(t.outerHTML)})),a.document.write('</head><body style="height:auto;text-align: '+("rtl"==e.opts.direction?"right":"left")+"; direction: "+e.opts.direction+"; "+(e.opts.documentReady?" padding: 2cm; width: 17cm; margin: 0;":"")+'"><div class="fr-view">'),a.document.write(n),a.document.write("</div></body></html>"),a.document.close()}()},toPDF:function(){e.opts.html2pdf&&(e.$el.css("text-align","left"),e.opts.html2pdf().set({margin:[10,20],html2canvas:{useCORS:!0}}).from(e.el).save(),setTimeout((function(){e.$el.css("text-align","")}),100))}}},e.DefineIcon("print",{NAME:"print",SVG_KEY:"print"}),e.RegisterCommand("print",{title:"Print",undo:!1,focus:!1,plugin:"print",callback:function(){this.print.run()}}),e.DefineIcon("getPDF",{NAME:"file-pdf-o",FA5NAME:"file-pdf",SVG_KEY:"pdfExport"}),e.RegisterCommand("getPDF",{title:"Download PDF",type:"button",focus:!1,undo:!1,callback:function(){this.print.toPDF()}})}(n(80214))},52034:function(e,t,n){!function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e,Object.assign(e.DEFAULTS,{quickInsertButtons:["image","video","embedly","table","ul","ol","hr"],quickInsertTags:["p","div","h1","h2","h3","h4","h5","h6","pre","blockquote"],quickInsertEnabled:!0}),e.QUICK_INSERT_BUTTONS={},e.DefineIcon("quickInsert",{SVG_KEY:"add",template:"svg"}),e.RegisterQuickInsertButton=function(t,n){e.QUICK_INSERT_BUTTONS[t]=Object.assign({undo:!0},n)},e.RegisterQuickInsertButton("image",{icon:"insertImage",requiredPlugin:"image",title:"Insert Image",undo:!1,callback:function(){var e=this,t=e.$;e.shared.$qi_image_input||(e.shared.$qi_image_input=t(document.createElement("input")).attr("accept","image/"+e.opts.imageAllowedTypes.join(", image/").toLowerCase()).attr("name","quickInsertImage".concat(this.id)).attr("style","display: none;").attr("type","file"),t("body").first().append(e.shared.$qi_image_input),e.events.$on(e.shared.$qi_image_input,"change",(function(){var e=t(this).data("inst");this.files&&(e.quickInsert.hide(),e.image.upload(this.files)),t(this).val("")}),!0)),e.$qi_image_input=e.shared.$qi_image_input,e.helpers.isMobile()&&e.selection.save(),e.events.disableBlur(),e.$qi_image_input.data("inst",e)[0].click()}}),e.RegisterQuickInsertButton("video",{icon:"insertVideo",requiredPlugin:"video",title:"Insert Video",undo:!1,callback:function(){var e=prompt(this.language.translate("Paste the URL of the video you want to insert."));e&&this.video.insertByURL(e)}}),e.RegisterQuickInsertButton("embedly",{icon:"embedly",requiredPlugin:"embedly",title:"Embed URL",undo:!1,callback:function(){var e=prompt(this.language.translate("Paste the URL of any web content you want to insert."));e&&this.embedly.add(e)}}),e.RegisterQuickInsertButton("table",{icon:"insertTable",requiredPlugin:"table",title:"Insert Table",callback:function(){this.table.insert(2,2)}}),e.RegisterQuickInsertButton("ol",{icon:"formatOL",requiredPlugin:"lists",title:"Ordered List",callback:function(){this.lists.format("OL")}}),e.RegisterQuickInsertButton("ul",{icon:"formatUL",requiredPlugin:"lists",title:"Unordered List",callback:function(){this.lists.format("UL")}}),e.RegisterQuickInsertButton("hr",{icon:"insertHR",title:"Insert Horizontal Line",callback:function(){this.commands.insertHR()}}),e.PLUGINS.quickInsert=function(t){var n,r,a=t.$;function o(o){var i,s,l;if(i=o.offset().top-t.$box.offset().top,s=(t.$iframe&&t.$iframe.offset().left||0)+o.offset().left<n.outerWidth()?o.offset().left+n.outerWidth():0-n.outerWidth(),t.opts.enter!=e.ENTER_BR?l=(n.outerHeight()-o.outerHeight())/2:(a(document.createElement("span")).html(e.INVISIBLE_SPACE).insertAfter(o),l=(n.outerHeight()-o.next().outerHeight())/2,o.next().remove()),t.opts.iframe){var f=t.helpers.getPX(t.$wp.find(".fr-iframe").css("padding-top"));i+=t.$iframe.offset().top+f}n.hasClass("fr-on")&&0<=i&&r.css("top",i-l),0<=i&&i-Math.abs(l)<=t.$box.outerHeight()-o.outerHeight()?(n.hasClass("fr-hidden")&&(n.hasClass("fr-on")&&c(),n.removeClass("fr-hidden")),n.css("top",i-l)):n.hasClass("fr-visible")&&(n.addClass("fr-hidden"),d()),n.css("left",s)}function i(i){n||(t.shared.$quick_insert||(t.shared.$quick_insert=a(document.createElement("div")).attr("class","fr-quick-insert").html('<a class="fr-floating-btn" role="button" tabIndex="-1" title="'.concat(t.language.translate("Quick Insert"),'">').concat(t.icon.create("quickInsert"),"</a>"))),n=t.shared.$quick_insert,t.tooltip.bind(t.$box,".fr-quick-insert > a.fr-floating-btn"),t.events.on("destroy",(function(){a("body").first().append(n.removeClass("fr-on")),r&&(d(),a("body").first().append(r.css("left",-9999).css("top",-9999)))}),!0),t.events.on("shared.destroy",(function(){n.html("").removeData().remove(),n=null,r&&(r.html("").removeData().remove(),r=null)}),!0),t.events.on("commands.before",l),t.events.on("commands.after",(function(){t.popups.areVisible()||s()})),t.events.bindClick(t.$box,".fr-quick-insert > a",c),t.events.bindClick(t.$box,".fr-qi-helper > a.fr-btn",(function(n){var r=a(n.currentTarget).data("cmd");if(!1===t.events.trigger("quickInsert.commands.before",[r]))return!1;e.QUICK_INSERT_BUTTONS[r].callback.apply(t,[n.currentTarget]),e.QUICK_INSERT_BUTTONS[r].undo&&t.undo.saveStep(),t.events.trigger("quickInsert.commands.after",[r]),t.quickInsert.hide()})),t.events.$on(t.$wp,"scroll",f),t.events.$on(t.$tb,"transitionend",".fr-more-toolbar",f)),n.hasClass("fr-on")&&d(),t.$box.append(n),o(i),n.data("tag",i),n.addClass("fr-visible")}function s(){if(t.core.hasFocus()){var r=t.selection.element();if(t.opts.enter==e.ENTER_BR||t.node.isBlock(r)||(r=t.node.blockParent(r)),t.opts.enter==e.ENTER_BR&&!t.node.isBlock(r)){var o=t.node.deepestParent(r);o&&(r=o)}r&&(t.opts.enter!=e.ENTER_BR&&t.node.isEmpty(r)&&0<=t.opts.quickInsertTags.indexOf(r.tagName.toLowerCase())||t.opts.enter==e.ENTER_BR&&("BR"==r.tagName&&(!r.previousSibling||"BR"==r.previousSibling.tagName||t.node.isBlock(r.previousSibling))||t.node.isEmpty(r)&&(!r.previousSibling||"BR"==r.previousSibling.tagName||t.node.isBlock(r.previousSibling))&&(!r.nextSibling||"BR"==r.nextSibling.tagName||t.node.isBlock(r.nextSibling))))?n&&n.data("tag").is(a(r))&&n.hasClass("fr-on")?d():t.selection.isCollapsed()&&i(a(r)):l()}}function l(){n&&(n.hasClass("fr-on")&&d(),n.removeClass("fr-visible fr-on"),n.css("left",-9999).css("top",-9999))}function c(o){if(o&&o.preventDefault(),n.hasClass("fr-on")&&!n.hasClass("fr-hidden"))d();else{if(!t.shared.$qi_helper){for(var i=t.opts.quickInsertButtons,s='<div class="fr-qi-helper">',l=0,c=0;c<i.length;c++){var f=e.QUICK_INSERT_BUTTONS[i[c]];f&&(!f.requiredPlugin||e.PLUGINS[f.requiredPlugin]&&0<=t.opts.pluginsEnabled.indexOf(f.requiredPlugin))&&(s+='<a class="fr-btn fr-floating-btn" role="button" title="'.concat(t.language.translate(f.title),'" tabIndex="-1" data-cmd="').concat(i[c],'" style="transition-delay: ').concat(.025*l++,'s;">').concat(t.icon.create(f.icon),"</a>"))}s+="</div>",t.shared.$qi_helper=a(s),t.tooltip.bind(t.shared.$qi_helper,"a.fr-btn"),t.events.$on(t.shared.$qi_helper,"mousedown",(function(e){e.preventDefault()}),!0)}r=t.shared.$qi_helper,t.$box.append(r),setTimeout((function(){r.css("top",parseFloat(n.css("top"))),r.css("left",parseFloat(n.css("left"))+n.outerWidth()),r.find("a").addClass("fr-size-1"),n.addClass("fr-on")}),10)}}function d(){var e=t.$box.find(".fr-qi-helper");e.length&&function(){for(var t=e.find("a"),r=0;r<t.length;r++)!function(n){setTimeout((function(){e.children().eq(t.length-1-n).removeClass("fr-size-1")}),25*n)}(r);setTimeout((function(){e.css("left",-9999),n&&!n.hasClass("fr-hidden")&&n.removeClass("fr-on")}),25*r)}()}function f(){n.hasClass("fr-visible")&&o(n.data("tag"))}return{_init:function(){if(!t.$wp||!t.opts.quickInsertEnabled)return!1;t.popups.onShow("image.edit",l),t.events.on("mouseup",s),t.helpers.isMobile()&&t.events.$on(a(t.o_doc),"selectionchange",s),t.events.on("blur",l),t.events.on("keyup",s),t.events.on("keydown",(function(){setTimeout((function(){s()}),0)}))},hide:l}}}(n(80214))},29905:function(e,t,n){!function(e){"use strict";(e=e&&e.hasOwnProperty("default")?e.default:e).PLUGINS.quote=function(e){var t=e.$;function n(t){for(;t.parentNode&&t.parentNode!=e.el;)t=t.parentNode;return t}return{apply:function(r){e.selection.save(),e.html.wrap(!0,!0,!0,!0),e.selection.restore(),"increase"==r?function(){var r,a=e.selection.blocks();for(r=0;r<a.length;r++)a[r]=n(a[r]);e.selection.save();var o=t(document.createElement("blockquote"));for(o.insertBefore(a[0]),r=0;r<a.length;r++)o.append(a[r]);e.html.unwrap(),e.selection.restore()}():"decrease"==r&&function(){var n,r=e.selection.blocks();for(n=0;n<r.length;n++)"BLOCKQUOTE"!=r[n].tagName&&(r[n]=t(r[n]).parentsUntil(e.$el,"BLOCKQUOTE").get(0));for(e.selection.save(),n=0;n<r.length;n++)r[n]&&t(r[n]).replaceWith(r[n].innerHTML);e.html.unwrap(),e.selection.restore()}()}}},e.RegisterShortcut(e.KEYCODE.SINGLE_QUOTE,"quote","increase","'"),e.RegisterShortcut(e.KEYCODE.SINGLE_QUOTE,"quote","decrease","'",!0),e.RegisterCommand("quote",{title:"Quote",type:"dropdown",html:function(){var e='<ul class="fr-dropdown-list" role="presentation">',t={increase:"Increase",decrease:"Decrease"};for(var n in t)if(t.hasOwnProperty(n)){var r=this.shortcuts.get("quote.".concat(n));e+='<li role="presentation"><a class="fr-command fr-active '.concat(n,'" tabIndex="-1" role="option" data-cmd="quote" data-param1="').concat(n,'" title="').concat(t[n],'">').concat(this.language.translate(t[n])).concat(r?'<span class="fr-shortcut">'.concat(r,"</span>"):"","</a></li>")}return e+"</ul>"},callback:function(e,t){this.quote.apply(t)},plugin:"quote"}),e.DefineIcon("quote",{NAME:"quote-left",SVG_KEY:"blockquote"})}(n(80214))},62106:function(e,t,n){!function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e,Object.assign(e.DEFAULTS,{saveInterval:1e4,saveURL:null,saveParams:{},saveParam:"body",saveMethod:"POST"}),e.PLUGINS.save=function(e){var t=e.$,n=null,r=null,a=!1,o=1,i=2,s={};function l(t,n){e.events.trigger("save.error",[{code:t,message:s[t]},n])}function c(n){void 0===n&&(n=e.html.get());var a=n,s=e.events.trigger("save.before",[n]);if(!1===s)return!1;if("string"==typeof s&&(n=s),e.opts.saveURL){var c={};for(var d in e.opts.saveParams)if(e.opts.saveParams.hasOwnProperty(d)){var f=e.opts.saveParams[d];c[d]="function"==typeof f?f.call(this):f}var p={};p[e.opts.saveParam]=n,t(this).ajax({method:e.opts.saveMethod,url:e.opts.saveURL,data:Object.assign(p,c),crossDomain:e.opts.requestWithCORS,withCredentials:e.opts.requestWithCredentials,headers:e.opts.requestHeaders,done:function(t,n,o){r=a,e.events.trigger("save.after",[t])},fail:function(e){l(i,e.response||e.responseText)}})}else l(o)}function d(){clearTimeout(n),n=setTimeout((function(){var t=e.html.get();(r!=t||a)&&(a=!1,c(r=t))}),0)}return s[o]="Missing saveURL option.",s[i]="Something went wrong during save.",{_init:function(){e.opts.saveInterval&&(r=e.html.get(),e.events.on("contentChanged",(function(){setTimeout(d,e.opts.saveInterval)})),e.events.on("keydown destroy",(function(){clearTimeout(n)})))},save:c,reset:function(){d(),a=!1},force:function(){a=!0}}},e.DefineIcon("save",{NAME:"floppy-o",FA5NAME:"save"}),e.RegisterCommand("save",{title:"Save",undo:!1,focus:!1,refreshAfterCallback:!1,callback:function(){this.save.save()},plugin:"save"})}(n(80214))},45096:function(e,t,n){!function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e,Object.assign(e.DEFAULTS,{specialCharactersSets:[{title:"Latin",char:"¡",list:[{char:"¡",desc:"INVERTED EXCLAMATION MARK"},{char:"¢",desc:"CENT SIGN"},{char:"£",desc:"POUND SIGN"},{char:"¤",desc:"CURRENCY SIGN"},{char:"¥",desc:"YEN SIGN"},{char:"¦",desc:"BROKEN BAR"},{char:"§",desc:"SECTION SIGN"},{char:"¨",desc:"DIAERESIS"},{char:"©",desc:"COPYRIGHT SIGN"},{char:"™",desc:"TRADEMARK SIGN"},{char:"ª",desc:"FEMININE ORDINAL INDICATOR"},{char:"«",desc:"LEFT-POINTING DOUBLE ANGLE QUOTATION MARK"},{char:"¬",desc:"NOT SIGN"},{char:"®",desc:"REGISTERED SIGN"},{char:"¯",desc:"MACRON"},{char:"°",desc:"DEGREE SIGN"},{char:"±",desc:"PLUS-MINUS SIGN"},{char:"²",desc:"SUPERSCRIPT TWO"},{char:"³",desc:"SUPERSCRIPT THREE"},{char:"´",desc:"ACUTE ACCENT"},{char:"µ",desc:"MICRO SIGN"},{char:"¶",desc:"PILCROW SIGN"},{char:"·",desc:"MIDDLE DOT"},{char:"¸",desc:"CEDILLA"},{char:"¹",desc:"SUPERSCRIPT ONE"},{char:"º",desc:"MASCULINE ORDINAL INDICATOR"},{char:"»",desc:"RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK"},{char:"¼",desc:"VULGAR FRACTION ONE QUARTER"},{char:"½",desc:"VULGAR FRACTION ONE HALF"},{char:"¾",desc:"VULGAR FRACTION THREE QUARTERS"},{char:"¿",desc:"INVERTED QUESTION MARK"},{char:"À",desc:"LATIN CAPITAL LETTER A WITH GRAVE"},{char:"Á",desc:"LATIN CAPITAL LETTER A WITH ACUTE"},{char:"Â",desc:"LATIN CAPITAL LETTER A WITH CIRCUMFLEX"},{char:"Ã",desc:"LATIN CAPITAL LETTER A WITH TILDE"},{char:"Ä",desc:"LATIN CAPITAL LETTER A WITH DIAERESIS "},{char:"Å",desc:"LATIN CAPITAL LETTER A WITH RING ABOVE"},{char:"Æ",desc:"LATIN CAPITAL LETTER AE"},{char:"Ç",desc:"LATIN CAPITAL LETTER C WITH CEDILLA"},{char:"È",desc:"LATIN CAPITAL LETTER E WITH GRAVE"},{char:"É",desc:"LATIN CAPITAL LETTER E WITH ACUTE"},{char:"Ê",desc:"LATIN CAPITAL LETTER E WITH CIRCUMFLEX"},{char:"Ë",desc:"LATIN CAPITAL LETTER E WITH DIAERESIS"},{char:"Ì",desc:"LATIN CAPITAL LETTER I WITH GRAVE"},{char:"Í",desc:"LATIN CAPITAL LETTER I WITH ACUTE"},{char:"Î",desc:"LATIN CAPITAL LETTER I WITH CIRCUMFLEX"},{char:"Ï",desc:"LATIN CAPITAL LETTER I WITH DIAERESIS"},{char:"Ð",desc:"LATIN CAPITAL LETTER ETH"},{char:"Ñ",desc:"LATIN CAPITAL LETTER N WITH TILDE"},{char:"Ò",desc:"LATIN CAPITAL LETTER O WITH GRAVE"},{char:"Ó",desc:"LATIN CAPITAL LETTER O WITH ACUTE"},{char:"Ô",desc:"LATIN CAPITAL LETTER O WITH CIRCUMFLEX"},{char:"Õ",desc:"LATIN CAPITAL LETTER O WITH TILDE"},{char:"Ö",desc:"LATIN CAPITAL LETTER O WITH DIAERESIS"},{char:"×",desc:"MULTIPLICATION SIGN"},{char:"Ø",desc:"LATIN CAPITAL LETTER O WITH STROKE"},{char:"Ù",desc:"LATIN CAPITAL LETTER U WITH GRAVE"},{char:"Ú",desc:"LATIN CAPITAL LETTER U WITH ACUTE"},{char:"Û",desc:"LATIN CAPITAL LETTER U WITH CIRCUMFLEX"},{char:"Ü",desc:"LATIN CAPITAL LETTER U WITH DIAERESIS"},{char:"Ý",desc:"LATIN CAPITAL LETTER Y WITH ACUTE"},{char:"Þ",desc:"LATIN CAPITAL LETTER THORN"},{char:"ß",desc:"LATIN SMALL LETTER SHARP S"},{char:"à",desc:"LATIN SMALL LETTER A WITH GRAVE"},{char:"á",desc:"LATIN SMALL LETTER A WITH ACUTE "},{char:"â",desc:"LATIN SMALL LETTER A WITH CIRCUMFLEX"},{char:"ã",desc:"LATIN SMALL LETTER A WITH TILDE"},{char:"ä",desc:"LATIN SMALL LETTER A WITH DIAERESIS"},{char:"å",desc:"LATIN SMALL LETTER A WITH RING ABOVE"},{char:"æ",desc:"LATIN SMALL LETTER AE"},{char:"ç",desc:"LATIN SMALL LETTER C WITH CEDILLA"},{char:"è",desc:"LATIN SMALL LETTER E WITH GRAVE"},{char:"é",desc:"LATIN SMALL LETTER E WITH ACUTE"},{char:"ê",desc:"LATIN SMALL LETTER E WITH CIRCUMFLEX"},{char:"ë",desc:"LATIN SMALL LETTER E WITH DIAERESIS"},{char:"ì",desc:"LATIN SMALL LETTER I WITH GRAVE"},{char:"í",desc:"LATIN SMALL LETTER I WITH ACUTE"},{char:"î",desc:"LATIN SMALL LETTER I WITH CIRCUMFLEX"},{char:"ï",desc:"LATIN SMALL LETTER I WITH DIAERESIS"},{char:"ð",desc:"LATIN SMALL LETTER ETH"},{char:"ñ",desc:"LATIN SMALL LETTER N WITH TILDE"},{char:"ò",desc:"LATIN SMALL LETTER O WITH GRAVE"},{char:"ó",desc:"LATIN SMALL LETTER O WITH ACUTE"},{char:"ô",desc:"LATIN SMALL LETTER O WITH CIRCUMFLEX"},{char:"õ",desc:"LATIN SMALL LETTER O WITH TILDE"},{char:"ö",desc:"LATIN SMALL LETTER O WITH DIAERESIS"},{char:"÷",desc:"DIVISION SIGN"},{char:"ø",desc:"LATIN SMALL LETTER O WITH STROKE"},{char:"ù",desc:"LATIN SMALL LETTER U WITH GRAVE"},{char:"ú",desc:"LATIN SMALL LETTER U WITH ACUTE"},{char:"û",desc:"LATIN SMALL LETTER U WITH CIRCUMFLEX"},{char:"ü",desc:"LATIN SMALL LETTER U WITH DIAERESIS"},{char:"ý",desc:"LATIN SMALL LETTER Y WITH ACUTE"},{char:"þ",desc:"LATIN SMALL LETTER THORN"},{char:"ÿ",desc:"LATIN SMALL LETTER Y WITH DIAERESIS"}]},{title:"Greek",char:"Α",list:[{char:"Α",desc:"GREEK CAPITAL LETTER ALPHA"},{char:"Β",desc:"GREEK CAPITAL LETTER BETA"},{char:"Γ",desc:"GREEK CAPITAL LETTER GAMMA"},{char:"Δ",desc:"GREEK CAPITAL LETTER DELTA"},{char:"Ε",desc:"GREEK CAPITAL LETTER EPSILON"},{char:"Ζ",desc:"GREEK CAPITAL LETTER ZETA"},{char:"Η",desc:"GREEK CAPITAL LETTER ETA"},{char:"Θ",desc:"GREEK CAPITAL LETTER THETA"},{char:"Ι",desc:"GREEK CAPITAL LETTER IOTA"},{char:"Κ",desc:"GREEK CAPITAL LETTER KAPPA"},{char:"Λ",desc:"GREEK CAPITAL LETTER LAMBDA"},{char:"Μ",desc:"GREEK CAPITAL LETTER MU"},{char:"Ν",desc:"GREEK CAPITAL LETTER NU"},{char:"Ξ",desc:"GREEK CAPITAL LETTER XI"},{char:"Ο",desc:"GREEK CAPITAL LETTER OMICRON"},{char:"Π",desc:"GREEK CAPITAL LETTER PI"},{char:"Ρ",desc:"GREEK CAPITAL LETTER RHO"},{char:"Σ",desc:"GREEK CAPITAL LETTER SIGMA"},{char:"Τ",desc:"GREEK CAPITAL LETTER TAU"},{char:"Υ",desc:"GREEK CAPITAL LETTER UPSILON"},{char:"Φ",desc:"GREEK CAPITAL LETTER PHI"},{char:"Χ",desc:"GREEK CAPITAL LETTER CHI"},{char:"Ψ",desc:"GREEK CAPITAL LETTER PSI"},{char:"Ω",desc:"GREEK CAPITAL LETTER OMEGA"},{char:"α",desc:"GREEK SMALL LETTER ALPHA"},{char:"β",desc:"GREEK SMALL LETTER BETA"},{char:"γ",desc:"GREEK SMALL LETTER GAMMA"},{char:"δ",desc:"GREEK SMALL LETTER DELTA"},{char:"ε",desc:"GREEK SMALL LETTER EPSILON"},{char:"ζ",desc:"GREEK SMALL LETTER ZETA"},{char:"η",desc:"GREEK SMALL LETTER ETA"},{char:"θ",desc:"GREEK SMALL LETTER THETA"},{char:"ι",desc:"GREEK SMALL LETTER IOTA"},{char:"κ",desc:"GREEK SMALL LETTER KAPPA"},{char:"λ",desc:"GREEK SMALL LETTER LAMBDA"},{char:"μ",desc:"GREEK SMALL LETTER MU"},{char:"ν",desc:"GREEK SMALL LETTER NU"},{char:"ξ",desc:"GREEK SMALL LETTER XI"},{char:"ο",desc:"GREEK SMALL LETTER OMICRON"},{char:"π",desc:"GREEK SMALL LETTER PI"},{char:"ρ",desc:"GREEK SMALL LETTER RHO"},{char:"ς",desc:"GREEK SMALL LETTER FINAL SIGMA"},{char:"σ",desc:"GREEK SMALL LETTER SIGMA"},{char:"τ",desc:"GREEK SMALL LETTER TAU"},{char:"υ",desc:"GREEK SMALL LETTER UPSILON"},{char:"φ",desc:"GREEK SMALL LETTER PHI"},{char:"χ",desc:"GREEK SMALL LETTER CHI"},{char:"ψ",desc:"GREEK SMALL LETTER PSI"},{char:"ω",desc:"GREEK SMALL LETTER OMEGA"},{char:"ϑ",desc:"GREEK THETA SYMBOL"},{char:"ϒ",desc:"GREEK UPSILON WITH HOOK SYMBOL"},{char:"ϕ",desc:"GREEK PHI SYMBOL"},{char:"ϖ",desc:"GREEK PI SYMBOL"},{char:"Ϝ",desc:"GREEK LETTER DIGAMMA"},{char:"ϝ",desc:"GREEK SMALL LETTER DIGAMMA"},{char:"ϰ",desc:"GREEK KAPPA SYMBOL"},{char:"ϱ",desc:"GREEK RHO SYMBOL"},{char:"ϵ",desc:"GREEK LUNATE EPSILON SYMBOL"},{char:"϶",desc:"GREEK REVERSED LUNATE EPSILON SYMBOL"}]},{title:"Cyrillic",char:"Ѐ",list:[{char:"Ѐ",desc:"CYRILLIC CAPITAL LETTER IE WITH GRAVE"},{char:"Ё",desc:"CYRILLIC CAPITAL LETTER IO"},{char:"Ђ",desc:"CYRILLIC CAPITAL LETTER DJE"},{char:"Ѓ",desc:"CYRILLIC CAPITAL LETTER GJE"},{char:"Є",desc:"CYRILLIC CAPITAL LETTER UKRAINIAN IE"},{char:"Ѕ",desc:"CYRILLIC CAPITAL LETTER DZE"},{char:"І",desc:"CYRILLIC CAPITAL LETTER BYELORUSSIAN-UKRAINIAN I"},{char:"Ї",desc:"CYRILLIC CAPITAL LETTER YI"},{char:"Ј",desc:"CYRILLIC CAPITAL LETTER JE"},{char:"Љ",desc:"CYRILLIC CAPITAL LETTER LJE"},{char:"Њ",desc:"CYRILLIC CAPITAL LETTER NJE"},{char:"Ћ",desc:"CYRILLIC CAPITAL LETTER TSHE"},{char:"Ќ",desc:"CYRILLIC CAPITAL LETTER KJE"},{char:"Ѝ",desc:"CYRILLIC CAPITAL LETTER I WITH GRAVE"},{char:"Ў",desc:"CYRILLIC CAPITAL LETTER SHORT U"},{char:"Џ",desc:"CYRILLIC CAPITAL LETTER DZHE"},{char:"А",desc:"CYRILLIC CAPITAL LETTER A"},{char:"Б",desc:"CYRILLIC CAPITAL LETTER BE"},{char:"В",desc:"CYRILLIC CAPITAL LETTER VE"},{char:"Г",desc:"CYRILLIC CAPITAL LETTER GHE"},{char:"Д",desc:"CYRILLIC CAPITAL LETTER DE"},{char:"Е",desc:"CYRILLIC CAPITAL LETTER IE"},{char:"Ж",desc:"CYRILLIC CAPITAL LETTER ZHE"},{char:"З",desc:"CYRILLIC CAPITAL LETTER ZE"},{char:"И",desc:"CYRILLIC CAPITAL LETTER I"},{char:"Й",desc:"CYRILLIC CAPITAL LETTER SHORT I"},{char:"К",desc:"CYRILLIC CAPITAL LETTER KA"},{char:"Л",desc:"CYRILLIC CAPITAL LETTER EL"},{char:"М",desc:"CYRILLIC CAPITAL LETTER EM"},{char:"Н",desc:"CYRILLIC CAPITAL LETTER EN"},{char:"О",desc:"CYRILLIC CAPITAL LETTER O"},{char:"П",desc:"CYRILLIC CAPITAL LETTER PE"},{char:"Р",desc:"CYRILLIC CAPITAL LETTER ER"},{char:"С",desc:"CYRILLIC CAPITAL LETTER ES"},{char:"Т",desc:"CYRILLIC CAPITAL LETTER TE"},{char:"У",desc:"CYRILLIC CAPITAL LETTER U"},{char:"Ф",desc:"CYRILLIC CAPITAL LETTER EF"},{char:"Х",desc:"CYRILLIC CAPITAL LETTER HA"},{char:"Ц",desc:"CYRILLIC CAPITAL LETTER TSE"},{char:"Ч",desc:"CYRILLIC CAPITAL LETTER CHE"},{char:"Ш",desc:"CYRILLIC CAPITAL LETTER SHA"},{char:"Щ",desc:"CYRILLIC CAPITAL LETTER SHCHA"},{char:"Ъ",desc:"CYRILLIC CAPITAL LETTER HARD SIGN"},{char:"Ы",desc:"CYRILLIC CAPITAL LETTER YERU"},{char:"Ь",desc:"CYRILLIC CAPITAL LETTER SOFT SIGN"},{char:"Э",desc:"CYRILLIC CAPITAL LETTER E"},{char:"Ю",desc:"CYRILLIC CAPITAL LETTER YU"},{char:"Я",desc:"CYRILLIC CAPITAL LETTER YA"},{char:"а",desc:"CYRILLIC SMALL LETTER A"},{char:"б",desc:"CYRILLIC SMALL LETTER BE"},{char:"в",desc:"CYRILLIC SMALL LETTER VE"},{char:"г",desc:"CYRILLIC SMALL LETTER GHE"},{char:"д",desc:"CYRILLIC SMALL LETTER DE"},{char:"е",desc:"CYRILLIC SMALL LETTER IE"},{char:"ж",desc:"CYRILLIC SMALL LETTER ZHE"},{char:"з",desc:"CYRILLIC SMALL LETTER ZE"},{char:"и",desc:"CYRILLIC SMALL LETTER I"},{char:"й",desc:"CYRILLIC SMALL LETTER SHORT I"},{char:"к",desc:"CYRILLIC SMALL LETTER KA"},{char:"л",desc:"CYRILLIC SMALL LETTER EL"},{char:"м",desc:"CYRILLIC SMALL LETTER EM"},{char:"н",desc:"CYRILLIC SMALL LETTER EN"},{char:"о",desc:"CYRILLIC SMALL LETTER O"},{char:"п",desc:"CYRILLIC SMALL LETTER PE"},{char:"р",desc:"CYRILLIC SMALL LETTER ER"},{char:"с",desc:"CYRILLIC SMALL LETTER ES"},{char:"т",desc:"CYRILLIC SMALL LETTER TE"},{char:"у",desc:"CYRILLIC SMALL LETTER U"},{char:"ф",desc:"CYRILLIC SMALL LETTER EF"},{char:"х",desc:"CYRILLIC SMALL LETTER HA"},{char:"ц",desc:"CYRILLIC SMALL LETTER TSE"},{char:"ч",desc:"CYRILLIC SMALL LETTER CHE"},{char:"ш",desc:"CYRILLIC SMALL LETTER SHA"},{char:"щ",desc:"CYRILLIC SMALL LETTER SHCHA"},{char:"ъ",desc:"CYRILLIC SMALL LETTER HARD SIGN"},{char:"ы",desc:"CYRILLIC SMALL LETTER YERU"},{char:"ь",desc:"CYRILLIC SMALL LETTER SOFT SIGN"},{char:"э",desc:"CYRILLIC SMALL LETTER E"},{char:"ю",desc:"CYRILLIC SMALL LETTER YU"},{char:"я",desc:"CYRILLIC SMALL LETTER YA"},{char:"ѐ",desc:"CYRILLIC SMALL LETTER IE WITH GRAVE"},{char:"ё",desc:"CYRILLIC SMALL LETTER IO"},{char:"ђ",desc:"CYRILLIC SMALL LETTER DJE"},{char:"ѓ",desc:"CYRILLIC SMALL LETTER GJE"},{char:"є",desc:"CYRILLIC SMALL LETTER UKRAINIAN IE"},{char:"ѕ",desc:"CYRILLIC SMALL LETTER DZE"},{char:"і",desc:"CYRILLIC SMALL LETTER BYELORUSSIAN-UKRAINIAN I"},{char:"ї",desc:"CYRILLIC SMALL LETTER YI"},{char:"ј",desc:"CYRILLIC SMALL LETTER JE"},{char:"љ",desc:"CYRILLIC SMALL LETTER LJE"},{char:"њ",desc:"CYRILLIC SMALL LETTER NJE"},{char:"ћ",desc:"CYRILLIC SMALL LETTER TSHE"},{char:"ќ",desc:"CYRILLIC SMALL LETTER KJE"},{char:"ѝ",desc:"CYRILLIC SMALL LETTER I WITH GRAVE"},{char:"ў",desc:"CYRILLIC SMALL LETTER SHORT U"},{char:"џ",desc:"CYRILLIC SMALL LETTER DZHE"}]},{title:"Punctuation",char:"–",list:[{char:"–",desc:"EN DASH"},{char:"—",desc:"EM DASH"},{char:"‘",desc:"LEFT SINGLE QUOTATION MARK"},{char:"’",desc:"RIGHT SINGLE QUOTATION MARK"},{char:"‚",desc:"SINGLE LOW-9 QUOTATION MARK"},{char:"“",desc:"LEFT DOUBLE QUOTATION MARK"},{char:"”",desc:"RIGHT DOUBLE QUOTATION MARK"},{char:"„",desc:"DOUBLE LOW-9 QUOTATION MARK"},{char:"†",desc:"DAGGER"},{char:"‡",desc:"DOUBLE DAGGER"},{char:"•",desc:"BULLET"},{char:"…",desc:"HORIZONTAL ELLIPSIS"},{char:"‰",desc:"PER MILLE SIGN"},{char:"′",desc:"PRIME"},{char:"″",desc:"DOUBLE PRIME"},{char:"‹",desc:"SINGLE LEFT-POINTING ANGLE QUOTATION MARK"},{char:"›",desc:"SINGLE RIGHT-POINTING ANGLE QUOTATION MARK"},{char:"‾",desc:"OVERLINE"},{char:"⁄",desc:"FRACTION SLASH"}]},{title:"Currency",char:"₠",list:[{char:"₠",desc:"EURO-CURRENCY SIGN"},{char:"₡",desc:"COLON SIGN"},{char:"₢",desc:"CRUZEIRO SIGN"},{char:"₣",desc:"FRENCH FRANC SIGN"},{char:"₤",desc:"LIRA SIGN"},{char:"₥",desc:"MILL SIGN"},{char:"₦",desc:"NAIRA SIGN"},{char:"₧",desc:"PESETA SIGN"},{char:"₨",desc:"RUPEE SIGN"},{char:"₩",desc:"WON SIGN"},{char:"₪",desc:"NEW SHEQEL SIGN"},{char:"₫",desc:"DONG SIGN"},{char:"€",desc:"EURO SIGN"},{char:"₭",desc:"KIP SIGN"},{char:"₮",desc:"TUGRIK SIGN"},{char:"₯",desc:"DRACHMA SIGN"},{char:"₰",desc:"GERMAN PENNY SYMBOL"},{char:"₱",desc:"PESO SIGN"},{char:"₲",desc:"GUARANI SIGN"},{char:"₳",desc:"AUSTRAL SIGN"},{char:"₴",desc:"HRYVNIA SIGN"},{char:"₵",desc:"CEDI SIGN"},{char:"₶",desc:"LIVRE TOURNOIS SIGN"},{char:"₷",desc:"SPESMILO SIGN"},{char:"₸",desc:"TENGE SIGN"},{char:"₹",desc:"INDIAN RUPEE SIGN"}]},{title:"Arrows",char:"←",list:[{char:"←",desc:"LEFTWARDS ARROW"},{char:"↑",desc:"UPWARDS ARROW"},{char:"→",desc:"RIGHTWARDS ARROW"},{char:"↓",desc:"DOWNWARDS ARROW"},{char:"↔",desc:"LEFT RIGHT ARROW"},{char:"↕",desc:"UP DOWN ARROW"},{char:"↖",desc:"NORTH WEST ARROW"},{char:"↗",desc:"NORTH EAST ARROW"},{char:"↘",desc:"SOUTH EAST ARROW"},{char:"↙",desc:"SOUTH WEST ARROW"},{char:"↚",desc:"LEFTWARDS ARROW WITH STROKE"},{char:"↛",desc:"RIGHTWARDS ARROW WITH STROKE"},{char:"↜",desc:"LEFTWARDS WAVE ARROW"},{char:"↝",desc:"RIGHTWARDS WAVE ARROW"},{char:"↞",desc:"LEFTWARDS TWO HEADED ARROW"},{char:"↟",desc:"UPWARDS TWO HEADED ARROW"},{char:"↠",desc:"RIGHTWARDS TWO HEADED ARROW"},{char:"↡",desc:"DOWNWARDS TWO HEADED ARROW"},{char:"↢",desc:"LEFTWARDS ARROW WITH TAIL"},{char:"↣",desc:"RIGHTWARDS ARROW WITH TAIL"},{char:"↤",desc:"LEFTWARDS ARROW FROM BAR"},{char:"↥",desc:"UPWARDS ARROW FROM BAR"},{char:"↦",desc:"RIGHTWARDS ARROW FROM BAR"},{char:"↧",desc:"DOWNWARDS ARROW FROM BAR"},{char:"↨",desc:"UP DOWN ARROW WITH BASE"},{char:"↩",desc:"LEFTWARDS ARROW WITH HOOK"},{char:"↪",desc:"RIGHTWARDS ARROW WITH HOOK"},{char:"↫",desc:"LEFTWARDS ARROW WITH LOOP"},{char:"↬",desc:"RIGHTWARDS ARROW WITH LOOP"},{char:"↭",desc:"LEFT RIGHT WAVE ARROW"},{char:"↮",desc:"LEFT RIGHT ARROW WITH STROKE"},{char:"↯",desc:"DOWNWARDS ZIGZAG ARROW"},{char:"↰",desc:"UPWARDS ARROW WITH TIP LEFTWARDS"},{char:"↱",desc:"UPWARDS ARROW WITH TIP RIGHTWARDS"},{char:"↲",desc:"DOWNWARDS ARROW WITH TIP LEFTWARDS"},{char:"↳",desc:"DOWNWARDS ARROW WITH TIP RIGHTWARDS"},{char:"↴",desc:"RIGHTWARDS ARROW WITH CORNER DOWNWARDS"},{char:"↵",desc:"DOWNWARDS ARROW WITH CORNER LEFTWARDS"},{char:"↶",desc:"ANTICLOCKWISE TOP SEMICIRCLE ARROW"},{char:"↷",desc:"CLOCKWISE TOP SEMICIRCLE ARROW"},{char:"↸",desc:"NORTH WEST ARROW TO LONG BAR"},{char:"↹",desc:"LEFTWARDS ARROW TO BAR OVER RIGHTWARDS ARROW TO BAR"},{char:"↺",desc:"ANTICLOCKWISE OPEN CIRCLE ARROW"},{char:"↻",desc:"CLOCKWISE OPEN CIRCLE ARROW"},{char:"↼",desc:"LEFTWARDS HARPOON WITH BARB UPWARDS"},{char:"↽",desc:"LEFTWARDS HARPOON WITH BARB DOWNWARDS"},{char:"↾",desc:"UPWARDS HARPOON WITH BARB RIGHTWARDS"},{char:"↿",desc:"UPWARDS HARPOON WITH BARB LEFTWARDS"},{char:"⇀",desc:"RIGHTWARDS HARPOON WITH BARB UPWARDS"},{char:"⇁",desc:"RIGHTWARDS HARPOON WITH BARB DOWNWARDS"},{char:"⇂",desc:"DOWNWARDS HARPOON WITH BARB RIGHTWARDS"},{char:"⇃",desc:"DOWNWARDS HARPOON WITH BARB LEFTWARDS"},{char:"⇄",desc:"RIGHTWARDS ARROW OVER LEFTWARDS ARROW"},{char:"⇅",desc:"UPWARDS ARROW LEFTWARDS OF DOWNWARDS ARROW"},{char:"⇆",desc:"LEFTWARDS ARROW OVER RIGHTWARDS ARROW"},{char:"⇇",desc:"LEFTWARDS PAIRED ARROWS"},{char:"⇈",desc:"UPWARDS PAIRED ARROWS"},{char:"⇉",desc:"RIGHTWARDS PAIRED ARROWS"},{char:"⇊",desc:"DOWNWARDS PAIRED ARROWS"},{char:"⇋",desc:"LEFTWARDS HARPOON OVER RIGHTWARDS HARPOON"},{char:"⇌",desc:"RIGHTWARDS HARPOON OVER LEFTWARDS HARPOON"},{char:"⇍",desc:"LEFTWARDS DOUBLE ARROW WITH STROKE"},{char:"⇎",desc:"LEFT RIGHT DOUBLE ARROW WITH STROKE"},{char:"⇏",desc:"RIGHTWARDS DOUBLE ARROW WITH STROKE"},{char:"⇐",desc:"LEFTWARDS DOUBLE ARROW"},{char:"⇑",desc:"UPWARDS DOUBLE ARROW"},{char:"⇒",desc:"RIGHTWARDS DOUBLE ARROW"},{char:"⇓",desc:"DOWNWARDS DOUBLE ARROW"},{char:"⇔",desc:"LEFT RIGHT DOUBLE ARROW"},{char:"⇕",desc:"UP DOWN DOUBLE ARROW"},{char:"⇖",desc:"NORTH WEST DOUBLE ARROW"},{char:"⇗",desc:"NORTH EAST DOUBLE ARROW"},{char:"⇘",desc:"SOUTH EAST DOUBLE ARROW"},{char:"⇙",desc:"SOUTH WEST DOUBLE ARROW"},{char:"⇚",desc:"LEFTWARDS TRIPLE ARROW"},{char:"⇛",desc:"RIGHTWARDS TRIPLE ARROW"},{char:"⇜",desc:"LEFTWARDS SQUIGGLE ARROW"},{char:"⇝",desc:"RIGHTWARDS SQUIGGLE ARROW"},{char:"⇞",desc:"UPWARDS ARROW WITH DOUBLE STROKE"},{char:"⇟",desc:"DOWNWARDS ARROW WITH DOUBLE STROKE"},{char:"⇠",desc:"LEFTWARDS DASHED ARROW"},{char:"⇡",desc:"UPWARDS DASHED ARROW"},{char:"⇢",desc:"RIGHTWARDS DASHED ARROW"},{char:"⇣",desc:"DOWNWARDS DASHED ARROW"},{char:"⇤",desc:"LEFTWARDS ARROW TO BAR"},{char:"⇥",desc:"RIGHTWARDS ARROW TO BAR"},{char:"⇦",desc:"LEFTWARDS WHITE ARROW"},{char:"⇧",desc:"UPWARDS WHITE ARROW"},{char:"⇨",desc:"RIGHTWARDS WHITE ARROW"},{char:"⇩",desc:"DOWNWARDS WHITE ARROW"},{char:"⇪",desc:"UPWARDS WHITE ARROW FROM BAR"},{char:"⇫",desc:"UPWARDS WHITE ARROW ON PEDESTAL"},{char:"⇬",desc:"UPWARDS WHITE ARROW ON PEDESTAL WITH HORIZONTAL BAR"},{char:"⇭",desc:"UPWARDS WHITE ARROW ON PEDESTAL WITH VERTICAL BAR"},{char:"⇮",desc:"UPWARDS WHITE DOUBLE ARROW"},{char:"⇯",desc:"UPWARDS WHITE DOUBLE ARROW ON PEDESTAL"},{char:"⇰",desc:"RIGHTWARDS WHITE ARROW FROM WALL"},{char:"⇱",desc:"NORTH WEST ARROW TO CORNER"},{char:"⇲",desc:"SOUTH EAST ARROW TO CORNER"},{char:"⇳",desc:"UP DOWN WHITE ARROW"},{char:"⇴",desc:"RIGHT ARROW WITH SMALL CIRCLE"},{char:"⇵",desc:"DOWNWARDS ARROW LEFTWARDS OF UPWARDS ARROW"},{char:"⇶",desc:"THREE RIGHTWARDS ARROWS"},{char:"⇷",desc:"LEFTWARDS ARROW WITH VERTICAL STROKE"},{char:"⇸",desc:"RIGHTWARDS ARROW WITH VERTICAL STROKE"},{char:"⇹",desc:"LEFT RIGHT ARROW WITH VERTICAL STROKE"},{char:"⇺",desc:"LEFTWARDS ARROW WITH DOUBLE VERTICAL STROKE"},{char:"⇻",desc:"RIGHTWARDS ARROW WITH DOUBLE VERTICAL STROKE"},{char:"⇼",desc:"LEFT RIGHT ARROW WITH DOUBLE VERTICAL STROKE"},{char:"⇽",desc:"LEFTWARDS OPEN-HEADED ARROW"},{char:"⇾",desc:"RIGHTWARDS OPEN-HEADED ARROW"},{char:"⇿",desc:"LEFT RIGHT OPEN-HEADED ARROW"}]},{title:"Math",char:"∀",list:[{char:"∀",desc:"FOR ALL"},{char:"∂",desc:"PARTIAL DIFFERENTIAL"},{char:"∃",desc:"THERE EXISTS"},{char:"∅",desc:"EMPTY SET"},{char:"∇",desc:"NABLA"},{char:"∈",desc:"ELEMENT OF"},{char:"∉",desc:"NOT AN ELEMENT OF"},{char:"∋",desc:"CONTAINS AS MEMBER"},{char:"∏",desc:"N-ARY PRODUCT"},{char:"∑",desc:"N-ARY SUMMATION"},{char:"−",desc:"MINUS SIGN"},{char:"∗",desc:"ASTERISK OPERATOR"},{char:"√",desc:"SQUARE ROOT"},{char:"∝",desc:"PROPORTIONAL TO"},{char:"∞",desc:"INFINITY"},{char:"∠",desc:"ANGLE"},{char:"∧",desc:"LOGICAL AND"},{char:"∨",desc:"LOGICAL OR"},{char:"∩",desc:"INTERSECTION"},{char:"∪",desc:"UNION"},{char:"∫",desc:"INTEGRAL"},{char:"∴",desc:"THEREFORE"},{char:"∼",desc:"TILDE OPERATOR"},{char:"≅",desc:"APPROXIMATELY EQUAL TO"},{char:"≈",desc:"ALMOST EQUAL TO"},{char:"≠",desc:"NOT EQUAL TO"},{char:"≡",desc:"IDENTICAL TO"},{char:"≤",desc:"LESS-THAN OR EQUAL TO"},{char:"≥",desc:"GREATER-THAN OR EQUAL TO"},{char:"⊂",desc:"SUBSET OF"},{char:"⊃",desc:"SUPERSET OF"},{char:"⊄",desc:"NOT A SUBSET OF"},{char:"⊆",desc:"SUBSET OF OR EQUAL TO"},{char:"⊇",desc:"SUPERSET OF OR EQUAL TO"},{char:"⊕",desc:"CIRCLED PLUS"},{char:"⊗",desc:"CIRCLED TIMES"},{char:"⊥",desc:"UP TACK"}]},{title:"Misc",char:"♠",list:[{char:"♠",desc:"BLACK SPADE SUIT"},{char:"♣",desc:"BLACK CLUB SUIT"},{char:"♥",desc:"BLACK HEART SUIT"},{char:"♦",desc:"BLACK DIAMOND SUIT"},{char:"♩",desc:"QUARTER NOTE"},{char:"♪",desc:"EIGHTH NOTE"},{char:"♫",desc:"BEAMED EIGHTH NOTES"},{char:"♬",desc:"BEAMED SIXTEENTH NOTES"},{char:"♭",desc:"MUSIC FLAT SIGN"},{char:"♮",desc:"MUSIC NATURAL SIGN"},{char:"☀",desc:"BLACK SUN WITH RAYS"},{char:"☁",desc:"CLOUD"},{char:"☂",desc:"UMBRELLA"},{char:"☃",desc:"SNOWMAN"},{char:"☕",desc:"HOT BEVERAGE"},{char:"☘",desc:"SHAMROCK"},{char:"☯",desc:"YIN YANG"},{char:"✔",desc:"HEAVY CHECK MARK"},{char:"✖",desc:"HEAVY MULTIPLICATION X"},{char:"❄",desc:"SNOWFLAKE"},{char:"❛",desc:"HEAVY SINGLE TURNED COMMA QUOTATION MARK ORNAMENT"},{char:"❜",desc:"HEAVY SINGLE COMMA QUOTATION MARK ORNAMENT"},{char:"❝",desc:"HEAVY DOUBLE TURNED COMMA QUOTATION MARK ORNAMENT"},{char:"❞",desc:"HEAVY DOUBLE COMMA QUOTATION MARK ORNAMENT"},{char:"❤",desc:"HEAVY BLACK HEART"}]}],specialCharButtons:["specialCharBack","|"]}),Object.assign(e.POPUP_TEMPLATES,{specialCharacters:"[_BUTTONS_][_CUSTOM_LAYER_]"}),e.PLUGINS.specialCharacters=function(t){var n=t.$,r=t.opts.specialCharactersSets[0],a=t.opts.specialCharactersSets,o="";function i(){return'\n <div class="fr-buttons fr-tabs fr-tabs-scroll">\n '.concat(function(e,t){var n="";return e.forEach((function(e){var r={elementClass:e.title===t.title?"fr-active fr-active-tab":"",title:e.title,dataParam1:e.title,desc:e.char};n+='<button class="fr-command fr-btn fr-special-character-category '.concat(r.elementClass,'" title="').concat(r.title,'" data-cmd="setSpecialCharacterCategory" data-param1="').concat(r.dataParam1,'"><span>').concat(r.desc,"</span></button>")})),n}(a,r),'\n </div>\n <div class="fr-icon-container fr-sc-container">\n ').concat(function(e){var t="";return e.list.forEach((function(e){var n={dataParam1:e.char,title:e.desc,splCharValue:e.char};t+='<span class="fr-command fr-special-character fr-icon" role="button" \n data-cmd="insertSpecialCharacter" data-param1="'.concat(n.dataParam1,'" \n title="').concat(n.title,'">').concat(n.splCharValue,"</span>")})),t}(r),"\n </div>")}return{setSpecialCharacterCategory:function(e){r=a.filter((function(t){return t.title===e}))[0],t.popups.get("specialCharacters").html(o+i())},showSpecialCharsPopup:function(){var r=t.popups.get("specialCharacters");if(r||(r=function(){t.opts.toolbarInline&&0<t.opts.specialCharButtons.length&&(o='<div class="fr-buttons fr-tabs">'.concat(t.button.buildList(t.opts.specialCharButtons),"</div>"));var r,a={buttons:o,custom_layer:i()},s=t.popups.create("specialCharacters",a);return r=s,t.events.on("popup.tab",(function(a){var o=n(a.currentTarget);if(!t.popups.isVisible("specialCharacters")||!o.is("span, a"))return!0;var i,s,l,c=a.which;if(e.KEYCODE.TAB==c){if(o.is("span.fr-icon")&&a.shiftKey||o.is("a")&&!a.shiftKey){var d=r.find(".fr-buttons");i=!t.accessibility.focusToolbar(d,!!a.shiftKey)}if(!1!==i){var f=r.find("span.fr-icon:focus").first().concat(r.findVisible(" span.fr-icon").first().concat(r.find("a")));o.is("span.fr-icon")&&(f=f.not("span.fr-icon:not(:focus)")),s=f.index(o),s=a.shiftKey?((s-1)%f.length+f.length)%f.length:(s+1)%f.length,l=f.get(s),t.events.disableBlur(),l.focus(),i=!1}}else if(e.KEYCODE.ARROW_UP==c||e.KEYCODE.ARROW_DOWN==c||e.KEYCODE.ARROW_LEFT==c||e.KEYCODE.ARROW_RIGHT==c){if(o.is("span.fr-icon")){var p=o.parent().find("span.fr-icon");s=p.index(o);var u=11,h=Math.floor(p.length/u),g=s%u,m=Math.floor(s/u)*u+g,v=h*u;e.KEYCODE.ARROW_UP==c?m=((m-u)%v+v)%v:e.KEYCODE.ARROW_DOWN==c?m=(m+u)%v:e.KEYCODE.ARROW_LEFT==c?m=((m-1)%v+v)%v:e.KEYCODE.ARROW_RIGHT==c&&(m=(m+1)%v),l=n(p.get(m)),t.events.disableBlur(),l.focus(),i=!1}}else e.KEYCODE.ENTER==c&&(o.is("a")?o[0].click():t.button.exec(o),i=!1);return!1===i&&(a.preventDefault(),a.stopPropagation()),i}),!0),s}()),!r.hasClass("fr-active")){t.popups.refresh("specialCharacters"),t.popups.setContainer("specialCharacters",t.$tb);var a=t.$tb.find('.fr-command[data-cmd="specialCharacters"]'),s=t.button.getPosition(a),l=s.left,c=s.top;t.popups.show("specialCharacters",l,c,outerHeight)}},back:function(){t.popups.hide("specialCharacters"),t.toolbar.showInline()}}},e.DefineIcon("specialCharacters",{NAME:"dollar-sign",SVG_KEY:"symbols"}),e.RegisterCommand("specialCharacters",{title:"Special Characters",icon:"specialCharacters",undo:!1,focus:!1,popup:!0,refreshAfterCallback:!1,plugin:"specialCharacters",showOnMobile:!0,callback:function(){this.popups.isVisible("specialCharacters")?(this.$el.find(".fr-marker")&&(this.events.disableBlur(),this.selection.restore()),this.popups.hide("specialCharacters")):this.specialCharacters.showSpecialCharsPopup()}}),e.RegisterCommand("insertSpecialCharacter",{callback:function(e,t){this.undo.saveStep(),this.html.insert(t),this.undo.saveStep(),this.popups.hide("specialCharacters")}}),e.RegisterCommand("setSpecialCharacterCategory",{undo:!1,focus:!1,callback:function(e,t){this.specialCharacters.setSpecialCharacterCategory(t)}}),e.DefineIcon("specialCharBack",{NAME:"arrow-left",SVG_KEY:"back"}),e.RegisterCommand("specialCharBack",{title:"Back",undo:!1,focus:!1,back:!0,refreshAfterCallback:!1,callback:function(){this.specialCharacters.back()}})}(n(80214))},22733:function(e,t,n){!function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e,Object.assign(e.POPUP_TEMPLATES,{"table.insert":"[_BUTTONS_][_ROWS_COLUMNS_]","table.edit":"[_BUTTONS_]","table.colors":"[_BUTTONS_][_COLORS_][_CUSTOM_COLOR_]"}),Object.assign(e.DEFAULTS,{tableInsertMaxSize:10,tableEditButtons:["tableHeader","tableRemove","tableRows","tableColumns","tableStyle","-","tableCells","tableCellBackground","tableCellVerticalAlign","tableCellHorizontalAlign","tableCellStyle"],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"],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,tableInsertHelperOffset:15}),e.PLUGINS.table=function(t){var n,r,a,o,i,s,l,c=t.$;function d(){var e=C();if(e){var n=t.popups.get("table.edit");if(n||(n=h()),n){t.popups.setContainer("table.edit",t.$sc);var r=w(e),a=r.left+(r.right-r.left)/2,o=r.bottom;t.popups.show("table.edit",a,o,r.bottom-r.top,!0),t.edit.isDisabled()&&(1<Z().length&&t.toolbar.disable(),t.$el.removeClass("fr-no-selection"),t.edit.on(),t.button.bulkRefresh(),t.selection.setAtEnd(t.$el.find(".fr-selected-cell").last().get(0)),t.selection.restore())}}}function f(){0===Z().length&&t.toolbar.enable()}function p(n){if(n)return t.popups.onHide("table.insert",(function(){t.popups.get("table.insert").find('.fr-table-size .fr-select-table-size > span[data-row="1"][data-col="1"]').trigger("mouseover")})),!0;var r="";0<t.opts.tableInsertButtons.length&&(r='<div class="fr-buttons fr-tabs">'.concat(t.button.buildList(t.opts.tableInsertButtons),"</div>"));var a={buttons:r,rows_columns:function(){for(var e='<div class="fr-table-size"><div class="fr-table-size-info">1 × 1</div><div class="fr-select-table-size">',n=1;n<=t.opts.tableInsertMaxSize;n++){for(var r=1;r<=t.opts.tableInsertMaxSize;r++){var a="inline-block";2<n&&!t.helpers.isMobile()&&(a="none");var o="fr-table-cell ";1==n&&1==r&&(o+=" hover"),e+='<span class="fr-command '.concat(o,'" tabIndex="-1" data-cmd="tableInsert" data-row="').concat(n,'" data-col="').concat(r,'" data-param1="').concat(n,'" data-param2="').concat(r,'" style="display: ').concat(a,';" role="button"><span></span><span class="fr-sr-only">').concat(n," × ").concat(r," </span></span>")}e+='<div class="new-line"></div>'}return e+"</div></div>"}()},o=t.popups.create("table.insert",a);return t.events.$on(o,"mouseover",".fr-table-size .fr-select-table-size .fr-table-cell",(function(e){u(c(e.currentTarget))}),!0),function(n){t.events.$on(n,"focus","[tabIndex]",(function(e){u(c(e.currentTarget))})),t.events.on("popup.tab",(function(n){var r=c(n.currentTarget);if(!t.popups.isVisible("table.insert")||!r.is("span, a"))return!0;var a,o=n.which;if(e.KEYCODE.ARROW_UP==o||e.KEYCODE.ARROW_DOWN==o||e.KEYCODE.ARROW_LEFT==o||e.KEYCODE.ARROW_RIGHT==o){if(r.is("span.fr-table-cell")){var i=r.parent().find("span.fr-table-cell"),s=i.index(r),l=t.opts.tableInsertMaxSize,d=s%l,f=Math.floor(s/l);e.KEYCODE.ARROW_UP==o?f=Math.max(0,f-1):e.KEYCODE.ARROW_DOWN==o?f=Math.min(t.opts.tableInsertMaxSize-1,f+1):e.KEYCODE.ARROW_LEFT==o?d=Math.max(0,d-1):e.KEYCODE.ARROW_RIGHT==o&&(d=Math.min(t.opts.tableInsertMaxSize-1,d+1));var p=f*l+d,h=c(i.get(p));u(h),t.events.disableBlur(),h.focus(),a=!1}}else e.KEYCODE.ENTER==o&&(t.button.exec(r),a=!1);return!1===a&&(n.preventDefault(),n.stopPropagation()),a}),!0)}(o),o}function u(e){var n=e.data("row");null!==n&&(n=parseInt(n));var r=e.data("col");null!==r&&(r=parseInt(r));var a=e.parent();a.siblings(".fr-table-size-info").html("".concat(n," × ").concat(r)),a.find("> span").removeClass("hover fr-active-item");for(var o=1;o<=t.opts.tableInsertMaxSize;o++)for(var i=0;i<=t.opts.tableInsertMaxSize;i++){var s=a.find('> span[data-row="'.concat(o,'"][data-col="').concat(i,'"]'));o<=n&&i<=r?s.addClass("hover"):o<=n+1||o<=2&&!t.helpers.isMobile()?s.css("display","inline-block"):2<o&&!t.helpers.isMobile()&&s.css("display","none")}e.addClass("fr-active-item")}function h(e){if(e)return t.popups.onHide("table.edit",f),!0;if(0<t.opts.tableEditButtons.length){var n={buttons:'<div class="fr-buttons">'.concat(t.button.buildList(t.opts.tableEditButtons),"</div>")},r=t.popups.create("table.edit",n);return t.events.$on(t.$wp,"scroll.table-edit",(function(){t.popups.isVisible("table.edit")&&d()})),r}return!1}function g(){if(0<Z().length){var e=Q();t.selection.setBefore(e.get(0))||t.selection.setAfter(e.get(0)),t.selection.restore(),t.popups.hide("table.edit"),e.remove(),t.toolbar.enable()}}function m(e){var n=Q();if(0<n.length){if(0<t.$el.find("th.fr-selected-cell").length&&"above"==e)return;var r,a,o,i=C(),s=O(i);if(null==s)return;a="above"==e?s.min_i:s.max_i;var l="<tr>";for(r=0;r<i[a].length;r++)if("below"==e&&a<i.length-1&&i[a][r]==i[a+1][r]||"above"==e&&0<a&&i[a][r]==i[a-1][r]){if(0===r||0<r&&i[a][r]!=i[a][r-1]){var f=c(i[a][r]);f.attr("rowspan",parseInt(f.attr("rowspan"),10)+1)}}else l+='<td style="'+c(i[a][r]).attr("style")+'" ><br></td>';l+="</tr>",o=0<t.$el.find("th.fr-selected-cell").length&&"below"==e?c(n.find("tbody").not(n.find("> table tbody"))):c(n.find("tr").not(n.find("> table tr")).get(a)),"below"==e?"TBODY"==o.attr("tagName")?o.prepend(l):o[0].parentNode&&o[0].insertAdjacentHTML("afterend",l):"above"==e&&(o.before(l),t.popups.isVisible("table.edit")&&d())}}function v(e,t,n){var r,a,o,i,s,l=0,c=C(n);if(e<(t=Math.min(t,c[0].length-1)))for(a=e;a<=t;a++)if(!(e<a&&c[0][a]==c[0][a-1])&&1<(i=Math.min(parseInt(c[0][a].getAttribute("colspan"),10)||1,t-e+1))&&c[0][a]==c[0][a+1])for(l=i-1,r=1;r<c.length;r++)if(c[r][a]!=c[r-1][a]){for(o=a;o<a+i;o++)if(1<(s=parseInt(c[r][o].getAttribute("colspan"),10)||1)&&c[r][o]==c[r][o+1])o+=l=Math.min(l,s-1);else if(!(l=Math.max(0,l-1)))break;if(!l)break}l&&E(c,l,"colspan",0,c.length-1,e,t)}function b(e,t,n){var r,a,o,i,s,l=0,c=C(n);if(e<(t=Math.min(t,c.length-1)))for(r=e;r<=t;r++)if(!(e<r&&c[r][0]==c[r-1][0])&&1<(i=Math.min(parseInt(c[r][0].getAttribute("rowspan"),10)||1,t-e+1))&&c[r][0]==c[r+1][0])for(l=i-1,a=1;a<c[0].length;a++)if(c[r][a]!=c[r][a-1]){for(o=r;o<r+i;o++)if(1<(s=parseInt(c[o][a].getAttribute("rowspan"),10)||1)&&c[o][a]==c[o+1][a])o+=l=Math.min(l,s-1);else if(!(l=Math.max(0,l-1)))break;if(!l)break}l&&E(c,l,"rowspan",e,t,0,c[0].length-1)}function E(e,t,n,r,a,o,i){var s,l,c;for(s=r;s<=a;s++)for(l=o;l<=i;l++)r<s&&e[s][l]==e[s-1][l]||o<l&&e[s][l]==e[s][l-1]||1<(c=parseInt(e[s][l].getAttribute(n),10)||1)&&(1<c-t?e[s][l].setAttribute(n,c-t):e[s][l].removeAttribute(n))}function A(e,t,n,r,a){b(e,t,a),v(n,r,a)}function T(e){var n=t.$el.find(".fr-selected-cell");"REMOVE"!=e?n.css("background-color",t.helpers.HEXtoRGB(e)):n.css("background-color",""),d()}function C(e){var t=[];return null==(e=e||null)&&0<Z().length&&(e=Q()),e&&e.findVisible("tr").not(e.find("> table tr")).each((function(e,n){var r=c(n),a=0;r.find("> th, > td").each((function(n,r){for(var o=c(r),i=parseInt(o.attr("colspan"),10)||1,s=parseInt(o.attr("rowspan"),10)||1,l=e;l<e+s;l++)for(var d=a;d<a+i;d++)t[l]||(t[l]=[]),t[l][d]?a++:t[l][d]=r;a+=i}))})),t}function S(e,t){for(var n=0;n<t.length;n++)for(var r=0;r<t[n].length;r++)if(t[n][r]==e)return{row:n,col:r}}function y(e,t,n){for(var r=e+1,a=t+1;r<n.length;){if(n[r][t]!=n[e][t]){r--;break}r++}for(r==n.length&&r--;a<n[e].length;){if(n[e][a]!=n[e][t]){a--;break}a++}return a==n[e].length&&a--,{row:r,col:a}}function L(){t.el.querySelector(".fr-cell-fixed")&&t.el.querySelector(".fr-cell-fixed").classList.remove("fr-cell-fixed"),t.el.querySelector(".fr-cell-handler")&&t.el.querySelector(".fr-cell-handler").classList.remove("fr-cell-handler")}function R(){var e=t.$el.find(".fr-selected-cell");0<e.length&&e.each((function(){var e=c(this);e.removeClass("fr-selected-cell"),""===e.attr("class")&&e.removeAttr("class")})),L()}function N(){t.events.disableBlur(),t.selection.clear(),t.$el.addClass("fr-no-selection"),t.$el.blur(),t.events.enableBlur()}function O(e){var n=t.$el.find(".fr-selected-cell");if(0<n.length){var r,a=e.length,o=0,i=e[0].length,s=0;for(r=0;r<n.length;r++){var l=S(n[r],e),c=y(l.row,l.col,e);a=Math.min(l.row,a),o=Math.max(c.row,o),i=Math.min(l.col,i),s=Math.max(c.col,s)}return{min_i:a,max_i:o,min_j:i,max_j:s}}return null}function w(e){var t=O(e);if(null!=t){var n=c(e[t.min_i][t.min_j]),r=c(e[t.min_i][t.max_j]),a=c(e[t.max_i][t.min_j]);return{left:n.length&&n.offset().left,right:r.length&&r.offset().left+r.outerWidth(),top:n.length&&n.offset().top,bottom:a.length&&a.offset().top+a.outerHeight()}}}function x(e,n){if(c(e).is(n))R(),c(e).addClass("fr-selected-cell");else{N(),t.edit.off();var r=C(),a=S(e,r),o=S(n,r),i=function e(t,n,r,a,o){var i,s,l,d,f=t,p=n,u=r,h=a;for(i=f;i<=p;i++)(1<(parseInt(c(o[i][u]).attr("rowspan"),10)||1)||1<(parseInt(c(o[i][u]).attr("colspan"),10)||1))&&(d=y((l=S(o[i][u],o)).row,l.col,o),f=Math.min(l.row,f),p=Math.max(d.row,p),u=Math.min(l.col,u),h=Math.max(d.col,h)),(1<(parseInt(c(o[i][h]).attr("rowspan"),10)||1)||1<(parseInt(c(o[i][h]).attr("colspan"),10)||1))&&(d=y((l=S(o[i][h],o)).row,l.col,o),f=Math.min(l.row,f),p=Math.max(d.row,p),u=Math.min(l.col,u),h=Math.max(d.col,h));for(s=u;s<=h;s++)(1<(parseInt(c(o[f][s]).attr("rowspan"),10)||1)||1<(parseInt(c(o[f][s]).attr("colspan"),10)||1))&&(d=y((l=S(o[f][s],o)).row,l.col,o),f=Math.min(l.row,f),p=Math.max(d.row,p),u=Math.min(l.col,u),h=Math.max(d.col,h)),(1<(parseInt(c(o[p][s]).attr("rowspan"),10)||1)||1<(parseInt(c(o[p][s]).attr("colspan"),10)||1))&&(d=y((l=S(o[p][s],o)).row,l.col,o),f=Math.min(l.row,f),p=Math.max(d.row,p),u=Math.min(l.col,u),h=Math.max(d.col,h));return f==t&&p==n&&u==r&&h==a?{min_i:t,max_i:n,min_j:r,max_j:a}:e(f,p,u,h,o)}(Math.min(a.row,o.row),Math.max(a.row,o.row),Math.min(a.col,o.col),Math.max(a.col,o.col),r);R(),e.classList.add("fr-cell-fixed"),n.classList.add("fr-cell-handler");for(var s=i.min_i;s<=i.max_i;s++)for(var l=i.min_j;l<=i.max_j;l++)c(r[s][l]).addClass("fr-selected-cell")}}function I(e){var n=null,r=c(e.target);return"TD"==e.target.tagName||"TH"==e.target.tagName?n=e.target:0<r.closest("th",r.closest("thead")[0]).length?n=r.closest("th",r.closest("thead")[0]).get(0):0<r.closest("td",r.closest("tr")[0]).length&&(n=r.closest("td",r.closest("tr")[0]).get(0)),-1===t.$el.html.toString().search(n)?null:n}function M(){R(),t.popups.hide("table.edit")}function D(e){var n=I(e);if("false"==c(n).parents("[contenteditable]").not(".fr-element").not(".fr-img-caption").not("body").first().attr("contenteditable"))return!0;if(0<Z().length&&!n&&M(),!t.edit.isDisabled()||t.popups.isVisible("table.edit"))if(1!=e.which||1==e.which&&t.helpers.isMac()&&e.ctrlKey)(3==e.which||1==e.which&&t.helpers.isMac()&&e.ctrlKey)&&n&&M();else if(o=!0,n){0<Z().length&&!e.shiftKey&&M(),e.stopPropagation(),t.events.trigger("image.hideResizer"),t.events.trigger("video.hideResizer"),a=!0;var r=n.tagName.toLowerCase();e.shiftKey&&0<t.$el.find("".concat(r,".fr-selected-cell")).length?c(t.$el.find("".concat(r,".fr-selected-cell")).closest("table")).is(c(n).closest("table"))?x(i,n):N():((t.keys.ctrlKey(e)||e.shiftKey)&&(1<Z().length||0===c(n).find(t.selection.element()).length&&!c(n).is(t.selection.element()))&&N(),i=n,0<t.opts.tableEditButtons.length&&x(i,i))}}function k(e){if(!t.edit.isDisabled()&&t.popups.areVisible())return!0;if(a||t.$tb.is(e.target)||t.$tb.is(c(e.target).closest(".fr-toolbar"))||(0<Z().length&&t.toolbar.enable(),R()),!(1!=e.which||1==e.which&&t.helpers.isMac()&&e.ctrlKey)&&(o=!1,a&&(a=!1,I(e)||1!=Z().length?0<Z().length&&(t.selection.isCollapsed()?d():(R(),t.edit.on())):R()),l)){l=!1,n.removeClass("fr-moving"),t.$el.removeClass("fr-no-selection"),t.edit.on();var r=parseFloat(n.css("left"))+t.opts.tableResizerOffset+t.$wp.offset().left;t.opts.iframe&&(r-=t.$iframe.offset().left),n.data("release-position",r),n.removeData("max-left"),n.removeData("max-right"),function(){var e=n.data("origin"),r=n.data("release-position");if(e!==r){var a=n.data("first"),o=n.data("second"),i=n.data("table"),s=i.outerWidth();if(t.undo.canDo()||t.undo.saveStep(),null!=a&&null!=o){var l,d,f,p=C(i),u=[],h=[],g=[],m=[];for(l=0;l<p.length;l++)d=c(p[l][a]),f=c(p[l][o]),u[l]=d.outerWidth(),g[l]=f.outerWidth(),h[l]=u[l]/s*100,m[l]=g[l]/s*100;for(l=0;l<p.length;l++)if(d=c(p[l][a]),f=c(p[l][o]),p[l][a]!=p[l][o]){var v=(h[l]*(u[l]+r-e)/u[l]).toFixed(4);d.css("width",v+"%"),f.css("width",(h[l]+m[l]-v).toFixed(4)+"%")}}else{var b,E=i.parent(),A=s/E.width()*100,T=(parseInt(i.css("margin-left"),10)||0)/E.width()*100,S=(parseInt(i.css("margin-right"),10)||0)/E.width()*100;"rtl"==t.opts.direction&&0===o||"rtl"!=t.opts.direction&&0!==o?(b=(s+r-e)/s*A,i.css("margin-right","calc(100% - ".concat(Math.round(b).toFixed(4),"% - ").concat(Math.round(T).toFixed(4),"%)"))):("rtl"==t.opts.direction&&0!==o||"rtl"!=t.opts.direction&&0===o)&&(b=(s-r+e)/s*A,i.css("margin-left","calc(100% - ".concat(Math.round(b).toFixed(4),"% - ").concat(Math.round(S).toFixed(4),"%)"))),i.css("width","".concat(Math.round(b).toFixed(4),"%"))}t.selection.restore(),t.undo.saveStep(),t.events.trigger("table.resized",[i.get(0)])}n.removeData("origin"),n.removeData("release-position"),n.removeData("first"),n.removeData("second"),n.removeData("table")}(),P()}}function $(e){if(t.events.$on(c("input"),"click",J),!0===a&&0<t.opts.tableEditButtons.length){if(c(e.currentTarget).closest("table").is(Q())){if("TD"==e.currentTarget.tagName&&0===t.$el.find("th.fr-selected-cell").length)return void x(i,e.currentTarget);if("TH"==e.currentTarget.tagName&&0===t.$el.find("td.fr-selected-cell").length)return void x(i,e.currentTarget)}N()}}function B(e,n,r,a){for(var o,i=n;i!=t.el&&"TD"!=i.tagName&&"TH"!=i.tagName&&("up"==a?o=i.previousElementSibling:"down"==a&&(o=i.nextElementSibling),!o);)i=i.parentNode;"TD"==i.tagName||"TH"==i.tagName?function(e,n){for(var r=e;r&&"TABLE"!=r.tagName&&r.parentNode!=t.el;)r=r.parentNode;if(r&&"TABLE"==r.tagName){var a=C(c(r));"up"==n?_(S(e,a),r,a):"down"==n&&H(S(e,a),r,a)}}(i,a):o&&("up"==a&&t.selection.setAtEnd(o),"down"==a&&t.selection.setAtStart(o))}function _(e,n,r){0<e.row?t.selection.setAtEnd(r[e.row-1][e.col]):B(0,n,0,"up")}function H(e,n,r){var a=parseInt(r[e.row][e.col].getAttribute("rowspan"),10)||1;e.row<r.length-a?t.selection.setAtStart(r[e.row+a][e.col]):B(0,n,0,"down")}function P(){n&&(n.find("div").css("opacity",0),n.css("top",0),n.css("left",0),n.css("height",0),n.find("div").css("height",0),n.hide())}function U(){r&&r.removeClass("fr-visible").css("left","-9999px")}function W(e,n){if(t.$box.find(".fr-line-breaker").isVisible())return!1;r||q(),t.$box.append(r),r.data("instance",t);var a,o=c(n).find("tr").first(),i=e.pageX,s=0,l=0;if(t.opts.iframe){var d=t.helpers.getPX(t.$wp.find(".fr-iframe").css("padding-top")),f=t.helpers.getPX(t.$wp.find(".fr-iframe").css("padding-left"));s+=t.$iframe.offset().left-t.helpers.scrollLeft()+f,l+=t.$iframe.offset().top-t.helpers.scrollTop()+d}o.find("th, td").each((function(){var e=c(this);return e.offset().left<=i&&i<e.offset().left+e.outerWidth()/2?(a=parseInt(r.find("a").css("width"),10),r.css("top",l+e.offset().top-t.$box.offset().top-a-5),r.css("left",s+e.offset().left-t.$box.offset().left-a/2),r.data("selected-cell",e),r.data("position","before"),r.addClass("fr-visible"),!1):e.offset().left+e.outerWidth()/2<=i&&i<e.offset().left+e.outerWidth()?(a=parseInt(r.find("a").css("width"),10),r.css("top",l+e.offset().top-t.$box.offset().top-a-5),r.css("left",s+e.offset().left-t.$box.offset().left+e.outerWidth()-a/2),r.data("selected-cell",e),r.data("position","after"),r.addClass("fr-visible"),!1):void 0}))}function V(e,n){if(t.$box.find(".fr-line-breaker").isVisible())return!1;r||q(),t.$box.append(r),r.data("instance",t);var a,o=c(n),i=e.pageY,s=0,l=0;if(t.opts.iframe){var d=t.helpers.getPX(t.$wp.find(".fr-iframe").css("padding-top")),f=t.helpers.getPX(t.$wp.find(".fr-iframe").css("padding-left"));s+=t.$iframe.offset().left-t.helpers.scrollLeft()+f,l+=t.$iframe.offset().top-t.helpers.scrollTop()+d}o.find("tr").each((function(){var e=c(this);return e.offset().top<=i&&i<e.offset().top+e.outerHeight()/2?(a=parseInt(r.find("a").css("width"),10),r.css("top",l+e.offset().top-t.$box.offset().top-a/2),r.css("left",s+e.offset().left-t.$box.offset().left-a-5),r.data("selected-cell",e.find("td").first()),r.data("position","above"),r.addClass("fr-visible"),!1):e.offset().top+e.outerHeight()/2<=i&&i<e.offset().top+e.outerHeight()?(a=parseInt(r.find("a").css("width"),10),r.css("top",l+e.offset().top-t.$box.offset().top+e.outerHeight()-a/2),r.css("left",s+e.offset().left-t.$box.offset().left-a-5),r.data("selected-cell",e.find("td").first()),r.data("position","below"),r.addClass("fr-visible"),!1):void 0}))}function K(e){s=null;var a=t.doc.elementFromPoint(e.pageX-t.win.pageXOffset,e.pageY-t.win.pageYOffset);t.opts.tableResizer&&(!t.popups.areVisible()||t.popups.areVisible()&&t.popups.isVisible("table.edit"))&&function(e,r){var a=c(r),o=a.closest("table"),i=o.parent();if(r&&"TD"!=r.tagName&&"TH"!=r.tagName&&(0<a.closest("td").length?r=a.closest("td"):0<a.closest("th").length&&(r=a.closest("th"))),!r||"TD"!=r.tagName&&"TH"!=r.tagName)n&&a.get(0)!=n.get(0)&&a.parent().get(0)!=n.get(0)&&t.core.sameInstance(n)&&P();else{if(a=c(r),0===t.$el.find(a).length)return!1;var s=a.offset().left-1,d=s+a.outerWidth();if(Math.abs(e.pageX-s)<=t.opts.tableResizerOffset||Math.abs(d-e.pageX)<=t.opts.tableResizerOffset){var f,p,u,h,g,m=C(o),v=S(r,m),b=y(v.row,v.col,m),E=o.offset().top,A=o.outerHeight()-1;"rtl"!=t.opts.direction?e.pageX-s<=t.opts.tableResizerOffset?(u=s,0<v.col?(h=s-z(v.col-1,m)+t.opts.tableResizingLimit,g=s+z(v.col,m)-t.opts.tableResizingLimit,f=v.col-1,p=v.col):(f=null,p=0,h=o.offset().left-1-parseInt(o.css("margin-left"),10),g=o.offset().left-1+o.width()-m[0].length*t.opts.tableResizingLimit)):d-e.pageX<=t.opts.tableResizerOffset&&(u=d,b.col<m[b.row].length&&m[b.row][b.col+1]?(h=d-z(b.col,m)+t.opts.tableResizingLimit,g=d+z(b.col+1,m)-t.opts.tableResizingLimit,f=b.col,p=b.col+1):(f=b.col,p=null,h=o.offset().left-1+m[0].length*t.opts.tableResizingLimit,g=i.offset().left-1+i.width()+parseFloat(i.css("padding-left")))):d-e.pageX<=t.opts.tableResizerOffset?(u=d,0<v.col?(h=d-z(v.col,m)+t.opts.tableResizingLimit,g=d+z(v.col-1,m)-t.opts.tableResizingLimit,f=v.col,p=v.col-1):(f=null,p=0,h=o.offset().left+m[0].length*t.opts.tableResizingLimit,g=i.offset().left-1+i.width()+parseFloat(i.css("padding-left")))):e.pageX-s<=t.opts.tableResizerOffset&&(u=s,b.col<m[b.row].length&&m[b.row][b.col+1]?(h=s-z(b.col+1,m)+t.opts.tableResizingLimit,g=s+z(b.col,m)-t.opts.tableResizingLimit,f=b.col+1,p=b.col):(f=b.col,p=null,h=i.offset().left+parseFloat(i.css("padding-left")),g=o.offset().left-1+o.width()-m[0].length*t.opts.tableResizingLimit)),n||(t.shared.$table_resizer||(t.shared.$table_resizer=c(document.createElement("div")).attr("class","fr-table-resizer").html("<div></div>")),n=t.shared.$table_resizer,t.events.$on(n,"mousedown",(function(e){return!t.core.sameInstance(n)||(0<Z().length&&M(),1==e.which?(t.selection.save(),l=!0,n.addClass("fr-moving"),N(),t.edit.off(),n.find("div").css("opacity",1),!1):void 0)})),t.events.$on(n,"mousemove",(function(e){if(!t.core.sameInstance(n))return!0;l&&(t.opts.iframe&&(e.pageX-=t.$iframe.offset().left),G(e))})),t.events.on("shared.destroy",(function(){n.html("").removeData().remove(),n=null}),!0),t.events.on("destroy",(function(){t.$el.find(".fr-selected-cell").removeClass("fr-selected-cell"),c("body").first().append(n.hide())}),!0)),n.data("table",o),n.data("first",f),n.data("second",p),n.data("instance",t),t.$wp.append(n);var T=u-t.win.pageXOffset-t.opts.tableResizerOffset-t.$wp.offset().left,L=E-t.$wp.offset().top+t.$wp.scrollTop();if(t.opts.iframe){var R=t.helpers.getPX(t.$wp.find(".fr-iframe").css("padding-top")),O=t.helpers.getPX(t.$wp.find(".fr-iframe").css("padding-left"));T+=t.$iframe.offset().left+O,L+=t.$iframe.offset().top+R,h+=t.$iframe.offset().left,g+=t.$iframe.offset().left}n.data("max-left",h),n.data("max-right",g),n.data("origin",u-t.win.pageXOffset),n.css("top",L),n.css("left",T),n.css("height",A),n.find("div").css("height",A),n.css("padding-left",t.opts.tableResizerOffset),n.css("padding-right",t.opts.tableResizerOffset),n.show()}else t.core.sameInstance(n)&&P()}}(e,a),!t.opts.tableInsertHelper||t.popups.areVisible()||t.$tb.hasClass("fr-inline")&&t.$tb.isVisible()||function(e,n){if(0===Z().length){var a,o,i;if(n&&("HTML"==n.tagName||"BODY"==n.tagName||t.node.isElement(n)))for(a=1;a<=t.opts.tableInsertHelperOffset;a++){if(o=t.doc.elementFromPoint(e.pageX-t.win.pageXOffset,e.pageY-t.win.pageYOffset+a),c(o).hasClass("fr-tooltip"))return!0;if(o&&("TH"==o.tagName||"TD"==o.tagName||"TABLE"==o.tagName)&&(c(o).parents(".fr-wrapper").length||t.opts.iframe)&&"false"!=c(o).closest("table").attr("contenteditable"))return W(e,c(o).closest("table")),!0;if(i=t.doc.elementFromPoint(e.pageX-t.win.pageXOffset+a,e.pageY-t.win.pageYOffset),c(i).hasClass("fr-tooltip"))return!0;if(i&&("TH"==i.tagName||"TD"==i.tagName||"TABLE"==i.tagName)&&(c(i).parents(".fr-wrapper").length||t.opts.iframe)&&"false"!=c(i).closest("table").attr("contenteditable"))return V(e,c(i).closest("table")),!0}t.core.sameInstance(r)&&U()}}(e,a)}function F(){if(l){var e=n.data("table").offset().top-t.win.pageYOffset;if(t.opts.iframe){var r=t.helpers.getPX(t.$wp.find(".fr-iframe").css("padding-top"));e+=t.$iframe.offset().top-t.helpers.scrollTop()+r}n.css("top",e)}}function z(e,t){var n,r=c(t[0][e]).outerWidth();for(n=1;n<t.length;n++)r=Math.min(r,c(t[n][e]).outerWidth());return r}function Y(e,t,n){var r,a=0;for(r=e;r<=t;r++)a+=z(r,n);return a}function G(e){if(1<Z().length&&o&&N(),!1===o&&!1===a&&!1===l)s&&clearTimeout(s),t.edit.isDisabled()&&!t.popups.isVisible("table.edit")||(s=setTimeout(K,30,e));else if(l){var r=e.pageX-t.win.pageXOffset;t.opts.iframe&&(r+=t.$iframe.offset().left);var i=n.data("max-left"),c=n.data("max-right");i<=r&&r<=c?n.css("left",r-t.opts.tableResizerOffset-t.$wp.offset().left):r<i&&parseFloat(n.css("left"),10)>i-t.opts.tableResizerOffset?n.css("left",i-t.opts.tableResizerOffset-t.$wp.offset().left):c<r&&parseFloat(n.css("left"),10)<c-t.opts.tableResizerOffset&&n.css("left",c-t.opts.tableResizerOffset-t.$wp.offset().left)}else o&&U()}function X(n){t.node.isEmpty(n.get(0))?n.prepend(e.MARKERS):n.prepend(e.START_MARKER).append(e.END_MARKER)}function q(){t.shared.$ti_helper||(t.shared.$ti_helper=c(document.createElement("div")).attr("class","fr-insert-helper").html('<a class="fr-floating-btn" role="button" tabIndex="-1" title="'.concat(t.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>')),t.events.bindClick(t.shared.$ti_helper,"a",(function(){var e=r.data("selected-cell"),n=r.data("position"),a=r.data("instance")||t;"before"==n||"after"==n?(t.undo.saveStep(),e.addClass("fr-selected-cell"),a.table.insertColumn(n),e.removeClass("fr-selected-cell"),t.undo.saveStep()):("above"==n||"below"==n)&&(t.undo.saveStep(),e.addClass("fr-selected-cell"),a.table.insertRow(n),e.removeClass("fr-selected-cell"),t.undo.saveStep()),U()})),t.events.on("shared.destroy",(function(){t.shared.$ti_helper.html("").removeData().remove(),t.shared.$ti_helper=null}),!0),t.events.$on(t.shared.$ti_helper,"mousemove",(function(e){e.stopPropagation()}),!0),t.events.$on(c(t.o_win),"scroll",(function(){U()}),!0),t.events.$on(t.$wp,"scroll",(function(){U()}),!0)),r=t.shared.$ti_helper,t.events.on("destroy",(function(){r=null})),t.tooltip.bind(t.$box,".fr-insert-helper > a.fr-floating-btn")}function j(){i=null,clearTimeout(s)}function Z(){return t.el.querySelectorAll(".fr-selected-cell")}function Q(){var e=Z();if(e.length){for(var n=e[0];n&&"TABLE"!=n.tagName&&n.parentNode!=t.el;)n=n.parentNode;return n&&"TABLE"==n.tagName?c(n):c([])}return c([])}function J(e){a=!1}return{_init:function(){if(!t.$wp)return!1;if(!t.helpers.isMobile()){l=a=o=!1,t.events.$on(t.$el,"mousedown",D),t.popups.onShow("image.edit",(function(){R(),a=o=!1})),t.popups.onShow("link.edit",(function(){R(),a=o=!1})),t.events.on("commands.mousedown",(function(e){0<e.parents(".fr-toolbar").length&&R()})),t.events.$on(t.$el,"mouseover","th, td",$),t.events.$on(t.$win,"mouseup",k),t.opts.iframe&&t.events.$on(c(t.o_win),"mouseup",k),t.events.$on(t.$win,"mousemove",G),t.events.$on(c(t.o_win),"scroll",F),t.events.on("contentChanged",(function(){0<Z().length&&(d(),t.$el.find("img").on("load.selected-cells",(function(){c(this).off("load.selected-cells"),0<Z().length&&d()})))})),t.events.$on(c(t.o_win),"resize",(function(){R()})),t.events.on("toolbar.esc",(function(){if(0<Z().length)return t.events.disableBlur(),t.events.focus(),!1}),!0),t.events.$on(c(t.o_win),"keydown",(function(){o&&a&&(a=o=!1,t.$el.removeClass("fr-no-selection"),t.edit.on(),t.selection.setAtEnd(t.$el.find(".fr-selected-cell").last().get(0)),t.selection.restore(),R())})),t.events.$on(t.$el,"keydown",(function(n){n.shiftKey?!1===function(n){var r=Z();if(null!=r&&0<r.length){var a,o=C(),i=n.which,s=S(1==r.length?a=r[0]:(a=t.el.querySelector(".fr-cell-fixed"),t.el.querySelector(".fr-cell-handler")),o);if(e.KEYCODE.ARROW_RIGHT==i){if(s.col<o[0].length-1)return x(a,o[s.row][s.col+1]),!1}else if(e.KEYCODE.ARROW_DOWN==i){if(s.row<o.length-1)return x(a,o[s.row+1][s.col]),!1}else if(e.KEYCODE.ARROW_LEFT==i){if(0<s.col)return x(a,o[s.row][s.col-1]),!1}else if(e.KEYCODE.ARROW_UP==i&&0<s.row)return x(a,o[s.row-1][s.col]),!1}}(n)&&setTimeout((function(){d()}),0):function(n){var r=n.which,a=t.selection.blocks();if(a.length&&("TD"==(a=a[0]).tagName||"TH"==a.tagName)){for(var o=a;o&&"TABLE"!=o.tagName&&o.parentNode!=t.el;)o=o.parentNode;if(o&&"TABLE"==o.tagName&&(e.KEYCODE.ARROW_LEFT==r||e.KEYCODE.ARROW_UP==r||e.KEYCODE.ARROW_RIGHT==r||e.KEYCODE.ARROW_DOWN==r)&&(0<Z().length&&M(),t.browser.webkit&&(e.KEYCODE.ARROW_UP==r||e.KEYCODE.ARROW_DOWN==r))){var i=t.selection.ranges(0).startContainer;if(i.nodeType==Node.TEXT_NODE&&(e.KEYCODE.ARROW_UP==r&&(i.previousSibling&&"BR"!==i.previousSibling.tagName||i.previousSibling&&"BR"===i.previousSibling.tagName&&i.previousSibling.previousSibling)||e.KEYCODE.ARROW_DOWN==r&&(i.nextSibling&&"BR"!==i.nextSibling.tagName||i.nextSibling&&"BR"===i.nextSibling.tagName&&i.nextSibling.nextSibling)))return;n.preventDefault(),n.stopPropagation();var s=C(c(o)),l=S(a,s);e.KEYCODE.ARROW_UP==r?_(l,o,s):e.KEYCODE.ARROW_DOWN==r&&H(l,o,s),t.selection.restore()}}}(n)})),t.events.on("keydown",(function(n){if(!1===function(n){if(n.which==e.KEYCODE.TAB){var r;if(0<Z().length)r=t.$el.find(".fr-selected-cell").last();else{var a=t.selection.element();"TD"==a.tagName||"TH"==a.tagName?r=c(a):a!=t.el&&(0<c(a).parentsUntil(t.$el,"td").length?r=c(a).parents("td").first():0<c(a).parentsUntil(t.$el,"th").length&&(r=c(a).parents("th").first()))}if(r)return n.preventDefault(),!!(0===t.selection.get().focusOffset&&0<c(t.selection.element()).parentsUntil(t.$el,"ol, ul").length&&(0<c(t.selection.element()).closest("li").prev().length||c(t.selection.element()).is("li")&&0<c(t.selection.element()).prev().length))||(M(),n.shiftKey?0<r.prev().length?X(r.prev()):0<r.closest("tr").length&&0<r.closest("tr").prev().length?X(r.closest("tr").prev().find("td").last()):0<r.closest("tbody").length&&0<r.closest("table").find("thead tr").length&&X(r.closest("table").find("thead tr th").last()):0<r.next().length?X(r.next()):0<r.closest("tr").length&&0<r.closest("tr").next().length?X(r.closest("tr").next().find("td").first()):0<r.closest("thead").length&&0<r.closest("table").find("tbody tr").length?X(r.closest("table").find("tbody tr td").first()):(r.addClass("fr-selected-cell"),m("below"),R(),X(r.closest("tr").next().find("td").first())),t.selection.restore(),!1)}}(n))return!1;var r=Z();if(0<r.length){if(0<r.length&&t.keys.ctrlKey(n)&&n.which==e.KEYCODE.A)return R(),t.popups.isVisible("table.edit")&&t.popups.hide("table.edit"),r=[],!0;if(n.which==e.KEYCODE.ESC&&t.popups.isVisible("table.edit"))return R(),t.popups.hide("table.edit"),n.preventDefault(),n.stopPropagation(),n.stopImmediatePropagation(),!(r=[]);if(1<r.length&&(n.which==e.KEYCODE.BACKSPACE||n.which==e.KEYCODE.DELETE)){t.undo.saveStep();for(var a=0;a<r.length;a++)c(r[a]).html("<br>"),a==r.length-1&&c(r[a]).prepend(e.MARKERS);return t.selection.restore(),t.undo.saveStep(),!(r=[])}if(1<r.length&&n.which!=e.KEYCODE.F10&&!t.keys.isBrowserAction(n))return n.preventDefault(),!(r=[])}else if(!(r=[])===function(n){if(n.altKey&&n.which==e.KEYCODE.SPACE){var r,a=t.selection.element();if("TD"==a.tagName||"TH"==a.tagName?r=a:0<c(a).closest("td").length?r=c(a).closest("td").get(0):0<c(a).closest("th").length&&(r=c(a).closest("th").get(0)),r)return n.preventDefault(),x(r,r),d(),!1}}(n))return!1}),!0);var n=[];t.events.on("html.beforeGet",(function(){n=Z();for(var e=0;e<n.length;e++)n[e].className=(n[e].className||"").replace(/fr-selected-cell/g,"")})),t.events.on("html.afterGet",(function(){for(var e=0;e<n.length;e++)n[e].className=(n[e].className?n[e].className.trim()+" ":"")+"fr-selected-cell";n=[]})),p(!0),h(!0)}t.events.on("destroy",j)},insert:function(n,r){var a,o,i="<table "+(t.opts.tableDefaultWidth?'style="width: '+t.opts.tableDefaultWidth+';" ':"")+'class="fr-inserted-table"><tbody>',s=100/r;for(a=0;a<n;a++){for(i+="<tr>",o=0;o<r;o++)i+="<td"+(t.opts.tableDefaultWidth?' style="width: '+s.toFixed(4)+'%;"':"")+">",0===a&&0===o&&(i+=e.MARKERS),i+="<br></td>";i+="</tr>"}i+="</tbody></table>",t.html.insert(i),t.selection.restore();var l=t.$el.find(".fr-inserted-table");l.removeClass("fr-inserted-table"),t.events.trigger("table.inserted",[l.get(0)])},remove:g,insertRow:m,deleteRow:function(){var e=Q();if(0<e.length){var n,r,a,o=C(),i=O(o);if(null==i)return;if(0===i.min_i&&i.max_i==o.length-1)g();else{for(n=i.max_i;n>=i.min_i;n--){for(a=c(e.find("tr").not(e.find("> table tr")).get(n)),r=0;r<o[n].length;r++)if(0===r||o[n][r]!=o[n][r-1]){var s=c(o[n][r]);if(1<parseInt(s.attr("rowspan"),10)){var l=parseInt(s.attr("rowspan"),10)-1;1==l?s.removeAttr("rowspan"):s.attr("rowspan",l)}if(n<o.length-1&&o[n][r]==o[n+1][r]&&(0===n||o[n][r]!=o[n-1][r])){for(var d=o[n][r],f=r;0<f&&o[n][f]==o[n][f-1];)f--;0===f?c(e.find("tr").not(e.find("> table tr")).get(n+1)).prepend(d):c(o[n+1][f-1])[0].parentNode&&c(o[n+1][f-1])[0].insertAdjacentElement("afterend",d)}}var p=a.parent();a.remove(),0===p.find("tr").length&&p.remove(),o=C(e)}A(0,o.length-1,0,o[0].length-1,e),0<i.min_i?t.selection.setAtEnd(o[i.min_i-1][0]):t.selection.setAtEnd(o[0][0]),t.selection.restore(),t.popups.hide("table.edit")}}},insertColumn:function(e){var n=Q();if(0<n.length){var r,a=C(),o=O(a);r="before"==e?o.min_j:o.max_j;var i,s=100/a[0].length,l=100/(a[0].length+1);n.find("th, td").each((function(){(i=c(this)).data("old-width",i.outerWidth()/n.outerWidth()*100)})),n.find("tr").not(n.find("> table tr")).each((function(t){for(var n,o=c(this),i=0,d=0;i-1<r;){if(!(n=o.find("> th, > td").get(d))){n=null;break}n==a[t][i]?(i+=parseInt(c(n).attr("colspan"),10)||1,d++):(i+=parseInt(c(a[t][i]).attr("colspan"),10)||1,"after"==e&&(n=0===d?-1:o.find("> th, > td").get(d-1)))}var f,p=c(n);if("after"==e&&r<i-1||"before"==e&&0<r&&a[t][r]==a[t][r-1]){if(0===t||0<t&&a[t][r]!=a[t-1][r]){var u=parseInt(p.attr("colspan"),10)+1;p.attr("colspan",u),p.css("width",(p.data("old-width")*l/s+l).toFixed(4)+"%"),p.removeData("old-width")}}else f=0<o.find("th").length?'<th style="width: '.concat(l.toFixed(4),'%;"><br></th>'):'<td style="width: '.concat(l.toFixed(4),'%;"><br></td>'),-1==n?o.prepend(f):null==n?o.append(f):"before"==e?p.before(f):"after"==e&&p[0].parentNode&&p[0].insertAdjacentHTML("afterend",f)})),n.find("th, td").each((function(){(i=c(this)).data("old-width")&&(i.css("width",(i.data("old-width")*l/s).toFixed(4)+"%"),i.removeData("old-width"))})),t.popups.isVisible("table.edit")&&d()}},deleteColumn:function(){var e=Q();if(0<e.length){var n,r,a,o=C(),i=O(o);if(null==i)return;if(0===i.min_j&&i.max_j==o[0].length-1)g();else{var s=0;for(n=0;n<o.length;n++)for(r=0;r<o[0].length;r++)(a=c(o[n][r])).hasClass("fr-selected-cell")||(a.data("old-width",a.outerWidth()/e.outerWidth()*100),(r<i.min_j||r>i.max_j)&&(s+=a.outerWidth()/e.outerWidth()*100));for(s/=o.length,r=i.max_j;r>=i.min_j;r--)for(n=0;n<o.length;n++)if(0===n||o[n][r]!=o[n-1][r])if(a=c(o[n][r]),1<(parseInt(a.attr("colspan"),10)||1)){var l=parseInt(a.attr("colspan"),10)-1;1==l?a.removeAttr("colspan"):a.attr("colspan",l),a.css("width",(100*(a.data("old-width")-z(r,o))/s).toFixed(4)+"%"),a.removeData("old-width")}else{var d=c(a.parent().get(0));a.remove(),0===d.find("> th, > td").length&&(0===d.prev().length||0===d.next().length||d.prev().find("> th[rowspan], > td[rowspan]").length<d.prev().find("> th, > td").length)&&d.remove()}A(0,o.length-1,0,o[0].length-1,e),0<i.min_j?t.selection.setAtEnd(o[i.min_i][i.min_j-1]):t.selection.setAtEnd(o[i.min_i][0]),t.selection.restore(),t.popups.hide("table.edit"),e.find("th, td").each((function(){(a=c(this)).data("old-width")&&(a.css("width",(100*a.data("old-width")/s).toFixed(4)+"%"),a.removeData("old-width"))}))}}},mergeCells:function(){if(1<Z().length&&(0===t.$el.find("th.fr-selected-cell").length||0===t.$el.find("td.fr-selected-cell").length)){L();var e,n,r=O(C());if(null==r)return;var a=t.$el.find(".fr-selected-cell"),o=c(a[0]),i=o.parent().find(".fr-selected-cell"),s=o.closest("table"),l=o.html(),f=0;for(e=0;e<i.length;e++)f+=c(i[e]).outerWidth();for(o.css("width",Math.min(100,f/s.outerWidth()*100).toFixed(4)+"%"),r.min_j<r.max_j&&o.attr("colspan",r.max_j-r.min_j+1),r.min_i<r.max_i&&o.attr("rowspan",r.max_i-r.min_i+1),e=1;e<a.length;e++)"<br>"!=(n=c(a[e])).html()&&""!==n.html()&&(l+="<br>".concat(n.html())),n.remove();o.html(l),t.selection.setAtEnd(o.get(0)),t.selection.restore(),t.toolbar.enable(),b(r.min_i,r.max_i,s);var p=s.find("tr:empty");for(e=p.length-1;0<=e;e--)c(p[e]).remove();v(r.min_j,r.max_j,s),d()}},splitCellVertically:function(){if(1==Z().length){var e=t.$el.find(".fr-selected-cell"),n=parseInt(e.attr("colspan"),10)||1,r=e.parent().outerWidth(),a=e.outerWidth(),o=e.clone().html("<br>"),i=C(),s=S(e.get(0),i);if(1<n){var l=Math.ceil(n/2);a=Y(s.col,s.col+l-1,i)/r*100;var d=Y(s.col+l,s.col+n-1,i)/r*100;1<l?e.attr("colspan",l):e.removeAttr("colspan"),1<n-l?o.attr("colspan",n-l):o.removeAttr("colspan"),e.css("width",a.toFixed(4)+"%"),o.css("width",d.toFixed(4)+"%")}else{var f;for(f=0;f<i.length;f++)if(0===f||i[f][s.col]!=i[f-1][s.col]){var p=c(i[f][s.col]);if(!p.is(e)){var u=(parseInt(p.attr("colspan"),10)||1)+1;p.attr("colspan",u)}}a=a/r*100/2,e.css("width","".concat(a.toFixed(4),"%")),o.css("width","".concat(a.toFixed(4),"%"))}e[0].parentNode&&e[0].insertAdjacentElement("afterend",o[0]),R(),t.popups.hide("table.edit")}},splitCellHorizontally:function(){if(1==Z().length){var e=t.$el.find(".fr-selected-cell"),n=e.parent(),r=e.closest("table"),a=parseInt(e.attr("rowspan"),10),o=C(),i=S(e.get(0),o),s=e.clone().html("<br>");if(1<a){var l=Math.ceil(a/2);1<l?e.attr("rowspan",l):e.removeAttr("rowspan"),1<a-l?s.attr("rowspan",a-l):s.removeAttr("rowspan");for(var d=i.row+l,f=0===i.col?i.col:i.col-1;0<=f&&(o[d][f]==o[d][f-1]||0<d&&o[d][f]==o[d-1][f]);)f--;-1==f?c(r.find("tr").not(r.find("> table tr")).get(d)).prepend(s):c(o[d][f])[0].parentNode&&c(o[d][f])[0].insertAdjacentElement("afterend",s[0])}else{var p,u=c(document.createElement("tr")).append(s);for(p=0;p<o[0].length;p++)if(0===p||o[i.row][p]!=o[i.row][p-1]){var h=c(o[i.row][p]);h.is(e)||h.attr("rowspan",(parseInt(h.attr("rowspan"),10)||1)+1)}n[0].parentNode&&n[0].insertAdjacentElement("afterend",u[0])}R(),t.popups.hide("table.edit")}},addHeader:function(){var e=Q();if(0<e.length&&0===e.find("th").length){var t,n="<thead><tr>",r=0;for(e.find("tr").first().find("> td").each((function(){var e=c(this);r+=parseInt(e.attr("colspan"),10)||1})),t=0;t<r;t++)n+="<th><br></th>";n+="</tr></thead>",e.prepend(n),d()}},removeHeader:function(){var e=Q(),n=e.find("thead");if(0<n.length)if(0===e.find("tbody tr").length)g();else if(n.remove(),0<Z().length)d();else{t.popups.hide("table.edit");var r=e.find("tbody tr").first().find("td").first().get(0);r&&(t.selection.setAtEnd(r),t.selection.restore())}},setBackground:T,showInsertPopup:function(){var e=t.$tb.find('.fr-command[data-cmd="insertTable"]'),n=t.popups.get("table.insert");if(n||(n=p()),!n.hasClass("fr-active")){t.popups.refresh("table.insert"),t.popups.setContainer("table.insert",t.$tb);var r=t.button.getPosition(e),a=r.left,o=r.top;t.popups.show("table.insert",a,o,e.outerHeight())}},showEditPopup:d,showColorsPopup:function n(){var r=C();if(r){var a=t.popups.get("table.colors");a||(a=function(){var r="";0<t.opts.tableColorsButtons.length&&(r='<div class="fr-buttons fr-tabs">'.concat(t.button.buildList(t.opts.tableColorsButtons),"</div>"));var a="";t.opts.colorsHEXInput&&(a='<div class="fr-color-hex-layer fr-table-colors-hex-layer fr-active fr-layer" id="fr-table-colors-hex-layer-'.concat(t.id,'"><div class="fr-input-line"><input maxlength="7" id="fr-table-colors-hex-layer-text-').concat(t.id,'" type="text" placeholder="').concat(t.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(t.language.translate("OK"),"</button></div></div>"));var o={buttons:r,colors:function(){for(var e='<div class="fr-color-set fr-table-colors">',n=0;n<t.opts.tableColors.length;n++)0!==n&&n%t.opts.tableColorsStep==0&&(e+="<br>"),"REMOVE"!=t.opts.tableColors[n]?e+='<span class="fr-command" style="background: '.concat(t.opts.tableColors[n],';" tabIndex="-1" role="button" data-cmd="tableCellBackgroundColor" data-param1="').concat(t.opts.tableColors[n],'"><span class="fr-sr-only">').concat(t.language.translate("Color")," ").concat(t.opts.tableColors[n]," </span></span>"):e+='<span class="fr-command" data-cmd="tableCellBackgroundColor" tabIndex="-1" role="button" data-param1="REMOVE" title="'.concat(t.language.translate("Clear Formatting"),'">').concat(t.icon.create("tableColorRemove"),'<span class="fr-sr-only">').concat(t.language.translate("Clear Formatting"),"</span></span>");return e+"</div>"}(),custom_color:a},i=t.popups.create("table.colors",o);return t.events.$on(t.$wp,"scroll.table-colors",(function(){t.popups.isVisible("table.colors")&&n()})),function(n){t.events.on("popup.tab",(function(r){var a=c(r.currentTarget);if(!t.popups.isVisible("table.colors")||!a.is("span"))return!0;var o=r.which,i=!0;if(e.KEYCODE.TAB==o){var s=n.find(".fr-buttons");i=!t.accessibility.focusToolbar(s,!!r.shiftKey)}else if(e.KEYCODE.ARROW_UP==o||e.KEYCODE.ARROW_DOWN==o||e.KEYCODE.ARROW_LEFT==o||e.KEYCODE.ARROW_RIGHT==o){var l=a.parent().find("span.fr-command"),d=l.index(a),f=t.opts.colorsStep,p=Math.floor(l.length/f),u=d%f,h=Math.floor(d/f)*f+u,g=p*f;e.KEYCODE.ARROW_UP==o?h=((h-f)%g+g)%g:e.KEYCODE.ARROW_DOWN==o?h=(h+f)%g:e.KEYCODE.ARROW_LEFT==o?h=((h-1)%g+g)%g:e.KEYCODE.ARROW_RIGHT==o&&(h=(h+1)%g);var m=c(l.get(h));t.events.disableBlur(),m.focus(),i=!1}else e.KEYCODE.ENTER==o&&(t.button.exec(a),i=!1);return!1===i&&(r.preventDefault(),r.stopPropagation()),i}),!0)}(i),i}()),t.popups.setContainer("table.colors",t.$sc);var o=w(r),i=(o.left+o.right)/2,s=o.bottom;!function(){var e=t.popups.get("table.colors"),n=t.$el.find(".fr-selected-cell").first(),r=t.helpers.RGBToHex(n.css("background-color")),a=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(r,'"]')).addClass("fr-selected-color fr-active-item"),a.val(r).trigger("change")}(),t.popups.show("table.colors",i,s,o.bottom-o.top,!0)}},back:function(){0<Z().length?d():(t.popups.hide("table.insert"),t.toolbar.showInline())},verticalAlign:function(e){t.$el.find(".fr-selected-cell").css("vertical-align",e)},horizontalAlign:function(e){t.$el.find(".fr-selected-cell").css("text-align",e)},applyStyle:function(e,t,n,r){if(0<t.length){if(!n){var a=Object.keys(r);a.splice(a.indexOf(e),1),t.removeClass(a.join(" "))}t.toggleClass(e)}},selectedTable:Q,selectedCells:Z,customColor:function(){var e=t.popups.get("table.colors").find(".fr-table-colors-hex-layer input");e.length&&T(e.val())},selectCells:x}},e.DefineIcon("insertTable",{NAME:"table",SVG_KEY:"insertTable"}),e.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"}),e.RegisterCommand("tableInsert",{callback:function(e,t,n){this.table.insert(t,n),this.popups.hide("table.insert")}}),e.DefineIcon("tableHeader",{NAME:"header",FA5NAME:"heading",SVG_KEY:"tableHeader"}),e.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(e){var t=this.table.selectedTable();0<t.length&&(0===t.find("th").length?e.removeClass("fr-active").attr("aria-pressed",!1):e.addClass("fr-active").attr("aria-pressed",!0))}}),e.DefineIcon("tableRows",{NAME:"bars",SVG_KEY:"row"}),e.RegisterCommand("tableRows",{type:"dropdown",focus:!1,title:"Row",options:{above:"Insert row above",below:"Insert row below",delete:"Delete row"},html:function(){var t='<ul class="fr-dropdown-list" role="presentation">',n=e.COMMANDS.tableRows.options;for(var r in n)n.hasOwnProperty(r)&&(t+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="tableRows" data-param1="'+r+'" title="'+this.language.translate(n[r])+'">'+this.language.translate(n[r])+"</a></li>");return t+"</ul>"},callback:function(e,t){"above"==t||"below"==t?this.table.insertRow(t):this.table.deleteRow()}}),e.DefineIcon("tableColumns",{NAME:"bars fa-rotate-90",SVG_KEY:"columns"}),e.RegisterCommand("tableColumns",{type:"dropdown",focus:!1,title:"Column",options:{before:"Insert column before",after:"Insert column after",delete:"Delete column"},html:function(){var t='<ul class="fr-dropdown-list" role="presentation">',n=e.COMMANDS.tableColumns.options;for(var r in n)n.hasOwnProperty(r)&&(t+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="tableColumns" data-param1="'.concat(r,'" title="').concat(this.language.translate(n[r]),'">').concat(this.language.translate(n[r]),"</a></li>"));return t+"</ul>"},callback:function(e,t){"before"==t||"after"==t?this.table.insertColumn(t):this.table.deleteColumn()}}),e.DefineIcon("tableCells",{NAME:"square-o",FA5NAME:"square",SVG_KEY:"cellOptions"}),e.RegisterCommand("tableCells",{type:"dropdown",focus:!1,title:"Cell",options:{merge:"Merge cells","vertical-split":"Vertical split","horizontal-split":"Horizontal split"},html:function(){var t='<ul class="fr-dropdown-list" role="presentation">',n=e.COMMANDS.tableCells.options;for(var r in n)n.hasOwnProperty(r)&&(t+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="tableCells" data-param1="'.concat(r,'" title="').concat(this.language.translate(n[r]),'">').concat(this.language.translate(n[r]),"</a></li>"));return t+"</ul>"},callback:function(e,t){"merge"==t?this.table.mergeCells():"vertical-split"==t?this.table.splitCellVertically():this.table.splitCellHorizontally()},refreshOnShow:function(e,t){1<this.$el.find(".fr-selected-cell").length?(t.find('a[data-param1="vertical-split"]').addClass("fr-disabled").attr("aria-disabled",!0),t.find('a[data-param1="horizontal-split"]').addClass("fr-disabled").attr("aria-disabled",!0),t.find('a[data-param1="merge"]').removeClass("fr-disabled").attr("aria-disabled",!1)):(t.find('a[data-param1="merge"]').addClass("fr-disabled").attr("aria-disabled",!0),t.find('a[data-param1="vertical-split"]').removeClass("fr-disabled").attr("aria-disabled",!1),t.find('a[data-param1="horizontal-split"]').removeClass("fr-disabled").attr("aria-disabled",!1))}}),e.DefineIcon("tableRemove",{NAME:"trash",SVG_KEY:"removeTable"}),e.RegisterCommand("tableRemove",{title:"Remove Table",focus:!1,callback:function(){this.table.remove()}}),e.DefineIcon("tableStyle",{NAME:"paint-brush",SVG_KEY:"tableStyle"}),e.RegisterCommand("tableStyle",{title:"Table Style",type:"dropdown",focus:!1,html:function(){var e='<ul class="fr-dropdown-list" role="presentation">',t=this.opts.tableStyles;for(var n in t)t.hasOwnProperty(n)&&(e+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="tableStyle" data-param1="'.concat(n,'" title="').concat(this.language.translate(t[n]),'">').concat(this.language.translate(t[n]),"</a></li>"));return e+"</ul>"},callback:function(e,t){this.table.applyStyle(t,this.$el.find(".fr-selected-cell").closest("table"),this.opts.tableMultipleStyles,this.opts.tableStyles)},refreshOnShow:function(e,t){var n=this.$,r=this.$el.find(".fr-selected-cell").closest("table");r&&t.find(".fr-command").each((function(){var e=n(this).data("param1"),t=r.hasClass(e);n(this).toggleClass("fr-active",t).attr("aria-selected",t)}))}}),e.DefineIcon("tableCellBackground",{NAME:"tint",SVG_KEY:"cellBackground"}),e.RegisterCommand("tableCellBackground",{title:"Cell Background",focus:!1,popup:!0,callback:function(){this.table.showColorsPopup()}}),e.RegisterCommand("tableCellBackgroundColor",{undo:!0,focus:!1,callback:function(e,t){this.table.setBackground(t)}}),e.DefineIcon("tableBack",{NAME:"arrow-left",SVG_KEY:"back"}),e.RegisterCommand("tableBack",{title:"Back",undo:!1,focus:!1,back:!0,callback:function(){this.table.back()},refresh:function(e){0!==this.table.selectedCells().length||this.opts.toolbarInline?(e.removeClass("fr-hidden"),e.next(".fr-separator").removeClass("fr-hidden")):(e.addClass("fr-hidden"),e.next(".fr-separator").addClass("fr-hidden"))}}),e.DefineIcon("tableCellVerticalAlign",{NAME:"arrows-v",FA5NAME:"arrows-alt-v",SVG_KEY:"verticalAlignMiddle"}),e.RegisterCommand("tableCellVerticalAlign",{type:"dropdown",focus:!1,title:"Vertical Align",options:{Top:"Align Top",Middle:"Align Middle",Bottom:"Align Bottom"},html:function(){var t='<ul class="fr-dropdown-list" role="presentation">',n=e.COMMANDS.tableCellVerticalAlign.options;for(var r in n)n.hasOwnProperty(r)&&(t+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="tableCellVerticalAlign" data-param1="'.concat(r.toLowerCase(),'" title="').concat(this.language.translate(n[r]),'">').concat(this.language.translate(r),"</a></li>"));return t+"</ul>"},callback:function(e,t){this.table.verticalAlign(t)},refreshOnShow:function(e,t){t.find('.fr-command[data-param1="'+this.$el.find(".fr-selected-cell").css("vertical-align")+'"]').addClass("fr-active").attr("aria-selected",!0)}}),e.DefineIcon("tableCellHorizontalAlign",{NAME:"align-left",SVG_KEY:"alignLeft"}),e.DefineIcon("align-left",{NAME:"align-left",SVG_KEY:"alignLeft"}),e.DefineIcon("align-right",{NAME:"align-right",SVG_KEY:"alignRight"}),e.DefineIcon("align-center",{NAME:"align-center",SVG_KEY:"alignCenter"}),e.DefineIcon("align-justify",{NAME:"align-justify",SVG_KEY:"alignJustify"}),e.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 t='<ul class="fr-dropdown-list" role="presentation">',n=e.COMMANDS.tableCellHorizontalAlign.options;for(var r in n)n.hasOwnProperty(r)&&(t+='<li role="presentation"><a class="fr-command fr-title" tabIndex="-1" role="option" data-cmd="tableCellHorizontalAlign" data-param1="'.concat(r,'" title="').concat(this.language.translate(n[r]),'">').concat(this.icon.create("align-".concat(r)),'<span class="fr-sr-only">').concat(this.language.translate(n[r]),"</span></a></li>"));return t+"</ul>"},callback:function(e,t){this.table.horizontalAlign(t)},refresh:function(e){var t=this.table.selectedCells(),n=this.$;t.length&&e.find("> *").first().replaceWith(this.icon.create("align-".concat(this.helpers.getAlignment(n(t[0])))))},refreshOnShow:function(e,t){t.find('.fr-command[data-param1="'+this.helpers.getAlignment(this.$el.find(".fr-selected-cell").first())+'"]').addClass("fr-active").attr("aria-selected",!0)}}),e.DefineIcon("tableCellStyle",{NAME:"magic",SVG_KEY:"cellStyle"}),e.RegisterCommand("tableCellStyle",{title:"Cell Style",type:"dropdown",focus:!1,html:function(){var e='<ul class="fr-dropdown-list" role="presentation">',t=this.opts.tableCellStyles;for(var n in t)t.hasOwnProperty(n)&&(e+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="tableCellStyle" data-param1="'.concat(n,'" title="').concat(this.language.translate(t[n]),'">').concat(this.language.translate(t[n]),"</a></li>"));return e+"</ul>"},callback:function(e,t){this.table.applyStyle(t,this.$el.find(".fr-selected-cell"),this.opts.tableCellMultipleStyles,this.opts.tableCellStyles)},refreshOnShow:function(e,t){var n=this.$,r=this.$el.find(".fr-selected-cell").first();r&&t.find(".fr-command").each((function(){var e=n(this).data("param1"),t=r.hasClass(e);n(this).toggleClass("fr-active",t).attr("aria-selected",t)}))}}),e.RegisterCommand("tableCellBackgroundCustomColor",{title:"OK",undo:!0,callback:function(){this.table.customColor()}}),e.DefineIcon("tableColorRemove",{NAME:"eraser",SVG_KEY:"remove"})}(n(80214))},16729:function(e,t,n){!function(e){"use strict";(e=e&&e.hasOwnProperty("default")?e.default:e).URLRegEx="(^| |\\u00A0)(".concat(e.LinkRegEx,"|([a-z0-9+-_.]{1,}@[a-z0-9+-_.]{1,}\\.[a-z0-9+-_]{1,}))$"),e.PLUGINS.url=function(t){var n=t.$,r=null;function a(e,n,a){for(var o="";a.length&&"."==a[a.length-1];)o+=".",a=a.substring(0,a.length-1);var i=a;if(t.opts.linkConvertEmailAddress)t.helpers.isEmail(i)&&!/^mailto:.*/i.test(i)&&(i="mailto:".concat(i));else if(t.helpers.isEmail(i))return n+a;return/^((http|https|ftp|ftps|mailto|tel|sms|notes|data)\:)/i.test(i)||(i="//".concat(i)),(n||"")+"<a".concat(t.opts.linkAlwaysBlank?' target="_blank"':"").concat(r?' rel="'.concat(r,'"'):"",' data-fr-linked="true" href="').concat(i,'">').concat(a.replace(/&/g,"&").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),"</a>").concat(o)}var o=function(){return new RegExp(e.URLRegEx,"gi")};function i(e){return t.opts.linkAlwaysNoFollow&&(r="nofollow"),t.opts.linkAlwaysBlank&&(t.opts.linkNoOpener&&(r?r+=" noopener":r="noopener"),t.opts.linkNoReferrer&&(r?r+=" noreferrer":r="noreferrer")),e.replace(o(),a)}function s(e){var t=e.split(" ");return t[t.length-1]}function l(){var e=t.selection.ranges(0),r=e.startContainer;if(!r||r.nodeType!==Node.TEXT_NODE||e.startOffset!==(r.textContent||"").length)return!1;if(function e(n){return!!n&&("A"===n.tagName||!(!n.parentNode||n.parentNode==t.el)&&e(n.parentNode))}(r))return!1;if(o().test(s(r.textContent))){n(r).before(i(r.textContent));var a=n(r.parentNode).find("a[data-fr-linked]");a.removeAttr("data-fr-linked"),r.parentNode.removeChild(r),t.events.trigger("url.linked",[a.get(0)])}else if(r.textContent.split(" ").length<=2&&r.previousSibling&&"A"===r.previousSibling.tagName){var l=r.previousSibling.innerText+r.textContent;o().test(s(l))&&(n(r.previousSibling).replaceWith(i(l)),r.parentNode.removeChild(r))}}return{_init:function(){t.events.on("keypress",(function(e){!t.selection.isCollapsed()||"."!=e.key&&")"!=e.key&&"("!=e.key||l()}),!0),t.events.on("keydown",(function(n){var r=n.which;!t.selection.isCollapsed()||r!=e.KEYCODE.ENTER&&r!=e.KEYCODE.SPACE||l()}),!0),t.events.on("paste.beforeCleanup",(function(e){if(t.helpers.isURL(e)){var n=null;return t.opts.linkAlwaysBlank&&(t.opts.linkNoOpener&&(n?n+=" noopener":n="noopener"),t.opts.linkNoReferrer&&(n?n+=" noreferrer":n="noreferrer")),"<a".concat(t.opts.linkAlwaysBlank?' target="_blank"':"").concat(n?' rel="'.concat(n,'"'):"",' href="').concat(e,'" >').concat(e,"</a>")}}))}}}}(n(80214))},81838:function(e,t,n){!function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e,Object.assign(e.POPUP_TEMPLATES,{"video.insert":"[_BUTTONS_][_BY_URL_LAYER_][_EMBED_LAYER_][_UPLOAD_LAYER_][_PROGRESS_BAR_]","video.edit":"[_BUTTONS_]","video.size":"[_BUTTONS_][_SIZE_LAYER_]"}),Object.assign(e.DEFAULTS,{videoAllowedTypes:["mp4","webm","ogg"],videoAllowedProviders:[".*"],videoDefaultAlign:"center",videoDefaultDisplay:"block",videoDefaultWidth:600,videoEditButtons:["videoReplace","videoRemove","videoDisplay","videoAlign","videoSize"],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,videoUploadURL:null}),e.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" 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"}],e.VIDEO_EMBED_REGEX=/^\W*((<iframe(.|\n)*>(\s|\n)*<\/iframe>)|(<embed(.|\n)*>))\W*$/i,e.PLUGINS.video=function(t){var n,r,a,o,i,s,l=t.$,c="https://i.froala.com/upload",d=2,f=3,p=4,u=5,h=6,g={};function m(){var e=t.popups.get("video.insert");e.find(".fr-video-by-url-layer input").val("").trigger("change");var n=e.find(".fr-video-embed-layer textarea");n.val("").trigger("change"),(n=e.find(".fr-video-upload-layer input")).val("").trigger("change")}function v(){var e=t.popups.get("video.edit");if(e||(e=function(){var e="";if(0<t.opts.videoEditButtons.length){t.opts.videoResponsive&&(-1<t.opts.videoEditButtons.indexOf("videoSize")&&t.opts.videoEditButtons.splice(t.opts.videoEditButtons.indexOf("videoSize"),1),-1<t.opts.videoEditButtons.indexOf("videoDisplay")&&t.opts.videoEditButtons.splice(t.opts.videoEditButtons.indexOf("videoDisplay"),1),-1<t.opts.videoEditButtons.indexOf("videoAlign")&&t.opts.videoEditButtons.splice(t.opts.videoEditButtons.indexOf("videoAlign"),1));var n={buttons:e+='<div class="fr-buttons"> \n '.concat(t.button.buildList(t.opts.videoEditButtons)," \n </div>")},r=t.popups.create("video.edit",n);return t.events.$on(t.$wp,"scroll.video-edit",(function(){o&&t.popups.isVisible("video.edit")&&(t.events.disableBlur(),R(o))})),r}return!1}()),e){t.popups.setContainer("video.edit",t.$sc),t.popups.refresh("video.edit");var n=o.find("iframe, embed, video"),r=n.offset().left+n.outerWidth()/2,a=n.offset().top+n.outerHeight();t.popups.show("video.edit",r,a,n.outerHeight(),!0)}}function b(e){if(e)return t.popups.onRefresh("video.insert",m),t.popups.onHide("video.insert",j),!0;var n="";t.opts.videoUpload||-1===t.opts.videoInsertButtons.indexOf("videoUpload")||t.opts.videoInsertButtons.splice(t.opts.videoInsertButtons.indexOf("videoUpload"),1);var r=t.button.buildList(t.opts.videoInsertButtons);""!==r&&(n='<div class="fr-buttons">'+r+"</div>");var a,o="",i=t.opts.videoInsertButtons.indexOf("videoUpload"),s=t.opts.videoInsertButtons.indexOf("videoByURL"),c=t.opts.videoInsertButtons.indexOf("videoEmbed");0<=s&&(a=" fr-active",(i<s&&0<=i||c<s&&0<=c)&&(a=""),o='<div class="fr-video-by-url-layer fr-layer'.concat(a,'" id="fr-video-by-url-layer-').concat(t.id,'"><div class="fr-input-line"><input id="fr-video-by-url-layer-text-').concat(t.id,'" type="text" placeholder="').concat(t.language.translate("Paste in a video URL"),'" tabIndex="1" aria-required="true"></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-submit" data-cmd="videoInsertByURL" tabIndex="2" role="button">').concat(t.language.translate("Insert"),"</button></div></div>"));var d="";0<=c&&(a=" fr-active",(i<c&&0<=i||s<c&&0<=s)&&(a=""),d='<div class="fr-video-embed-layer fr-layer'.concat(a,'" id="fr-video-embed-layer-').concat(t.id,'"><div class="fr-input-line"><textarea id="fr-video-embed-layer-text').concat(t.id,'" type="text" placeholder="').concat(t.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(t.language.translate("Insert"),"</button></div></div>"));var f="";0<=i&&(a=" fr-active",(c<i&&0<=c||s<i&&0<=s)&&(a=""),f='<div class="fr-video-upload-layer fr-layer'.concat(a,'" id="fr-video-upload-layer-').concat(t.id,'"><strong>').concat(t.language.translate("Drop video"),"</strong><br>(").concat(t.language.translate("or click"),')<div class="fr-form"><input type="file" accept="video/').concat(t.opts.videoAllowedTypes.join(", video/").toLowerCase(),'" tabIndex="-1" aria-labelledby="fr-video-upload-layer-').concat(t.id,'" role="button"></div></div>'));var p={buttons:n,by_url_layer:o,embed_layer:d,upload_layer:f,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>'},u=t.popups.create("video.insert",p);return function(e){t.events.$on(e,"dragover dragenter",".fr-video-upload-layer",(function(){return l(this).addClass("fr-drop"),!1}),!0),t.events.$on(e,"dragleave dragend",".fr-video-upload-layer",(function(){return l(this).removeClass("fr-drop"),!1}),!0),t.events.$on(e,"drop",".fr-video-upload-layer",(function(n){n.preventDefault(),n.stopPropagation(),l(this).removeClass("fr-drop");var r=n.originalEvent.dataTransfer;if(r&&r.files){var a=e.data("instance")||t;a.events.disableBlur(),a.video.upload(r.files),a.events.enableBlur()}}),!0),t.helpers.isIOS()&&t.events.$on(e,"touchstart",'.fr-video-upload-layer input[type="file"]',(function(){l(this).trigger("click")}),!0),t.events.$on(e,"change",'.fr-video-upload-layer input[type="file"]',(function(){if(this.files){var n=e.data("instance")||t;n.events.disableBlur(),e.find("input:focus").blur(),n.events.enableBlur(),n.video.upload(this.files)}l(this).val("")}),!0)}(u),u}function E(e){t.events.focus(!0),t.selection.restore();var n=!1;o&&(q(),n=!0),t.html.insert('<span contenteditable="false" draggable="true" class="fr-jiv fr-video fr-deletable">'.concat(e,"</span>"),!1,t.opts.videoSplitHTML),t.popups.hide("video.insert");var r=t.$el.find(".fr-jiv");r.removeClass("fr-jiv"),r.toggleClass("fr-rv",t.opts.videoResponsive),Z(r,t.opts.videoDefaultDisplay,t.opts.videoDefaultAlign),r.toggleClass("fr-draggable",t.opts.videoMove),t.events.trigger(n?"video.replaced":"video.inserted",[r])}function A(){var e=l(this);t.popups.hide("video.insert"),e.removeClass("fr-uploading"),e.parent().next().is("br")&&e.parent().next().remove(),R(e.parent()),t.events.trigger("video.loaded",[e.parent()])}function T(e,n,r,a,o){t.edit.off(),y("Loading video"),n&&(e=t.helpers.sanitizeURL(e));C("Loading video"),function(){var n,i;if(a){t.undo.canDo()||a.find("video").hasClass("fr-uploading")||t.undo.saveStep();var s=a.find("video").data("fr-old-src"),c=a.data("fr-replaced");a.data("fr-replaced",!1),t.$wp?((n=a.clone(!0)).find("video").removeData("fr-old-src").removeClass("fr-uploading"),n.find("video").off("canplay"),s&&a.find("video").attr("src",s),a.replaceWith(n)):n=a;for(var d=n.find("video").get(0).attributes,f=0;f<d.length;f++){var p=d[f];0===p.nodeName.indexOf("data-")&&n.find("video").removeAttr(p.nodeName)}if(void 0!==r)for(i in r)r.hasOwnProperty(i)&&"link"!=i&&n.find("video").attr("data-".concat(i),r[i]);n.find("video").on("canplay",A),n.find("video").attr("src",e),t.edit.on(),B(),t.undo.saveStep(),t.$el.blur(),t.events.trigger(c?"video.replaced":"video.inserted",[n,o])}else n=function(e,n,r){var a,o="";if(n&&void 0!==n)for(a in n)n.hasOwnProperty(a)&&"link"!=a&&(o+=" data-".concat(a,'="').concat(n[a],'"'));var i=t.opts.videoDefaultWidth;i&&"auto"!=i&&(i="".concat(i,"px"));var s=l(document.createElement("span")).attr("contenteditable","false").attr("draggable","true").attr("class","fr-video fr-dv"+t.opts.videoDefaultDisplay[0]+("center"!=t.opts.videoDefaultAlign?" fr-fv"+t.opts.videoDefaultAlign[0]:"")).html('<video src="'+e+'" '+o+(i?' style="width: '+i+';" ':"")+" controls>"+t.language.translate("Your browser does not support HTML5 video.")+"</video>");s.toggleClass("fr-draggable",t.opts.videoMove),t.edit.on(),t.events.focus(!0),t.selection.restore(),t.undo.saveStep(),t.opts.videoSplitHTML?t.markers.split():t.markers.insert(),t.html.wrap();var c=t.$el.find(".fr-marker");return t.node.isLastSibling(c)&&c.parent().hasClass("fr-deletable")&&c.insertAfter(c.parent()),c.replaceWith(s),t.selection.clear(),s.find("video").get(0).readyState>s.find("video").get(0).HAVE_FUTURE_DATA||t.helpers.isIOS()?r.call(s.find("video").get(0)):s.find("video").on("canplaythrough load",r),s}(e,r,A),B(),t.undo.saveStep(),t.events.trigger("video.inserted",[n,o])}()}function C(e){var n=t.popups.get("video.insert");if(n||(n=b()),n.find(".fr-layer.fr-active").removeClass("fr-active").addClass("fr-pactive"),n.find(".fr-video-progress-bar-layer").addClass("fr-active"),n.find(".fr-buttons").hide(),o){var r=o.find("video");t.popups.setContainer("video.insert",t.$sc);var a=r.offset().left,i=r.offset().top+r.height();t.popups.show("video.insert",a,i,r.outerHeight())}void 0===e&&y(t.language.translate("Uploading"),0)}function S(e){var n=t.popups.get("video.insert");if(n&&(n.find(".fr-layer.fr-pactive").addClass("fr-active").removeClass("fr-pactive"),n.find(".fr-video-progress-bar-layer").removeClass("fr-active"),n.find(".fr-buttons").show(),e||t.$el.find("video.fr-error").length)){if(t.events.focus(),t.$el.find("video.fr-error").length&&(t.$el.find("video.fr-error").parent().remove(),t.undo.saveStep(),t.undo.run(),t.undo.dropRedo()),!t.$wp&&o){var r=o;P(!0),t.selection.setAfter(r.find("video").get(0)),t.selection.restore()}t.popups.hide("video.insert")}}function y(e,n){var r=t.popups.get("video.insert");if(r){var a=r.find(".fr-video-progress-bar-layer");a.find("h3").text(e+(n?" ".concat(n,"%"):"")),a.removeClass("fr-error"),n?(a.find("div").removeClass("fr-indeterminate"),a.find("div > span").css("width","".concat(n,"%"))):a.find("div").addClass("fr-indeterminate")}}function L(e){C();var n=t.popups.get("video.insert").find(".fr-video-progress-bar-layer");n.addClass("fr-error");var r=n.find("h3");r.text(e),t.events.disableBlur(),r.focus()}function R(e){H.call(e.get(0))}function N(e){y("Loading video");var n=this.status,r=this.response,a=this.responseXML,o=this.responseText;try{if(t.opts.videoUploadToS3)if(201==n){var i=function(e){try{var n=l(e).find("Location").text(),r=l(e).find("Key").text();return!1===t.events.trigger("video.uploadedToS3",[n,r,e],!0)?(t.edit.on(),!1):n}catch(t){return F(p,e),!1}}(a);i&&T(i,!1,[],e,r||a)}else F(p,r||a);else if(200<=n&&n<300){var s=function(e){try{if(!1===t.events.trigger("video.uploaded",[e],!0))return t.edit.on(),!1;var n=JSON.parse(e);return n.link?n:(F(d,e),!1)}catch(t){return F(p,e),!1}}(o);s&&T(s.link,!1,s,e,r||o)}else F(f,r||o)}catch(e){F(p,r||o)}}function O(){F(p,this.response||this.responseText||this.responseXML)}function w(e){if(e.lengthComputable){var n=e.loaded/e.total*100|0;y(t.language.translate("Uploading"),n)}}function x(){t.edit.on(),S(!0)}function I(e){if(!t.core.sameInstance(a))return!0;e.preventDefault(),e.stopPropagation();var o=e.pageX||(e.originalEvent.touches?e.originalEvent.touches[0].pageX:null),i=e.pageY||(e.originalEvent.touches?e.originalEvent.touches[0].pageY:null);if(!o||!i)return!1;if("mousedown"==e.type){var s=t.$oel.get(0).ownerDocument,c=s.defaultView||s.parentWindow,d=!1;try{d=c.location!=c.parent.location&&!(c.$&&c.$.FE)}catch(e){}d&&c.frameElement&&(o+=t.helpers.getPX(l(c.frameElement).offset().left)+c.frameElement.clientLeft,i=e.clientY+t.helpers.getPX(l(c.frameElement).offset().top)+c.frameElement.clientTop)}t.undo.canDo()||t.undo.saveStep(),(r=l(this)).data("start-x",o),r.data("start-y",i),n.show(),t.popups.hideAll(),W()}function M(e){if(!t.core.sameInstance(a))return!0;if(r){e.preventDefault();var n=e.pageX||(e.originalEvent.touches?e.originalEvent.touches[0].pageX:null),i=e.pageY||(e.originalEvent.touches?e.originalEvent.touches[0].pageY:null);if(!n||!i)return!1;var s=r.data("start-x"),l=r.data("start-y");r.data("start-x",n),r.data("start-y",i);var c=n-s,d=i-l,f=o.find("iframe, embed, video"),p=f.width(),u=f.height();(r.hasClass("fr-hnw")||r.hasClass("fr-hsw"))&&(c=0-c),(r.hasClass("fr-hnw")||r.hasClass("fr-hne"))&&(d=0-d),f.css("width",p+c),f.css("height",u+d),f.removeAttr("width"),f.removeAttr("height"),_()}}function D(e){if(!t.core.sameInstance(a))return!0;r&&o&&(e&&e.stopPropagation(),r=null,n.hide(),_(),v(),t.undo.saveStep())}function k(e){return'<div class="fr-handler fr-h'.concat(e,'"></div>')}function $(e,t,n,r){return e.pageX=t,e.pageY=t,I.call(this,e),e.pageX=e.pageX+n*Math.floor(Math.pow(1.1,r)),e.pageY=e.pageY+n*Math.floor(Math.pow(1.1,r)),M.call(this,e),D.call(this,e),++r}function B(){var e,n=Array.prototype.slice.call(t.el.querySelectorAll("video, .fr-video > *")),r=[];for(e=0;e<n.length;e++)r.push(n[e].getAttribute("src")),l(n[e]).toggleClass("fr-draggable",t.opts.videoMove),""===n[e].getAttribute("class")&&n[e].removeAttribute("class"),""===n[e].getAttribute("style")&&n[e].removeAttribute("style");if(i)for(e=0;e<i.length;e++)r.indexOf(i[e].getAttribute("src"))<0&&t.events.trigger("video.removed",[l(i[e])]);i=n}function _(){a||function(){var r;if(t.shared.$video_resizer?(a=t.shared.$video_resizer,n=t.shared.$vid_overlay,t.events.on("destroy",(function(){l("body").first().append(a.removeClass("fr-active"))}),!0)):(t.shared.$video_resizer=l(document.createElement("div")).attr("class","fr-video-resizer"),a=t.shared.$video_resizer,t.events.$on(a,"mousedown",(function(e){e.stopPropagation()}),!0),t.opts.videoResize&&(a.append(k("nw")+k("ne")+k("sw")+k("se")),t.shared.$vid_overlay=l(document.createElement("div")).attr("class","fr-video-overlay"),n=t.shared.$vid_overlay,r=a.get(0).ownerDocument,l(r).find("body").first().append(n))),t.events.on("shared.destroy",(function(){a.html("").removeData().remove(),a=null,t.opts.videoResize&&(n.remove(),n=null)}),!0),t.helpers.isMobile()||t.events.$on(l(t.o_win),"resize.video",(function(){P(!0)})),t.opts.videoResize){r=a.get(0).ownerDocument,t.events.$on(a,t._mousedown,".fr-handler",I),t.events.$on(l(r),t._mousemove,M),t.events.$on(l(r.defaultView||r.parentWindow),t._mouseup,D),t.events.$on(n,"mouseleave",D);var i=1,s=null,c=0;t.events.on("keydown",(function(n){if(o){var r=-1!=navigator.userAgent.indexOf("Mac OS X")?n.metaKey:n.ctrlKey,a=n.which;(a!==s||200<n.timeStamp-c)&&(i=1),(a==e.KEYCODE.EQUALS||t.browser.mozilla&&a==e.KEYCODE.FF_EQUALS)&&r&&!n.altKey?i=$.call(this,n,1,1,i):(a==e.KEYCODE.HYPHEN||t.browser.mozilla&&a==e.KEYCODE.FF_HYPHEN)&&r&&!n.altKey&&(i=$.call(this,n,2,-1,i)),s=a,c=n.timeStamp}})),t.events.on("keyup",(function(){i=1}))}}(),(t.$wp||t.$sc).append(a),a.data("instance",t);var r=o.find("iframe, embed, video"),i=0,s=0;t.opts.iframe&&(s=t.helpers.getPX(t.$wp.find(".fr-iframe").css("padding-top")),i=t.helpers.getPX(t.$wp.find(".fr-iframe").css("padding-left"))),a.css("top",(t.opts.iframe?r.offset().top+s-1:r.offset().top-t.$wp.offset().top-1)+t.$wp.scrollTop()).css("left",(t.opts.iframe?r.offset().left+i-1:r.offset().left-t.$wp.offset().left-1)+t.$wp.scrollLeft()).css("width",r.get(0).getBoundingClientRect().width).css("height",r.get(0).getBoundingClientRect().height).addClass("fr-active")}function H(n){if(n&&"touchend"==n.type&&s)return!0;if(n&&t.edit.isDisabled())return n.stopPropagation(),n.preventDefault(),!1;if(t.edit.isDisabled())return!1;for(var r=0;r<e.INSTANCES.length;r++)e.INSTANCES[r]!=t&&e.INSTANCES[r].events.trigger("video.hideResizer");t.toolbar.disable(),t.helpers.isMobile()&&(t.events.disableBlur(),t.$el.blur(),t.events.enableBlur()),t.$el.find(".fr-video.fr-active").removeClass("fr-active"),(o=l(this)).addClass("fr-active"),t.opts.iframe&&t.size.syncIframe(),J(),_(),v(),t.selection.clear(),t.button.bulkRefresh(),t.events.trigger("image.hideResizer")}function P(e){o&&(t.shared.vid_exit_flag||!0===e)&&(a.removeClass("fr-active"),t.toolbar.enable(),o.removeClass("fr-active"),o=null,W())}function U(){t.shared.vid_exit_flag=!0}function W(){t.shared.vid_exit_flag=!1}function V(n){var r=n.originalEvent.dataTransfer;if(r&&r.files&&r.files.length){var a=r.files[0];if(a&&a.type&&-1!==a.type.indexOf("video")){if(!t.opts.videoUpload)return n.preventDefault(),n.stopPropagation(),!1;t.markers.remove(),t.markers.insertAtPoint(n.originalEvent),t.$el.find(".fr-marker").replaceWith(e.MARKERS),t.popups.hideAll();var o=t.popups.get("video.insert");return o||(o=b()),t.popups.setContainer("video.insert",t.$sc),t.popups.show("video.insert",n.originalEvent.pageX,n.originalEvent.pageY),C(),0<=t.opts.videoAllowedTypes.indexOf(a.type.replace(/video\//g,""))?K(r.files):F(h),n.preventDefault(),n.stopPropagation(),!1}}}function K(e){if(void 0!==e&&0<e.length){if(!1===t.events.trigger("video.beforeUpload",[e]))return!1;var n,r=e[0];if((null===t.opts.videoUploadURL||t.opts.videoUploadURL==c)&&!t.opts.videoUploadToS3)return function(e){o&&o.find("iframe")&&o.find("iframe").length&&q();var t=new FileReader;t.onload=function(){t.result;for(var n=atob(t.result.split(",")[1]),r=[],a=0;a<n.length;a++)r.push(n.charCodeAt(a));T(window.URL.createObjectURL(new Blob([new Uint8Array(r)],{type:e.type})),!1,null,o)},C(),t.readAsDataURL(e)}(r),!1;if(r.size>t.opts.videoMaxSize)return F(u),!1;if(t.opts.videoAllowedTypes.indexOf(r.type.replace(/video\//g,""))<0)return F(h),!1;if(t.drag_support.formdata&&(n=t.drag_support.formdata?new FormData:null),n){var a;if(!1!==t.opts.videoUploadToS3)for(a in n.append("key",t.opts.videoUploadToS3.keyStart+(new Date).getTime()+"-"+(r.name||"untitled")),n.append("success_action_status","201"),n.append("X-Requested-With","xhr"),n.append("Content-Type",r.type),t.opts.videoUploadToS3.params)t.opts.videoUploadToS3.params.hasOwnProperty(a)&&n.append(a,t.opts.videoUploadToS3.params[a]);for(a in t.opts.videoUploadParams)t.opts.videoUploadParams.hasOwnProperty(a)&&n.append(a,t.opts.videoUploadParams[a]);n.append(t.opts.videoUploadParam,r);var i=t.opts.videoUploadURL;t.opts.videoUploadToS3&&(i=t.opts.videoUploadToS3.uploadURL?t.opts.videoUploadToS3.uploadURL:"https://".concat(t.opts.videoUploadToS3.region,".amazonaws.com/").concat(t.opts.videoUploadToS3.bucket));var s=t.core.getXHR(i,t.opts.videoUploadMethod);s.onload=function(){N.call(s,o)},s.onerror=O,s.upload.onprogress=w,s.onabort=x,C(),t.events.disableBlur(),t.edit.off(),t.events.enableBlur();var d=t.popups.get("video.insert");d&&l(d.off("abortUpload")).on("abortUpload",(function(){4!=s.readyState&&s.abort()})),s.send(n)}}}function F(e,n){t.edit.on(),o&&o.find("video").addClass("fr-error"),L(t.language.translate("Something went wrong. Please try again.")),t.events.trigger("video.error",[{code:e,message:g[e]},n])}function z(){if(o){var e=t.popups.get("video.size"),n=o.find("iframe, embed, video");e.find('input[name="width"]').val(n.get(0).style.width||n.attr("width")).trigger("change"),e.find('input[name="height"]').val(n.get(0).style.height||n.attr("height")).trigger("change")}}function Y(e){if(e)return t.popups.onRefresh("video.size",z),!0;var n={buttons:'<div class="fr-buttons fr-tabs">'.concat(t.button.buildList(t.opts.videoSizeButtons),"</div>"),size_layer:'<div class="fr-video-size-layer fr-layer fr-active" id="fr-video-size-layer-'.concat(t.id,'"><div class="fr-video-group"><div class="fr-input-line"><input id="fr-video-size-layer-width-').concat(t.id,'" type="text" name="width" placeholder="').concat(t.language.translate("Width"),'" tabIndex="1"></div><div class="fr-input-line"><input id="fr-video-size-layer-height-').concat(t.id,'" type="text" name="height" placeholder="').concat(t.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(t.language.translate("Update"),"</button></div></div>")},r=t.popups.create("video.size",n);return t.events.$on(t.$wp,"scroll",(function(){o&&t.popups.isVisible("video.size")&&(t.events.disableBlur(),R(o))})),r}function G(e){if(void 0===e&&(e=o),e){if(e.hasClass("fr-fvl"))return"left";if(e.hasClass("fr-fvr"))return"right";if(e.hasClass("fr-dvb")||e.hasClass("fr-dvi"))return"center";if("block"==e.css("display")){if("left"==e.css("text-algin"))return"left";if("right"==e.css("text-align"))return"right"}else{if("left"==e.css("float"))return"left";if("right"==e.css("float"))return"right"}}return"center"}function X(e){void 0===e&&(e=o);var t=e.css("float");return e.css("float","none"),"block"==e.css("display")?(e.css("float",""),e.css("float")!=t&&e.css("float",t),"block"):(e.css("float",""),e.css("float")!=t&&e.css("float",t),"inline")}function q(){if(o&&!1!==t.events.trigger("video.beforeRemove",[o])){var e=o;t.popups.hideAll(),P(!0),t.selection.setBefore(e.get(0))||t.selection.setAfter(e.get(0)),e.remove(),t.selection.restore(),t.html.fillEmptyBlocks()}}function j(){S()}function Z(e,n,r){!t.opts.htmlUntouched&&t.opts.useClasses?(e.removeClass("fr-fvl fr-fvr fr-dvb fr-dvi"),e.addClass("fr-fv".concat(r[0]," fr-dv").concat(n[0]))):"inline"==n?(e.css({display:"inline-block"}),"center"==r?e.css({float:"none"}):"left"==r?e.css({float:"left"}):e.css({float:"right"})):(e.css({display:"block",clear:"both"}),"left"==r?e.css({textAlign:"left"}):"right"==r?e.css({textAlign:"right"}):e.css({textAlign:"center"}))}function Q(){var n=t.$el.find("video").filter((function(){return 0===l(this).parents("span.fr-video").length}));if(0!=n.length){n.wrap(l(document.createElement("span")).attr("class","fr-video fr-deletable").attr("contenteditable","false")),t.$el.find("embed, iframe").filter((function(){if(t.browser.safari&&this.getAttribute("src")&&this.setAttribute("src",this.src),0<l(this).parents("span.fr-video").length)return!1;for(var n=l(this).attr("src"),r=0;r<e.VIDEO_PROVIDERS.length;r++){var a=e.VIDEO_PROVIDERS[r];if(a.test_regex.test(n)&&new RegExp(t.opts.videoAllowedProviders.join("|")).test(a.provider))return!0}return!1})).map((function(){return 0===l(this).parents("object").length?this:l(this).parents("object").get(0)})).wrap(l(document.createElement("span")).attr("class","fr-video").attr("contenteditable","false"));for(var r,a,o,i,s=t.$el.find("span.fr-video, video"),c=0;c<s.length;c++){var d=l(s[c]);!t.opts.htmlUntouched&&t.opts.useClasses?((i=d).hasClass("fr-dvi")||i.hasClass("fr-dvb")||(i.addClass("fr-fv".concat(G(i)[0])),i.addClass("fr-dv".concat(X(i)[0]))),t.opts.videoTextNear||d.removeClass("fr-dvi").addClass("fr-dvb")):t.opts.htmlUntouched||t.opts.useClasses||(a=(r=d).hasClass("fr-dvb")?"block":r.hasClass("fr-dvi")?"inline":null,o=r.hasClass("fr-fvl")?"left":r.hasClass("fr-fvr")?"right":G(r),Z(r,a,o),r.removeClass("fr-dvb fr-dvi fr-fvr fr-fvl"))}s.toggleClass("fr-draggable",t.opts.videoMove)}}function J(){if(o){t.selection.clear();var e=t.doc.createRange();e.selectNode(o.get(0)),t.selection.get().addRange(e)}}return g[1]="Video cannot be loaded from the passed link.",g[d]="No link in upload response.",g[f]="Error during file upload.",g[p]="Parsing response failed.",g[u]="File is too large.",g[h]="Video file type is invalid.",g[7]="Files can be uploaded only to same domain in IE 8 and IE 9.",t.shared.vid_exit_flag=!1,{_init:function(){t.opts.videoResponsive&&(t.opts.videoResize=!1),t.events.on("drop",V,!0),t.events.on("mousedown window.mousedown",U),t.events.on("window.touchmove",W),t.events.on("mouseup window.mouseup",P),t.events.on("commands.mousedown",(function(e){0<e.parents(".fr-toolbar").length&&P()})),t.events.on("video.hideResizer commands.undo commands.redo element.dropped",(function(){P(!0)})),t.helpers.isMobile()&&(t.events.$on(t.$el,"touchstart","span.fr-video",(function(){s=!1})),t.events.$on(t.$el,"touchmove",(function(){s=!0}))),t.events.on("html.set",Q),Q(),t.events.$on(t.$el,"mousedown","span.fr-video",(function(e){e.stopPropagation(),(t.browser.msie||t.browser.edge)&&(e.target.innerText||(e.target.dragDrop(),H.call(this,e)))})),t.events.$on(t.$el,"click touchend","span.fr-video",(function(e){if(e.target.innerText.length||"false"==l(this).parents("[contenteditable]").not(".fr-element").not(".fr-img-caption").not("body").first().attr("contenteditable"))return!0;H.call(this,e)})),t.events.on("keydown",(function(n){var r=n.which;return!o||r!=e.KEYCODE.BACKSPACE&&r!=e.KEYCODE.DELETE?o&&r==e.KEYCODE.ESC?(P(!0),n.preventDefault(),!1):o&&r!=e.KEYCODE.F10&&!t.keys.isBrowserAction(n)?(n.preventDefault(),!1):void 0:(n.preventDefault(),q(),t.undo.saveStep(),!1)}),!0),t.events.on("toolbar.esc",(function(){if(o)return t.events.disableBlur(),t.events.focus(),!1}),!0),t.events.on("toolbar.focusEditor",(function(){if(o)return!1}),!0),t.events.on("keydown",(function(){t.$el.find("span.fr-video:empty").remove()})),t.$wp&&(B(),t.events.on("contentChanged",B)),b(!0),Y(!0)},showInsertPopup:function(){var e=t.$tb.find('.fr-command[data-cmd="insertVideo"]'),n=t.popups.get("video.insert");if(n||(n=b()),S(),!n.hasClass("fr-active"))if(t.popups.refresh("video.insert"),t.popups.setContainer("video.insert",t.$tb),e.isVisible()){var r=t.button.getPosition(e),a=r.left,o=r.top;t.popups.show("video.insert",a,o,e.outerHeight())}else t.position.forSelection(n),t.popups.show("video.insert")},showLayer:function(e){var n,r,a=t.popups.get("video.insert");if(!o&&!t.opts.toolbarInline){var i=t.$tb.find('.fr-command[data-cmd="insertVideo"]');n=i.offset().left,r=i.offset().top+(t.opts.toolbarBottom?10:i.outerHeight()-10)}t.opts.toolbarInline&&(r=a.offset().top-t.helpers.getPX(a.css("margin-top")),a.hasClass("fr-above")&&(r+=a.outerHeight())),a.find(".fr-layer").removeClass("fr-active"),a.find(".fr-".concat(e,"-layer")).addClass("fr-active"),t.popups.show("video.insert",n,r,0),t.accessibility.focusPopup(a)},refreshByURLButton:function(e){var n=t.popups.get("video.insert");n&&n.find(".fr-video-by-url-layer").hasClass("fr-active")&&e.addClass("fr-active").attr("aria-pressed",!0)},refreshEmbedButton:function(e){var n=t.popups.get("video.insert");n&&n.find(".fr-video-embed-layer").hasClass("fr-active")&&e.addClass("fr-active").attr("aria-pressed",!0)},refreshUploadButton:function(e){var n=t.popups.get("video.insert");n&&n.find(".fr-video-upload-layer").hasClass("fr-active")&&e.addClass("fr-active").attr("aria-pressed",!0)},upload:K,insertByURL:function(n){void 0===n&&(n=(t.popups.get("video.insert").find('.fr-video-by-url-layer input[type="text"]').val()||"").trim());var r=null;if(/^http/.test(n)||(n="https://".concat(n)),t.helpers.isURL(n))for(var a=0;a<e.VIDEO_PROVIDERS.length;a++){var o=e.VIDEO_PROVIDERS[a];if(o.test_regex.test(n)&&new RegExp(t.opts.videoAllowedProviders.join("|")).test(o.provider)){r=n.replace(o.url_regex,o.url_text),r=o.html.replace(/\{url\}/,r);break}}r?E(r):(L(t.language.translate("Something went wrong. Please try again.")),t.events.trigger("video.linkError",[n]))},insertEmbed:function(n){void 0===n&&(n=t.popups.get("video.insert").find(".fr-video-embed-layer textarea").val()||""),0!==n.length&&e.VIDEO_EMBED_REGEX.test(n)?E(n):(L(t.language.translate("Something went wrong. Please try again.")),t.events.trigger("video.codeError",[n]))},insert:E,align:function(e){o.removeClass("fr-fvr fr-fvl"),!t.opts.htmlUntouched&&t.opts.useClasses?"left"==e?o.addClass("fr-fvl"):"right"==e&&o.addClass("fr-fvr"):Z(o,X(),e),J(),_(),v(),t.selection.clear()},refreshAlign:function(e){if(!o)return!1;e.find(">*").first().replaceWith(t.icon.create("video-align-".concat(G())))},refreshAlignOnShow:function(e,t){o&&t.find('.fr-command[data-param1="'.concat(G(),'"]')).addClass("fr-active").attr("aria-selected",!0)},display:function(e){o.removeClass("fr-dvi fr-dvb"),!t.opts.htmlUntouched&&t.opts.useClasses?"inline"==e?o.addClass("fr-dvi"):"block"==e&&o.addClass("fr-dvb"):Z(o,e,G()),J(),_(),v(),t.selection.clear()},refreshDisplayOnShow:function(e,t){o&&t.find('.fr-command[data-param1="'.concat(X(),'"]')).addClass("fr-active").attr("aria-selected",!0)},remove:q,hideProgressBar:S,showSizePopup:function(){var e=t.popups.get("video.size");e||(e=Y()),S(),t.popups.refresh("video.size"),t.popups.setContainer("video.size",t.$sc);var n=o.find("iframe, embed, video"),r=n.offset().left+n.outerWidth()/2,a=n.offset().top+n.height();t.popups.show("video.size",r,a,n.height(),!0)},replace:function(){var e=t.popups.get("video.insert");e||(e=b()),t.popups.isVisible("video.insert")||(S(),t.popups.refresh("video.insert"),t.popups.setContainer("video.insert",t.$sc));var n=o.offset().left+o.outerWidth()/2,r=o.offset().top+o.height();t.popups.show("video.insert",n,r,o.outerHeight(),!0)},back:function(){o?(t.events.disableBlur(),o[0].click()):(t.events.disableBlur(),t.selection.restore(),t.events.enableBlur(),t.popups.hide("video.insert"),t.toolbar.showInline())},setSize:function(e,n){if(o){var r=t.popups.get("video.size"),a=o.find("iframe, embed, video");a.css("width",e||r.find('input[name="width"]').val()),a.css("height",n||r.find('input[name="height"]').val()),a.get(0).style.width&&a.removeAttr("width"),a.get(0).style.height&&a.removeAttr("height"),r.find("input:focus").blur(),setTimeout((function(){o.trigger("click")}),t.helpers.isAndroid()?50:0)}},get:function(){return o},showProgressBar:C}},e.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"}),e.DefineIcon("insertVideo",{NAME:"video-camera",FA5NAME:"camera",SVG_KEY:"insertVideo"}),e.DefineIcon("videoByURL",{NAME:"link",SVG_KEY:"insertLink"}),e.RegisterCommand("videoByURL",{title:"By URL",undo:!1,focus:!1,toggle:!0,callback:function(){this.video.showLayer("video-by-url")},refresh:function(e){this.video.refreshByURLButton(e)}}),e.DefineIcon("videoEmbed",{NAME:"code",SVG_KEY:"codeView"}),e.RegisterCommand("videoEmbed",{title:"Embedded Code",undo:!1,focus:!1,toggle:!0,callback:function(){this.video.showLayer("video-embed")},refresh:function(e){this.video.refreshEmbedButton(e)}}),e.DefineIcon("videoUpload",{NAME:"upload",SVG_KEY:"upload"}),e.RegisterCommand("videoUpload",{title:"Upload Video",undo:!1,focus:!1,toggle:!0,callback:function(){this.video.showLayer("video-upload")},refresh:function(e){this.video.refreshUploadButton(e)}}),e.RegisterCommand("videoInsertByURL",{undo:!0,focus:!0,callback:function(){this.video.insertByURL()}}),e.RegisterCommand("videoInsertEmbed",{undo:!0,focus:!0,callback:function(){this.video.insertEmbed()}}),e.DefineIcon("videoDisplay",{NAME:"star",SVG_KEY:"star"}),e.RegisterCommand("videoDisplay",{title:"Display",type:"dropdown",options:{inline:"Inline",block:"Break Text"},callback:function(e,t){this.video.display(t)},refresh:function(e){this.opts.videoTextNear||e.addClass("fr-hidden")},refreshOnShow:function(e,t){this.video.refreshDisplayOnShow(e,t)}}),e.DefineIcon("video-align",{NAME:"align-left",SVG_KEY:"align Left"}),e.DefineIcon("video-align-left",{NAME:"align-left",SVG_KEY:"alignLeft"}),e.DefineIcon("video-align-right",{NAME:"align-right",SVG_KEY:"alignRight"}),e.DefineIcon("video-align-center",{NAME:"align-justify",SVG_KEY:"alignJustify"}),e.DefineIcon("videoAlign",{NAME:"align-center",SVG_KEY:"alignCenter"}),e.RegisterCommand("videoAlign",{type:"dropdown",title:"Align",options:{left:"Align Left",center:"None",right:"Align Right"},html:function(){var t='<ul class="fr-dropdown-list" role="presentation">',n=e.COMMANDS.videoAlign.options;for(var r in n)n.hasOwnProperty(r)&&(t+='<li role="presentation"><a class="fr-command fr-title" tabIndex="-1" role="option" data-cmd="videoAlign" data-param1="'.concat(r,'" title="').concat(this.language.translate(n[r]),'">').concat(this.icon.create("video-align-".concat(r)),'<span class="fr-sr-only">').concat(this.language.translate(n[r]),"</span></a></li>"));return t+"</ul>"},callback:function(e,t){this.video.align(t)},refresh:function(e){this.video.refreshAlign(e)},refreshOnShow:function(e,t){this.video.refreshAlignOnShow(e,t)}}),e.DefineIcon("videoReplace",{NAME:"exchange",FA5NAME:"exchange-alt",SVG_KEY:"replaceImage"}),e.RegisterCommand("videoReplace",{title:"Replace",undo:!1,focus:!1,popup:!0,refreshAfterCallback:!1,callback:function(){this.video.replace()}}),e.DefineIcon("videoRemove",{NAME:"trash",SVG_KEY:"remove"}),e.RegisterCommand("videoRemove",{title:"Remove",callback:function(){this.video.remove()}}),e.DefineIcon("videoSize",{NAME:"arrows-alt",SVG_KEY:"imageSize"}),e.RegisterCommand("videoSize",{undo:!1,focus:!1,popup:!0,title:"Change Size",callback:function(){this.video.showSizePopup()}}),e.DefineIcon("videoBack",{NAME:"arrow-left",SVG_KEY:"back"}),e.RegisterCommand("videoBack",{title:"Back",undo:!1,focus:!1,back:!0,callback:function(){this.video.back()},refresh:function(e){this.video.get()||this.opts.toolbarInline?(e.removeClass("fr-hidden"),e.next(".fr-separator").removeClass("fr-hidden")):(e.addClass("fr-hidden"),e.next(".fr-separator").addClass("fr-hidden"))}}),e.RegisterCommand("videoDismissError",{title:"OK",undo:!1,callback:function(){this.video.hideProgressBar(!0)}}),e.RegisterCommand("videoSetSize",{undo:!0,focus:!1,title:"Update",refreshAfterCallback:!1,callback:function(){this.video.setSize()}})}(n(80214))},26851:function(e,t,n){!function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e,Object.assign(e.DEFAULTS,{wordDeniedTags:[],wordDeniedAttrs:[],wordAllowedStyleProps:["font-family","font-size","background","color","width","text-align","vertical-align","background-color","padding","margin","height","margin-top","margin-left","margin-right","margin-bottom","text-decoration","font-weight","font-style","text-indent","border","border-.*","line-height","list-style-type"],wordPasteModal:!0,wordPasteKeepFormatting:!0}),e.PLUGINS.wordPaste=function(t){var n,r,a=t.$,o="word_paste",i={};function s(e){var n=t.opts.wordAllowedStyleProps;e||(t.opts.wordAllowedStyleProps=[]),0===r.indexOf("<colgroup>")&&(r="<table>"+r+"</table>"),r=T(r=r.replace(/<span[\n\r ]*style='mso-spacerun:yes'>([\r\n\u00a0 ]*)<\/span>/g,(function(e,t){for(var n="",r=0;r++<t.length;)n+=" ";return n})),t.paste.getRtfClipboard());var a=t.doc.createElement("DIV");a.innerHTML=r,t.html.cleanBlankSpaces(a),r=a.innerHTML,r=(r=t.paste.cleanEmptyTagsAndDivs(r)).replace(/\u200b/g,""),t.modals.hide(o),t.paste.clean(r,!0,!0),t.opts.wordAllowedStyleProps=n}function l(e){e.parentNode&&e.parentNode.removeChild(e)}function c(e,t){if(t(e))for(var n=e.firstChild;n;){var r=n,a=n.previousSibling;n=n.nextSibling,c(r,t),r.previousSibling||r.nextSibling||r.parentNode||!n||a===n.previousSibling||!n.parentNode?r.previousSibling||r.nextSibling||r.parentNode||!n||n.previousSibling||n.nextSibling||n.parentNode||(a?n=a.nextSibling?a.nextSibling.nextSibling:null:e.firstChild&&(n=e.firstChild.nextSibling)):n=a?a.nextSibling:e.firstChild}}function d(e){if(!e.getAttribute("style")||!/mso-list:[\s]*l/gi.test(e.getAttribute("style").replace(/\n/gi,"")))return!1;try{if(!e.querySelector('[style="mso-list:Ignore"]'))return!!(e.outerHTML&&0<=e.outerHTML.indexOf("\x3c!--[if !supportLists]--\x3e"))}catch(e){return!1}return!0}function f(e){return e.getAttribute("style").replace(/\n/gi,"").replace(/.*level([0-9]+?).*/gi,"$1")}function p(e,n){var r=e.cloneNode(!0);if(-1!==["H1","H2","H3","H4","H5","H6"].indexOf(e.tagName)){var a=document.createElement(e.tagName.toLowerCase());a.setAttribute("style",e.getAttribute("style")),a.innerHTML=r.innerHTML,r.innerHTML=a.outerHTML}return c(r,(function(e){if(e.nodeType==Node.COMMENT_NODE&&(t.browser.msie||t.browser.safari||t.browser.edge))try{if("[if !supportLists]"===e.data){for(e=e.nextSibling;e&&e.nodeType!==Node.COMMENT_NODE;){var r=e.nextSibling;e.parentNode.removeChild(e),e=r}e&&e.nodeType==Node.COMMENT_NODE&&e.parentNode.removeChild(e)}}catch(e){}return e.nodeType===Node.ELEMENT_NODE&&("mso-list:\nIgnore"===e.getAttribute("style")&&e.setAttribute("style","mso-list:Ignore"),"mso-list:Ignore"===e.getAttribute("style")&&e.parentNode.removeChild(e),e.setAttribute("style",function(e){var t="",n=e.getAttribute("style");return n&&["line-height","font-family","font-size","color","background"].forEach((function(e){var r=n.match(new RegExp(e+":.*(;|)"));r&&(t+=r[0]+";")})),t}(e)),A(e,n)),!0})),r.innerHTML.replace(/<!--[\s\S]*?-->/gi,"")}function u(e,t){for(var n=document.createElement(t),r=0;r<e.attributes.length;r++){var a=e.attributes[r].name;n.setAttribute(a,e.getAttribute(a))}return n.innerHTML=e.innerHTML,e.parentNode.replaceChild(n,e),n}function h(e){var t=e.getAttribute("align");t&&(e.style["text-align"]=t,e.removeAttribute("align"))}function g(e){return e.replace(/\n|\r|\n\r|"/g,"")}function m(e,t,n){if(t){var r=e.getAttribute("style");r&&";"!==r.slice(-1)&&(r+=";"),t&&";"!==t.slice(-1)&&(t+=";"),t=t.replace(/\n/gi,"");var a;a=n?(r||"")+t:t+(r||""),e.setAttribute("style",a)}}var v=null;function b(e,t,n){for(var r=e.split(n),a=1;a<r.length;a++){var o=r[a];if(1<(o=o.split("shplid")).length){o=o[1];for(var i="",s=0;s<o.length&&"\\"!==o[s]&&"{"!==o[s]&&" "!==o[s]&&"\r"!==o[s]&&"\n"!==o[s];)i+=o[s],s++;var l=o.split("bliptag");if(l&&l.length<2)continue;var c=null;if(-1!==l[0].indexOf("pngblip")?c="image/png":-1!==l[0].indexOf("jpegblip")&&(c="image/jpeg"),!c)continue;var d=l[1].split("}");if(d&&d.length<2)continue;var f=void 0;if(2<d.length&&-1!==d[0].indexOf("blipuid"))f=d[1].split(" ");else{if((f=d[0].split(" "))&&f.length<2)continue;f.shift()}var p=f.join("");v[t+i]={image_hex:p,image_type:c}}}}function E(e,n){if(n){var r;if("IMG"===e.tagName){var o=e.getAttribute("src");if(!o||-1===o.indexOf("file://"))return;if(0===o.indexOf("file://")&&t.helpers.isURL(e.getAttribute("alt")))return void e.setAttribute("src",e.getAttribute("alt"));(r=i[e.getAttribute("v:shapes")])||(r=e.getAttribute("v:shapes"),e.parentNode&&e.parentNode.parentNode&&0<=e.parentNode.parentNode.innerHTML.indexOf("msEquation")&&(r=null))}else r=e.parentNode.getAttribute("o:spid");if(e.removeAttribute("height"),r){!function(e){v={},b(e,"i","\\shppict"),b(e,"s","\\shp{")}(n);var s=v[r.substring(7)];if(s){var l=function(e){for(var t=e.match(/[0-9a-f]{2}/gi),n=[],r=0;r<t.length;r++)n.push(String.fromCharCode(parseInt(t[r],16)));var a=n.join("");return btoa(a)}(s.image_hex),c="data:"+s.image_type+";base64,"+l;"IMG"===e.tagName?(e.src=c,e.setAttribute("data-fr-image-pasted",!0)):a(e.parentNode).before('<img data-fr-image-pasted="true" src="'+c+'" style="'+e.parentNode.getAttribute("style")+'">').remove()}}}}function A(n,r){var a=n.tagName,o=a.toLowerCase();if(n.firstElementChild&&("I"===n.firstElementChild.tagName?u(n.firstElementChild,"em"):"B"===n.firstElementChild.tagName&&u(n.firstElementChild,"strong")),-1!==["SCRIPT","APPLET","EMBED","NOFRAMES","NOSCRIPT"].indexOf(a))return l(n),!1;for(var i=["META","LINK","XML","ST1:","O:","W:","FONT"],s=0;s<i.length;s++)if(-1!==a.indexOf(i[s]))return n.innerHTML&&(n.outerHTML=n.innerHTML),l(n),!1;if("TD"!==a){var c=n.getAttribute("class")||"MsoNormal";if(r&&c){for(var f=(c=g(c)).split(" "),p=0;p<f.length;p++){var v=[],b="."+f[p];v.push(b),b=o+b,v.push(b);for(var E=0;E<v.length;E++)r[v[E]]&&m(n,r[v[E]])}n.removeAttribute("class")}r&&r[o]&&m(n,r[o])}if(-1!==["P","H1","H2","H3","H4","H5","H6","PRE"].indexOf(a)){var A=n.getAttribute("class");if(A&&(r&&r[a.toLowerCase()+"."+A]&&m(n,r[a.toLowerCase()+"."+A]),-1!==A.toLowerCase().indexOf("mso"))){var T=g(A);(T=T.replace(/[0-9a-z-_]*mso[0-9a-z-_]*/gi,""))?n.setAttribute("class",T):n.removeAttribute("class")}var C=n.getAttribute("style");if(C){var S=C.match(/text-align:.+?[; "]{1,1}/gi);S&&S[S.length-1].replace(/(text-align:.+?[; "]{1,1})/gi,"$1")}h(n)}if("TR"===a&&function(n,r){t.node.clearAttributes(n);for(var a=n.firstElementChild,o=0,i=!1,s=null;a;){a.firstElementChild&&-1!==a.firstElementChild.tagName.indexOf("W:")&&(a.innerHTML=a.firstElementChild.innerHTML),(s=a.getAttribute("width"))||i||(i=!0),o+=parseInt(s,10),(!a.firstChild||a.firstChild&&a.firstChild.data===e.UNICODE_NBSP)&&(a.firstChild&&l(a.firstChild),a.innerHTML="<br>");for(var c=a.firstElementChild,f=1===a.children.length;c;)"P"!==c.tagName||d(c)||f&&h(c),c=c.nextElementSibling;if(r){var p=a.getAttribute("class");if(p){var u=(p=g(p)).match(/xl[0-9]+/gi);if(u){var v="."+u[0];r[v]&&m(a,r[v])}}r.td&&m(a,r.td)}var b=a.getAttribute("style");b&&(b=g(b))&&";"!==b.slice(-1)&&(b+=";");var E=a.getAttribute("valign");if(!E&&b){var A=b.match(/vertical-align:.+?[; "]{1,1}/gi);A&&(E=A[A.length-1].replace(/vertical-align:(.+?)[; "]{1,1}/gi,"$1"))}var T=null;if(b){var C=b.match(/text-align:.+?[; "]{1,1}/gi);C&&(T=C[C.length-1].replace(/text-align:(.+?)[; "]{1,1}/gi,"$1")),"general"===T&&(T=null)}var S=null;if(b){var y=b.match(/background:.+?[; "]{1,1}/gi);y&&(S=y[y.length-1].replace(/background:(.+?)[; "]{1,1}/gi,"$1"))}var L=a.getAttribute("colspan"),R=a.getAttribute("rowspan");L&&a.setAttribute("colspan",L),R&&a.setAttribute("rowspan",R),E&&(a.style["vertical-align"]=E),T&&(a.style["text-align"]=T),S&&(a.style["background-color"]=S),s&&a.setAttribute("width",s),a=a.nextElementSibling}for(a=n.firstElementChild;a;)s=a.getAttribute("width"),i?a.removeAttribute("width"):a.setAttribute("width",100*parseInt(s,10)/o+"%"),a=a.nextElementSibling}(n,r),"A"!==a||n.attributes.getNamedItem("href")||n.attributes.getNamedItem("name")||!n.innerHTML||(n.outerHTML=n.innerHTML),"A"==a&&n.getAttribute("href")&&n.querySelector("img"))for(var y=n.querySelectorAll("span"),L=0;L<y.length;L++)y[L].innerText||(y[L].outerHTML=y[L].innerHTML);if("TD"!==a&&"TH"!==a||n.innerHTML||(n.innerHTML="<br>"),"TABLE"===a&&(n.style.width=n.style.width),n.getAttribute("lang")&&n.removeAttribute("lang"),n.getAttribute("style")&&-1!==n.getAttribute("style").toLowerCase().indexOf("mso")){var R=g(n.getAttribute("style"));(R=R.replace(/[0-9a-z-_]*mso[0-9a-z-_]*:.+?(;{1,1}|$)/gi,""))?n.setAttribute("style",R):n.removeAttribute("style")}return!0}function T(n,r){0<=n.indexOf("<html")&&(n=n.replace(/[.\s\S\w\W<>]*(<html[^>]*>[.\s\S\w\W<>]*<\/html>)[.\s\S\w\W<>]*/i,"$1")),function(e){for(var t=e.split("v:shape"),n=1;n<t.length;n++){var r=t[n],a=r.split(' id="')[1];if(a&&1<a.length){a=a.split('"')[0];var o=r.split(' o:spid="')[1];o&&1<o.length&&(o=o.split('"')[0],i[a]=o)}}}(n);var a=(new DOMParser).parseFromString(n,"text/html"),o=a.head,s=a.body,h=function(e){var t={},n=e.getElementsByTagName("style");if(n.length){var r=n[0].innerHTML.match(/[\S ]+\s+{[\s\S]+?}/gi);if(r)for(var a=0;a<r.length;a++){var o=r[a],i=o.replace(/([\S ]+\s+){[\s\S]+?}/gi,"$1"),s=o.replace(/[\S ]+\s+{([\s\S]+?)}/gi,"$1");i=i.replace(/^[\s]|[\s]$/gm,""),s=s.replace(/^[\s]|[\s]$/gm,""),i=i.replace(/\n|\r|\n\r/g,""),s=s.replace(/\n|\r|\n\r/g,"");for(var l=i.split(", "),c=0;c<l.length;c++)t[l[c]]=s}}return t}(o);c(s,(function(t){if(t.nodeType===Node.TEXT_NODE&&/\n|\u00a0|\r/.test(t.data)){if(!/\S| /.test(t.data)&&!/[\u00a0]+/.test(t.data))return t.data===e.UNICODE_NBSP?(t.data="",!0):1===t.data.length&&10===t.data.charCodeAt(0)?(t.data=" ",!0):(l(t),!1);t.data=t.data.replace(/\n|\r/gi," ")}return!0})),c(s,(function(e){return e.nodeType!==Node.ELEMENT_NODE||"V:IMAGEDATA"!==e.tagName&&"IMG"!==e.tagName||E(e,r),!0}));for(var m=s.querySelectorAll("ul > ul, ul > ol, ol > ul, ol > ol"),v=m.length-1;0<=v;v--)m[v].previousElementSibling&&"LI"===m[v].previousElementSibling.tagName&&m[v].previousElementSibling.appendChild(m[v]);c(s,(function(e){if(e.nodeType===Node.TEXT_NODE)return e.data=e.data.replace(/<br>(\n|\r)/gi,"<br>"),!1;if(e.nodeType===Node.ELEMENT_NODE){if(d(e)){var t,n=e.parentNode,r=e.previousSibling,a=function e(t,n,r,a){var o,i,s=/[0-9a-zA-Z]./gi,l=!1,c=navigator.userAgent.toLowerCase();-1!=c.indexOf("safari")&&(c=-1<c.indexOf("chrome")?1:"safari"),t.innerHTML.includes("mso-list:\nIgnore")&&(t.innerHTML=t.innerHTML.replace(/mso-list:\nIgnore/gi,"mso-list:Ignore"));var u,h,g,m,v,b=t.querySelector('span[style="mso-list:Ignore"]');null==b&&"safari"==c&&(b=t.querySelector('span[lang="PT-BR"]')),b&&(l=l||s.test(b.textContent)),null!==b&&(v=b.textContent.trim().split(".")[0]),g=1==l?("1"==(v=b.textContent.trim().split(".")[0])?m="decimal;":"i"==v?m="lower-roman;":"I"==v?m="upper-roman;":"o"==v?m="circle;":v.match(/^v$/)||(v.match(/^[a-z]$/)||v.match(/^[a-z]\)$/)?m="lower-alpha;":(v.match(/^[A-Z]$/)||v.match(/^[A-Z]\)$/))&&(m="upper-alpha;")),m="list-style-type: "+m,"ol"):(null!=b&&(v=b.textContent.trim().split(".")[0]),"§"==v?m="square;":"·"==v&&(m="disc;"),m="list-style-type: "+m,"ul");var E,A="";null==b||null==b.textContent||isNaN(parseInt(b.textContent.trim().split(".")[1],10))||(A=' class="decimal_type" ');var T,C=f(t),S=t.style.marginLeft;if(S.includes("in")?(T="in",S=parseFloat(S)-.5):S.includes("pt")&&(T="px",S=parseFloat(S)-10),1==C)if(E=m?"<"+g+' style = "'+m+"; margin-left:"+S+T+';">':"<"+g+' style="margin-left:'+S+T+';">',"list-style-type: upper-alpha;"==m){var y=v.charCodeAt(0)-64;E=m?"<"+g+A+' start="'+y+'" style = "'+m+" margin-left:"+S+T+';">':"<"+g+">"}else if("list-style-type: lower-alpha;"==m){var L=v.charCodeAt(0)-96;E=m?"<"+g+A+' start="'+L+'" style = "'+m+"margin-left:"+S+T+';">':"<"+g+">"}else E=m?"<"+g+A+' style = "'+m+";margin-left:"+S+T+';">':"<"+g+' style="margin-left:'+S+T+';">';else if("list-style-type: upper-alpha;"==m){var R=v.charCodeAt(0)-64;E=m?"<"+g+A+' style = "'+m+' start="'+R+'">':"<"+g+">"}else if("list-style-type: lower-alpha;"==m){var N=v.charCodeAt(0)-96;E=m?"<"+g+A+' style = "'+m+' start="'+N+'">':"<"+g+">"}else E=m?"<"+g+A+' style = "'+m+'">':"<"+g+">";for(var O=!1;t;){if(!d(t)){if(t.outerHTML&&0<t.outerHTML.indexOf("mso-bookmark")&&0==(t.textContent||"").length){t=t.nextElementSibling;continue}break}var w=f(t);if((r=r||w)<w)E+=(h=e(t,n,w,t.style.marginLeft)).el.outerHTML,t=h.currentNode;else{if(w<r)break;t.firstElementChild&&t.firstElementChild.firstElementChild&&t.firstElementChild.firstElementChild.firstChild&&(s.lastIndex=0),i&&i.firstElementChild&&i.firstElementChild.firstElementChild&&i.firstElementChild.firstElementChild.firstChild&&(s.lastIndex=0,o=s.test(i.firstElementChild.firstElementChild.firstChild.data||i.firstElementChild.firstElementChild.firstChild.firstChild&&i.firstElementChild.firstElementChild.firstChild.firstChild.data||""));var x=!1;(!a&&!t.style.marginLeft||a&&t.style.marginLeft&&a===t.style.marginLeft)&&(x=!0),a=t.style.marginLeft,x||void 0===o?(u=p(t,n),null==t.nextSibling.innerText||null==t.nextSibling.innerText||E.includes('class="decimal_type"')||isNaN(parseInt(t.nextSibling.innerText.trim().split(".")[1],10))||(E=E.substring(3,0)+' class="decimal_type"'+E.substring(3,E.length)),E+="<li>"+u+"</li>"):(1==w&&(E+="</"+g+">",O=!0,i=null),E+=(h=e(t,n,w,t.style.marginLeft)).el.outerHTML,t=h.currentNode);var I=t&&t.nextElementSibling;if(I&&(i=I.previousElementSibling),t&&!d(t)){if(t.outerHTML&&0<t.outerHTML.indexOf("mso-bookmark")&&0==(t.textContent||"").length){t=t.nextElementSibling;continue}break}t&&t.parentNode&&t.parentNode.removeChild(t),t=I}}O||(E+="</"+g+">");var M=document.createElement("div");return M.innerHTML=E,{el:M,currentNode:t}}(e,h).el;return(t=r?r.nextSibling:n.firstChild)?n.insertBefore(a,t):n.appendChild(a),!1}return"FONT"===e.tagName&&h["."+e.getAttribute("class")]&&(e=u(e,"span")),A(e,h)}if(e.nodeType!==Node.COMMENT_NODE)return!0;if(-1<e.data.indexOf("[if !supportLineBreakNewLine]"))for(var o=e.nextSibling;o;)(o=e.nextSibling)&&l(o),o.data&&-1<o.data.indexOf("[endif]")&&(o=null);if(-1<e.data.indexOf("[if supportFields]")&&-1<e.data.indexOf("FORMCHECKBOX")){var i=document.createElement("input");i.type="checkbox",e.parentNode.insertBefore(i,e.nextSibling)}return l(e),!1})),c(s,(function(e){if(e.nodeType===Node.ELEMENT_NODE){var t=e.tagName;if(!e.innerHTML&&-1===["BR","IMG","INPUT"].indexOf(t)){for(var n=e.parentNode;n&&(l(e),!(e=n).innerHTML);)n=e.parentNode;return!1}!function(e){var t=e.getAttribute("style");if(t){(t=g(t))&&";"!==t.slice(-1)&&(t+=";");var n=t.match(/(^|\S+?):.+?;{1,1}/gi);if(n){for(var r={},a=0;a<n.length;a++){var o=n[a].split(":");2===o.length&&("text-align"===o[0]&&"SPAN"===e.tagName||(r[o[0]]=o[1]))}var i="";for(var s in r)if(r.hasOwnProperty(s)){if("font-size"===s&&"pt;"===r[s].slice(-3)){var l=null;try{l=parseFloat(r[s].slice(0,-3),10)}catch(e){l=null}l&&(l=Math.round(1.33*l),r[s]=l+"px;")}i+=s+":"+r[s]}i&&e.setAttribute("style",i)}}}(e)}return!0})),c(s,(function(e){if(e&&"A"===e.nodeName&&""===e.href){for(var t=document.createDocumentFragment();e.firstChild;)t.appendChild(e.firstChild);e.parentNode.replaceChild(t,e)}return!0}));var b=s.outerHTML,T=t.opts.htmlAllowedStyleProps;return t.opts.htmlAllowedStyleProps=t.opts.wordAllowedStyleProps,b=t.clean.html(b,t.opts.wordDeniedTags,t.opts.wordDeniedAttrs,!1),t.opts.htmlAllowedStyleProps=T,b}return{_init:function(){t.events.on("paste.wordPaste",(function(e){return r=e,t.opts.wordPasteModal?function(){if(!n){var e='<h4><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 74.95 73.23" style="height: 25px; vertical-align: text-bottom; margin-right: 5px; display: inline-block"><defs><style>.a{fill:#2a5699;}.b{fill:#fff;}</style></defs><path class="a" d="M615.15,827.22h5.09V834c9.11.05,18.21-.09,27.32.05a2.93,2.93,0,0,1,3.29,3.25c.14,16.77,0,33.56.09,50.33-.09,1.72.17,3.63-.83,5.15-1.24.89-2.85.78-4.3.84-8.52,0-17,0-25.56,0v6.81h-5.32c-13-2.37-26-4.54-38.94-6.81q0-29.8,0-59.59c13.05-2.28,26.11-4.5,39.17-6.83Z" transform="translate(-575.97 -827.22)"/><path class="b" d="M620.24,836.59h28.1v54.49h-28.1v-6.81h22.14v-3.41H620.24v-4.26h22.14V873.2H620.24v-4.26h22.14v-3.41H620.24v-4.26h22.14v-3.41H620.24v-4.26h22.14v-3.41H620.24V846h22.14v-3.41H620.24Zm-26.67,15c1.62-.09,3.24-.16,4.85-.25,1.13,5.75,2.29,11.49,3.52,17.21,1-5.91,2-11.8,3.06-17.7,1.7-.06,3.41-.15,5.1-.26-1.92,8.25-3.61,16.57-5.71,24.77-1.42.74-3.55,0-5.24.09-1.13-5.64-2.45-11.24-3.47-16.9-1,5.5-2.29,10.95-3.43,16.42q-2.45-.13-4.92-.3c-1.41-7.49-3.07-14.93-4.39-22.44l4.38-.18c.88,5.42,1.87,10.82,2.64,16.25,1.2-5.57,2.43-11.14,3.62-16.71Z" transform="translate(-575.97 -827.22)"/></svg> '+t.language.translate("Word Paste Detected")+"</h4>",r=function(){var e='<div class="fr-word-paste-modal" style="padding: 20px 20px 10px 20px;">';return e+='<p style="text-align: left;">'+t.language.translate("The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?")+"</p>",(e+='<div style="text-align: right; margin-top: 50px;"><button class="fr-remove-word fr-command">'+t.language.translate("Clean")+'</button> <button class="fr-keep-word fr-command">'+t.language.translate("Keep")+"</button></div>")+"</div>"}(),i=t.modals.create(o,e,r),s=i.$body;n=i.$modal,i.$modal.addClass("fr-middle"),t.events.bindClick(s,"button.fr-remove-word",(function(){(n.data("instance")||t).wordPaste.clean()})),t.events.bindClick(s,"button.fr-keep-word",(function(){(n.data("instance")||t).wordPaste.clean(!0)})),t.events.$on(a(t.o_win),"resize",(function(){t.modals.resize(o)}))}t.modals.show(o),t.modals.resize(o)}():s(t.opts.wordPasteKeepFormatting),!1}))},clean:s,_wordClean:T}}}(n(80214))}}]); |