1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-libs~8a52df3b"],{e562:function(e,t,n){(function(t){(function(n){"use strict";var r=function(){},o=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e(t.apply(null,n))}},i=function(e){return function(){return e}},a=function(e){return e};function u(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=t.concat(n);return e.apply(null,o)}}var c=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return!e.apply(null,t)}},s=function(e){return function(){throw new Error(e)}},l=i(!1),f=i(!0),d=function(){return h},h=function(){var e=function(e){return e.isNone()},t=function(e){return e()},n=function(e){return e},o={fold:function(e,t){return e()},is:l,isSome:l,isNone:f,getOr:n,getOrThunk:t,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:i(null),getOrUndefined:i(void 0),or:n,orThunk:t,map:d,each:r,bind:d,exists:l,forall:f,filter:d,equals:e,equals_:e,toArray:function(){return[]},toString:i("none()")};return Object.freeze&&Object.freeze(o),o}(),m=function(e){var t=i(e),n=function(){return o},r=function(t){return t(e)},o={fold:function(t,n){return n(e)},is:function(t){return e===t},isSome:f,isNone:l,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return m(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?o:h},toArray:function(){return[e]},toString:function(){return"some("+e+")"},equals:function(t){return t.is(e)},equals_:function(t,n){return t.fold(l,(function(t){return n(e,t)}))}};return o},g=function(e){return null===e||void 0===e?h:m(e)},p={some:m,none:d,from:g},v=function(e){if(null===e)return"null";var t=typeof e;return"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},y=function(e){return function(t){return v(t)===e}},b=y("string"),w=y("object"),C=y("array"),x=y("null"),E=y("boolean"),z=y("function"),k=y("number"),N=Array.prototype.slice,S=Array.prototype.indexOf,T=Array.prototype.push,A=function(e,t){return S.call(e,t)},R=function(e,t){var n=A(e,t);return-1===n?p.none():p.some(n)},B=function(e,t){return A(e,t)>-1},D=function(e,t){for(var n=0,r=e.length;n<r;n++){var o=e[n];if(t(o,n))return!0}return!1},M=function(e,t){for(var n=e.length,r=new Array(n),o=0;o<n;o++){var i=e[o];r[o]=t(i,o)}return r},P=function(e,t){for(var n=0,r=e.length;n<r;n++){var o=e[n];t(o,n)}},_=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];t(r,n)}},O=function(e,t){for(var n=[],r=[],o=0,i=e.length;o<i;o++){var a=e[o],u=t(a,o)?n:r;u.push(a)}return{pass:n,fail:r}},H=function(e,t){for(var n=[],r=0,o=e.length;r<o;r++){var i=e[r];t(i,r)&&n.push(i)}return n},L=function(e,t,n){return _(e,(function(e){n=t(n,e)})),n},I=function(e,t,n){return P(e,(function(e){n=t(n,e)})),n},V=function(e,t){for(var n=0,r=e.length;n<r;n++){var o=e[n];if(t(o,n))return p.some(o)}return p.none()},F=function(e,t){for(var n=0,r=e.length;n<r;n++){var o=e[n];if(t(o,n))return p.some(n)}return p.none()},U=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!C(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);T.apply(t,e[n])}return t},j=function(e,t){var n=M(e,t);return U(n)},q=function(e,t){for(var n=0,r=e.length;n<r;++n){var o=e[n];if(!0!==t(o,n))return!1}return!0},W=function(e){var t=N.call(e,0);return t.reverse(),t},$=function(e,t){return H(e,(function(e){return!B(t,e)}))},K=function(e,t){for(var n={},r=0,o=e.length;r<o;r++){var i=e[r];n[String(i)]=t(i,r)}return n},X=function(e,t){var n=N.call(e,0);return n.sort(t),n},Y=function(e){return 0===e.length?p.none():p.some(e[0])},G=function(e){return 0===e.length?p.none():p.some(e[e.length-1])},Z=z(Array.from)?Array.from:function(e){return N.call(e)},J=function(){return J=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},J.apply(this,arguments)};function Q(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}var ee=function(e){return function(t){return!!t&&t.nodeType===e}},te=function(e){return!!e&&!Object.getPrototypeOf(e)},ne=ee(1),re=function(e){var t=e.map((function(e){return e.toLowerCase()}));return function(e){if(e&&e.nodeName){var n=e.nodeName.toLowerCase();return B(t,n)}return!1}},oe=function(e,t){var n=t.toLowerCase().split(" ");return function(t){var r,o;if(ne(t))for(r=0;r<n.length;r++){var i=t.ownerDocument.defaultView.getComputedStyle(t,null);if(o=i?i.getPropertyValue(e):null,o===n[r])return!0}return!1}},ie=function(e,t){return function(n){return ne(n)&&n[e]===t}},ae=function(e,t){return function(t){return ne(t)&&t.hasAttribute(e)}},ue=function(e,t){return function(n){return ne(n)&&n.getAttribute(e)===t}},ce=function(e){return ne(e)&&e.hasAttribute("data-mce-bogus")},se=function(e){return ne(e)&&"all"===e.getAttribute("data-mce-bogus")},le=function(e){return ne(e)&&"TABLE"===e.tagName},fe=function(e){return function(t){if(ne(t)){if(t.contentEditable===e)return!0;if(t.getAttribute("data-mce-contenteditable")===e)return!0}return!1}},de=re(["textarea","input"]),he=ee(3),me=ee(8),ge=ee(9),pe=ee(11),ve=re(["br"]),ye=fe("true"),be=fe("false"),we={isText:he,isElement:ne,isComment:me,isDocument:ge,isDocumentFragment:pe,isBr:ve,isContentEditableTrue:ye,isContentEditableFalse:be,isRestrictedNode:te,matchNodeNames:re,hasPropValue:ie,hasAttribute:ae,hasAttributeValue:ue,matchStyleValues:oe,isBogus:ce,isBogusAll:se,isTable:le,isTextareaOrInput:de},Ce=function(e){var t=e,n=function(){return t},r=function(e){t=e},o=function(){return Ce(n())};return{get:n,set:r,clone:o}},xe=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.test(t))return r}},Ee=function(e,t){var n=xe(e,t);if(!n)return{major:0,minor:0};var r=function(e){return Number(t.replace(n,"$"+e))};return Ne(r(1),r(2))},ze=function(e,t){var n=String(t).toLowerCase();return 0===e.length?ke():Ee(e,n)},ke=function(){return Ne(0,0)},Ne=function(e,t){return{major:e,minor:t}},Se={nu:Ne,detect:ze,unknown:ke},Te="Edge",Ae="Chrome",Re="IE",Be="Opera",De="Firefox",Me="Safari",Pe=function(e,t){return function(){return t===e}},_e=function(){return Oe({current:void 0,version:Se.unknown()})},Oe=function(e){var t=e.current,n=e.version;return{current:t,version:n,isEdge:Pe(Te,t),isChrome:Pe(Ae,t),isIE:Pe(Re,t),isOpera:Pe(Be,t),isFirefox:Pe(De,t),isSafari:Pe(Me,t)}},He={unknown:_e,nu:Oe,edge:i(Te),chrome:i(Ae),ie:i(Re),opera:i(Be),firefox:i(De),safari:i(Me)},Le="Windows",Ie="iOS",Ve="Android",Fe="Linux",Ue="OSX",je="Solaris",qe="FreeBSD",We=function(e,t){return function(){return t===e}},$e=function(){return Ke({current:void 0,version:Se.unknown()})},Ke=function(e){var t=e.current,n=e.version;return{current:t,version:n,isWindows:We(Le,t),isiOS:We(Ie,t),isAndroid:We(Ve,t),isOSX:We(Ue,t),isLinux:We(Fe,t),isSolaris:We(je,t),isFreeBSD:We(qe,t)}},Xe={unknown:$e,nu:Ke,windows:i(Le),ios:i(Ie),android:i(Ve),linux:i(Fe),osx:i(Ue),solaris:i(je),freebsd:i(qe)},Ye=function(e,t,n,r){var o=e.isiOS()&&!0===/ipad/i.test(n),a=e.isiOS()&&!o,u=e.isiOS()||e.isAndroid(),c=u||r("(pointer:coarse)"),s=o||!a&&u&&r("(min-device-width:768px)"),l=a||u&&!s,f=t.isSafari()&&e.isiOS()&&!1===/safari/i.test(n),d=!l&&!s&&!f;return{isiPad:i(o),isiPhone:i(a),isTablet:i(s),isPhone:i(l),isTouch:i(c),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:i(f),isDesktop:i(d)}},Ge=function(e,t){var n=String(t).toLowerCase();return V(e,(function(e){return e.search(n)}))},Ze=function(e,t){return Ge(e,t).map((function(e){var n=Se.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},Je=function(e,t){return Ge(e,t).map((function(e){var n=Se.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},Qe={detectBrowser:Ze,detectOs:Je},et=function(e,t,n){if(""===t)return!0;if(e.length<t.length)return!1;var r=e.substr(n,n+t.length);return r===t},tt=function(e,t){return-1!==e.indexOf(t)},nt=function(e,t){return et(e,t,0)},rt=function(e){return e.replace(/^\s+|\s+$/g,"")},ot=function(e){return e.replace(/^\s+/g,"")},it=function(e){return e.replace(/\s+$/g,"")},at=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,ut=function(e){return function(t){return tt(t,e)}},ct=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return tt(e,"edge/")&&tt(e,"chrome")&&tt(e,"safari")&&tt(e,"applewebkit")}},{name:"Chrome",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,at],search:function(e){return tt(e,"chrome")&&!tt(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return tt(e,"msie")||tt(e,"trident")}},{name:"Opera",versionRegexes:[at,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:ut("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:ut("firefox")},{name:"Safari",versionRegexes:[at,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(tt(e,"safari")||tt(e,"mobile/"))&&tt(e,"applewebkit")}}],st=[{name:"Windows",search:ut("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return tt(e,"iphone")||tt(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:ut("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:ut("os x"),versionRegexes:[/.*?os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:ut("linux"),versionRegexes:[]},{name:"Solaris",search:ut("sunos"),versionRegexes:[]},{name:"FreeBSD",search:ut("freebsd"),versionRegexes:[]}],lt={browsers:i(ct),oses:i(st)},ft=function(e,t){var n=lt.browsers(),r=lt.oses(),o=Qe.detectBrowser(n,e).fold(He.unknown,He.nu),i=Qe.detectOs(r,e).fold(Xe.unknown,Xe.nu),a=Ye(i,o,e,t);return{browser:o,os:i,deviceType:a}},dt={detect:ft},ht=function(e){return n.window.matchMedia(e).matches},mt=Ce(dt.detect(n.navigator.userAgent,ht)),gt=function(){return mt.get()},pt=function(e,t){var r=t||n.document,o=r.createElement("div");if(o.innerHTML=e,!o.hasChildNodes()||o.childNodes.length>1)throw n.console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return bt(o.childNodes[0])},vt=function(e,t){var r=t||n.document,o=r.createElement(e);return bt(o)},yt=function(e,t){var r=t||n.document,o=r.createTextNode(e);return bt(o)},bt=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:i(e)}},wt=function(e,t,n){var r=e.dom();return p.from(r.elementFromPoint(t,n)).map(bt)},Ct={fromHtml:pt,fromTag:vt,fromText:yt,fromDom:bt,fromPoint:wt},xt=(n.Node.ATTRIBUTE_NODE,n.Node.CDATA_SECTION_NODE,n.Node.COMMENT_NODE,n.Node.DOCUMENT_NODE),Et=(n.Node.DOCUMENT_TYPE_NODE,n.Node.DOCUMENT_FRAGMENT_NODE,n.Node.ELEMENT_NODE),zt=n.Node.TEXT_NODE,kt=(n.Node.PROCESSING_INSTRUCTION_NODE,n.Node.ENTITY_REFERENCE_NODE,n.Node.ENTITY_NODE,n.Node.NOTATION_NODE,"undefined"!==typeof n.window?n.window:Function("return this;")(),function(e){var t=e.dom().nodeName;return t.toLowerCase()}),Nt=function(e){return e.dom().nodeType},St=function(e){return function(t){return Nt(t)===e}},Tt=St(Et),At=St(zt),Rt=Object.keys,Bt=Object.hasOwnProperty,Dt=function(e,t){for(var n=Rt(e),r=0,o=n.length;r<o;r++){var i=n[r],a=e[i];t(a,i)}},Mt=function(e,t){return Pt(e,(function(e,n){return{k:n,v:t(e,n)}}))},Pt=function(e,t){var n={};return Dt(e,(function(e,r){var o=t(e,r);n[o.k]=o.v})),n},_t=function(e,t){var n={},r={};return Dt(e,(function(e,o){var i=t(e,o)?n:r;i[o]=e})),{t:n,f:r}},Ot=function(e,t){return Ht(e,t)?p.from(e[t]):p.none()},Ht=function(e,t){return Bt.call(e,t)},Lt=function(e){return void 0!==e.style&&z(e.style.getPropertyValue)},It=function(e){var t=At(e)?e.dom().parentNode:e.dom();return void 0!==t&&null!==t&&t.ownerDocument.body.contains(t)},Vt=function(e,t,r){if(!(b(r)||E(r)||k(r)))throw n.console.error("Invalid call to Attr.set. Key ",t,":: Value ",r,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,r+"")},Ft=function(e,t,n){Vt(e.dom(),t,n)},Ut=function(e,t){var n=e.dom();Dt(t,(function(e,t){Vt(n,t,e)}))},jt=function(e,t){var n=e.dom().getAttribute(t);return null===n?void 0:n},qt=function(e,t){var n=e.dom();return!(!n||!n.hasAttribute)&&n.hasAttribute(t)},Wt=function(e,t){e.dom().removeAttribute(t)},$t=function(e,t){var r=e.dom(),o=n.window.getComputedStyle(r),i=o.getPropertyValue(t),a=""!==i||It(e)?i:Kt(r,t);return null===a?void 0:a},Kt=function(e,t){return Lt(e)?e.style.getPropertyValue(t):""},Xt=function(e,t){var n=e.dom(),r=Kt(n,t);return p.from(r).filter((function(e){return e.length>0}))},Yt=function(e){return e.dom().offsetWidth},Gt=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(e.length!==t.length)throw new Error('Wrong number of arguments to struct. Expected "['+e.length+']", got '+t.length+" arguments");var r={};return P(e,(function(e,n){r[e]=i(t[n])})),r}},Zt=function(e,t){var n=[],r=function(e){return n.push(e),t(e)},o=t(e);do{o=o.bind(r)}while(o.isSome());return n},Jt={toArray:Zt},Qt=function(e,t,n){return 0!==(e.compareDocumentPosition(t)&n)},en=function(e,t){return Qt(e,t,n.Node.DOCUMENT_POSITION_PRECEDING)},tn=function(e,t){return Qt(e,t,n.Node.DOCUMENT_POSITION_CONTAINED_BY)},nn={documentPositionPreceding:en,documentPositionContainedBy:tn},rn=Et,on=xt,an=function(e,t){var n=e.dom();if(n.nodeType!==rn)return!1;var r=n;if(void 0!==r.matches)return r.matches(t);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(t);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},un=function(e){return e.nodeType!==rn&&e.nodeType!==on||0===e.childElementCount},cn=function(e,t){var r=void 0===t?n.document:t.dom();return un(r)?[]:M(r.querySelectorAll(e),Ct.fromDom)},sn=function(e,t){var r=void 0===t?n.document:t.dom();return un(r)?p.none():p.from(r.querySelector(e)).map(Ct.fromDom)},ln=function(e,t){return e.dom()===t.dom()},fn=function(e,t){var n=e.dom(),r=t.dom();return n!==r&&n.contains(r)},dn=function(e,t){return nn.documentPositionContainedBy(e.dom(),t.dom())},hn=gt().browser,mn=hn.isIE()?dn:fn,gn=function(e){return Ct.fromDom(e.dom().ownerDocument)},pn=function(e){return Ct.fromDom(e.dom().ownerDocument.documentElement)},vn=function(e){return Ct.fromDom(e.dom().ownerDocument.defaultView)},yn=function(e){return p.from(e.dom().parentNode).map(Ct.fromDom)},bn=function(e,t){var n=z(t)?t:l,r=e.dom(),o=[];while(null!==r.parentNode&&void 0!==r.parentNode){var i=r.parentNode,a=Ct.fromDom(i);if(o.push(a),!0===n(a))break;r=i}return o},wn=function(e){return p.from(e.dom().previousSibling).map(Ct.fromDom)},Cn=function(e){return p.from(e.dom().nextSibling).map(Ct.fromDom)},xn=function(e){return W(Jt.toArray(e,wn))},En=function(e){return Jt.toArray(e,Cn)},zn=function(e){return M(e.dom().childNodes,Ct.fromDom)},kn=function(e,t){var n=e.dom().childNodes;return p.from(n[t]).map(Ct.fromDom)},Nn=function(e){return kn(e,0)},Sn=function(e){return kn(e,e.dom().childNodes.length-1)},Tn=function(e){return e.dom().childNodes.length},An=(Gt("element","offset"),gt().browser),Rn=function(e){return V(e,Tt)},Bn=function(e){return An.isFirefox()&&"table"===kt(e)?Rn(zn(e)).filter((function(e){return"caption"===kt(e)})).bind((function(e){return Rn(En(e)).map((function(t){var n=t.dom().offsetTop,r=e.dom().offsetTop,o=e.dom().offsetHeight;return n<=r?-o:0}))})).getOr(0):0},Dn=function(e,t){return e.children&&B(e.children,t)},Mn=function(e,t,n){var r,o,i=0,a=0,u=e.ownerDocument;if(n=n||e,t){if(n===e&&t.getBoundingClientRect&&"static"===$t(Ct.fromDom(e),"position"))return o=t.getBoundingClientRect(),i=o.left+(u.documentElement.scrollLeft||e.scrollLeft)-u.documentElement.clientLeft,a=o.top+(u.documentElement.scrollTop||e.scrollTop)-u.documentElement.clientTop,{x:i,y:a};r=t;while(r&&r!==n&&r.nodeType&&!Dn(r,n))i+=r.offsetLeft||0,a+=r.offsetTop||0,r=r.offsetParent;r=t.parentNode;while(r&&r!==n&&r.nodeType&&!Dn(r,n))i-=r.scrollLeft||0,a-=r.scrollTop||0,r=r.parentNode;a+=Bn(Ct.fromDom(t))}return{x:i,y:a}},Pn={getPos:Mn},_n={},On={exports:_n};(function(e,n,r,o){(function(o){if("object"===typeof n&&"undefined"!==typeof r)r.exports=o();else if("function"===typeof e&&e.amd)e([],o);else{var i;i="undefined"!==typeof window?window:"undefined"!==typeof t?t:"undefined"!==typeof self?self:this,i.EphoxContactWrapper=o()}})((function(){return function(){function e(t,n,r){function i(u,c){if(!n[u]){if(!t[u]){var s="function"==typeof o&&o;if(!c&&s)return s(u,!0);if(a)return a(u,!0);var l=new Error("Cannot find module '"+u+"'");throw l.code="MODULE_NOT_FOUND",l}var f=n[u]={exports:{}};t[u][0].call(f.exports,(function(e){var n=t[u][1][e];return i(n||e)}),f,f.exports,e,t,n,r)}return n[u].exports}for(var a="function"==typeof o&&o,u=0;u<r.length;u++)i(r[u]);return i}return e}()({1:[function(e,t,n){var r,o,i=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}function c(e){if(r===setTimeout)return setTimeout(e,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}function s(e){if(o===clearTimeout)return clearTimeout(e);if((o===u||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(e);try{return o(e)}catch(t){try{return o.call(null,e)}catch(t){return o.call(this,e)}}}(function(){try{r="function"===typeof setTimeout?setTimeout:a}catch(e){r=a}try{o="function"===typeof clearTimeout?clearTimeout:u}catch(e){o=u}})();var l,f=[],d=!1,h=-1;function m(){d&&l&&(d=!1,l.length?f=l.concat(f):h=-1,f.length&&g())}function g(){if(!d){var e=c(m);d=!0;var t=f.length;while(t){l=f,f=[];while(++h<t)l&&l[h].run();h=-1,t=f.length}l=null,d=!1,s(e)}}function p(e,t){this.fun=e,this.array=t}function v(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];f.push(new p(e,t)),1!==f.length||d||c(g)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=v,i.addListener=v,i.once=v,i.off=v,i.removeListener=v,i.removeAllListeners=v,i.emit=v,i.prependListener=v,i.prependOnceListener=v,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},{}],2:[function(e,t,n){(function(e){(function(n){var r=setTimeout;function o(){}function i(e,t){return function(){e.apply(t,arguments)}}function a(e){if("object"!==typeof this)throw new TypeError("Promises must be constructed via new");if("function"!==typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],d(e,this)}function u(e,t){while(3===e._state)e=e._value;0!==e._state?(e._handled=!0,a._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(o){return void s(t.promise,o)}c(t.promise,r)}else(1===e._state?c:s)(t.promise,e._value)}))):e._deferreds.push(t)}function c(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"===typeof t||"function"===typeof t)){var n=t.then;if(t instanceof a)return e._state=3,e._value=t,void l(e);if("function"===typeof n)return void d(i(n,t),e)}e._state=1,e._value=t,l(e)}catch(r){s(e,r)}}function s(e,t){e._state=2,e._value=t,l(e)}function l(e){2===e._state&&0===e._deferreds.length&&a._immediateFn((function(){e._handled||a._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)u(e,e._deferreds[t]);e._deferreds=null}function f(e,t,n){this.onFulfilled="function"===typeof e?e:null,this.onRejected="function"===typeof t?t:null,this.promise=n}function d(e,t){var n=!1;try{e((function(e){n||(n=!0,c(t,e))}),(function(e){n||(n=!0,s(t,e))}))}catch(r){if(n)return;n=!0,s(t,r)}}a.prototype["catch"]=function(e){return this.then(null,e)},a.prototype.then=function(e,t){var n=new this.constructor(o);return u(this,new f(e,t,n)),n},a.all=function(e){var t=Array.prototype.slice.call(e);return new a((function(e,n){if(0===t.length)return e([]);var r=t.length;function o(i,a){try{if(a&&("object"===typeof a||"function"===typeof a)){var u=a.then;if("function"===typeof u)return void u.call(a,(function(e){o(i,e)}),n)}t[i]=a,0===--r&&e(t)}catch(c){n(c)}}for(var i=0;i<t.length;i++)o(i,t[i])}))},a.resolve=function(e){return e&&"object"===typeof e&&e.constructor===a?e:new a((function(t){t(e)}))},a.reject=function(e){return new a((function(t,n){n(e)}))},a.race=function(e){return new a((function(t,n){for(var r=0,o=e.length;r<o;r++)e[r].then(t,n)}))},a._immediateFn="function"===typeof e?function(t){e(t)}:function(e){r(e,0)},a._unhandledRejectionFn=function(e){"undefined"!==typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},a._setImmediateFn=function(e){a._immediateFn=e},a._setUnhandledRejectionFn=function(e){a._unhandledRejectionFn=e},"undefined"!==typeof t&&t.exports?t.exports=a:n.Promise||(n.Promise=a)})(this)}).call(this,e("timers").setImmediate)},{timers:3}],3:[function(e,t,n){(function(t,r){var o=e("process/browser.js").nextTick,i=Function.prototype.apply,a=Array.prototype.slice,u={},c=0;function s(e,t){this._id=e,this._clearFn=t}n.setTimeout=function(){return new s(i.call(setTimeout,window,arguments),clearTimeout)},n.setInterval=function(){return new s(i.call(setInterval,window,arguments),clearInterval)},n.clearTimeout=n.clearInterval=function(e){e.close()},s.prototype.unref=s.prototype.ref=function(){},s.prototype.close=function(){this._clearFn.call(window,this._id)},n.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},n.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},n._unrefActive=n.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n.setImmediate="function"===typeof t?t:function(e){var t=c++,r=!(arguments.length<2)&&a.call(arguments,1);return u[t]=!0,o((function(){u[t]&&(r?e.apply(null,r):e.call(null),n.clearImmediate(t))})),t},n.clearImmediate="function"===typeof r?r:function(e){delete u[e]}}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":1,timers:3}],4:[function(e,t,n){var r=e("promise-polyfill"),o=function(){return"undefined"!==typeof window?window:Function("return this;")()}();t.exports={boltExport:o.Promise||r}},{"promise-polyfill":2}]},{},[4])(4)}))})(void 0,_n,On,void 0);var Hn,Ln=On.exports.boltExport,In=function(e){var t=p.none(),r=[],o=function(e){return In((function(t){i((function(n){t(e(n))}))}))},i=function(e){u()?s(e):r.push(e)},a=function(e){t=p.some(e),c(r),r=[]},u=function(){return t.isSome()},c=function(e){P(e,s)},s=function(e){t.each((function(t){n.setTimeout((function(){e(t)}),0)}))};return e(a),{get:i,map:o,isReady:u}},Vn=function(e){return In((function(t){t(e)}))},Fn={nu:In,pure:Vn},Un=function(e){n.setTimeout((function(){throw e}),0)},jn=function(e){var t=function(t){e().then(t,Un)},n=function(t){return jn((function(){return e().then(t)}))},r=function(t){return jn((function(){return e().then((function(e){return t(e).toPromise()}))}))},o=function(t){return jn((function(){return e().then((function(){return t.toPromise()}))}))},i=function(){return Fn.nu(t)},a=function(){var t=null;return jn((function(){return null===t&&(t=e()),t}))},u=e;return{map:n,bind:r,anonBind:o,toLazy:i,toCached:a,toPromise:u,get:t}},qn=function(e){return jn((function(){return new Ln(e)}))},Wn=function(e){return jn((function(){return Ln.resolve(e)}))},$n={nu:qn,pure:Wn},Kn=function(e,t){return t((function(t){var n=[],r=0,o=function(o){return function(i){n[o]=i,r++,r>=e.length&&t(n)}};0===e.length?t([]):P(e,(function(e,t){e.get(o(t))}))}))},Xn=function(e){return Kn(e,$n.nu)},Yn=function(e){var t=function(t){return e===t},n=function(t){return Yn(e)},r=function(t){return Yn(e)},o=function(t){return Yn(t(e))},a=function(t){return Yn(e)},u=function(t){t(e)},c=function(t){return t(e)},s=function(t,n){return n(e)},d=function(t){return t(e)},h=function(t){return t(e)},m=function(){return p.some(e)};return{is:t,isValue:f,isError:l,getOr:i(e),getOrThunk:i(e),getOrDie:i(e),or:n,orThunk:r,fold:s,map:o,mapError:a,each:u,bind:c,exists:d,forall:h,toOption:m}},Gn=function(e){var t=function(e){return e()},n=function(){return s(String(e))()},o=function(e){return e},i=function(e){return e()},u=function(t){return Gn(e)},c=function(t){return Gn(t(e))},d=function(t){return Gn(e)},h=function(t,n){return t(e)};return{is:l,isValue:l,isError:f,getOr:a,getOrThunk:t,getOrDie:n,or:o,orThunk:i,fold:h,map:u,mapError:c,each:r,bind:d,exists:l,forall:f,toOption:p.none}},Zn=function(e,t){return e.fold((function(){return Gn(t)}),Yn)},Jn={value:Yn,error:Gn,fromOption:Zn},Qn=function(){function e(e,t){return function(){e.apply(t,arguments)}}var t=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},r=function(t){if("object"!==typeof this)throw new TypeError("Promises must be constructed via new");if("function"!==typeof t)throw new TypeError("not a function");this._state=null,this._value=null,this._deferreds=[],l(t,e(a,this),e(u,this))},o=r.immediateFn||"function"===typeof n.setImmediate&&n.setImmediate||function(e){n.setTimeout(e,1)};function i(e){var t=this;null!==this._state?o((function(){var n=t._state?e.onFulfilled:e.onRejected;if(null!==n){var r;try{r=n(t._value)}catch(o){return void e.reject(o)}e.resolve(r)}else(t._state?e.resolve:e.reject)(t._value)})):this._deferreds.push(e)}function a(t){try{if(t===this)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"===typeof t||"function"===typeof t)){var n=t.then;if("function"===typeof n)return void l(e(n,t),e(a,this),e(u,this))}this._state=!0,this._value=t,c.call(this)}catch(r){u.call(this,r)}}function u(e){this._state=!1,this._value=e,c.call(this)}function c(){for(var e=0,t=this._deferreds.length;e<t;e++)i.call(this,this._deferreds[e]);this._deferreds=null}function s(e,t,n,r){this.onFulfilled="function"===typeof e?e:null,this.onRejected="function"===typeof t?t:null,this.resolve=n,this.reject=r}function l(e,t,n){var r=!1;try{e((function(e){r||(r=!0,t(e))}),(function(e){r||(r=!0,n(e))}))}catch(o){if(r)return;r=!0,n(o)}}return r.prototype.catch=function(e){return this.then(null,e)},r.prototype.then=function(e,t){var n=this;return new r((function(r,o){i.call(n,new s(e,t,r,o))}))},r.all=function(){var e=Array.prototype.slice.call(1===arguments.length&&t(arguments[0])?arguments[0]:arguments);return new r((function(t,n){if(0===e.length)return t([]);var r=e.length;function o(i,a){try{if(a&&("object"===typeof a||"function"===typeof a)){var u=a.then;if("function"===typeof u)return void u.call(a,(function(e){o(i,e)}),n)}e[i]=a,0===--r&&t(e)}catch(c){n(c)}}for(var i=0;i<e.length;i++)o(i,e[i])}))},r.resolve=function(e){return e&&"object"===typeof e&&e.constructor===r?e:new r((function(t){t(e)}))},r.reject=function(e){return new r((function(t,n){n(e)}))},r.race=function(e){return new r((function(t,n){for(var r=0,o=e.length;r<o;r++)e[r].then(t,n)}))},r},er=window.Promise?window.Promise:Qn(),tr=function(e,t){var r,o=n.window.requestAnimationFrame,i=["ms","moz","webkit"],a=function(e){n.window.setTimeout(e,0)};for(r=0;r<i.length&&!o;r++)o=n.window[i[r]+"RequestAnimationFrame"];o||(o=a),o(e,t)},nr=function(e,t){return"number"!==typeof t&&(t=0),n.setTimeout(e,t)},rr=function(e,t){return"number"!==typeof t&&(t=1),n.setInterval(e,t)},or=function(e){return n.clearTimeout(e)},ir=function(e){return n.clearInterval(e)},ar=function(e,t){var r,o;return o=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];n.clearTimeout(r),r=nr((function(){e.apply(this,o)}),t)},o.stop=function(){n.clearTimeout(r)},o},ur={requestAnimationFrame:function(e,t){Hn?Hn.then(e):Hn=new er((function(e){t||(t=n.document.body),tr(e,t)})).then(e)},setTimeout:nr,setInterval:rr,setEditorTimeout:function(e,t,n){return nr((function(){e.removed||t()}),n)},setEditorInterval:function(e,t,r){var o;return o=rr((function(){e.removed?n.clearInterval(o):t()}),r),o},debounce:ar,throttle:ar,clearInterval:ir,clearTimeout:or},cr=n.navigator.userAgent,sr=gt(),lr=sr.browser,fr=sr.os,dr=sr.deviceType,hr=/WebKit/.test(cr)&&!lr.isEdge(),mr="FormData"in n.window&&"FileReader"in n.window&&"URL"in n.window&&!!n.URL.createObjectURL,gr=-1!==cr.indexOf("Windows Phone"),pr={opera:lr.isOpera(),webkit:hr,ie:!(!lr.isIE()&&!lr.isEdge())&&lr.version.major,gecko:lr.isFirefox(),mac:fr.isOSX()||fr.isiOS(),iOS:dr.isiPad()||dr.isiPhone(),android:fr.isAndroid(),contentEditable:!0,transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",caretAfter:!0,range:n.window.getSelection&&"Range"in n.window,documentMode:lr.isIE()?n.document.documentMode||7:10,fileApi:mr,ceFalse:!0,cacheSuffix:null,container:null,experimentalShadowDom:!1,canHaveCSP:!lr.isIE(),desktop:dr.isDesktop(),windowsPhone:gr,browser:{current:lr.current,version:lr.version,isChrome:lr.isChrome,isEdge:lr.isEdge,isFirefox:lr.isFirefox,isIE:lr.isIE,isOpera:lr.isOpera,isSafari:lr.isSafari},os:{current:fr.current,version:fr.version,isAndroid:fr.isAndroid,isFreeBSD:fr.isFreeBSD,isiOS:fr.isiOS,isLinux:fr.isLinux,isOSX:fr.isOSX,isSolaris:fr.isSolaris,isWindows:fr.isWindows},deviceType:{isDesktop:dr.isDesktop,isiPad:dr.isiPad,isiPhone:dr.isiPhone,isPhone:dr.isPhone,isTablet:dr.isTablet,isTouch:dr.isTouch,isWebView:dr.isWebView}},vr=Array.isArray,yr=function(e){var t,n,r=e;if(!vr(e))for(r=[],t=0,n=e.length;t<n;t++)r[t]=e[t];return r},br=function(e,t,n){var r,o;if(!e)return 0;if(n=n||e,void 0!==e.length){for(r=0,o=e.length;r<o;r++)if(!1===t.call(n,e[r],r,e))return 0}else for(r in e)if(e.hasOwnProperty(r)&&!1===t.call(n,e[r],r,e))return 0;return 1},wr=function(e,t){var n=[];return br(e,(function(r,o){n.push(t(r,o,e))})),n},Cr=function(e,t){var n=[];return br(e,(function(r,o){t&&!t(r,o,e)||n.push(r)})),n},xr=function(e,t){var n,r;if(e)for(n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},Er=function(e,t,n,r){var o=0;for(arguments.length<3&&(n=e[0]);o<e.length;o++)n=t.call(r,n,e[o],o);return n},zr=function(e,t,n){var r,o;for(r=0,o=e.length;r<o;r++)if(t.call(n,e[r],r,e))return r;return-1},kr=function(e,t,n){var r=zr(e,t,n);if(-1!==r)return e[r]},Nr=function(e){return e[e.length-1]},Sr={isArray:vr,toArray:yr,each:br,map:wr,filter:Cr,indexOf:xr,reduce:Er,findIndex:zr,find:kr,last:Nr},Tr=/^\s*|\s*$/g,Ar=function(e){return null===e||void 0===e?"":(""+e).replace(Tr,"")},Rr=function(e,t){return t?!("array"!==t||!Sr.isArray(e))||typeof e===t:void 0!==e},Br=function(e,t,n){var r;e=e||[],t=t||",","string"===typeof e&&(e=e.split(t)),n=n||{},r=e.length;while(r--)n[e[r]]={};return n},Dr=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},Mr=function(e,t,n){var r,o,i,a,u,c=this,s=0;if(e=/^((static) )?([\w.]+)(:([\w.]+))?/.exec(e),i=e[3].match(/(^|\.)(\w+)$/i)[2],o=c.createNS(e[3].replace(/\.\w+$/,""),n),!o[i]){if("static"===e[2])return o[i]=t,void(this.onCreate&&this.onCreate(e[2],e[3],o[i]));t[i]||(t[i]=function(){},s=1),o[i]=t[i],c.extend(o[i].prototype,t),e[5]&&(r=c.resolve(e[5]).prototype,a=e[5].match(/\.(\w+)$/i)[1],u=o[i],o[i]=s?function(){return r[a].apply(this,arguments)}:function(){return this.parent=r[a],u.apply(this,arguments)},o[i].prototype[i]=o[i],c.each(r,(function(e,t){o[i].prototype[t]=r[t]})),c.each(t,(function(e,t){r[t]?o[i].prototype[t]=function(){return this.parent=r[t],e.apply(this,arguments)}:t!==i&&(o[i].prototype[t]=e)}))),c.each(t.static,(function(e,t){o[i][t]=e}))}},Pr=function(e,t){for(var n,r,o,i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];var u,c=arguments;for(n=1,r=c.length;n<r;n++)for(o in t=c[n],t)t.hasOwnProperty(o)&&(u=t[o],void 0!==u&&(e[o]=u));return e},_r=function(e,t,n,r){r=r||this,e&&(n&&(e=e[n]),Sr.each(e,(function(e,o){if(!1===t.call(r,e,o,n))return!1;_r(e,t,n,r)})))},Or=function(e,t){var r,o;for(t=t||n.window,e=e.split("."),r=0;r<e.length;r++)o=e[r],t[o]||(t[o]={}),t=t[o];return t},Hr=function(e,t){var r,o;for(t=t||n.window,e=e.split("."),r=0,o=e.length;r<o;r++)if(t=t[e[r]],!t)break;return t},Lr=function(e,t){return!e||Rr(e,"array")?e:Sr.map(e.split(t||","),Ar)},Ir=function(e){var t=pr.cacheSuffix;return t&&(e+=(-1===e.indexOf("?")?"?":"&")+t),e},Vr={trim:Ar,isArray:Sr.isArray,is:Rr,toArray:Sr.toArray,makeMap:Br,each:Sr.each,map:Sr.map,grep:Sr.filter,inArray:Sr.indexOf,hasOwn:Dr,extend:Pr,create:Mr,walk:_r,createNS:Or,resolve:Hr,explode:Lr,_addCacheSuffix:Ir};function Fr(e,t){void 0===t&&(t={});var r,u=0,c={};r=t.maxLoadTime||5e3;var s=function(e){t.referrerPolicy=e},l=function(t){e.getElementsByTagName("head")[0].appendChild(t)},f=function(o,i,a){var s,f,d,h,m=function(e){h.status=e,h.passed=[],h.failed=[],s&&(s.onload=null,s.onerror=null,s=null)},g=function(){var e=h.passed,t=e.length;while(t--)e[t]();m(2)},p=function(){var e=h.failed,t=e.length;while(t--)e[t]();m(3)},v=function(){var e=n.navigator.userAgent.match(/WebKit\/(\d*)/);return!!(e&&parseInt(e[1],10)<536)},y=function(e,t){e()||((new Date).getTime()-d<r?ur.setTimeout(t):p())},b=function(){y((function(){var t,n,r=e.styleSheets,o=r.length;while(o--)if(t=r[o],n=t.ownerNode?t.ownerNode:t.owningElement,n&&n.id===s.id)return g(),!0}),b)},w=function(){y((function(){try{var e=f.sheet.cssRules;return g(),!!e}catch(t){}}),w)};if(o=Vr._addCacheSuffix(o),c[o]?h=c[o]:(h={passed:[],failed:[]},c[o]=h),i&&h.passed.push(i),a&&h.failed.push(a),1!==h.status)if(2!==h.status)if(3!==h.status){if(h.status=1,s=e.createElement("link"),s.rel="stylesheet",s.type="text/css",s.id="u"+u++,s.async=!1,s.defer=!1,d=(new Date).getTime(),t.contentCssCors&&(s.crossOrigin="anonymous"),t.referrerPolicy&&Ft(Ct.fromDom(s),"referrerpolicy",t.referrerPolicy),"onload"in s&&!v())s.onload=b,s.onerror=p;else{if(n.navigator.userAgent.indexOf("Firefox")>0)return f=e.createElement("style"),f.textContent='@import "'+o+'"',w(),void l(f);b()}l(s),s.href=o}else p();else g()},d=function(e){return $n.nu((function(t){f(e,o(t,i(Jn.value(e))),o(t,i(Jn.error(e))))}))},h=function(e){return e.fold(a,a)},m=function(e,t,n){Xn(M(e,d)).get((function(e){var r=O(e,(function(e){return e.isValue()}));r.fail.length>0?n(r.fail.map(h)):t(r.pass.map(h))}))};return{load:f,loadAll:m,_setReferrerPolicy:s}}var Ur,jr,qr,Wr=["article","aside","details","div","dt","figcaption","footer","form","fieldset","header","hgroup","html","main","nav","section","summary","body","p","dl","multicol","dd","figure","address","center","blockquote","h1","h2","h3","h4","h5","h6","listing","xmp","pre","plaintext","menu","dir","ul","ol","li","hr","table","tbody","thead","tfoot","th","tr","td","caption"],$r=["area","base","basefont","br","col","frame","hr","img","input","isindex","link","meta","param","embed","source","wbr","track"],Kr=["td","th"],Xr=["thead","tbody","tfoot"],Yr=["h1","h2","h3","h4","h5","h6","p","div","address","pre","form","blockquote","center","dir","fieldset","header","footer","article","section","hgroup","aside","nav","figure"],Gr=["h1","h2","h3","h4","h5","h6"],Zr=["li","dd","dt"],Jr=["ul","ol","dl"],Qr=["pre","script","textarea","style"],eo=function(e){var t;return function(n){return t=t||K(e,i(!0)),t.hasOwnProperty(kt(n))}},to=eo(Gr),no=eo(Wr),ro=function(e){return"table"===kt(e)},oo=function(e){return Tt(e)&&!no(e)},io=function(e){return Tt(e)&&"br"===kt(e)},ao=eo(Yr),uo=eo(Jr),co=eo(Zr),so=eo($r),lo=eo(Xr),fo=eo(Kr),ho=eo(Qr),mo=function(e){var t=e.previousSibling&&"SPAN"===e.previousSibling.nodeName,n=e.nextSibling&&"SPAN"===e.nextSibling.nodeName;return t&&n},go=function(e){return e&&"SPAN"===e.tagName&&"bookmark"===e.getAttribute("data-mce-type")},po=function(e,t){var n,r=t.childNodes;if(!we.isElement(t)||!go(t)){for(n=r.length-1;n>=0;n--)po(e,r[n]);if(!1===we.isDocument(t)){if(we.isText(t)&&t.nodeValue.length>0){var o=Vr.trim(t.nodeValue).length;if(e.isBlock(t.parentNode)||o>0)return;if(0===o&&mo(t))return}else if(we.isElement(t)&&(r=t.childNodes,1===r.length&&go(r[0])&&t.parentNode.insertBefore(r[0],t),r.length||so(Ct.fromDom(t))))return;e.remove(t)}return t}},vo={trimNode:po},yo=Vr.makeMap,bo=/[&<>\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,wo=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Co=/[<>&\"\']/g,xo=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,Eo={128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};jr={'"':""","'":"'","<":"<",">":">","&":"&","`":"`"},qr={"<":"<",">":">","&":"&",""":'"',"'":"'"};var zo=function(e){var t;return t=Ct.fromTag("div").dom(),t.innerHTML=e,t.textContent||t.innerText||e},ko=function(e,t){var n,r,o,i={};if(e){for(e=e.split(","),t=t||10,n=0;n<e.length;n+=2)r=String.fromCharCode(parseInt(e[n],t)),jr[r]||(o="&"+e[n+1]+";",i[r]=o,i[o]=r);return i}};Ur=ko("50,nbsp,51,iexcl,52,cent,53,pound,54,curren,55,yen,56,brvbar,57,sect,58,uml,59,copy,5a,ordf,5b,laquo,5c,not,5d,shy,5e,reg,5f,macr,5g,deg,5h,plusmn,5i,sup2,5j,sup3,5k,acute,5l,micro,5m,para,5n,middot,5o,cedil,5p,sup1,5q,ordm,5r,raquo,5s,frac14,5t,frac12,5u,frac34,5v,iquest,60,Agrave,61,Aacute,62,Acirc,63,Atilde,64,Auml,65,Aring,66,AElig,67,Ccedil,68,Egrave,69,Eacute,6a,Ecirc,6b,Euml,6c,Igrave,6d,Iacute,6e,Icirc,6f,Iuml,6g,ETH,6h,Ntilde,6i,Ograve,6j,Oacute,6k,Ocirc,6l,Otilde,6m,Ouml,6n,times,6o,Oslash,6p,Ugrave,6q,Uacute,6r,Ucirc,6s,Uuml,6t,Yacute,6u,THORN,6v,szlig,70,agrave,71,aacute,72,acirc,73,atilde,74,auml,75,aring,76,aelig,77,ccedil,78,egrave,79,eacute,7a,ecirc,7b,euml,7c,igrave,7d,iacute,7e,icirc,7f,iuml,7g,eth,7h,ntilde,7i,ograve,7j,oacute,7k,ocirc,7l,otilde,7m,ouml,7n,divide,7o,oslash,7p,ugrave,7q,uacute,7r,ucirc,7s,uuml,7t,yacute,7u,thorn,7v,yuml,ci,fnof,sh,Alpha,si,Beta,sj,Gamma,sk,Delta,sl,Epsilon,sm,Zeta,sn,Eta,so,Theta,sp,Iota,sq,Kappa,sr,Lambda,ss,Mu,st,Nu,su,Xi,sv,Omicron,t0,Pi,t1,Rho,t3,Sigma,t4,Tau,t5,Upsilon,t6,Phi,t7,Chi,t8,Psi,t9,Omega,th,alpha,ti,beta,tj,gamma,tk,delta,tl,epsilon,tm,zeta,tn,eta,to,theta,tp,iota,tq,kappa,tr,lambda,ts,mu,tt,nu,tu,xi,tv,omicron,u0,pi,u1,rho,u2,sigmaf,u3,sigma,u4,tau,u5,upsilon,u6,phi,u7,chi,u8,psi,u9,omega,uh,thetasym,ui,upsih,um,piv,812,bull,816,hellip,81i,prime,81j,Prime,81u,oline,824,frasl,88o,weierp,88h,image,88s,real,892,trade,89l,alefsym,8cg,larr,8ch,uarr,8ci,rarr,8cj,darr,8ck,harr,8dl,crarr,8eg,lArr,8eh,uArr,8ei,rArr,8ej,dArr,8ek,hArr,8g0,forall,8g2,part,8g3,exist,8g5,empty,8g7,nabla,8g8,isin,8g9,notin,8gb,ni,8gf,prod,8gh,sum,8gi,minus,8gn,lowast,8gq,radic,8gt,prop,8gu,infin,8h0,ang,8h7,and,8h8,or,8h9,cap,8ha,cup,8hb,int,8hk,there4,8hs,sim,8i5,cong,8i8,asymp,8j0,ne,8j1,equiv,8j4,le,8j5,ge,8k2,sub,8k3,sup,8k4,nsub,8k6,sube,8k7,supe,8kl,oplus,8kn,otimes,8l5,perp,8m5,sdot,8o8,lceil,8o9,rceil,8oa,lfloor,8ob,rfloor,8p9,lang,8pa,rang,9ea,loz,9j0,spades,9j3,clubs,9j5,hearts,9j6,diams,ai,OElig,aj,oelig,b0,Scaron,b1,scaron,bo,Yuml,m6,circ,ms,tilde,802,ensp,803,emsp,809,thinsp,80c,zwnj,80d,zwj,80e,lrm,80f,rlm,80j,ndash,80k,mdash,80o,lsquo,80p,rsquo,80q,sbquo,80s,ldquo,80t,rdquo,80u,bdquo,810,dagger,811,Dagger,81g,permil,81p,lsaquo,81q,rsaquo,85c,euro",32);var No=function(e,t){return e.replace(t?bo:wo,(function(e){return jr[e]||e}))},So=function(e){return(""+e).replace(Co,(function(e){return jr[e]||e}))},To=function(e,t){return e.replace(t?bo:wo,(function(e){return e.length>1?"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";":jr[e]||"&#"+e.charCodeAt(0)+";"}))},Ao=function(e,t,n){return n=n||Ur,e.replace(t?bo:wo,(function(e){return jr[e]||n[e]||e}))},Ro=function(e,t){var n=ko(t)||Ur,r=function(e,t){return e.replace(t?bo:wo,(function(e){return void 0!==jr[e]?jr[e]:void 0!==n[e]?n[e]:e.length>1?"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";":"&#"+e.charCodeAt(0)+";"}))},o=function(e,t){return Ao(e,t,n)},i=yo(e.replace(/\+/g,","));return i.named&&i.numeric?r:i.named?t?o:Ao:i.numeric?To:No},Bo=function(e){return e.replace(xo,(function(e,t){return t?(t="x"===t.charAt(0).toLowerCase()?parseInt(t.substr(1),16):parseInt(t,10),t>65535?(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t))):Eo[t]||String.fromCharCode(t)):qr[e]||Ur[e]||zo(e)}))},Do={encodeRaw:No,encodeAllRaw:So,encodeNumeric:To,encodeNamed:Ao,getEncodeFunc:Ro,decode:Bo},Mo={},Po={},_o=Vr.makeMap,Oo=Vr.each,Ho=Vr.extend,Lo=Vr.explode,Io=Vr.inArray,Vo=function(e,t){return e=Vr.trim(e),e?e.split(t||" "):[]},Fo=function(e){var t,n,r,o,i,a,u={},c=function(e,n,r){var o,i,a,c=function(e,t){var n,r,o={};for(n=0,r=e.length;n<r;n++)o[e[n]]=t||{};return o};r=r||[],n=n||"","string"===typeof r&&(r=Vo(r)),e=Vo(e),o=e.length;while(o--)i=Vo([t,n].join(" ")),a={attributes:c(i),attributesOrder:i,children:c(r,Po)},u[e[o]]=a},s=function(e,t){var n,r,o,i;e=Vo(e),n=e.length,t=Vo(t);while(n--)for(r=u[e[n]],o=0,i=t.length;o<i;o++)r.attributes[t[o]]={},r.attributesOrder.push(t[o])};return Mo[e]?Mo[e]:(t="id accesskey class dir lang style tabindex title role",n="address blockquote div dl fieldset form h1 h2 h3 h4 h5 h6 hr menu ol p pre table ul",r="a abbr b bdo br button cite code del dfn em embed i iframe img input ins kbd label map noscript object q s samp script select small span strong sub sup textarea u var #text #comment","html4"!==e&&(t+=" contenteditable contextmenu draggable dropzone hidden spellcheck translate",n+=" article aside details dialog figure main header footer hgroup section nav",r+=" audio canvas command datalist mark meter output picture progress time wbr video ruby bdi keygen"),"html5-strict"!==e&&(t+=" xml:lang",a="acronym applet basefont big font strike tt",r=[r,a].join(" "),Oo(Vo(a),(function(e){c(e,"",r)})),i="center dir isindex noframes",n=[n,i].join(" "),o=[n,r].join(" "),Oo(Vo(i),(function(e){c(e,"",o)}))),o=o||[n,r].join(" "),c("html","manifest","head body"),c("head","","base command link meta noscript script style title"),c("title hr noscript br"),c("base","href target"),c("link","href rel media hreflang type sizes hreflang"),c("meta","name http-equiv content charset"),c("style","media type scoped"),c("script","src async defer type charset"),c("body","onafterprint onbeforeprint onbeforeunload onblur onerror onfocus onhashchange onload onmessage onoffline ononline onpagehide onpageshow onpopstate onresize onscroll onstorage onunload",o),c("address dt dd div caption","",o),c("h1 h2 h3 h4 h5 h6 pre p abbr code var samp kbd sub sup i b u bdo span legend em strong small s cite dfn","",r),c("blockquote","cite",o),c("ol","reversed start type","li"),c("ul","","li"),c("li","value",o),c("dl","","dt dd"),c("a","href target rel media hreflang type",r),c("q","cite",r),c("ins del","cite datetime",o),c("img","src sizes srcset alt usemap ismap width height"),c("iframe","src name width height",o),c("embed","src type width height"),c("object","data type typemustmatch name usemap form width height",[o,"param"].join(" ")),c("param","name value"),c("map","name",[o,"area"].join(" ")),c("area","alt coords shape href target rel media hreflang type"),c("table","border","caption colgroup thead tfoot tbody tr"+("html4"===e?" col":"")),c("colgroup","span","col"),c("col","span"),c("tbody thead tfoot","","tr"),c("tr","","td th"),c("td","colspan rowspan headers",o),c("th","colspan rowspan headers scope abbr",o),c("form","accept-charset action autocomplete enctype method name novalidate target",o),c("fieldset","disabled form name",[o,"legend"].join(" ")),c("label","form for",r),c("input","accept alt autocomplete checked dirname disabled form formaction formenctype formmethod formnovalidate formtarget height list max maxlength min multiple name pattern readonly required size src step type value width"),c("button","disabled form formaction formenctype formmethod formnovalidate formtarget name type value","html4"===e?o:r),c("select","disabled form multiple name required size","option optgroup"),c("optgroup","disabled label","option"),c("option","disabled label selected value"),c("textarea","cols dirname disabled form maxlength name readonly required rows wrap"),c("menu","type label",[o,"li"].join(" ")),c("noscript","",o),"html4"!==e&&(c("wbr"),c("ruby","",[r,"rt rp"].join(" ")),c("figcaption","",o),c("mark rt rp summary bdi","",r),c("canvas","width height",o),c("video","src crossorigin poster preload autoplay mediagroup loop muted controls width height buffered",[o,"track source"].join(" ")),c("audio","src crossorigin preload autoplay mediagroup loop muted controls buffered volume",[o,"track source"].join(" ")),c("picture","","img source"),c("source","src srcset type media sizes"),c("track","kind src srclang label default"),c("datalist","",[r,"option"].join(" ")),c("article section nav aside main header footer","",o),c("hgroup","","h1 h2 h3 h4 h5 h6"),c("figure","",[o,"figcaption"].join(" ")),c("time","datetime",r),c("dialog","open",o),c("command","type label icon disabled checked radiogroup command"),c("output","for form name",r),c("progress","value max",r),c("meter","value min max low high optimum",r),c("details","open",[o,"summary"].join(" ")),c("keygen","autofocus challenge disabled form keytype name")),"html5-strict"!==e&&(s("script","language xml:space"),s("style","xml:space"),s("object","declare classid code codebase codetype archive standby align border hspace vspace"),s("embed","align name hspace vspace"),s("param","valuetype type"),s("a","charset name rev shape coords"),s("br","clear"),s("applet","codebase archive code object alt name width height align hspace vspace"),s("img","name longdesc align border hspace vspace"),s("iframe","longdesc frameborder marginwidth marginheight scrolling align"),s("font basefont","size color face"),s("input","usemap align"),s("select","onchange"),s("textarea"),s("h1 h2 h3 h4 h5 h6 div p legend caption","align"),s("ul","type compact"),s("li","type"),s("ol dl menu dir","compact"),s("pre","width xml:space"),s("hr","align noshade size width"),s("isindex","prompt"),s("table","summary width frame rules cellspacing cellpadding align bgcolor"),s("col","width align char charoff valign"),s("colgroup","width align char charoff valign"),s("thead","align char charoff valign"),s("tr","align char charoff valign bgcolor"),s("th","axis align char charoff valign nowrap bgcolor width height"),s("form","accept"),s("td","abbr axis scope align char charoff valign nowrap bgcolor width height"),s("tfoot","align char charoff valign"),s("tbody","align char charoff valign"),s("area","nohref"),s("body","background bgcolor text link vlink alink")),"html4"!==e&&(s("input button select textarea","autofocus"),s("input textarea","placeholder"),s("a","download"),s("link script img","crossorigin"),s("iframe","sandbox seamless allowfullscreen")),Oo(Vo("a form meter progress dfn"),(function(e){u[e]&&delete u[e].children[e]})),delete u.caption.children.table,delete u.script,Mo[e]=u,u)},Uo=function(e,t){var n;return e&&(n={},"string"===typeof e&&(e={"*":e}),Oo(e,(function(e,r){n[r]=n[r.toUpperCase()]="map"===t?_o(e,/[, ]/):Lo(e,/[, ]/)}))),n};function jo(e){var t,n,r,o,i,a,u,c,s,l,f,d,h,m={},g={},p=[],v={},y={},b=function(t,n,r){var o=e[t];return o?o=_o(o,/[, ]/,_o(o.toUpperCase(),/[, ]/)):(o=Mo[t],o||(o=_o(n," ",_o(n.toUpperCase()," ")),o=Ho(o,r),Mo[t]=o)),o};e=e||{},r=Fo(e.schema),!1===e.verify_html&&(e.valid_elements="*[*]"),t=Uo(e.valid_styles),n=Uo(e.invalid_styles,"map"),c=Uo(e.valid_classes,"map"),o=b("whitespace_elements","pre script noscript style textarea video audio iframe object code"),i=b("self_closing_elements","colgroup dd dt li option p td tfoot th thead tr"),a=b("short_ended_elements","area base basefont br col frame hr img input isindex link meta param embed source wbr track"),u=b("boolean_attributes","checked compact declare defer disabled ismap multiple nohref noresize noshade nowrap readonly selected autoplay loop controls"),l=b("non_empty_elements","td th iframe video audio object script pre code",a),f=b("move_caret_before_on_enter_elements","table",l),d=b("text_block_elements","h1 h2 h3 h4 h5 h6 p div address pre form blockquote center dir fieldset header footer article section hgroup aside main nav figure"),s=b("block_elements","hr table tbody thead tfoot th tr td li ol ul caption dl dt dd noscript menu isindex option datalist select optgroup figcaption details summary",d),h=b("text_inline_elements","span strong b em i font strike u var cite dfn code mark q sup sub samp"),Oo((e.special||"script noscript noframes noembed title style textarea xmp").split(" "),(function(e){y[e]=new RegExp("</"+e+"[^>]*>","gi")}));var w=function(e){return new RegExp("^"+e.replace(/([?+*])/g,".$1")+"$")},C=function(e){var t,n,r,o,i,a,u,c,s,l,f,d,h,g,v,y,b,C,x,E=/^([#+\-])?([^\[!\/]+)(?:\/([^\[!]+))?(?:(!?)\[([^\]]+)\])?$/,z=/^([!\-])?(\w+[\\:]:\w+|[^=:<]+)?(?:([=:<])(.*))?$/,k=/[*?+]/;if(e)for(e=Vo(e,","),m["@"]&&(y=m["@"].attributes,b=m["@"].attributesOrder),t=0,n=e.length;t<n;t++)if(i=E.exec(e[t]),i){if(g=i[1],s=i[2],v=i[3],c=i[5],d={},h=[],a={attributes:d,attributesOrder:h},"#"===g&&(a.paddEmpty=!0),"-"===g&&(a.removeEmpty=!0),"!"===i[4]&&(a.removeEmptyAttrs=!0),y){for(C in y)d[C]=y[C];h.push.apply(h,b)}if(c)for(c=Vo(c,"|"),r=0,o=c.length;r<o;r++)if(i=z.exec(c[r]),i){if(u={},f=i[1],l=i[2].replace(/[\\:]:/g,":"),g=i[3],x=i[4],"!"===f&&(a.attributesRequired=a.attributesRequired||[],a.attributesRequired.push(l),u.required=!0),"-"===f){delete d[l],h.splice(Io(h,l),1);continue}g&&("="===g&&(a.attributesDefault=a.attributesDefault||[],a.attributesDefault.push({name:l,value:x}),u.defaultValue=x),":"===g&&(a.attributesForced=a.attributesForced||[],a.attributesForced.push({name:l,value:x}),u.forcedValue=x),"<"===g&&(u.validValues=_o(x,"?"))),k.test(l)?(a.attributePatterns=a.attributePatterns||[],u.pattern=w(l),a.attributePatterns.push(u)):(d[l]||h.push(l),d[l]=u)}y||"@"!==s||(y=d,b=h),v&&(a.outputName=s,m[v]=a),k.test(s)?(a.pattern=w(s),p.push(a)):m[s]=a}},x=function(e){m={},p=[],C(e),Oo(r,(function(e,t){g[t]=e.children}))},E=function(e){var t=/^(~)?(.+)$/;e&&(Mo.text_block_elements=Mo.block_elements=null,Oo(Vo(e,","),(function(e){var n=t.exec(e),r="~"===n[1],o=r?"span":"div",i=n[2];if(g[i]=g[o],v[i]=o,r||(s[i.toUpperCase()]={},s[i]={}),!m[i]){var a=m[o];a=Ho({},a),delete a.removeEmptyAttrs,delete a.removeEmpty,m[i]=a}Oo(g,(function(e,t){e[o]&&(g[t]=e=Ho({},g[t]),e[i]=e[o])}))})))},z=function(t){var n=/^([+\-]?)(\w+)\[([^\]]+)\]$/;Mo[e.schema]=null,t&&Oo(Vo(t,","),(function(e){var t,r,o=n.exec(e);o&&(r=o[1],t=r?g[o[2]]:g[o[2]]={"#comment":{}},t=g[o[2]],Oo(Vo(o[3],"|"),(function(e){"-"===r?delete t[e]:t[e]={}})))}))},k=function(e){var t,n=m[e];if(n)return n;t=p.length;while(t--)if(n=p[t],n.pattern.test(e))return n};e.valid_elements?x(e.valid_elements):(Oo(r,(function(e,t){m[t]={attributes:e.attributes,attributesOrder:e.attributesOrder},g[t]=e.children})),"html5"!==e.schema&&Oo(Vo("strong/b em/i"),(function(e){e=Vo(e,"/"),m[e[1]].outputName=e[0]})),Oo(Vo("ol ul sub sup blockquote span font a table tbody tr strong em b i"),(function(e){m[e]&&(m[e].removeEmpty=!0)})),Oo(Vo("p h1 h2 h3 h4 h5 h6 th td pre div address caption li"),(function(e){m[e].paddEmpty=!0})),Oo(Vo("span"),(function(e){m[e].removeEmptyAttrs=!0}))),E(e.custom_elements),z(e.valid_children),C(e.extended_valid_elements),z("+ol[ul|ol],+ul[ul|ol]"),Oo({dd:"dl",dt:"dl",li:"ul ol",td:"tr",th:"tr",tr:"tbody thead tfoot",tbody:"table",thead:"table",tfoot:"table",legend:"fieldset",area:"map",param:"video audio object"},(function(e,t){m[t]&&(m[t].parentsRequired=Vo(e))})),e.invalid_elements&&Oo(Lo(e.invalid_elements),(function(e){m[e]&&delete m[e]})),k("span")||C("span[!data-mce-type|*]");var N=function(){return t},S=function(){return n},T=function(){return c},A=function(){return u},R=function(){return s},B=function(){return d},D=function(){return h},M=function(){return a},P=function(){return i},_=function(){return l},O=function(){return f},H=function(){return o},L=function(){return y},I=function(e,t){var n=g[e.toLowerCase()];return!(!n||!n[t.toLowerCase()])},V=function(e,t){var n,r,o=k(e);if(o){if(!t)return!0;if(o.attributes[t])return!0;if(n=o.attributePatterns,n){r=n.length;while(r--)if(n[r].pattern.test(e))return!0}}return!1},F=function(){return v};return{children:g,elements:m,getValidStyles:N,getValidClasses:T,getBlockElements:R,getInvalidStyles:S,getShortEndedElements:M,getTextBlockElements:B,getTextInlineElements:D,getBoolAttrs:A,getElementRule:k,getSelfClosingElements:P,getNonEmptyElements:_,getMoveCaretBeforeOnEnterElements:O,getWhiteSpaceElements:H,getSpecialElements:L,isValidChild:I,isValid:V,getCustomElements:F,addValidElements:C,setValidElements:x,addCustomElements:E,addValidChildren:z}}var qo,Wo,$o,Ko,Xo,Yo,Go,Zo,Jo,Qo,ei,ti,ni,ri,oi,ii,ai,ui,ci,si=function(e,t,n,r){var o=function(e){return e=parseInt(e,10).toString(16),e.length>1?e:"0"+e};return"#"+o(t)+o(n)+o(r)},li=function(e,t){var n,r,o,i,a=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/gi,u=/(?:url(?:(?:\(\s*\"([^\"]+)\"\s*\))|(?:\(\s*\'([^\']+)\'\s*\))|(?:\(\s*([^)\s]+)\s*\))))|(?:\'([^\']+)\')|(?:\"([^\"]+)\")/gi,c=/\s*([^:]+):\s*([^;]+);?/g,s=/\s+$/,l={},f="\ufeff";for(e=e||{},t&&(o=t.getValidStyles(),i=t.getInvalidStyles()),r=("\\\" \\' \\; \\: ; : "+f).split(" "),n=0;n<r.length;n++)l[r[n]]=f+n,l[f+n]=r[n];return{toHex:function(e){return e.replace(a,si)},parse:function(t){var r,o,i,d,h={},m=e.url_converter,g=e.url_converter_scope||this,p=function(e,t,r){var o,i,a,u;if(o=h[e+"-top"+t],o&&(i=h[e+"-right"+t],i&&(a=h[e+"-bottom"+t],a&&(u=h[e+"-left"+t],u)))){var c=[o,i,a,u];n=c.length-1;while(n--)if(c[n]!==c[n+1])break;n>-1&&r||(h[e+t]=-1===n?c[0]:c.join(" "),delete h[e+"-top"+t],delete h[e+"-right"+t],delete h[e+"-bottom"+t],delete h[e+"-left"+t])}},v=function(e){var t,n=h[e];if(n){n=n.split(" "),t=n.length;while(t--)if(n[t]!==n[0])return!1;return h[e]=n[0],!0}},y=function(e,t,n,r){v(t)&&v(n)&&v(r)&&(h[e]=h[t]+" "+h[n]+" "+h[r],delete h[t],delete h[n],delete h[r])},b=function(e){return d=!0,l[e]},w=function(e,t){return d&&(e=e.replace(/\uFEFF[0-9]/g,(function(e){return l[e]}))),t||(e=e.replace(/\\([\'\";:])/g,"$1")),e},C=function(e){return String.fromCharCode(parseInt(e.slice(1),16))},x=function(e){return e.replace(/\\[0-9a-f]+/gi,C)},E=function(t,n,r,o,i,a){if(i=i||a,i)return i=w(i),"'"+i.replace(/\'/g,"\\'")+"'";if(n=w(n||r||o),!e.allow_script_urls){var u=n.replace(/[\s\r\n]+/g,"");if(/(java|vb)script:/i.test(u))return"";if(!e.allow_svg_data_urls&&/^data:image\/svg/i.test(u))return""}return m&&(n=m.call(g,n,"style")),"url('"+n.replace(/\'/g,"\\'")+"')"};if(t){t=t.replace(/[\u0000-\u001F]/g,""),t=t.replace(/\\[\"\';:\uFEFF]/g,b).replace(/\"[^\"]+\"|\'[^\']+\'/g,(function(e){return e.replace(/[;:]/g,b)}));while(r=c.exec(t))if(c.lastIndex=r.index+r[0].length,o=r[1].replace(s,"").toLowerCase(),i=r[2].replace(s,""),o&&i){if(o=x(o),i=x(i),-1!==o.indexOf(f)||-1!==o.indexOf('"'))continue;if(!e.allow_script_urls&&("behavior"===o||/expression\s*\(|\/\*|\*\//.test(i)))continue;"font-weight"===o&&"700"===i?i="bold":"color"!==o&&"background-color"!==o||(i=i.toLowerCase()),i=i.replace(a,si),i=i.replace(u,E),h[o]=d?w(i,!0):i}p("border","",!0),p("border","-width"),p("border","-color"),p("border","-style"),p("padding",""),p("margin",""),y("border","border-width","border-style","border-color"),"medium none"===h.border&&delete h.border,"none"===h["border-image"]&&delete h["border-image"]}return h},serialize:function(e,t){var n,r,a="",u=function(t){var n,r,i,u;if(n=o[t],n)for(r=0,i=n.length;r<i;r++)t=n[r],u=e[t],u&&(a+=(a.length>0?" ":"")+t+": "+u+";")},c=function(e,t){var n;return n=i["*"],(!n||!n[e])&&(n=i[t],!n||!n[e])};if(t&&o)u("*"),u(t);else for(n in e)r=e[n],!r||i&&!c(n,t)||(a+=(a.length>0?" ":"")+n+": "+r+";");return a}}},fi="mce-data-",di=/^(?:mouse|contextmenu)|click/,hi={keyLocation:1,layerX:1,layerY:1,returnValue:1,webkitMovementX:1,webkitMovementY:1,keyIdentifier:1,mozPressure:1},mi=function(e){return e.isDefaultPrevented===pi||e.isDefaultPrevented===gi},gi=function(){return!1},pi=function(){return!0},vi=function(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r||!1):e.attachEvent&&e.attachEvent("on"+t,n)},yi=function(e,t,n,r){e.removeEventListener?e.removeEventListener(t,n,r||!1):e.detachEvent&&e.detachEvent("on"+t,n)},bi=function(e,t){if(e.composedPath){var n=e.composedPath();if(n&&n.length>0)return n[0]}return t},wi=function(e,t){var r,o=t||{};for(r in e)hi[r]||(o[r]=e[r]);if(o.target||(o.target=o.srcElement||n.document),pr.experimentalShadowDom&&(o.target=bi(e,o.target)),e&&di.test(e.type)&&void 0===e.pageX&&void 0!==e.clientX){var i=o.target.ownerDocument||n.document,a=i.documentElement,u=i.body;o.pageX=e.clientX+(a&&a.scrollLeft||u&&u.scrollLeft||0)-(a&&a.clientLeft||u&&u.clientLeft||0),o.pageY=e.clientY+(a&&a.scrollTop||u&&u.scrollTop||0)-(a&&a.clientTop||u&&u.clientTop||0)}return o.preventDefault=function(){o.isDefaultPrevented=pi,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},o.stopPropagation=function(){o.isPropagationStopped=pi,e&&(e.stopPropagation?e.stopPropagation():e.cancelBubble=!0)},o.stopImmediatePropagation=function(){o.isImmediatePropagationStopped=pi,o.stopPropagation()},!1===mi(o)&&(o.isDefaultPrevented=gi,o.isPropagationStopped=gi,o.isImmediatePropagationStopped=gi),"undefined"===typeof o.metaKey&&(o.metaKey=!1),o},Ci=function(e,t,n){var r=e.document,o={type:"ready"};if(n.domLoaded)t(o);else{var i=function(){return"complete"===r.readyState||"interactive"===r.readyState&&r.body},a=function(){yi(e,"DOMContentLoaded",a),yi(e,"load",a),n.domLoaded||(n.domLoaded=!0,t(o))};i()?a():vi(e,"DOMContentLoaded",a),vi(e,"load",a)}},xi=function(){function e(){this.domLoaded=!1,this.events={},this.count=1,this.expando=fi+(+new Date).toString(32),this.hasMouseEnterLeave="onmouseenter"in n.document.documentElement,this.hasFocusIn="onfocusin"in n.document.documentElement,this.count=1}return e.prototype.bind=function(e,t,r,o){var i,a,u,c,s,l,f,d=this,h=n.window,m=function(e){d.executeHandlers(wi(e||h.event),i)};if(e&&3!==e.nodeType&&8!==e.nodeType){e[d.expando]?i=e[d.expando]:(i=d.count++,e[d.expando]=i,d.events[i]={}),o=o||e;var g=t.split(" ");u=g.length;while(u--)c=g[u],l=m,s=f=!1,"DOMContentLoaded"===c&&(c="ready"),d.domLoaded&&"ready"===c&&"complete"===e.readyState?r.call(o,wi({type:c})):(d.hasMouseEnterLeave||(s=d.mouseEnterLeave[c],s&&(l=function(e){var t,n;if(t=e.currentTarget,n=e.relatedTarget,n&&t.contains)n=t.contains(n);else while(n&&n!==t)n=n.parentNode;n||(e=wi(e||h.event),e.type="mouseout"===e.type?"mouseleave":"mouseenter",e.target=t,d.executeHandlers(e,i))})),d.hasFocusIn||"focusin"!==c&&"focusout"!==c||(f=!0,s="focusin"===c?"focus":"blur",l=function(e){e=wi(e||h.event),e.type="focus"===e.type?"focusin":"focusout",d.executeHandlers(e,i)}),a=d.events[i][c],a?"ready"===c&&d.domLoaded?r(wi({type:c})):a.push({func:r,scope:o}):(d.events[i][c]=a=[{func:r,scope:o}],a.fakeName=s,a.capture=f,a.nativeHandler=l,"ready"===c?Ci(e,l,d):vi(e,s||c,l,f)));return e=a=0,r}},e.prototype.unbind=function(e,t,n){var r,o,i,a,u,c;if(!e||3===e.nodeType||8===e.nodeType)return this;if(r=e[this.expando],r){if(c=this.events[r],t){var s=t.split(" ");i=s.length;while(i--)if(u=s[i],o=c[u],o){if(n){a=o.length;while(a--)if(o[a].func===n){var l=o.nativeHandler,f=o.fakeName,d=o.capture;o=o.slice(0,a).concat(o.slice(a+1)),o.nativeHandler=l,o.fakeName=f,o.capture=d,c[u]=o}}n&&0!==o.length||(delete c[u],yi(e,o.fakeName||u,o.nativeHandler,o.capture))}}else{for(u in c)o=c[u],yi(e,o.fakeName||u,o.nativeHandler,o.capture);c={}}for(u in c)return this;delete this.events[r];try{delete e[this.expando]}catch(h){e[this.expando]=null}}return this},e.prototype.fire=function(e,t,n){var r;if(!e||3===e.nodeType||8===e.nodeType)return this;var o=wi(null,n);o.type=t,o.target=e;do{r=e[this.expando],r&&this.executeHandlers(o,r),e=e.parentNode||e.ownerDocument||e.defaultView||e.parentWindow}while(e&&!o.isPropagationStopped());return this},e.prototype.clean=function(e){var t,n;if(!e||3===e.nodeType||8===e.nodeType)return this;if(e[this.expando]&&this.unbind(e),e.getElementsByTagName||(e=e.document),e&&e.getElementsByTagName){this.unbind(e),n=e.getElementsByTagName("*"),t=n.length;while(t--)e=n[t],e[this.expando]&&this.unbind(e)}return this},e.prototype.destroy=function(){this.events={}},e.prototype.cancel=function(e){return e&&(e.preventDefault(),e.stopImmediatePropagation()),!1},e.prototype.executeHandlers=function(e,t){var n,r,o,i,a=this.events[t];if(n=a&&a[e.type],n)for(r=0,o=n.length;r<o;r++)if(i=n[r],i&&!1===i.func.call(i.scope,e)&&e.preventDefault(),e.isImmediatePropagationStopped())return},e.Event=new e,e}(),Ei="sizzle"+-new Date,zi=n.window.document,ki=0,Ni=0,Si=ua(),Ti=ua(),Ai=ua(),Ri=function(e,t){return e===t&&(ei=!0),0},Bi="undefined",Di=1<<31,Mi={}.hasOwnProperty,Pi=[],_i=Pi.pop,Oi=Pi.push,Hi=Pi.push,Li=Pi.slice,Ii=Pi.indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(this[t]===e)return t;return-1},Vi="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",Fi="[\\x20\\t\\r\\n\\f]",Ui="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",ji="\\["+Fi+"*("+Ui+")(?:"+Fi+"*([*^$|!~]?=)"+Fi+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+Ui+"))|)"+Fi+"*\\]",qi=":("+Ui+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ji+")*)|.*)\\)|)",Wi=new RegExp("^"+Fi+"+|((?:^|[^\\\\])(?:\\\\.)*)"+Fi+"+$","g"),$i=new RegExp("^"+Fi+"*,"+Fi+"*"),Ki=new RegExp("^"+Fi+"*([>+~]|"+Fi+")"+Fi+"*"),Xi=new RegExp("="+Fi+"*([^\\]'\"]*?)"+Fi+"*\\]","g"),Yi=new RegExp(qi),Gi=new RegExp("^"+Ui+"$"),Zi={ID:new RegExp("^#("+Ui+")"),CLASS:new RegExp("^\\.("+Ui+")"),TAG:new RegExp("^("+Ui+"|[*])"),ATTR:new RegExp("^"+ji),PSEUDO:new RegExp("^"+qi),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+Fi+"*(even|odd|(([+-]|)(\\d*)n|)"+Fi+"*(?:([+-]|)"+Fi+"*(\\d+)|))"+Fi+"*\\)|)","i"),bool:new RegExp("^(?:"+Vi+")$","i"),needsContext:new RegExp("^"+Fi+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+Fi+"*((?:-\\d)?\\d*)"+Fi+"*\\)|)(?=[^-]|$)","i")},Ji=/^(?:input|select|textarea|button)$/i,Qi=/^h\d$/i,ea=/^[^{]+\{\s*\[native \w/,ta=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,na=/[+~]/,ra=/'|\\/g,oa=new RegExp("\\\\([\\da-f]{1,6}"+Fi+"?|("+Fi+")|.)","ig"),ia=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)};try{Hi.apply(Pi=Li.call(zi.childNodes),zi.childNodes),Pi[zi.childNodes.length].nodeType}catch(KH){Hi={apply:Pi.length?function(e,t){Oi.apply(e,Li.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}var aa=function(e,t,n,r){var o,i,a,u,c,s,l,f,d,h;if((t?t.ownerDocument||t:zi)!==ni&&ti(t),t=t||ni,n=n||[],!e||"string"!==typeof e)return n;if(1!==(u=t.nodeType)&&9!==u)return[];if(oi&&!r){if(o=ta.exec(e))if(a=o[1]){if(9===u){if(i=t.getElementById(a),!i||!i.parentNode)return n;if(i.id===a)return n.push(i),n}else if(t.ownerDocument&&(i=t.ownerDocument.getElementById(a))&&ci(t,i)&&i.id===a)return n.push(i),n}else{if(o[2])return Hi.apply(n,t.getElementsByTagName(e)),n;if((a=o[3])&&Wo.getElementsByClassName)return Hi.apply(n,t.getElementsByClassName(a)),n}if(Wo.qsa&&(!ii||!ii.test(e))){if(f=l=Ei,d=t,h=9===u&&e,1===u&&"object"!==t.nodeName.toLowerCase()){s=Yo(e),(l=t.getAttribute("id"))?f=l.replace(ra,"\\$&"):t.setAttribute("id",f),f="[id='"+f+"'] ",c=s.length;while(c--)s[c]=f+ga(s[c]);d=na.test(e)&&ha(t.parentNode)||t,h=s.join(",")}if(h)try{return Hi.apply(n,d.querySelectorAll(h)),n}catch(m){}finally{l||t.removeAttribute("id")}}}return Zo(e.replace(Wi,"$1"),t,n,r)};function ua(){var e=[];function t(n,r){return e.push(n+" ")>$o.cacheLength&&delete t[e.shift()],t[n+" "]=r}return t}function ca(e){return e[Ei]=!0,e}function sa(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||Di)-(~e.sourceIndex||Di);if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function la(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function fa(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function da(e){return ca((function(t){return t=+t,ca((function(n,r){var o,i=e([],n.length,t),a=i.length;while(a--)n[o=i[a]]&&(n[o]=!(r[o]=n[o]))}))}))}function ha(e){return e&&typeof e.getElementsByTagName!==Bi&&e}for(qo in Wo=aa.support={},Xo=aa.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},ti=aa.setDocument=function(e){var t,n=e?e.ownerDocument||e:zi,r=n.defaultView;function o(e){try{return e.top}catch(t){}return null}return n!==ni&&9===n.nodeType&&n.documentElement?(ni=n,ri=n.documentElement,oi=!Xo(n),r&&r!==o(r)&&(r.addEventListener?r.addEventListener("unload",(function(){ti()}),!1):r.attachEvent&&r.attachEvent("onunload",(function(){ti()}))),Wo.attributes=!0,Wo.getElementsByTagName=!0,Wo.getElementsByClassName=ea.test(n.getElementsByClassName),Wo.getById=!0,$o.find.ID=function(e,t){if(typeof t.getElementById!==Bi&&oi){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},$o.filter.ID=function(e){var t=e.replace(oa,ia);return function(e){return e.getAttribute("id")===t}},$o.find.TAG=Wo.getElementsByTagName?function(e,t){if(typeof t.getElementsByTagName!==Bi)return t.getElementsByTagName(e)}:function(e,t){var n,r=[],o=0,i=t.getElementsByTagName(e);if("*"===e){while(n=i[o++])1===n.nodeType&&r.push(n);return r}return i},$o.find.CLASS=Wo.getElementsByClassName&&function(e,t){if(oi)return t.getElementsByClassName(e)},ai=[],ii=[],Wo.disconnectedMatch=!0,ii=ii.length&&new RegExp(ii.join("|")),ai=ai.length&&new RegExp(ai.join("|")),t=ea.test(ri.compareDocumentPosition),ci=t||ea.test(ri.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},Ri=t?function(e,t){if(e===t)return ei=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&r||!Wo.sortDetached&&t.compareDocumentPosition(e)===r?e===n||e.ownerDocument===zi&&ci(zi,e)?-1:t===n||t.ownerDocument===zi&&ci(zi,t)?1:Qo?Ii.call(Qo,e)-Ii.call(Qo,t):0:4&r?-1:1)}:function(e,t){if(e===t)return ei=!0,0;var r,o=0,i=e.parentNode,a=t.parentNode,u=[e],c=[t];if(!i||!a)return e===n?-1:t===n?1:i?-1:a?1:Qo?Ii.call(Qo,e)-Ii.call(Qo,t):0;if(i===a)return sa(e,t);r=e;while(r=r.parentNode)u.unshift(r);r=t;while(r=r.parentNode)c.unshift(r);while(u[o]===c[o])o++;return o?sa(u[o],c[o]):u[o]===zi?-1:c[o]===zi?1:0},n):ni},aa.matches=function(e,t){return aa(e,null,null,t)},aa.matchesSelector=function(e,t){if((e.ownerDocument||e)!==ni&&ti(e),t=t.replace(Xi,"='$1']"),Wo.matchesSelector&&oi&&(!ai||!ai.test(t))&&(!ii||!ii.test(t)))try{var n=ui.call(e,t);if(n||Wo.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(KH){}return aa(t,ni,null,[e]).length>0},aa.contains=function(e,t){return(e.ownerDocument||e)!==ni&&ti(e),ci(e,t)},aa.attr=function(e,t){(e.ownerDocument||e)!==ni&&ti(e);var n=$o.attrHandle[t.toLowerCase()],r=n&&Mi.call($o.attrHandle,t.toLowerCase())?n(e,t,!oi):void 0;return void 0!==r?r:Wo.attributes||!oi?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},aa.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},aa.uniqueSort=function(e){var t,n=[],r=0,o=0;if(ei=!Wo.detectDuplicates,Qo=!Wo.sortStable&&e.slice(0),e.sort(Ri),ei){while(t=e[o++])t===e[o]&&(r=n.push(o));while(r--)e.splice(n[r],1)}return Qo=null,e},Ko=aa.getText=function(e){var t,n="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"===typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=Ko(e)}else if(3===o||4===o)return e.nodeValue}else while(t=e[r++])n+=Ko(t);return n},$o=aa.selectors={cacheLength:50,createPseudo:ca,match:Zi,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(oa,ia),e[3]=(e[3]||e[4]||e[5]||"").replace(oa,ia),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||aa.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&aa.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Zi.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&Yi.test(n)&&(t=Yo(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(oa,ia).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=Si[e+" "];return t||(t=new RegExp("(^|"+Fi+")"+e+"("+Fi+"|$)"))&&Si(e,(function(e){return t.test("string"===typeof e.className&&e.className||typeof e.getAttribute!==Bi&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var o=aa.attr(r,e);return null==o?"!="===t:!t||(o+="","="===t?o===n:"!="===t?o!==n:"^="===t?n&&0===o.indexOf(n):"*="===t?n&&o.indexOf(n)>-1:"$="===t?n&&o.slice(-n.length)===n:"~="===t?(" "+o+" ").indexOf(n)>-1:"|="===t&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,o){var i="nth"!==e.slice(0,3),a="last"!==e.slice(-4),u="of-type"===t;return 1===r&&0===o?function(e){return!!e.parentNode}:function(t,n,c){var s,l,f,d,h,m,g=i!==a?"nextSibling":"previousSibling",p=t.parentNode,v=u&&t.nodeName.toLowerCase(),y=!c&&!u;if(p){if(i){while(g){f=t;while(f=f[g])if(u?f.nodeName.toLowerCase()===v:1===f.nodeType)return!1;m=g="only"===e&&!m&&"nextSibling"}return!0}if(m=[a?p.firstChild:p.lastChild],a&&y){l=p[Ei]||(p[Ei]={}),s=l[e]||[],h=s[0]===ki&&s[1],d=s[0]===ki&&s[2],f=h&&p.childNodes[h];while(f=++h&&f&&f[g]||(d=h=0)||m.pop())if(1===f.nodeType&&++d&&f===t){l[e]=[ki,h,d];break}}else if(y&&(s=(t[Ei]||(t[Ei]={}))[e])&&s[0]===ki)d=s[1];else while(f=++h&&f&&f[g]||(d=h=0)||m.pop())if((u?f.nodeName.toLowerCase()===v:1===f.nodeType)&&++d&&(y&&((f[Ei]||(f[Ei]={}))[e]=[ki,d]),f===t))break;return d-=o,d===r||d%r===0&&d/r>=0}}},PSEUDO:function(e,t){var n,r=$o.pseudos[e]||$o.setFilters[e.toLowerCase()]||aa.error("unsupported pseudo: "+e);return r[Ei]?r(t):r.length>1?(n=[e,e,"",t],$o.setFilters.hasOwnProperty(e.toLowerCase())?ca((function(e,n){var o,i=r(e,t),a=i.length;while(a--)o=Ii.call(e,i[a]),e[o]=!(n[o]=i[a])})):function(e){return r(e,0,n)}):r}},pseudos:{not:ca((function(e){var t=[],n=[],r=Go(e.replace(Wi,"$1"));return r[Ei]?ca((function(e,t,n,o){var i,a=r(e,null,o,[]),u=e.length;while(u--)(i=a[u])&&(e[u]=!(t[u]=i))})):function(e,o,i){return t[0]=e,r(t,null,i,n),!n.pop()}})),has:ca((function(e){return function(t){return aa(e,t).length>0}})),contains:ca((function(e){return e=e.replace(oa,ia),function(t){return(t.textContent||t.innerText||Ko(t)).indexOf(e)>-1}})),lang:ca((function(e){return Gi.test(e||"")||aa.error("unsupported lang: "+e),e=e.replace(oa,ia).toLowerCase(),function(t){var n;do{if(n=oi?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(e){var t=n.window.location&&n.window.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===ri},focus:function(e){return e===ni.activeElement&&(!ni.hasFocus||ni.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!$o.pseudos.empty(e)},header:function(e){return Qi.test(e.nodeName)},input:function(e){return Ji.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:da((function(){return[0]})),last:da((function(e,t){return[t-1]})),eq:da((function(e,t,n){return[n<0?n+t:n]})),even:da((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:da((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:da((function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e})),gt:da((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}},$o.pseudos.nth=$o.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})$o.pseudos[qo]=la(qo);for(qo in{submit:!0,reset:!0})$o.pseudos[qo]=fa(qo);function ma(){}function ga(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function pa(e,t,n){var r=t.dir,o=n&&"parentNode"===r,i=Ni++;return t.first?function(t,n,i){while(t=t[r])if(1===t.nodeType||o)return e(t,n,i)}:function(t,n,a){var u,c,s=[ki,i];if(a){while(t=t[r])if((1===t.nodeType||o)&&e(t,n,a))return!0}else while(t=t[r])if(1===t.nodeType||o){if(c=t[Ei]||(t[Ei]={}),(u=c[r])&&u[0]===ki&&u[1]===i)return s[2]=u[2];if(c[r]=s,s[2]=e(t,n,a))return!0}}}function va(e){return e.length>1?function(t,n,r){var o=e.length;while(o--)if(!e[o](t,n,r))return!1;return!0}:e[0]}function ya(e,t,n){for(var r=0,o=t.length;r<o;r++)aa(e,t[r],n);return n}function ba(e,t,n,r,o){for(var i,a=[],u=0,c=e.length,s=null!=t;u<c;u++)(i=e[u])&&(n&&!n(i,r,o)||(a.push(i),s&&t.push(u)));return a}function wa(e,t,n,r,o,i){return r&&!r[Ei]&&(r=wa(r)),o&&!o[Ei]&&(o=wa(o,i)),ca((function(i,a,u,c){var s,l,f,d=[],h=[],m=a.length,g=i||ya(t||"*",u.nodeType?[u]:u,[]),p=!e||!i&&t?g:ba(g,d,e,u,c),v=n?o||(i?e:m||r)?[]:a:p;if(n&&n(p,v,u,c),r){s=ba(v,h),r(s,[],u,c),l=s.length;while(l--)(f=s[l])&&(v[h[l]]=!(p[h[l]]=f))}if(i){if(o||e){if(o){s=[],l=v.length;while(l--)(f=v[l])&&s.push(p[l]=f);o(null,v=[],s,c)}l=v.length;while(l--)(f=v[l])&&(s=o?Ii.call(i,f):d[l])>-1&&(i[s]=!(a[s]=f))}}else v=ba(v===a?v.splice(m,v.length):v),o?o(null,a,v,c):Hi.apply(a,v)}))}function Ca(e){for(var t,n,r,o=e.length,i=$o.relative[e[0].type],a=i||$o.relative[" "],u=i?1:0,c=pa((function(e){return e===t}),a,!0),s=pa((function(e){return Ii.call(t,e)>-1}),a,!0),l=[function(e,n,r){return!i&&(r||n!==Jo)||((t=n).nodeType?c(e,n,r):s(e,n,r))}];u<o;u++)if(n=$o.relative[e[u].type])l=[pa(va(l),n)];else{if(n=$o.filter[e[u].type].apply(null,e[u].matches),n[Ei]){for(r=++u;r<o;r++)if($o.relative[e[r].type])break;return wa(u>1&&va(l),u>1&&ga(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace(Wi,"$1"),n,u<r&&Ca(e.slice(u,r)),r<o&&Ca(e=e.slice(r)),r<o&&ga(e))}l.push(n)}return va(l)}function xa(e,t){var n=t.length>0,r=e.length>0,o=function(o,i,a,u,c){var s,l,f,d=0,h="0",m=o&&[],g=[],p=Jo,v=o||r&&$o.find.TAG("*",c),y=ki+=null==p?1:Math.random()||.1,b=v.length;for(c&&(Jo=i!==ni&&i);h!==b&&null!=(s=v[h]);h++){if(r&&s){l=0;while(f=e[l++])if(f(s,i,a)){u.push(s);break}c&&(ki=y)}n&&((s=!f&&s)&&d--,o&&m.push(s))}if(d+=h,n&&h!==d){l=0;while(f=t[l++])f(m,g,i,a);if(o){if(d>0)while(h--)m[h]||g[h]||(g[h]=_i.call(u));g=ba(g)}Hi.apply(u,g),c&&!o&&g.length>0&&d+t.length>1&&aa.uniqueSort(u)}return c&&(ki=y,Jo=p),m};return n?ca(o):o}ma.prototype=$o.filters=$o.pseudos,$o.setFilters=new ma,Yo=aa.tokenize=function(e,t){var n,r,o,i,a,u,c,s=Ti[e+" "];if(s)return t?0:s.slice(0);a=e,u=[],c=$o.preFilter;while(a){for(i in n&&!(r=$i.exec(a))||(r&&(a=a.slice(r[0].length)||a),u.push(o=[])),n=!1,(r=Ki.exec(a))&&(n=r.shift(),o.push({value:n,type:r[0].replace(Wi," ")}),a=a.slice(n.length)),$o.filter)$o.filter.hasOwnProperty(i)&&(!(r=Zi[i].exec(a))||c[i]&&!(r=c[i](r))||(n=r.shift(),o.push({value:n,type:i,matches:r}),a=a.slice(n.length)));if(!n)break}return t?a.length:a?aa.error(e):Ti(e,u).slice(0)},Go=aa.compile=function(e,t){var n,r=[],o=[],i=Ai[e+" "];if(!i){t||(t=Yo(e)),n=t.length;while(n--)i=Ca(t[n]),i[Ei]?r.push(i):o.push(i);i=Ai(e,xa(o,r)),i.selector=e}return i},Zo=aa.select=function(e,t,n,r){var o,i,a,u,c,s="function"===typeof e&&e,l=!r&&Yo(e=s.selector||e);if(n=n||[],1===l.length){if(i=l[0]=l[0].slice(0),i.length>2&&"ID"===(a=i[0]).type&&Wo.getById&&9===t.nodeType&&oi&&$o.relative[i[1].type]){if(t=($o.find.ID(a.matches[0].replace(oa,ia),t)||[])[0],!t)return n;s&&(t=t.parentNode),e=e.slice(i.shift().value.length)}o=Zi.needsContext.test(e)?0:i.length;while(o--){if(a=i[o],$o.relative[u=a.type])break;if((c=$o.find[u])&&(r=c(a.matches[0].replace(oa,ia),na.test(i[0].type)&&ha(t.parentNode)||t))){if(i.splice(o,1),e=r.length&&ga(i),!e)return Hi.apply(n,r),n;break}}}return(s||Go(e,l))(r,t,!oi,n,na.test(e)&&ha(t.parentNode)||t),n},Wo.sortStable=Ei.split("").sort(Ri).join("")===Ei,Wo.detectDuplicates=!!ei,ti(),Wo.sortDetached=!0;var Ea=n.document,za=Array.prototype.push,ka=Array.prototype.slice,Na=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,Sa=xi.Event,Ta=Vr.makeMap("children,contents,next,prev"),Aa=function(e){return"undefined"!==typeof e},Ra=function(e){return"string"===typeof e},Ba=function(e){return e&&e===e.window},Da=function(e,t){var n,r,o;t=t||Ea,o=t.createElement("div"),n=t.createDocumentFragment(),o.innerHTML=e;while(r=o.firstChild)n.appendChild(r);return n},Ma=function(e,t,n,r){var o;if(Ra(t))t=Da(t,Xa(e[0]));else if(t.length&&!t.nodeType){if(t=Ja.makeArray(t),r)for(o=t.length-1;o>=0;o--)Ma(e,t[o],n,r);else for(o=0;o<t.length;o++)Ma(e,t[o],n,r);return e}if(t.nodeType){o=e.length;while(o--)n.call(e[o],t)}return e},Pa=function(e,t){return e&&t&&-1!==(" "+e.className+" ").indexOf(" "+t+" ")},_a=function(e,t,n){var r,o;return t=Ja(t)[0],e.each((function(){var e=this;n&&r===e.parentNode||(r=e.parentNode,o=t.cloneNode(!1),e.parentNode.insertBefore(o,e)),o.appendChild(e)})),e},Oa=Vr.makeMap("fillOpacity fontWeight lineHeight opacity orphans widows zIndex zoom"," "),Ha=Vr.makeMap("checked compact declare defer disabled ismap multiple nohref noshade nowrap readonly selected"," "),La={for:"htmlFor",class:"className",readonly:"readOnly"},Ia={float:"cssFloat"},Va={},Fa={},Ua=function(e,t){return new Ja.fn.init(e,t)},ja=function(e,t){var n;if(t.indexOf)return t.indexOf(e);n=t.length;while(n--)if(t[n]===e)return n;return-1},qa=/^\s*|\s*$/g,Wa=function(e){return null===e||void 0===e?"":(""+e).replace(qa,"")},$a=function(e,t){var n,r,o,i;if(e)if(n=e.length,void 0===n){for(r in e)if(e.hasOwnProperty(r)&&(i=e[r],!1===t.call(i,r,i)))break}else for(o=0;o<n;o++)if(i=e[o],!1===t.call(i,o,i))break;return e},Ka=function(e,t){var n=[];return $a(e,(function(e,r){t(r,e)&&n.push(r)})),n},Xa=function(e){return e?9===e.nodeType?e:e.ownerDocument:Ea};Ua.fn=Ua.prototype={constructor:Ua,selector:"",context:null,length:0,init:function(e,t){var r,o,i=this;if(!e)return i;if(e.nodeType)return i.context=i[0]=e,i.length=1,i;if(t&&t.nodeType)i.context=t;else{if(t)return Ja(e).attr(t);i.context=t=n.document}if(Ra(e)){if(i.selector=e,r="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:Na.exec(e),!r)return Ja(t).find(e);if(r[1]){o=Da(e,Xa(t)).firstChild;while(o)za.call(i,o),o=o.nextSibling}else{if(o=Xa(t).getElementById(r[2]),!o)return i;if(o.id!==r[2])return i.find(e);i.length=1,i[0]=o}}else this.add(e,!1);return i},toArray:function(){return Vr.toArray(this)},add:function(e,t){var n,r,o=this;if(Ra(e))return o.add(Ja(e));if(!1!==t)for(n=Ja.unique(o.toArray().concat(Ja.makeArray(e))),o.length=n.length,r=0;r<n.length;r++)o[r]=n[r];else za.apply(o,Ja.makeArray(e));return o},attr:function(e,t){var n,r=this;if("object"===typeof e)$a(e,(function(e,t){r.attr(e,t)}));else{if(!Aa(t)){if(r[0]&&1===r[0].nodeType){if(n=Va[e],n&&n.get)return n.get(r[0],e);if(Ha[e])return r.prop(e)?e:void 0;t=r[0].getAttribute(e,2),null===t&&(t=void 0)}return t}this.each((function(){var n;if(1===this.nodeType){if(n=Va[e],n&&n.set)return void n.set(this,t);null===t?this.removeAttribute(e,2):this.setAttribute(e,t,2)}}))}return r},removeAttr:function(e){return this.attr(e,null)},prop:function(e,t){var n=this;if(e=La[e]||e,"object"===typeof e)$a(e,(function(e,t){n.prop(e,t)}));else{if(!Aa(t))return n[0]&&n[0].nodeType&&e in n[0]?n[0][e]:t;this.each((function(){1===this.nodeType&&(this[e]=t)}))}return n},css:function(e,t){var n,r,o=this,i=function(e){return e.replace(/-(\D)/g,(function(e,t){return t.toUpperCase()}))},a=function(e){return e.replace(/[A-Z]/g,(function(e){return"-"+e}))};if("object"===typeof e)$a(e,(function(e,t){o.css(e,t)}));else if(Aa(t))e=i(e),"number"!==typeof t||Oa[e]||(t=t.toString()+"px"),o.each((function(){var n=this.style;if(r=Fa[e],r&&r.set)r.set(this,t);else{try{this.style[Ia[e]||e]=t}catch(o){}null!==t&&""!==t||(n.removeProperty?n.removeProperty(a(e)):n.removeAttribute(e))}}));else{if(n=o[0],r=Fa[e],r&&r.get)return r.get(n);if(!n.ownerDocument.defaultView)return n.currentStyle?n.currentStyle[i(e)]:"";try{return n.ownerDocument.defaultView.getComputedStyle(n,null).getPropertyValue(a(e))}catch(u){return}}return o},remove:function(){var e,t=this,n=this.length;while(n--)e=t[n],Sa.clean(e),e.parentNode&&e.parentNode.removeChild(e);return this},empty:function(){var e,t=this,n=this.length;while(n--){e=t[n];while(e.firstChild)e.removeChild(e.firstChild)}return this},html:function(e){var t,n=this;if(Aa(e)){t=n.length;try{while(t--)n[t].innerHTML=e}catch(r){Ja(n[t]).empty().append(e)}return n}return n[0]?n[0].innerHTML:""},text:function(e){var t,n=this;if(Aa(e)){t=n.length;while(t--)"innerText"in n[t]?n[t].innerText=e:n[0].textContent=e;return n}return n[0]?n[0].innerText||n[0].textContent:""},append:function(){return Ma(this,arguments,(function(e){(1===this.nodeType||this.host&&1===this.host.nodeType)&&this.appendChild(e)}))},prepend:function(){return Ma(this,arguments,(function(e){(1===this.nodeType||this.host&&1===this.host.nodeType)&&this.insertBefore(e,this.firstChild)}),!0)},before:function(){var e=this;return e[0]&&e[0].parentNode?Ma(e,arguments,(function(e){this.parentNode.insertBefore(e,this)})):e},after:function(){var e=this;return e[0]&&e[0].parentNode?Ma(e,arguments,(function(e){this.parentNode.insertBefore(e,this.nextSibling)}),!0):e},appendTo:function(e){return Ja(e).append(this),this},prependTo:function(e){return Ja(e).prepend(this),this},replaceWith:function(e){return this.before(e).remove()},wrap:function(e){return _a(this,e)},wrapAll:function(e){return _a(this,e,!0)},wrapInner:function(e){return this.each((function(){Ja(this).contents().wrapAll(e)})),this},unwrap:function(){return this.parent().each((function(){Ja(this).replaceWith(this.childNodes)}))},clone:function(){var e=[];return this.each((function(){e.push(this.cloneNode(!0))})),Ja(e)},addClass:function(e){return this.toggleClass(e,!0)},removeClass:function(e){return this.toggleClass(e,!1)},toggleClass:function(e,t){var n=this;return"string"!==typeof e||(-1!==e.indexOf(" ")?$a(e.split(" "),(function(){n.toggleClass(this,t)})):n.each((function(n,r){var o,i;i=Pa(r,e),i!==t&&(o=r.className,i?r.className=Wa((" "+o+" ").replace(" "+e+" "," ")):r.className+=o?" "+e:e)}))),n},hasClass:function(e){return Pa(this[0],e)},each:function(e){return $a(this,e)},on:function(e,t){return this.each((function(){Sa.bind(this,e,t)}))},off:function(e,t){return this.each((function(){Sa.unbind(this,e,t)}))},trigger:function(e){return this.each((function(){"object"===typeof e?Sa.fire(this,e.type,e):Sa.fire(this,e)}))},show:function(){return this.css("display","")},hide:function(){return this.css("display","none")},slice:function(){return new Ja(ka.apply(this,arguments))},eq:function(e){return-1===e?this.slice(e):this.slice(e,+e+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},find:function(e){var t,n,r=[];for(t=0,n=this.length;t<n;t++)Ja.find(e,this[t],r);return Ja(r)},filter:function(e){return Ja("function"===typeof e?Ka(this.toArray(),(function(t,n){return e(n,t)})):Ja.filter(e,this.toArray()))},closest:function(e){var t=[];return e instanceof Ja&&(e=e[0]),this.each((function(n,r){while(r){if("string"===typeof e&&Ja(r).is(e)){t.push(r);break}if(r===e){t.push(r);break}r=r.parentNode}})),Ja(t)},offset:function(e){var t,n,r,o,i=0,a=0;return e?this.css(e):(t=this[0],t&&(n=t.ownerDocument,r=n.documentElement,t.getBoundingClientRect&&(o=t.getBoundingClientRect(),i=o.left+(r.scrollLeft||n.body.scrollLeft)-r.clientLeft,a=o.top+(r.scrollTop||n.body.scrollTop)-r.clientTop)),{left:i,top:a})},push:za,sort:Array.prototype.sort,splice:Array.prototype.splice},Vr.extend(Ua,{extend:Vr.extend,makeArray:function(e){return Ba(e)||e.nodeType?[e]:Vr.toArray(e)},inArray:ja,isArray:Vr.isArray,each:$a,trim:Wa,grep:Ka,find:aa,expr:aa.selectors,unique:aa.uniqueSort,text:aa.getText,contains:aa.contains,filter:function(e,t,n){var r=t.length;n&&(e=":not("+e+")");while(r--)1!==t[r].nodeType&&t.splice(r,1);return t=1===t.length?Ja.find.matchesSelector(t[0],e)?[t[0]]:[]:Ja.find.matches(e,t),t}});var Ya=function(e,t,n){var r=[],o=e[t];"string"!==typeof n&&n instanceof Ja&&(n=n[0]);while(o&&9!==o.nodeType){if(void 0!==n){if(o===n)break;if("string"===typeof n&&Ja(o).is(n))break}1===o.nodeType&&r.push(o),o=o[t]}return r},Ga=function(e,t,n,r){var o=[];for(r instanceof Ja&&(r=r[0]);e;e=e[t])if(!n||e.nodeType===n){if(void 0!==r){if(e===r)break;if("string"===typeof r&&Ja(e).is(r))break}o.push(e)}return o},Za=function(e,t,n){for(e=e[t];e;e=e[t])if(e.nodeType===n)return e;return null};$a({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return Ya(e,"parentNode")},next:function(e){return Za(e,"nextSibling",1)},prev:function(e){return Za(e,"previousSibling",1)},children:function(e){return Ga(e.firstChild,"nextSibling",1)},contents:function(e){return Vr.toArray(("iframe"===e.nodeName?e.contentDocument||e.contentWindow.document:e).childNodes)}},(function(e,t){Ua.fn[e]=function(n){var r=this,o=[];r.each((function(){var e=t.call(o,this,n,o);e&&(Ja.isArray(e)?o.push.apply(o,e):o.push(e))})),this.length>1&&(Ta[e]||(o=Ja.unique(o)),0===e.indexOf("parents")&&(o=o.reverse()));var i=Ja(o);return n?i.filter(n):i}})),$a({parentsUntil:function(e,t){return Ya(e,"parentNode",t)},nextUntil:function(e,t){return Ga(e,"nextSibling",1,t).slice(1)},prevUntil:function(e,t){return Ga(e,"previousSibling",1,t).slice(1)}},(function(e,t){Ua.fn[e]=function(n,r){var o=this,i=[];o.each((function(){var e=t.call(i,this,n,i);e&&(Ja.isArray(e)?i.push.apply(i,e):i.push(e))})),this.length>1&&(i=Ja.unique(i),0!==e.indexOf("parents")&&"prevUntil"!==e||(i=i.reverse()));var a=Ja(i);return r?a.filter(r):a}})),Ua.fn.is=function(e){return!!e&&this.filter(e).length>0},Ua.fn.init.prototype=Ua.fn,Ua.overrideDefaults=function(e){var t,n=function(r,o){return t=t||e(),0===arguments.length&&(r=t.element),o||(o=t.context),new n.fn.init(r,o)};return Ja.extend(n,this),n},Ua.attrHooks=Va,Ua.cssHooks=Fa;var Ja=Ua,Qa=function(){function e(e,t){this.node=e,this.rootNode=t,this.current=this.current.bind(this),this.next=this.next.bind(this),this.prev=this.prev.bind(this),this.prev2=this.prev2.bind(this)}return e.prototype.current=function(){return this.node},e.prototype.next=function(e){return this.node=this.findSibling(this.node,"firstChild","nextSibling",e),this.node},e.prototype.prev=function(e){return this.node=this.findSibling(this.node,"lastChild","previousSibling",e),this.node},e.prototype.prev2=function(e){return this.node=this.findPreviousNode(this.node,"lastChild","previousSibling",e),this.node},e.prototype.findSibling=function(e,t,n,r){var o,i;if(e){if(!r&&e[t])return e[t];if(e!==this.rootNode){if(o=e[n],o)return o;for(i=e.parentNode;i&&i!==this.rootNode;i=i.parentNode)if(o=i[n],o)return o}}},e.prototype.findPreviousNode=function(e,t,n,r){var o,i,a;if(e){if(o=e[n],this.rootNode&&o===this.rootNode)return;if(o){if(!r)for(a=o[t];a;a=a[t])if(!a[t])return a;return o}if(i=e.parentNode,i&&i!==this.rootNode)return i}},e}(),eu=function(e,t){var n=yn(e);n.each((function(n){n.dom().insertBefore(t.dom(),e.dom())}))},tu=function(e,t){var n=Cn(e);n.fold((function(){var n=yn(e);n.each((function(e){ru(e,t)}))}),(function(e){eu(e,t)}))},nu=function(e,t){var n=Nn(e);n.fold((function(){ru(e,t)}),(function(n){e.dom().insertBefore(t.dom(),n.dom())}))},ru=function(e,t){e.dom().appendChild(t.dom())},ou=function(e,t){eu(e,t),ru(t,e)},iu=function(e,t){P(t,(function(t){eu(e,t)}))},au=function(e,t){P(t,(function(t){ru(e,t)}))},uu=function(e){e.dom().textContent="",P(zn(e),(function(e){cu(e)}))},cu=function(e){var t=e.dom();null!==t.parentNode&&t.parentNode.removeChild(t)},su=function(e){var t=zn(e);t.length>0&&iu(e,t),cu(e)},lu=function(e,t){var n=function(n,r){return lu(e+n,t+r)};return{left:i(e),top:i(t),translate:n}},fu=lu,du=function(e){var t=e.getBoundingClientRect();return fu(t.left,t.top)},hu=function(e,t){return void 0!==e?e:void 0!==t?t:0},mu=function(e){var t=e.dom().ownerDocument,n=t.body,r=t.defaultView,o=t.documentElement;if(n===e.dom())return fu(n.offsetLeft,n.offsetTop);var i=hu(r.pageYOffset,o.scrollTop),a=hu(r.pageXOffset,o.scrollLeft),u=hu(o.clientTop,n.clientTop),c=hu(o.clientLeft,n.clientLeft);return gu(e).translate(a-c,i-u)},gu=function(e){var t=e.dom(),n=t.ownerDocument,r=n.body;return r===t?fu(r.offsetLeft,r.offsetTop):It(e)?du(t):fu(0,0)},pu=gt().browser.isSafari(),vu=function(e){var t=void 0!==e?e.dom():n.document,r=t.body.scrollLeft||t.documentElement.scrollLeft,o=t.body.scrollTop||t.documentElement.scrollTop;return fu(r,o)},yu=function(e,t,r){var o=void 0!==r?r.dom():n.document,i=o.defaultView;i.scrollTo(e,t)},bu=function(e,t){pu&&z(e.dom().scrollIntoViewIfNeeded)?e.dom().scrollIntoViewIfNeeded(!1):e.dom().scrollIntoView(t)},wu=function(e,t,n,r){return{x:i(e),y:i(t),width:i(n),height:i(r),right:i(e+n),bottom:i(t+r)}},Cu=function(e){var t=void 0===e?n.window:e,r=t["visualViewport"];if(void 0!==r)return wu(r.pageLeft,r.pageTop,r.width,r.height);var o=Ct.fromDom(t.document),i=t.document.documentElement,a=vu(o),u=i.clientWidth,c=i.clientHeight;return wu(a.left(),a.top(),u,c)},xu=Vr.each,Eu=Vr.grep,zu=pr.ie,ku=/^([a-z0-9],?)+$/i,Nu=/^[ \t\r\n]*$/,Su=function(e,t,n){var r=t.keep_values,o={set:function(e,r,o){t.url_converter&&(r=t.url_converter.call(t.url_converter_scope||n(),r,o,e[0])),e.attr("data-mce-"+o,r).attr(o,r)},get:function(e,t){return e.attr("data-mce-"+t)||e.attr(t)}},i={style:{set:function(e,t){null===t||"object"!==typeof t?(r&&e.attr("data-mce-style",t),e.attr("style",t)):e.css(t)},get:function(t){var n=t.attr("data-mce-style")||t.attr("style");return n=e.serialize(e.parse(n),t[0].nodeName),n}}};return r&&(i.href=i.src=o),i},Tu=function(e,t){var n=t.attr("style"),r=e.serialize(e.parse(n),t[0].nodeName);r||(r=null),t.attr("data-mce-style",r)},Au=function(e,t){var n,r,o=0;if(e)for(n=e.nodeType,e=e.previousSibling;e;e=e.previousSibling)r=e.nodeType,(!t||3!==r||r!==n&&e.nodeValue.length)&&(o++,n=r);return o};function Ru(e,t){var r,o=this;void 0===t&&(t={});var i={},a=n.window,u={},c=0,s=!0,l=!0,f=Fr(e,{contentCssCors:t.contentCssCors,referrerPolicy:t.referrerPolicy}),d=[],h=t.schema?t.schema:jo({}),m=li({url_converter:t.url_converter,url_converter_scope:t.url_converter_scope},t.schema),g=t.ownEvents?new xi:xi.Event,p=h.getBlockElements(),v=Ja.overrideDefaults((function(){return{context:e,element:Re.getRoot()}})),y=function(e){if("string"===typeof e)return!!p[e];if(e){var t=e.nodeType;if(t)return!(1!==t||!p[e.nodeName])}return!1},w=function(t){if(t&&e&&"string"===typeof t){var n=e.getElementById(t);return n&&n.id!==t?e.getElementsByName(t)[1]:n}return t},C=function(e){return"string"===typeof e&&(e=w(e)),v(e)},x=function(e,t,n){var o,i,a=C(e);return a.length&&(o=r[t],i=o&&o.get?o.get(a,t):a.attr(t)),"undefined"===typeof i&&(i=n||""),i},E=function(e){var t=w(e);return t?t.attributes:[]},z=function(e,n,o){var i,a;""===o&&(o=null);var u=C(e);i=u.attr(n),u.length&&(a=r[n],a&&a.set?a.set(u,o,n):u.attr(n,o),i!==o&&t.onSetAttrib&&t.onSetAttrib({attrElm:u,attrName:n,attrValue:o}))},k=function(t,n){if(!zu||1!==t.nodeType||n)return t.cloneNode(n);if(!n){var r=e.createElement(t.nodeName);return xu(E(t),(function(e){z(r,e.nodeName,x(t,e.nodeName))})),r}return null},N=function(){return t.root_element||e.body},S=function(e){var t=Cu(e);return{x:t.x(),y:t.y(),w:t.width(),h:t.height()}},T=function(t,n){return Pn.getPos(e.body,w(t),n)},A=function(e,n,r){var o=b(n)?C(e).css(n,r):C(e).css(n);t.update_styles&&Tu(m,o)},R=function(e,n){var r=C(e).css(n);t.update_styles&&Tu(m,r)},B=function(e,t,n){var r=C(e);return n?r.css(t):(t=t.replace(/-(\D)/g,(function(e,t){return t.toUpperCase()})),"float"===t&&(t=pr.browser.isIE()?"styleFloat":"cssFloat"),r[0]&&r[0].style?r[0].style[t]:void 0)},D=function(e){var t,n;return e=w(e),t=B(e,"width"),n=B(e,"height"),-1===t.indexOf("px")&&(t=0),-1===n.indexOf("px")&&(n=0),{w:parseInt(t,10)||e.offsetWidth||e.clientWidth,h:parseInt(n,10)||e.offsetHeight||e.clientHeight}},M=function(e){var t,n;return e=w(e),t=T(e),n=D(e),{x:t.x,y:t.y,w:n.w,h:n.h}},P=function(e,t){var n;if(!e)return!1;if(!Array.isArray(e)){if("*"===t)return 1===e.nodeType;if(ku.test(t)){var r=t.toLowerCase().split(/,/),o=e.nodeName.toLowerCase();for(n=r.length-1;n>=0;n--)if(r[n]===o)return!0;return!1}if(e.nodeType&&1!==e.nodeType)return!1}var i=Array.isArray(e)?e:[e];return aa(t,i[0].ownerDocument||i[0],null,i).length>0},_=function(e,t,n,r){var o,i=[],a=w(e);r=void 0===r,n=n||("BODY"!==N().nodeName?N().parentNode:null),Vr.is(t,"string")&&(o=t,t="*"===t?function(e){return 1===e.nodeType}:function(e){return P(e,o)});while(a){if(a===n||!a.nodeType||9===a.nodeType)break;if(!t||"function"===typeof t&&t(a)){if(!r)return[a];i.push(a)}a=a.parentNode}return r?i:null},O=function(e,t,n){var r=_(e,t,n,!1);return r&&r.length>0?r[0]:null},H=function(e,t,n){var r=t;if(e)for("string"===typeof t&&(r=function(e){return P(e,t)}),e=e[n];e;e=e[n])if("function"===typeof r&&r(e))return e;return null},L=function(e,t){return H(e,t,"nextSibling")},I=function(e,t){return H(e,t,"previousSibling")},V=function(n,r){return aa(n,w(r)||t.root_element||e,[])},F=function(e,t,n){var r,i="string"===typeof e?w(e):e;if(!i)return!1;if(Vr.isArray(i)&&(i.length||0===i.length))return r=[],xu(i,(function(e,o){e&&("string"===typeof e&&(e=w(e)),r.push(t.call(n,e,o)))})),r;var a=n||o;return t.call(a,i)},U=function(e,t){C(e).each((function(e,n){xu(t,(function(e,t){z(n,t,e)}))}))},j=function(e,t){var n=C(e);zu?n.each((function(e,n){if(!1!==n.canHaveHTML){while(n.firstChild)n.removeChild(n.firstChild);try{n.innerHTML="<br>"+t,n.removeChild(n.firstChild)}catch(r){Ja("<div></div>").html("<br>"+t).contents().slice(1).appendTo(n)}return t}})):n.html(t)},q=function(t,n,r,o,i){return F(t,(function(t){var a="string"===typeof n?e.createElement(n):n;return U(a,r),o&&("string"!==typeof o&&o.nodeType?a.appendChild(o):"string"===typeof o&&j(a,o)),i?a:t.appendChild(a)}))},W=function(t,n,r){return q(e.createElement(t),t,n,r,!0)},$=Do.decode,K=Do.encodeAllRaw,X=function(e,t,n){var r,o="";for(r in o+="<"+e,t)t.hasOwnProperty(r)&&null!==t[r]&&"undefined"!==typeof t[r]&&(o+=" "+r+'="'+K(t[r])+'"');return"undefined"!==typeof n?o+">"+n+"</"+e+">":o+" />"},Y=function(t){var n,r=e.createElement("div"),o=e.createDocumentFragment();t&&(r.innerHTML=t);while(n=r.firstChild)o.appendChild(n);return o},G=function(e,t){var n=C(e);return t?n.each((function(){var e;while(e=this.firstChild)3===e.nodeType&&0===e.data.length?this.removeChild(e):this.parentNode.insertBefore(e,this)})).remove():n.remove(),n.length>1?n.toArray():n[0]},Z=function(e){return F(e,(function(e){var t,n=e.attributes;for(t=n.length-1;t>=0;t--)e.removeAttributeNode(n.item(t))}))},Q=function(e){return m.parse(e)},ee=function(e,t){return m.serialize(e,t)},te=function(t){var r,o;if(Re!==Ru.DOM&&e===n.document){if(i[t])return;i[t]=!0}o=e.getElementById("mceDefaultStyles"),o||(o=e.createElement("style"),o.id="mceDefaultStyles",o.type="text/css",r=e.getElementsByTagName("head")[0],r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o)),o.styleSheet?o.styleSheet.cssText+=t:o.appendChild(e.createTextNode(t))},ne=function(r){var o;Re===Ru.DOM||e!==n.document?(r||(r=""),o=e.getElementsByTagName("head")[0],xu(r.split(","),(function(e){var n;e=Vr._addCacheSuffix(e),u[e]||(u[e]=!0,n=W("link",J(J({rel:"stylesheet",type:"text/css",href:e},t.contentCssCors?{crossOrigin:"anonymous"}:{}),t.referrerPolicy?{referrerPolicy:t.referrerPolicy}:{})),o.appendChild(n))}))):Ru.DOM.loadCSS(r)},re=function(e,t,n){C(e).toggleClass(t,n).each((function(){""===this.className&&Ja(this).attr("class",null)}))},oe=function(e,t){C(e).addClass(t)},ie=function(e,t){re(e,t,!1)},ae=function(e,t){return C(e).hasClass(t)},ue=function(e){C(e).show()},ce=function(e){C(e).hide()},se=function(e){return"none"===C(e).css("display")},le=function(e){return(e||"mce_")+c++},fe=function(e){var t="string"===typeof e?w(e):e;return we.isElement(t)?t.outerHTML:Ja("<div></div>").append(Ja(t).clone()).html()},de=function(e,t){C(e).each((function(){try{if("outerHTML"in this)return void(this.outerHTML=t)}catch(e){}G(Ja(this).html(t),!0)}))},he=function(e,t){var n=w(t);return F(e,(function(e){var t,r;return t=n.parentNode,r=n.nextSibling,r?t.insertBefore(e,r):t.appendChild(e),e}))},me=function(e,t,n){return F(t,(function(t){return Vr.is(t,"array")&&(e=e.cloneNode(!0)),n&&xu(Eu(t.childNodes),(function(t){e.appendChild(t)})),t.parentNode.replaceChild(e,t)}))},ge=function(e,t){var n;return e.nodeName!==t.toUpperCase()&&(n=W(t),xu(E(e),(function(t){z(n,t.nodeName,x(e,t.nodeName))})),me(n,e,!0)),n||e},pe=function(e,t){var n,r=e;while(r){n=t;while(n&&r!==n)n=n.parentNode;if(r===n)break;r=r.parentNode}return!r&&e.ownerDocument?e.ownerDocument.documentElement:r},ve=function(e){return m.toHex(Vr.trim(e))},ye=function(e,t){var n,r,o,i,a=0;if(e=e.firstChild,e){var u=new Qa(e,e.parentNode),c=h?h.getWhiteSpaceElements():{};t=t||(h?h.getNonEmptyElements():null);do{if(o=e.nodeType,we.isElement(e)){var s=e.getAttribute("data-mce-bogus");if(s){e=u.next("all"===s);continue}if(i=e.nodeName.toLowerCase(),t&&t[i]){if("br"===i){a++,e=u.next();continue}return!1}r=E(e),n=r.length;while(n--)if(i=r[n].nodeName,"name"===i||"data-mce-bookmark"===i)return!1}if(8===o)return!1;if(3===o&&!Nu.test(e.nodeValue))return!1;if(3===o&&e.parentNode&&c[e.parentNode.nodeName]&&Nu.test(e.nodeValue))return!1;e=u.next()}while(e)}return a<=1},be=function(){return e.createRange()},Ce=function(e,t,n){var r,o,i,a=be();if(e&&t)return a.setStart(e.parentNode,Au(e)),a.setEnd(t.parentNode,Au(t)),r=a.extractContents(),a=be(),a.setStart(t.parentNode,Au(t)+1),a.setEnd(e.parentNode,Au(e)+1),o=a.extractContents(),i=e.parentNode,i.insertBefore(vo.trimNode(Re,r),e),n?i.insertBefore(n,e):i.insertBefore(t,e),i.insertBefore(vo.trimNode(Re,o),e),G(e),n||t},xe=function(n,r,o,i){if(Vr.isArray(n)){var u=n.length,c=[];while(u--)c[u]=xe(n[u],r,o,i);return c}return!t.collect||n!==e&&n!==a||d.push([n,r,o,i]),g.bind(n,r,o,i||Re)},Ee=function(t,n,r){var o;if(Vr.isArray(t)){o=t.length;var i=[];while(o--)i[o]=Ee(t[o],n,r);return i}if(d&&(t===e||t===a)){o=d.length;while(o--){var u=d[o];t!==u[0]||n&&n!==u[1]||r&&r!==u[2]||g.unbind(u[0],u[1],u[2])}}return g.unbind(t,n,r)},ze=function(e,t,n){return g.fire(e,t,n)},ke=function(e){if(e&&we.isElement(e)){var t=e.getAttribute("data-mce-contenteditable");return t&&"inherit"!==t?t:"inherit"!==e.contentEditable?e.contentEditable:null}return null},Ne=function(e){for(var t=N(),n=null;e&&e!==t;e=e.parentNode)if(n=ke(e),null!==n)break;return n},Se=function(){if(d){var e=d.length;while(e--){var t=d[e];g.unbind(t[0],t[1],t[2])}}aa.setDocument&&aa.setDocument()},Te=function(e,t){while(e){if(t===e)return!0;e=e.parentNode}return!1},Ae=function(e){return"startContainer: "+e.startContainer.nodeName+", startOffset: "+e.startOffset+", endContainer: "+e.endContainer.nodeName+", endOffset: "+e.endOffset},Re={doc:e,settings:t,win:a,files:u,stdMode:s,boxModel:l,styleSheetLoader:f,boundEvents:d,styles:m,schema:h,events:g,isBlock:y,$:v,$$:C,root:null,clone:k,getRoot:N,getViewPort:S,getRect:M,getSize:D,getParent:O,getParents:_,get:w,getNext:L,getPrev:I,select:V,is:P,add:q,create:W,createHTML:X,createFragment:Y,remove:G,setStyle:A,getStyle:B,setStyles:R,removeAllAttribs:Z,setAttrib:z,setAttribs:U,getAttrib:x,getPos:T,parseStyle:Q,serializeStyle:ee,addStyle:te,loadCSS:ne,addClass:oe,removeClass:ie,hasClass:ae,toggleClass:re,show:ue,hide:ce,isHidden:se,uniqueId:le,setHTML:j,getOuterHTML:fe,setOuterHTML:de,decode:$,encode:K,insertAfter:he,replace:me,rename:ge,findCommonAncestor:pe,toHex:ve,run:F,getAttribs:E,isEmpty:ye,createRng:be,nodeIndex:Au,split:Ce,bind:xe,unbind:Ee,fire:ze,getContentEditable:ke,getContentEditableParent:Ne,destroy:Se,isChildOf:Te,dumpRng:Ae};return r=Su(m,t,(function(){return Re})),Re}(function(e){e.DOM=e(n.document),e.nodeIndex=Au})(Ru||(Ru={}));var Bu=Ru,Du=Bu.DOM,Mu=Vr.each,Pu=Vr.grep,_u=0,Ou=1,Hu=2,Lu=3,Iu=function(){function e(e){void 0===e&&(e={}),this.states={},this.queue=[],this.scriptLoadedCallbacks={},this.queueLoadedCallbacks=[],this.loading=0,this.settings=e}return e.prototype._setReferrerPolicy=function(e){this.settings.referrerPolicy=e},e.prototype.loadScript=function(e,t,r){var o,i,a=Du,u=function(){a.remove(i),o&&(o.onreadystatechange=o.onload=o=null),t()},c=function(){z(r)?r():"undefined"!==typeof n.console&&n.console.log&&n.console.log("Failed to load script: "+e)};i=a.uniqueId(),o=n.document.createElement("script"),o.id=i,o.type="text/javascript",o.src=Vr._addCacheSuffix(e),this.settings.referrerPolicy&&a.setAttrib(o,"referrerpolicy",this.settings.referrerPolicy),o.onload=u,o.onerror=c,(n.document.getElementsByTagName("head")[0]||n.document.body).appendChild(o)},e.prototype.isDone=function(e){return this.states[e]===Hu},e.prototype.markDone=function(e){this.states[e]=Hu},e.prototype.add=function(e,t,n,r){var o=this.states[e];void 0===o&&(this.queue.push(e),this.states[e]=_u),t&&(this.scriptLoadedCallbacks[e]||(this.scriptLoadedCallbacks[e]=[]),this.scriptLoadedCallbacks[e].push({success:t,failure:r,scope:n||this}))},e.prototype.load=function(e,t,n,r){return this.add(e,t,n,r)},e.prototype.remove=function(e){delete this.states[e],delete this.scriptLoadedCallbacks[e]},e.prototype.loadQueue=function(e,t,n){this.loadScripts(this.queue,e,t,n)},e.prototype.loadScripts=function(e,t,n,r){var o,i=this,a=[],u=function(e,t){Mu(i.scriptLoadedCallbacks[t],(function(t){z(t[e])&&t[e].call(t.scope)})),i.scriptLoadedCallbacks[t]=void 0};i.queueLoadedCallbacks.push({success:t,failure:r,scope:n||this}),o=function(){var t=Pu(e);if(e.length=0,Mu(t,(function(e){i.states[e]!==Hu?i.states[e]!==Lu?i.states[e]!==Ou&&(i.states[e]=Ou,i.loading++,i.loadScript(e,(function(){i.states[e]=Hu,i.loading--,u("success",e),o()}),(function(){i.states[e]=Lu,i.loading--,a.push(e),u("failure",e),o()}))):u("failure",e):u("success",e)})),!i.loading){var n=i.queueLoadedCallbacks.slice(0);i.queueLoadedCallbacks.length=0,Mu(n,(function(e){0===a.length?z(e.success)&&e.success.call(e.scope):z(e.failure)&&e.failure.call(e.scope,a)}))}},o()},e.ScriptLoader=new e,e}(),Vu=function(e){return w(e)&&Ht(e,"raw")},Fu=function(e){return C(e)&&e.length>1},Uu={},ju=Ce("en"),qu=function(){return Mt(Uu,(function(e){return J({},e)}))},Wu=function(e){e&&ju.set(e)},$u=function(){return ju.get()},Ku=function(e,t){var n=Uu[e];for(var r in n||(Uu[e]=n={}),t)n[r.toLowerCase()]=t[r]},Xu=function(e){var t=Uu[ju.get()]||{},n=function(e){return z(e)?Object.prototype.toString.call(e):r(e)?"":""+e},r=function(e){return""===e||null===e||void 0===e},o=function(e){var r=n(e),o=r.toLowerCase();return Ht(t,o)?n(t[o]):r},i=function(e){return e.replace(/{context:\w+}$/,"")},a=function(e){return e};if(r(e))return a("");if(Vu(e))return a(n(e.raw));if(Fu(e)){var u=e.slice(1),c=o(e[0]).replace(/\{([0-9]+)\}/g,(function(e,t){return Ht(u,t)?n(u[t]):e}));return a(i(c))}return a(i(o(e)))},Yu=function(){return Ot(Uu,ju.get()).bind((function(e){return Ot(e,"_dir")})).exists((function(e){return"rtl"===e}))},Gu=function(e){return Ht(Uu,e)},Zu={getData:qu,setCode:Wu,getCode:$u,add:Ku,translate:Xu,isRtl:Yu,hasCode:Gu},Ju=Vr.each;function Qu(){var e=this,t=[],n={},r={},o=[],i=function(e){if(r[e])return r[e].instance},a=function(e){var t;return r[e]&&(t=r[e].dependencies),t||[]},u=function(e,t){var r=Zu.getCode();if(r&&!1!==Qu.languageLoad){if(t)if(t=","+t+",",-1!==t.indexOf(","+r.substr(0,2)+","))r=r.substr(0,2);else if(-1===t.indexOf(","+r+","))return;Iu.ScriptLoader.add(n[e]+"/langs/"+r+".js")}},c=function(e,n,i){t.push(n),r[e]={instance:n,dependencies:i};var a=O(o,(function(t){return t.name===e}));return o=a.fail,Ju(a.pass,(function(e){e.callback()})),n},s=function(e){delete n[e],delete r[e]},l=function(e,t){return"object"===typeof t?t:"string"===typeof e?{prefix:"",resource:t,suffix:""}:{prefix:e.prefix,resource:t,suffix:e.suffix}},f=function(t,n){var r=e.urls[t];Ju(n,(function(e){Iu.ScriptLoader.add(r+"/"+e)}))},d=function(e,t,n,r){var o=a(e);Ju(o,(function(e){var n=l(t,e);h(n.resource,n,void 0,void 0)})),n&&(r?n.call(r):n.call(Iu))},h=function(e,t,o,i,a){if(!n[e]){var u="string"===typeof t?t:t.prefix+t.resource+t.suffix;0!==u.indexOf("/")&&-1===u.indexOf("://")&&(u=Qu.baseURL+"/"+u),n[e]=u.substring(0,u.lastIndexOf("/")),r[e]?d(e,t,o,i):Iu.ScriptLoader.add(u,(function(){return d(e,t,o,i)}),i,a)}},m=function(e,t){r.hasOwnProperty(e)?t():o.push({name:e,callback:t})};return{items:t,urls:n,lookup:r,_listeners:o,get:i,dependencies:a,requireLangPack:u,add:c,remove:s,createUrl:l,addComponents:f,load:h,waitFor:m}}(function(e){e.PluginManager=e(),e.ThemeManager=e()})(Qu||(Qu={}));var ec=Qu,tc=function(e,t){var r=null,o=function(){null!==r&&(n.clearTimeout(r),r=null)},i=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];null===r&&(r=n.setTimeout((function(){e.apply(null,o),r=null}),t))};return{cancel:o,throttle:i}},nc=function(e,t){var r=null,o=function(){null!==r&&(n.clearTimeout(r),r=null)},i=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];null!==r&&n.clearTimeout(r),r=n.setTimeout((function(){e.apply(null,o),r=null}),t)};return{cancel:o,throttle:i}},rc=function(e,t){var n=jt(e,t);return void 0===n||""===n?[]:n.split(" ")},oc=function(e,t,n){var r=rc(e,t),o=r.concat([n]);return Ft(e,t,o.join(" ")),!0},ic=function(e,t,n){var r=H(rc(e,t),(function(e){return e!==n}));return r.length>0?Ft(e,t,r.join(" ")):Wt(e,t),!1},ac=function(e){return void 0!==e.dom().classList},uc=function(e){return rc(e,"class")},cc=function(e,t){return oc(e,"class",t)},sc=function(e,t){return ic(e,"class",t)},lc=function(e,t){ac(e)?e.dom().classList.add(t):cc(e,t)},fc=function(e){var t=ac(e)?e.dom().classList:uc(e);0===t.length&&Wt(e,"class")},dc=function(e,t){if(ac(e)){var n=e.dom().classList;n.remove(t)}else sc(e,t);fc(e)},hc=function(e,t){return ac(e)&&e.dom().classList.contains(t)},mc=function(e,t){var n=[];return P(zn(e),(function(e){t(e)&&(n=n.concat([e])),n=n.concat(mc(e,t))})),n},gc=function(e,t){return cn(t,e)};function pc(e,t,n,r,o){return e(n,r)?p.some(n):z(o)&&o(n)?p.none():t(n,r,o)}var vc=function(e,t,n){var r=e.dom(),o=z(n)?n:i(!1);while(r.parentNode){r=r.parentNode;var a=Ct.fromDom(r);if(t(a))return p.some(a);if(o(a))break}return p.none()},yc=function(e,t,n){var r=function(e,t){return t(e)};return pc(r,vc,e,t,n)},bc=function(e,t,n){return vc(e,(function(e){return an(e,t)}),n)},wc=function(e,t){return sn(t,e)},Cc=function(e,t,n){return pc(an,bc,e,t,n)},xc=i("mce-annotation"),Ec=i("data-mce-annotation"),zc=i("data-mce-annotation-uid"),kc=function(e,t){var n=e.selection.getRng(),r=Ct.fromDom(n.startContainer),o=Ct.fromDom(e.getBody()),i=t.fold((function(){return"."+xc()}),(function(e){return"["+Ec()+'="'+e+'"]'})),a=kn(r,n.startOffset).getOr(r),u=Cc(a,i,(function(e){return ln(e,o)})),c=function(e,t){return qt(e,t)?p.some(jt(e,t)):p.none()};return u.bind((function(t){return c(t,""+zc()).bind((function(n){return c(t,""+Ec()).map((function(t){var r=Sc(e,n);return{uid:n,name:t,elements:r}}))}))}))},Nc=function(e){return Tt(e)&&hc(e,xc())},Sc=function(e,t){var n=Ct.fromDom(e.getBody());return gc(n,"["+zc()+'="'+t+'"]')},Tc=function(e,t){var n=Ct.fromDom(e.getBody()),r=gc(n,"["+Ec()+'="'+t+'"]'),o={};return P(r,(function(e){var t=jt(e,zc()),n=o.hasOwnProperty(t)?o[t]:[];o[t]=n.concat([e])})),o},Ac=function(e,t){var n=Ce({}),r=function(){return{listeners:[],previous:Ce(p.none())}},o=function(e,t){i(e,(function(e){return t(e),e}))},i=function(e,t){var o=n.get(),i=o.hasOwnProperty(e)?o[e]:r(),a=t(i);o[e]=a,n.set(o)},a=function(e,t,n){o(e,(function(r){P(r.listeners,(function(r){return r(!0,e,{uid:t,nodes:M(n,(function(e){return e.dom()}))})}))}))},u=function(e){o(e,(function(t){P(t.listeners,(function(t){return t(!1,e)}))}))},c=nc((function(){var t=n.get(),r=X(Rt(t));P(r,(function(t){i(t,(function(n){var r=n.previous.get();return kc(e,p.some(t)).fold((function(){r.isSome()&&(u(t),n.previous.set(p.none()))}),(function(e){var t=e.uid,o=e.name,i=e.elements;r.is(t)||(a(o,t,i),n.previous.set(p.some(t)))})),{previous:n.previous,listeners:n.listeners}}))}))}),30);e.on("remove",(function(){c.cancel()})),e.on("NodeChange",(function(){c.throttle()}));var s=function(e,t){i(e,(function(e){return{previous:e.previous,listeners:e.listeners.concat([t])}}))};return{addListener:s}},Rc=function(e,t){var n=function(e){return p.from(e.attr(Ec())).bind(t.lookup)};e.on("init",(function(){e.serializer.addNodeFilter("span",(function(e){P(e,(function(e){n(e).each((function(t){!1===t.persistent&&e.unwrap()}))}))}))}))},Bc=function(){var e={},t=function(t,n){e[t]={name:t,settings:n}},n=function(t){return e.hasOwnProperty(t)?p.from(e[t]).map((function(e){return e.settings})):p.none()};return{register:t,lookup:n}},Dc=0,Mc=function(e){var t=new Date,n=t.getTime(),r=Math.floor(1e9*Math.random());return Dc++,e+"_"+r+Dc+String(n)},Pc=function(e,t){P(t,(function(t){lc(e,t)}))},_c=function(e,t){return Ct.fromDom(e.dom().cloneNode(t))},Oc=function(e){return _c(e,!1)},Hc=function(e){return _c(e,!0)},Lc=function(e,t){var r=t||n.document,o=r.createElement("div");return o.innerHTML=e,zn(Ct.fromDom(o))},Ic=function(e){return e.dom().innerHTML},Vc=function(e,t){var n=gn(e),r=n.dom(),o=Ct.fromDom(r.createDocumentFragment()),i=Lc(t,r);au(o,i),uu(e),ru(e,o)},Fc="\ufeff",Uc=function(e){return e===Fc},jc=function(e){return e.replace(new RegExp(Fc,"g"),"")},qc={isZwsp:Uc,ZWSP:Fc,trim:jc},Wc=we.isElement,$c=we.isText,Kc=function(e){return $c(e)&&(e=e.parentNode),Wc(e)&&e.hasAttribute("data-mce-caret")},Xc=function(e){return $c(e)&&qc.isZwsp(e.data)},Yc=function(e){return Kc(e)||Xc(e)},Gc=function(e){return e.firstChild!==e.lastChild||!we.isBr(e.firstChild)},Zc=function(e,t){var n,r,o,i;if(n=e.ownerDocument,o=n.createTextNode(qc.ZWSP),i=e.parentNode,t){if(r=e.previousSibling,$c(r)){if(Yc(r))return r;if(rs(r))return r.splitText(r.data.length-1)}i.insertBefore(o,e)}else{if(r=e.nextSibling,$c(r)){if(Yc(r))return r;if(ns(r))return r.splitText(1),r}e.nextSibling?i.insertBefore(o,e.nextSibling):i.appendChild(o)}return o},Jc=function(e){var t=e.container();return!(!e||!we.isText(t))&&(t.data.charAt(e.offset())===qc.ZWSP||e.isAtStart()&&Xc(t.previousSibling))},Qc=function(e){var t=e.container();return!(!e||!we.isText(t))&&(t.data.charAt(e.offset()-1)===qc.ZWSP||e.isAtEnd()&&Xc(t.nextSibling))},es=function(){var e=n.document.createElement("br");return e.setAttribute("data-mce-bogus","1"),e},ts=function(e,t,n){var r,o,i;return r=t.ownerDocument,o=r.createElement(e),o.setAttribute("data-mce-caret",n?"before":"after"),o.setAttribute("data-mce-bogus","all"),o.appendChild(es()),i=t.parentNode,n?i.insertBefore(o,t):t.nextSibling?i.insertBefore(o,t.nextSibling):i.appendChild(o),o},ns=function(e){return $c(e)&&e.data[0]===qc.ZWSP},rs=function(e){return $c(e)&&e.data[e.data.length-1]===qc.ZWSP},os=function(e){var t=e.getElementsByTagName("br"),n=t[t.length-1];we.isBogus(n)&&n.parentNode.removeChild(n)},is=function(e){return e&&e.hasAttribute("data-mce-caret")?(os(e),e.removeAttribute("data-mce-caret"),e.removeAttribute("data-mce-bogus"),e.removeAttribute("style"),e.removeAttribute("_moz_abspos"),e):null},as=function(e){return Kc(e.startContainer)},us=we.isContentEditableTrue,cs=we.isContentEditableFalse,ss=we.isBr,ls=we.isText,fs=we.matchNodeNames(["script","style","textarea"]),ds=we.matchNodeNames(["img","input","textarea","hr","iframe","video","audio","object"]),hs=we.matchNodeNames(["table"]),ms=Yc,gs=function(e){return!ms(e)&&(ls(e)?!fs(e.parentNode):ds(e)||ss(e)||hs(e)||vs(e))},ps=function(e){return we.isElement(e)&&"true"===e.getAttribute("unselectable")},vs=function(e){return!1===ps(e)&&cs(e)},ys=function(e,t){for(e=e.parentNode;e&&e!==t;e=e.parentNode){if(vs(e))return!1;if(us(e))return!0}return!0},bs=function(e){return!!vs(e)&&!0!==I(Z(e.getElementsByTagName("*")),(function(e,t){return e||us(t)}),!1)},ws=function(e){return ds(e)||bs(e)},Cs=function(e,t){return gs(e)&&ys(e,t)},xs=Math.round,Es=function(e){return e?{left:xs(e.left),top:xs(e.top),bottom:xs(e.bottom),right:xs(e.right),width:xs(e.width),height:xs(e.height)}:{left:0,top:0,bottom:0,right:0,width:0,height:0}},zs=function(e,t){return e=Es(e),t||(e.left=e.left+e.width),e.right=e.left,e.width=0,e},ks=function(e,t){return e.left===t.left&&e.top===t.top&&e.bottom===t.bottom&&e.right===t.right},Ns=function(e,t,n){return e>=0&&e<=Math.min(t.height,n.height)/2},Ss=function(e,t){return e.bottom-e.height/2<t.top||!(e.top>t.bottom)&&Ns(t.top-e.bottom,e,t)},Ts=function(e,t){return e.top>t.bottom||!(e.bottom<t.top)&&Ns(t.bottom-e.top,e,t)},As=function(e,t,n){return t>=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom},Rs=function(e){var t=e.startContainer,n=e.startOffset;return t.hasChildNodes()&&e.endOffset===n+1?t.childNodes[n]:null},Bs=function(e,t){return 1===e.nodeType&&e.hasChildNodes()&&(t>=e.childNodes.length&&(t=e.childNodes.length-1),e=e.childNodes[t]),e},Ds=new RegExp("[̀-ͯ҃-҇҈-҉֑-ֽֿׁ-ׂׄ-ׇׅؐ-ًؚ-ٰٟۖ-ۜ۟-ۤۧ-۪ۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣣ-ंऺ़ु-ै्॑-ॗॢ-ॣঁ়াু-ৄ্ৗৢ-ৣਁ-ਂ਼ੁ-ੂੇ-ੈੋ-੍ੑੰ-ੱੵઁ-ં઼ુ-ૅે-ૈ્ૢ-ૣଁ଼ାିୁ-ୄ୍ୖୗୢ-ୣஂாீ்ௗఀా-ీె-ైొ-్ౕ-ౖౢ-ౣಁ಼ಿೂೆೌ-್ೕ-ೖೢ-ೣഁാു-ൄ്ൗൢ-ൣ්ාි-ුූෟัิ-ฺ็-๎ັິ-ູົ-ຼ່-ໍ༘-ཱ༹༙༵༷-ཾྀ-྄྆-྇ྍ-ྗྙ-ྼ࿆ိ-ူဲ-့္-်ွ-ှၘ-ၙၞ-ၠၱ-ၴႂႅ-ႆႍႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒ-ᝓᝲ-ᝳ឴-឵ិ-ួំ៉-៓៝᠋-᠍ᢩᤠ-ᤢᤧ-ᤨᤲ᤹-᤻ᨗ-ᨘᨛᩖᩘ-ᩞ᩠ᩢᩥ-ᩬᩳ-᩿᩼᪰-᪽᪾ᬀ-ᬃ᬴ᬶ-ᬺᬼᭂ᭫-᭳ᮀ-ᮁᮢ-ᮥᮨ-ᮩ᮫-ᮭ᯦ᯨ-ᯩᯭᯯ-ᯱᰬ-ᰳᰶ-᰷᳐-᳔᳒-᳢᳠-᳨᳭᳴᳸-᳹᷀-᷵᷼-᷿-⃐-⃜⃝-⃠⃡⃢-⃤⃥-⃰⳯-⵿⳱ⷠ-〪ⷿ-〭〮-゙〯-゚꙯꙰-꙲ꙴ-꙽ꚞ-ꚟ꛰-꛱ꠂ꠆ꠋꠥ-ꠦ꣄꣠-꣱ꤦ-꤭ꥇ-ꥑꦀ-ꦂ꦳ꦶ-ꦹꦼꧥꨩ-ꨮꨱ-ꨲꨵ-ꨶꩃꩌꩼꪰꪲ-ꪴꪷ-ꪸꪾ-꪿꫁ꫬ-ꫭ꫶ꯥꯨ꯭ﬞ︀-️︠-゙︯-゚]"),Ms=function(e){return"string"===typeof e&&e.charCodeAt(0)>=768&&Ds.test(e)},Ps=function(e,t,n){return e.isSome()&&t.isSome()?p.some(n(e.getOrDie(),t.getOrDie())):p.none()},_s=function(e,t,n,r){return e.isSome()&&t.isSome()&&n.isSome()?p.some(r(e.getOrDie(),t.getOrDie(),n.getOrDie())):p.none()},Os=function(e,t){return e?p.some(t):p.none()},Hs=[].slice,Ls=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Hs.call(arguments);return function(e){for(var t=0;t<n.length;t++)if(n[t](e))return!0;return!1}},Is=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Hs.call(arguments);return function(e){for(var t=0;t<n.length;t++)if(!n[t](e))return!1;return!0}},Vs={and:Is,or:Ls},Fs=we.isElement,Us=gs,js=we.matchStyleValues("display","block table"),qs=we.matchStyleValues("float","left right"),Ws=Vs.and(Fs,Us,c(qs)),$s=c(we.matchStyleValues("white-space","pre pre-line pre-wrap")),Ks=we.isText,Xs=we.isBr,Ys=Bu.nodeIndex,Gs=Bs,Zs=function(e){return"createRange"in e?e.createRange():Bu.DOM.createRng()},Js=function(e){return e&&/[\r\n\t ]/.test(e)},Qs=function(e){return!!e.setStart&&!!e.setEnd},el=function(e){var t,n=e.startContainer,r=e.startOffset;return!!(Js(e.toString())&&$s(n.parentNode)&&we.isText(n)&&(t=n.data,Js(t[r-1])||Js(t[r+1])))},tl=function(e){var t,n=e.ownerDocument,r=Zs(n),o=n.createTextNode(" "),i=e.parentNode;return i.insertBefore(o,e),r.setStart(o,0),r.setEnd(o,1),t=Es(r.getBoundingClientRect()),i.removeChild(o),t},nl=function(e){var t=e.startContainer,n=e.endContainer,r=e.startOffset,o=e.endOffset;if(t===n&&we.isText(n)&&0===r&&1===o){var i=e.cloneRange();return i.setEndAfter(n),ol(i)}return null},rl=function(e){return 0===e.left&&0===e.right&&0===e.top&&0===e.bottom},ol=function(e){var t,n;return n=e.getClientRects(),t=n.length>0?Es(n[0]):Es(e.getBoundingClientRect()),!Qs(e)&&Xs(e)&&rl(t)?tl(e):rl(t)&&Qs(e)?nl(e):t},il=function(e,t){var n=zs(e,t);return n.width=1,n.right=n.left+1,n},al=function(e){var t,n,r=[],o=function(e){0!==e.height&&(r.length>0&&ks(e,r[r.length-1])||r.push(e))},i=function(e,t){var n=Zs(e.ownerDocument);if(t<e.data.length){if(Ms(e.data[t]))return r;if(Ms(e.data[t-1])&&(n.setStart(e,t),n.setEnd(e,t+1),!el(n)))return o(il(ol(n),!1)),r}t>0&&(n.setStart(e,t-1),n.setEnd(e,t),el(n)||o(il(ol(n),!1))),t<e.data.length&&(n.setStart(e,t),n.setEnd(e,t+1),el(n)||o(il(ol(n),!0)))};if(Ks(e.container()))return i(e.container(),e.offset()),r;if(Fs(e.container()))if(e.isAtEnd())n=Gs(e.container(),e.offset()),Ks(n)&&i(n,n.data.length),Ws(n)&&!Xs(n)&&o(il(ol(n),!1));else{if(n=Gs(e.container(),e.offset()),Ks(n)&&i(n,0),Ws(n)&&e.isAtEnd())return o(il(ol(n),!1)),r;t=Gs(e.container(),e.offset()-1),Ws(t)&&!Xs(t)&&(js(t)||js(n)||!Ws(n))&&o(il(ol(t),!1)),Ws(n)&&o(il(ol(n),!0))}return r};function ul(e,t,n){var r=function(){return Ks(e),0===t},o=function(){return Ks(e)?t>=e.data.length:t>=e.childNodes.length},a=function(){var n;return n=Zs(e.ownerDocument),n.setStart(e,t),n.setEnd(e,t),n},u=function(){return n||(n=al(ul(e,t))),n},c=function(){return u().length>0},s=function(n){return n&&e===n.container()&&t===n.offset()},l=function(n){return Gs(e,n?t-1:t)};return{container:i(e),offset:i(t),toRange:a,getClientRects:u,isVisible:c,isAtStart:r,isAtEnd:o,isEqual:s,getNode:l}}(function(e){e.fromRangeStart=function(t){return e(t.startContainer,t.startOffset)},e.fromRangeEnd=function(t){return e(t.endContainer,t.endOffset)},e.after=function(t){return e(t.parentNode,Ys(t)+1)},e.before=function(t){return e(t.parentNode,Ys(t))},e.isAbove=function(e,t){return Ps(Y(t.getClientRects()),G(e.getClientRects()),Ss).getOr(!1)},e.isBelow=function(e,t){return Ps(G(t.getClientRects()),Y(e.getClientRects()),Ts).getOr(!1)},e.isAtStart=function(e){return!!e&&e.isAtStart()},e.isAtEnd=function(e){return!!e&&e.isAtEnd()},e.isTextPosition=function(e){return!!e&&we.isText(e.container())},e.isElementPosition=function(t){return!1===e.isTextPosition(t)}})(ul||(ul={}));var cl,sl=ul,ll=we.isText,fl=we.isBogus,dl=Bu.nodeIndex,hl=function(e){var t=e.parentNode;return fl(t)?hl(t):t},ml=function(e){return e?Sr.reduce(e.childNodes,(function(e,t){return fl(t)&&"BR"!==t.nodeName?e=e.concat(ml(t)):e.push(t),e}),[]):[]},gl=function(e,t){while(e=e.previousSibling){if(!ll(e))break;t+=e.data.length}return t},pl=function(e){return function(t){return e===t}},vl=function(e){var t,n,r;return t=ml(hl(e)),n=Sr.findIndex(t,pl(e),e),t=t.slice(0,n+1),r=Sr.reduce(t,(function(e,n,r){return ll(n)&&ll(t[r-1])&&e++,e}),0),t=Sr.filter(t,we.matchNodeNames([e.nodeName])),n=Sr.findIndex(t,pl(e),e),n-r},yl=function(e){var t;return t=ll(e)?"text()":e.nodeName.toLowerCase(),t+"["+vl(e)+"]"},bl=function(e,t,n){var r=[];for(t=t.parentNode;t!==e;t=t.parentNode){if(n&&n(t))break;r.push(t)}return r},wl=function(e,t){var n,r,o,i,a,u=[];return n=t.container(),r=t.offset(),ll(n)?o=gl(n,r):(i=n.childNodes,r>=i.length?(o="after",r=i.length-1):o="before",n=i[r]),u.push(yl(n)),a=bl(e,n),a=Sr.filter(a,c(we.isBogus)),u=u.concat(Sr.map(a,(function(e){return yl(e)}))),u.reverse().join("/")+","+o},Cl=function(e,t,n){var r=ml(e);return r=Sr.filter(r,(function(e,t){return!ll(e)||!ll(r[t-1])})),r=Sr.filter(r,we.matchNodeNames([t])),r[n]},xl=function(e,t){var n,r=e,o=0;while(ll(r)){if(n=r.data.length,t>=o&&t<=o+n){e=r,t-=o;break}if(!ll(r.nextSibling)){e=r,t=n;break}o+=n,r=r.nextSibling}return ll(e)&&t>e.data.length&&(t=e.data.length),sl(e,t)},El=function(e,t){var n,r,o;return t?(n=t.split(","),t=n[0].split("/"),o=n.length>1?n[1]:"before",r=Sr.reduce(t,(function(e,t){return t=/([\w\-\(\)]+)\[([0-9]+)\]/.exec(t),t?("text()"===t[1]&&(t[1]="#text"),Cl(e,t[1],parseInt(t[2],10))):null}),e),r?ll(r)?xl(r,parseInt(o,10)):(o="after"===o?dl(r)+1:dl(r),sl(r.parentNode,o)):null):null},zl=function(e,t){we.isText(t)&&0===t.data.length&&e.remove(t)},kl=function(e,t,n){t.insertNode(n),zl(e,n.previousSibling),zl(e,n.nextSibling)},Nl=function(e,t,n){var r=p.from(n.firstChild),o=p.from(n.lastChild);t.insertNode(n),r.each((function(t){return zl(e,t.previousSibling)})),o.each((function(t){return zl(e,t.nextSibling)}))},Sl=function(e,t,n){we.isDocumentFragment(n)?Nl(e,t,n):kl(e,t,n)},Tl=we.isContentEditableFalse,Al=function(e,t,n){var r,o;for(o=e(t.data.slice(0,n)).length,r=t.previousSibling;r&&we.isText(r);r=r.previousSibling)o+=e(r.data).length;return o},Rl=function(e,t,n,r,o){var i,a=r[o?"startContainer":"endContainer"],u=r[o?"startOffset":"endOffset"],c=[],s=0,l=e.getRoot();for(we.isText(a)?c.push(n?Al(t,a,u):u):(i=a.childNodes,u>=i.length&&i.length&&(s=1,u=Math.max(0,i.length-1)),c.push(e.nodeIndex(i[u],n)+s));a&&a!==l;a=a.parentNode)c.push(e.nodeIndex(a,n));return c},Bl=function(e,t,n,r){var o=t.dom,i={};return i.start=Rl(o,e,n,r,!0),t.isCollapsed()||(i.end=Rl(o,e,n,r,!1)),i},Dl=function(e,t,n){var r=0;return Vr.each(e.select(t),(function(e){if("all"!==e.getAttribute("data-mce-bogus"))return e!==n&&void r++})),r},Ml=function(e,t){var n,r,o,i=t?"start":"end";n=e[i+"Container"],r=e[i+"Offset"],we.isElement(n)&&"TR"===n.nodeName&&(o=n.childNodes,n=o[Math.min(t?r:r-1,o.length-1)],n&&(r=t?0:n.childNodes.length,e["set"+(t?"Start":"End")](n,r)))},Pl=function(e){return Ml(e,!0),Ml(e,!1),e},_l=function(e,t){var n;if(we.isElement(e)&&(e=Bs(e,t),Tl(e)))return e;if(Yc(e)){if(we.isText(e)&&Kc(e)&&(e=e.parentNode),n=e.previousSibling,Tl(n))return n;if(n=e.nextSibling,Tl(n))return n}},Ol=function(e){return _l(e.startContainer,e.startOffset)||_l(e.endContainer,e.endOffset)},Hl=function(e,t,n){var r=n.getNode(),o=r?r.nodeName:null,i=n.getRng();if(Tl(r)||"IMG"===o)return{name:o,index:Dl(n.dom,o,r)};var a=Ol(i);return a?(o=a.tagName,{name:o,index:Dl(n.dom,o,a)}):Bl(e,n,t,i)},Ll=function(e){var t=e.getRng();return{start:wl(e.dom.getRoot(),sl.fromRangeStart(t)),end:wl(e.dom.getRoot(),sl.fromRangeEnd(t))}},Il=function(e){return{rng:e.getRng()}},Vl=function(e,t,n){var r={"data-mce-type":"bookmark",id:t,style:"overflow:hidden;line-height:0px"};return n?e.create("span",r,""):e.create("span",r)},Fl=function(e,t){var n=e.dom,r=e.getRng(),o=n.uniqueId(),i=e.isCollapsed(),a=e.getNode(),u=a.nodeName;if("IMG"===u)return{name:u,index:Dl(n,u,a)};var c=Pl(r.cloneRange());if(!i){c.collapse(!1);var s=Vl(n,o+"_end",t);Sl(n,c,s)}r=Pl(r),r.collapse(!0);var l=Vl(n,o+"_start",t);return Sl(n,r,l),e.moveToBookmark({id:o,keep:1}),{id:o}},Ul=function(e,t,n){return 2===t?Hl(qc.trim,n,e):3===t?Ll(e):t?Il(e):Fl(e,!1)},jl={getBookmark:Ul,getUndoBookmark:u(Hl,a,!0),getPersistentBookmark:Fl},ql="_mce_caret",Wl=function(e){return we.isElement(e)&&e.id===ql},$l=function(e,t){while(t&&t!==e){if(t.id===ql)return t;t=t.parentNode}return null},Kl=we.isElement,Xl=we.isText,Yl=function(e){var t=e.parentNode;t&&t.removeChild(e)},Gl=function(e){try{return e.nodeValue}catch(t){return""}},Zl=function(e,t){0===t.length?Yl(e):e.nodeValue=t},Jl=function(e){var t=qc.trim(e);return{count:e.length-t.length,text:t}},Ql=function(e,t){return af(e),t},ef=function(e,t){var n=Jl(e.data.substr(0,t.offset())),r=Jl(e.data.substr(t.offset())),o=n.text+r.text;return o.length>0?(Zl(e,o),sl(e,t.offset()-n.count)):t},tf=function(e,t){var n=t.container(),r=R(Z(n.childNodes),e).map((function(e){return e<t.offset()?sl(n,t.offset()-1):t})).getOr(t);return af(e),r},nf=function(e,t){return Xl(e)&&t.container()===e?ef(e,t):Ql(e,t)},rf=function(e,t){return t.container()===e.parentNode?tf(e,t):Ql(e,t)},of=function(e,t){return sl.isTextPosition(t)?nf(e,t):rf(e,t)},af=function(e){if(Kl(e)&&Yc(e)&&(Gc(e)?e.removeAttribute("data-mce-caret"):Yl(e)),Xl(e)){var t=qc.trim(Gl(e));Zl(e,t)}},uf={removeAndReposition:of,remove:af},cf=gt().browser,sf=we.isContentEditableFalse,lf=function(e){return we.isElement(e)&&/^(TD|TH)$/i.test(e.tagName)},ff=function(e,t,n){var r,o,i,a,u,c=zs(t.getBoundingClientRect(),n);return"BODY"===e.tagName?(r=e.ownerDocument.documentElement,o=e.scrollLeft||r.scrollLeft,i=e.scrollTop||r.scrollTop):(u=e.getBoundingClientRect(),o=e.scrollLeft-u.left,i=e.scrollTop-u.top),c.left+=o,c.right+=o,c.top+=i,c.bottom+=i,c.width=1,a=t.offsetWidth-t.clientWidth,a>0&&(n&&(a*=-1),c.left+=a,c.right+=a),c},df=function(e){var t,n,r,o,i;for(t=Ja("*[contentEditable=false]",e),o=0;o<t.length;o++)n=t[o],r=n.previousSibling,rs(r)&&(i=r.data,1===i.length?r.parentNode.removeChild(r):r.deleteData(i.length-1,1)),r=n.nextSibling,ns(r)&&(i=r.data,1===i.length?r.parentNode.removeChild(r):r.deleteData(0,1))},hf=function(e,t,n){var r,o,i=Ce(p.none()),a=function(n,r){var a,s;if(u(),lf(r))return null;if(!t(r))return o=Zc(r,n),s=r.ownerDocument.createRange(),sf(o.nextSibling)?(s.setStart(o,0),s.setEnd(o,0)):(s.setStart(o,1),s.setEnd(o,1)),s;o=ts("p",r,n),a=ff(e,r,n),Ja(o).css("top",a.top);var l=Ja('<div class="mce-visual-caret" data-mce-bogus="all"></div>').css(a).appendTo(e)[0];return i.set(p.some({caret:l,element:r,before:n})),i.get().each((function(e){n&&Ja(e.caret).addClass("mce-visual-caret-before")})),c(),s=r.ownerDocument.createRange(),s.setStart(o,0),s.setEnd(o,0),s},u=function(){df(e),o&&(uf.remove(o),o=null),i.get().each((function(e){Ja(e.caret).remove(),i.set(p.none())})),ur.clearInterval(r)},c=function(){r=ur.setInterval((function(){n()?Ja("div.mce-visual-caret",e).toggleClass("mce-visual-caret-hidden"):Ja("div.mce-visual-caret",e).addClass("mce-visual-caret-hidden")}),500)},s=function(){i.get().each((function(t){var n=ff(e,t.element,t.before);Ja(t.caret).css(J({},n))}))},l=function(){return ur.clearInterval(r)},f=function(){return".mce-visual-caret {position: absolute;background-color: black;background-color: currentcolor;}.mce-visual-caret-hidden {display: none;}*[data-mce-caret] {position: absolute;left: -1000px;right: auto;top: 0;margin: 0;padding: 0;}"};return{show:a,hide:u,getCss:f,reposition:s,destroy:l}},mf=function(){return cf.isIE()||cf.isEdge()||cf.isFirefox()},gf=function(e){return sf(e)||we.isTable(e)&&mf()},pf=we.isContentEditableFalse,vf=we.matchStyleValues("display","block table table-cell table-caption list-item"),yf=Yc,bf=Kc,wf=we.isElement,Cf=gs,xf=function(e){return e>0},Ef=function(e){return e<0},zf=function(e,t){var n;while(n=e(t))if(!bf(n))return n;return null},kf=function(e,t,n,r,o){var i=new Qa(e,r);if(Ef(t)){if((pf(e)||bf(e))&&(e=zf(i.prev,!0),n(e)))return e;while(e=zf(i.prev,o))if(n(e))return e}if(xf(t)){if((pf(e)||bf(e))&&(e=zf(i.next,!0),n(e)))return e;while(e=zf(i.next,o))if(n(e))return e}return null},Nf=function(e,t){while(e&&e!==t){if(vf(e))return e;e=e.parentNode}return null},Sf=function(e,t,n){return Nf(e.container(),n)===Nf(t.container(),n)},Tf=function(e,t){var n,r;return t?(n=t.container(),r=t.offset(),wf(n)?n.childNodes[r+e]:null):null},Af=function(e,t){var n=t.ownerDocument.createRange();return e?(n.setStartBefore(t),n.setEndBefore(t)):(n.setStartAfter(t),n.setEndAfter(t)),n},Rf=function(e,t,n){return Nf(t,e)===Nf(n,e)},Bf=function(e,t,n){var r,o;o=e?"previousSibling":"nextSibling";while(n&&n!==t){if(r=n[o],yf(r)&&(r=r[o]),pf(r)){if(Rf(t,r,n))return r;break}if(Cf(r))break;n=n.parentNode}return null},Df=u(Af,!0),Mf=u(Af,!1),Pf=function(e,t,n){var r,o,i,a,c=u(Bf,!0,t),s=u(Bf,!1,t);if(o=n.startContainer,i=n.startOffset,Kc(o)){if(wf(o)||(o=o.parentNode),a=o.getAttribute("data-mce-caret"),"before"===a&&(r=o.nextSibling,gf(r)))return Df(r);if("after"===a&&(r=o.previousSibling,gf(r)))return Mf(r)}if(!n.collapsed)return n;if(we.isText(o)){if(yf(o)){if(1===e){if(r=s(o),r)return Df(r);if(r=c(o),r)return Mf(r)}if(-1===e){if(r=c(o),r)return Mf(r);if(r=s(o),r)return Df(r)}return n}if(rs(o)&&i>=o.data.length-1)return 1===e&&(r=s(o),r)?Df(r):n;if(ns(o)&&i<=1)return-1===e&&(r=c(o),r)?Mf(r):n;if(i===o.data.length)return r=s(o),r?Df(r):n;if(0===i)return r=c(o),r?Mf(r):n}return n},_f=function(e,t){return p.from(Tf(e?0:-1,t)).filter(pf)},Of=function(e,t,n){var r=Pf(e,t,n);return-1===e?ul.fromRangeStart(r):ul.fromRangeEnd(r)},Hf=function(e){return p.from(e.getNode()).map(Ct.fromDom)},Lf=function(e){return p.from(e.getNode(!0)).map(Ct.fromDom)},If=function(e,t){while(t=e(t))if(t.isVisible())return t;return t},Vf=function(e,t){var n=Sf(e,t);return!(n||!we.isBr(e.getNode()))||n};(function(e){e[e["Backwards"]=-1]="Backwards",e[e["Forwards"]=1]="Forwards"})(cl||(cl={}));var Ff=we.isContentEditableFalse,Uf=we.isText,jf=we.isElement,qf=we.isBr,Wf=gs,$f=ws,Kf=Cs,Xf=function(e,t){var n=[];while(e&&e!==t)n.push(e),e=e.parentNode;return n},Yf=function(e,t){return e.hasChildNodes()&&t<e.childNodes.length?e.childNodes[t]:null},Gf=function(e,t){if(xf(e)){if(Wf(t.previousSibling)&&!Uf(t.previousSibling))return sl.before(t);if(Uf(t))return sl(t,0)}if(Ef(e)){if(Wf(t.nextSibling)&&!Uf(t.nextSibling))return sl.after(t);if(Uf(t))return sl(t,t.data.length)}return Ef(e)?qf(t)?sl.before(t):sl.after(t):sl.before(t)},Zf=function(e,t){var n=t.nextSibling;return n&&Wf(n)?Uf(n)?sl(n,0):sl.before(n):Jf(cl.Forwards,sl.after(t),e)},Jf=function(e,t,n){var r,o,a,u,c;if(!jf(n)||!t)return null;if(t.isEqual(sl.after(n))&&n.lastChild){if(c=sl.after(n.lastChild),Ef(e)&&Wf(n.lastChild)&&jf(n.lastChild))return qf(n.lastChild)?sl.before(n.lastChild):c}else c=t;var s=c.container(),l=c.offset();if(Uf(s)){if(Ef(e)&&l>0)return sl(s,--l);if(xf(e)&&l<s.length)return sl(s,++l);r=s}else{if(Ef(e)&&l>0&&(o=Yf(s,l-1),Wf(o)))return!$f(o)&&(a=kf(o,e,Kf,o),a)?Uf(a)?sl(a,a.data.length):sl.after(a):Uf(o)?sl(o,o.data.length):sl.before(o);if(xf(e)&&l<s.childNodes.length&&(o=Yf(s,l),Wf(o)))return qf(o)?Zf(n,o):!$f(o)&&(a=kf(o,e,Kf,o),a)?Uf(a)?sl(a,0):sl.before(a):Uf(o)?sl(o,0):sl.after(o);r=o||c.getNode()}return(xf(e)&&c.isAtEnd()||Ef(e)&&c.isAtStart())&&(r=kf(r,e,i(!0),n,!0),Kf(r,n))?Gf(e,r):(o=kf(r,e,Kf,n),u=Sr.last(H(Xf(s,n),Ff)),!u||o&&u.contains(o)?o?Gf(e,o):null:(c=xf(e)?sl.after(u):sl.before(u),c))},Qf=function(e){return{next:function(t){return Jf(cl.Forwards,t,e)},prev:function(t){return Jf(cl.Backwards,t,e)}}},ed=function(e,t,n){var r=e?sl.before(n):sl.after(n);return ud(e,t,r)},td=function(e){return we.isBr(e)?sl.before(e):sl.after(e)},nd=function(e){return sl.isTextPosition(e)?0===e.offset():gs(e.getNode())},rd=function(e){if(sl.isTextPosition(e)){var t=e.container();return e.offset()===t.data.length}return gs(e.getNode(!0))},od=function(e,t){return!sl.isTextPosition(e)&&!sl.isTextPosition(t)&&e.getNode()===t.getNode(!0)},id=function(e){return!sl.isTextPosition(e)&&we.isBr(e.getNode())},ad=function(e,t,n){return e?!od(t,n)&&!id(t)&&rd(t)&&nd(n):!od(n,t)&&nd(t)&&rd(n)},ud=function(e,t,n){var r=Qf(t);return p.from(e?r.next(n):r.prev(n))},cd=function(e,t,n){return ud(e,t,n).bind((function(r){return Sf(n,r,t)&&ad(e,n,r)?ud(e,t,r):p.some(r)}))},sd=function(e,t,n,r){return cd(e,t,n).bind((function(n){return r(n)?sd(e,t,n,r):p.some(n)}))},ld=function(e,t){var n=e?t.firstChild:t.lastChild;return we.isText(n)?p.some(sl(n,e?0:n.data.length)):n?gs(n)?p.some(e?sl.before(n):td(n)):ed(e,t,n):p.none()},fd=u(ud,!0),dd=u(ud,!1),hd={fromPosition:ud,nextPosition:fd,prevPosition:dd,navigate:cd,navigateIgnore:sd,positionIn:ld,firstPositionIn:u(ld,!0),lastPositionIn:u(ld,!1)},md=function(e){return"string"===typeof e.start},gd=function(e){return e.hasOwnProperty("rng")},pd=function(e){return e.hasOwnProperty("id")},vd=function(e){return e.hasOwnProperty("name")},yd=function(e){return Vr.isArray(e.start)},bd=function(e,t){return we.isElement(t)&&e.isBlock(t)&&!t.innerHTML&&!pr.ie&&(t.innerHTML='<br data-mce-bogus="1" />'),t},wd=function(e,t){var n,r;return n=e.createRng(),r=El(e.getRoot(),t.start),n.setStart(r.container(),r.offset()),r=El(e.getRoot(),t.end),n.setEnd(r.container(),r.offset()),n},Cd=function(e,t){var n=e.ownerDocument.createTextNode(qc.ZWSP);e.appendChild(n),t.setStart(n,0),t.setEnd(n,0)},xd=function(e){return!1===e.hasChildNodes()},Ed=function(e,t){return hd.lastPositionIn(e).fold((function(){return!1}),(function(e){return t.setStart(e.container(),e.offset()),t.setEnd(e.container(),e.offset()),!0}))},zd=function(e,t,n){return!(!xd(t)||!$l(e,t))&&(Cd(t,n),!0)},kd=function(e,t,n,r){var o,i,a,u,c=n[t?"start":"end"],s=e.getRoot();if(c){for(a=c[0],i=s,o=c.length-1;o>=1;o--){if(u=i.childNodes,zd(s,i,r))return!0;if(c[o]>u.length-1)return!!zd(s,i,r)||Ed(i,r);i=u[c[o]]}3===i.nodeType&&(a=Math.min(c[0],i.nodeValue.length)),1===i.nodeType&&(a=Math.min(c[0],i.childNodes.length)),t?r.setStart(i,a):r.setEnd(i,a)}return!0},Nd=function(e){return we.isText(e)&&e.data.length>0},Sd=function(e,t,n){var r,o,i,a,u,c,s=e.get(n.id+"_"+t),l=n.keep;if(s){if(r=s.parentNode,"start"===t?(l?s.hasChildNodes()?(r=s.firstChild,o=1):Nd(s.nextSibling)?(r=s.nextSibling,o=0):Nd(s.previousSibling)?(r=s.previousSibling,o=s.previousSibling.data.length):(r=s.parentNode,o=e.nodeIndex(s)+1):o=e.nodeIndex(s),u=r,c=o):(l?s.hasChildNodes()?(r=s.firstChild,o=1):Nd(s.previousSibling)?(r=s.previousSibling,o=s.previousSibling.data.length):(r=s.parentNode,o=e.nodeIndex(s)):o=e.nodeIndex(s),u=r,c=o),!l){a=s.previousSibling,i=s.nextSibling,Vr.each(Vr.grep(s.childNodes),(function(e){we.isText(e)&&(e.nodeValue=e.nodeValue.replace(/\uFEFF/g,""))}));while(s=e.get(n.id+"_"+t))e.remove(s,!0);a&&i&&a.nodeType===i.nodeType&&we.isText(a)&&!pr.opera&&(o=a.nodeValue.length,a.appendData(i.nodeValue),e.remove(i),u=a,c=o)}return p.some(sl(u,c))}return p.none()},Td=function(e,t){var n=e.createRng();return kd(e,!0,t,n)&&kd(e,!1,t,n)?p.some(n):p.none()},Ad=function(e,t){var n=Sd(e,"start",t),r=Sd(e,"end",t);return Ps(n,r.or(n),(function(t,n){var r=e.createRng();return r.setStart(bd(e,t.container()),t.offset()),r.setEnd(bd(e,n.container()),n.offset()),r}))},Rd=function(e,t){return p.from(e.select(t.name)[t.index]).map((function(t){var n=e.createRng();return n.selectNode(t),n}))},Bd=function(e,t){var n=e.dom;if(t){if(yd(t))return Td(n,t);if(md(t))return p.some(wd(n,t));if(pd(t))return Ad(n,t);if(vd(t))return Rd(n,t);if(gd(t))return p.some(t.rng)}return p.none()},Dd={resolve:Bd},Md=function(e,t,n){return jl.getBookmark(e,t,n)},Pd=function(e,t){Dd.resolve(e,t).each((function(t){e.setRng(t)}))},_d=function(e){return we.isElement(e)&&"SPAN"===e.tagName&&"bookmark"===e.getAttribute("data-mce-type")},Od={getBookmark:Md,moveToBookmark:Pd,isBookmarkNode:_d},Hd=function(e){return e&&/^(IMG)$/.test(e.nodeName)},Ld=function(e,t,n){var r,o,i,a=n.startOffset,u=n.startContainer;if((n.startContainer!==n.endContainer||!Hd(n.startContainer.childNodes[n.startOffset]))&&1===u.nodeType)for(i=u.childNodes,a<i.length?(u=i[a],r=new Qa(u,e.getParent(u,e.isBlock))):(u=i[i.length-1],r=new Qa(u,e.getParent(u,e.isBlock)),r.next(!0)),o=r.current();o;o=r.next())if(3===o.nodeType&&!Ud(o))return n.setStart(o,0),void t.setRng(n)},Id=function(e,t,n){if(e)for(t=t?"nextSibling":"previousSibling",e=n?e:e[t];e;e=e[t])if(1===e.nodeType||!Ud(e))return e},Vd=function(e,t){return t.nodeType&&(t=t.nodeName),!!e.schema.getTextBlockElements()[t.toLowerCase()]},Fd=function(e,t,n){return e.schema.isValidChild(t,n)},Ud=function(e){return e&&3===e.nodeType&&/^([\t \r\n]+|)$/.test(e.nodeValue)},jd=function(e,t){return"string"!==typeof e?e=e(t):t&&(e=e.replace(/%(\w+)/g,(function(e,n){return t[n]||e}))),e},qd=function(e,t){return e=e||"",t=t||"",e=""+(e.nodeName||e),t=""+(t.nodeName||t),e.toLowerCase()===t.toLowerCase()},Wd=function(e,t,n){return"color"!==n&&"backgroundColor"!==n||(t=e.toHex(t)),"fontWeight"===n&&700===t&&(t="bold"),"fontFamily"===n&&(t=t.replace(/[\'\"]/g,"").replace(/,\s+/g,",")),""+t},$d=function(e,t,n){return Wd(e,e.getStyle(t,n),n)},Kd=function(e,t){var n;return e.getParent(t,(function(t){return n=e.getStyle(t,"text-decoration"),n&&"none"!==n})),n},Xd=function(e,t,n){return e.getParents(t,n,e.getRoot())},Yd={isInlineBlock:Hd,moveStart:Ld,getNonWhiteSpaceSibling:Id,isTextBlock:Vd,isValid:Fd,isWhiteSpaceNode:Ud,replaceVars:jd,isEq:qd,normalizeStyleValue:Wd,getStyle:$d,getTextDecoration:Kd,getParents:Xd},Gd=Od.isBookmarkNode,Zd=Yd.getParents,Jd=Yd.isWhiteSpaceNode,Qd=Yd.isTextBlock,eh=function(e,t){"undefined"===typeof t&&(t=3===e.nodeType?e.length:e.childNodes.length);while(e&&e.hasChildNodes())e=e.childNodes[t],e&&(t=3===e.nodeType?e.length:e.childNodes.length);return{node:e,offset:t}},th=function(e,t){var n=eh(e,t);if(n.node){while(n.node&&0===n.offset&&n.node.previousSibling)n=eh(n.node.previousSibling);n.node&&n.offset>0&&3===n.node.nodeType&&" "===n.node.nodeValue.charAt(n.offset-1)&&n.offset>1&&(e=n.node,e.splitText(n.offset-1))}return e},nh=function(e){return"BR"===e.nodeName&&e.getAttribute("data-mce-bogus")&&!e.nextSibling},rh=function(e,t){var n=t;while(n){if(1===n.nodeType&&e.getContentEditable(n))return"false"===e.getContentEditable(n)?n:t;n=n.parentNode}return t},oh=function(e,t,n,r){var o,i,a=n.nodeValue;return"undefined"===typeof r&&(r=e?a.length:0),e?(o=a.lastIndexOf(" ",r),i=a.lastIndexOf(" ",r),o=o>i?o:i,-1!==o&&!t&&(o<r||!e)&&o<=a.length&&o++):(o=a.indexOf(" ",r),i=a.indexOf(" ",r),o=-1!==o&&(-1===i||o<i)?o:i),o},ih=function(e,t,n,r,o,i){var a,u,c;if(3===n.nodeType){if(u=oh(o,i,n,r),-1!==u)return{container:n,offset:u};c=n}var s=new Qa(n,e.getParent(n,e.isBlock)||t);while(a=s[o?"prev":"next"]())if(3!==a.nodeType||Gd(a.parentNode)){if(e.isBlock(a)||Yd.isEq(a,"BR"))break}else if(c=a,u=oh(o,i,a),-1!==u)return{container:a,offset:u};if(c)return r=o?0:c.length,{container:c,offset:r}},ah=function(e,t,n,r,o){var i,a,u,c;for(3===r.nodeType&&0===r.nodeValue.length&&r[o]&&(r=r[o]),i=Zd(e,r),a=0;a<i.length;a++)for(u=0;u<t.length;u++)if(c=t[u],(!("collapsed"in c)||c.collapsed===n.collapsed)&&e.is(i[a],c.selector))return i[a];return r},uh=function(e,t,n,r){var o,i=e.dom,a=i.getRoot();if(t[0].wrapper||(o=i.getParent(n,t[0].block,a)),!o){var u=i.getParent(n,"LI,TD,TH");o=i.getParent(3===n.nodeType?n.parentNode:n,(function(t){return t!==a&&Qd(e,t)}),u)}if(o&&t[0].wrapper&&(o=Zd(i,o,"ul,ol").reverse()[0]||o),!o){o=n;while(o[r]&&!i.isBlock(o[r]))if(o=o[r],Yd.isEq(o,"br"))break}return o||n},ch=function(e,t,n,r,o,i,a){var u,c,s,l,f;if(u=c=a?n:o,l=a?"previousSibling":"nextSibling",f=e.getRoot(),3===u.nodeType&&!Jd(u)&&(a?r>0:i<u.nodeValue.length))return u;while(1){if(!t[0].block_expand&&e.isBlock(c))return c;for(s=c[l];s;s=s[l])if(!Gd(s)&&!Jd(s)&&!nh(s))return c;if(c===f||c.parentNode===f){u=c;break}c=c.parentNode}return u},sh=function(e,t,n,r){var o,i=t.startContainer,a=t.startOffset,u=t.endContainer,c=t.endOffset,s=e.dom;return 1===i.nodeType&&i.hasChildNodes()&&(i=Bs(i,a),3===i.nodeType&&(a=0)),1===u.nodeType&&u.hasChildNodes()&&(u=Bs(u,t.collapsed?c:c-1),3===u.nodeType&&(c=u.nodeValue.length)),i=rh(s,i),u=rh(s,u),(Gd(i.parentNode)||Gd(i))&&(i=Gd(i)?i:i.parentNode,i=t.collapsed?i.previousSibling||i:i.nextSibling||i,3===i.nodeType&&(a=t.collapsed?i.length:0)),(Gd(u.parentNode)||Gd(u))&&(u=Gd(u)?u:u.parentNode,u=t.collapsed?u.nextSibling||u:u.previousSibling||u,3===u.nodeType&&(c=t.collapsed?0:u.length)),t.collapsed&&(o=ih(s,e.getBody(),i,a,!0,r),o&&(i=o.container,a=o.offset),o=ih(s,e.getBody(),u,c,!1,r),o&&(u=o.container,c=o.offset)),n[0].inline&&(u=r?u:th(u,c)),(n[0].inline||n[0].block_expand)&&(n[0].inline&&3===i.nodeType&&0!==a||(i=ch(s,n,i,a,u,c,!0)),n[0].inline&&3===u.nodeType&&c!==u.nodeValue.length||(u=ch(s,n,i,a,u,c,!1))),n[0].selector&&!1!==n[0].expand&&!n[0].inline&&(i=ah(s,n,t,i,"previousSibling"),u=ah(s,n,t,u,"nextSibling")),(n[0].block||n[0].selector)&&(i=uh(e,n,i,"previousSibling"),u=uh(e,n,u,"nextSibling"),n[0].block&&(s.isBlock(i)||(i=ch(s,n,i,a,u,c,!0)),s.isBlock(u)||(u=ch(s,n,i,a,u,c,!1)))),1===i.nodeType&&(a=s.nodeIndex(i),i=i.parentNode),1===u.nodeType&&(c=s.nodeIndex(u)+1,u=u.parentNode),{startContainer:i,startOffset:a,endContainer:u,endOffset:c}},lh={expandRng:sh},fh=Vr.each,dh=function(e,t){var n=e.childNodes;return t--,t>n.length-1?t=n.length-1:t<0&&(t=0),n[t]||e},hh=function(e,t,n){var r,o,i,a,u,c,s,l=t.startContainer,f=t.startOffset,d=t.endContainer,h=t.endOffset;if(s=e.select("td[data-mce-selected],th[data-mce-selected]"),s.length>0)fh(s,(function(e){n([e])}));else{var m=function(e){var t;return t=e[0],3===t.nodeType&&t===l&&f>=t.nodeValue.length&&e.splice(0,1),t=e[e.length-1],0===h&&e.length>0&&t===d&&3===t.nodeType&&e.splice(e.length-1,1),e},g=function(e,t,n){for(var r=[];e&&e!==n;e=e[t])r.push(e);return r},p=function(e,t){do{if(e.parentNode===t)return e;e=e.parentNode}while(e)},v=function(e,t,r){var o=r?"nextSibling":"previousSibling";for(a=e,u=a.parentNode;a&&a!==t;a=u)u=a.parentNode,c=g(a===e?a:a[o],o),c.length&&(r||c.reverse(),n(m(c)))};if(1===l.nodeType&&l.hasChildNodes()&&(l=l.childNodes[f]),1===d.nodeType&&d.hasChildNodes()&&(d=dh(d,h)),l===d)return n(m([l]));for(r=e.findCommonAncestor(l,d),a=l;a;a=a.parentNode){if(a===d)return v(l,r,!0);if(a===r)break}for(a=d;a;a=a.parentNode){if(a===l)return v(d,r);if(a===r)break}o=p(l,r)||l,i=p(d,r)||d,v(l,o,!0),c=g(o===l?o:o.nextSibling,"nextSibling",i===d?i.nextSibling:i),c.length&&n(m(c)),v(d,i)}},mh={walk:hh},gh=function(){return"\ufeff"};function ph(e,t){var n=function(n){if(!e(n))throw new Error("Can only get "+t+" value of a "+t+" node");return r(n).getOr("")},r=function(t){return e(t)?p.from(t.dom().nodeValue):p.none()},o=function(n,r){if(!e(n))throw new Error("Can only set raw "+t+" value of a "+t+" node");n.dom().nodeValue=r};return{get:n,getOption:r,set:o}}var vh=ph(At,"text"),yh=function(e){return vh.get(e)},bh=function(e){return At(e)&&yh(e)===gh()},wh=function(e,t,n,r){return yn(t).fold((function(){return"skipping"}),(function(o){return"br"===r||bh(t)?"valid":Nc(t)?"existing":Wl(t)?"caret":Yd.isValid(e,n,r)&&Yd.isValid(e,kt(o),n)?"valid":"invalid-child"}))},Ch=function(e){return 3===e.startContainer.nodeType&&e.startContainer.nodeValue.length>=e.startOffset&&" "===e.startContainer.nodeValue[e.startOffset]},xh=function(e,t){var n=lh.expandRng(e,t,[{inline:!0}],Ch(t));t.setStart(n.startContainer,n.startOffset),t.setEnd(n.endContainer,n.endOffset),e.selection.setRng(t)},Eh=function(e,t,n,r){var o=t.uid,i=void 0===o?Mc("mce-annotation"):o,a=Q(t,["uid"]),u=Ct.fromTag("span",e);lc(u,xc()),Ft(u,""+zc(),i),Ft(u,""+Ec(),n);var c=r(i,a),s=c.attributes,l=void 0===s?{}:s,f=c.classes,d=void 0===f?[]:f;return Ut(u,l),Pc(u,d),u},zh=function(e,t,n,r,o){var i=[],a=Eh(e.getDoc(),o,n,r),u=Ce(p.none()),c=function(){u.set(p.none())},s=function(){return u.get().getOrThunk((function(){var e=Oc(a);return i.push(e),u.set(p.some(e)),e}))},l=function(e){P(e,f)},f=function(t){var n=wh(e,t,"span",kt(t));switch(n){case"invalid-child":c();var r=zn(t);l(r),c();break;case"valid":var o=s();ou(t,o);break;case"skipping":case"existing":case"caret":}},d=function(e){var t=M(e,Ct.fromDom);l(t)};return mh.walk(e.dom,t,(function(e){c(),d(e)})),i},kh=function(e,t,n,r){e.undoManager.transact((function(){var o=e.selection.getRng();if(o.collapsed&&xh(e,o),e.selection.getRng().collapsed){var i=Eh(e.getDoc(),r,t,n.decorate);Vc(i," "),e.selection.getRng().insertNode(i.dom()),e.selection.select(i.dom())}else{var a=jl.getPersistentBookmark(e.selection,!1),u=e.selection.getRng();zh(e,u,t,n.decorate,r),e.selection.moveToBookmark(a)}}))},Nh=function(e){var t=Bc();Rc(e,t);var n=Ac(e);return{register:function(e,n){t.register(e,n)},annotate:function(n,r){t.lookup(n).each((function(t){kh(e,n,t,r)}))},annotationChanged:function(e,t){n.addListener(e,t)},remove:function(t){kc(e,p.some(t)).each((function(e){var t=e.elements;P(t,su)}))},getAll:function(t){var n=Tc(e,t);return Mt(n,(function(e){return M(e,(function(e){return e.dom()}))}))}}},Sh=/^[ \t\r\n]*$/,Th={"#text":3,"#comment":8,"#cdata":4,"#pi":7,"#doctype":10,"#document-fragment":11},Ah=function(e,t,n){var r=n?"lastChild":"firstChild",o=n?"prev":"next";if(e[r])return e[r];if(e!==t){var i=e[o];if(i)return i;for(var a=e.parent;a&&a!==t;a=a.parent)if(i=a[o],i)return i}},Rh=function(){function e(e,t){this.name=e,this.type=t,1===t&&(this.attributes=[],this.attributes.map={})}return e.create=function(t,n){var r=new e(t,Th[t]||1);if(n)for(var o in n)r.attr(o,n[o]);return r},e.prototype.replace=function(e){var t=this;return e.parent&&e.remove(),t.insert(e,t),t.remove(),t},e.prototype.attr=function(e,t){var n,r=this;if("string"!==typeof e){for(var o in e)r.attr(o,e[o]);return r}if(n=r.attributes){if(void 0!==t){if(null===t){if(e in n.map){delete n.map[e];var i=n.length;while(i--)if(n[i].name===e)return n.splice(i,1),r}return r}if(e in n.map){i=n.length;while(i--)if(n[i].name===e){n[i].value=t;break}}else n.push({name:e,value:t});return n.map[e]=t,r}return n.map[e]}},e.prototype.clone=function(){var t,n=this,r=new e(n.name,n.type);if(t=n.attributes){var o=[];o.map={};for(var i=0,a=t.length;i<a;i++){var u=t[i];"id"!==u.name&&(o[o.length]={name:u.name,value:u.value},o.map[u.name]=u.value)}r.attributes=o}return r.value=n.value,r.shortEnded=n.shortEnded,r},e.prototype.wrap=function(e){var t=this;return t.parent.insert(e,t),e.append(t),t},e.prototype.unwrap=function(){for(var e=this,t=e.firstChild;t;){var n=t.next;e.insert(t,e,!0),t=n}e.remove()},e.prototype.remove=function(){var e=this,t=e.parent,n=e.next,r=e.prev;return t&&(t.firstChild===e?(t.firstChild=n,n&&(n.prev=null)):r.next=n,t.lastChild===e?(t.lastChild=r,r&&(r.next=null)):n.prev=r,e.parent=e.next=e.prev=null),e},e.prototype.append=function(e){var t=this;e.parent&&e.remove();var n=t.lastChild;return n?(n.next=e,e.prev=n,t.lastChild=e):t.lastChild=t.firstChild=e,e.parent=t,e},e.prototype.insert=function(e,t,n){e.parent&&e.remove();var r=t.parent||this;return n?(t===r.firstChild?r.firstChild=e:t.prev.next=e,e.prev=t.prev,e.next=t,t.prev=e):(t===r.lastChild?r.lastChild=e:t.next.prev=e,e.next=t.next,e.prev=t,t.next=e),e.parent=r,e},e.prototype.getAll=function(e){for(var t=this,n=[],r=t.firstChild;r;r=Ah(r,t))r.name===e&&n.push(r);return n},e.prototype.empty=function(){var e=this;if(e.firstChild){for(var t=[],n=e.firstChild;n;n=Ah(n,e))t.push(n);var r=t.length;while(r--){n=t[r];n.parent=n.firstChild=n.lastChild=n.next=n.prev=null}}return e.firstChild=e.lastChild=null,e},e.prototype.isEmpty=function(e,t,n){void 0===t&&(t={});var r=this,o=r.firstChild;if(o)do{if(1===o.type){if(o.attr("data-mce-bogus"))continue;if(e[o.name])return!1;var i=o.attributes.length;while(i--){var a=o.attributes[i].name;if("name"===a||0===a.indexOf("data-mce-bookmark"))return!1}}if(8===o.type)return!1;if(3===o.type&&!Sh.test(o.value))return!1;if(3===o.type&&o.parent&&t[o.parent.name]&&Sh.test(o.value))return!1;if(n&&n(o))return!1}while(o=Ah(o,r));return!0},e.prototype.walk=function(e){return Ah(this,null,e)},e}(),Bh=function(e){return 0===e.indexOf("data-")||0===e.indexOf("aria-")},Dh=function(e){return e.replace(/<!--|-->/g,"")},Mh=function(e,t){return!e.allow_html_data_urls&&(/^data:image\//i.test(t)?!1===e.allow_svg_data_urls&&/^data:image\/svg\+xml/i.test(t):/^data:/i.test(t))},Ph=function(e,t,n){var r,o,i,a,u=1;a=e.getShortEndedElements(),i=/<([!?\/])?([A-Za-z0-9\-_\:\.]+)((?:\s+[^"\'>]+(?:(?:"[^"]*")|(?:\'[^\']*\')|[^>]*))*|\/|\s+)>/g,i.lastIndex=r=n;while(o=i.exec(t)){if(r=i.lastIndex,"/"===o[1])u--;else if(!o[1]){if(o[2]in a)continue;u++}if(0===u)break}return r},_h=function(e,t){var n=e.exec(t);if(n){var r=n[1],o=n[2];return"string"===typeof r&&"data-mce-bogus"===r.toLowerCase()?o:null}return null};function Oh(e,t){void 0===t&&(t=jo());var n=function(){};e=e||{},!1!==e.fix_self_closing&&(e.fix_self_closing=!0);var r=e.comment?e.comment:n,o=e.cdata?e.cdata:n,i=e.text?e.text:n,a=e.start?e.start:n,u=e.end?e.end:n,c=e.pi?e.pi:n,s=e.doctype?e.doctype:n,l=function(n){var l,f,d,h,m,g,p,v,y,b,w,C,x,E,z,k,N,S,T,A,R,B,D,M,P,_,O,H,L,I,V=0,F=[],U=0,j=Do.decode,q=Vr.makeMap("src,href,data,background,formaction,poster,xlink:href"),W=/((java|vb)script|mhtml):/i,$=function(e){var t,n;t=F.length;while(t--)if(F[t].name===e)break;if(t>=0){for(n=F.length-1;n>=t;n--)e=F[n],e.valid&&u(e.name);F.length=t}},K=function(t,n,r,o,i){var a,u,c=/[\s\u0000-\u001F]+/g;if(n=n.toLowerCase(),r=n in w?n:j(r||o||i||""),x&&!v&&!1===Bh(n)){if(a=S[n],!a&&T){u=T.length;while(u--)if(a=T[u],a.pattern.test(n))break;-1===u&&(a=null)}if(!a)return;if(a.validValues&&!(r in a.validValues))return}if(q[n]&&!e.allow_script_urls){var s=r.replace(c,"");try{s=decodeURIComponent(s)}catch(l){s=unescape(s)}if(W.test(s))return;if(Mh(e,s))return}v&&(n in q||0===n.indexOf("on"))||(h.map[n]=r,h.push({name:n,value:r}))};_=new RegExp("<(?:(?:!--([\\w\\W]*?)--\x3e)|(?:!\\[CDATA\\[([\\w\\W]*?)\\]\\]>)|(?:!DOCTYPE([\\w\\W]*?)>)|(?:\\?([^\\s\\/<>]+) ?([\\w\\W]*?)[?/]>)|(?:\\/([A-Za-z][A-Za-z0-9\\-_\\:\\.]*)>)|(?:([A-Za-z][A-Za-z0-9\\-_\\:\\.]*)((?:\\s+[^\"'>]+(?:(?:\"[^\"]*\")|(?:'[^']*')|[^>]*))*|\\/|\\s+)>))","g"),O=/([\w:\-]+)(?:\s*=\s*(?:(?:\"((?:[^\"])*)\")|(?:\'((?:[^\'])*)\')|([^>\s]+)))?/g,b=t.getShortEndedElements(),P=e.self_closing_elements||t.getSelfClosingElements(),w=t.getBoolAttrs(),x=e.validate,y=e.remove_internals,I=e.fix_self_closing,H=t.getSpecialElements(),D=n+">";while(l=_.exec(D)){if(V<l.index&&i(j(n.substr(V,l.index-V))),f=l[6])f=f.toLowerCase(),":"===f.charAt(0)&&(f=f.substr(1)),$(f);else if(f=l[7]){if(l.index+l[0].length>n.length){i(j(n.substr(l.index))),V=l.index+l[0].length;continue}f=f.toLowerCase(),":"===f.charAt(0)&&(f=f.substr(1)),C=f in b,I&&P[f]&&F.length>0&&F[F.length-1].name===f&&$(f);var X=_h(O,l[8]);if(null!==X){if("all"===X){V=Ph(t,n,_.lastIndex),_.lastIndex=V;continue}z=!1}if(!x||(E=t.getElementRule(f))){if(z=!0,x&&(S=E.attributes,T=E.attributePatterns),(N=l[8])?(v=-1!==N.indexOf("data-mce-type"),v&&y&&(z=!1),h=[],h.map={},N.replace(O,K)):(h=[],h.map={}),x&&!v){if(A=E.attributesRequired,R=E.attributesDefault,B=E.attributesForced,M=E.removeEmptyAttrs,M&&!h.length&&(z=!1),B){m=B.length;while(m--)k=B[m],p=k.name,L=k.value,"{$uid}"===L&&(L="mce_"+U++),h.map[p]=L,h.push({name:p,value:L})}if(R){m=R.length;while(m--)k=R[m],p=k.name,p in h.map||(L=k.value,"{$uid}"===L&&(L="mce_"+U++),h.map[p]=L,h.push({name:p,value:L}))}if(A){m=A.length;while(m--)if(A[m]in h.map)break;-1===m&&(z=!1)}if(k=h.map["data-mce-bogus"]){if("all"===k){V=Ph(t,n,_.lastIndex),_.lastIndex=V;continue}z=!1}}z&&a(f,h,C)}else z=!1;if(d=H[f]){d.lastIndex=V=l.index+l[0].length,(l=d.exec(n))?(z&&(g=n.substr(V,l.index-V)),V=l.index+l[0].length):(g=n.substr(V),V=n.length),z&&(g.length>0&&i(g,!0),u(f)),_.lastIndex=V;continue}C||(N&&N.indexOf("/")===N.length-1?z&&u(f):F.push({name:f,valid:z}))}else(f=l[1])?(">"===f.charAt(0)&&(f=" "+f),e.allow_conditional_comments||"[if"!==f.substr(0,3).toLowerCase()||(f=" "+f),r(f)):(f=l[2])?o(Dh(f)):(f=l[3])?s(f):(f=l[4])&&c(f,l[5]);V=l.index+l[0].length}for(V<n.length&&i(j(n.substr(V))),m=F.length-1;m>=0;m--)f=F[m],f.valid&&u(f.name)};return{parse:l}}(function(e){e.findEndTag=Ph})(Oh||(Oh={}));var Hh,Lh=Oh,Ih=function(e,t){var n=new RegExp(["\\s?("+e.join("|")+')="[^"]+"'].join("|"),"gi");return t.replace(n,"")},Vh=function(e,t){var n,r,o,i,a,u=t,c=/<(\w+) [^>]*data-mce-bogus="all"[^>]*>/g,s=e.schema;u=Ih(e.getTempAttrs(),u),a=s.getShortEndedElements();while(i=c.exec(u))r=c.lastIndex,o=i[0].length,n=a[i[1]]?r:Lh.findEndTag(s,u,r),u=u.substring(0,r-o)+u.substring(n),c.lastIndex=r-o;return qc.trim(u)},Fh=Vh,Uh={trimExternal:Fh,trimInternal:Vh},jh=function(e,t,n){var r=e.getParam(t,n);if(-1!==r.indexOf("=")){var o=e.getParam(t,"","hash");return o.hasOwnProperty(e.id)?o[e.id]:n}return r},qh=function(e){return e.getParam("iframe_attrs",{})},Wh=function(e){return e.getParam("doctype","<!DOCTYPE html>")},$h=function(e){return e.getParam("document_base_url","")},Kh=function(e){return jh(e,"body_id","tinymce")},Xh=function(e){return jh(e,"body_class","")},Yh=function(e){return e.getParam("content_security_policy","")},Gh=function(e){return e.getParam("br_in_pre",!0)},Zh=function(e){if(e.getParam("force_p_newlines",!1))return"p";var t=e.getParam("forced_root_block","p");return!1===t?"":!0===t?"p":t},Jh=function(e){return e.getParam("forced_root_block_attrs",{})},Qh=function(e){return e.getParam("br_newline_selector",".mce-toc h2,figcaption,caption")},em=function(e){return e.getParam("no_newline_selector","")},tm=function(e){return e.getParam("keep_styles",!0)},nm=function(e){return e.getParam("end_container_on_empty_block",!1)},rm=function(e){return Vr.explode(e.getParam("font_size_style_values","xx-small,x-small,small,medium,large,x-large,xx-large"))},om=function(e){return Vr.explode(e.getParam("font_size_classes",""))},im=function(e){return e.getParam("images_dataimg_filter",i(!0),"function")},am=function(e){return e.getParam("automatic_uploads",!0,"boolean")},um=function(e){return e.getParam("images_reuse_filename",!1,"boolean")},cm=function(e){return e.getParam("images_replace_blob_uris",!0,"boolean")},sm=function(e){return e.getParam("icons","","string")},lm=function(e){return e.getParam("icons_url","","string")},fm=function(e){return e.getParam("images_upload_url","","string")},dm=function(e){return e.getParam("images_upload_base_path","","string")},hm=function(e){return e.getParam("images_upload_credentials",!1,"boolean")},mm=function(e){return e.getParam("images_upload_handler",null,"function")},gm=function(e){return e.getParam("content_css_cors",!1,"boolean")},pm=function(e){return e.getParam("referrer_policy","","string")},vm=function(e){return e.getParam("language","en","string")},ym=function(e){return e.getParam("language_url","","string")},bm=function(e){return e.getParam("indent_use_margin",!1)},wm=function(e){return e.getParam("indentation","40px","string")},Cm=function(e){var t=e.settings.content_css;return b(t)?M(t.split(","),rt):C(t)?t:!1===t||e.inline?[]:["default"]},xm=function(e){return e.getParam("directionality",Zu.isRtl()?"rtl":void 0)},Em=function(e){return e.getParam("inline_boundaries_selector","a[href],code,.mce-annotation","string")},zm={getIframeAttrs:qh,getDocType:Wh,getDocumentBaseUrl:$h,getBodyId:Kh,getBodyClass:Xh,getContentSecurityPolicy:Yh,shouldPutBrInPre:Gh,getForcedRootBlock:Zh,getForcedRootBlockAttrs:Jh,getBrNewLineSelector:Qh,getNoNewLineSelector:em,shouldKeepStyles:tm,shouldEndContainerOnEmptyBlock:nm,getFontStyleValues:rm,getFontSizeClasses:om,getIconPackName:sm,getIconsUrl:lm,getImagesDataImgFilter:im,isAutomaticUploadsEnabled:am,shouldReuseFileName:um,shouldReplaceBlobUris:cm,getImageUploadUrl:fm,getImageUploadBasePath:dm,getImagesUploadCredentials:hm,getImagesUploadHandler:mm,shouldUseContentCssCors:gm,getReferrerPolicy:pm,getLanguageCode:vm,getLanguageUrl:ym,shouldIndentUseMargin:bm,getIndentation:wm,getContentCss:Cm,getDirectionality:xm,getInlineBoundarySelector:Em},km="html",Nm=function(e,t){var n=zm.getForcedRootBlock(e),r=new RegExp("^(<"+n+"[^>]*>( | |\\s| |<br \\/>|)<\\/"+n+">[\r\n]*|<br \\/>[\r\n]*)$");return t.replace(r,"")},Sm=function(e,t,n){var r;if(t.format=t.format?t.format:km,t.get=!0,t.getInner=!0,t.no_events||e.fire("BeforeGetContent",t),"raw"===t.format)r=Vr.trim(Uh.trimExternal(e.serializer,n.innerHTML));else if("text"===t.format)r=qc.trim(n.innerText||n.textContent);else{if("tree"===t.format)return e.serializer.serialize(n,t);r=Nm(e,e.serializer.serialize(n,t))}return"text"===t.format||ho(Ct.fromDom(n))?t.content=r:t.content=Vr.trim(r),t.no_events||e.fire("GetContent",t),t.content},Tm=function(e,t){return void 0===t&&(t={}),p.from(e.getBody()).fold(i("tree"===t.format?new Rh("body",11):""),(function(n){return Sm(e,t,n)}))},Am=Vr.makeMap,Rm=function(e){var t,n,r,o,i,a=[];return e=e||{},t=e.indent,n=Am(e.indent_before||""),r=Am(e.indent_after||""),o=Do.getEncodeFunc(e.entity_encoding||"raw",e.entities),i="html"===e.element_format,{start:function(e,u,c){var s,l,f,d;if(t&&n[e]&&a.length>0&&(d=a[a.length-1],d.length>0&&"\n"!==d&&a.push("\n")),a.push("<",e),u)for(s=0,l=u.length;s<l;s++)f=u[s],a.push(" ",f.name,'="',o(f.value,!0),'"');a[a.length]=!c||i?">":" />",c&&t&&r[e]&&a.length>0&&(d=a[a.length-1],d.length>0&&"\n"!==d&&a.push("\n"))},end:function(e){var n;a.push("</",e,">"),t&&r[e]&&a.length>0&&(n=a[a.length-1],n.length>0&&"\n"!==n&&a.push("\n"))},text:function(e,t){e.length>0&&(a[a.length]=t?e:o(e))},cdata:function(e){a.push("<![CDATA[",e,"]]>")},comment:function(e){a.push("\x3c!--",e,"--\x3e")},pi:function(e,n){n?a.push("<?",e," ",o(n),"?>"):a.push("<?",e,"?>"),t&&a.push("\n")},doctype:function(e){a.push("<!DOCTYPE",e,">",t?"\n":"")},reset:function(){a.length=0},getContent:function(){return a.join("").replace(/\n$/,"")}}},Bm=function(e,t){void 0===t&&(t=jo());var n=Rm(e);e=e||{},e.validate=!("validate"in e)||e.validate;var r=function(r){var o,i;i=e.validate,o={3:function(e){n.text(e.value,e.raw)},8:function(e){n.comment(e.value)},7:function(e){n.pi(e.name,e.value)},10:function(e){n.doctype(e.value)},4:function(e){n.cdata(e.value)},11:function(e){if(e=e.firstChild)do{a(e)}while(e=e.next)}},n.reset();var a=function(e){var r,u,c,s,l,f,d,h,m,g=o[e.type];if(g)g(e);else{if(r=e.name,u=e.shortEnded,c=e.attributes,i&&c&&c.length>1&&(f=[],f.map={},m=t.getElementRule(e.name),m)){for(d=0,h=m.attributesOrder.length;d<h;d++)s=m.attributesOrder[d],s in c.map&&(l=c.map[s],f.map[s]=l,f.push({name:s,value:l}));for(d=0,h=c.length;d<h;d++)s=c[d].name,s in f.map||(l=c.map[s],f.map[s]=l,f.push({name:s,value:l}));c=f}if(n.start(e.name,c,u),!u){if(e=e.firstChild)do{a(e)}while(e=e.next);n.end(r)}}};return 1!==r.type||e.inner?o[11](r):a(r),n.getContent()};return{serialize:r}},Dm=function(e,t){t(e),e.firstChild&&Dm(e.firstChild,t),e.next&&Dm(e.next,t)},Mm=function(e,t,n){var r={},o={},i=[];for(var a in n.firstChild&&Dm(n.firstChild,(function(n){P(e,(function(e){e.name===n.name&&(r[e.name]?r[e.name].nodes.push(n):r[e.name]={filter:e,nodes:[n]})})),P(t,(function(e){"string"===typeof n.attr(e.name)&&(o[e.name]?o[e.name].nodes.push(n):o[e.name]={filter:e,nodes:[n]})}))})),r)r.hasOwnProperty(a)&&i.push(r[a]);for(var a in o)o.hasOwnProperty(a)&&i.push(o[a]);return i},Pm=function(e,t,n){var r=Mm(e,t,n);P(r,(function(e){P(e.filter.callbacks,(function(t){t(e.nodes,e.filter.name,{})}))}))},_m=function(e){var t=gn(e).dom();return e.dom()===t.activeElement},Om=function(e){var t=void 0!==e?e.dom():n.document;return p.from(t.activeElement).map(Ct.fromDom)},Hm=function(e){return Om(gn(e)).filter((function(t){return e.dom().contains(t.dom())}))},Lm=function(e){if(!C(e))throw new Error("cases must be an array");if(0===e.length)throw new Error("there must be at least one case");var t=[],r={};return P(e,(function(o,i){var a=Rt(o);if(1!==a.length)throw new Error("one and only one name per case");var u=a[0],c=o[u];if(void 0!==r[u])throw new Error("duplicate key detected:"+u);if("cata"===u)throw new Error("cannot have a case named cata (sorry)");if(!C(c))throw new Error("case arguments must be an array");t.push(u),r[u]=function(){var r=arguments.length;if(r!==c.length)throw new Error("Wrong number of arguments to case "+u+". Expected "+c.length+" ("+c+"), got "+r);for(var o=new Array(r),a=0;a<o.length;a++)o[a]=arguments[a];var s=function(e){var n=Rt(e);if(t.length!==n.length)throw new Error("Wrong number of arguments to match. Expected: "+t.join(",")+"\nActual: "+n.join(","));var r=q(t,(function(e){return B(n,e)}));if(!r)throw new Error("Not all branches were specified when using match. Specified: "+n.join(", ")+"\nRequired: "+t.join(", "));return e[u].apply(null,o)};return{fold:function(){if(arguments.length!==e.length)throw new Error("Wrong number of arguments to fold. Expected "+e.length+", got "+arguments.length);var t=arguments[i];return t.apply(null,o)},match:s,log:function(e){n.console.log(e,{constructors:t,constructor:u,params:o})}}}})),r},Im={generate:Lm},Vm=Gt("start","soffset","finish","foffset"),Fm={create:Vm},Um=Im.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),jm=function(e,t,n,r){return e.fold(t,n,r)},qm=function(e){return e.fold(a,a,a)},Wm=Um.before,$m=Um.on,Km=Um.after,Xm={before:Wm,on:$m,after:Km,cata:jm,getStart:qm},Ym=Im.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),Gm=function(e){return Ym.exact(e.start(),e.soffset(),e.finish(),e.foffset())},Zm=function(e){return e.match({domRange:function(e){return Ct.fromDom(e.startContainer)},relative:function(e,t){return Xm.getStart(e)},exact:function(e,t,n,r){return e}})},Jm=Ym.domRange,Qm=Ym.relative,eg=Ym.exact,tg=function(e){var t=Zm(e);return vn(t)},ng=Fm.create,rg={domRange:Jm,relative:Qm,exact:eg,exactFromRange:Gm,getWin:tg,range:ng},og=gt().browser,ig=function(e,t){var n=At(t)?yh(t).length:zn(t).length+1;return e>n?n:e<0?0:e},ag=function(e){return rg.range(e.start(),ig(e.soffset(),e.start()),e.finish(),ig(e.foffset(),e.finish()))},ug=function(e,t){return!we.isRestrictedNode(t.dom())&&(mn(e,t)||ln(e,t))},cg=function(e){return function(t){return ug(e,t.start())&&ug(e,t.finish())}},sg=function(e){return!0===e.inline||og.isIE()},lg=function(e){return rg.range(Ct.fromDom(e.startContainer),e.startOffset,Ct.fromDom(e.endContainer),e.endOffset)},fg=function(e){var t=e.getSelection(),n=t&&0!==t.rangeCount?p.from(t.getRangeAt(0)):p.none();return n.map(lg)},dg=function(e){var t=vn(e);return fg(t.dom()).filter(cg(e))},hg=function(e,t){return p.from(t).filter(cg(e)).map(ag)},mg=function(e){var t=n.document.createRange();try{return t.setStart(e.start().dom(),e.soffset()),t.setEnd(e.finish().dom(),e.foffset()),p.some(t)}catch(r){return p.none()}},gg=function(e){var t=sg(e)?dg(Ct.fromDom(e.getBody())):p.none();e.bookmark=t.isSome()?t:e.bookmark},pg=function(e,t){var n=Ct.fromDom(e.getBody()),r=sg(e)?p.from(t):p.none(),o=r.map(lg).filter(cg(n));e.bookmark=o.isSome()?o:e.bookmark},vg=function(e){var t=e.bookmark?e.bookmark:p.none();return t.bind((function(t){return hg(Ct.fromDom(e.getBody()),t)})).bind(mg)},yg=function(e){vg(e).each((function(t){e.selection.setRng(t)}))},bg={store:gg,storeNative:pg,readRange:fg,restore:yg,getRng:vg,getBookmark:dg,validate:hg},wg=function(e){var t=e.className.toString();return-1!==t.indexOf("tox-")||-1!==t.indexOf("mce-")},Cg={isEditorUIElement:wg},xg=function(e){return"nodechange"===e.type&&e.selectionChange},Eg=function(e,t){var r=function(){t.throttle()};Bu.DOM.bind(n.document,"mouseup",r),e.on("remove",(function(){Bu.DOM.unbind(n.document,"mouseup",r)}))},zg=function(e){e.on("focusout",(function(){bg.store(e)}))},kg=function(e,t){e.on("mouseup touchend",(function(e){t.throttle()}))},Ng=function(e,t){var n=gt().browser;n.isIE()?zg(e):kg(e,t),e.on("keyup NodeChange",(function(t){xg(t)||bg.store(e)}))},Sg=function(e){var t=tc((function(){bg.store(e)}),0);e.on("init",(function(){e.inline&&Eg(e,t),Ng(e,t)})),e.on("remove",(function(){t.cancel()}))},Tg={register:Sg},Ag=Bu.DOM,Rg=function(e){return Cg.isEditorUIElement(e)},Bg=function(e){var t=e.classList;return void 0!==t&&(t.contains("tox-edit-area")||t.contains("tox-edit-area__iframe")||t.contains("mce-content-body"))},Dg=function(e,t){var n=e?e.settings.custom_ui_selector:"",r=Ag.getParent(t,(function(t){return Rg(t)||!!n&&e.dom.is(t,n)}));return null!==r},Mg=function(){try{return n.document.activeElement}catch(e){return n.document.body}},Pg=function(e,t){var r=t.editor;Tg.register(r),r.on("focusin",(function(){var t=this,n=e.focusedEditor;n!==t&&(n&&n.fire("blur",{focusedEditor:t}),e.setActive(t),e.focusedEditor=t,t.fire("focus",{blurredEditor:n}),t.focus(!0))})),r.on("focusout",(function(){var t=this;ur.setEditorTimeout(t,(function(){var n=e.focusedEditor;Dg(t,Mg())||n!==t||(t.fire("blur",{focusedEditor:null}),e.focusedEditor=null)}))})),Hh||(Hh=function(t){var r,o=e.activeEditor;r=t.target,o&&r.ownerDocument===n.document&&(r===n.document.body||Dg(o,r)||e.focusedEditor!==o||(o.fire("blur",{focusedEditor:null}),e.focusedEditor=null))},Ag.bind(n.document,"focusin",Hh))},_g=function(e,t){e.focusedEditor===t.editor&&(e.focusedEditor=null),e.activeEditor||(Ag.unbind(n.document,"focusin",Hh),Hh=null)},Og=function(e){e.on("AddEditor",u(Pg,e)),e.on("RemoveEditor",u(_g,e))},Hg={setup:Og,isEditorUIElement:Rg,isEditorContentAreaElement:Bg,isUIElement:Dg},Lg=function(e,t){return e.dom.getParent(t,(function(t){return"true"===e.dom.getContentEditable(t)}))},Ig=function(e){return e.collapsed?p.from(Bs(e.startContainer,e.startOffset)).map(Ct.fromDom):p.none()},Vg=function(e,t){return Ig(t).bind((function(t){return lo(t)?p.some(t):!1===mn(e,t)?p.some(e):p.none()}))},Fg=function(e,t){Vg(Ct.fromDom(e.getBody()),t).bind((function(e){return hd.firstPositionIn(e.dom())})).fold((function(){e.selection.normalize()}),(function(t){return e.selection.setRng(t.toRange())}))},Ug=function(e){if(e.setActive)try{e.setActive()}catch(t){e.focus()}else e.focus()},jg=function(e){return _m(e)||Hm(e).isSome()},qg=function(e){return e.iframeElement&&_m(Ct.fromDom(e.iframeElement))},Wg=function(e){var t=e.getBody();return t&&jg(Ct.fromDom(t))},$g=function(e){return Om().filter((function(t){return!Hg.isEditorContentAreaElement(t.dom())&&Hg.isUIElement(e,t.dom())})).isSome()},Kg=function(e){return e.inline?Wg(e):qg(e)},Xg=function(e){return Kg(e)||$g(e)},Yg=function(e){var t=e.selection,n=e.getBody(),r=t.getRng();e.quirks.refreshContentEditable(),void 0!==e.bookmark&&!1===Kg(e)&&bg.getRng(e).each((function(t){e.selection.setRng(t),r=t}));var o=Lg(e,t.getNode());if(e.$.contains(n,o))return Ug(o),Fg(e,r),void Gg(e);e.inline||(pr.opera||Ug(n),e.getWin().focus()),(pr.gecko||e.inline)&&(Ug(n),Fg(e,r)),Gg(e)},Gg=function(e){return e.editorManager.setActive(e)},Zg=function(e,t){e.removed||(t?Gg(e):Yg(e))},Jg={focus:Zg,hasFocus:Kg,hasEditorOrUiFocus:Xg},Qg="html",ep=function(e){return e instanceof Rh},tp=function(e){Jg.hasFocus(e)&&hd.firstPositionIn(e.getBody()).each((function(t){var n=t.getNode(),r=we.isTable(n)?hd.firstPositionIn(n).getOr(t):t;e.selection.setRng(r.toRange())}))},np=function(e,t){e.dom.setHTML(e.getBody(),t),tp(e)},rp=function(e,t,n,r){var o,i;return 0===n.length||/^\s+$/.test(n)?(i='<br data-mce-bogus="1">',"TABLE"===t.nodeName?n="<tr><td>"+i+"</td></tr>":/^(UL|OL)$/.test(t.nodeName)&&(n="<li>"+i+"</li>"),o=zm.getForcedRootBlock(e),o&&e.schema.isValidChild(t.nodeName.toLowerCase(),o.toLowerCase())?(n=i,n=e.dom.createHTML(o,e.settings.forced_root_block_attrs,n)):n||(n='<br data-mce-bogus="1">'),np(e,n),e.fire("SetContent",r)):("raw"!==r.format&&(n=Bm({validate:e.validate},e.schema).serialize(e.parser.parse(n,{isRootContent:!0,insert:!0}))),r.content=ho(Ct.fromDom(t))?n:Vr.trim(n),np(e,r.content),r.no_events||e.fire("SetContent",r)),r.content},op=function(e,t,n,r){Pm(e.parser.getNodeFilters(),e.parser.getAttributeFilters(),n);var o=Bm({validate:e.validate},e.schema).serialize(n);return r.content=ho(Ct.fromDom(t))?o:Vr.trim(o),np(e,r.content),r.no_events||e.fire("SetContent",r),n},ip=function(e,t,n){return void 0===n&&(n={}),n.format=n.format?n.format:Qg,n.set=!0,n.content=ep(t)?"":t,ep(t)||n.no_events||(e.fire("BeforeSetContent",n),t=n.content),p.from(e.getBody()).fold(i(t),(function(r){return ep(t)?op(e,r,t,n):rp(e,r,t,n)}))},ap=function(e,t){return e.fire("PreProcess",t)},up=function(e,t){return e.fire("PostProcess",t)},cp=function(e){return e.fire("remove")},sp=function(e){return e.fire("detach")},lp=function(e,t){return e.fire("SwitchMode",{mode:t})},fp=function(e,t,n,r){e.fire("ObjectResizeStart",{target:t,width:n,height:r})},dp=function(e,t,n,r){e.fire("ObjectResized",{target:t,width:n,height:r})},hp={firePreProcess:ap,firePostProcess:up,fireRemove:cp,fireDetach:sp,fireSwitchMode:lp,fireObjectResizeStart:fp,fireObjectResized:dp},mp=Bu.DOM,gp=function(e){mp.setStyle(e.id,"display",e.orgDisplay)},pp=function(e){return p.from(e).each((function(e){return e.destroy()}))},vp=function(e){e.contentAreaContainer=e.formElement=e.container=e.editorContainer=null,e.bodyElement=e.contentDocument=e.contentWindow=null,e.iframeElement=e.targetElm=null,e.selection&&(e.selection=e.selection.win=e.selection.dom=e.selection.dom.doc=null)},yp=function(e){var t=e.formElement;t&&(t._mceOldSubmit&&(t.submit=t._mceOldSubmit,t._mceOldSubmit=null),mp.unbind(t,"submit reset",e.formEventDelegate))},bp=function(e){if(!e.removed){var t=e._selectionOverrides,n=e.editorUpload,r=e.getBody(),o=e.getElement();r&&e.save({is_removing:!0}),e.removed=!0,e.unbindAllNativeEvents(),e.hasHiddenInput&&o&&mp.remove(o.nextSibling),hp.fireRemove(e),e.editorManager.remove(e),!e.inline&&r&&gp(e),hp.fireDetach(e),mp.remove(e.getContainer()),pp(t),pp(n),e.destroy()}},wp=function(e,t){var n=e.selection,r=e.dom;e.destroyed||(t||e.removed?(t||(e.editorManager.off("beforeunload",e._beforeUnload),e.theme&&e.theme.destroy&&e.theme.destroy(),pp(n),pp(r)),yp(e),vp(e),e.destroyed=!0):e.remove())},Cp=Object.prototype.hasOwnProperty,xp=function(e,t){return t},Ep=function(e,t){var n=w(e)&&w(t);return n?kp(e,t):t},zp=function(e){return function(){for(var t=new Array(arguments.length),n=0;n<t.length;n++)t[n]=arguments[n];if(0===t.length)throw new Error("Can't merge zero objects");for(var r={},o=0;o<t.length;o++){var i=t[o];for(var a in i)Cp.call(i,a)&&(r[a]=e(r[a],i[a]))}return r}},kp=zp(Ep),Np=zp(xp),Sp=Gt("sections","settings"),Tp=gt().deviceType,Ap=Tp.isTouch(),Rp=Tp.isPhone(),Bp=["lists","autolink","autosave"],Dp={table_grid:!1,object_resizing:!1,resize:!1},Mp=function(e){var t=C(e)?e.join(" "):e,n=M(b(t)?t.split(" "):[],rt);return H(n,(function(e){return e.length>0}))},Pp=function(e){return H(e,u(B,Bp))},_p=function(e,t){var n=_t(t,(function(t,n){return B(e,n)}));return Sp(n.t,n.f)},Op=function(e,t,n){void 0===n&&(n={});var r=e.sections(),o=r.hasOwnProperty(t)?r[t]:{};return Vr.extend({},n,o)},Hp=function(e,t){return e.sections().hasOwnProperty(t)},Lp=function(e,t,n){var r=e.sections();return Hp(e,t)&&r[t].theme===n},Ip=function(e,t){return Hp(e,t)?e.sections()[t]:{}},Vp=function(e,t,n,r){var o={id:e,theme:"silver",toolbar_drawer:"floating",plugins:"",document_base_url:t,add_form_submit_trigger:!0,submit_patch:!0,add_unload_trigger:!0,convert_urls:!0,relative_urls:!0,remove_script_host:!0,object_resizing:!0,doctype:"<!DOCTYPE html>",visual:!0,font_size_legacy_values:"xx-small,small,medium,large,x-large,xx-large,300%",forced_root_block:"p",hidden_input:!0,inline_styles:!0,convert_fonts_to_spans:!0,indent:!0,indent_before:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist",indent_after:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist",entity_encoding:"named",url_converter:r.convertURL,url_converter_scope:r};return J(J({},o),n?Dp:{})},Fp=function(e){var t={resize:!1,toolbar_drawer:!1,toolbar_sticky:!1},n={menubar:!1};return J(J(J({},Dp),t),e?n:{})},Up=function(e,t){var n=t.external_plugins?t.external_plugins:{};return e&&e.external_plugins?Vr.extend({},e.external_plugins,n):n},jp=function(e,t){return[].concat(Mp(e)).concat(Mp(t))},qp=function(e,t,n,r){var o=Mp(n.forced_plugins),i=Mp(r.plugins),a=Ip(t,"mobile"),u=a.plugins?Mp(a.plugins):i,c=e&&Lp(t,"mobile","mobile")?Pp(u):e&&Hp(t,"mobile")?u:i,s=jp(o,c);return Vr.extend(r,{plugins:s.join(" ")})},Wp=function(e,t){return e&&Hp(t,"mobile")},$p=function(e,t,n,r,o){var i=e?{mobile:Fp(t)}:{},a=_p(["mobile"],kp(i,o)),u=Vr.extend(n,r,a.settings(),Wp(e,a)?Op(a,"mobile"):{},{validate:!0,external_plugins:Up(r,a.settings())});return qp(e,a,r,u)},Kp=function(e,t,n,r,o){var i=Vp(t,n,Ap,e);return $p(Ap,Rp,i,r,o)},Xp=function(e,t,n){return p.from(t.settings[n]).filter(e)},Yp=function(e){var t={};return"string"===typeof e?P(e.indexOf("=")>0?e.split(/[;,](?![^=;,]*(?:[;,]|$))/):e.split(","),(function(e){var n=e.split("=");n.length>1?t[Vr.trim(n[0])]=Vr.trim(n[1]):t[Vr.trim(n[0])]=Vr.trim(n[0])})):t=e,t},Gp=function(e){return function(t){return C(t)&&q(t,e)}},Zp=function(e,t,n,r){var o=t in e.settings?e.settings[t]:n;return"hash"===r?Yp(o):"string"===r?Xp(b,e,t).getOr(n):"number"===r?Xp(k,e,t).getOr(n):"boolean"===r?Xp(E,e,t).getOr(n):"object"===r?Xp(w,e,t).getOr(n):"array"===r?Xp(C,e,t).getOr(n):"string[]"===r?Xp(Gp(b),e,t).getOr(n):"function"===r?Xp(z,e,t).getOr(n):o},Jp=function(e,t){var n=t.dom();return n[e]},Qp=function(e,t){return parseInt($t(t,e),10)},ev=u(Jp,"clientWidth"),tv=u(Jp,"clientHeight"),nv=u(Qp,"margin-top"),rv=u(Qp,"margin-left"),ov=function(e){return e.dom().getBoundingClientRect()},iv=function(e,t,n){var r=ev(e),o=tv(e);return t>=0&&n>=0&&t<=r&&n<=o},av=function(e,t,n,r){var o=ov(t),i=e?o.left+t.dom().clientLeft+rv(t):0,a=e?o.top+t.dom().clientTop+nv(t):0,u=n-i,c=r-a;return{x:u,y:c}},uv=function(e,t,n){var r=Ct.fromDom(e.getBody()),o=e.inline?r:pn(r),i=av(e.inline,o,t,n);return iv(o,i.x,i.y)},cv=function(e){return p.from(e).map(Ct.fromDom)},sv=function(e){var t=e.inline?e.getBody():e.getContentAreaContainer();return cv(t).map((function(e){return mn(gn(e),e)})).getOr(!1)},lv={isXYInContentArea:uv,isEditorAttachedToDom:sv};function fv(){var e=function(){throw new Error("Theme did not provide a NotificationManager implementation.")};return{open:e,close:e,reposition:e,getArgs:e}}function dv(e){var t=[],n=function(){var t=e.theme;return t&&t.getNotificationManagerImpl?t.getNotificationManagerImpl():fv()},r=function(){return p.from(t[0])},o=function(e,t){return e.type===t.type&&e.text===t.text&&!e.progressBar&&!e.timeout&&!t.progressBar&&!t.timeout},i=function(){t.length>0&&n().reposition(t)},a=function(e){t.push(e)},u=function(e){F(t,(function(t){return t===e})).each((function(e){t.splice(e,1)}))},c=function(r){if(!e.removed&&lv.isEditorAttachedToDom(e))return V(t,(function(e){return o(n().getArgs(e),r)})).getOrThunk((function(){e.editorManager.setActive(e);var t=n().open(r,(function(){u(t),i()}));return a(t),i(),t}))},s=function(){r().each((function(e){n().close(e),u(e),i()}))},l=function(){return t},f=function(e){e.on("SkinLoaded",(function(){var t=e.settings.service_message;t&&c({text:t,type:"warning",timeout:0})})),e.on("ResizeEditor ResizeWindow NodeChange",(function(){ur.requestAnimationFrame(i)})),e.on("remove",(function(){P(t.slice(),(function(e){n().close(e)}))}))};return f(e),{open:c,close:s,getNotifications:l}}function hv(){var e=function(){throw new Error("Theme did not provide a WindowManager implementation.")};return{open:e,openUrl:e,alert:e,confirm:e,close:e,getParams:e,setParams:e}}var mv=function(e){var t=[],n=function(){var t=e.theme;return t&&t.getWindowManagerImpl?t.getWindowManagerImpl():hv()},r=function(e,t){return function(){return t?t.apply(e,arguments):void 0}},o=function(t){e.fire("OpenWindow",{dialog:t})},i=function(t){e.fire("CloseWindow",{dialog:t})},a=function(e){t.push(e),o(e)},u=function(n){i(n),t=H(t,(function(e){return e!==n})),0===t.length&&e.focus()},c=function(){return p.from(t[t.length-1])},s=function(t){e.editorManager.setActive(e),bg.store(e);var n=t();return a(n),n},l=function(e,t){return s((function(){return n().open(e,t,u)}))},f=function(e){return s((function(){return n().openUrl(e,u)}))},d=function(e,t,o){n().alert(e,r(o||this,t))},h=function(e,t,o){n().confirm(e,r(o||this,t))},m=function(){c().each((function(e){n().close(e),u(e)}))};return e.on("remove",(function(){P(t,(function(e){n().close(e)}))})),{open:l,openUrl:f,alert:d,confirm:h,close:m}},gv=function(e,t){e.notificationManager.open({type:"error",text:t})},pv=function(e,t){e._skinLoaded?gv(e,t):e.on("SkinLoaded",(function(){gv(e,t)}))},vv=function(e,t){pv(e,Zu.translate(["Failed to upload image: {0}",t]))},yv=function(e){n.console.error(e)},bv=function(e,t,n){return n?"Failed to load "+e+": "+n+" from url "+t:"Failed to load "+e+" url: "+t},wv=function(e,t){yv(bv("plugin",e,t))},Cv=function(e,t){yv(bv("icons",e,t))},xv=function(e,t){yv(bv("language",e,t))},Ev=function(e,t,n){var r=Zu.translate(["Failed to initialize plugin: {0}",t]);zv(r,n),pv(e,r)},zv=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var o=n.window.console;o&&(o.error?o.error.apply(o,arguments):o.log.apply(o,arguments))},kv={pluginLoadError:wv,iconsLoadError:Cv,languageLoadError:xv,pluginInitError:Ev,uploadError:vv,displayError:pv,initError:zv},Nv=function(){return{"accessibility-check":'<svg width="24" height="24"><path d="M12 2a2 2 0 0 1 2 2 2 2 0 0 1-2 2 2 2 0 0 1-2-2c0-1.1.9-2 2-2zm8 7h-5v12c0 .6-.4 1-1 1a1 1 0 0 1-1-1v-5c0-.6-.4-1-1-1a1 1 0 0 0-1 1v5c0 .6-.4 1-1 1a1 1 0 0 1-1-1V9H4a1 1 0 1 1 0-2h16c.6 0 1 .4 1 1s-.4 1-1 1z" fill-rule="nonzero"/></svg>',"action-next":'<svg width="24" height="24"><path fill-rule="nonzero" d="M5.7 7.3a1 1 0 0 0-1.4 1.4l7.7 7.7 7.7-7.7a1 1 0 1 0-1.4-1.4L12 13.6 5.7 7.3z"/></svg>',"action-prev":'<svg width="24" height="24"><path fill-rule="nonzero" d="M18.3 15.7a1 1 0 0 0 1.4-1.4L12 6.6l-7.7 7.7a1 1 0 0 0 1.4 1.4L12 9.4l6.3 6.3z"/></svg>',"align-center":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 1 1 0-2zm3 4h8c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 1 1 0-2zm0 8h8c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 0 1 0-2zm-3-4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 0 1 0-2z" fill-rule="evenodd"/></svg>',"align-justify":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 1 1 0-2zm0 4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 1 1 0-2zm0 4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 0 1 0-2zm0 4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 0 1 0-2z" fill-rule="evenodd"/></svg>',"align-left":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 1 1 0-2zm0 4h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 1 1 0-2zm0 8h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 0 1 0-2zm0-4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 0 1 0-2z" fill-rule="evenodd"/></svg>',"align-none":'<svg width="24" height="24"><path d="M14.2 5L13 7H5a1 1 0 1 1 0-2h9.2zm4 0h.8a1 1 0 0 1 0 2h-2l1.2-2zm-6.4 4l-1.2 2H5a1 1 0 0 1 0-2h6.8zm4 0H19a1 1 0 0 1 0 2h-4.4l1.2-2zm-6.4 4l-1.2 2H5a1 1 0 0 1 0-2h4.4zm4 0H19a1 1 0 0 1 0 2h-6.8l1.2-2zM7 17l-1.2 2H5a1 1 0 0 1 0-2h2zm4 0h8a1 1 0 0 1 0 2H9.8l1.2-2zm5.2-13.5l1.3.7-9.7 16.3-1.3-.7 9.7-16.3z" fill-rule="evenodd"/></svg>',"align-right":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 1 1 0-2zm6 4h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2zm0 8h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2zm-6-4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 0 1 0-2z" fill-rule="evenodd"/></svg>',"arrow-left":'<svg width="24" height="24"><path d="M5.6 13l12 6a1 1 0 0 0 1.4-1V6a1 1 0 0 0-1.4-.9l-12 6a1 1 0 0 0 0 1.8z" fill-rule="evenodd"/></svg>',"arrow-right":'<svg width="24" height="24"><path d="M18.5 13l-12 6A1 1 0 0 1 5 18V6a1 1 0 0 1 1.4-.9l12 6a1 1 0 0 1 0 1.8z" fill-rule="evenodd"/></svg>',bold:'<svg width="24" height="24"><path d="M7.8 19c-.3 0-.5 0-.6-.2l-.2-.5V5.7c0-.2 0-.4.2-.5l.6-.2h5c1.5 0 2.7.3 3.5 1 .7.6 1.1 1.4 1.1 2.5a3 3 0 0 1-.6 1.9c-.4.6-1 1-1.6 1.2.4.1.9.3 1.3.6s.8.7 1 1.2c.4.4.5 1 .5 1.6 0 1.3-.4 2.3-1.3 3-.8.7-2.1 1-3.8 1H7.8zm5-8.3c.6 0 1.2-.1 1.6-.5.4-.3.6-.7.6-1.3 0-1.1-.8-1.7-2.3-1.7H9.3v3.5h3.4zm.5 6c.7 0 1.3-.1 1.7-.4.4-.4.6-.9.6-1.5s-.2-1-.7-1.4c-.4-.3-1-.4-2-.4H9.4v3.8h4z" fill-rule="evenodd"/></svg>',bookmark:'<svg width="24" height="24"><path d="M6 4v17l6-4 6 4V4c0-.6-.4-1-1-1H7a1 1 0 0 0-1 1z" fill-rule="nonzero"/></svg>',"border-width":'<svg width="24" height="24"><path d="M5 14.8h14a1 1 0 0 1 0 2H5a1 1 0 0 1 0-2zm-.5 3.7h15c.3 0 .5.2.5.5s-.2.5-.5.5h-15a.5.5 0 1 1 0-1zm.5-8.3h14c.6 0 1 .4 1 1v1c0 .5-.4 1-1 1H5a1 1 0 0 1-1-1v-1c0-.6.4-1 1-1zm0-5.7h14c.6 0 1 .4 1 1v2c0 .6-.4 1-1 1H5a1 1 0 0 1-1-1v-2c0-.6.4-1 1-1z" fill-rule="evenodd"/></svg>',brightness:'<svg width="24" height="24"><path d="M12 17c.3 0 .5.1.7.3.2.2.3.4.3.7v1c0 .3-.1.5-.3.7a1 1 0 0 1-.7.3 1 1 0 0 1-.7-.3 1 1 0 0 1-.3-.7v-1c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3zm0-10a1 1 0 0 1-.7-.3A1 1 0 0 1 11 6V5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3.3 0 .5.1.7.3.2.2.3.4.3.7v1c0 .3-.1.5-.3.7a1 1 0 0 1-.7.3zm7 4c.3 0 .5.1.7.3.2.2.3.4.3.7 0 .3-.1.5-.3.7a1 1 0 0 1-.7.3h-1a1 1 0 0 1-.7-.3 1 1 0 0 1-.3-.7c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h1zM7 12c0 .3-.1.5-.3.7a1 1 0 0 1-.7.3H5a1 1 0 0 1-.7-.3A1 1 0 0 1 4 12c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h1c.3 0 .5.1.7.3.2.2.3.4.3.7zm10 3.5l.7.8c.2.1.3.4.3.6 0 .3-.1.6-.3.8a1 1 0 0 1-.8.3 1 1 0 0 1-.6-.3l-.8-.7a1 1 0 0 1-.3-.8c0-.2.1-.5.3-.7a1 1 0 0 1 1.4 0zm-10-7l-.7-.8a1 1 0 0 1-.3-.6c0-.3.1-.6.3-.8.2-.2.5-.3.8-.3.2 0 .5.1.7.3l.7.7c.2.2.3.5.3.8 0 .2-.1.5-.3.7a1 1 0 0 1-.7.3 1 1 0 0 1-.8-.3zm10 0a1 1 0 0 1-.8.3 1 1 0 0 1-.7-.3 1 1 0 0 1-.3-.7c0-.3.1-.6.3-.8l.8-.7c.1-.2.4-.3.6-.3.3 0 .6.1.8.3.2.2.3.5.3.8 0 .2-.1.5-.3.7l-.7.7zm-10 7c.2-.2.5-.3.8-.3.2 0 .5.1.7.3a1 1 0 0 1 0 1.4l-.8.8a1 1 0 0 1-.6.3 1 1 0 0 1-.8-.3 1 1 0 0 1-.3-.8c0-.2.1-.5.3-.6l.7-.8zM12 8a4 4 0 0 1 3.7 2.4 4 4 0 0 1 0 3.2A4 4 0 0 1 12 16a4 4 0 0 1-3.7-2.4 4 4 0 0 1 0-3.2A4 4 0 0 1 12 8zm0 6.5c.7 0 1.3-.2 1.8-.7.5-.5.7-1.1.7-1.8s-.2-1.3-.7-1.8c-.5-.5-1.1-.7-1.8-.7s-1.3.2-1.8.7c-.5.5-.7 1.1-.7 1.8s.2 1.3.7 1.8c.5.5 1.1.7 1.8.7z" fill-rule="evenodd"/></svg>',browse:'<svg width="24" height="24"><path d="M19 4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-4v-2h4V8H5v10h4v2H5a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h14zm-8 9.4l-2.3 2.3a1 1 0 1 1-1.4-1.4l4-4a1 1 0 0 1 1.4 0l4 4a1 1 0 0 1-1.4 1.4L13 13.4V20a1 1 0 0 1-2 0v-6.6z" fill-rule="nonzero"/></svg>',cancel:'<svg width="24" height="24"><path d="M12 4.6a7.4 7.4 0 1 1 0 14.8 7.4 7.4 0 0 1 0-14.8zM12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18zm0 8L14.8 8l1 1.1-2.7 2.8 2.7 2.7-1.1 1.1-2.7-2.7-2.7 2.7-1-1.1 2.6-2.7-2.7-2.7 1-1.1 2.8 2.7z" fill-rule="nonzero"/></svg>',"change-case":'<svg width="24" height="24"><path d="M18.4 18.2v-.6c-.5.8-1.3 1.2-2.4 1.2-2.2 0-3.3-1.6-3.3-4.8 0-3.1 1-4.7 3.3-4.7 1.1 0 1.8.3 2.4 1.1v-.6c0-.5.4-.8.8-.8s.8.3.8.8v8.4c0 .5-.4.8-.8.8a.8.8 0 0 1-.8-.8zm-2-7.4c-1.3 0-1.8.9-1.8 3.2 0 2.4.5 3.3 1.7 3.3 1.3 0 1.8-.9 1.8-3.2 0-2.4-.5-3.3-1.7-3.3zM10 15.7H5.5l-.8 2.6a1 1 0 0 1-1 .7h-.2a.7.7 0 0 1-.7-1l4-12a1 1 0 1 1 2 0l4 12a.7.7 0 0 1-.8 1h-.2a1 1 0 0 1-1-.7l-.8-2.6zm-.3-1.5l-2-6.5-1.9 6.5h3.9z" fill-rule="evenodd"/></svg>',"character-count":'<svg width="24" height="24"><path d="M4 11.5h16v1H4v-1zm4.8-6.8V10H7.7V5.8h-1v-1h2zM11 8.3V9h2v1h-3V7.7l2-1v-.9h-2v-1h3v2.4l-2 1zm6.3-3.4V10h-3.1V9h2.1V8h-2.1V6.8h2.1v-1h-2.1v-1h3.1zM5.8 16.4c0-.5.2-.8.5-1 .2-.2.6-.3 1.2-.3l.8.1c.2 0 .4.2.5.3l.4.4v2.8l.2.3H8.2v-.1-.2l-.6.3H7c-.4 0-.7 0-1-.2a1 1 0 0 1-.3-.9c0-.3 0-.6.3-.8.3-.2.7-.4 1.2-.4l.6-.2h.3v-.2l-.1-.2a.8.8 0 0 0-.5-.1 1 1 0 0 0-.4 0l-.3.4h-1zm2.3.8h-.2l-.2.1-.4.1a1 1 0 0 0-.4.2l-.2.2.1.3.5.1h.4l.4-.4v-.6zm2-3.4h1.2v1.7l.5-.3h.5c.5 0 .9.1 1.2.5.3.4.5.8.5 1.4 0 .6-.2 1.1-.5 1.5-.3.4-.7.6-1.3.6l-.6-.1-.4-.4v.4h-1.1v-5.4zm1.1 3.3c0 .3 0 .6.2.8a.7.7 0 0 0 1.2 0l.2-.8c0-.4 0-.6-.2-.8a.7.7 0 0 0-.6-.3l-.6.3-.2.8zm6.1-.5c0-.2 0-.3-.2-.4a.8.8 0 0 0-.5-.2c-.3 0-.5.1-.6.3l-.2.9c0 .3 0 .6.2.8.1.2.3.3.6.3.2 0 .4 0 .5-.2l.2-.4h1.1c0 .5-.3.8-.6 1.1a2 2 0 0 1-1.3.4c-.5 0-1-.2-1.3-.6a2 2 0 0 1-.5-1.4c0-.6.1-1.1.5-1.5.3-.4.8-.5 1.4-.5.5 0 1 0 1.2.3.4.3.5.7.5 1.2h-1v-.1z" fill-rule="evenodd"/></svg>',"checklist-rtl":'<svg width="24" height="24"><path d="M5 17h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 0 1 0-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 0 1 0-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 1 1 0-2zm14.2 11c.2-.4.6-.5.9-.3.3.2.4.6.2 1L18 20c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 0 1 0-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L18 14c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 0 1 0-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L18 8c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 0 1 0-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8z" fill-rule="evenodd"/></svg>',checklist:'<svg width="24" height="24"><path d="M11 17h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2zm0-6h8a1 1 0 0 1 0 2h-8a1 1 0 0 1 0-2zM7.2 16c.2-.4.6-.5.9-.3.3.2.4.6.2 1L6 20c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 0 1 0-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L6 14c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 0 1 0-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L6 8c-.2.3-.7.4-1 0L3.8 6.9a.7.7 0 0 1 0-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8z" fill-rule="evenodd"/></svg>',checkmark:'<svg width="24" height="24"><path d="M18.2 5.4a1 1 0 0 1 1.6 1.2l-8 12a1 1 0 0 1-1.5.1l-5-5a1 1 0 1 1 1.4-1.4l4.1 4.1 7.4-11z" fill-rule="nonzero"/></svg>',"chevron-down":'<svg width="10" height="10"><path d="M8.7 2.2c.3-.3.8-.3 1 0 .4.4.4.9 0 1.2L5.7 7.8c-.3.3-.9.3-1.2 0L.2 3.4a.8.8 0 0 1 0-1.2c.3-.3.8-.3 1.1 0L5 6l3.7-3.8z" fill-rule="nonzero"/></svg>',"chevron-left":'<svg width="10" height="10"><path d="M7.8 1.3L4 5l3.8 3.7c.3.3.3.8 0 1-.4.4-.9.4-1.2 0L2.2 5.7a.8.8 0 0 1 0-1.2L6.6.2C7 0 7.4 0 7.8.2c.3.3.3.8 0 1.1z" fill-rule="nonzero"/></svg>',"chevron-right":'<svg width="10" height="10"><path d="M2.2 1.3a.8.8 0 0 1 0-1c.4-.4.9-.4 1.2 0l4.4 4.1c.3.4.3.9 0 1.2L3.4 9.8c-.3.3-.8.3-1.2 0a.8.8 0 0 1 0-1.1L6 5 2.2 1.3z" fill-rule="nonzero"/></svg>',"chevron-up":'<svg width="10" height="10"><path d="M8.7 7.8L5 4 1.3 7.8c-.3.3-.8.3-1 0a.8.8 0 0 1 0-1.2l4.1-4.4c.3-.3.9-.3 1.2 0l4.2 4.4c.3.3.3.9 0 1.2-.3.3-.8.3-1.1 0z" fill-rule="nonzero"/></svg>',close:'<svg width="24" height="24"><path d="M17.3 8.2L13.4 12l3.9 3.8a1 1 0 0 1-1.5 1.5L12 13.4l-3.8 3.9a1 1 0 0 1-1.5-1.5l3.9-3.8-3.9-3.8a1 1 0 0 1 1.5-1.5l3.8 3.9 3.8-3.9a1 1 0 0 1 1.5 1.5z" fill-rule="evenodd"/></svg>',"code-sample":'<svg width="24" height="26"><path d="M7.1 11a2.8 2.8 0 0 1-.8 2 2.8 2.8 0 0 1 .8 2v1.7c0 .3.1.6.4.8.2.3.5.4.8.4.3 0 .4.2.4.4v.8c0 .2-.1.4-.4.4-.7 0-1.4-.3-2-.8-.5-.6-.8-1.3-.8-2V15c0-.3-.1-.6-.4-.8-.2-.3-.5-.4-.8-.4a.4.4 0 0 1-.4-.4v-.8c0-.2.2-.4.4-.4.3 0 .6-.1.8-.4.3-.2.4-.5.4-.8V9.3c0-.7.3-1.4.8-2 .6-.5 1.3-.8 2-.8.3 0 .4.2.4.4v.8c0 .2-.1.4-.4.4-.3 0-.6.1-.8.4-.3.2-.4.5-.4.8V11zm9.8 0V9.3c0-.3-.1-.6-.4-.8-.2-.3-.5-.4-.8-.4a.4.4 0 0 1-.4-.4V7c0-.2.1-.4.4-.4.7 0 1.4.3 2 .8.5.6.8 1.3.8 2V11c0 .3.1.6.4.8.2.3.5.4.8.4.2 0 .4.2.4.4v.8c0 .2-.2.4-.4.4-.3 0-.6.1-.8.4-.3.2-.4.5-.4.8v1.7c0 .7-.3 1.4-.8 2-.6.5-1.3.8-2 .8a.4.4 0 0 1-.4-.4v-.8c0-.2.1-.4.4-.4.3 0 .6-.1.8-.4.3-.2.4-.5.4-.8V15a2.8 2.8 0 0 1 .8-2 2.8 2.8 0 0 1-.8-2zm-3.3-.4c0 .4-.1.8-.5 1.1-.3.3-.7.5-1.1.5-.4 0-.8-.2-1.1-.5-.4-.3-.5-.7-.5-1.1 0-.5.1-.9.5-1.2.3-.3.7-.4 1.1-.4.4 0 .8.1 1.1.4.4.3.5.7.5 1.2zM12 13c.4 0 .8.1 1.1.5.4.3.5.7.5 1.1 0 1-.1 1.6-.5 2a3 3 0 0 1-1.1 1c-.4.3-.8.4-1.1.4a.5.5 0 0 1-.5-.5V17a3 3 0 0 0 1-.2l.6-.6c-.6 0-1-.2-1.3-.5-.2-.3-.3-.7-.3-1 0-.5.1-1 .5-1.2.3-.4.7-.5 1.1-.5z" fill-rule="evenodd"/></svg>',"color-levels":'<svg width="24" height="24"><path d="M17.5 11.4A9 9 0 0 1 18 14c0 .5 0 1-.2 1.4 0 .4-.3.9-.5 1.3a6.2 6.2 0 0 1-3.7 3 5.7 5.7 0 0 1-3.2 0A5.9 5.9 0 0 1 7.6 18a6.2 6.2 0 0 1-1.4-2.6 6.7 6.7 0 0 1 0-2.8c0-.4.1-.9.3-1.3a13.6 13.6 0 0 1 2.3-4A20 20 0 0 1 12 4a26.4 26.4 0 0 1 3.2 3.4 18.2 18.2 0 0 1 2.3 4zm-2 4.5c.4-.7.5-1.4.5-2a7.3 7.3 0 0 0-1-3.2c.2.6.2 1.2.2 1.9a4.5 4.5 0 0 1-1.3 3 5.3 5.3 0 0 1-2.3 1.5 4.9 4.9 0 0 1-2 .1 4.3 4.3 0 0 0 2.4.8 4 4 0 0 0 2-.6 4 4 0 0 0 1.5-1.5z" fill-rule="evenodd"/></svg>',"color-picker":'<svg width="24" height="24"><path d="M12 3a9 9 0 0 0 0 18 1.5 1.5 0 0 0 1.1-2.5c-.2-.3-.4-.6-.4-1 0-.8.7-1.5 1.5-1.5H16a5 5 0 0 0 5-5c0-4.4-4-8-9-8zm-5.5 9a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm3-4a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm3 4a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z" fill-rule="nonzero"/></svg>',"color-swatch-remove-color":'<svg width="24" height="24"><path stroke="#000" stroke-width="2" d="M21 3L3 21" fill-rule="evenodd"/></svg>',"color-swatch":'<svg width="24" height="24"><rect x="3" y="3" width="18" height="18" rx="1" fill-rule="evenodd"/></svg>',"comment-add":'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M9 19l3-2h7c.6 0 1-.4 1-1V6c0-.6-.4-1-1-1H5a1 1 0 0 0-1 1v10c0 .6.4 1 1 1h4v2zm-2 4v-4H5a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3h14a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3h-6.4L7 23z"/><path d="M13 10h2a1 1 0 0 1 0 2h-2v2a1 1 0 0 1-2 0v-2H9a1 1 0 0 1 0-2h2V8a1 1 0 0 1 2 0v2z"/></g></svg>',comment:'<svg width="24" height="24"><path fill-rule="nonzero" d="M9 19l3-2h7c.6 0 1-.4 1-1V6c0-.6-.4-1-1-1H5a1 1 0 0 0-1 1v10c0 .6.4 1 1 1h4v2zm-2 4v-4H5a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3h14a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3h-6.4L7 23z"/></svg>',contrast:'<svg width="24" height="24"><path d="M12 4a7.8 7.8 0 0 1 5.7 2.3A8 8 0 1 1 12 4zm-6 8a6 6 0 0 0 6 6V6a6 6 0 0 0-6 6z" fill-rule="evenodd"/></svg>',copy:'<svg width="24" height="24"><path d="M16 3H6a2 2 0 0 0-2 2v11h2V5h10V3zm1 4a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2V9c0-1.2.9-2 2-2h7zm0 12V9h-7v10h7z" fill-rule="nonzero"/></svg>',crop:'<svg width="24" height="24"><path d="M17 8v7h2c.6 0 1 .4 1 1s-.4 1-1 1h-2v2c0 .6-.4 1-1 1a1 1 0 0 1-1-1v-2H7V9H5a1 1 0 1 1 0-2h2V5c0-.6.4-1 1-1s1 .4 1 1v2h7l3-3 1 1-3 3zM9 9v5l5-5H9zm1 6h5v-5l-5 5z" fill-rule="evenodd"/></svg>',cut:'<svg width="24" height="24"><path d="M18 15c.6.7 1 1.4 1 2.3 0 .8-.2 1.5-.7 2l-.8.5-1 .2c-.4 0-.8 0-1.2-.3a3.9 3.9 0 0 1-2.1-2.2c-.2-.5-.3-1-.2-1.5l-1-1-1 1c0 .5 0 1-.2 1.5-.1.5-.4 1-.9 1.4-.3.4-.7.6-1.2.8l-1.2.3c-.4 0-.7 0-1-.2-.3 0-.6-.3-.8-.5-.5-.5-.8-1.2-.7-2 0-.9.4-1.6 1-2.2A3.7 3.7 0 0 1 8.6 14H9l1-1-4-4-.5-1a3.3 3.3 0 0 1 0-2c0-.4.3-.7.5-1l6 6 6-6 .5 1a3.3 3.3 0 0 1 0 2c0 .4-.3.7-.5 1l-4 4 1 1h.5c.4 0 .8 0 1.2.3.5.2.9.4 1.2.8zm-8.5 2.2l.1-.4v-.3-.4a1 1 0 0 0-.2-.5 1 1 0 0 0-.4-.2 1.6 1.6 0 0 0-.8 0 2.6 2.6 0 0 0-.8.3 2.5 2.5 0 0 0-.9 1.1l-.1.4v.7l.2.5.5.2h.7a2.5 2.5 0 0 0 .8-.3 2.8 2.8 0 0 0 1-1zm2.5-2.8c.4 0 .7-.1 1-.4.3-.3.4-.6.4-1s-.1-.7-.4-1c-.3-.3-.6-.4-1-.4s-.7.1-1 .4c-.3.3-.4.6-.4 1s.1.7.4 1c.3.3.6.4 1 .4zm5.4 4l.2-.5v-.4-.3a2.6 2.6 0 0 0-.3-.8 2.4 2.4 0 0 0-.7-.7 2.5 2.5 0 0 0-.8-.3 1.5 1.5 0 0 0-.8 0 1 1 0 0 0-.4.2 1 1 0 0 0-.2.5 1.5 1.5 0 0 0 0 .7v.4l.3.4.3.4a2.8 2.8 0 0 0 .8.5l.4.1h.7l.5-.2z" fill-rule="evenodd"/></svg>',"document-properties":'<svg width="24" height="24"><path d="M14.4 3H7a2 2 0 0 0-2 2v14c0 1.1.9 2 2 2h10a2 2 0 0 0 2-2V7.6L14.4 3zM17 19H7V5h6v4h4v10z" fill-rule="nonzero"/></svg>',drag:'<svg width="24" height="24"><path d="M13 5h2v2h-2V5zm0 4h2v2h-2V9zM9 9h2v2H9V9zm4 4h2v2h-2v-2zm-4 0h2v2H9v-2zm0 4h2v2H9v-2zm4 0h2v2h-2v-2zM9 5h2v2H9V5z" fill-rule="evenodd"/></svg>',duplicate:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M16 3v2H6v11H4V5c0-1.1.9-2 2-2h10zm3 8h-2V9h-7v10h9a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2V9c0-1.2.9-2 2-2h7a2 2 0 0 1 2 2v2z"/><path d="M17 14h1a1 1 0 0 1 0 2h-1v1a1 1 0 0 1-2 0v-1h-1a1 1 0 0 1 0-2h1v-1a1 1 0 0 1 2 0v1z"/></g></svg>',"edit-block":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19.8 8.8l-9.4 9.4c-.2.2-.5.4-.9.4l-5.4 1.2 1.2-5.4.5-.8 9.4-9.4c.7-.7 1.8-.7 2.5 0l2.1 2.1c.7.7.7 1.8 0 2.5zm-2-.2l1-.9v-.3l-2.2-2.2a.3.3 0 0 0-.3 0l-1 1L18 8.5zm-1 1l-2.5-2.4-6 6 2.5 2.5 6-6zm-7 7.1l-2.6-2.4-.3.3-.1.2-.7 3 3.1-.6h.1l.4-.5z"/></svg>',"edit-image":'<svg width="24" height="24"><path d="M18 16h2V7a2 2 0 0 0-2-2H7v2h11v9zM6 17h15a1 1 0 0 1 0 2h-1v1a1 1 0 0 1-2 0v-1H6a2 2 0 0 1-2-2V7H3a1 1 0 1 1 0-2h1V4a1 1 0 1 1 2 0v13zm3-5.3l1.3 2 3-4.7 3.7 6H7l2-3.3z" fill-rule="nonzero"/></svg>',"embed-page":'<svg width="24" height="24"><path d="M19 6V5H5v14h2A13 13 0 0 1 19 6zm0 1.4c-.8.8-1.6 2.4-2.2 4.6H19V7.4zm0 5.6h-2.4c-.4 1.8-.6 3.8-.6 6h3v-6zm-4 6c0-2.2.2-4.2.6-6H13c-.7 1.8-1.1 3.8-1.1 6h3zm-4 0c0-2.2.4-4.2 1-6H9.6A12 12 0 0 0 8 19h3zM4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 0 1-1-1V4c0-.6.4-1 1-1zm11.8 9c.4-1.9 1-3.4 1.8-4.5a9.2 9.2 0 0 0-4 4.5h2.2zm-3.4 0a12 12 0 0 1 2.8-4 12 12 0 0 0-5 4h2.2z" fill-rule="nonzero"/></svg>',embed:'<svg width="24" height="24"><path d="M4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 0 1-1-1V4c0-.6.4-1 1-1zm1 2v14h14V5H5zm4.8 2.6l5.6 4a.5.5 0 0 1 0 .8l-5.6 4A.5.5 0 0 1 9 16V8a.5.5 0 0 1 .8-.4z" fill-rule="nonzero"/></svg>',emoji:'<svg width="24" height="24"><path d="M9 11c.6 0 1-.4 1-1s-.4-1-1-1a1 1 0 0 0-1 1c0 .6.4 1 1 1zm6 0c.6 0 1-.4 1-1s-.4-1-1-1a1 1 0 0 0-1 1c0 .6.4 1 1 1zm-3 5.5c2.1 0 4-1.5 4.4-3.5H7.6c.5 2 2.3 3.5 4.4 3.5zM12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm0 14.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13z" fill-rule="nonzero"/></svg>',fill:'<svg width="24" height="26"><path d="M16.6 12l-9-9-1.4 1.4 2.4 2.4-5.2 5.1c-.5.6-.5 1.6 0 2.2L9 19.6a1.5 1.5 0 0 0 2.2 0l5.5-5.5c.5-.6.5-1.6 0-2.2zM5.2 13L10 8.2l4.8 4.8H5.2zM19 14.5s-2 2.2-2 3.5c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.3-2-3.5-2-3.5z" fill-rule="nonzero"/></svg>',"flip-horizontally":'<svg width="24" height="24"><path d="M14 19h2v-2h-2v2zm4-8h2V9h-2v2zM4 7v10c0 1.1.9 2 2 2h3v-2H6V7h3V5H6a2 2 0 0 0-2 2zm14-2v2h2a2 2 0 0 0-2-2zm-7 16h2V3h-2v18zm7-6h2v-2h-2v2zm-4-8h2V5h-2v2zm4 12a2 2 0 0 0 2-2h-2v2z" fill-rule="nonzero"/></svg>',"flip-vertically":'<svg width="24" height="24"><path d="M5 14v2h2v-2H5zm8 4v2h2v-2h-2zm4-14H7a2 2 0 0 0-2 2v3h2V6h10v3h2V6a2 2 0 0 0-2-2zm2 14h-2v2a2 2 0 0 0 2-2zM3 11v2h18v-2H3zm6 7v2h2v-2H9zm8-4v2h2v-2h-2zM5 18c0 1.1.9 2 2 2v-2H5z" fill-rule="nonzero"/></svg>',"format-painter":'<svg width="24" height="24"><path d="M18 5V4c0-.5-.4-1-1-1H5a1 1 0 0 0-1 1v4c0 .6.5 1 1 1h12c.6 0 1-.4 1-1V7h1v4H9v9c0 .6.4 1 1 1h2c.6 0 1-.4 1-1v-7h8V5h-3z" fill-rule="nonzero"/></svg>',fullscreen:'<svg width="24" height="24"><path d="M15.3 10l-1.2-1.3 2.9-3h-2.3a.9.9 0 1 1 0-1.7H19c.5 0 .9.4.9.9v4.4a.9.9 0 1 1-1.8 0V7l-2.9 3zm0 4l3 3v-2.3a.9.9 0 1 1 1.7 0V19c0 .5-.4.9-.9.9h-4.4a.9.9 0 1 1 0-1.8H17l-3-2.9 1.3-1.2zM10 15.4l-2.9 3h2.3a.9.9 0 1 1 0 1.7H5a.9.9 0 0 1-.9-.9v-4.4a.9.9 0 1 1 1.8 0V17l2.9-3 1.2 1.3zM8.7 10L5.7 7v2.3a.9.9 0 0 1-1.7 0V5c0-.5.4-.9.9-.9h4.4a.9.9 0 0 1 0 1.8H7l3 2.9-1.3 1.2z" fill-rule="nonzero"/></svg>',gallery:'<svg width="24" height="24"><path fill-rule="nonzero" d="M5 15.7l2.3-2.2c.3-.3.7-.3 1 0L11 16l5.1-5c.3-.4.8-.4 1 0l2 1.9V8H5v7.7zM5 18V19h3l1.8-1.9-2-2L5 17.9zm14-3l-2.5-2.4-6.4 6.5H19v-4zM4 6h16c.6 0 1 .4 1 1v13c0 .6-.4 1-1 1H4a1 1 0 0 1-1-1V7c0-.6.4-1 1-1zm6 7a2 2 0 1 1 0-4 2 2 0 0 1 0 4zM4.5 4h15a.5.5 0 1 1 0 1h-15a.5.5 0 0 1 0-1zm2-2h11a.5.5 0 1 1 0 1h-11a.5.5 0 0 1 0-1z"/></svg>',gamma:'<svg width="24" height="24"><path d="M4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 0 1-1-1V4c0-.6.4-1 1-1zm1 2v14h14V5H5zm6.5 11.8V14L9.2 8.7a5.1 5.1 0 0 0-.4-.8l-.1-.2H8 8v-1l.3-.1.3-.1h.7a1 1 0 0 1 .6.5l.1.3a8.5 8.5 0 0 1 .3.6l1.9 4.6 2-5.2a1 1 0 0 1 1-.6.5.5 0 0 1 .5.6L13 14v2.8a.7.7 0 0 1-1.4 0z" fill-rule="nonzero"/></svg>',help:'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M12 5.5a6.5 6.5 0 0 0-6 9 6.3 6.3 0 0 0 1.4 2l1 1a6.3 6.3 0 0 0 3.6 1 6.5 6.5 0 0 0 6-9 6.3 6.3 0 0 0-1.4-2l-1-1a6.3 6.3 0 0 0-3.6-1zM12 4a7.8 7.8 0 0 1 5.7 2.3A8 8 0 1 1 12 4z"/><path d="M9.6 9.7a.7.7 0 0 1-.7-.8c0-1.1 1.5-1.8 3.2-1.8 1.8 0 3.2.8 3.2 2.4 0 1.4-.4 2.1-1.5 2.8-.2 0-.3.1-.3.2a2 2 0 0 0-.8.8.8.8 0 0 1-1.4-.6c.3-.7.8-1 1.3-1.5l.4-.2c.7-.4.8-.6.8-1.5 0-.5-.6-.9-1.7-.9-.5 0-1 .1-1.4.3-.2 0-.3.1-.3.2v-.2c0 .4-.4.8-.8.8z" fill-rule="nonzero"/><circle cx="12" cy="16" r="1"/></g></svg>',"highlight-bg-color":'<svg width="24" height="24"><g fill-rule="evenodd"><path id="tox-icon-highlight-bg-color__color" d="M3 18h18v3H3z"/><path fill-rule="nonzero" d="M7.7 16.7H3l3.3-3.3-.7-.8L10.2 8l4 4.1-4 4.2c-.2.2-.6.2-.8 0l-.6-.7-1.1 1.1zm5-7.5L11 7.4l3-2.9a2 2 0 0 1 2.6 0L18 6c.7.7.7 2 0 2.7l-2.9 2.9-1.8-1.8-.5-.6"/></g></svg>',home:'<svg width="24" height="24"><path fill-rule="nonzero" d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/></svg>',"horizontal-rule":'<svg width="24" height="24"><path d="M4 11h16v2H4z" fill-rule="evenodd"/></svg>',"image-options":'<svg width="24" height="24"><path d="M6 10a2 2 0 0 0-2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2 2 2 0 0 0-2-2zm12 0a2 2 0 0 0-2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2 2 2 0 0 0-2-2zm-6 0a2 2 0 0 0-2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2 2 2 0 0 0-2-2z" fill-rule="nonzero"/></svg>',image:'<svg width="24" height="24"><path d="M5 15.7l3.3-3.2c.3-.3.7-.3 1 0L12 15l4.1-4c.3-.4.8-.4 1 0l2 1.9V5H5v10.7zM5 18V19h3l2.8-2.9-2-2L5 17.9zm14-3l-2.5-2.4-6.4 6.5H19v-4zM4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 0 1-1-1V4c0-.6.4-1 1-1zm6 8a2 2 0 1 0 0-4 2 2 0 0 0 0 4z" fill-rule="nonzero"/></svg>',indent:'<svg width="24" height="24"><path d="M7 5h12c.6 0 1 .4 1 1s-.4 1-1 1H7a1 1 0 1 1 0-2zm5 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 0 1 0-2zm0 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 0 1 0-2zm-5 4h12a1 1 0 0 1 0 2H7a1 1 0 0 1 0-2zm-2.6-3.8L6.2 12l-1.8-1.2a1 1 0 0 1 1.2-1.6l3 2a1 1 0 0 1 0 1.6l-3 2a1 1 0 1 1-1.2-1.6z" fill-rule="evenodd"/></svg>',info:'<svg width="24" height="24"><path d="M12 4a7.8 7.8 0 0 1 5.7 2.3A8 8 0 1 1 12 4zm-1 3v2h2V7h-2zm3 10v-1h-1v-5h-3v1h1v4h-1v1h4z" fill-rule="evenodd"/></svg>',"insert-character":'<svg width="24" height="24"><path d="M15 18h4l1-2v4h-6v-3.3l1.4-1a6 6 0 0 0 1.8-2.9 6.3 6.3 0 0 0-.1-4.1 5.8 5.8 0 0 0-3-3.2c-.6-.3-1.3-.5-2.1-.5a5.1 5.1 0 0 0-3.9 1.8 6.3 6.3 0 0 0-1.3 6 6.2 6.2 0 0 0 1.8 3l1.4.9V20H4v-4l1 2h4v-.5l-2-1L5.4 15A6.5 6.5 0 0 1 4 11c0-1 .2-1.9.6-2.7A7 7 0 0 1 6.3 6C7.1 5.4 8 5 9 4.5c1-.3 2-.5 3.1-.5a8.8 8.8 0 0 1 5.7 2 7 7 0 0 1 1.7 2.3 6 6 0 0 1 .2 4.8c-.2.7-.6 1.3-1 1.9a7.6 7.6 0 0 1-3.6 2.5v.5z" fill-rule="evenodd"/></svg>',"insert-time":'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M12 19a7 7 0 1 0 0-14 7 7 0 0 0 0 14zm0 2a9 9 0 1 1 0-18 9 9 0 0 1 0 18z"/><path d="M16 12h-3V7c0-.6-.4-1-1-1a1 1 0 0 0-1 1v7h5c.6 0 1-.4 1-1s-.4-1-1-1z"/></g></svg>',invert:'<svg width="24" height="24"><path d="M18 19.3L16.5 18a5.8 5.8 0 0 1-3.1 1.9 6.1 6.1 0 0 1-5.5-1.6A5.8 5.8 0 0 1 6 14v-.3l.1-1.2A13.9 13.9 0 0 1 7.7 9l-3-3 .7-.8 2.8 2.9 9 8.9 1.5 1.6-.7.6zm0-5.5v.3l-.1 1.1-.4 1-1.2-1.2a4.3 4.3 0 0 0 .2-1v-.2c0-.4 0-.8-.2-1.3l-.5-1.4a14.8 14.8 0 0 0-3-4.2L12 6a26.1 26.1 0 0 0-2.2 2.5l-1-1a20.9 20.9 0 0 1 2.9-3.3L12 4l1 .8a22.2 22.2 0 0 1 4 5.4c.6 1.2 1 2.4 1 3.6z" fill-rule="evenodd"/></svg>',italic:'<svg width="24" height="24"><path d="M16.7 4.7l-.1.9h-.3c-.6 0-1 0-1.4.3-.3.3-.4.6-.5 1.1l-2.1 9.8v.6c0 .5.4.8 1.4.8h.2l-.2.8H8l.2-.8h.2c1.1 0 1.8-.5 2-1.5l2-9.8.1-.5c0-.6-.4-.8-1.4-.8h-.3l.2-.9h5.8z" fill-rule="evenodd"/></svg>',line:'<svg width="24" height="24"><path d="M15 9l-8 8H4v-3l8-8 3 3zm1-1l-3-3 1-1h1c-.2 0 0 0 0 0l2 2s0 .2 0 0v1l-1 1zM4 18h16v2H4v-2z" fill-rule="evenodd"/></svg>',link:'<svg width="24" height="24"><path d="M6.2 12.3a1 1 0 0 1 1.4 1.4l-2.1 2a2 2 0 1 0 2.7 2.8l4.8-4.8a1 1 0 0 0 0-1.4 1 1 0 1 1 1.4-1.3 2.9 2.9 0 0 1 0 4L9.6 20a3.9 3.9 0 0 1-5.5-5.5l2-2zm11.6-.6a1 1 0 0 1-1.4-1.4l2-2a2 2 0 1 0-2.6-2.8L11 10.3a1 1 0 0 0 0 1.4A1 1 0 1 1 9.6 13a2.9 2.9 0 0 1 0-4L14.4 4a3.9 3.9 0 0 1 5.5 5.5l-2 2z" fill-rule="nonzero"/></svg>',"list-bull-circle":'<svg width="48" height="48"><g fill-rule="evenodd"><path d="M11 16a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm0 1a3 3 0 1 1 0-6 3 3 0 0 1 0 6zM11 26a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm0 1a3 3 0 1 1 0-6 3 3 0 0 1 0 6zM11 36a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm0 1a3 3 0 1 1 0-6 3 3 0 0 1 0 6z" fill-rule="nonzero"/><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/></g></svg>',"list-bull-default":'<svg width="48" height="48"><g fill-rule="evenodd"><circle cx="11" cy="14" r="3"/><circle cx="11" cy="24" r="3"/><circle cx="11" cy="34" r="3"/><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/></g></svg>',"list-bull-square":'<svg width="48" height="48"><g fill-rule="evenodd"><path d="M8 11h6v6H8zM8 21h6v6H8zM8 31h6v6H8z"/><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/></g></svg>',"list-num-default-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M37.4 17v-4.8l-1.6 1v-1.1l1.6-1h1.2V17zM33.3 17.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm1.7 5.7c0-1.2 1-2 2.2-2 1.3 0 2.1.8 2.1 1.8 0 .7-.3 1.2-1.3 2.2l-1.2 1v.2h2.6v1h-4.3v-.9l2-1.9c.8-.8 1-1.1 1-1.5 0-.5-.4-.8-1-.8-.5 0-.9.3-.9.9H35zm-1.7 4.3c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm3.2 7.3v-1h.7c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7s-1 .3-1 .8H35c0-1.1 1-1.8 2.2-1.8 1.2 0 2.1.6 2.1 1.6 0 .7-.4 1.2-1 1.3v.1c.7.1 1.3.7 1.3 1.4 0 1-1 1.9-2.4 1.9-1.3 0-2.2-.8-2.3-2h1.2c0 .6.5 1 1.1 1 .6 0 1-.4 1-1 0-.5-.3-.8-1-.8h-.7zm-3.3 2.7c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7z"/></g></svg>',"list-num-default":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M10 17v-4.8l-1.5 1v-1.1l1.6-1h1.2V17h-1.2zm3.6.1c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zm-5 5.7c0-1.2.8-2 2.1-2s2.1.8 2.1 1.8c0 .7-.3 1.2-1.4 2.2l-1.1 1v.2h2.6v1H8.6v-.9l2-1.9c.8-.8 1-1.1 1-1.5 0-.5-.4-.8-1-.8-.5 0-.9.3-.9.9H8.5zm6.3 4.3c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zM10 34.4v-1h.7c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7s-1 .3-1 .8H8.6c0-1.1 1-1.8 2.2-1.8 1.3 0 2.1.6 2.1 1.6 0 .7-.4 1.2-1 1.3v.1c.8.1 1.3.7 1.3 1.4 0 1-1 1.9-2.4 1.9-1.3 0-2.2-.8-2.3-2h1.2c0 .6.5 1 1.1 1 .7 0 1-.4 1-1 0-.5-.3-.8-1-.8h-.7zm4.7 2.7c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7z"/></g></svg>',"list-num-lower-alpha-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M36.5 16c-.9 0-1.5-.5-1.5-1.3s.6-1.3 1.8-1.4h1v-.4c0-.4-.2-.6-.7-.6-.4 0-.7.1-.8.4h-1.1c0-.8.8-1.4 2-1.4S39 12 39 13V16h-1.2v-.6c-.3.4-.8.7-1.4.7zm.4-.8c.6 0 1-.4 1-.9V14h-1c-.5.1-.7.3-.7.6 0 .4.3.6.7.6zM33.1 16.1c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7zM37.7 26c-.7 0-1.2-.2-1.5-.7v.7H35v-6.3h1.2v2.5c.3-.5.8-.9 1.5-.9 1.1 0 1.8 1 1.8 2.4 0 1.5-.7 2.4-1.8 2.4zm-.5-3.6c-.6 0-1 .5-1 1.3s.4 1.4 1 1.4c.7 0 1-.6 1-1.4 0-.8-.3-1.3-1-1.3zM33.2 26.1c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7zm6 7h-1c-.1-.5-.4-.8-1-.8s-1 .5-1 1.4c0 1 .4 1.4 1 1.4.5 0 .9-.2 1-.7h1c0 1-.8 1.7-2 1.7-1.4 0-2.2-.9-2.2-2.4s.8-2.4 2.2-2.4c1.2 0 2 .7 2 1.7zm-6.1 3c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-alpha":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M10.3 15.2c.5 0 1-.4 1-.9V14h-1c-.5.1-.8.3-.8.6 0 .4.3.6.8.6zm-.4.9c-1 0-1.5-.6-1.5-1.4 0-.8.6-1.3 1.7-1.4h1.1v-.4c0-.4-.2-.6-.7-.6-.5 0-.8.1-.9.4h-1c0-.8.8-1.4 2-1.4 1.1 0 1.8.6 1.8 1.6V16h-1.1v-.6h-.1c-.2.4-.7.7-1.3.7zm4.6 0c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm-3.2 10c-.6 0-1.2-.3-1.4-.8v.7H8.5v-6.3H10v2.5c.3-.5.8-.9 1.4-.9 1.2 0 1.9 1 1.9 2.4 0 1.5-.7 2.4-1.9 2.4zm-.4-3.7c-.7 0-1 .5-1 1.3s.3 1.4 1 1.4c.6 0 1-.6 1-1.4 0-.8-.4-1.3-1-1.3zm4 3.7c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm-2.2 7h-1.2c0-.5-.4-.8-.9-.8-.6 0-1 .5-1 1.4 0 1 .4 1.4 1 1.4.5 0 .8-.2 1-.7h1c0 1-.8 1.7-2 1.7-1.4 0-2.2-.9-2.2-2.4s.8-2.4 2.2-2.4c1.2 0 2 .7 2 1.7zm1.8 3c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-greek-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M37.4 16c-1.2 0-2-.8-2-2.3 0-1.5.8-2.4 2-2.4.6 0 1 .4 1.3 1v-.9H40v3.2c0 .4.1.5.4.5h.2v.9h-.6c-.6 0-1-.2-1-.7h-.2c-.2.4-.7.8-1.3.8zm.3-1c.6 0 1-.5 1-1.3s-.4-1.3-1-1.3-1 .5-1 1.3.4 1.4 1 1.4zM33.3 16.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zM36 21.9c0-1.5.8-2.3 2.1-2.3 1.2 0 2 .6 2 1.6 0 .6-.3 1-.9 1.3.9.3 1.3.8 1.3 1.7 0 1.2-.7 1.9-1.8 1.9-.6 0-1.1-.3-1.4-.8v2.2H36V22zm1.8 1.2v-1h.3c.5 0 .9-.2.9-.7 0-.5-.3-.8-.9-.8-.5 0-.8.3-.8 1v2.2c0 .8.4 1.3 1 1.3s1-.4 1-1-.4-1-1.2-1h-.3zM33.3 26.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zM37.1 34.6L34.8 30h1.4l1.7 3.5 1.7-3.5h1.1l-2.2 4.6v.1c.5.8.7 1.4.7 1.8 0 .4-.2.8-.4 1-.2.2-.6.3-1 .3-.9 0-1.3-.4-1.3-1.2 0-.5.2-1 .5-1.7l.1-.2zm.7 1a2 2 0 0 0-.4.9c0 .3.1.4.4.4.3 0 .4-.1.4-.4 0-.2-.1-.6-.4-1zM33.3 36.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-greek":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M10.5 15c.7 0 1-.5 1-1.3s-.3-1.3-1-1.3c-.5 0-.9.5-.9 1.3s.4 1.4 1 1.4zm-.3 1c-1.1 0-1.8-.8-1.8-2.3 0-1.5.7-2.4 1.8-2.4.7 0 1.1.4 1.3 1h.1v-.9h1.2v3.2c0 .4.1.5.4.5h.2v.9h-.6c-.6 0-1-.2-1.1-.7h-.1c-.2.4-.7.8-1.4.8zm5 .1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7zm-4.9 7v-1h.3c.6 0 1-.2 1-.7 0-.5-.4-.8-1-.8-.5 0-.8.3-.8 1v2.2c0 .8.4 1.3 1.1 1.3.6 0 1-.4 1-1s-.5-1-1.3-1h-.3zM8.6 22c0-1.5.7-2.3 2-2.3 1.2 0 2 .6 2 1.6 0 .6-.3 1-.8 1.3.8.3 1.3.8 1.3 1.7 0 1.2-.8 1.9-1.9 1.9-.6 0-1.1-.3-1.3-.8v2.2H8.5V22zm6.2 4.2c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zm-4.5 8.5L8 30h1.4l1.7 3.5 1.7-3.5h1.1l-2.2 4.6v.1c.5.8.7 1.4.7 1.8 0 .4-.1.8-.4 1-.2.2-.6.3-1 .3-.9 0-1.3-.4-1.3-1.2 0-.5.2-1 .5-1.7l.1-.2zm.7 1a2 2 0 0 0-.4.9c0 .3.1.4.4.4.3 0 .4-.1.4-.4 0-.2-.1-.6-.4-1zm4.5.5c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-roman-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M32.9 16v-1.2h-1.3V16H33zm0 10v-1.2h-1.3V26H33zm0 10v-1.2h-1.3V36H33z"/><path fill-rule="nonzero" d="M36 21h-1.5v5H36zM36 31h-1.5v5H36zM39 21h-1.5v5H39zM39 31h-1.5v5H39zM42 31h-1.5v5H42zM36 11h-1.5v5H36zM36 19h-1.5v1H36zM36 29h-1.5v1H36zM39 19h-1.5v1H39zM39 29h-1.5v1H39zM42 29h-1.5v1H42zM36 9h-1.5v1H36z"/></g></svg>',"list-num-lower-roman":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M15.1 16v-1.2h1.3V16H15zm0 10v-1.2h1.3V26H15zm0 10v-1.2h1.3V36H15z"/><path fill-rule="nonzero" d="M12 21h1.5v5H12zM12 31h1.5v5H12zM9 21h1.5v5H9zM9 31h1.5v5H9zM6 31h1.5v5H6zM12 11h1.5v5H12zM12 19h1.5v1H12zM12 29h1.5v1H12zM9 19h1.5v1H9zM9 29h1.5v1H9zM6 29h1.5v1H6zM12 9h1.5v1H12z"/></g></svg>',"list-num-upper-alpha-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M39.3 17l-.5-1.4h-2l-.5 1.4H35l2-6h1.6l2 6h-1.3zm-1.6-4.7l-.7 2.3h1.6l-.8-2.3zM33.4 17c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zm4.7 9.9h-2.7v-6H38c1.2 0 1.9.6 1.9 1.5 0 .6-.5 1.2-1 1.3.7.1 1.3.7 1.3 1.5 0 1-.8 1.7-2 1.7zm-1.4-5v1.5h1c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7h-1zm0 4h1.1c.7 0 1.1-.3 1.1-.8 0-.6-.4-.9-1.1-.9h-1.1V26zM33 27.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm4.9 10c-1.8 0-2.8-1.1-2.8-3.1s1-3.1 2.8-3.1c1.4 0 2.5.9 2.6 2.2h-1.3c0-.7-.6-1.1-1.3-1.1-1 0-1.6.7-1.6 2s.6 2 1.6 2c.7 0 1.2-.4 1.4-1h1.2c-.1 1.3-1.2 2.2-2.6 2.2zm-4.5 0c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-upper-alpha":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M12.6 17l-.5-1.4h-2L9.5 17H8.3l2-6H12l2 6h-1.3zM11 12.3l-.7 2.3h1.6l-.8-2.3zm4.7 4.8c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zM11.4 27H8.7v-6h2.6c1.2 0 1.9.6 1.9 1.5 0 .6-.5 1.2-1 1.3.7.1 1.3.7 1.3 1.5 0 1-.8 1.7-2 1.7zM10 22v1.5h1c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7h-1zm0 4H11c.7 0 1.1-.3 1.1-.8 0-.6-.4-.9-1.1-.9H10V26zm5.4 1.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm-4.1 10c-1.8 0-2.8-1.1-2.8-3.1s1-3.1 2.8-3.1c1.4 0 2.5.9 2.6 2.2h-1.3c0-.7-.6-1.1-1.3-1.1-1 0-1.6.7-1.6 2s.6 2 1.6 2c.7 0 1.2-.4 1.4-1h1.2c-.1 1.3-1.2 2.2-2.6 2.2zm4.5 0c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-upper-roman-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M31.6 17v-1.2H33V17h-1.3zm0 10v-1.2H33V27h-1.3zm0 10v-1.2H33V37h-1.3z"/><path fill-rule="nonzero" d="M34.5 20H36v7h-1.5zM34.5 30H36v7h-1.5zM37.5 20H39v7h-1.5zM37.5 30H39v7h-1.5zM40.5 30H42v7h-1.5zM34.5 10H36v7h-1.5z"/></g></svg>',"list-num-upper-roman":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M15.1 17v-1.2h1.3V17H15zm0 10v-1.2h1.3V27H15zm0 10v-1.2h1.3V37H15z"/><path fill-rule="nonzero" d="M12 20h1.5v7H12zM12 30h1.5v7H12zM9 20h1.5v7H9zM9 30h1.5v7H9zM6 30h1.5v7H6zM12 10h1.5v7H12z"/></g></svg>',lock:'<svg width="24" height="24"><path d="M16.3 11c.2 0 .3 0 .5.2l.2.6v7.4c0 .3 0 .4-.2.6l-.6.2H7.8c-.3 0-.4 0-.6-.2a.7.7 0 0 1-.2-.6v-7.4c0-.3 0-.4.2-.6l.5-.2H8V8c0-.8.3-1.5.9-2.1.6-.6 1.3-.9 2.1-.9h2c.8 0 1.5.3 2.1.9.6.6.9 1.3.9 2.1v3h.3zM10 8v3h4V8a1 1 0 0 0-.3-.7A1 1 0 0 0 13 7h-2a1 1 0 0 0-.7.3 1 1 0 0 0-.3.7z" fill-rule="evenodd"/></svg>',ltr:'<svg width="24" height="24"><path d="M11 5h7a1 1 0 0 1 0 2h-1v11a1 1 0 0 1-2 0V7h-2v11a1 1 0 0 1-2 0v-6c-.5 0-1 0-1.4-.3A3.4 3.4 0 0 1 7.8 10a3.3 3.3 0 0 1 0-2.8 3.4 3.4 0 0 1 1.8-1.8L11 5zM4.4 16.2L6.2 15l-1.8-1.2a1 1 0 0 1 1.2-1.6l3 2a1 1 0 0 1 0 1.6l-3 2a1 1 0 1 1-1.2-1.6z" fill-rule="evenodd"/></svg>',"more-drawer":'<svg width="24" height="24"><path d="M6 10a2 2 0 0 0-2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2 2 2 0 0 0-2-2zm12 0a2 2 0 0 0-2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2 2 2 0 0 0-2-2zm-6 0a2 2 0 0 0-2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2 2 2 0 0 0-2-2z" fill-rule="nonzero"/></svg>',"new-document":'<svg width="24" height="24"><path d="M14.4 3H7a2 2 0 0 0-2 2v14c0 1.1.9 2 2 2h10a2 2 0 0 0 2-2V7.6L14.4 3zM17 19H7V5h6v4h4v10z" fill-rule="nonzero"/></svg>',"new-tab":'<svg width="24" height="24"><path d="M15 13l2-2v8H5V7h8l-2 2H7v8h8v-4zm4-8v5.5l-2-2-5.6 5.5H10v-1.4L15.5 7l-2-2H19z" fill-rule="evenodd"/></svg>',"non-breaking":'<svg width="24" height="24"><path d="M11 11H8a1 1 0 1 1 0-2h3V6c0-.6.4-1 1-1s1 .4 1 1v3h3c.6 0 1 .4 1 1s-.4 1-1 1h-3v3c0 .6-.4 1-1 1a1 1 0 0 1-1-1v-3zm10 4v5H3v-5c0-.6.4-1 1-1s1 .4 1 1v3h14v-3c0-.6.4-1 1-1s1 .4 1 1z" fill-rule="evenodd"/></svg>',notice:'<svg width="24" height="24"><path d="M17.8 9.8L15.4 4 20 8.5v7L15.5 20h-7L4 15.5v-7L8.5 4h7l2.3 5.8zm0 0l2.2 5.7-2.3-5.8zM13 17v-2h-2v2h2zm0-4V7h-2v6h2z" fill-rule="evenodd"/></svg>',"ordered-list-rtl":'<svg width="24" height="24"><path d="M6 17h8a1 1 0 0 1 0 2H6a1 1 0 0 1 0-2zm0-6h8a1 1 0 0 1 0 2H6a1 1 0 0 1 0-2zm0-6h8a1 1 0 0 1 0 2H6a1 1 0 1 1 0-2zm13-1v3.5a.5.5 0 1 1-1 0V5h-.5a.5.5 0 1 1 0-1H19zm-1 8.8l.2.2h1.3a.5.5 0 1 1 0 1h-1.6a1 1 0 0 1-.9-1V13c0-.4.3-.8.6-1l1.2-.4.2-.3a.2.2 0 0 0-.2-.2h-1.3a.5.5 0 0 1-.5-.5c0-.3.2-.5.5-.5h1.6c.5 0 .9.4.9 1v.1c0 .4-.3.8-.6 1l-1.2.4-.2.3zm2 4.2v2c0 .6-.4 1-1 1h-1.5a.5.5 0 0 1 0-1h1.2a.3.3 0 1 0 0-.6h-1.3a.4.4 0 1 1 0-.8h1.3a.3.3 0 0 0 0-.6h-1.2a.5.5 0 1 1 0-1H19c.6 0 1 .4 1 1z" fill-rule="evenodd"/></svg>',"ordered-list":'<svg width="24" height="24"><path d="M10 17h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 1 1 0-2zM6 4v3.5c0 .3-.2.5-.5.5a.5.5 0 0 1-.5-.5V5h-.5a.5.5 0 0 1 0-1H6zm-1 8.8l.2.2h1.3c.3 0 .5.2.5.5s-.2.5-.5.5H4.9a1 1 0 0 1-.9-1V13c0-.4.3-.8.6-1l1.2-.4.2-.3a.2.2 0 0 0-.2-.2H4.5a.5.5 0 0 1-.5-.5c0-.3.2-.5.5-.5h1.6c.5 0 .9.4.9 1v.1c0 .4-.3.8-.6 1l-1.2.4-.2.3zM7 17v2c0 .6-.4 1-1 1H4.5a.5.5 0 0 1 0-1h1.2c.2 0 .3-.1.3-.3 0-.2-.1-.3-.3-.3H4.4a.4.4 0 1 1 0-.8h1.3c.2 0 .3-.1.3-.3 0-.2-.1-.3-.3-.3H4.5a.5.5 0 1 1 0-1H6c.6 0 1 .4 1 1z" fill-rule="evenodd"/></svg>',orientation:'<svg width="24" height="24"><path d="M7.3 6.4L1 13l6.4 6.5 6.5-6.5-6.5-6.5zM3.7 13l3.6-3.7L11 13l-3.7 3.7-3.6-3.7zM12 6l2.8 2.7c.3.3.3.8 0 1-.3.4-.9.4-1.2 0L9.2 5.7a.8.8 0 0 1 0-1.2L13.6.2c.3-.3.9-.3 1.2 0 .3.3.3.8 0 1.1L12 4h1a9 9 0 1 1-4.3 16.9l1.5-1.5A7 7 0 1 0 13 6h-1z" fill-rule="nonzero"/></svg>',outdent:'<svg width="24" height="24"><path d="M7 5h12c.6 0 1 .4 1 1s-.4 1-1 1H7a1 1 0 1 1 0-2zm5 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 0 1 0-2zm0 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 0 1 0-2zm-5 4h12a1 1 0 0 1 0 2H7a1 1 0 0 1 0-2zm1.6-3.8a1 1 0 0 1-1.2 1.6l-3-2a1 1 0 0 1 0-1.6l3-2a1 1 0 0 1 1.2 1.6L6.8 12l1.8 1.2z" fill-rule="evenodd"/></svg>',"page-break":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M5 11c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 0 1 0-2zm3 0h1c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 0 1 0-2zm4 0c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 0 1 0-2zm3 0h1c.6 0 1 .4 1 1s-.4 1-1 1h-1a1 1 0 0 1 0-2zm4 0c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 0 1 0-2zM7 3v5h10V3c0-.6.4-1 1-1s1 .4 1 1v7H5V3c0-.6.4-1 1-1s1 .4 1 1zM6 22a1 1 0 0 1-1-1v-7h14v7c0 .6-.4 1-1 1a1 1 0 0 1-1-1v-5H7v5c0 .6-.4 1-1 1z"/></g></svg>',"paste-text":'<svg width="24" height="24"><path d="M18 9V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 0 1-1-1V5H6v13h3V9h9zM9 20H6a2 2 0 0 1-2-2V5c0-1.1.9-2 2-2h3.2A3 3 0 0 1 12 1a3 3 0 0 1 2.8 2H18a2 2 0 0 1 2 2v4h1v12H9v-1zm1.5-9.5v9h9v-9h-9zM12 3a1 1 0 0 0-1 1c0 .5.4 1 1 1s1-.5 1-1-.4-1-1-1zm0 9h6v2h-.5l-.5-1h-1v4h.8v1h-3.6v-1h.8v-4h-1l-.5 1H12v-2z" fill-rule="nonzero"/></svg>',paste:'<svg width="24" height="24"><path d="M18 9V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 0 1-1-1V5H6v13h3V9h9zM9 20H6a2 2 0 0 1-2-2V5c0-1.1.9-2 2-2h3.2A3 3 0 0 1 12 1a3 3 0 0 1 2.8 2H18a2 2 0 0 1 2 2v4h1v12H9v-1zm1.5-9.5v9h9v-9h-9zM12 3a1 1 0 0 0-1 1c0 .5.4 1 1 1s1-.5 1-1-.4-1-1-1z" fill-rule="nonzero"/></svg>',"permanent-pen":'<svg width="24" height="24"><path d="M10.5 17.5L8 20H3v-3l3.5-3.5a2 2 0 0 1 0-3L14 3l1 1-7.3 7.3a1 1 0 0 0 0 1.4l3.6 3.6c.4.4 1 .4 1.4 0L20 9l1 1-7.6 7.6a2 2 0 0 1-2.8 0l-.1-.1z" fill-rule="nonzero"/></svg>',plus:'<svg width="24" height="24"><g fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round" stroke="#000" stroke-width="2"><path d="M12 5v14M5 12h14"/></g></svg>',preferences:'<svg width="24" height="24"><path d="M20.1 13.5l-1.9.2a5.8 5.8 0 0 1-.6 1.5l1.2 1.5c.4.4.3 1 0 1.4l-.7.7a1 1 0 0 1-1.4 0l-1.5-1.2a6.2 6.2 0 0 1-1.5.6l-.2 1.9c0 .5-.5.9-1 .9h-1a1 1 0 0 1-1-.9l-.2-1.9a5.8 5.8 0 0 1-1.5-.6l-1.5 1.2a1 1 0 0 1-1.4 0l-.7-.7a1 1 0 0 1 0-1.4l1.2-1.5a6.2 6.2 0 0 1-.6-1.5l-1.9-.2a1 1 0 0 1-.9-1v-1c0-.5.4-1 .9-1l1.9-.2a5.8 5.8 0 0 1 .6-1.5L5.2 7.3a1 1 0 0 1 0-1.4l.7-.7a1 1 0 0 1 1.4 0l1.5 1.2a6.2 6.2 0 0 1 1.5-.6l.2-1.9c0-.5.5-.9 1-.9h1c.5 0 1 .4 1 .9l.2 1.9a5.8 5.8 0 0 1 1.5.6l1.5-1.2a1 1 0 0 1 1.4 0l.7.7c.3.4.4 1 0 1.4l-1.2 1.5a6.2 6.2 0 0 1 .6 1.5l1.9.2c.5 0 .9.5.9 1v1c0 .5-.4 1-.9 1zM12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6z" fill-rule="evenodd"/></svg>',preview:'<svg width="24" height="24"><path d="M3.5 12.5c.5.8 1.1 1.6 1.8 2.3 2 2 4.2 3.2 6.7 3.2s4.7-1.2 6.7-3.2a16.2 16.2 0 0 0 2.1-2.8 15.7 15.7 0 0 0-2.1-2.8c-2-2-4.2-3.2-6.7-3.2a9.3 9.3 0 0 0-6.7 3.2A16.2 16.2 0 0 0 3.2 12c0 .2.2.3.3.5zm-2.4-1l.7-1.2L4 7.8C6.2 5.4 8.9 4 12 4c3 0 5.8 1.4 8.1 3.8a18.2 18.2 0 0 1 2.8 3.7v1l-.7 1.2-2.1 2.5c-2.3 2.4-5 3.8-8.1 3.8-3 0-5.8-1.4-8.1-3.8a18.2 18.2 0 0 1-2.8-3.7 1 1 0 0 1 0-1zm12-3.3a2 2 0 1 0 2.7 2.6 4 4 0 1 1-2.6-2.6z" fill-rule="nonzero"/></svg>',print:'<svg width="24" height="24"><path d="M18 8H6a3 3 0 0 0-3 3v6h2v3h14v-3h2v-6a3 3 0 0 0-3-3zm-1 10H7v-4h10v4zm.5-5c-.8 0-1.5-.7-1.5-1.5s.7-1.5 1.5-1.5 1.5.7 1.5 1.5-.7 1.5-1.5 1.5zm.5-8H6v2h12V5z" fill-rule="nonzero"/></svg>',quote:'<svg width="24" height="24"><path d="M7.5 17h.9c.4 0 .7-.2.9-.6L11 13V8c0-.6-.4-1-1-1H6a1 1 0 0 0-1 1v4c0 .6.4 1 1 1h2l-1.3 2.7a1 1 0 0 0 .8 1.3zm8 0h.9c.4 0 .7-.2.9-.6L19 13V8c0-.6-.4-1-1-1h-4a1 1 0 0 0-1 1v4c0 .6.4 1 1 1h2l-1.3 2.7a1 1 0 0 0 .8 1.3z" fill-rule="nonzero"/></svg>',redo:'<svg width="24" height="24"><path d="M17.6 10H12c-2.8 0-4.4 1.4-4.9 3.5-.4 2 .3 4 1.4 4.6a1 1 0 1 1-1 1.8c-2-1.2-2.9-4.1-2.3-6.8.6-3 3-5.1 6.8-5.1h5.6l-3.3-3.3a1 1 0 1 1 1.4-1.4l5 5a1 1 0 0 1 0 1.4l-5 5a1 1 0 0 1-1.4-1.4l3.3-3.3z" fill-rule="nonzero"/></svg>',reload:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M5 22.1l-1.2-4.7v-.2a1 1 0 0 1 1-1l5 .4a1 1 0 1 1-.2 2l-2.2-.2a7.8 7.8 0 0 0 8.4.2 7.5 7.5 0 0 0 3.5-6.4 1 1 0 1 1 2 0 9.5 9.5 0 0 1-4.5 8 9.9 9.9 0 0 1-10.2 0l.4 1.4a1 1 0 1 1-2 .5zM13.6 7.4c0-.5.5-1 1-.9l2.8.2a8 8 0 0 0-9.5-1 7.5 7.5 0 0 0-3.6 7 1 1 0 0 1-2 0 9.5 9.5 0 0 1 4.5-8.6 10 10 0 0 1 10.9.3l-.3-1a1 1 0 0 1 2-.5l1.1 4.8a1 1 0 0 1-1 1.2l-5-.4a1 1 0 0 1-.9-1z"/></g></svg>',"remove-formatting":'<svg width="24" height="24"><path d="M13.2 6a1 1 0 0 1 0 .2l-2.6 10a1 1 0 0 1-1 .8h-.2a.8.8 0 0 1-.8-1l2.6-10H8a1 1 0 1 1 0-2h9a1 1 0 0 1 0 2h-3.8zM5 18h7a1 1 0 0 1 0 2H5a1 1 0 0 1 0-2zm13 1.5L16.5 18 15 19.5a.7.7 0 0 1-1-1l1.5-1.5-1.5-1.5a.7.7 0 0 1 1-1l1.5 1.5 1.5-1.5a.7.7 0 0 1 1 1L17.5 17l1.5 1.5a.7.7 0 0 1-1 1z" fill-rule="evenodd"/></svg>',remove:'<svg width="24" height="24"><path d="M16 7h3a1 1 0 0 1 0 2h-1v9a3 3 0 0 1-3 3H9a3 3 0 0 1-3-3V9H5a1 1 0 1 1 0-2h3V6a3 3 0 0 1 3-3h2a3 3 0 0 1 3 3v1zm-2 0V6c0-.6-.4-1-1-1h-2a1 1 0 0 0-1 1v1h4zm2 2H8v9c0 .6.4 1 1 1h6c.6 0 1-.4 1-1V9zm-7 3a1 1 0 0 1 2 0v4a1 1 0 0 1-2 0v-4zm4 0a1 1 0 0 1 2 0v4a1 1 0 0 1-2 0v-4z" fill-rule="nonzero"/></svg>',"resize-handle":'<svg width="10" height="10"><g fill-rule="nonzero"><path d="M8.1 1.1A.5.5 0 1 1 9 2l-7 7A.5.5 0 1 1 1 8l7-7zM8.1 5.1A.5.5 0 1 1 9 6l-3 3A.5.5 0 1 1 5 8l3-3z"/></g></svg>',resize:'<svg width="24" height="24"><path d="M4 5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h6c.3 0 .5.1.7.3.2.2.3.4.3.7 0 .3-.1.5-.3.7a1 1 0 0 1-.7.3H7.4L18 16.6V13c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3.3 0 .5.1.7.3.2.2.3.4.3.7v6c0 .3-.1.5-.3.7a1 1 0 0 1-.7.3h-6a1 1 0 0 1-.7-.3 1 1 0 0 1-.3-.7c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h3.6L6 7.4V11c0 .3-.1.5-.3.7a1 1 0 0 1-.7.3 1 1 0 0 1-.7-.3A1 1 0 0 1 4 11V5z" fill-rule="evenodd"/></svg>',"restore-draft":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M17 13c0 .6-.4 1-1 1h-4V8c0-.6.4-1 1-1s1 .4 1 1v4h2c.6 0 1 .4 1 1z"/><path d="M4.7 10H9a1 1 0 0 1 0 2H3a1 1 0 0 1-1-1V5a1 1 0 1 1 2 0v3l2.5-2.4a9.2 9.2 0 0 1 10.8-1.5A9 9 0 0 1 13.4 21c-2.4.1-4.7-.7-6.5-2.2a1 1 0 1 1 1.3-1.5 7.2 7.2 0 0 0 11.6-3.7 7 7 0 0 0-3.5-7.7A7.2 7.2 0 0 0 8 7L4.7 10z" fill-rule="nonzero"/></g></svg>',"rotate-left":'<svg width="24" height="24"><path d="M4.7 10H9a1 1 0 0 1 0 2H3a1 1 0 0 1-1-1V5a1 1 0 1 1 2 0v3l2.5-2.4a9.2 9.2 0 0 1 10.8-1.5A9 9 0 0 1 13.4 21c-2.4.1-4.7-.7-6.5-2.2a1 1 0 1 1 1.3-1.5 7.2 7.2 0 0 0 11.6-3.7 7 7 0 0 0-3.5-7.7A7.2 7.2 0 0 0 8 7L4.7 10z" fill-rule="nonzero"/></svg>',"rotate-right":'<svg width="24" height="24"><path d="M20 8V5a1 1 0 0 1 2 0v6c0 .6-.4 1-1 1h-6a1 1 0 0 1 0-2h4.3L16 7A7.2 7.2 0 0 0 7.7 6a7 7 0 0 0 3 13.1c1.9.1 3.7-.5 5-1.7a1 1 0 0 1 1.4 1.5A9.2 9.2 0 0 1 2.2 14c-.9-3.9 1-8 4.5-9.9 3.5-1.9 8-1.3 10.8 1.5L20 8z" fill-rule="nonzero"/></svg>',rtl:'<svg width="24" height="24"><path d="M8 5h8v2h-2v12h-2V7h-2v12H8v-7c-.5 0-1 0-1.4-.3A3.4 3.4 0 0 1 4.8 10a3.3 3.3 0 0 1 0-2.8 3.4 3.4 0 0 1 1.8-1.8L8 5zm12 11.2a1 1 0 1 1-1 1.6l-3-2a1 1 0 0 1 0-1.6l3-2a1 1 0 1 1 1 1.6L18.4 15l1.8 1.2z" fill-rule="evenodd"/></svg>',save:'<svg width="24" height="24"><path d="M5 16h14a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-2c0-1.1.9-2 2-2zm0 2v2h14v-2H5zm10 0h2v2h-2v-2zm-4-6.4L8.7 9.3a1 1 0 1 0-1.4 1.4l4 4c.4.4 1 .4 1.4 0l4-4a1 1 0 1 0-1.4-1.4L13 11.6V4a1 1 0 0 0-2 0v7.6z" fill-rule="nonzero"/></svg>',search:'<svg width="24" height="24"><path d="M16 17.3a8 8 0 1 1 1.4-1.4l4.3 4.4a1 1 0 0 1-1.4 1.4l-4.4-4.3zm-5-.3a6 6 0 1 0 0-12 6 6 0 0 0 0 12z" fill-rule="nonzero"/></svg>',"select-all":'<svg width="24" height="24"><path d="M3 5h2V3a2 2 0 0 0-2 2zm0 8h2v-2H3v2zm4 8h2v-2H7v2zM3 9h2V7H3v2zm10-6h-2v2h2V3zm6 0v2h2a2 2 0 0 0-2-2zM5 21v-2H3c0 1.1.9 2 2 2zm-2-4h2v-2H3v2zM9 3H7v2h2V3zm2 18h2v-2h-2v2zm8-8h2v-2h-2v2zm0 8a2 2 0 0 0 2-2h-2v2zm0-12h2V7h-2v2zm0 8h2v-2h-2v2zm-4 4h2v-2h-2v2zm0-16h2V3h-2v2zM7 17h10V7H7v10zm2-8h6v6H9V9z" fill-rule="nonzero"/></svg>',selected:'<svg width="24" height="24"><path fill-rule="nonzero" d="M6 4h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2zm3.6 10.9L7 12.3a.7.7 0 0 0-1 1L9.6 17 18 8.6a.7.7 0 0 0 0-1 .7.7 0 0 0-1 0l-7.4 7.3z"/></svg>',settings:'<svg width="24" height="24"><path d="M11 6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8v.3c0 .2 0 .3-.2.5l-.6.2H7.8c-.3 0-.4 0-.6-.2a.7.7 0 0 1-.2-.6V8H5a1 1 0 1 1 0-2h2v-.3c0-.2 0-.3.2-.5l.5-.2h2.5c.3 0 .4 0 .6.2l.2.5V6zM8 8h2V6H8v2zm9 2.8v.2h2c.6 0 1 .4 1 1s-.4 1-1 1h-2v.3c0 .2 0 .3-.2.5l-.6.2h-2.4c-.3 0-.4 0-.6-.2a.7.7 0 0 1-.2-.6V13H5a1 1 0 0 1 0-2h8v-.3c0-.2 0-.3.2-.5l.6-.2h2.4c.3 0 .4 0 .6.2l.2.6zM14 13h2v-2h-2v2zm-3 2.8v.2h8c.6 0 1 .4 1 1s-.4 1-1 1h-8v.3c0 .2 0 .3-.2.5l-.6.2H7.8c-.3 0-.4 0-.6-.2a.7.7 0 0 1-.2-.6V18H5a1 1 0 0 1 0-2h2v-.3c0-.2 0-.3.2-.5l.5-.2h2.5c.3 0 .4 0 .6.2l.2.6zM8 18h2v-2H8v2z" fill-rule="evenodd"/></svg>',sharpen:'<svg width="24" height="24"><path d="M16 6l4 4-8 9-8-9 4-4h8zm-4 10.2l5.5-6.2-.1-.1H12v-.3h5.1l-.2-.2H12V9h4.6l-.2-.2H12v-.3h4.1l-.2-.2H12V8h3.6l-.2-.2H8.7L6.5 10l.1.1H12v.3H6.9l.2.2H12v.3H7.3l.2.2H12v.3H7.7l.3.2h4v.3H8.2l.2.2H12v.3H8.6l.3.2H12v.3H9l.3.2H12v.3H9.5l.2.2H12v.3h-2l.2.2H12v.3h-1.6l.2.2H12v.3h-1.1l.2.2h.9v.3h-.7l.2.2h.5v.3h-.3l.3.2z" fill-rule="evenodd"/></svg>',sourcecode:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M9.8 15.7c.3.3.3.8 0 1-.3.4-.9.4-1.2 0l-4.4-4.1a.8.8 0 0 1 0-1.2l4.4-4.2c.3-.3.9-.3 1.2 0 .3.3.3.8 0 1.1L6 12l3.8 3.7zM14.2 15.7c-.3.3-.3.8 0 1 .4.4.9.4 1.2 0l4.4-4.1c.3-.3.3-.9 0-1.2l-4.4-4.2a.8.8 0 0 0-1.2 0c-.3.3-.3.8 0 1.1L18 12l-3.8 3.7z"/></g></svg>',"spell-check":'<svg width="24" height="24"><path d="M6 8v3H5V5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h2c.3 0 .5.1.7.3.2.2.3.4.3.7v6H8V8H6zm0-3v2h2V5H6zm13 0h-3v5h3v1h-3a1 1 0 0 1-.7-.3 1 1 0 0 1-.3-.7V5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h3v1zm-5 1.5l-.1.7c-.1.2-.3.3-.6.3.3 0 .5.1.6.3l.1.7V10c0 .3-.1.5-.3.7a1 1 0 0 1-.7.3h-3V4h3c.3 0 .5.1.7.3.2.2.3.4.3.7v1.5zM13 10V8h-2v2h2zm0-3V5h-2v2h2zm3 5l1 1-6.5 7L7 15.5l1.3-1 2.2 2.2L16 12z" fill-rule="evenodd"/></svg>',"strike-through":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M15.6 8.5c-.5-.7-1-1.1-1.3-1.3-.6-.4-1.3-.6-2-.6-2.7 0-2.8 1.7-2.8 2.1 0 1.6 1.8 2 3.2 2.3 4.4.9 4.6 2.8 4.6 3.9 0 1.4-.7 4.1-5 4.1A6.2 6.2 0 0 1 7 16.4l1.5-1.1c.4.6 1.6 2 3.7 2 1.6 0 2.5-.4 3-1.2.4-.8.3-2-.8-2.6-.7-.4-1.6-.7-2.9-1-1-.2-3.9-.8-3.9-3.6C7.6 6 10.3 5 12.4 5c2.9 0 4.2 1.6 4.7 2.4l-1.5 1.1z"/><path d="M5 11h14a1 1 0 0 1 0 2H5a1 1 0 0 1 0-2z" fill-rule="nonzero"/></g></svg>',subscript:'<svg width="24" height="24"><path d="M10.4 10l4.6 4.6-1.4 1.4L9 11.4 4.4 16 3 14.6 7.6 10 3 5.4 4.4 4 9 8.6 13.6 4 15 5.4 10.4 10zM21 19h-5v-1l1-.8 1.7-1.6c.3-.4.5-.8.5-1.2 0-.3 0-.6-.2-.7-.2-.2-.5-.3-.9-.3a2 2 0 0 0-.8.2l-.7.3-.4-1.1 1-.6 1.2-.2c.8 0 1.4.3 1.8.7.4.4.6.9.6 1.5s-.2 1.1-.5 1.6a8 8 0 0 1-1.3 1.3l-.6.6h2.6V19z" fill-rule="nonzero"/></svg>',superscript:'<svg width="24" height="24"><path d="M15 9.4L10.4 14l4.6 4.6-1.4 1.4L9 15.4 4.4 20 3 18.6 7.6 14 3 9.4 4.4 8 9 12.6 13.6 8 15 9.4zm5.9 1.6h-5v-1l1-.8 1.7-1.6c.3-.5.5-.9.5-1.3 0-.3 0-.5-.2-.7-.2-.2-.5-.3-.9-.3l-.8.2-.7.4-.4-1.2c.2-.2.5-.4 1-.5.3-.2.8-.2 1.2-.2.8 0 1.4.2 1.8.6.4.4.6 1 .6 1.6 0 .5-.2 1-.5 1.5l-1.3 1.4-.6.5h2.6V11z" fill-rule="nonzero"/></svg>',"table-cell-properties":'<svg width="24" height="24"><path d="M4 5h16v14H4V5zm10 10h-4v3h4v-3zm0-8h-4v3h4V7zM9 7H5v3h4V7zm-4 4v3h4v-3H5zm10 0v3h4v-3h-4zm0-1h4V7h-4v3zM5 15v3h4v-3H5zm10 3h4v-3h-4v3z" fill-rule="evenodd"/></svg>',"table-cell-select-all":'<svg width="24" height="24"><path d="M12.5 5.5v6h6v-6h-6zm-1 0h-6v6h6v-6zm1 13h6v-6h-6v6zm-1 0v-6h-6v6h6zm-7-14h15v15h-15v-15z" fill-rule="nonzero"/></svg>',"table-cell-select-inner":'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M5.5 5.5v13h13v-13h-13zm-1-1h15v15h-15v-15z" opacity=".2"/><path d="M11.5 11.5v-7h1v7h7v1h-7v7h-1v-7h-7v-1h7z"/></g></svg>',"table-delete-column":'<svg width="24" height="24"><path d="M9 11.2l1 1v.2l-1 1v-2.2zm5 1l1-1v2.2l-1-1v-.2zM20 5v14H4V5h16zm-1 2h-4v.8l-.2-.2-.8.8V7h-4v1.4l-.8-.8-.2.2V7H5v11h4v-1.8l.5.5.5-.4V18h4v-1.8l.8.8.2-.3V18h4V7zm-3.9 3.4l-1.8 1.9 1.8 1.9c.4.3.4.9 0 1.2-.3.3-.8.3-1.2 0L12 13.5l-1.8 1.9a.8.8 0 0 1-1.2 0 .9.9 0 0 1 0-1.2l1.8-1.9-1.9-2a.9.9 0 0 1 1.2-1.2l2 2 1.8-1.8c.3-.4.9-.4 1.2 0a.8.8 0 0 1 0 1.1z" fill-rule="evenodd"/></svg>',"table-delete-row":'<svg width="24" height="24"><path d="M16.7 8.8l1.1 1.2-2.4 2.5L18 15l-1.2 1.2-2.5-2.5-2.4 2.5-1.3-1.2 2.5-2.5-2.5-2.5 1.2-1.3 2.6 2.6 2.4-2.5zM4 5h16v14H4V5zm15 5V7H5v3h4.8l1 1H5v3h5.8l-1 1H5v3h14v-3h-.4l-1-1H19v-3h-1.3l1-1h.3z" fill-rule="evenodd"/></svg>',"table-delete-table":'<svg width="24" height="26"><path d="M4 6h16v14H4V6zm1 2v11h14V8H5zm11.7 8.7l-1.5 1.5L12 15l-3.3 3.2-1.4-1.5 3.2-3.2-3.3-3.2 1.5-1.5L12 12l3.2-3.2 1.5 1.5-3.2 3.2 3.2 3.2z" fill-rule="evenodd"/></svg>',"table-insert-column-after":'<svg width="24" height="24"><path d="M14.3 9c.4 0 .7.3.7.6v2.2h2.1c.4 0 .7.3.7.7 0 .4-.3.7-.7.7H15v2.2c0 .3-.3.6-.7.6a.7.7 0 0 1-.6-.6v-2.2h-2.2a.7.7 0 0 1 0-1.4h2.2V9.6c0-.3.3-.6.6-.6zM4 5h16v14H4V5zm5 13v-3H5v3h4zm0-4v-3H5v3h4zm0-4V7H5v3h4zm10 8V7h-9v11h9z" fill-rule="evenodd"/></svg>',"table-insert-column-before":'<svg width="24" height="24"><path d="M9.7 16a.7.7 0 0 1-.7-.6v-2.2H6.9a.7.7 0 0 1 0-1.4H9V9.6c0-.3.3-.6.7-.6.3 0 .6.3.6.6v2.2h2.2c.4 0 .8.3.8.7 0 .4-.4.7-.8.7h-2.2v2.2c0 .3-.3.6-.6.6zM4 5h16v14H4V5zm10 13V7H5v11h9zm5 0v-3h-4v3h4zm0-4v-3h-4v3h4zm0-4V7h-4v3h4z" fill-rule="evenodd"/></svg>',"table-insert-row-above":'<svg width="24" height="24"><path d="M14.8 10.5c0 .3-.2.5-.5.5h-1.8v1.8c0 .3-.2.5-.5.5a.5.5 0 0 1-.5-.6V11H9.7a.5.5 0 0 1 0-1h1.8V8.3c0-.3.2-.6.5-.6s.5.3.5.6V10h1.8c.3 0 .5.2.5.5zM4 5h16v14H4V5zm5 13v-3H5v3h4zm5 0v-3h-4v3h4zm5 0v-3h-4v3h4zm0-4V7H5v7h14z" fill-rule="evenodd"/></svg>',"table-insert-row-after":'<svg width="24" height="24"><path d="M9.2 14.5c0-.3.2-.5.5-.5h1.8v-1.8c0-.3.2-.5.5-.5s.5.2.5.6V14h1.8c.3 0 .5.2.5.5s-.2.5-.5.5h-1.8v1.7c0 .3-.2.6-.5.6a.5.5 0 0 1-.5-.6V15H9.7a.5.5 0 0 1-.5-.5zM4 5h16v14H4V5zm6 2v3h4V7h-4zM5 7v3h4V7H5zm14 11v-7H5v7h14zm0-8V7h-4v3h4z" fill-rule="evenodd"/></svg>',"table-left-header":'<svg width="24" height="24"><path d="M4 5h16v13H4V5zm10 12v-3h-4v3h4zm0-4v-3h-4v3h4zm0-4V6h-4v3h4zm5 8v-3h-4v3h4zm0-4v-3h-4v3h4zm0-4V6h-4v3h4z" fill-rule="evenodd"/></svg>',"table-merge-cells":'<svg width="24" height="24"><path d="M4 5h16v14H4V5zm6 13h9v-7h-9v7zm4-11h-4v3h4V7zM9 7H5v3h4V7zm-4 4v3h4v-3H5zm10-1h4V7h-4v3zM5 15v3h4v-3H5z" fill-rule="evenodd"/></svg>',"table-row-properties":'<svg width="24" height="24"><path d="M4 5h16v14H4V5zm10 10h-4v3h4v-3zm0-8h-4v3h4V7zM9 7H5v3h4V7zm6 3h4V7h-4v3zM5 15v3h4v-3H5zm10 3h4v-3h-4v3z" fill-rule="evenodd"/></svg>',"table-split-cells":'<svg width="24" height="24"><path d="M4 5h16v14H4V5zm6 2v3h4V7h-4zM9 18v-3H5v3h4zm0-4v-3H5v3h4zm0-4V7H5v3h4zm10 8v-7h-9v7h9zm0-8V7h-4v3h4zm-3.5 4.5l1.5 1.6c.3.2.3.7 0 1-.2.2-.7.2-1 0l-1.5-1.6-1.6 1.5c-.2.3-.7.3-1 0a.7.7 0 0 1 0-1l1.6-1.5-1.5-1.6a.7.7 0 0 1 1-1l1.5 1.6 1.6-1.5c.2-.3.7-.3 1 0 .2.2.2.7 0 1l-1.6 1.5z" fill-rule="evenodd"/></svg>',"table-top-header":'<svg width="24" height="24"><path d="M4 5h16v13H4V5zm5 12v-3H5v3h4zm0-4v-3H5v3h4zm5 4v-3h-4v3h4zm0-4v-3h-4v3h4zm5 4v-3h-4v3h4zm0-4v-3h-4v3h4z" fill-rule="evenodd"/></svg>',table:'<svg width="24" height="24"><path d="M4 5h16v14H4V5zm6 9h4v-3h-4v3zm4 1h-4v3h4v-3zm0-8h-4v3h4V7zM9 7H5v3h4V7zm-4 4v3h4v-3H5zm10 0v3h4v-3h-4zm0-1h4V7h-4v3zM5 15v3h4v-3H5zm10 3h4v-3h-4v3z" fill-rule="evenodd"/></svg>',template:'<svg width="24" height="24"><path d="M19 19v-1H5v1h14zM9 16v-4a5 5 0 1 1 6 0v4h4a2 2 0 0 1 2 2v3H3v-3c0-1.1.9-2 2-2h4zm4 0v-5l.8-.6a3 3 0 1 0-3.6 0l.8.6v5h2z" fill-rule="nonzero"/></svg>',"temporary-placeholder":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M9 7.6V6h2.5V4.5a.5.5 0 1 1 1 0V6H15v1.6a8 8 0 1 1-6 0zm-2.6 5.3a.5.5 0 0 0 .3.6c.3 0 .6 0 .6-.3l.1-.2a5 5 0 0 1 3.3-2.8c.3-.1.4-.4.4-.6-.1-.3-.4-.5-.6-.4a6 6 0 0 0-4.1 3.7z"/><circle cx="14" cy="4" r="1"/><circle cx="12" cy="2" r="1"/><circle cx="10" cy="4" r="1"/></g></svg>',"text-color":'<svg width="24" height="24"><g fill-rule="evenodd"><path id="tox-icon-text-color__color" d="M3 18h18v3H3z"/><path d="M8.7 16h-.8a.5.5 0 0 1-.5-.6l2.7-9c.1-.3.3-.4.5-.4h2.8c.2 0 .4.1.5.4l2.7 9a.5.5 0 0 1-.5.6h-.8a.5.5 0 0 1-.4-.4l-.7-2.2c0-.3-.3-.4-.5-.4h-3.4c-.2 0-.4.1-.5.4l-.7 2.2c0 .3-.2.4-.4.4zm2.6-7.6l-.6 2a.5.5 0 0 0 .5.6h1.6a.5.5 0 0 0 .5-.6l-.6-2c0-.3-.3-.4-.5-.4h-.4c-.2 0-.4.1-.5.4z"/></g></svg>',toc:'<svg width="24" height="24"><path d="M5 5c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 1 1 0-2zm3 0h11c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 1 1 0-2zm-3 8c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 0 1 0-2zm3 0h11c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 0 1 0-2zm0-4c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 1 1 0-2zm3 0h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2zm-3 8c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 0 1 0-2zm3 0h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2z" fill-rule="evenodd"/></svg>',translate:'<svg width="24" height="24"><path d="M12.7 14.3l-.3.7-.4.7-2.2-2.2-3.1 3c-.3.4-.8.4-1 0a.7.7 0 0 1 0-1l3.1-3A12.4 12.4 0 0 1 6.7 9H8a10.1 10.1 0 0 0 1.7 2.4c.5-.5 1-1.1 1.4-1.8l.9-2H4.7a.7.7 0 1 1 0-1.5h4.4v-.7c0-.4.3-.8.7-.8.4 0 .7.4.7.8v.7H15c.4 0 .8.3.8.7 0 .4-.4.8-.8.8h-1.4a12.3 12.3 0 0 1-1 2.4 13.5 13.5 0 0 1-1.7 2.3l1.9 1.8zm4.3-3l2.7 7.3a.5.5 0 0 1-.4.7 1 1 0 0 1-1-.7l-.6-1.5h-3.4l-.6 1.5a1 1 0 0 1-1 .7.5.5 0 0 1-.4-.7l2.7-7.4a1 1 0 1 1 2 0zm-2.2 4.4h2.4L16 12.5l-1.2 3.2z" fill-rule="evenodd"/></svg>',underline:'<svg width="24" height="24"><path d="M16 5c.6 0 1 .4 1 1v5.5a4 4 0 0 1-.4 1.8l-1 1.4a5.3 5.3 0 0 1-5.5 1 5 5 0 0 1-1.6-1c-.5-.4-.8-.9-1.1-1.4a4 4 0 0 1-.4-1.8V6c0-.6.4-1 1-1s1 .4 1 1v5.5c0 .3 0 .6.2 1l.6.7a3.3 3.3 0 0 0 2.2.8 3.4 3.4 0 0 0 2.2-.8c.3-.2.4-.5.6-.8l.2-.9V6c0-.6.4-1 1-1zM8 17h8c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 0 1 0-2z" fill-rule="evenodd"/></svg>',undo:'<svg width="24" height="24"><path d="M6.4 8H12c3.7 0 6.2 2 6.8 5.1.6 2.7-.4 5.6-2.3 6.8a1 1 0 0 1-1-1.8c1.1-.6 1.8-2.7 1.4-4.6-.5-2.1-2.1-3.5-4.9-3.5H6.4l3.3 3.3a1 1 0 1 1-1.4 1.4l-5-5a1 1 0 0 1 0-1.4l5-5a1 1 0 0 1 1.4 1.4L6.4 8z" fill-rule="nonzero"/></svg>',unlink:'<svg width="24" height="24"><path d="M6.2 12.3a1 1 0 0 1 1.4 1.4l-2 2a2 2 0 1 0 2.6 2.8l4.8-4.8a1 1 0 0 0 0-1.4 1 1 0 1 1 1.4-1.3 2.9 2.9 0 0 1 0 4L9.6 20a3.9 3.9 0 0 1-5.5-5.5l2-2zm11.6-.6a1 1 0 0 1-1.4-1.4l2.1-2a2 2 0 1 0-2.7-2.8L11 10.3a1 1 0 0 0 0 1.4A1 1 0 1 1 9.6 13a2.9 2.9 0 0 1 0-4L14.4 4a3.9 3.9 0 0 1 5.5 5.5l-2 2zM7.6 6.3a.8.8 0 0 1-1 1.1L3.3 4.2a.7.7 0 1 1 1-1l3.2 3.1zM5.1 8.6a.8.8 0 0 1 0 1.5H3a.8.8 0 0 1 0-1.5H5zm5-3.5a.8.8 0 0 1-1.5 0V3a.8.8 0 0 1 1.5 0V5zm6 11.8a.8.8 0 0 1 1-1l3.2 3.2a.8.8 0 0 1-1 1L16 17zm-2.2 2a.8.8 0 0 1 1.5 0V21a.8.8 0 0 1-1.5 0V19zm5-3.5a.7.7 0 1 1 0-1.5H21a.8.8 0 0 1 0 1.5H19z" fill-rule="nonzero"/></svg>',unlock:'<svg width="24" height="24"><path d="M16 5c.8 0 1.5.3 2.1.9.6.6.9 1.3.9 2.1v3h-2V8a1 1 0 0 0-.3-.7A1 1 0 0 0 16 7h-2a1 1 0 0 0-.7.3 1 1 0 0 0-.3.7v3h.3c.2 0 .3 0 .5.2l.2.6v7.4c0 .3 0 .4-.2.6l-.6.2H4.8c-.3 0-.4 0-.6-.2a.7.7 0 0 1-.2-.6v-7.4c0-.3 0-.4.2-.6l.5-.2H11V8c0-.8.3-1.5.9-2.1.6-.6 1.3-.9 2.1-.9h2z" fill-rule="evenodd"/></svg>',"unordered-list":'<svg width="24" height="24"><path d="M11 5h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2zm0 6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2zm0 6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2zM4.5 6c0-.4.1-.8.4-1 .3-.4.7-.5 1.1-.5.4 0 .8.1 1 .4.4.3.5.7.5 1.1 0 .4-.1.8-.4 1-.3.4-.7.5-1.1.5-.4 0-.8-.1-1-.4-.4-.3-.5-.7-.5-1.1zm0 6c0-.4.1-.8.4-1 .3-.4.7-.5 1.1-.5.4 0 .8.1 1 .4.4.3.5.7.5 1.1 0 .4-.1.8-.4 1-.3.4-.7.5-1.1.5-.4 0-.8-.1-1-.4-.4-.3-.5-.7-.5-1.1zm0 6c0-.4.1-.8.4-1 .3-.4.7-.5 1.1-.5.4 0 .8.1 1 .4.4.3.5.7.5 1.1 0 .4-.1.8-.4 1-.3.4-.7.5-1.1.5-.4 0-.8-.1-1-.4-.4-.3-.5-.7-.5-1.1z" fill-rule="evenodd"/></svg>',unselected:'<svg width="24" height="24"><path fill-rule="nonzero" d="M6 4h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2zm0 1a1 1 0 0 0-1 1v12c0 .6.4 1 1 1h12c.6 0 1-.4 1-1V6c0-.6-.4-1-1-1H6z"/></svg>',upload:'<svg width="24" height="24"><path d="M18 19v-2a1 1 0 0 1 2 0v3c0 .6-.4 1-1 1H5a1 1 0 0 1-1-1v-3a1 1 0 0 1 2 0v2h12zM11 6.4L8.7 8.7a1 1 0 0 1-1.4-1.4l4-4a1 1 0 0 1 1.4 0l4 4a1 1 0 1 1-1.4 1.4L13 6.4V16a1 1 0 0 1-2 0V6.4z" fill-rule="nonzero"/></svg>',user:'<svg width="24" height="24"><path d="M12 24a12 12 0 1 1 0-24 12 12 0 0 1 0 24zm-8.7-5.3a11 11 0 0 0 17.4 0C19.4 16.3 14.6 15 12 15c-2.6 0-7.4 1.3-8.7 3.7zM12 13c2.2 0 4-2 4-4.5S14.2 4 12 4 8 6 8 8.5 9.8 13 12 13z" fill-rule="nonzero"/></svg>',visualblocks:'<svg width="24" height="24"><path d="M9 19v2H7v-2h2zm-4 0v2a2 2 0 0 1-2-2h2zm8 0v2h-2v-2h2zm8 0a2 2 0 0 1-2 2v-2h2zm-4 0v2h-2v-2h2zM15 7a1 1 0 0 1 0 2v7a1 1 0 0 1-2 0V9h-1v7a1 1 0 0 1-2 0v-4a2.5 2.5 0 0 1-.2-5H15zM5 15v2H3v-2h2zm16 0v2h-2v-2h2zM5 11v2H3v-2h2zm16 0v2h-2v-2h2zM5 7v2H3V7h2zm16 0v2h-2V7h2zM5 3v2H3c0-1.1.9-2 2-2zm8 0v2h-2V3h2zm6 0a2 2 0 0 1 2 2h-2V3zM9 3v2H7V3h2zm8 0v2h-2V3h2z" fill-rule="evenodd"/></svg>',visualchars:'<svg width="24" height="24"><path d="M10 5h7a1 1 0 0 1 0 2h-1v11a1 1 0 0 1-2 0V7h-2v11a1 1 0 0 1-2 0v-6c-.5 0-1 0-1.4-.3A3.4 3.4 0 0 1 6.8 10a3.3 3.3 0 0 1 0-2.8 3.4 3.4 0 0 1 1.8-1.8L10 5z" fill-rule="evenodd"/></svg>',warning:'<svg width="24" height="24"><path d="M19.8 18.3c.2.5.3.9 0 1.2-.1.3-.5.5-1 .5H5.2c-.5 0-.9-.2-1-.5-.3-.3-.2-.7 0-1.2L11 4.7l.5-.5.5-.2c.2 0 .3 0 .5.2.2 0 .3.3.5.5l6.8 13.6zM12 18c.3 0 .5-.1.7-.3.2-.2.3-.4.3-.7a1 1 0 0 0-.3-.7 1 1 0 0 0-.7-.3 1 1 0 0 0-.7.3 1 1 0 0 0-.3.7c0 .3.1.5.3.7.2.2.4.3.7.3zm.7-3l.3-4a1 1 0 0 0-.3-.7 1 1 0 0 0-.7-.3 1 1 0 0 0-.7.3 1 1 0 0 0-.3.7l.3 4h1.4z" fill-rule="evenodd"/></svg>',"zoom-in":'<svg width="24" height="24"><path d="M16 17.3a8 8 0 1 1 1.4-1.4l4.3 4.4a1 1 0 0 1-1.4 1.4l-4.4-4.3zm-5-.3a6 6 0 1 0 0-12 6 6 0 0 0 0 12zm-1-9a1 1 0 0 1 2 0v6a1 1 0 0 1-2 0V8zm-2 4a1 1 0 0 1 0-2h6a1 1 0 0 1 0 2H8z" fill-rule="nonzero"/></svg>',"zoom-out":'<svg width="24" height="24"><path d="M16 17.3a8 8 0 1 1 1.4-1.4l4.3 4.4a1 1 0 0 1-1.4 1.4l-4.4-4.3zm-5-.3a6 6 0 1 0 0-12 6 6 0 0 0 0 12zm-3-5a1 1 0 0 1 0-2h6a1 1 0 0 1 0 2H8z" fill-rule="nonzero"/></svg>'}},Sv=function(){var e={},t=function(t,n){e[t]=n},n=function(t){return e[t]?e[t]:{icons:{}}},r=function(t){return Ht(e,t)};return{add:t,get:n,has:r}},Tv=Sv(),Av=ec.PluginManager,Rv=ec.ThemeManager;function Bv(e,t){var r={},o=function(e,t){return e?e.replace(/\/$/,"")+"/"+t.replace(/^\//,""):t},i=function(e,r,i,a){var u,c;u=new n.XMLHttpRequest,u.open("POST",t.url),u.withCredentials=t.credentials,u.upload.onprogress=function(e){a(e.loaded/e.total*100)},u.onerror=function(){i("Image upload failed due to a XHR Transport error. Code: "+u.status)},u.onload=function(){var e;u.status<200||u.status>=300?i("HTTP Error: "+u.status):(e=JSON.parse(u.responseText),e&&"string"===typeof e.location?r(o(t.basePath,e.location)):i("Invalid JSON: "+u.responseText))},c=new n.FormData,c.append("file",e.blob(),e.filename()),u.send(c)},a=function(){return new er((function(e){e([])}))},u=function(e,t){return{url:t,blobInfo:e,status:!0}},c=function(e,t){return{url:"",blobInfo:e,status:!1,error:t}},s=function(e,t){Vr.each(r[e],(function(e){e(t)})),delete r[e]},l=function(t,n,r){return e.markPending(t.blobUri()),new er((function(o){var i,a,l=function(){};try{var f=function(){i&&(i.close(),a=l)},d=function(n){f(),e.markUploaded(t.blobUri(),n),s(t.blobUri(),u(t,n)),o(u(t,n))},h=function(n){f(),e.removeFailed(t.blobUri()),s(t.blobUri(),c(t,n)),o(c(t,n))};a=function(e){e<0||e>100||(i||(i=r()),i.progressBar.value(e))},n(t,d,h,a)}catch(m){o(c(t,m.message))}}))},f=function(e){return e===i},d=function(e){var t=e.blobUri();return new er((function(e){r[t]=r[t]||[],r[t].push(e)}))},h=function(n,r){return n=Vr.grep(n,(function(t){return!e.isUploaded(t.blobUri())})),er.all(Vr.map(n,(function(n){return e.isPending(n.blobUri())?d(n):l(n,t.handler,r)})))},m=function(e,n){return!t.url&&f(t.handler)?a():h(e,n)};return!1===z(t.handler)&&(t.handler=i),{upload:m}}var Dv=function(e){return new er((function(t,r){var o=function(){r("Cannot convert "+e+" to Blob. Resource might not exist or is inaccessible.")};try{var i=new n.XMLHttpRequest;i.open("GET",e,!0),i.responseType="blob",i.onload=function(){200===this.status?t(this.response):o()},i.onerror=o,i.send()}catch(a){o()}}))},Mv=function(e){var t,n,r=decodeURIComponent(e).split(",");return n=/data:([^;]+)/.exec(r[0]),n&&(t=n[1]),{type:t,data:r[1]}},Pv=function(e){return new er((function(t){var r,o,i,a=Mv(e);try{r=n.atob(a.data)}catch(KH){return void t(new n.Blob([]))}for(o=new Uint8Array(r.length),i=0;i<o.length;i++)o[i]=r.charCodeAt(i);t(new n.Blob([o],{type:a.type}))}))},_v=function(e){return 0===e.indexOf("blob:")?Dv(e):0===e.indexOf("data:")?Pv(e):null},Ov=function(e){return new er((function(t){var r=new n.FileReader;r.onloadend=function(){t(r.result)},r.readAsDataURL(e)}))},Hv={uriToBlob:_v,blobToDataUri:Ov,parseDataUri:Mv},Lv=0,Iv=function(e){return(e||"blobid")+Lv++},Vv=function(e,t,n,r){var o,i;if(0===t.src.indexOf("blob:"))return i=e.getByUri(t.src),void(i?n({image:t,blobInfo:i}):Hv.uriToBlob(t.src).then((function(r){Hv.blobToDataUri(r).then((function(a){o=Hv.parseDataUri(a).data,i=e.create(Iv(),r,o),e.add(i),n({image:t,blobInfo:i})}))}),(function(e){r(e)})));o=Hv.parseDataUri(t.src).data,i=e.findFirst((function(e){return e.base64()===o})),i?n({image:t,blobInfo:i}):Hv.uriToBlob(t.src).then((function(r){i=e.create(Iv(),r,o),e.add(i),n({image:t,blobInfo:i})}),(function(e){r(e)}))},Fv=function(e){return e?Z(e.getElementsByTagName("img")):[]};function Uv(e,t){var n={},r=function(r,o){var a;o||(o=i(!0)),a=H(Fv(r),(function(t){var n=t.src;return!!pr.fileApi&&(!t.hasAttribute("data-mce-bogus")&&(!t.hasAttribute("data-mce-placeholder")&&(!(!n||n===pr.transparentSrc)&&(0===n.indexOf("blob:")?!e.isUploaded(n)&&o(t):0===n.indexOf("data:")&&o(t)))))}));var u=M(a,(function(e){if(n[e.src])return new er((function(t){n[e.src].then((function(n){if("string"===typeof n)return n;t({image:e,blobInfo:n.blobInfo})}))}));var r=new er((function(n,r){Vv(t,e,n,r)})).then((function(e){return delete n[e.image.src],e})).catch((function(t){return delete n[e.src],t}));return n[e.src]=r,r}));return er.all(u)};return{findAll:r}}var jv=0,qv=function(){var e=function(){return Math.round(4294967295*Math.random()).toString(36)},t=(new Date).getTime();return"s"+t.toString(36)+e()+e()+e()},Wv=function(e){return e+jv+++qv()},$v={uuid:Wv},Kv=function(){var e=[],t=function(e){var t={"image/jpeg":"jpg","image/jpg":"jpg","image/gif":"gif","image/png":"png"};return t[e.toLowerCase()]||"dat"},r=function(e,t,n,r){if(b(e)){var i=e;return o({id:i,name:r,blob:t,base64:n})}if(w(e))return o(e);throw new Error("Unknown input type")},o=function(e){var r,o;if(!e.blob||!e.base64)throw new Error("blob and base64 representations of the image are required for BlobInfo to be created");return r=e.id||$v.uuid("blobid"),o=e.name||r,{id:i(r),name:i(o),filename:i(o+"."+t(e.blob.type)),blob:i(e.blob),base64:i(e.base64),blobUri:i(e.blobUri||n.URL.createObjectURL(e.blob)),uri:i(e.uri)}},a=function(t){u(t.id())||e.push(t)},u=function(e){return c((function(t){return t.id()===e}))},c=function(t){return H(e,t)[0]},s=function(e){return c((function(t){return t.blobUri()===e}))},l=function(t){e=H(e,(function(e){return e.blobUri()!==t||(n.URL.revokeObjectURL(e.blobUri()),!1)}))},f=function(){P(e,(function(e){n.URL.revokeObjectURL(e.blobUri())})),e=[]};return{create:r,add:a,get:u,getByUri:s,findFirst:c,removeByUri:l,destroy:f}};function Xv(){var e=1,t=2,n={},r=function(e,t){return{status:e,resultUri:t}},o=function(e){return e in n},i=function(e){var t=n[e];return t?t.resultUri:null},a=function(t){return!!o(t)&&n[t].status===e},u=function(e){return!!o(e)&&n[e].status===t},c=function(t){n[t]=r(e,null)},s=function(e,o){n[e]=r(t,o)},l=function(e){delete n[e]},f=function(){n={}};return{hasBlobUri:o,getResultUri:i,isPending:a,isUploaded:u,markPending:c,markUploaded:s,removeFailed:l,destroy:f}}var Yv,Gv=function(e){var t,n,r=Kv(),o=Xv(),i=[],a=function(t){return function(n){return e.selection?t(n):[]}},u=function(){return"?"+(new Date).getTime()},c=function(e,t,n){var r=0;do{r=e.indexOf(t,r),-1!==r&&(e=e.substring(0,r)+n+e.substr(r+t.length),r+=n.length-t.length+1)}while(-1!==r);return e},s=function(e,t,n){return e=c(e,'src="'+t+'"','src="'+n+'"'),e=c(e,'data-mce-src="'+t+'"','data-mce-src="'+n+'"'),e},l=function(t,n){P(e.undoManager.data,(function(e){"fragmented"===e.type?e.fragments=M(e.fragments,(function(e){return s(e,t,n)})):e.content=s(e.content,t,n)}))},f=function(){return e.notificationManager.open({text:e.translate("Image uploading..."),type:"info",timeout:-1,progressBar:!0})},d=function(t,n){r.removeByUri(t.src),l(t.src,n),e.$(t).attr({src:zm.shouldReuseFileName(e)?n+u():n,"data-mce-src":e.convertURL(n,"src")})},h=function(n){return t||(t=Bv(o,{url:zm.getImageUploadUrl(e),basePath:zm.getImageUploadBasePath(e),credentials:zm.getImagesUploadCredentials(e),handler:zm.getImagesUploadHandler(e)})),v().then(a((function(r){var o;return o=M(r,(function(e){return e.blobInfo})),t.upload(o,f).then(a((function(t){var o=M(t,(function(t,n){var o=r[n].image;return t.status&&zm.shouldReplaceBlobUris(e)?d(o,t.url):t.error&&kv.uploadError(e,t.error),{element:o,status:t.status}}));return n&&n(o),o})))})))},m=function(t){if(zm.isAutomaticUploadsEnabled(e))return h(t)},g=function(t){if(!1===q(i,(function(e){return e(t)})))return!1;if(0===t.getAttribute("src").indexOf("data:")){var n=zm.getImagesDataImgFilter(e);return n(t)}return!0},p=function(e){i.push(e)},v=function(){return n||(n=Uv(o,r)),n.findAll(e.getBody(),g).then(a((function(t){return t=H(t,(function(t){return"string"!==typeof t||(kv.displayError(e,t),!1)})),P(t,(function(e){l(e.image.src,e.blobInfo.blobUri()),e.image.src=e.blobInfo.blobUri(),e.image.removeAttribute("data-mce-src")})),t})))},y=function(){r.destroy(),o.destroy(),n=t=null},b=function(t){return t.replace(/src="(blob:[^"]+)"/g,(function(t,n){var i=o.getResultUri(n);if(i)return'src="'+i+'"';var a=r.getByUri(n);if(a||(a=I(e.editorManager.get(),(function(e,t){return e||t.editorUpload&&t.editorUpload.blobCache.getByUri(n)}),null)),a){var u=a.blob();return'src="data:'+u.type+";base64,"+a.base64()+'"'}return t}))};return e.on("SetContent",(function(){zm.isAutomaticUploadsEnabled(e)?m():v()})),e.on("RawSaveContent",(function(e){e.content=b(e.content)})),e.on("GetContent",(function(e){e.source_view||"raw"===e.format||(e.content=b(e.content))})),e.on("PostRender",(function(){e.parser.addNodeFilter("img",(function(e){P(e,(function(e){var t=e.attr("src");if(!r.getByUri(t)){var n=o.getResultUri(t);n&&e.attr("src",n)}}))}))})),{blobCache:r,addFilter:p,uploadImages:h,uploadImagesAuto:m,scanForImages:v,destroy:y}},Zv=function(e){return e.slice(0,-1)},Jv=function(e,t,n){return mn(t,e)?Zv(bn(e,(function(e){return n(e)||ln(e,t)}))):[]},Qv=function(e,t){return Jv(e,t,i(!1))},ey=function(e,t){return[e].concat(Qv(e,t))},ty={parentsUntil:Jv,parents:Qv,parentsAndSelf:ey},ny=function(e,t){return e.hasOwnProperty(t.nodeName)},ry=function(e,t){return!!we.isText(t)||!!we.isElement(t)&&(!ny(e,t)&&!Od.isBookmarkNode(t))},oy=function(e,t,n){return D(ty.parents(Ct.fromDom(n),Ct.fromDom(t)),(function(t){return ny(e,t.dom())}))},iy=function(e,t){if(we.isText(t)){if(0===t.nodeValue.length)return!0;if(/^\s+$/.test(t.nodeValue)&&(!t.nextSibling||ny(e,t.nextSibling)))return!0}return!1},ay=function(e){var t,n,r,o,i,a,u,c,s,l,f=e.dom,d=e.selection,h=e.schema,m=h.getBlockElements(),g=d.getStart(),p=e.getBody(),v=zm.getForcedRootBlock(e);if(g&&we.isElement(g)&&v&&(l=p.nodeName.toLowerCase(),h.isValidChild(l,v.toLowerCase())&&!oy(m,p,g))){t=d.getRng(),n=t.startContainer,r=t.startOffset,o=t.endContainer,i=t.endOffset,s=Jg.hasFocus(e),g=p.firstChild;while(g)if(ry(m,g)){if(iy(m,g)){u=g,g=g.nextSibling,f.remove(u);continue}a||(a=f.create(v,zm.getForcedRootBlockAttrs(e)),g.parentNode.insertBefore(a,g),c=!0),u=g,g=g.nextSibling,a.appendChild(u)}else a=null,g=g.nextSibling;c&&s&&(t.setStart(n,r),t.setEnd(o,i),d.setRng(t),e.nodeChanged())}},uy=function(e){zm.getForcedRootBlock(e)&&e.on("NodeChange",u(ay,e))},cy={setup:uy},sy=function(e,t){return e&&t&&e.startContainer===t.startContainer&&e.startOffset===t.startOffset&&e.endContainer===t.endContainer&&e.endOffset===t.endOffset},ly={isEq:sy},fy=function(e){var t=e.startContainer,n=e.startOffset;return we.isText(t)?0===n?p.some(Ct.fromDom(t)):p.none():p.from(t.childNodes[n]).map(Ct.fromDom)},dy=function(e){var t=e.endContainer,n=e.endOffset;return we.isText(t)?n===t.data.length?p.some(Ct.fromDom(t)):p.none():p.from(t.childNodes[n-1]).map(Ct.fromDom)},hy=function(e){return Nn(e).fold(i([e]),(function(t){return[e].concat(hy(t))}))},my=function(e){return Sn(e).fold(i([e]),(function(t){return"br"===kt(t)?wn(t).map((function(t){return[e].concat(my(t))})).getOr([]):[e].concat(my(t))}))},gy=function(e,t){return Ps(fy(t),dy(t),(function(t,n){var r=V(hy(e),u(ln,t)),o=V(my(e),u(ln,n));return r.isSome()&&o.isSome()})).getOr(!1)},py=function(e,t,n,r){var o=n,i=new Qa(n,o),a=e.schema.getNonEmptyElements();do{if(3===n.nodeType&&0!==Vr.trim(n.nodeValue).length)return void(r?t.setStart(n,0):t.setEnd(n,n.nodeValue.length));if(a[n.nodeName]&&!/^(TD|TH)$/.test(n.nodeName))return void(r?t.setStartBefore(n):"BR"===n.nodeName?t.setEndBefore(n):t.setEndAfter(n))}while(n=r?i.next():i.prev());"BODY"===o.nodeName&&(r?t.setStart(o,0):t.setEnd(o,o.childNodes.length))},vy=function(e){var t=e.selection.getSel();return t&&t.rangeCount>0},yy=function(){function e(e){var t;this.lastPath=[],this.editor=e;var n=this;"onselectionchange"in e.getDoc()||e.on("NodeChange click mouseup keyup focus",(function(n){var r,o;r=e.selection.getRng(),o={startContainer:r.startContainer,startOffset:r.startOffset,endContainer:r.endContainer,endOffset:r.endOffset},"nodechange"!==n.type&&ly.isEq(o,t)||e.fire("SelectionChange"),t=o})),e.on("contextmenu",(function(){e.fire("SelectionChange")})),e.on("SelectionChange",(function(){var t=e.selection.getStart(!0);!t||!pr.range&&e.selection.isCollapsed()||vy(e)&&!n.isSameElementPath(t)&&e.dom.isChildOf(t,e.getBody())&&e.nodeChanged({selectionChange:!0})})),e.on("mouseup",(function(t){!t.isDefaultPrevented()&&vy(e)&&("IMG"===e.selection.getNode().nodeName?ur.setEditorTimeout(e,(function(){e.nodeChanged()})):e.nodeChanged())}))}return e.prototype.nodeChanged=function(e){var t,n,r,o=this.editor.selection;this.editor.initialized&&o&&!this.editor.settings.disable_nodechange&&!this.editor.readonly&&(r=this.editor.getBody(),t=o.getStart(!0)||r,t.ownerDocument===this.editor.getDoc()&&this.editor.dom.isChildOf(t,r)||(t=r),n=[],this.editor.dom.getParent(t,(function(e){if(e===r)return!0;n.push(e)})),e=e||{},e.element=t,e.parents=n,this.editor.fire("NodeChange",e))},e.prototype.isSameElementPath=function(e){var t,n;if(n=this.editor.$(e).parentsUntil(this.editor.getBody()).add(e),n.length===this.lastPath.length){for(t=n.length;t>=0;t--)if(n[t]!==this.lastPath[t])break;if(-1===t)return this.lastPath=n,!0}return this.lastPath=n,!1},e}(),by={BACKSPACE:8,DELETE:46,DOWN:40,ENTER:13,LEFT:37,RIGHT:39,SPACEBAR:32,TAB:9,UP:38,END:35,HOME:36,modifierPressed:function(e){return e.shiftKey||e.ctrlKey||e.altKey||this.metaKeyPressed(e)},metaKeyPressed:function(e){return pr.mac?e.metaKey:e.ctrlKey&&!e.altKey}},wy=function(e){return function(t){return e===t}},Cy=wy(" "),xy=function(e){return/^[\r\n\t ]$/.test(e)},Ey=function(e){return!xy(e)&&!Cy(e)},zy=function(e,t,n){return p.from(n.container()).filter(we.isText).exists((function(r){var o=e?0:-1;return t(r.data.charAt(n.offset()+o))}))},ky=u(zy,!0,xy),Ny=u(zy,!1,xy),Sy=function(e){var t=e.container();return we.isText(t)&&0===t.data.length},Ty=function(e,t){return function(n){return p.from(Tf(e?0:-1,n)).filter(t).isSome()}},Ay=function(e){return"IMG"===e.nodeName&&"block"===$t(Ct.fromDom(e),"display")},Ry=function(e){return we.isContentEditableFalse(e)&&!we.isBogusAll(e)},By=Ty(!0,Ay),Dy=Ty(!1,Ay),My=Ty(!0,we.isTable),Py=Ty(!1,we.isTable),_y=Ty(!0,Ry),Oy=Ty(!1,Ry),Hy=function(e){var t=function(t){return M(t,(function(t){return t=Es(t),t.node=e,t}))};if(we.isElement(e))return t(e.getClientRects());if(we.isText(e)){var n=e.ownerDocument.createRange();return n.setStart(e,0),n.setEnd(e,e.data.length),t(n.getClientRects())}},Ly=function(e){return I(e,(function(e,t){return e.concat(Hy(t))}),[])};(function(e){e[e["Up"]=-1]="Up",e[e["Down"]=1]="Down"})(Yv||(Yv={}));var Iy=function(e,t,n,r){while(r=kf(r,e,Cs,t))if(n(r))return},Vy=function(e,t,n,r,o,i){var a,u,c=0,s=[],l=function(r){var i,a,l;for(l=Ly([r]),-1===e&&(l=l.reverse()),i=0;i<l.length;i++)if(a=l[i],!n(a,u)){if(s.length>0&&t(a,Sr.last(s))&&c++,a.line=c,o(a))return!0;s.push(a)}};return u=Sr.last(i.getClientRects()),u?(a=i.getNode(),l(a),Iy(e,r,l,a),s):s},Fy=function(e,t){return t.line>e},Uy=function(e,t){return t.line===e},jy=u(Vy,Yv.Up,Ss,Ts),qy=u(Vy,Yv.Down,Ts,Ss),Wy=function(e,t,n,r){var o,i,a,u,c,s,l=Qf(t),f=[],d=0,h=function(e){return Sr.last(e.getClientRects())};1===e?(o=l.next,i=Ts,a=Ss,u=sl.after(r)):(o=l.prev,i=Ss,a=Ts,u=sl.before(r)),s=h(u);do{if(u.isVisible()&&(c=h(u),!a(c,s))){if(f.length>0&&i(c,Sr.last(f))&&d++,c=Es(c),c.position=u,c.line=d,n(c))return f;f.push(c)}}while(u=o(u));return f},$y=function(e){return function(t){return Fy(e,t)}},Ky=function(e){return function(t){return Uy(e,t)}},Xy=we.isContentEditableFalse,Yy=kf,Gy=function(e,t){return Math.abs(e.left-t)},Zy=function(e,t){return Math.abs(e.right-t)},Jy=function(e,t){return e>=t.left&&e<=t.right},Qy=function(e,t){return Sr.reduce(e,(function(e,n){var r,o;return r=Math.min(Gy(e,t),Zy(e,t)),o=Math.min(Gy(n,t),Zy(n,t)),Jy(t,n)?n:Jy(t,e)?e:o===r&&Xy(n.node)||o<r?n:e}))},eb=function(e,t,n,r){while(r=Yy(r,e,Cs,t))if(n(r))return},tb=function(e,t){var n=[],r=function(e,r){var o;return o=H(Ly([r]),(function(n){return!e(n,t)})),n=n.concat(o),0===o.length};return n.push(t),eb(Yv.Up,e,u(r,Ss),t.node),eb(Yv.Down,e,u(r,Ts),t.node),n},nb=function(e){return H(Z(e.getElementsByTagName("*")),gf)},rb=function(e,t){return{node:e.node,before:Gy(e,t)<Zy(e,t)}},ob=function(e,t,n){var r,o=Ly(nb(e)),i=H(o,(function(e){return n>=e.top&&n<=e.bottom}));return r=Qy(i,t),r&&(r=Qy(tb(e,r),t),r&&gf(r.node))?rb(r,t):null},ib=function(e,t,n){if(n.collapsed)return!1;if(pr.browser.isIE()&&n.startOffset===n.endOffset-1&&n.startContainer===n.endContainer){var r=n.startContainer.childNodes[n.startOffset];if(we.isElement(r))return D(r.getClientRects(),(function(n){return As(n,e,t)}))}return D(n.getClientRects(),(function(n){return As(n,e,t)}))},ab={isXYWithinRange:ib},ub=function(e){var t,n,r,o;return o=e.getBoundingClientRect(),t=e.ownerDocument,n=t.documentElement,r=t.defaultView,{top:o.top+r.pageYOffset-n.clientTop,left:o.left+r.pageXOffset-n.clientLeft}},cb=function(e){return e.inline?ub(e.getBody()):{left:0,top:0}},sb=function(e){var t=e.getBody();return e.inline?{left:t.scrollLeft,top:t.scrollTop}:{left:0,top:0}},lb=function(e){var t=e.getBody(),n=e.getDoc().documentElement,r={left:t.scrollLeft,top:t.scrollTop},o={left:t.scrollLeft||n.scrollLeft,top:t.scrollTop||n.scrollTop};return e.inline?r:o},fb=function(e,t){if(t.target.ownerDocument!==e.getDoc()){var n=ub(e.getContentAreaContainer()),r=lb(e);return{left:t.pageX-n.left+r.left,top:t.pageY-n.top+r.top}}return{left:t.pageX,top:t.pageY}},db=function(e,t,n){return{pageX:n.left-e.left+t.left,pageY:n.top-e.top+t.top}},hb=function(e,t){return db(cb(e),sb(e),fb(e,t))},mb={calc:hb},gb=we.isContentEditableFalse,pb=we.isContentEditableTrue,vb=function(e,t){return gb(t)&&t!==e},yb=function(e,t,n){return t!==n&&!e.dom.isChildOf(t,n)&&!gb(t)},bb=function(e){var t=e.cloneNode(!0);return t.removeAttribute("data-mce-selected"),t},wb=function(e,t,n,r){var o=t.cloneNode(!0);e.dom.setStyles(o,{width:n,height:r}),e.dom.setAttrib(o,"data-mce-selected",null);var i=e.dom.create("div",{class:"mce-drag-container","data-mce-bogus":"all",unselectable:"on",contenteditable:"false"});return e.dom.setStyles(i,{position:"absolute",opacity:.5,overflow:"hidden",border:0,padding:0,margin:0,width:n,height:r}),e.dom.setStyles(o,{margin:0,boxSizing:"border-box"}),i.appendChild(o),i},Cb=function(e,t){e.parentNode!==t&&t.appendChild(e)},xb=function(e,t,n,r,o,i){var a=0,u=0;e.style.left=t.pageX+"px",e.style.top=t.pageY+"px",t.pageX+n>o&&(a=t.pageX+n-o),t.pageY+r>i&&(u=t.pageY+r-i),e.style.width=n-a+"px",e.style.height=r-u+"px"},Eb=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},zb=function(e){return 0===e.button},kb=function(e){return e.element},Nb=function(e,t){return{pageX:t.pageX-e.relX,pageY:t.pageY+5}},Sb=function(e,t){return function(n){if(zb(n)){var r=V(t.dom.getParents(n.target),Vs.or(gb,pb)).getOr(null);if(vb(t.getBody(),r)){var o=t.dom.getPos(r),i=t.getBody(),a=t.getDoc().documentElement;e.element=r,e.screenX=n.screenX,e.screenY=n.screenY,e.maxX=(t.inline?i.scrollWidth:a.offsetWidth)-2,e.maxY=(t.inline?i.scrollHeight:a.offsetHeight)-2,e.relX=n.pageX-o.x,e.relY=n.pageY-o.y,e.width=r.offsetWidth,e.height=r.offsetHeight,e.ghost=wb(t,r,e.width,e.height)}}}},Tb=function(e,t){var n=ur.throttle((function(e,n){t._selectionOverrides.hideFakeCaret(),t.selection.placeCaretAt(e,n)}),0);return function(r){var o=Math.max(Math.abs(r.screenX-e.screenX),Math.abs(r.screenY-e.screenY));if(kb(e)&&!e.dragging&&o>10){var i=t.fire("dragstart",{target:e.element});if(i.isDefaultPrevented())return;e.dragging=!0,t.focus()}if(e.dragging){var a=Nb(e,mb.calc(t,r));Cb(e.ghost,t.getBody()),xb(e.ghost,a,e.width,e.height,e.maxX,e.maxY),n(r.clientX,r.clientY)}}},Ab=function(e){var t=e.getSel().getRangeAt(0),n=t.startContainer;return 3===n.nodeType?n.parentNode:n},Rb=function(e,t){return function(n){if(e.dragging&&yb(t,Ab(t.selection),e.element)){var r=bb(e.element),o=t.fire("drop",{targetClone:r,clientX:n.clientX,clientY:n.clientY});o.isDefaultPrevented()||(r=o.targetClone,t.undoManager.transact((function(){Eb(e.element),t.insertContent(t.dom.getOuterHTML(r)),t._selectionOverrides.hideFakeCaret()})))}Db(e)}},Bb=function(e,t){return function(){e.dragging&&t.fire("dragend"),Db(e)}},Db=function(e){e.dragging=!1,e.element=null,Eb(e.ghost)},Mb=function(e){var t,r,o,i,a,u,c={};t=Bu.DOM,u=n.document,r=Sb(c,e),o=Tb(c,e),i=Rb(c,e),a=Bb(c,e),e.on("mousedown",r),e.on("mousemove",o),e.on("mouseup",i),t.bind(u,"mousemove",o),t.bind(u,"mouseup",a),e.on("remove",(function(){t.unbind(u,"mousemove",o),t.unbind(u,"mouseup",a)}))},Pb=function(e){e.on("drop",(function(t){var n="undefined"!==typeof t.clientX?e.getDoc().elementFromPoint(t.clientX,t.clientY):null;(gb(n)||gb(e.dom.getContentEditableParent(n)))&&t.preventDefault()}))},_b=function(e){Mb(e),Pb(e)},Ob={init:_b},Hb=we.isContentEditableTrue,Lb=we.isContentEditableFalse,Ib=function(e,t,n,r,o){return t._selectionOverrides.showCaret(e,n,r,o)},Vb=function(e){var t=e.ownerDocument.createRange();return t.selectNode(e),t},Fb=function(e,t){var n=e.fire("BeforeObjectSelected",{target:t});return n.isDefaultPrevented()?null:Vb(t)},Ub=function(e,t,n){var r=Pf(1,e.getBody(),t),o=sl.fromRangeStart(r),i=o.getNode();if(Lb(i))return Ib(1,e,i,!o.isAtEnd(),!1);var a=o.getNode(!0);if(Lb(a))return Ib(1,e,a,!1,!1);var u=e.dom.getParent(o.getNode(),(function(e){return Lb(e)||Hb(e)}));return Lb(u)?Ib(1,e,u,!1,n):null},jb=function(e,t,n){if(!t||!t.collapsed)return t;var r=Ub(e,t,n);return r||t},qb=function(e){var t=tc((function(){if(!e.removed&&e.getBody().contains(n.document.activeElement)){var t=e.selection.getRng();if(t.collapsed){var r=jb(e,e.selection.getRng(),!1);e.selection.setRng(r)}}}),0);e.on("focus",(function(){t.throttle()})),e.on("blur",(function(){t.cancel()}))},Wb={setup:qb},$b=we.isContentEditableTrue,Kb=we.isContentEditableFalse,Xb=function(e,t){var n=e.getBody();while(t&&t!==n){if($b(t)||Kb(t))return t;t=t.parentNode}return null},Yb=function(e){var t,n=function(t){return e.dom.isBlock(t)},r=e.getBody(),o=hf(e.getBody(),n,(function(){return Jg.hasFocus(e)})),i="sel-"+e.dom.uniqueId(),a=function(t){return e.dom.hasClass(t,"mce-offscreen-selection")},u=function(){var t=e.dom.get(i);return t?t.getElementsByTagName("*")[0]:t},c=function(t){t&&e.selection.setRng(t)},s=function(){return e.selection.getRng()},l=function(t,n,r,i){var a;return void 0===i&&(i=!0),a=e.fire("ShowCaret",{target:n,direction:t,before:r}),a.isDefaultPrevented()?null:(i&&e.selection.scrollIntoView(n,-1===t),o.show(r,n))},f=function(t){t.hasAttribute("data-mce-caret")&&(is(t),c(s()),e.selection.scrollIntoView(t[0]))},d=function(){e.on("mouseup",(function(t){var n=s();n.collapsed&&lv.isXYInContentArea(e,t.clientX,t.clientY)&&c(Ub(e,n,!1))})),e.on("click",(function(t){var n;n=Xb(e,t.target),n&&(Kb(n)&&(t.preventDefault(),e.focus()),$b(n)&&e.dom.isChildOf(n,e.selection.getNode())&&v())})),e.on("blur NewBlock",(function(){v()})),e.on("ResizeWindow FullscreenStateChanged",(function(){return o.reposition()}));var n=function(e){var t=!1;e.on("touchstart",(function(){t=!1})),e.on("touchmove",(function(){t=!0})),e.on("touchend",(function(n){if(!t){var r=Xb(e,n.target);Kb(r)&&(n.preventDefault(),p(Fb(e,r)))}}),!0)},i=function(e){var t=Qf(e);if(!e.firstChild)return!1;var n=sl.before(e.firstChild),r=t.next(n);return r&&!_y(r)&&!Oy(r)},f=function(t,n){var r=e.dom.getParent(t,e.dom.isBlock),o=e.dom.getParent(n,e.dom.isBlock);return r===o},d=function(t,n){var r=e.dom.getParent(t,e.dom.isBlock),o=e.dom.getParent(n,e.dom.isBlock);return!(!r||!e.dom.isChildOf(r,o)||!1!==Kb(Xb(e,r)))||r&&!f(r,o)&&i(r)};n(e),e.on("mousedown",(function(t){var n,o=t.target;if((o===r||"HTML"===o.nodeName||e.dom.isChildOf(o,r))&&!1!==lv.isXYInContentArea(e,t.clientX,t.clientY))if(n=Xb(e,o),n)Kb(n)?(t.preventDefault(),p(Fb(e,n))):(v(),$b(n)&&t.shiftKey||ab.isXYWithinRange(t.clientX,t.clientY,e.selection.getRng())||(b(),e.selection.placeCaretAt(t.clientX,t.clientY)));else if(!1===gf(o)){v(),b();var i=ob(r,t.clientX,t.clientY);if(i&&!d(t.target,i.node)){t.preventDefault();var a=l(1,i.node,i.before,!1);e.getBody().focus(),c(a)}}})),e.on("keypress",(function(t){if(!by.modifierPressed(t))switch(t.keyCode){default:Kb(e.selection.getNode())&&t.preventDefault();break}})),e.on("GetSelectionRange",(function(e){var n=e.range;if(t){if(!t.parentNode)return void(t=null);n=n.cloneRange(),n.selectNode(t),e.range=n}})),e.on("SetSelectionRange",(function(e){e.range=g(e.range);var t=p(e.range,e.forward);t&&(e.range=t)}));var h=function(e){return"mcepastebin"===e.id};e.on("AfterSetSelectionRange",(function(e){var t=e.range;m(t)||h(t.startContainer.parentNode)||b(),a(t.startContainer.parentNode)||v()})),e.on("copy",(function(e){var t=e.clipboardData;if(!e.isDefaultPrevented()&&e.clipboardData&&!pr.ie){var n=u();n&&(e.preventDefault(),t.clearData(),t.setData("text/html",n.outerHTML),t.setData("text/plain",n.outerText))}})),Ob.init(e),Wb.setup(e)},h=function(e){return Yc(e)||ns(e)||rs(e)},m=function(e){return h(e.startContainer)||h(e.endContainer)},g=function(t){var n=e.schema.getShortEndedElements(),r=e.dom.createRng(),o=t.startContainer,i=t.startOffset,a=t.endContainer,u=t.endOffset;return Ht(n,o.nodeName.toLowerCase())?0===i?r.setStartBefore(o):r.setStartAfter(o):r.setStart(o,i),Ht(n,a.nodeName.toLowerCase())?0===u?r.setEndBefore(a):r.setEndAfter(a):r.setEnd(a,u),r},p=function(n,o){var a,u,c,s,f,d,h,g,p,v,y=e.$,w=e.dom;if(!n)return null;if(n.collapsed){if(!m(n))if(!1===o){if(g=Of(-1,r,n),gf(g.getNode(!0)))return l(-1,g.getNode(!0),!1,!1);if(gf(g.getNode()))return l(-1,g.getNode(),!g.isAtEnd(),!1)}else{if(g=Of(1,r,n),gf(g.getNode()))return l(1,g.getNode(),!g.isAtEnd(),!1);if(gf(g.getNode(!0)))return l(1,g.getNode(!0),!1,!1)}return null}if(s=n.startContainer,f=n.startOffset,d=n.endOffset,3===s.nodeType&&0===f&&Kb(s.parentNode)&&(s=s.parentNode,f=w.nodeIndex(s),s=s.parentNode),1!==s.nodeType)return null;if(d===f+1&&s===n.endContainer&&(a=s.childNodes[f]),!Kb(a))return null;if(p=v=a.cloneNode(!0),h=e.fire("ObjectSelected",{target:a,targetClone:p}),h.isDefaultPrevented())return null;u=wc(Ct.fromDom(e.getBody()),"#"+i).fold((function(){return y([])}),(function(e){return y([e.dom()])})),p=h.targetClone,0===u.length&&(u=y('<div data-mce-bogus="all" class="mce-offscreen-selection"></div>').attr("id",i),u.appendTo(e.getBody())),n=e.dom.createRng(),p===v&&pr.ie?(u.empty().append('<p style="font-size: 0" data-mce-bogus="all"> </p>').append(p),n.setStartAfter(u[0].firstChild.firstChild),n.setEndAfter(p)):(u.empty().append(" ").append(p).append(" "),n.setStart(u[0].firstChild,1),n.setEnd(u[0].lastChild,0)),u.css({top:w.getPos(a,e.getBody()).y}),u[0].focus(),c=e.selection.getSel(),c.removeAllRanges(),c.addRange(n);var C=Ct.fromDom(a);return P(gc(Ct.fromDom(e.getBody()),"*[data-mce-selected]"),(function(e){ln(C,e)||Wt(e,"data-mce-selected")})),e.dom.getAttrib(a,"data-mce-selected")||a.setAttribute("data-mce-selected","1"),t=a,b(),n},v=function(){t&&(t.removeAttribute("data-mce-selected"),wc(Ct.fromDom(e.getBody()),"#"+i).each(cu),t=null),wc(Ct.fromDom(e.getBody()),"#"+i).each(cu),t=null},y=function(){o.destroy(),t=null},b=function(){o.hide()};return pr.ceFalse&&d(),{showCaret:l,showBlockCaretContainer:f,hideFakeCaret:b,destroy:y}},Gb=0,Zb=1,Jb=2,Qb=function(e,t){var n=e.length+t.length+2,r=new Array(n),o=new Array(n),i=function(e,t,n){return{start:e,end:t,diag:n}},a=function(n,r,o,i,u){var s=c(n,r,o,i);if(null===s||s.start===r&&s.diag===r-i||s.end===n&&s.diag===n-o){var l=n,f=o;while(l<r||f<i)l<r&&f<i&&e[l]===t[f]?(u.push([Gb,e[l]]),++l,++f):r-n>i-o?(u.push([Jb,e[l]]),++l):(u.push([Zb,t[f]]),++f)}else{a(n,s.start,o,s.start-s.diag,u);for(var d=s.start;d<s.end;++d)u.push([Gb,e[d]]);a(s.end,r,s.end-s.diag,i,u)}},u=function(n,r,o,a){var u=n;while(u-r<a&&u<o&&e[u]===t[u-r])++u;return i(n,u,r)},c=function(n,i,a,c){var s=i-n,l=c-a;if(0===s||0===l)return null;var f,d,h,m,g,p=s-l,v=l+s,y=(v%2===0?v:v+1)/2;for(r[1+y]=n,o[1+y]=i+1,f=0;f<=y;++f){for(d=-f;d<=f;d+=2){h=d+y,d===-f||d!==f&&r[h-1]<r[h+1]?r[h]=r[h+1]:r[h]=r[h-1]+1,m=r[h],g=m-n+a-d;while(m<i&&g<c&&e[m]===t[g])r[h]=++m,++g;if(p%2!==0&&p-f<=d&&d<=p+f&&o[h-p]<=r[h])return u(o[h-p],d+n-a,i,c)}for(d=p-f;d<=p+f;d+=2){h=d+y-p,d===p-f||d!==p+f&&o[h+1]<=o[h-1]?o[h]=o[h+1]-1:o[h]=o[h-1],m=o[h]-1,g=m-n+a-d;while(m>=n&&g>=a&&e[m]===t[g])o[h]=m--,g--;if(p%2===0&&-f<=d&&d<=f&&o[h]<=r[h+p])return u(o[h],d+n-a,i,c)}}},s=[];return a(0,e.length,0,t.length,s),s},ew={KEEP:Gb,DELETE:Jb,INSERT:Zb,diff:Qb},tw=function(e){return we.isElement(e)?e.outerHTML:we.isText(e)?Do.encodeRaw(e.data,!1):we.isComment(e)?"\x3c!--"+e.data+"--\x3e":""},nw=function(e){var t,r,o;o=n.document.createElement("div"),t=n.document.createDocumentFragment(),e&&(o.innerHTML=e);while(r=o.firstChild)t.appendChild(r);return t},rw=function(e,t,n){var r=nw(t);if(e.hasChildNodes()&&n<e.childNodes.length){var o=e.childNodes[n];o.parentNode.insertBefore(r,o)}else e.appendChild(r)},ow=function(e,t){if(e.hasChildNodes()&&t<e.childNodes.length){var n=e.childNodes[t];n.parentNode.removeChild(n)}},iw=function(e,t){var n=0;P(e,(function(e){e[0]===ew.KEEP?n++:e[0]===ew.INSERT?(rw(t,e[1],n),n++):e[0]===ew.DELETE&&ow(t,n)}))},aw=function(e){return H(M(Z(e.childNodes),tw),(function(e){return e.length>0}))},uw=function(e,t){var n=M(Z(t.childNodes),tw);return iw(ew.diff(n,e),t),t},cw={read:aw,write:uw},sw=Ce(p.none()),lw=function(){return sw.get().getOrThunk((function(){var e=n.document.implementation.createHTMLDocument("undo");return sw.set(p.some(e)),e}))},fw=function(e){return-1!==e.indexOf("</iframe>")},dw=function(e){return{type:"fragmented",fragments:e,content:"",bookmark:null,beforeBookmark:null}},hw=function(e){return{type:"complete",fragments:null,content:e,bookmark:null,beforeBookmark:null}},mw=function(e){var t,n,r;return t=cw.read(e.getBody()),r=j(t,(function(t){var n=Uh.trimInternal(e.serializer,t);return n.length>0?[n]:[]})),n=r.join(""),fw(n)?dw(r):hw(n)},gw=function(e,t,n){"fragmented"===t.type?cw.write(t.fragments,e.getBody()):e.setContent(t.content,{format:"raw"}),e.selection.moveToBookmark(n?t.beforeBookmark:t.bookmark)},pw=function(e){return"fragmented"===e.type?e.fragments.join(""):e.content},vw=function(e){var t=Ct.fromTag("body",lw());return Vc(t,pw(e)),P(gc(t,"*[data-mce-bogus]"),su),Ic(t)},yw=function(e,t){return pw(e)===pw(t)},bw=function(e,t){return vw(e)===vw(t)},ww=function(e,t){return!(!e||!t)&&(!!yw(e,t)||bw(e,t))},Cw={createFragmentedLevel:dw,createCompleteLevel:hw,createFromEditor:mw,applyToEditor:gw,isEq:ww},xw=function(e){return 0===e.get()},Ew=function(e,t,n){xw(n)&&(e.typing=t)},zw=function(e,t){e.typing&&(Ew(e,!1,t),e.add())},kw=function(e){e.typing&&(e.typing=!1,e.add())},Nw=function(e,t,n){xw(t)&&n.set(p.some(jl.getUndoBookmark(e.selection)))},Sw=function(e,t,n,r,o,i,a){var u=e.settings,c=Cw.createFromEditor(e);if(i=i||{},i=Vr.extend(i,c),!1===xw(r)||e.removed)return null;var s=t.data[n.get()];if(e.fire("BeforeAddUndo",{level:i,lastLevel:s,originalEvent:a}).isDefaultPrevented())return null;if(s&&Cw.isEq(s,i))return null;if(t.data[n.get()]&&o.get().each((function(e){t.data[n.get()].beforeBookmark=e})),u.custom_undo_redo_levels&&t.data.length>u.custom_undo_redo_levels){for(var l=0;l<t.data.length-1;l++)t.data[l]=t.data[l+1];t.data.length--,n.set(t.data.length)}i.bookmark=jl.getUndoBookmark(e.selection),n.get()<t.data.length-1&&(t.data.length=n.get()+1),t.data.push(i),n.set(t.data.length-1);var f={level:i,lastLevel:s,originalEvent:a};return e.fire("AddUndo",f),n.get()>0&&(e.setDirty(!0),e.fire("change",f)),i},Tw=function(e,t,n){t.data=[],n.set(0),t.typing=!1,e.fire("ClearUndos")},Aw=function(e,t,n,r,o){if(t.transact(r)){var i=t.data[n.get()].bookmark,a=t.data[n.get()-1];Cw.applyToEditor(e,a,!0),t.transact(o)&&(t.data[n.get()-1].beforeBookmark=i)}},Rw=function(e,t,n){var r;return t.get()<n.length-1&&(t.set(t.get()+1),r=n[t.get()],Cw.applyToEditor(e,r,!1),e.setDirty(!0),e.fire("Redo",{level:r})),r},Bw=function(e,t,n,r){var o;return t.typing&&(t.add(),t.typing=!1,Ew(t,!1,n)),r.get()>0&&(r.set(r.get()-1),o=t.data[r.get()],Cw.applyToEditor(e,o,!0),e.setDirty(!0),e.fire("Undo",{level:o})),o},Dw=function(e){e.clear(),e.add()},Mw=function(e,t,n){return n.get()>0||t.typing&&t.data[0]&&!Cw.isEq(Cw.createFromEditor(e),t.data[0])},Pw=function(e,t){return t.get()<e.data.length-1&&!e.typing},_w=function(e,t,n){return zw(e,t),e.beforeChange(),e.ignore(n),e.add()},Ow=function(e,t){try{e.set(e.get()+1),t()}finally{e.set(e.get()-1)}},Hw=function(e,t,n){var r=Ce(!1),o=function(e){Ew(t,!1,n),t.add({},e)};e.on("init",(function(){t.add()})),e.on("BeforeExecCommand",(function(e){var r=e.command;"Undo"!==r&&"Redo"!==r&&"mceRepaint"!==r&&(zw(t,n),t.beforeChange())})),e.on("ExecCommand",(function(e){var t=e.command;"Undo"!==t&&"Redo"!==t&&"mceRepaint"!==t&&o(e)})),e.on("ObjectResizeStart cut",(function(){t.beforeChange()})),e.on("SaveContent ObjectResized blur",o),e.on("dragend",o),e.on("keyup",(function(n){var i=n.keyCode;n.isDefaultPrevented()||((i>=33&&i<=36||i>=37&&i<=40||45===i||n.ctrlKey)&&(o(),e.nodeChanged()),46!==i&&8!==i||e.nodeChanged(),r.get()&&t.typing&&!1===Cw.isEq(Cw.createFromEditor(e),t.data[0])&&(!1===e.isDirty()&&(e.setDirty(!0),e.fire("change",{level:t.data[0],lastLevel:null})),e.fire("TypingUndo"),r.set(!1),e.nodeChanged()))})),e.on("keydown",(function(e){var i=e.keyCode;if(!e.isDefaultPrevented())if(i>=33&&i<=36||i>=37&&i<=40||45===i)t.typing&&o(e);else{var a=e.ctrlKey&&!e.altKey||e.metaKey;!(i<16||i>20)||224===i||91===i||t.typing||a||(t.beforeChange(),Ew(t,!0,n),t.add({},e),r.set(!0))}})),e.on("mousedown",(function(e){t.typing&&o(e)}));var i=function(e){return"insertReplacementText"===e.inputType},a=function(e){return"insertText"===e.inputType&&null===e.data};e.on("input",(function(e){e.inputType&&(i(e)||a(e))&&o(e)})),e.on("AddUndo Undo Redo ClearUndos",(function(t){t.isDefaultPrevented()||e.nodeChanged()}))},Lw=function(e){e.addShortcut("meta+z","","Undo"),e.addShortcut("meta+y,meta+shift+z","","Redo")},Iw=function(e){var t=Ce(p.none()),n=Ce(0),r=Ce(0),o={data:[],typing:!1,beforeChange:function(){Nw(e,n,t)},add:function(i,a){return Sw(e,o,r,n,t,i,a)},undo:function(){return Bw(e,o,n,r)},redo:function(){return Rw(e,r,o.data)},clear:function(){Tw(e,o,r)},reset:function(){Dw(o)},hasUndo:function(){return Mw(e,o,r)},hasRedo:function(){return Pw(o,r)},transact:function(e){return _w(o,n,e)},ignore:function(e){Ow(n,e)},extra:function(t,n){Aw(e,o,r,t,n)}};return Hw(e,o,n),Lw(e),o},Vw=function(e){var t=[],n=e.dom();while(n)t.push(Ct.fromDom(n)),n=n.lastChild;return t},Fw=function(e){var t=gc(e,"br"),n=H(Vw(e).slice(-1),io);t.length===n.length&&P(n,cu)},Uw=function(e){uu(e),ru(e,Ct.fromHtml('<br data-mce-bogus="1">'))},jw=function(e){return At(e)?" "===yh(e):io(e)},qw=function(e){return 1===H(zn(e),jw).length},Ww=function(e){Sn(e).each((function(t){wn(t).each((function(n){no(e)&&io(t)&&no(n)&&cu(t)}))}))},$w={removeTrailingBr:Fw,fillWithPaddingBr:Uw,isPaddedElement:qw,trimBlockTrailingBr:Ww},Kw=Yd.isEq,Xw=function(e,t,n){var r=e.formatter.get(n);if(r)for(var o=0;o<r.length;o++)if(!1===r[o].inherit&&e.dom.is(t,r[o].selector))return!0;return!1},Yw=function(e,t,n,r){var o=e.dom.getRoot();return t!==o&&(t=e.dom.getParent(t,(function(t){return!!Xw(e,t,n)||(t.parentNode===o||!!Jw(e,t,n,r,!0))})),Jw(e,t,n,r))},Gw=function(e,t,n){return!!Kw(t,n.inline)||(!!Kw(t,n.block)||(n.selector?1===t.nodeType&&e.is(t,n.selector):void 0))},Zw=function(e,t,n,r,o,i){var a,u,c,s=n[r];if(n.onmatch)return n.onmatch(t,n,r);if(s)if("undefined"===typeof s.length){for(a in s)if(s.hasOwnProperty(a)){if(u="attributes"===r?e.getAttrib(t,a):Yd.getStyle(e,t,a),o&&!u&&!n.exact)return;if((!o||n.exact)&&!Kw(u,Yd.normalizeStyleValue(e,Yd.replaceVars(s[a],i),a)))return}}else for(c=0;c<s.length;c++)if("attributes"===r?e.getAttrib(t,s[c]):Yd.getStyle(e,t,s[c]))return n;return n},Jw=function(e,t,n,r,o){var i,a,u,c,s=e.formatter.get(n),l=e.dom;if(s&&t)for(a=0;a<s.length;a++)if(i=s[a],Gw(e.dom,t,i)&&Zw(l,t,i,"attributes",o,r)&&Zw(l,t,i,"styles",o,r)){if(c=i.classes)for(u=0;u<c.length;u++)if(!e.dom.hasClass(t,c[u]))return;return i}},Qw=function(e,t,n,r){var o;return r?Yw(e,r,t,n):(r=e.selection.getNode(),!!Yw(e,r,t,n)||(o=e.selection.getStart(),!(o===r||!Yw(e,o,t,n))))},eC=function(e,t,n){var r,o=[],i={};return r=e.selection.getStart(),e.dom.getParent(r,(function(r){var a,u;for(a=0;a<t.length;a++)u=t[a],!i[u]&&Jw(e,r,u,n)&&(i[u]=!0,o.push(u))}),e.dom.getRoot()),o},tC=function(e,t){var n,r,o,i,a,u=e.formatter.get(t),c=e.dom;if(u)for(n=e.selection.getStart(),r=Yd.getParents(c,n),i=u.length-1;i>=0;i--){if(a=u[i].selector,!a||u[i].defaultBlock)return!0;for(o=r.length-1;o>=0;o--)if(c.is(r[o],a))return!0}return!1},nC={matchNode:Jw,matchName:Gw,match:Qw,matchAll:eC,canApply:tC,matchesUnInheritedFormatSelector:Xw},rC=function(e,t){return e.splitText(t)},oC=function(e){var t=e.startContainer,n=e.startOffset,r=e.endContainer,o=e.endOffset;return t===r&&we.isText(t)?n>0&&n<t.nodeValue.length&&(r=rC(t,n),t=r.previousSibling,o>n?(o-=n,t=r=rC(r,o).previousSibling,o=r.nodeValue.length,n=0):o=0):(we.isText(t)&&n>0&&n<t.nodeValue.length&&(t=rC(t,n),n=0),we.isText(r)&&o>0&&o<r.nodeValue.length&&(r=rC(r,o).previousSibling,o=r.nodeValue.length)),{startContainer:t,startOffset:n,endContainer:r,endOffset:o}},iC=function(e){return-1!==" \f\n\r\t\v".indexOf(e)},aC=function(e,t,n){var r=I(e,(function(r,o){return iC(o)||" "===o?r.previousCharIsSpace||""===r.str&&t||r.str.length===e.length-1&&n?{previousCharIsSpace:!1,str:r.str+" "}:{previousCharIsSpace:!0,str:r.str+" "}:{previousCharIsSpace:!1,str:r.str+o}}),{previousCharIsSpace:!1,str:""});return r.str},uC=function(e,t,n){if(0!==n){var r=e.data.slice(t,t+n),o=t+n>=e.data.length,i=0===t;e.replaceData(t,n,aC(r,i,o))}},cC=function(e,t){var n=e.data.slice(t),r=n.length-ot(n).length;return uC(e,t,r)},sC=function(e,t){var n=e.data.slice(0,t),r=n.length-it(n).length;return uC(e,t-r,r)},lC=function(e,t,n){var r=it(e.data).length;return e.appendData(t.data),cu(Ct.fromDom(t)),n&&cC(e,r),e},fC=function(e,t,n){return bc(e,t,n).isSome()},dC=function(e,t){var n=Ct.fromDom(e),r=Ct.fromDom(t);return fC(r,"pre,code",u(ln,n))},hC=function(e,t){return we.isText(t)&&/^[ \t\r\n]*$/.test(t.data)&&!1===dC(e,t)},mC=function(e){return we.isElement(e)&&"A"===e.nodeName&&e.hasAttribute("name")},gC=function(e,t){return gs(t)&&!1===hC(e,t)||mC(t)||pC(t)},pC=we.hasAttribute("data-mce-bookmark"),vC=we.hasAttribute("data-mce-bogus"),yC=we.hasAttributeValue("data-mce-bogus","all"),bC=function(e){var t,n=0;if(gC(e,e))return!1;if(t=e.firstChild,!t)return!0;var r=new Qa(t,e);do{if(yC(t))t=r.next(!0);else if(vC(t))t=r.next();else if(we.isBr(t))n++,t=r.next();else{if(gC(e,t))return!1;t=r.next()}}while(t);return n<=1},wC=function(e){return bC(e.dom())},CC={isEmpty:wC},xC=function(e,t){var n=e.container(),r=e.offset();return!1===sl.isTextPosition(e)&&n===t.parentNode&&r>sl.before(t).offset()},EC=function(e,t){return xC(t,e)?sl(t.container(),t.offset()-1):t},zC=function(e){return we.isText(e)?sl(e,0):sl.before(e)},kC=function(e){return we.isText(e)?sl(e,e.data.length):sl.after(e)},NC=function(e){return gs(e.previousSibling)?p.some(kC(e.previousSibling)):e.previousSibling?hd.lastPositionIn(e.previousSibling):p.none()},SC=function(e){return gs(e.nextSibling)?p.some(zC(e.nextSibling)):e.nextSibling?hd.firstPositionIn(e.nextSibling):p.none()},TC=function(e,t){var n=sl.before(t.previousSibling?t.previousSibling:t.parentNode);return hd.prevPosition(e,n).fold((function(){return hd.nextPosition(e,sl.after(t))}),p.some)},AC=function(e,t){return hd.nextPosition(e,sl.after(t)).fold((function(){return hd.prevPosition(e,sl.before(t))}),p.some)},RC=function(e,t){return NC(t).orThunk((function(){return SC(t)})).orThunk((function(){return TC(e,t)}))},BC=function(e,t){return SC(t).orThunk((function(){return NC(t)})).orThunk((function(){return AC(e,t)}))},DC=function(e,t,n){return e?BC(t,n):RC(t,n)},MC=function(e,t,n){return DC(e,t,n).map(u(EC,n))},PC=function(e,t,n){n.fold((function(){e.focus()}),(function(n){e.selection.setRng(n.toRange(),t)}))},_C=function(e){return function(t){return t.dom()===e}},OC=function(e,t){return t&&e.schema.getBlockElements().hasOwnProperty(kt(t))},HC=function(e){if(CC.isEmpty(e)){var t=Ct.fromHtml('<br data-mce-bogus="1">');return uu(e),ru(e,t),p.some(sl.before(t.dom()))}return p.none()},LC=function(e,t,n){var r=wn(e).filter(At),o=Cn(e).filter(At);return cu(e),_s(r,o,t,(function(e,t,r){var o=e.dom(),i=t.dom(),a=o.data.length;return lC(o,i,n),r.container()===i?sl(o,a):r})).orThunk((function(){return n&&(r.each((function(e){return sC(e.dom(),e.dom().length)})),o.each((function(e){return cC(e.dom(),0)}))),t}))},IC=function(e,t){return Ht(e.schema.getTextInlineElements(),kt(t))},VC=function(e,t,n,r){void 0===r&&(r=!0);var o=MC(t,e.getBody(),n.dom()),i=vc(n,u(OC,e),_C(e.getBody())),a=LC(n,o,IC(e,n));e.dom.isEmpty(e.getBody())?(e.setContent(""),e.selection.setCursorLocation()):i.bind(HC).fold((function(){r&&PC(e,t,a)}),(function(n){r&&PC(e,t,p.some(n))}))},FC={deleteElement:VC},UC=qc.ZWSP,jC="_mce_caret",qC=function(e,t){return e.importNode(t,!0)},WC=function(e){var t=[];while(e){if(3===e.nodeType&&e.nodeValue!==UC||e.childNodes.length>1)return[];1===e.nodeType&&t.push(e),e=e.firstChild}return t},$C=function(e){return WC(e).length>0},KC=function(e){if(e){var t=new Qa(e,e);for(e=t.current();e;e=t.next())if(3===e.nodeType)return e}return null},XC=function(e){var t=Ct.fromTag("span");return Ut(t,{id:jC,"data-mce-bogus":"1","data-mce-type":"format-caret"}),e&&ru(t,Ct.fromText(UC)),t},YC=function(e){var t=KC(e);return t&&t.nodeValue.charAt(0)===UC&&t.deleteData(0,1),t},GC=function(e,t,n){void 0===n&&(n=!0);var r=e.dom,o=e.selection;if($C(t))FC.deleteElement(e,!1,Ct.fromDom(t),n);else{var i=o.getRng(),a=r.getParent(t,r.isBlock),u=YC(t);i.startContainer===u&&i.startOffset>0&&i.setStart(u,i.startOffset-1),i.endContainer===u&&i.endOffset>0&&i.setEnd(u,i.endOffset-1),r.remove(t,!0),a&&r.isEmpty(a)&&$w.fillWithPaddingBr(Ct.fromDom(a)),o.setRng(i)}},ZC=function(e,t,n){void 0===n&&(n=!0);var r=e.dom,o=e.selection;if(t)GC(e,t,n);else if(t=$l(e.getBody(),o.getStart()),!t)while(t=r.get(jC))GC(e,t,!1)},JC=function(e,t,n){var r=e.dom,o=r.getParent(n,u(Yd.isTextBlock,e));o&&r.isEmpty(o)?n.parentNode.replaceChild(t,n):($w.removeTrailingBr(Ct.fromDom(n)),r.isEmpty(n)?n.parentNode.replaceChild(t,n):r.insertAfter(t,n))},QC=function(e,t){return e.appendChild(t),t},ex=function(e,t){var n=L(e,(function(e,t){return QC(e,t.cloneNode(!1))}),t);return QC(n,n.ownerDocument.createTextNode(UC))},tx=function(e,t,n){var r,o,i,a,u,c,s,l=e.selection;r=l.getRng(),a=r.startOffset,c=r.startContainer,s=c.nodeValue,o=$l(e.getBody(),l.getStart()),o&&(i=KC(o));var f=/[^\s\u00a0\u00ad\u200b\ufeff]/;s&&a>0&&a<s.length&&f.test(s.charAt(a))&&f.test(s.charAt(a-1))?(u=l.getBookmark(),r.collapse(!0),r=lh.expandRng(e,r,e.formatter.get(t)),r=oC(r),e.formatter.apply(t,n,r),l.moveToBookmark(u)):(o&&i.nodeValue===UC||(o=qC(e.getDoc(),XC(!0).dom()),i=o.firstChild,r.insertNode(o),a=1),e.formatter.apply(t,n,o),l.setCursorLocation(i,a))},nx=function(e,t,n,r){var o,i,a,u,c,s,l,f=e.dom,d=e.selection,h=[],m=d.getRng();o=m.startContainer,i=m.startOffset,c=o,3===o.nodeType&&(i!==o.nodeValue.length&&(u=!0),c=c.parentNode);while(c){if(nC.matchNode(e,c,t,n,r)){s=c;break}c.nextSibling&&(u=!0),h.push(c),c=c.parentNode}if(s)if(u){a=d.getBookmark(),m.collapse(!0);var g=lh.expandRng(e,m,e.formatter.get(t),!0);g=oC(g),e.formatter.remove(t,n,g),d.moveToBookmark(a)}else{l=$l(e.getBody(),s);var p=XC(!1).dom(),v=ex(h,p);JC(e,p,l||s),GC(e,l,!1),d.setCursorLocation(v,1),f.isEmpty(s)&&f.remove(s)}},rx=function(e,t){var n=e.selection,r=e.getBody();ZC(e,null,!1),8!==t&&46!==t||!n.isCollapsed()||n.getStart().innerHTML!==UC||ZC(e,$l(r,n.getStart())),37!==t&&39!==t||ZC(e,$l(r,n.getStart()))},ox=function(e){e.on("mouseup keydown",(function(t){rx(e,t.keyCode)}))},ix=function(e,t){var n=XC(!1),r=ex(t,n.dom());return eu(Ct.fromDom(e),n),cu(Ct.fromDom(e)),sl(r,0)},ax=function(e,t){var n=e.schema.getTextInlineElements();return n.hasOwnProperty(kt(t))&&!Wl(t.dom())&&!we.isBogus(t.dom())},ux=function(e){return Wl(e.dom())&&$C(e.dom())},cx={},sx=Sr.filter,lx=Sr.each,fx=function(e,t){var n=cx[e];n||(cx[e]=n=[]),cx[e].push(t)},dx=function(e,t){lx(cx[e],(function(e){e(t)}))};fx("pre",(function(e){var t,n,r=e.selection.getRng(),o=function(e){return t(e.previousSibling)&&-1!==Sr.indexOf(n,e.previousSibling)},i=function(e,t){Ja(t).remove(),Ja(e).append("<br><br>").append(t.childNodes)};t=we.matchNodeNames(["pre"]),r.collapsed||(n=e.selection.getSelectedBlocks(),lx(sx(sx(n,t),o),(function(e){i(e.previousSibling,e)})))}));var hx={postProcess:dx},mx=Vr.each,gx=function(e){this.compare=function(t,n){if(t.nodeName!==n.nodeName)return!1;var r=function(t){var n={};return mx(e.getAttribs(t),(function(r){var o=r.nodeName.toLowerCase();0!==o.indexOf("_")&&"style"!==o&&0!==o.indexOf("data-")&&(n[o]=e.getAttrib(t,o))})),n},o=function(e,t){var n,r;for(r in e)if(e.hasOwnProperty(r)){if(n=t[r],"undefined"===typeof n)return!1;if(e[r]!==n)return!1;delete t[r]}for(r in t)if(t.hasOwnProperty(r))return!1;return!0};return!!o(r(t),r(n))&&(!!o(e.parseStyle(e.getAttrib(t,"style")),e.parseStyle(e.getAttrib(n,"style")))&&(!Od.isBookmarkNode(t)&&!Od.isBookmarkNode(n)))}},px=/^(src|href|style)$/,vx=Vr.each,yx=Yd.isEq,bx=function(e){return/^(TH|TD)$/.test(e.nodeName)},wx=function(e,t,n){return e.isChildOf(t,n)&&t!==n&&!e.isBlock(n)},Cx=function(e,t,n){var r,o,i;return r=t[n?"startContainer":"endContainer"],o=t[n?"startOffset":"endOffset"],we.isElement(r)&&(i=r.childNodes.length-1,!n&&o&&o--,r=r.childNodes[o>i?i:o]),we.isText(r)&&n&&o>=r.nodeValue.length&&(r=new Qa(r,e.getBody()).next()||r),we.isText(r)&&!n&&0===o&&(r=new Qa(r,e.getBody()).prev()||r),r},xx=function(e,t,n,r){var o=e.create(n,r);return t.parentNode.insertBefore(o,t),o.appendChild(t),o},Ex=function(e,t,n,r,o){var i=Ct.fromDom(t),a=Ct.fromDom(e.create(r,o)),u=n?En(i):xn(i);return au(a,u),n?(eu(i,a),nu(a,i)):(tu(i,a),ru(a,i)),a.dom()},zx=function(e,t,n){return!!yx(t,n.inline)||(!!yx(t,n.block)||(n.selector?we.isElement(t)&&e.is(t,n.selector):void 0))},kx=function(e,t){return t.links&&"A"===e.tagName},Nx=function(e,t,n,r){return t=Yd.getNonWhiteSpaceSibling(t,n,r),!t||"BR"===t.nodeName||e.isBlock(t)},Sx=function(e,t,n){var r,o=t.parentNode,i=e.dom,a=zm.getForcedRootBlock(e);n.block&&(a?o===i.getRoot()&&(n.list_block&&yx(t,n.list_block)||vx(Vr.grep(t.childNodes),(function(t){Yd.isValid(e,a,t.nodeName.toLowerCase())?r?r.appendChild(t):(r=xx(i,t,a),i.setAttribs(r,e.settings.forced_root_block_attrs)):r=0}))):i.isBlock(t)&&!i.isBlock(o)&&(Nx(i,t,!1)||Nx(i,t.firstChild,!0,1)||t.insertBefore(i.create("br"),t.firstChild),Nx(i,t,!0)||Nx(i,t.lastChild,!1,1)||t.appendChild(i.create("br")))),n.selector&&n.inline&&!yx(n.inline,t)||i.remove(t,1)},Tx=function(e,t,n,r,o){var i,a,u,c=e.dom;if(!zx(c,r,t)&&!kx(r,t))return!1;if("all"!==t.remove)for(vx(t.styles,(function(e,i){e=Yd.normalizeStyleValue(c,Yd.replaceVars(e,n),i),"number"===typeof i&&(i=e,o=0),(t.remove_similar||!o||yx(Yd.getStyle(c,o,i),e))&&c.setStyle(r,i,""),u=1})),u&&""===c.getAttrib(r,"style")&&(r.removeAttribute("style"),r.removeAttribute("data-mce-style")),vx(t.attributes,(function(e,i){var a;if(e=Yd.replaceVars(e,n),"number"===typeof i&&(i=e,o=0),t.remove_similar||!o||yx(c.getAttrib(o,i),e)){if("class"===i&&(e=c.getAttrib(r,i),e&&(a="",vx(e.split(/\s+/),(function(e){/mce\-\w+/.test(e)&&(a+=(a?" ":"")+e)})),a)))return void c.setAttrib(r,i,a);"class"===i&&r.removeAttribute("className"),px.test(i)&&r.removeAttribute("data-mce-"+i),r.removeAttribute(i)}})),vx(t.classes,(function(e){e=Yd.replaceVars(e,n),o&&!c.hasClass(o,e)||c.removeClass(r,e)})),a=c.getAttribs(r),i=0;i<a.length;i++){var s=a[i].nodeName;if(0!==s.indexOf("_")&&0!==s.indexOf("data-"))return!1}return"none"!==t.remove?(Sx(e,r,t),!0):void 0},Ax=function(e,t,n,r,o){var i;return vx(Yd.getParents(e.dom,t.parentNode).reverse(),(function(t){var a;i||"_start"===t.id||"_end"===t.id||(a=nC.matchNode(e,t,n,r,o),a&&!1!==a.split&&(i=t))})),i},Rx=function(e,t,n,r,o,i,a,u){var c,s,l,f,d,h,m=e.dom;if(n){for(h=n.parentNode,c=r.parentNode;c&&c!==h;c=c.parentNode){for(s=m.clone(c,!1),d=0;d<t.length;d++)if(Tx(e,t[d],u,s,s)){s=0;break}s&&(l&&s.appendChild(l),f||(f=s),l=s)}!i||a.mixed&&m.isBlock(n)||(r=m.split(n,r)),l&&(o.parentNode.insertBefore(l,o),f.appendChild(o))}return r},Bx=function(e,t,n,r,o){var i,a,u=e.formatter.get(t),c=u[0],s=!0,l=e.dom,f=e.selection,d=function(r){var i=Ax(e,r,t,n,o);return Rx(e,u,i,r,r,!0,c,n)},h=function(e){return Od.isBookmarkNode(e)&&we.isElement(e)&&("_start"===e.id||"_end"===e.id)},m=function(t){var r,o,i,a,f;if(we.isElement(t)&&l.getContentEditable(t)&&(a=s,s="true"===l.getContentEditable(t),f=!0),r=Vr.grep(t.childNodes),s&&!f)for(o=0,i=u.length;o<i;o++)if(Tx(e,u[o],n,t,t))break;if(c.deep&&r.length){for(o=0,i=r.length;o<i;o++)m(r[o]);f&&(s=a)}},g=function(e){var t=l.get(e?"_start":"_end"),n=t[e?"firstChild":"lastChild"];return h(n)&&(n=n[e?"firstChild":"lastChild"]),we.isText(n)&&0===n.data.length&&(n=e?t.previousSibling||t.nextSibling:t.nextSibling||t.previousSibling),l.remove(t,!0),n},v=function(t){var n,r,o=t.commonAncestorContainer;if(t=lh.expandRng(e,t,u,!0),c.split){if(t=oC(t),n=Cx(e,t,!0),r=Cx(e,t),n!==r){if(/^(TR|TH|TD)$/.test(n.nodeName)&&n.firstChild&&(n="TR"===n.nodeName?n.firstChild.firstChild||n:n.firstChild||n),o&&/^T(HEAD|BODY|FOOT|R)$/.test(o.nodeName)&&bx(r)&&r.firstChild&&(r=r.firstChild||r),wx(l,n,r)){var i=p.from(n.firstChild).getOr(n);return d(Ex(l,i,!0,"span",{id:"_start","data-mce-type":"bookmark"})),void g(!0)}if(wx(l,r,n)){i=p.from(r.lastChild).getOr(r);return d(Ex(l,i,!1,"span",{id:"_end","data-mce-type":"bookmark"})),void g(!1)}n=xx(l,n,"span",{id:"_start","data-mce-type":"bookmark"}),r=xx(l,r,"span",{id:"_end","data-mce-type":"bookmark"}),d(n),d(r),n=g(!0),r=g()}else n=r=d(n);t.startContainer=n.parentNode?n.parentNode:n,t.startOffset=l.nodeIndex(n),t.endContainer=r.parentNode?r.parentNode:r,t.endOffset=l.nodeIndex(r)+1}mh.walk(l,t,(function(t){vx(t,(function(t){m(t),we.isElement(t)&&"underline"===e.dom.getStyle(t,"text-decoration")&&t.parentNode&&"underline"===Yd.getTextDecoration(l,t.parentNode)&&Tx(e,{deep:!1,exact:!0,inline:"span",styles:{textDecoration:"underline"}},null,t)}))}))};if(r)r.nodeType?(a=l.createRng(),a.setStartBefore(r),a.setEndAfter(r),v(a)):v(r);else if("false"!==l.getContentEditable(f.getNode()))f.isCollapsed()&&c.inline&&!l.select("td[data-mce-selected],th[data-mce-selected]").length?nx(e,t,n,o):(i=jl.getPersistentBookmark(e.selection,!0),v(f.getRng()),f.moveToBookmark(i),c.inline&&nC.match(e,t,n,f.getStart())&&Yd.moveStart(l,f,f.getRng()),e.nodeChanged());else{r=f.getNode();for(var y=0,b=u.length;y<b;y++)if(u[y].ceFalseOverride&&Tx(e,u[y],n,r,r))break}},Dx={removeFormat:Tx,remove:Bx},Mx=Vr.each,Px=function(e){return e&&1===e.nodeType&&!Od.isBookmarkNode(e)&&!Wl(e)&&!we.isBogus(e)},_x=function(e,t){var n;for(n=e;n;n=n[t]){if(3===n.nodeType&&0!==n.nodeValue.length)return e;if(1===n.nodeType&&!Od.isBookmarkNode(n))return n}return e},Ox=function(e,t,n){var r,o,i=new gx(e);if(t&&n&&(t=_x(t,"previousSibling"),n=_x(n,"nextSibling"),i.compare(t,n))){for(r=t.nextSibling;r&&r!==n;)o=r,r=r.nextSibling,t.appendChild(o);return e.remove(n),Vr.each(Vr.grep(n.childNodes),(function(e){t.appendChild(e)})),t}return n},Hx=function(e,t,n){Mx(e.childNodes,(function(e){Px(e)&&(t(e)&&n(e),e.hasChildNodes()&&Hx(e,t,n))}))},Lx=function(e,t){return u((function(t,n){return!(!n||!Yd.getStyle(e,n,t))}),t)},Ix=function(e,t,n){return u((function(t,n,r){e.setStyle(r,t,n),""===r.getAttribute("style")&&r.removeAttribute("style"),Vx(e,r)}),t,n)},Vx=function(e,t){"SPAN"===t.nodeName&&0===e.getAttribs(t).length&&e.remove(t,!0)},Fx=function(e,t){var n;1===t.nodeType&&t.parentNode&&1===t.parentNode.nodeType&&(n=Yd.getTextDecoration(e,t.parentNode),e.getStyle(t,"color")&&n?e.setStyle(t,"text-decoration",n):e.getStyle(t,"text-decoration")===n&&e.setStyle(t,"text-decoration",null))},Ux=function(e,t,n,r){(t.styles.color||t.styles.textDecoration)&&(Vr.walk(r,u(Fx,e),"childNodes"),Fx(e,r))},jx=function(e,t,n,r){t.styles&&t.styles.backgroundColor&&Hx(r,Lx(e,"fontSize"),Ix(e,"backgroundColor",Yd.replaceVars(t.styles.backgroundColor,n)))},qx=function(e,t,n,r){"sub"!==t.inline&&"sup"!==t.inline||(Hx(r,Lx(e,"fontSize"),Ix(e,"fontSize","")),e.remove(e.select("sup"===t.inline?"sub":"sup",r),!0))},Wx=function(e,t,n,r){r&&!1!==t.merge_siblings&&(r=Ox(e,Yd.getNonWhiteSpaceSibling(r),r),r=Ox(e,r,Yd.getNonWhiteSpaceSibling(r,!0)))},$x=function(e,t,n){if(t.clear_child_styles){var r=t.links?"*:not(a)":"*";Mx(e.select(r,n),(function(n){Px(n)&&Mx(t.styles,(function(t,r){e.setStyle(n,r,"")}))}))}},Kx=function(e,t,n,r){Mx(t,(function(t){Mx(e.dom.select(t.inline,r),(function(r){Px(r)&&Dx.removeFormat(e,t,n,r,t.exact?r:null)})),$x(e.dom,t,r)}))},Xx=function(e,t,n,r,o){nC.matchNode(e,o.parentNode,n,r)&&Dx.removeFormat(e,t,r,o)||t.merge_with_parents&&e.dom.getParent(o.parentNode,(function(i){if(nC.matchNode(e,i,n,r))return Dx.removeFormat(e,t,r,o),!0}))},Yx={mergeWithChildren:Kx,mergeUnderlineAndColor:Ux,mergeBackgroundColorAndFontSize:jx,mergeSubSup:qx,mergeSiblings:Wx,mergeWithParents:Xx},Gx=function(e,t,r,o){var i=n.document.createRange();return i.setStart(e,t),i.setEnd(r,o),i},Zx=function(e){var t=sl.fromRangeStart(e),n=sl.fromRangeEnd(e),r=e.commonAncestorContainer;return hd.fromPosition(!1,r,n).map((function(o){return!Sf(t,n,r)&&Sf(t,o,r)?Gx(t.container(),t.offset(),o.container(),o.offset()):e})).getOr(e)},Jx=function(e){return e.collapsed?e:Zx(e)},Qx={normalize:Jx},eE=Vr.each,tE=function(e){return e&&1===e.nodeType&&!Od.isBookmarkNode(e)&&!Wl(e)&&!we.isBogus(e)},nE=function(e,t,n,r){var o,i,a=e.formatter.get(t),u=a[0],c=!r&&e.selection.isCollapsed(),s=e.dom,l=e.selection,f=function(e,t){if(t=t||u,e){if(t.onformat&&t.onformat(e,t,n,r),eE(t.styles,(function(t,r){s.setStyle(e,r,Yd.replaceVars(t,n))})),t.styles){var o=s.getAttrib(e,"style");o&&e.setAttribute("data-mce-style",o)}eE(t.attributes,(function(t,r){s.setAttrib(e,r,Yd.replaceVars(t,n))})),eE(t.classes,(function(t){t=Yd.replaceVars(t,n),s.hasClass(e,t)||s.addClass(e,t)}))}},d=function(e,t){var n=!1;return!!u.selector&&(eE(e,(function(e){if(!("collapsed"in e)||e.collapsed===c)return s.is(t,e.selector)&&!Wl(t)?(f(t,e),n=!0,!1):void 0})),n)},h=function(r,o,i,c){var s,l,h=[],m=!0;s=u.inline||u.block,l=r.create(s),f(l),mh.walk(r,o,(function(o){var i,g=function(o){var p,v,y,b;if(b=m,p=o.nodeName.toLowerCase(),v=o.parentNode.nodeName.toLowerCase(),1===o.nodeType&&r.getContentEditable(o)&&(b=m,m="true"===r.getContentEditable(o),y=!0),Yd.isEq(p,"br"))return i=0,void(u.block&&r.remove(o));if(u.wrapper&&nC.matchNode(e,o,t,n))i=0;else{if(m&&!y&&u.block&&!u.wrapper&&Yd.isTextBlock(e,p)&&Yd.isValid(e,v,s))return o=r.rename(o,s),f(o),h.push(o),void(i=0);if(u.selector){var w=d(a,o);if(!u.inline||w)return void(i=0)}!m||y||!Yd.isValid(e,s,p)||!Yd.isValid(e,v,s)||!c&&3===o.nodeType&&1===o.nodeValue.length&&65279===o.nodeValue.charCodeAt(0)||Wl(o)||u.inline&&r.isBlock(o)?(i=0,eE(Vr.grep(o.childNodes),g),y&&(m=b),i=0):(i||(i=r.clone(l,!1),o.parentNode.insertBefore(i,o),h.push(i)),i.appendChild(o))}};eE(o,g)})),!0===u.links&&eE(h,(function(e){var t=function(e){"A"===e.nodeName&&f(e,u),eE(Vr.grep(e.childNodes),t)};t(e)})),eE(h,(function(o){var i,c=function(e){var t=0;return eE(e.childNodes,(function(e){Yd.isWhiteSpaceNode(e)||Od.isBookmarkNode(e)||t++})),t},s=function(e){var t=!1;return eE(e.childNodes,(function(e){if(tE(e))return t=e,!1})),t},l=function(e){var t,n;return t=s(e),t&&!Od.isBookmarkNode(t)&&nC.matchName(r,t,u)&&(n=r.clone(t,!1),f(n),r.replace(n,e,!0),r.remove(t,1)),n||e};i=c(o),!(h.length>1)&&r.isBlock(o)||0!==i?(u.inline||u.wrapper)&&(u.exact||1!==i||(o=l(o)),Yx.mergeWithChildren(e,a,n,o),Yx.mergeWithParents(e,u,t,n,o),Yx.mergeBackgroundColorAndFontSize(r,u,n,o),Yx.mergeSubSup(r,u,n,o),Yx.mergeSiblings(r,u,n,o)):r.remove(o,1)}))};if("false"!==s.getContentEditable(l.getNode())){if(u){if(r)r.nodeType?d(a,r)||(i=s.createRng(),i.setStartBefore(r),i.setEndAfter(r),h(s,lh.expandRng(e,i,a),null,!0)):h(s,r,null,!0);else if(c&&u.inline&&!s.select("td[data-mce-selected],th[data-mce-selected]").length)tx(e,t,n);else{var m=e.selection.getNode();e.settings.forced_root_block||!a[0].defaultBlock||s.getParent(m,s.isBlock)||nE(e,a[0].defaultBlock),e.selection.setRng(Qx.normalize(e.selection.getRng())),o=jl.getPersistentBookmark(e.selection,!0),h(s,lh.expandRng(e,l.getRng(),a)),u.styles&&Yx.mergeUnderlineAndColor(s,u,n,m),l.moveToBookmark(o),Yd.moveStart(s,l,l.getRng()),e.nodeChanged()}hx.postProcess(t,e)}}else{r=l.getNode();for(var g=0,p=a.length;g<p;g++)if(a[g].ceFalseOverride&&s.is(r,a[g].selector))return void f(r,a[g])}},rE={applyFormat:nE},oE=function(e,t){var n=Ce({});e.set({}),t.on("NodeChange",(function(r){iE(t,r.element,n,e.get())}))},iE=function(e,t,n,r){var o=Rt(n.get()),i={},a={},u=H(Yd.getParents(e.dom,t),(function(e){return 1===e.nodeType&&!e.getAttribute("data-mce-bogus")}));Dt(r,(function(t,n){Vr.each(u,(function(r){return e.formatter.matchNode(r,n,{},t.similar)?(-1===o.indexOf(n)&&(P(t.callbacks,(function(e){e(!0,{node:r,format:n,parents:u})})),i[n]=t.callbacks),a[n]=t.callbacks,!1):!nC.matchesUnInheritedFormatSelector(e,r,n)&&void 0}))}));var c=aE(n.get(),a,t,u);n.set(J(J({},i),c))},aE=function(e,t,n,r){return _t(e,(function(e,o){return!!Ht(t,o)||(P(e,(function(e){e(!1,{node:n,format:o,parents:r})})),!1)})).t},uE=function(e,t,n,r){var o=e.get();P(t.split(","),(function(e){o[e]||(o[e]={similar:r,callbacks:[]}),o[e].callbacks.push(n)})),e.set(o)},cE=function(e,t,n){var r=e.get();P(t.split(","),(function(e){r[e].callbacks=H(r[e].callbacks,(function(e){return e!==n})),0===r[e].callbacks.length&&delete r[e]})),e.set(r)},sE=function(e,t,n,r,o){return null===t.get()&&oE(t,e),uE(t,n,r,o),{unbind:function(){return cE(t,n,r)}}},lE=function(e){var t={valigntop:[{selector:"td,th",styles:{verticalAlign:"top"}}],valignmiddle:[{selector:"td,th",styles:{verticalAlign:"middle"}}],valignbottom:[{selector:"td,th",styles:{verticalAlign:"bottom"}}],alignleft:[{selector:"figure.image",collapsed:!1,classes:"align-left",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"left"},inherit:!1,preview:!1,defaultBlock:"div"},{selector:"img,table",collapsed:!1,styles:{float:"left"},preview:"font-family font-size"}],aligncenter:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"center"},inherit:!1,preview:"font-family font-size",defaultBlock:"div"},{selector:"figure.image",collapsed:!1,classes:"align-center",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"img",collapsed:!1,styles:{display:"block",marginLeft:"auto",marginRight:"auto"},preview:!1},{selector:"table",collapsed:!1,styles:{marginLeft:"auto",marginRight:"auto"},preview:"font-family font-size"}],alignright:[{selector:"figure.image",collapsed:!1,classes:"align-right",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"right"},inherit:!1,preview:"font-family font-size",defaultBlock:"div"},{selector:"img,table",collapsed:!1,styles:{float:"right"},preview:"font-family font-size"}],alignjustify:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"justify"},inherit:!1,defaultBlock:"div",preview:"font-family font-size"}],bold:[{inline:"strong",remove:"all"},{inline:"span",styles:{fontWeight:"bold"}},{inline:"b",remove:"all"}],italic:[{inline:"em",remove:"all"},{inline:"span",styles:{fontStyle:"italic"}},{inline:"i",remove:"all"}],underline:[{inline:"span",styles:{textDecoration:"underline"},exact:!0},{inline:"u",remove:"all"}],strikethrough:[{inline:"span",styles:{textDecoration:"line-through"},exact:!0},{inline:"strike",remove:"all"}],forecolor:{inline:"span",styles:{color:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},hilitecolor:{inline:"span",styles:{backgroundColor:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},fontname:{inline:"span",toggle:!1,styles:{fontFamily:"%value"},clear_child_styles:!0},fontsize:{inline:"span",toggle:!1,styles:{fontSize:"%value"},clear_child_styles:!0},fontsize_class:{inline:"span",attributes:{class:"%value"}},blockquote:{block:"blockquote",wrapper:!0,remove:"all"},subscript:{inline:"sub"},superscript:{inline:"sup"},code:{inline:"code"},link:{inline:"a",selector:"a",remove:"all",split:!0,deep:!0,onmatch:function(){return!0},onformat:function(t,n,r){Vr.each(r,(function(n,r){e.setAttrib(t,r,n)}))}},removeformat:[{selector:"b,strong,em,i,font,u,strike,sub,sup,dfn,code,samp,kbd,var,cite,mark,q,del,ins",remove:"all",split:!0,expand:!1,block_expand:!0,deep:!0},{selector:"span",attributes:["style","class"],remove:"empty",split:!0,expand:!1,deep:!0},{selector:"*",attributes:["style","class"],split:!1,expand:!1,deep:!0}]};return Vr.each("p h1 h2 h3 h4 h5 h6 div address pre div dt dd samp".split(/\s/),(function(e){t[e]={block:e,remove:"all"}})),t},fE={get:lE};function dE(e){var t={},n=function(e){return e?t[e]:t},r=function(e){return Ht(t,e)},o=function(e,n){e&&("string"!==typeof e?Vr.each(e,(function(e,t){o(t,e)})):(C(n)||(n=[n]),Vr.each(n,(function(e){"undefined"===typeof e.deep&&(e.deep=!e.selector),"undefined"===typeof e.split&&(e.split=!e.selector||e.inline),"undefined"===typeof e.remove&&e.selector&&!e.inline&&(e.remove="none"),e.selector&&e.inline&&(e.mixed=!0,e.block_expand=!0),"string"===typeof e.classes&&(e.classes=e.classes.split(/\s+/))})),t[e]=n))},i=function(e){return e&&t[e]&&delete t[e],t};return o(fE.get(e.dom)),o(e.settings.formats),{get:n,has:r,register:o,unregister:i}}var hE=Vr.each,mE=Bu.DOM,gE=function(e,t){var n,r,o,i=t&&t.schema||jo({}),a=function(e,t){t.classes.length&&mE.addClass(e,t.classes.join(" ")),mE.setAttribs(e,t.attrs)},u=function(e){var t;return r="string"===typeof e?{name:e,classes:[],attrs:{}}:e,t=mE.create(r.name),a(t,r),t},c=function(e,t){var n="string"!==typeof e?e.nodeName.toLowerCase():e,r=i.getElementRule(n),o=r&&r.parentsRequired;return!(!o||!o.length)&&(t&&-1!==Vr.inArray(o,t)?t:o[0])},s=function(e,t,n){var r,o,i,a=t.length>0&&t[0],l=a&&a.name;if(i=c(e,l),i)l===i?(o=t[0],t=t.slice(1)):o=i;else if(a)o=t[0],t=t.slice(1);else if(!n)return e;return o&&(r=u(o),r.appendChild(e)),n&&(r||(r=mE.create("div"),r.appendChild(e)),Vr.each(n,(function(t){var n=u(t);r.insertBefore(n,e)}))),s(r,t,o&&o.siblings)};return e&&e.length?(r=e[0],n=u(r),o=mE.create("div"),o.appendChild(s(n,e.slice(1),r.siblings)),o):""},pE=function(e,t){return gE(yE(e),t)},vE=function(e){var t,n={classes:[],attrs:{}};return e=n.selector=Vr.trim(e),"*"!==e&&(t=e.replace(/(?:([#\.]|::?)([\w\-]+)|(\[)([^\]]+)\]?)/g,(function(e,t,r,o,i){switch(t){case"#":n.attrs.id=r;break;case".":n.classes.push(r);break;case":":-1!==Vr.inArray("checked disabled enabled read-only required".split(" "),r)&&(n.attrs[r]=r);break}if("["===o){var a=i.match(/([\w\-]+)(?:\=\"([^\"]+))?/);a&&(n.attrs[a[1]]=a[2])}return""}))),n.name=t||"div",n},yE=function(e){return e&&"string"===typeof e?(e=e.split(/\s*,\s*/)[0],e=e.replace(/\s*(~\+|~|\+|>)\s*/g,"$1"),Vr.map(e.split(/(?:>|\s+(?![^\[\]]+\]))/),(function(e){var t=Vr.map(e.split(/(?:~\+|~|\+)/),vE),n=t.pop();return t.length&&(n.siblings=t),n})).reverse()):[]},bE=function(e,t){var n,r,o,i,a,u,c="";if(u=e.settings.preview_styles,!1===u)return"";"string"!==typeof u&&(u="font-family font-size font-weight font-style text-decoration text-transform color background-color border border-radius outline text-shadow");var s=function(e){return e.replace(/%(\w+)/g,"")};if("string"===typeof t){if(t=e.formatter.get(t),!t)return;t=t[0]}return"preview"in t&&(u=t.preview,!1===u)?"":(n=t.block||t.inline||"span",i=yE(t.selector),i.length?(i[0].name||(i[0].name=n),n=t.selector,r=gE(i,e)):r=gE([n],e),o=mE.select(n,r)[0]||r.firstChild,hE(t.styles,(function(e,t){e=s(e),e&&mE.setStyle(o,t,e)})),hE(t.attributes,(function(e,t){e=s(e),e&&mE.setAttrib(o,t,e)})),hE(t.classes,(function(e){e=s(e),mE.hasClass(o,e)||mE.addClass(o,e)})),e.fire("PreviewFormats"),mE.setStyles(r,{position:"absolute",left:-65535}),e.getBody().appendChild(r),a=mE.getStyle(e.getBody(),"fontSize",!0),a=/px$/.test(a)?parseInt(a,10):0,hE(u.split(" "),(function(t){var n=mE.getStyle(o,t,!0);if(("background-color"!==t||!/transparent|rgba\s*\([^)]+,\s*0\)/.test(n)||(n=mE.getStyle(e.getBody(),t,!0),"#ffffff"!==mE.toHex(n).toLowerCase()))&&("color"!==t||"#000000"!==mE.toHex(n).toLowerCase())){if("font-size"===t&&/em|%$/.test(n)){if(0===a)return;var r=parseFloat(n)/(/%$/.test(n)?100:1);n=r*a+"px"}"border"===t&&n&&(c+="padding:0 2px;"),c+=t+":"+n+";"}})),e.fire("AfterPreviewFormats"),mE.remove(r),c)},wE={getCssText:bE,parseSelector:yE,selectorToHtml:pE},CE=function(e,t,n,r,o){var i=t.get(n);!nC.match(e,n,r,o)||"toggle"in i[0]&&!i[0].toggle?rE.applyFormat(e,n,r,o):Dx.remove(e,n,r,o)},xE={toggle:CE},EE=function(e){e.addShortcut("meta+b","","Bold"),e.addShortcut("meta+i","","Italic"),e.addShortcut("meta+u","","Underline");for(var t=1;t<=6;t++)e.addShortcut("access+"+t,"",["FormatBlock",!1,"h"+t]);e.addShortcut("access+7","",["FormatBlock",!1,"p"]),e.addShortcut("access+8","",["FormatBlock",!1,"div"]),e.addShortcut("access+9","",["FormatBlock",!1,"address"])},zE={setup:EE},kE=function(e){var t=dE(e),n=Ce(null);return zE.setup(e),ox(e),{get:t.get,has:t.has,register:t.register,unregister:t.unregister,apply:u(rE.applyFormat,e),remove:u(Dx.remove,e),toggle:u(xE.toggle,e,t),match:u(nC.match,e),matchAll:u(nC.matchAll,e),matchNode:u(nC.matchNode,e),canApply:u(nC.canApply,e),formatChanged:u(sE,e,n),getCssText:u(wE.getCssText,e)}},NE=function(e,t,n){e.addAttributeFilter("data-mce-tabindex",(function(e,t){var n,r=e.length;while(r--)n=e[r],n.attr("tabindex",n.attr("data-mce-tabindex")),n.attr(t,null)})),e.addAttributeFilter("src,href,style",(function(e,r){var o,i,a=e.length,u="data-mce-"+r,c=t.url_converter,s=t.url_converter_scope;while(a--)o=e[a],i=o.attr(u),void 0!==i?(o.attr(r,i.length>0?i:null),o.attr(u,null)):(i=o.attr(r),"style"===r?i=n.serializeStyle(n.parseStyle(i),o.name):c&&(i=c.call(s,i,r,o.name)),o.attr(r,i.length>0?i:null))})),e.addAttributeFilter("class",(function(e){var t,n,r=e.length;while(r--)t=e[r],n=t.attr("class"),n&&(n=t.attr("class").replace(/(?:^|\s)mce-item-\w+(?!\S)/g,""),t.attr("class",n.length>0?n:null))})),e.addAttributeFilter("data-mce-type",(function(e,t,n){var r,o=e.length;while(o--)if(r=e[o],"bookmark"===r.attr("data-mce-type")&&!n.cleanup){var i=p.from(r.firstChild).exists((function(e){return!qc.isZwsp(e.value)}));i?r.unwrap():r.remove()}})),e.addNodeFilter("noscript",(function(e){var t,n=e.length;while(n--)t=e[n].firstChild,t&&(t.value=Do.decode(t.value))})),e.addNodeFilter("script,style",(function(e,n){var r,o,i,a=e.length,u=function(e){return e.replace(/(<!--\[CDATA\[|\]\]-->)/g,"\n").replace(/^[\r\n]*|[\r\n]*$/g,"").replace(/^\s*((<!--)?(\s*\/\/)?\s*<!\[CDATA\[|(<!--\s*)?\/\*\s*<!\[CDATA\[\s*\*\/|(\/\/)?\s*<!--|\/\*\s*<!--\s*\*\/)\s*[\r\n]*/gi,"").replace(/\s*(\/\*\s*\]\]>\s*\*\/(-->)?|\s*\/\/\s*\]\]>(-->)?|\/\/\s*(-->)?|\]\]>|\/\*\s*-->\s*\*\/|\s*-->\s*)\s*$/g,"")};while(a--)r=e[a],o=r.firstChild?r.firstChild.value:"","script"===n?(i=r.attr("type"),i&&r.attr("type","mce-no/type"===i?null:i.replace(/^mce\-/,"")),"xhtml"===t.element_format&&o.length>0&&(r.firstChild.value="// <![CDATA[\n"+u(o)+"\n// ]]>")):"xhtml"===t.element_format&&o.length>0&&(r.firstChild.value="\x3c!--\n"+u(o)+"\n--\x3e")})),e.addNodeFilter("#comment",(function(e){var t,n=e.length;while(n--)t=e[n],0===t.value.indexOf("[CDATA[")?(t.name="#cdata",t.type=4,t.value=t.value.replace(/^\[CDATA\[|\]\]$/g,"")):0===t.value.indexOf("mce:protected ")&&(t.name="#text",t.type=3,t.raw=!0,t.value=unescape(t.value).substr(14))})),e.addNodeFilter("xml:namespace,input",(function(e,t){var n,r=e.length;while(r--)n=e[r],7===n.type?n.remove():1===n.type&&("input"!==t||n.attr("type")||n.attr("type","text"))})),e.addAttributeFilter("data-mce-type",(function(t){P(t,(function(t){"format-caret"===t.attr("data-mce-type")&&(t.isEmpty(e.schema.getNonEmptyElements())?t.remove():t.unwrap())}))})),e.addAttributeFilter("data-mce-src,data-mce-href,data-mce-style,data-mce-selected,data-mce-expando,data-mce-type,data-mce-resize",(function(e,t){var n=e.length;while(n--)e[n].attr(t,null)}))},SE=function(e){var t,n,r=function(e){return e&&"br"===e.name};t=e.lastChild,r(t)&&(n=t.prev,r(n)&&(t.remove(),n.remove()))},TE={register:NE,trimTrailingBr:SE},AE=function(e,t,r){var o,i,a,u=e.dom;return t=t.cloneNode(!0),o=n.document.implementation,o.createHTMLDocument&&(i=o.createHTMLDocument(""),Vr.each("BODY"===t.nodeName?t.childNodes:[t],(function(e){i.body.appendChild(i.importNode(e,!0))})),t="BODY"!==t.nodeName?i.body.firstChild:i.body,a=u.doc,u.doc=i),hp.firePreProcess(e,Np(r,{node:t})),a&&(u.doc=a),t},RE=function(e,t){return e&&e.hasEventListeners("PreProcess")&&!t.no_events},BE=function(e,t,n){return RE(e,n)?AE(e,t,n):t},DE={process:BE},ME=function(e,t){P(t,(function(t){e.attr(t,null)}))},PE=function(e,t,n){e.addNodeFilter("font",(function(e){P(e,(function(e){var r=t.parse(e.attr("style")),o=e.attr("color"),i=e.attr("face"),a=e.attr("size");o&&(r.color=o),i&&(r["font-family"]=i),a&&(r["font-size"]=n[parseInt(e.attr("size"),10)-1]),e.name="span",e.attr("style",t.serialize(r)),ME(e,["color","face","size"])}))}))},_E=function(e,t){e.addNodeFilter("strike",(function(e){P(e,(function(e){var n=t.parse(e.attr("style"));n["text-decoration"]="line-through",e.name="span",e.attr("style",t.serialize(n))}))}))},OE=function(e,t){var n=li();t.convert_fonts_to_spans&&PE(e,n,Vr.explode(t.font_size_legacy_values)),_E(e,n)},HE=function(e,t){t.inline_styles&&OE(e,t)},LE={register:HE},IE=function(e,t,n,r){var o=e.padd_empty_with_br||t.insert;o&&n[r.name]?r.empty().append(new Rh("br",1)).shortEnded=!0:r.empty().append(new Rh("#text",3)).value=" "},VE=function(e){return FE(e,"#text")&&" "===e.firstChild.value},FE=function(e,t){return e&&e.firstChild&&e.firstChild===e.lastChild&&e.firstChild.name===t},UE=function(e,t){var n=e.getElementRule(t.name);return n&&n.paddEmpty},jE=function(e,t,n,r){return r.isEmpty(t,n,(function(t){return UE(e,t)}))},qE=function(e,t){return e&&(t[e.name]||"br"===e.name)},WE=function(e,t){var n=e.schema;t.remove_trailing_brs&&e.addNodeFilter("br",(function(e,r,o){var i,a,u,c,s,l,f,d,h=e.length,m=Vr.extend({},n.getBlockElements()),g=n.getNonEmptyElements(),p=n.getNonEmptyElements();for(m.body=1,i=0;i<h;i++)if(a=e[i],u=a.parent,m[a.parent.name]&&a===u.lastChild){s=a.prev;while(s){if(l=s.name,"span"!==l||"bookmark"!==s.attr("data-mce-type")){if("br"!==l)break;if("br"===l){a=null;break}}s=s.prev}a&&(a.remove(),jE(n,g,p,u)&&(f=n.getElementRule(u.name),f&&(f.removeEmpty?u.remove():f.paddEmpty&&IE(t,o,m,u))))}else{c=a;while(u&&u.firstChild===c&&u.lastChild===c){if(c=u,m[u.name])break;u=u.parent}c===u&&!0!==t.padd_empty_with_br&&(d=new Rh("#text",3),d.value=" ",a.replace(d))}})),e.addAttributeFilter("href",(function(e){var n,r=e.length,o=function(e){var t=e.split(" ").filter((function(e){return e.length>0}));return t.concat(["noopener"]).sort().join(" ")},i=function(e){var t=e?Vr.trim(e):"";return/\b(noopener)\b/g.test(t)?t:o(t)};if(!t.allow_unsafe_link_target)while(r--)n=e[r],"a"===n.name&&"_blank"===n.attr("target")&&n.attr("rel",i(n.attr("rel")))})),t.allow_html_in_named_anchor||e.addAttributeFilter("id,name",(function(e){var t,n,r,o,i=e.length;while(i--)if(o=e[i],"a"===o.name&&o.firstChild&&!o.attr("href")){r=o.parent,t=o.lastChild;do{n=t.prev,r.insert(t,o),t=n}while(t)}})),t.fix_list_elements&&e.addNodeFilter("ul,ol",(function(e){var t,n,r=e.length;while(r--)if(t=e[r],n=t.parent,"ul"===n.name||"ol"===n.name)if(t.prev&&"li"===t.prev.name)t.prev.append(t);else{var o=new Rh("li",1);o.attr("style","list-style-type: none"),t.wrap(o)}})),t.validate&&n.getValidClasses()&&e.addAttributeFilter("class",(function(e){var t,r,o,i,a,u,c,s=e.length,l=n.getValidClasses();while(s--){for(t=e[s],r=t.attr("class").split(" "),a="",o=0;o<r.length;o++)i=r[o],c=!1,u=l["*"],u&&u[i]&&(c=!0),u=l[t.name],!c&&u&&u[i]&&(c=!0),c&&(a&&(a+=" "),a+=i);a.length||(a=null),t.attr("class",a)}}))},$E=Vr.makeMap,KE=Vr.each,XE=Vr.explode,YE=Vr.extend,GE=function(e,t){void 0===t&&(t=jo());var n={},r=[],o={},i={};e=e||{},e.validate=!("validate"in e)||e.validate,e.root_name=e.root_name||"body";var a=function(e){var n,r,o,i,a,c,s,l,f,d,h,m,g,p,v,y;for(m=$E("tr,td,th,tbody,thead,tfoot,table"),d=t.getNonEmptyElements(),h=t.getWhiteSpaceElements(),g=t.getTextBlockElements(),p=t.getSpecialElements(),n=0;n<e.length;n++)if(r=e[n],r.parent&&!r.fixed)if(g[r.name]&&"li"===r.parent.name){v=r.next;while(v){if(!g[v.name])break;v.name="li",v.fixed=!0,r.parent.insert(v,r.parent),v=v.next}r.unwrap(r)}else{for(i=[r],o=r.parent;o&&!t.isValidChild(o.name,r.name)&&!m[o.name];o=o.parent)i.push(o);if(o&&i.length>1){for(i.reverse(),a=c=u(i[0].clone()),f=0;f<i.length-1;f++){for(t.isValidChild(c.name,i[f].name)?(s=u(i[f].clone()),c.append(s)):s=c,l=i[f].firstChild;l&&l!==i[f+1];)y=l.next,s.append(l),l=y;c=s}jE(t,d,h,a)?o.insert(r,i[0],!0):(o.insert(a,i[0],!0),o.insert(r,a)),o=i[0],(jE(t,d,h,o)||FE(o,"br"))&&o.empty().remove()}else if(r.parent){if("li"===r.name){if(v=r.prev,v&&("ul"===v.name||"ul"===v.name)){v.append(r);continue}if(v=r.next,v&&("ul"===v.name||"ul"===v.name)){v.insert(r,v.firstChild,!0);continue}r.wrap(u(new Rh("ul",1)));continue}t.isValidChild(r.parent.name,"div")&&t.isValidChild("div",r.name)?r.wrap(u(new Rh("div",1))):p[r.name]?r.empty().remove():r.unwrap()}}},u=function(e){var t,a,u;a=e.name,a in n&&(u=o[a],u?u.push(e):o[a]=[e]),t=r.length;while(t--)a=r[t].name,a in e.attributes.map&&(u=i[a],u?u.push(e):i[a]=[e]);return e},c=function(e,t){KE(XE(e),(function(e){var r=n[e];r||(n[e]=r=[]),r.push(t)}))},s=function(){var e=[];for(var t in n)n.hasOwnProperty(t)&&e.push({name:t,callbacks:n[t]});return e},l=function(e,t){KE(XE(e),(function(e){var n;for(n=0;n<r.length;n++)if(r[n].name===e)return void r[n].callbacks.push(t);r.push({name:e,callbacks:[t]})}))},f=function(){return[].concat(r)},d=function(u,c){var s,l,f,d,h,m,g,p,v,y,b,w=[],C=function(e){return!1===e?"":!0===e?"p":e};c=c||{},o={},i={},v=YE($E("script,style,head,html,body,title,meta,param"),t.getBlockElements());var x=t.getNonEmptyElements(),E=t.children,z=e.validate,k="forced_root_block"in c?c.forced_root_block:e.forced_root_block,N=C(k),S=t.getWhiteSpaceElements(),T=/^[ \t\r\n]+/,A=/[ \t\r\n]+$/,R=/[ \t\r\n]+/g,B=/^[ \t\r\n]+$/;y=S.hasOwnProperty(c.context)||S.hasOwnProperty(e.root_name);var D=function(){var n,r,o=O.firstChild,i=function(e){e&&(o=e.firstChild,o&&3===o.type&&(o.value=o.value.replace(T,"")),o=e.lastChild,o&&3===o.type&&(o.value=o.value.replace(A,"")))};if(t.isValidChild(O.name,N.toLowerCase())){while(o)n=o.next,3===o.type||1===o.type&&"p"!==o.name&&!v[o.name]&&!o.attr("data-mce-type")?(r||(r=M(N,1),r.attr(e.forced_root_block_attrs),O.insert(r,o)),r.append(o)):(i(r),r=null),o=n;i(r)}},M=function(e,t){var r,i=new Rh(e,t);return e in n&&(r=o[e],r?r.push(i):o[e]=[i]),i},P=function(e){var n,r,o,i,a=t.getBlockElements();for(n=e.prev;n&&3===n.type;){if(o=n.value.replace(A,""),o.length>0)return void(n.value=o);if(r=n.next,r){if(3===r.type&&r.value.length){n=n.prev;continue}if(!a[r.name]&&"script"!==r.name&&"style"!==r.name){n=n.prev;continue}}i=n.prev,n.remove(),n=i}},_=function(e){var t,n={};for(t in e)"li"!==t&&"p"!==t&&(n[t]=e[t]);return n};s=Lh({validate:z,allow_script_urls:e.allow_script_urls,allow_conditional_comments:e.allow_conditional_comments,self_closing_elements:_(t.getSelfClosingElements()),cdata:function(e){b.append(M("#cdata",4)).value=e},text:function(e,t){var n;y||(e=e.replace(R," "),qE(b.lastChild,v)&&(e=e.replace(T,""))),0!==e.length&&(n=M("#text",3),n.raw=!!t,b.append(n).value=e)},comment:function(e){b.append(M("#comment",8)).value=e},pi:function(e,t){b.append(M(e,7)).value=t,P(b)},doctype:function(e){var t;t=b.append(M("#doctype",10)),t.value=e,P(b)},start:function(e,n,o){var a,u,c,s,l;if(c=z?t.getElementRule(e):{},c){a=M(c.outputName||e,1),a.attributes=n,a.shortEnded=o,b.append(a),l=E[b.name],l&&E[a.name]&&!l[a.name]&&w.push(a),u=r.length;while(u--)s=r[u].name,s in n.map&&(g=i[s],g?g.push(a):i[s]=[a]);v[e]&&P(a),o||(b=a),!y&&S[e]&&(y=!0)}},end:function(n){var r,o,i,a,u;if(o=z?t.getElementRule(n):{},o){if(v[n]&&!y){if(r=b.firstChild,r&&3===r.type)if(i=r.value.replace(T,""),i.length>0)r.value=i,r=r.next;else{a=r.next,r.remove(),r=a;while(r&&3===r.type)i=r.value,a=r.next,(0===i.length||B.test(i))&&(r.remove(),r=a),r=a}if(r=b.lastChild,r&&3===r.type)if(i=r.value.replace(A,""),i.length>0)r.value=i,r=r.prev;else{a=r.prev,r.remove(),r=a;while(r&&3===r.type)i=r.value,a=r.prev,(0===i.length||B.test(i))&&(r.remove(),r=a),r=a}}if(y&&S[n]&&(y=!1),o.removeEmpty&&jE(t,x,S,b)&&!b.attr("name")&&!b.attr("id"))return u=b.parent,v[b.name]?b.empty().remove():b.unwrap(),void(b=u);o.paddEmpty&&(VE(b)||jE(t,x,S,b))&&IE(e,c,v,b),b=b.parent}}},t);var O=b=new Rh(c.context||e.root_name,11);if(s.parse(u),z&&w.length&&(c.context?c.invalid=!0:a(w)),N&&("body"===O.name||c.isRootContent)&&D(),!c.invalid){for(p in o)if(o.hasOwnProperty(p)){g=n[p],l=o[p],h=l.length;while(h--)l[h].parent||l.splice(h,1);for(f=0,d=g.length;f<d;f++)g[f](l,p,c)}for(f=0,d=r.length;f<d;f++)if(g=r[f],g.name in i){l=i[g.name],h=l.length;while(h--)l[h].parent||l.splice(h,1);for(h=0,m=g.callbacks.length;h<m;h++)g.callbacks[h](l,g.name,c)}}return O},h={schema:t,addAttributeFilter:l,getAttributeFilters:f,addNodeFilter:c,getNodeFilters:s,filterNode:u,parse:d};return WE(h,e),LE.register(h,e),h},ZE=function(e,t,n){-1===Vr.inArray(t,n)&&(e.addAttributeFilter(n,(function(e,t){var n=e.length;while(n--)e[n].attr(t,null)})),t.push(n))},JE=function(e,t,n){if(!t.no_events&&e){var r=hp.firePostProcess(e,Np(t,{content:n}));return r.content}return n},QE=function(e,t,n){var r=qc.trim(n.getInner?t.innerHTML:e.getOuterHTML(t));return n.selection||ho(Ct.fromDom(t))?r:Vr.trim(r)},ez=function(e,t,n){var r=n.selection?Np({forced_root_block:!1},n):n,o=e.parse(t,r);return TE.trimTrailingBr(o),o},tz=function(e,t,n){var r=Bm(e,t);return r.serialize(n)},nz=function(e,t,n,r,o){var i=tz(t,n,r);return JE(e,o,i)},rz=function(e,t){var n,r,o,i=["data-mce-selected"];n=t&&t.dom?t.dom:Bu.DOM,r=t&&t.schema?t.schema:jo(e),e.entity_encoding=e.entity_encoding||"named",e.remove_trailing_brs=!("remove_trailing_brs"in e)||e.remove_trailing_brs,o=GE(e,r),TE.register(o,e,n);var a=function(i,a){var u=Np({format:"html"},a||{}),c=DE.process(t,i,u),s=QE(n,c,u),l=ez(o,s,u);return"tree"===u.format?l:nz(t,e,r,l,u)};return{schema:r,addNodeFilter:o.addNodeFilter,addAttributeFilter:o.addAttributeFilter,serialize:a,addRules:function(e){r.addValidElements(e)},setRules:function(e){r.setValidElements(e)},addTempAttr:u(ZE,o,i),getTempAttrs:function(){return i}}},oz=function(e,t){var n=rz(e,t);return{schema:n.schema,addNodeFilter:n.addNodeFilter,addAttributeFilter:n.addAttributeFilter,serialize:n.serialize,addRules:n.addRules,setRules:n.setRules,addTempAttr:n.addTempAttr,getTempAttrs:n.getTempAttrs}};function iz(e){return{getBookmark:u(Od.getBookmark,e),moveToBookmark:u(Od.moveToBookmark,e)}}(function(e){e.isBookmarkNode=Od.isBookmarkNode})(iz||(iz={}));var az=iz,uz=we.isContentEditableFalse,cz=we.isContentEditableTrue,sz=function(e,t){while(t&&t!==e){if(cz(t)||uz(t))return t;t=t.parentNode}return null},lz=function(e,t){var r,o,i,a,u,c,s,l,f,d,h,m,g,p,v,y,b,w=t.dom,C=Vr.each,x=t.getDoc(),E=n.document,z=Math.abs,k=Math.round,N=t.getBody();a={nw:[0,0,-1,-1],ne:[1,0,1,-1],se:[1,1,1,1],sw:[0,1,-1,1]};var S=function(e){return e&&("IMG"===e.nodeName||t.dom.is(e,"figure.image"))},T=function(e,t){if("longpress"===e.type||0===e.type.indexOf("touch")){var n=e.touches[0];return S(e.target)&&!ab.isXYWithinRange(n.clientX,n.clientY,t)}return S(e.target)&&!ab.isXYWithinRange(e.clientX,e.clientY,t)},A=function(e){var n=e.target;T(e,t.selection.getRng())&&!e.isDefaultPrevented()&&t.selection.select(n)},R=function(e){return t.dom.is(e,"figure.image")?e.querySelector("img"):e},B=function(e){var n=t.settings.object_resizing;return!1!==n&&!pr.iOS&&("string"!==typeof n&&(n="table,img,figure.image,div"),"false"!==e.getAttribute("data-mce-resize")&&(e!==t.getBody()&&an(Ct.fromDom(e),n)))},D=function(e){var n,a,C,x,E;n=e.screenX-c,a=e.screenY-s,p=n*u[2]+d,v=a*u[3]+h,p=p<5?5:p,v=v<5?5:v,C=S(r)&&!1!==t.settings.resize_img_proportional?!by.modifierPressed(e):by.modifierPressed(e)||S(r)&&u[2]*u[3]!==0,C&&(z(n)>z(a)?(v=k(p*m),p=k(v/m)):(p=k(v/m),v=k(p*m))),w.setStyles(R(o),{width:p,height:v}),x=u.startPos.x+n,E=u.startPos.y+a,x=x>0?x:0,E=E>0?E:0,w.setStyles(i,{left:x,top:E,display:"block"}),i.innerHTML=p+" × "+v,u[2]<0&&o.clientWidth<=p&&w.setStyle(o,"left",l+(d-p)),u[3]<0&&o.clientHeight<=v&&w.setStyle(o,"top",f+(h-v)),n=N.scrollWidth-y,a=N.scrollHeight-b,n+a!==0&&w.setStyles(i,{left:x-n,top:E-a}),g||(hp.fireObjectResizeStart(t,r,d,h),g=!0)},M=function(){g=!1;var e=function(e,n){n&&(r.style[e]||!t.schema.isValid(r.nodeName.toLowerCase(),e)?w.setStyle(R(r),e,n):w.setAttrib(R(r),e,n))};e("width",p),e("height",v),w.unbind(x,"mousemove",D),w.unbind(x,"mouseup",M),E!==x&&(w.unbind(E,"mousemove",D),w.unbind(E,"mouseup",M)),w.remove(o),w.remove(i),P(r),hp.fireObjectResized(t,r,p,v),w.setAttrib(r,"style",w.getAttrib(r,"style")),t.nodeChanged()},P=function(e){var n,g,z,k,S;_(),L(),n=w.getPos(e,N),l=n.x,f=n.y,S=e.getBoundingClientRect(),g=S.width||S.right-S.left,z=S.height||S.bottom-S.top,r!==e&&(r=e,p=v=0),k=t.fire("ObjectSelected",{target:e}),B(e)&&!k.isDefaultPrevented()?C(a,(function(e,t){var n,a=function(t){c=t.screenX,s=t.screenY,d=R(r).clientWidth,h=R(r).clientHeight,m=h/d,u=e,e.startPos={x:g*e[0]+l,y:z*e[1]+f},y=N.scrollWidth,b=N.scrollHeight,o=r.cloneNode(!0),w.addClass(o,"mce-clonedresizable"),w.setAttrib(o,"data-mce-bogus","all"),o.contentEditable=!1,o.unSelectabe=!0,w.setStyles(o,{left:l,top:f,margin:0}),o.removeAttribute("data-mce-selected"),N.appendChild(o),w.bind(x,"mousemove",D),w.bind(x,"mouseup",M),E!==x&&(w.bind(E,"mousemove",D),w.bind(E,"mouseup",M)),i=w.add(N,"div",{class:"mce-resize-helper","data-mce-bogus":"all"},d+" × "+h)};n=w.get("mceResizeHandle"+t),n&&w.remove(n),n=w.add(N,"div",{id:"mceResizeHandle"+t,"data-mce-bogus":"all",class:"mce-resizehandle",unselectable:!0,style:"cursor:"+t+"-resize; margin:0; padding:0"}),11===pr.ie&&(n.contentEditable=!1),w.bind(n,"mousedown",(function(e){e.stopImmediatePropagation(),e.preventDefault(),a(e)})),e.elm=n,w.setStyles(n,{left:g*e[0]+l-n.offsetWidth/2,top:z*e[1]+f-n.offsetHeight/2})})):_(),r.setAttribute("data-mce-selected","1")},_=function(){var e,t;for(e in L(),r&&r.removeAttribute("data-mce-selected"),a)t=w.get("mceResizeHandle"+e),t&&(w.unbind(t),w.remove(t))},O=function(n){var r,o,i=function(e,t){if(e)do{if(e===t)return!0}while(e=e.parentNode)};g||t.removed||(C(w.select("img[data-mce-selected],hr[data-mce-selected]"),(function(e){e.removeAttribute("data-mce-selected")})),o="mousedown"===n.type?n.target:e.getNode(),o=w.$(o).closest("table,img,figure.image,hr")[0],i(o,N)&&(I(),r=e.getStart(!0),i(r,o)&&i(e.getEnd(!0),o))?P(o):_())},H=function(e){return uz(sz(t.getBody(),e))},L=function(){for(var e in a){var t=a[e];t.elm&&(w.unbind(t.elm),delete t.elm)}},I=function(){try{t.getDoc().execCommand("enableObjectResizing",!1,!1)}catch(e){}};t.on("init",(function(){I(),(pr.browser.isIE()||pr.browser.isEdge())&&(t.on("mousedown click",(function(e){var n=e.target,r=n.nodeName;g||!/^(TABLE|IMG|HR)$/.test(r)||H(n)||(2!==e.button&&t.selection.select(n,"TABLE"===r),"mousedown"===e.type&&t.nodeChanged())})),t.dom.bind(N,"mscontrolselect",(function(e){var n=function(e){ur.setEditorTimeout(t,(function(){t.selection.select(e)}))};if(H(e.target))return e.preventDefault(),void n(e.target);/^(TABLE|IMG|HR)$/.test(e.target.nodeName)&&(e.preventDefault(),"IMG"===e.target.tagName&&n(e.target))})));var e=ur.throttle((function(e){t.composing||O(e)}));t.on("nodechange ResizeEditor ResizeWindow drop FullscreenStateChanged",e),t.on("keyup compositionend",(function(t){r&&"TABLE"===r.nodeName&&e(t)})),t.on("hide blur",_),t.on("contextmenu longpress",A,!0)})),t.on("remove",L);var V=function(){r=o=null};return{isResizable:B,showResizeRect:P,hideResizeRect:_,updateResizeRect:O,destroy:V}};function fz(e,t){var n=function(t,n){if(!k(n)&&!n.match(/^[0-9]+$/))throw new Error(e+".set accepts only positive integer values. Value was "+n);var r=t.dom();Lt(r)&&(r.style[e]=n+"px")},r=function(n){var r=t(n);if(r<=0||null===r){var o=$t(n,e);return parseFloat(o)||0}return r},o=r,i=function(e,t){return I(t,(function(t,n){var r=$t(e,n),o=void 0===r?0:parseInt(r,10);return isNaN(o)?t:t+o}),0)},a=function(e,t,n){var r=i(e,n),o=t>r?t-r:0;return o};return{set:n,get:r,getOuter:o,aggregate:i,max:a}}var dz=fz("height",(function(e){var t=e.dom();return It(e)?t.getBoundingClientRect().height:t.offsetHeight})),hz=function(e){return dz.get(e)},mz=function(e,t){var n=e.view(t);return n.fold(i([]),(function(t){var n=e.owner(t),r=mz(e,n);return[t].concat(r)}))},gz=function(e,t){var n=t.owner(e);return mz(t,n)},pz=function(e){var t=e.dom()===n.document?p.none():p.from(e.dom().defaultView.frameElement);return t.map(Ct.fromDom)},vz=function(e){return gn(e)},yz=Object.freeze({view:pz,owner:vz}),bz=function(e){var t=Ct.fromDom(n.document),r=vu(t),o=gz(e,yz),i=gu(e),a=L(o,(function(e,t){var n=gu(t);return{left:e.left+n.left(),top:e.top+n.top()}}),{left:0,top:0});return fu(a.left+i.left()+r.left(),a.top+i.top()+r.top())},wz=function(e){return"textarea"===kt(e)},Cz=function(e,t){var n=zn(e);if(0===n.length||wz(e))return{element:e,offset:t};if(t<n.length&&!wz(n[t]))return{element:n[t],offset:0};var r=n[n.length-1];return wz(r)?{element:e,offset:t}:"img"===kt(r)?{element:r,offset:1}:At(r)?{element:r,offset:yh(r).length}:{element:r,offset:zn(r).length}},xz=function(e,t){var n=mu(e),r=hz(e);return{element:e,bottom:n.top()+r,pos:n,cleanup:t}},Ez=function(e,t){var n=Cz(e,t),r=Ct.fromHtml('<span data-mce-bogus="all">'+qc.ZWSP+"</span>");return eu(n.element,r),xz(r,(function(){return cu(r)}))},zz=function(e){return xz(Ct.fromDom(e),r)},kz=function(e,t,n,r){Tz(e,(function(o,i){return Nz(e,t,n,r)}),n)},Nz=function(e,t,n,r){var o=Ct.fromDom(e.getBody()),i=Ct.fromDom(e.getDoc());Yt(o);var a=vu(i).top(),u=Ez(Ct.fromDom(n.startContainer),n.startOffset);t(i,a,u,r),u.cleanup()},Sz=function(e,t,n,r){var o=Ct.fromDom(e.getDoc()),i=vu(o).top();n(o,i,t,r)},Tz=function(e,t,n){var r=n.startContainer,o=n.startOffset,i=n.endContainer,a=n.endOffset;t(Ct.fromDom(r),Ct.fromDom(i));var u=e.dom.createRng();u.setStart(r,o),u.setEnd(i,a),e.selection.setRng(n)},Az=function(e,t,n){var r=e.fire("ScrollIntoView",{elm:t,alignToTop:n});return r.isDefaultPrevented()},Rz=function(e,t,n,r){var o=e.pos;if(n)yu(o.left(),o.top(),r);else{var i=o.top()-t+(e.bottom-o.top());yu(o.left(),i,r)}},Bz=function(e,t,n,r,o){r.pos.top()<t?Rz(r,n,!1!==o,e):r.bottom>n+t&&Rz(r,n,!0===o,e)},Dz=function(e,t,n,r){var o=e.dom().defaultView.innerHeight;Bz(e,t,o,n,r)},Mz=function(e,t,r,o,i){var a=t.dom().defaultView.innerHeight;Bz(t,r,a,o,i);var u=bz(o.element),c=Cu(n.window);u.top()<c.y()?bu(o.element,!1!==i):u.top()>c.bottom()&&bu(o.element,!0===i)},Pz=function(e,t,n){return kz(e,u(Dz),t,n)},_z=function(e,t,n){return Sz(e,zz(t),u(Dz),n)},Oz=function(e,t,n){return kz(e,u(Mz,e),t,n)},Hz=function(e,t,n){return Sz(e,zz(t),u(Mz,e),n)},Lz=function(e,t,n){if(!Az(e,t,n)){var r=e.inline?_z:Hz;r(e,t,n)}},Iz=function(e,t,n){var r=e.inline?Pz:Oz;r(e,t,n)},Vz={scrollElementIntoView:Lz,scrollRangeIntoView:Iz},Fz=function(e){return we.isContentEditableTrue(e)||we.isContentEditableFalse(e)},Uz=function(e,t,n){while(e&&e!==t){if(n(e))return e;e=e.parentNode}return null},jz=function(e,t,n){var r,o,i;if(r=n.elementFromPoint(e,t),o=n.body.createTextRange(),r&&"HTML"!==r.tagName||(r=n.body),o.moveToElementText(r),i=Vr.toArray(o.getClientRects()),i=i.sort((function(e,n){return e=Math.abs(Math.max(e.top-t,e.bottom-t)),n=Math.abs(Math.max(n.top-t,n.bottom-t)),e-n})),i.length>0){t=(i[0].bottom+i[0].top)/2;try{return o.moveToPoint(e,t),o.collapse(!0),o}catch(a){}}return null},qz=function(e,t){var n=e&&e.parentElement?e.parentElement():null;return we.isContentEditableFalse(Uz(n,t,Fz))?null:e},Wz=function(e,t,n){var r,o,i=n;if(i.caretPositionFromPoint)o=i.caretPositionFromPoint(e,t),o&&(r=n.createRange(),r.setStart(o.offsetNode,o.offset),r.collapse(!0));else if(n.caretRangeFromPoint)r=n.caretRangeFromPoint(e,t);else if(i.body.createTextRange){r=i.body.createTextRange();try{r.moveToPoint(e,t),r.collapse(!0)}catch(a){r=jz(e,t,n)}return qz(r,n.body)}return r},$z={fromPoint:Wz},Kz=function(e,t){return M(t,(function(t){var n=e.fire("GetSelectionRange",{range:t});return n.range!==t?n.range:t}))},Xz={processRanges:Kz},Yz=function(e,t){var r=t||n.document,o=r.createDocumentFragment();return P(e,(function(e){o.appendChild(e.dom())})),Ct.fromDom(o)},Gz=Gt("element","width","rows"),Zz=Gt("element","cells"),Jz=Gt("x","y"),Qz=function(e,t){var n=parseInt(jt(e,t),10);return isNaN(n)?1:n},ek=function(e,t,n,r,o){for(var i=Qz(o,"rowspan"),a=Qz(o,"colspan"),u=e.rows(),c=n;c<n+i;c++){u[c]||(u[c]=Zz(Hc(r),[]));for(var s=t;s<t+a;s++){var l=u[c].cells();l[s]=c===n&&s===t?o:Oc(o)}}},tk=function(e,t,n){var r=e.rows(),o=r[n]?r[n].cells():[];return!!o[t]},nk=function(e,t,n){while(tk(e,t,n))t++;return t},rk=function(e){return I(e,(function(e,t){return t.cells().length>e?t.cells().length:e}),0)},ok=function(e,t){for(var n=e.rows(),r=0;r<n.length;r++)for(var o=n[r].cells(),i=0;i<o.length;i++)if(ln(o[i],t))return p.some(Jz(i,r));return p.none()},ik=function(e,t,n,r,o){for(var i=[],a=e.rows(),u=n;u<=o;u++){var c=a[u].cells(),s=t<r?c.slice(t,r+1):c.slice(r,t+1);i.push(Zz(a[u].element(),s))}return i},ak=function(e,t,n){var r=t.x(),o=t.y(),i=n.x(),a=n.y(),u=o<a?ik(e,r,o,i,a):ik(e,r,a,i,o);return Gz(e.element(),rk(u),u)},uk=function(e,t){var n=Oc(e.element()),r=Ct.fromTag("tbody");return au(r,t),ru(n,r),n},ck=function(e){return M(e.rows(),(function(e){var t=M(e.cells(),(function(e){var t=Hc(e);return Wt(t,"colspan"),Wt(t,"rowspan"),t})),n=Oc(e.element());return au(n,t),n}))},sk=function(e){var t=Gz(Oc(e),0,[]);return P(gc(e,"tr"),(function(e,n){P(gc(e,"td,th"),(function(r,o){ek(t,nk(t,o,n),n,e,r)}))})),Gz(t.element(),rk(t.rows()),t.rows())},lk=function(e){return uk(e,ck(e))},fk=function(e,t,n){return ok(e,t).bind((function(t){return ok(e,n).map((function(n){return ak(e,t,n)}))}))},dk={fromDom:sk,toDom:lk,subsection:fk},hk=function(e){var t=[];if(e)for(var n=0;n<e.rangeCount;n++)t.push(e.getRangeAt(n));return t},mk=function(e){return j(e,(function(e){var t=Rs(e);return t?[Ct.fromDom(t)]:[]}))},gk=function(e){return hk(e).length>1},pk={getRanges:hk,getSelectedNodes:mk,hasMultipleRanges:gk},vk=function(e){return H(pk.getSelectedNodes(e),fo)},yk=function(e){return gc(e,"td[data-mce-selected],th[data-mce-selected]")},bk=function(e,t){var n=yk(t),r=vk(e);return n.length>0?n:r},wk=function(e){return bk(pk.getRanges(e.selection.getSel()),Ct.fromDom(e.getBody()))},Ck={getCellsFromRanges:vk,getCellsFromElement:yk,getCellsFromElementOrRanges:bk,getCellsFromEditor:wk},xk=function(e){return V(e,(function(e){return"ul"===kt(e)||"ol"===kt(e)}))},Ek=function(e,t){return V(e,(function(e){return"li"===kt(e)&&gy(e,t)})).fold(i([]),(function(t){return xk(e).map((function(e){return[Ct.fromTag("li"),Ct.fromTag(kt(e))]})).getOr([])}))},zk=function(e,t){var n=I(t,(function(e,t){return ru(t,e),t}),e);return t.length>0?Yz([n]):n},kk=function(e){return co(e)?yn(e).filter(uo).fold(i([]),(function(t){return[e,t]})):uo(e)?[e]:[]},Nk=function(e,t){var n=Ct.fromDom(t.commonAncestorContainer),r=ty.parentsAndSelf(n,e),o=H(r,(function(e){return oo(e)||to(e)})),i=Ek(r,t),a=o.concat(i.length?i:kk(n));return M(a,Oc)},Sk=function(){return Yz([])},Tk=function(e,t){return zk(Ct.fromDom(t.cloneContents()),Nk(e,t))},Ak=function(e,t){return bc(t,"table",u(ln,e))},Rk=function(e,t){return Ak(e,t[0]).bind((function(e){var n=t[0],r=t[t.length-1],o=dk.fromDom(e);return dk.subsection(o,n,r).map((function(e){return Yz([dk.toDom(e)])}))})).getOrThunk(Sk)},Bk=function(e,t){return t.length>0&&t[0].collapsed?Sk():Tk(e,t[0])},Dk=function(e,t){var n=Ck.getCellsFromElementOrRanges(t,e);return n.length>0?Rk(e,n):Bk(e,t)},Mk={read:Dk},Pk=function(e){return p.from(e.selection.getRng()).map((function(t){var n=e.dom.add(e.getBody(),"div",{"data-mce-bogus":"all",style:"overflow: hidden; opacity: 0;"},t.cloneContents()),r=qc.trim(n.innerText);return e.dom.remove(n),r})).getOr("")},_k=function(e,t){var n,r=e.selection.getRng(),o=e.dom.create("body"),i=e.selection.getSel(),a=Xz.processRanges(e,pk.getRanges(i));return n=t.contextual?Mk.read(Ct.fromDom(e.getBody()),a).dom():r.cloneContents(),n&&o.appendChild(n),e.selection.serializer.serialize(o,t)},Ok=function(e,t){if(void 0===t&&(t={}),t.get=!0,t.format=t.format||"html",t.selection=!0,t=e.fire("BeforeGetContent",t),t.isDefaultPrevented())return e.fire("GetContent",t),t.content;if("text"===t.format)return Pk(e);t.getInner=!0;var n=_k(e,t);return"tree"===t.format?n:(t.content=e.selection.isCollapsed()?"":n,e.fire("GetContent",t),t.content)},Hk={getContent:Ok},Lk=function(e,t,n){while(e&&e!==t){if(n(e))return e;e=e.parentNode}return null},Ik=function(e,t,n){return null!==Lk(e,t,n)},Vk=function(e,t,n){return Ik(e,t,(function(e){return e.nodeName===n}))},Fk=function(e){return e&&"TABLE"===e.nodeName},Uk=function(e){return e&&/^(TD|TH|CAPTION)$/.test(e.nodeName)},jk=function(e,t){return Yc(e)&&!1===Ik(e,t,Wl)},qk=function(e,t,n){var r=new Qa(t,e.getParent(t.parentNode,e.isBlock)||e.getRoot());while(t=r[n?"prev":"next"]())if(we.isBr(t))return!0},Wk=function(e,t){return e.previousSibling&&e.previousSibling.nodeName===t},$k=function(e,t){while(t&&t!==e){if(we.isContentEditableFalse(t))return!0;t=t.parentNode}return!1},Kk=function(e,t,n,r,o){var i,a,u=e.getRoot(),c=e.schema.getNonEmptyElements(),s=e.getParent(o.parentNode,e.isBlock)||u;if(r&&we.isBr(o)&&t&&e.isEmpty(s))return p.some(ul(o.parentNode,e.nodeIndex(o)));var l=new Qa(o,s);while(a=l[r?"prev":"next"]()){if("false"===e.getContentEditableParent(a)||jk(a,u))return p.none();if(we.isText(a)&&a.nodeValue.length>0)return!1===Vk(a,u,"A")?p.some(ul(a,r?a.nodeValue.length:0)):p.none();if(e.isBlock(a)||c[a.nodeName.toLowerCase()])return p.none();i=a}return n&&i?p.some(ul(i,0)):p.none()},Xk=function(e,t,n,r){var o,i,a,u,c,s,l=e.getRoot(),f=!1;if(o=r[(n?"start":"end")+"Container"],i=r[(n?"start":"end")+"Offset"],s=we.isElement(o)&&i===o.childNodes.length,u=e.schema.getNonEmptyElements(),c=n,Yc(o))return p.none();if(we.isElement(o)&&i>o.childNodes.length-1&&(c=!1),we.isDocument(o)&&(o=l,i=0),o===l){if(c&&(a=o.childNodes[i>0?i-1:0],a)){if(Yc(a))return p.none();if(u[a.nodeName]||Fk(a))return p.none()}if(o.hasChildNodes()){if(i=Math.min(!c&&i>0?i-1:i,o.childNodes.length-1),o=o.childNodes[i],i=we.isText(o)&&s?o.data.length:0,!t&&o===l.lastChild&&Fk(o))return p.none();if($k(l,o)||Yc(o))return p.none();if(o.hasChildNodes()&&!1===Fk(o)){a=o;var d=new Qa(o,l);do{if(we.isContentEditableFalse(a)||Yc(a)){f=!1;break}if(we.isText(a)&&a.nodeValue.length>0){i=c?0:a.nodeValue.length,o=a,f=!0;break}if(u[a.nodeName.toLowerCase()]&&!Uk(a)){i=e.nodeIndex(a),o=a.parentNode,c||i++,f=!0;break}}while(a=c?d.next():d.prev())}}}return t&&(we.isText(o)&&0===i&&Kk(e,s,t,!0,o).each((function(e){o=e.container(),i=e.offset(),f=!0})),we.isElement(o)&&(a=o.childNodes[i],a||(a=o.childNodes[i-1]),!a||!we.isBr(a)||Wk(a,"A")||qk(e,a,!1)||qk(e,a,!0)||Kk(e,s,t,!0,a).each((function(e){o=e.container(),i=e.offset(),f=!0})))),c&&!t&&we.isText(o)&&i===o.nodeValue.length&&Kk(e,s,t,!1,o).each((function(e){o=e.container(),i=e.offset(),f=!0})),f?p.some(ul(o,i)):p.none()},Yk=function(e,t){var n=t.collapsed,r=t.cloneRange(),o=ul.fromRangeStart(t);return Xk(e,n,!0,r).each((function(e){n&&ul.isAbove(o,e)||r.setStart(e.container(),e.offset())})),n||Xk(e,n,!1,r).each((function(e){r.setEnd(e.container(),e.offset())})),n&&r.collapse(!0),ly.isEq(t,r)?p.none():p.some(r)},Gk={normalize:Yk},Zk=function(e,t){e.insertData(0,t)},Jk=function(e){return 0===e.dom().length?(cu(e),p.none()):p.some(e)},Qk=function(e,t){var n=p.from(t.firstChild).map(Ct.fromDom),r=p.from(t.lastChild).map(Ct.fromDom);e.deleteContents(),e.insertNode(t);var o=n.bind(wn).filter(At).bind(Jk),i=r.bind(Cn).filter(At).bind(Jk);Ps(o,n.filter(At),(function(e,t){Zk(t.dom(),e.dom().data),cu(e)})),Ps(i,r.filter(At),(function(t,n){var r=n.dom().length;n.dom().appendData(t.dom().data),e.setEnd(n.dom(),r),cu(t)})),e.collapse(!1)},eN=function(e,t){return e=e||{format:"html"},e.set=!0,e.selection=!0,e.content=t,e},tN=function(e,t,n){if(n=eN(n,t),n.no_events||(n=e.fire("BeforeSetContent",n),!n.isDefaultPrevented())){var r=e.selection.getRng();Qk(r,r.createContextualFragment(n.content)),e.selection.setRng(r),Vz.scrollRangeIntoView(e,r),n.no_events||e.fire("SetContent",n)}else e.fire("SetContent",n)},nN={setContent:tN},rN=function(e,t,n,r,o){var i=n?t.startContainer:t.endContainer,a=n?t.startOffset:t.endOffset;return p.from(i).map(Ct.fromDom).map((function(e){return r&&t.collapsed?e:kn(e,o(e,a)).getOr(e)})).bind((function(e){return Tt(e)?p.some(e):yn(e)})).map((function(e){return e.dom()})).getOr(e)},oN=function(e,t,n){return rN(e,t,!0,n,(function(e,t){return Math.min(Tn(e),t)}))},iN=function(e,t,n){return rN(e,t,!1,n,(function(e,t){return t>0?t-1:t}))},aN=function(e,t){var n=e;while(e&&we.isText(e)&&0===e.length)e=t?e.nextSibling:e.previousSibling;return e||n},uN=function(e,t){var n,r,o,i,a;return t?(r=t.startContainer,o=t.endContainer,i=t.startOffset,a=t.endOffset,n=t.commonAncestorContainer,!t.collapsed&&(r===o&&a-i<2&&r.hasChildNodes()&&(n=r.childNodes[i]),3===r.nodeType&&3===o.nodeType&&(r=r.length===i?aN(r.nextSibling,!0):r.parentNode,o=0===a?aN(o.previousSibling,!1):o.parentNode,r&&r===o))?r:n&&3===n.nodeType?n.parentNode:n):e},cN=function(e,t,n,r){var o,i,a=[];if(i=e.getRoot(),n=e.getParent(n||oN(i,t,t.collapsed),e.isBlock),r=e.getParent(r||iN(i,t,t.collapsed),e.isBlock),n&&n!==i&&a.push(n),n&&r&&n!==r){o=n;var u=new Qa(n,i);while((o=u.next())&&o!==r)e.isBlock(o)&&a.push(o)}return r&&n!==r&&r!==i&&a.push(r),a},sN=function(e,t,n){return p.from(t).map((function(t){var r=e.nodeIndex(t),o=e.createRng();return o.setStart(t.parentNode,r),o.setEnd(t.parentNode,r+1),n&&(py(e,o,t,!0),py(e,o,t,!1)),o}))},lN=function(e,t,n){if(e&&e.hasOwnProperty(t)){var r=H(e[t],(function(e){return e!==n}));0===r.length?delete e[t]:e[t]=r}};function fN(e,t){var n,r;return{selectorChangedWithUnbind:function(o,i){return n||(n={},r={},t.on("NodeChange",(function(t){var o=t.element,i=e.getParents(o,null,e.getRoot()),a={};Vr.each(n,(function(t,n){Vr.each(i,(function(o){if(e.is(o,n))return r[n]||(Vr.each(t,(function(e){e(!0,{node:o,selector:n,parents:i})})),r[n]=t),a[n]=t,!1}))})),Vr.each(r,(function(e,t){a[t]||(delete r[t],Vr.each(e,(function(e){e(!1,{node:o,selector:t,parents:i})})))}))}))),n[o]||(n[o]=[]),n[o].push(i),{unbind:function(){lN(n,o,i),lN(r,o,i)}}}}}var dN,hN=function(e){return!!e.select},mN=function(e){return!(!e||!e.ownerDocument)&&mn(Ct.fromDom(e.ownerDocument),Ct.fromDom(e))},gN=function(e){return!!e&&(!!hN(e)||mN(e.startContainer)&&mN(e.endContainer))},pN=function(e,t,n,r){var o,i,a,u,c=fN(e,r).selectorChangedWithUnbind,s=function(t,n){var o=e.createRng();t?(o.setStart(t,n),o.setEnd(t,n),C(o),y(!1)):(py(e,o,r.getBody(),!0),C(o))},l=function(e){return Hk.getContent(r,e)},f=function(e,t){return nN.setContent(r,e,t)},d=function(e){return oN(r.getBody(),w(),e)},h=function(e){return iN(r.getBody(),w(),e)},m=function(e,t){return o.getBookmark(e,t)},g=function(e){return o.moveToBookmark(e)},p=function(t,n){return sN(e,t,n).each(C),t},v=function(){var e=w(),t=b();return!(!e||e.item)&&(e.compareEndPoints?0===e.compareEndPoints("StartToEnd",e):!t||e.collapsed)},y=function(e){var t=w();t.collapse(!!e),C(t)},b=function(){return t.getSelection?t.getSelection():t.document.selection},w=function(){var n,o,i,c,s=function(e,t,n){try{return t.compareBoundaryPoints(e,n)}catch(r){return-1}};if(!t)return null;if(c=t.document,"undefined"===typeof c||null===c)return null;if(void 0!==r.bookmark&&!1===Jg.hasFocus(r)){var l=bg.getRng(r);if(l.isSome())return l.map((function(e){return Xz.processRanges(r,[e])[0]})).getOr(c.createRange())}try{(n=b())&&!we.isRestrictedNode(n.anchorNode)&&(o=n.rangeCount>0?n.getRangeAt(0):n.createRange?n.createRange():c.createRange())}catch(f){}return o=Xz.processRanges(r,[o])[0],o||(o=c.createRange?c.createRange():c.body.createTextRange()),o.setStart&&9===o.startContainer.nodeType&&o.collapsed&&(i=e.getRoot(),o.setStart(i,0),o.setEnd(i,0)),a&&u&&(0===s(o.START_TO_START,o,a)&&0===s(o.END_TO_END,o,a)?o=u:(a=null,u=null)),o},C=function(e,t){var n,o,i;if(gN(e)){var c=hN(e)?e:null;if(c){u=null;try{c.select()}catch(s){}}else{if(n=b(),i=r.fire("SetSelectionRange",{range:e,forward:t}),e=i.range,n){u=e;try{n.removeAllRanges(),n.addRange(e)}catch(s){}!1===t&&n.extend&&(n.collapse(e.endContainer,e.endOffset),n.extend(e.startContainer,e.startOffset)),a=n.rangeCount>0?n.getRangeAt(0):null}e.collapsed||e.startContainer!==e.endContainer||!n.setBaseAndExtent||pr.ie||e.endOffset-e.startOffset<2&&e.startContainer.hasChildNodes()&&(o=e.startContainer.childNodes[e.startOffset],o&&"IMG"===o.tagName&&(n.setBaseAndExtent(e.startContainer,e.startOffset,e.endContainer,e.endOffset),n.anchorNode===e.startContainer&&n.focusNode===e.endContainer||n.setBaseAndExtent(o,0,o,1))),r.fire("AfterSetSelectionRange",{range:e,forward:t})}}},x=function(t){return f(e.getOuterHTML(t)),t},E=function(){return uN(r.getBody(),w())},z=function(t,n){return cN(e,w(),t,n)},k=function(){var t,n,r=b();return!(r&&r.anchorNode&&r.focusNode)||(t=e.createRng(),t.setStart(r.anchorNode,r.anchorOffset),t.collapse(!0),n=e.createRng(),n.setStart(r.focusNode,r.focusOffset),n.collapse(!0),t.compareBoundaryPoints(t.START_TO_START,n)<=0)},N=function(){var t=w(),n=b();if(!pk.hasMultipleRanges(n)&&vy(r)){var o=Gk.normalize(e,t);return o.each((function(e){C(e,k())})),o.getOr(t)}return t},S=function(e,t){return c(e,t),M},T=function(){var t,n=e.getRoot();while(n&&"BODY"!==n.nodeName){if(n.scrollHeight>n.clientHeight){t=n;break}n=n.parentNode}return t},A=function(e,t){return Vz.scrollElementIntoView(r,e,t)},R=function(e,t){return C($z.fromPoint(e,t,r.getDoc()))},B=function(){var e=w();return e.collapsed?sl.fromRangeStart(e).getClientRects()[0]:e.getBoundingClientRect()},D=function(){t=a=u=null,i.destroy()},M={bookmarkManager:null,controlSelection:null,dom:e,win:t,serializer:n,editor:r,collapse:y,setCursorLocation:s,getContent:l,setContent:f,getBookmark:m,moveToBookmark:g,select:p,isCollapsed:v,isForward:k,setNode:x,getNode:E,getSel:b,setRng:C,getRng:w,getStart:d,getEnd:h,getSelectedBlocks:z,normalize:N,selectorChanged:S,selectorChangedWithUnbind:c,getScrollContainer:T,scrollIntoView:A,placeCaretAt:R,getBoundingClientRect:B,destroy:D};return o=az(M),i=lz(M,r),M.bookmarkManager=o,M.controlSelection=i,M},vN=we.isText,yN=function(e){return vN(e)&&e.data[0]===qc.ZWSP},bN=function(e){return vN(e)&&e.data[e.data.length-1]===qc.ZWSP},wN=function(e){return e.ownerDocument.createTextNode(qc.ZWSP)},CN=function(e){if(vN(e.previousSibling))return bN(e.previousSibling)||e.previousSibling.appendData(qc.ZWSP),e.previousSibling;if(vN(e))return yN(e)||e.insertData(0,qc.ZWSP),e;var t=wN(e);return e.parentNode.insertBefore(t,e),t},xN=function(e){if(vN(e.nextSibling))return yN(e.nextSibling)||e.nextSibling.insertData(0,qc.ZWSP),e.nextSibling;if(vN(e))return bN(e)||e.appendData(qc.ZWSP),e;var t=wN(e);return e.nextSibling?e.parentNode.insertBefore(t,e.nextSibling):e.parentNode.appendChild(t),t},EN=function(e,t){return e?CN(t):xN(t)},zN=u(EN,!0),kN=u(EN,!1),NN=function(e,t){return we.isText(e.container())?EN(t,e.container()):EN(t,e.getNode())},SN=function(e,t){var n=t.get();return n&&e.container()===n&&Xc(n)},TN=function(e,t){return t.fold((function(t){uf.remove(e.get());var n=zN(t);return e.set(n),p.some(sl(n,n.length-1))}),(function(t){return hd.firstPositionIn(t).map((function(t){if(SN(t,e))return sl(e.get(),1);uf.remove(e.get());var n=NN(t,!0);return e.set(n),sl(n,1)}))}),(function(t){return hd.lastPositionIn(t).map((function(t){if(SN(t,e))return sl(e.get(),e.get().length-1);uf.remove(e.get());var n=NN(t,!1);return e.set(n),sl(n,n.length-1)}))}),(function(t){uf.remove(e.get());var n=kN(t);return e.set(n),p.some(sl(n,1))}))},AN={renderCaret:TN},RN=/[\u0591-\u07FF\uFB1D-\uFDFF\uFE70-\uFEFC]/,BN=function(e){return RN.test(e)},DN=function(e,t){return an(Ct.fromDom(t),zm.getInlineBoundarySelector(e))},MN=function(e){return"rtl"===Bu.DOM.getStyle(e,"direction",!0)||BN(e.textContent)},PN=function(e,t,n){return H(Bu.DOM.getParents(n.container(),"*",t),e)},_N=function(e,t,n){var r=PN(e,t,n);return p.from(r[r.length-1])},ON=function(e,t,n){var r=Nf(t,e),o=Nf(n,e);return r&&r===o},HN=function(e){return Jc(e)||Qc(e)},LN=function(e,t){if(!t)return t;var n=t.container(),r=t.offset();return e?Xc(n)?we.isText(n.nextSibling)?sl(n.nextSibling,0):sl.after(n):Jc(t)?sl(n,r+1):t:Xc(n)?we.isText(n.previousSibling)?sl(n.previousSibling,n.previousSibling.data.length):sl.before(n):Qc(t)?sl(n,r-1):t},IN=u(LN,!0),VN=u(LN,!1),FN={isInlineTarget:DN,findRootInline:_N,isRtl:MN,isAtZwsp:HN,normalizePosition:LN,normalizeForwards:IN,normalizeBackwards:VN,hasSameParentBlock:ON},UN=function(e,t){for(var n=0;n<e.length;n++){var r=e[n].apply(null,t);if(r.isSome())return r}return p.none()},jN={evaluateUntil:UN},qN=Im.generate([{before:["element"]},{start:["element"]},{end:["element"]},{after:["element"]}]),WN=function(e,t){var n=Nf(t,e);return n||e},$N=function(e,t,n){var r=FN.normalizeForwards(n),o=WN(t,r.container());return FN.findRootInline(e,o,r).fold((function(){return hd.nextPosition(o,r).bind(u(FN.findRootInline,e,o)).map((function(e){return qN.before(e)}))}),p.none)},KN=function(e,t){return null===$l(e,t)},XN=function(e,t,n){return FN.findRootInline(e,t,n).filter(u(KN,t))},YN=function(e,t,n){var r=FN.normalizeBackwards(n);return XN(e,t,r).bind((function(e){var t=hd.prevPosition(e,r);return t.isNone()?p.some(qN.start(e)):p.none()}))},GN=function(e,t,n){var r=FN.normalizeForwards(n);return XN(e,t,r).bind((function(e){var t=hd.nextPosition(e,r);return t.isNone()?p.some(qN.end(e)):p.none()}))},ZN=function(e,t,n){var r=FN.normalizeBackwards(n),o=WN(t,r.container());return FN.findRootInline(e,o,r).fold((function(){return hd.prevPosition(o,r).bind(u(FN.findRootInline,e,o)).map((function(e){return qN.after(e)}))}),p.none)},JN=function(e){return!1===FN.isRtl(eS(e))},QN=function(e,t,n){var r=jN.evaluateUntil([$N,YN,GN,ZN],[e,t,n]);return r.filter(JN)},eS=function(e){return e.fold(a,a,a,a)},tS=function(e){return e.fold(i("before"),i("start"),i("end"),i("after"))},nS=function(e){return e.fold(qN.before,qN.before,qN.after,qN.after)},rS=function(e){return e.fold(qN.start,qN.start,qN.end,qN.end)},oS=function(e,t){return tS(e)===tS(t)&&eS(e)===eS(t)},iS=function(e,t,n,r,o,i){return Ps(FN.findRootInline(t,n,r),FN.findRootInline(t,n,o),(function(t,r){return t!==r&&FN.hasSameParentBlock(n,t,r)?qN.after(e?t:r):i})).getOr(i)},aS=function(e,t){return e.fold(i(!0),(function(e){return!oS(e,t)}))},uS=function(e,t,n,r,o){var i=FN.normalizePosition(e,o),a=hd.fromPosition(e,n,i).map(u(FN.normalizePosition,e)),c=a.fold((function(){return r.map(nS)}),(function(o){return QN(t,n,o).map(u(iS,e,t,n,i,o)).filter(u(aS,r))}));return c.filter(JN)},cS=function(e,t){return e?t.fold(o(p.some,qN.start),p.none,o(p.some,qN.after),p.none):t.fold(p.none,o(p.some,qN.before),p.none,o(p.some,qN.end))},sS=function(e,t,n,r){var o=FN.normalizePosition(e,r),i=QN(t,n,o);return QN(t,n,o).bind(u(cS,e)).orThunk((function(){return uS(e,t,n,i,r)}))},lS={readLocation:QN,findLocation:sS,prevLocation:u(sS,!1),nextLocation:u(sS,!0),getElement:eS,outside:nS,inside:rS},fS=function(e){return z(e.selection.getSel().modify)},dS=function(e,t,n){var r=e?1:-1;return t.setRng(sl(n.container(),n.offset()+r).toRange()),t.getSel().modify("move",e?"forward":"backward","word"),!0},hS=function(e,t){var n=t.selection.getRng(),r=e?sl.fromRangeEnd(n):sl.fromRangeStart(n);return!!fS(t)&&(e&&Jc(r)?dS(!0,t.selection,r):!(e||!Qc(r))&&dS(!1,t.selection,r))},mS={hasSelectionModifyApi:fS,moveByWord:hS},gS=function(e,t){var n=e.dom.createRng();n.setStart(t.container(),t.offset()),n.setEnd(t.container(),t.offset()),e.selection.setRng(n)},pS=function(e){return!1!==e.settings.inline_boundaries},vS=function(e,t){e?t.setAttribute("data-mce-selected","inline-boundary"):t.removeAttribute("data-mce-selected")},yS=function(e,t,n){return AN.renderCaret(t,n).map((function(t){return gS(e,t),n}))},bS=function(e,t,n){var r=e.getBody(),o=sl.fromRangeStart(e.selection.getRng()),i=u(FN.isInlineTarget,e),a=lS.findLocation(n,i,r,o);return a.bind((function(n){return yS(e,t,n)}))},wS=function(e,t,n){var r=H(t.select('*[data-mce-selected="inline-boundary"]'),e),o=H(n,e);P($(r,o),u(vS,!1)),P($(o,r),u(vS,!0))},CS=function(e,t){if(e.selection.isCollapsed()&&!0!==e.composing&&t.get()){var n=sl.fromRangeStart(e.selection.getRng());sl.isTextPosition(n)&&!1===FN.isAtZwsp(n)&&(gS(e,uf.removeAndReposition(t.get(),n)),t.set(null))}},xS=function(e,t,n,r){if(t.selection.isCollapsed()){var o=H(r,e);P(o,(function(r){var o=sl.fromRangeStart(t.selection.getRng());lS.readLocation(e,t.getBody(),o).bind((function(e){return yS(t,n,e)}))}))}},ES=function(e,t,n){return function(){return!!pS(e)&&bS(e,t,n).isSome()}},zS=function(e,t,n){return function(){return!!pS(t)&&mS.moveByWord(e,t)}},kS=function(e){var t=Ce(null),n=u(FN.isInlineTarget,e);return e.on("NodeChange",(function(r){pS(e)&&(wS(n,e.dom,r.parents),CS(e,t),xS(n,e,t,r.parents))})),t},NS=u(zS,!0),SS=u(zS,!1),TS={move:ES,moveNextWord:NS,movePrevWord:SS,setupSelectedState:kS,setCaretPosition:gS};(function(e){e[e["Br"]=0]="Br",e[e["Block"]=1]="Block",e[e["Wrap"]=2]="Wrap",e[e["Eol"]=3]="Eol"})(dN||(dN={}));var AS,RS,BS=function(e,t){return e===cl.Backwards?t.reverse():t},DS=function(e,t,n){return e===cl.Forwards?t.next(n):t.prev(n)},MS=function(e,t,n,r){return we.isBr(r.getNode(t===cl.Forwards))?dN.Br:!1===Sf(n,r)?dN.Block:dN.Wrap},PS=function(e,t,n,r){var o,i=Qf(n),a=r,u=[];while(a){if(o=DS(t,i,a),!o)break;if(we.isBr(o.getNode(!1)))return t===cl.Forwards?{positions:BS(t,u).concat([o]),breakType:dN.Br,breakAt:p.some(o)}:{positions:BS(t,u),breakType:dN.Br,breakAt:p.some(o)};if(o.isVisible()){if(e(a,o)){var c=MS(n,t,a,o);return{positions:BS(t,u),breakType:c,breakAt:p.some(o)}}u.push(o),a=o}else a=o}return{positions:BS(t,u),breakType:dN.Eol,breakAt:p.none()}},_S=function(e,t,n,r){return t(n,r).breakAt.map((function(r){var o=t(n,r).positions;return e===cl.Backwards?o.concat(r):[r].concat(o)})).getOr([])},OS=function(e,t){return I(e,(function(e,n){return e.fold((function(){return p.some(n)}),(function(r){return Ps(Y(r.getClientRects()),Y(n.getClientRects()),(function(e,o){var i=Math.abs(t-e.left),a=Math.abs(t-o.left);return a<=i?n:r})).or(e)}))}),p.none())},HS=function(e,t){return Y(t.getClientRects()).bind((function(t){return OS(e,t.left)}))},LS=u(PS,ul.isAbove,-1),IS=u(PS,ul.isBelow,1),VS=function(e,t){return LS(e,t).breakAt.isNone()},FS=function(e,t){return IS(e,t).breakAt.isNone()},US=u(_S,-1,LS),jS=u(_S,1,IS),qS=function(e){return hd.firstPositionIn(e).map((function(t){return[t].concat(IS(e,t).positions)})).getOr([])},WS=function(e){return hd.lastPositionIn(e).map((function(t){return LS(e,t).positions.concat(t)})).getOr([])},$S=we.isContentEditableFalse,KS=Rs,XS=function(e,t,n,r){var o=e===cl.Forwards,i=o?_y:Oy;if(!r.collapsed){var a=KS(r);if($S(a))return Ib(e,t,a,e===cl.Backwards,!0)}var u=as(r),c=Of(e,t.getBody(),r);if(i(c))return Fb(t,c.getNode(!o));var s=FN.normalizePosition(o,n(c));if(!s)return u?r:null;if(i(s))return Ib(e,t,s.getNode(!o),o,!0);var l=n(s);return l&&i(l)&&Vf(s,l)?Ib(e,t,l.getNode(!o),o,!0):u?jb(t,s.toRange(),!0):null},YS=function(e,t,n,r){var o,i,a,u,c,s,l,f,d;if(d=KS(r),o=Of(e,t.getBody(),r),i=n(t.getBody(),$y(1),o),a=H(i,Ky(1)),c=Sr.last(o.getClientRects()),(_y(o)||My(o))&&(d=o.getNode()),(Oy(o)||Py(o))&&(d=o.getNode(!0)),!c)return null;if(s=c.left,u=Qy(a,s),u&&$S(u.node))return l=Math.abs(s-u.left),f=Math.abs(s-u.right),Ib(e,t,u.node,l<f,!0);if(d){var h=Wy(e,t.getBody(),$y(1),d);if(u=Qy(H(h,Ky(1)),s),u)return jb(t,u.position.toRange(),!0);if(u=Sr.last(H(h,Ky(0))),u)return jb(t,u.position.toRange(),!0)}},GS=function(e){var t=e.dom.create(zm.getForcedRootBlock(e));return(!pr.ie||pr.ie>=11)&&(t.innerHTML='<br data-mce-bogus="1">'),t},ZS=function(e,t,n){var r,o,i,a=Qf(e.getBody()),c=u(If,a.next),s=u(If,a.prev);if(n.collapsed&&e.settings.forced_root_block){if(r=e.dom.getParent(n.startContainer,"PRE"),!r)return;o=1===t?c(sl.fromRangeStart(n)):s(sl.fromRangeStart(n)),o||(i=GS(e),1===t?e.$(r).after(i):e.$(r).before(i),e.selection.select(i,!0),e.selection.collapse())}},JS=function(e,t){var n,r=Qf(e.getBody()),o=u(If,r.next),i=u(If,r.prev),a=t?cl.Forwards:cl.Backwards,c=t?o:i,s=e.selection.getRng();return n=XS(a,e,c,s),n||(n=ZS(e,a,s),n||null)},QS=function(e,t){var n,r=t?1:-1,o=t?qy:jy,i=e.selection.getRng();return n=YS(r,e,o,i),n||(n=ZS(e,r,i),n||null)},eT=function(e,t){return function(){var n=JS(e,t);return!!n&&(e.selection.setRng(n),!0)}},tT=function(e,t){return function(){var n=QS(e,t);return!!n&&(e.selection.setRng(n),!0)}},nT=function(e){return function(t){return e?Oy(t):_y(t)}},rT=function(e,t){return function(){var n=t?sl.fromRangeEnd(e.selection.getRng()):sl.fromRangeStart(e.selection.getRng()),r=t?IS(e.getBody(),n):LS(e.getBody(),n),o=t?G(r.positions):Y(r.positions);return o.filter(nT(t)).fold(i(!1),(function(t){return e.selection.setRng(t.toRange()),!0}))}},oT=function(e,t){return{left:e.left-t,top:e.top-t,right:e.right+2*t,bottom:e.bottom+2*t,width:e.width+t,height:e.height+t}},iT=function(e,t){return j(t,(function(t){var n=oT(Es(t.getBoundingClientRect()),-1);return[{x:n.left,y:e(n),cell:t},{x:n.right,y:e(n),cell:t}]}))},aT=function(e,t,n){return I(e,(function(e,r){return e.fold((function(){return p.some(r)}),(function(e){var o=Math.sqrt(Math.abs(e.x-t)+Math.abs(e.y-n)),i=Math.sqrt(Math.abs(r.x-t)+Math.abs(r.y-n));return p.some(i<o?r:e)}))}),p.none())},uT=function(e,t,n,r,o){var i=gc(Ct.fromDom(n),"td,th,caption").map((function(e){return e.dom()})),a=H(iT(e,i),(function(e){return t(e,o)}));return aT(a,r,o).map((function(e){return e.cell}))},cT=function(e){return e.bottom},sT=function(e){return e.top},lT=function(e,t){return e.y<t},fT=function(e,t){return e.y>t},dT=u(uT,cT,lT),hT=u(uT,sT,fT),mT=function(e,t){return Y(t.getClientRects()).bind((function(t){return dT(e,t.left,t.top)})).bind((function(e){return HS(WS(e),t)}))},gT=function(e,t){return G(t.getClientRects()).bind((function(t){return hT(e,t.left,t.top)})).bind((function(e){return HS(qS(e),t)}))},pT=function(e,t){e.selection.setRng(t),Vz.scrollRangeIntoView(e,t)},vT=function(e,t,n){return n.breakAt.map((function(n){return e(t,n).breakAt.isSome()})).getOr(!1)},yT=function(e){return e.breakType===dN.Wrap&&0===e.positions.length},bT=function(e){return e.breakType===dN.Br&&1===e.positions.length},wT=function(e,t,n){var r=e(t,n);return yT(r)||!we.isBr(n.getNode())&&bT(r)?!vT(e,t,r):r.breakAt.isNone()},CT=u(wT,LS),xT=u(wT,IS),ET=function(e,t,n){var r=sl.fromRangeStart(t);return hd.positionIn(!e,n).map((function(e){return e.isEqual(r)})).getOr(!1)},zT=function(e,t,n,r){var o=e.selection.getRng(),i=t?1:-1;if(mf()&&ET(t,o,n)){var a=Ib(i,e,n,!t,!0);return pT(e,a),!0}return!1},kT=function(e,t,n){return mT(t,n).orThunk((function(){return Y(n.getClientRects()).bind((function(n){return OS(US(e,sl.before(t)),n.left)}))})).getOr(sl.before(t))},NT=function(e,t,n){return gT(t,n).orThunk((function(){return Y(n.getClientRects()).bind((function(n){return OS(jS(e,sl.after(t)),n.left)}))})).getOr(sl.after(t))},ST=function(e,t){var n=t.getNode(e);return we.isElement(n)&&"TABLE"===n.nodeName?p.some(n):p.none()},TT=function(e,t,n,r){var o=zm.getForcedRootBlock(t);o?t.undoManager.transact((function(){var r=Ct.fromTag(o);Ut(r,zm.getForcedRootBlockAttrs(t)),ru(r,Ct.fromTag("br")),e?tu(Ct.fromDom(n),r):eu(Ct.fromDom(n),r);var i=t.dom.createRng();i.setStart(r.dom(),0),i.setEnd(r.dom(),0),pT(t,i)})):pT(t,r.toRange())},AT=function(e,t,n){var r=ST(!!t,n),o=!1===t;r.fold((function(){return pT(e,n.toRange())}),(function(r){return hd.positionIn(o,e.getBody()).filter((function(e){return e.isEqual(n)})).fold((function(){return pT(e,n.toRange())}),(function(o){return TT(t,e,r,n)}))}))},RT=function(e,t,n,r){var o=e.selection.getRng(),i=sl.fromRangeStart(o),a=e.getBody();if(!t&&CT(r,i)){var u=kT(a,n,i);return AT(e,t,u),!0}if(t&&xT(r,i)){u=NT(a,n,i);return AT(e,t,u),!0}return!1},BT=function(e,t){return function(){return p.from(e.dom.getParent(e.selection.getNode(),"td,th")).bind((function(n){return p.from(e.dom.getParent(n,"table")).map((function(n){return zT(e,t,n)}))})).getOr(!1)}},DT=function(e,t){return function(){return p.from(e.dom.getParent(e.selection.getNode(),"td,th")).bind((function(n){return p.from(e.dom.getParent(n,"table")).map((function(r){return RT(e,t,r,n)}))})).getOr(!1)}},MT=function(e){return B(["figcaption"],kt(e))},PT=function(e){var t=n.document.createRange();return t.setStartBefore(e.dom()),t.setEndBefore(e.dom()),t},_T=function(e,t,n){n?ru(e,t):nu(e,t)},OT=function(e,t){var n=Ct.fromTag("br");return _T(e,n,t),PT(n)},HT=function(e,t,n,r){var o=Ct.fromTag(n),i=Ct.fromTag("br");return Ut(o,r),ru(o,i),_T(e,o,t),PT(i)},LT=function(e,t,n,r){return""===t?OT(e,r):HT(e,r,t,n)},IT=function(e,t){var n=u(ln,t);return yc(Ct.fromDom(e.container()),no,n).filter(MT)},VT=function(e,t,n){return t?FS(e.dom(),n):VS(e.dom(),n)},FT=function(e,t){var n=Ct.fromDom(e.getBody()),r=sl.fromRangeStart(e.selection.getRng()),o=zm.getForcedRootBlock(e),i=zm.getForcedRootBlockAttrs(e);return IT(r,n).exists((function(){if(VT(n,t,r)){var a=LT(n,o,i,t);return e.selection.setRng(a),!0}return!1}))},UT=function(e,t){return function(){return!!e.selection.isCollapsed()&&FT(e,t)}},jT=function(e){return M(e,(function(e){return Np({shiftKey:!1,altKey:!1,ctrlKey:!1,metaKey:!1,keyCode:0,action:r},e)}))},qT=function(e,t){return t.keyCode===e.keyCode&&t.shiftKey===e.shiftKey&&t.altKey===e.altKey&&t.ctrlKey===e.ctrlKey&&t.metaKey===e.metaKey},WT=function(e,t){return j(jT(e),(function(e){return qT(e,t)?[e]:[]}))},$T=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,r)}},KT=function(e,t){return V(WT(e,t),(function(e){return e.action()}))},XT={match:WT,action:$T,execute:KT},YT=function(e,t,n){var r=gt().os;XT.execute([{keyCode:by.RIGHT,action:eT(e,!0)},{keyCode:by.LEFT,action:eT(e,!1)},{keyCode:by.UP,action:tT(e,!1)},{keyCode:by.DOWN,action:tT(e,!0)},{keyCode:by.RIGHT,action:BT(e,!0)},{keyCode:by.LEFT,action:BT(e,!1)},{keyCode:by.UP,action:DT(e,!1)},{keyCode:by.DOWN,action:DT(e,!0)},{keyCode:by.RIGHT,action:TS.move(e,t,!0)},{keyCode:by.LEFT,action:TS.move(e,t,!1)},{keyCode:by.RIGHT,ctrlKey:!r.isOSX(),altKey:r.isOSX(),action:TS.moveNextWord(e,t)},{keyCode:by.LEFT,ctrlKey:!r.isOSX(),altKey:r.isOSX(),action:TS.movePrevWord(e,t)},{keyCode:by.UP,action:UT(e,!1)},{keyCode:by.DOWN,action:UT(e,!0)}],n).each((function(e){n.preventDefault()}))},GT=function(e,t){e.on("keydown",(function(n){!1===n.isDefaultPrevented()&&YT(e,t,n)}))},ZT={setup:GT},JT=function(e){return function(t){return ln(e,Ct.fromDom(t.dom().parentNode))}},QT=function(e,t){return mn(e,t)?yc(t,(function(e){return ao(e)||co(e)}),JT(e)):p.none()},eA=function(e){var t=e.getBody(),n=t.firstChild&&e.dom.isBlock(t.firstChild)?t.firstChild:t;e.selection.setCursorLocation(n,0)},tA=function(e){e.dom.isEmpty(e.getBody())&&(e.setContent(""),eA(e))},nA=function(e,t,n){return Ps(hd.firstPositionIn(n),hd.lastPositionIn(n),(function(r,o){var i=FN.normalizePosition(!0,r),a=FN.normalizePosition(!1,o),u=FN.normalizePosition(!1,t);return e?hd.nextPosition(n,u).map((function(e){return e.isEqual(a)&&t.isEqual(i)})).getOr(!1):hd.prevPosition(n,u).map((function(e){return e.isEqual(i)&&t.isEqual(a)})).getOr(!1)})).getOr(!0)},rA={getParentBlock:QT,paddEmptyBody:tA,willDeleteLastPositionInElement:nA},oA=function(e,t){return{block:i(e),position:i(t)}},iA=function(e,t){return{from:i(e),to:i(t)}},aA=function(e,t){var n=Ct.fromDom(e),r=Ct.fromDom(t.container());return rA.getParentBlock(n,r).map((function(e){return oA(e,t)}))},uA=function(e){return!1===ln(e.from().block(),e.to().block())},cA=function(e){return yn(e.from().block()).bind((function(t){return yn(e.to().block()).filter((function(e){return ln(t,e)}))})).isSome()},sA=function(e){return!1===we.isContentEditableFalse(e.from().block().dom())&&!1===we.isContentEditableFalse(e.to().block().dom())},lA=function(e,t,n){return we.isBr(n.position().getNode())&&!1===CC.isEmpty(n.block())?hd.positionIn(!1,n.block().dom()).bind((function(r){return r.isEqual(n.position())?hd.fromPosition(t,e,r).bind((function(t){return aA(e,t)})):p.some(n)})).getOr(n):n},fA=function(e,t,n){var r=aA(e,sl.fromRangeStart(n)),o=r.bind((function(n){return hd.fromPosition(t,e,n.position()).bind((function(n){return aA(e,n).map((function(n){return lA(e,t,n)}))}))}));return Ps(r,o,iA).filter((function(e){return uA(e)&&cA(e)&&sA(e)}))},dA=function(e,t,n){return n.collapsed?fA(e,t,n):p.none()},hA={read:dA},mA=function(e){var t=zn(e);return F(t,no).fold((function(){return t}),(function(e){return t.slice(0,e)}))},gA=function(e){var t=mA(e);return P(t,cu),t},pA=function(e,t){var n=ty.parentsAndSelf(t,e);return V(n.reverse(),CC.isEmpty).each(cu)},vA=function(e){return 0===H(xn(e),(function(e){return!CC.isEmpty(e)})).length},yA=function(e,t,n,r){if(CC.isEmpty(n))return $w.fillWithPaddingBr(n),hd.firstPositionIn(n.dom());vA(r)&&CC.isEmpty(t)&&eu(r,Ct.fromTag("br"));var o=hd.prevPosition(n.dom(),sl.before(r.dom()));return P(gA(t),(function(e){eu(r,e)})),pA(e,t),o},bA=function(e,t,n){if(CC.isEmpty(n))return cu(n),CC.isEmpty(t)&&$w.fillWithPaddingBr(t),hd.firstPositionIn(t.dom());var r=hd.lastPositionIn(n.dom());return P(gA(t),(function(e){ru(n,e)})),pA(e,t),r},wA=function(e,t){var n=ty.parentsAndSelf(t,e);return p.from(n[n.length-1])},CA=function(e,t){return mn(t,e)?wA(t,e):p.none()},xA=function(e,t){hd.positionIn(e,t.dom()).map((function(e){return e.getNode()})).map(Ct.fromDom).filter(io).each(cu)},EA=function(e,t,n){return xA(!0,t),xA(!1,n),CA(t,n).fold(u(bA,e,t,n),u(yA,e,t,n))},zA=function(e,t,n,r){return t?EA(e,r,n):EA(e,n,r)},kA={mergeBlocks:zA},NA=function(e,t){var n=Ct.fromDom(e.getBody()),r=hA.read(n.dom(),t,e.selection.getRng()).bind((function(e){return kA.mergeBlocks(n,t,e.from().block(),e.to().block())}));return r.each((function(t){e.selection.setRng(t.toRange())})),r.isSome()},SA={backspaceDelete:NA},TA=function(e,t){var n=t.getRng();return Ps(rA.getParentBlock(e,Ct.fromDom(n.startContainer)),rA.getParentBlock(e,Ct.fromDom(n.endContainer)),(function(r,o){return!1===ln(r,o)&&(n.deleteContents(),kA.mergeBlocks(e,!0,r,o).each((function(e){t.setRng(e.toRange())})),!0)})).getOr(!1)},AA=function(e,t){var n=Ct.fromDom(t),r=u(ln,e);return vc(n,fo,r).isSome()},RA=function(e,t){return AA(e,t.startContainer)||AA(e,t.endContainer)},BA=function(e,t){var n=hd.prevPosition(e.dom(),sl.fromRangeStart(t)).isNone(),r=hd.nextPosition(e.dom(),sl.fromRangeEnd(t)).isNone();return!RA(e,t)&&n&&r},DA=function(e){return e.setContent(""),e.selection.setCursorLocation(),!0},MA=function(e){var t=Ct.fromDom(e.getBody()),n=e.selection.getRng();return BA(t,n)?DA(e):TA(t,e.selection)},PA=function(e,t){return!e.selection.isCollapsed()&&MA(e)},_A={backspaceDelete:PA},OA=function(e){return Hf(e).exists(io)},HA=function(e,t,n){var r=H(ty.parentsAndSelf(Ct.fromDom(n.container()),t),no),o=Y(r).getOr(t);return hd.fromPosition(e,o.dom(),n).filter(OA)},LA=function(e,t){return Hf(t).exists(io)||HA(!0,e,t).isSome()},IA=function(e,t){return Lf(t).exists(io)||HA(!1,e,t).isSome()},VA=u(HA,!1),FA=u(HA,!0),UA=function(e){return fo(Ct.fromDom(e))||co(Ct.fromDom(e))},jA=Im.generate([{remove:["element"]},{moveToElement:["element"]},{moveToPosition:["position"]}]),qA=function(e,t){var n=t.getNode(!1===e),r=e?"after":"before";return we.isElement(n)&&n.getAttribute("data-mce-caret")===r},WA=function(e,t,n,r){var o=function(t){return oo(Ct.fromDom(t))&&!Sf(n,r,e)};return _f(!t,n).fold((function(){return _f(t,r).fold(i(!1),o)}),o)},$A=function(e,t,n,r){var o=r.getNode(!1===t);return rA.getParentBlock(Ct.fromDom(e),Ct.fromDom(n.getNode())).map((function(e){return CC.isEmpty(e)?jA.remove(e.dom()):jA.moveToElement(o)})).orThunk((function(){return p.some(jA.moveToElement(o))}))},KA=function(e,t,n){return hd.fromPosition(t,e,n).bind((function(r){return UA(r.getNode())||WA(e,t,n,r)?p.none():t&&we.isContentEditableFalse(r.getNode())||!1===t&&we.isContentEditableFalse(r.getNode(!0))?$A(e,t,n,r):t&&Oy(n)||!1===t&&_y(n)?p.some(jA.moveToPosition(r)):p.none()}))},XA=function(e,t){return e&&we.isContentEditableFalse(t.nextSibling)?p.some(jA.moveToElement(t.nextSibling)):!1===e&&we.isContentEditableFalse(t.previousSibling)?p.some(jA.moveToElement(t.previousSibling)):p.none()},YA=function(e,t,n){return n.fold((function(e){return p.some(jA.remove(e))}),(function(e){return p.some(jA.moveToElement(e))}),(function(n){return Sf(t,n,e)?p.none():p.some(jA.moveToPosition(n))}))},GA=function(e,t,n){return qA(t,n)?XA(t,n.getNode(!1===t)).fold((function(){return KA(e,t,n)}),p.some):KA(e,t,n).bind((function(t){return YA(e,n,t)}))},ZA=function(e,t,n){var r=Pf(t?1:-1,e,n),o=sl.fromRangeStart(r),i=Ct.fromDom(e);return!1===t&&Oy(o)?p.some(jA.remove(o.getNode(!0))):t&&_y(o)?p.some(jA.remove(o.getNode())):!1===t&&_y(o)&&IA(i,o)?VA(i,o).map((function(e){return jA.remove(e.getNode())})):t&&Oy(o)&&LA(i,o)?FA(i,o).map((function(e){return jA.remove(e.getNode())})):GA(e,t,o)},JA=function(e,t){return function(n){return e._selectionOverrides.hideFakeCaret(),FC.deleteElement(e,t,Ct.fromDom(n)),!0}},QA=function(e,t){return function(n){var r=t?sl.before(n):sl.after(n);return e.selection.setRng(r.toRange()),!0}},eR=function(e){return function(t){return e.selection.setRng(t.toRange()),!0}},tR=function(e,t){return p.from(iR(e.getBody(),t))},nR=function(e,t){var n=e.selection.getNode();return tR(e,n).filter(we.isContentEditableFalse).fold((function(){var n=ZA(e.getBody(),t,e.selection.getRng()).map((function(n){return n.fold(JA(e,t),QA(e,t),eR(e))}));return n.getOr(!1)}),(function(){return!0}))},rR=function(e){P(gc(e,".mce-offscreen-selection"),cu)},oR=function(e,t){var n=e.selection.getNode();if(we.isContentEditableFalse(n)){var r=tR(e,n.parentNode).filter(we.isContentEditableFalse);return r.fold((function(){return rR(Ct.fromDom(e.getBody())),FC.deleteElement(e,t,Ct.fromDom(e.selection.getNode())),rA.paddEmptyBody(e),!0}),(function(){return!0}))}return!1},iR=function(e,t){while(t&&t!==e){if(we.isContentEditableTrue(t)||we.isContentEditableFalse(t))return t;t=t.parentNode}return null},aR=function(e){var t,n=iR(e.getBody(),e.selection.getNode());return we.isContentEditableTrue(n)&&e.dom.isBlock(n)&&e.dom.isEmpty(n)&&(t=e.dom.create("br",{"data-mce-bogus":"1"}),e.dom.setHTML(n,""),n.appendChild(t),e.selection.setRng(sl.before(t).toRange())),!0},uR=function(e,t){return e.selection.isCollapsed()?nR(e,t):oR(e,t)},cR={backspaceDelete:uR,paddEmptyElement:aR},sR=function(e,t){we.isText(t)&&0===t.data.length&&e.remove(t)},lR=function(e,t,n,r,o,i){var a=Ib(r,e,i.getNode(!o),o,!0);if(t.collapsed){var u=t.cloneRange();o?u.setEnd(a.startContainer,a.startOffset):u.setStart(a.endContainer,a.endOffset),u.deleteContents()}else t.deleteContents();return e.selection.setRng(a),sR(e.dom,n),!0},fR=function(e,t){var n=e.selection.getRng();if(!we.isText(n.commonAncestorContainer))return!1;var r=t?cl.Forwards:cl.Backwards,o=Qf(e.getBody()),i=u(If,o.next),a=u(If,o.prev),c=t?i:a,s=t?_y:Oy,l=Of(r,e.getBody(),n),f=FN.normalizePosition(t,c(l));if(!f)return!1;if(s(f))return lR(e,n,l.getNode(),r,t,f);var d=c(f);return!!(d&&s(d)&&Vf(f,d))&&lR(e,n,l.getNode(),r,t,d)},dR=function(e,t){return fR(e,t)},hR={backspaceDelete:dR},mR=function(e){return!1!==e.settings.inline_boundaries},gR=function(e,t){var r=n.document.createRange();return r.setStart(e.container(),e.offset()),r.setEnd(t.container(),t.offset()),r},pR=function(e){return Ps(hd.firstPositionIn(e),hd.lastPositionIn(e),(function(t,n){var r=FN.normalizePosition(!0,t),o=FN.normalizePosition(!1,n);return hd.nextPosition(e,r).map((function(e){return e.isEqual(o)})).getOr(!0)})).getOr(!0)},vR=function(e,t){return function(n){return AN.renderCaret(t,n).map((function(t){return TS.setCaretPosition(e,t),!0})).getOr(!1)}},yR=function(e,t,n,r){var o=e.getBody(),i=u(FN.isInlineTarget,e);e.undoManager.ignore((function(){e.selection.setRng(gR(n,r)),e.execCommand("Delete"),lS.readLocation(i,o,sl.fromRangeStart(e.selection.getRng())).map(lS.inside).map(vR(e,t))})),e.nodeChanged()},bR=function(e,t){var n=Nf(t,e);return n||e},wR=function(e,t,n,r){var o=bR(e.getBody(),r.container()),a=u(FN.isInlineTarget,e),c=lS.readLocation(a,o,r);return c.bind((function(e){return n?e.fold(i(p.some(lS.inside(e))),p.none,i(p.some(lS.outside(e))),p.none):e.fold(p.none,i(p.some(lS.outside(e))),p.none,i(p.some(lS.inside(e))))})).map(vR(e,t)).getOrThunk((function(){var i=hd.navigate(n,o,r),u=i.bind((function(e){return lS.readLocation(a,o,e)}));return c.isSome()&&u.isSome()?FN.findRootInline(a,o,r).map((function(t){return!!pR(t)&&(FC.deleteElement(e,n,Ct.fromDom(t)),!0)})).getOr(!1):u.bind((function(o){return i.map((function(o){return n?yR(e,t,r,o):yR(e,t,o,r),!0}))})).getOr(!1)}))},CR=function(e,t,n){if(e.selection.isCollapsed()&&mR(e)){var r=sl.fromRangeStart(e.selection.getRng());return wR(e,t,n,r)}return!1},xR={backspaceDelete:CR},ER=function(e,t){var n=ty.parentsAndSelf(t,e);return F(n,no).fold(i(n),(function(e){return n.slice(0,e)}))},zR=function(e){return 1===zn(e).length},kR=function(e,t,n,r){var o=u(ax,t),i=M(H(r,o),(function(e){return e.dom()}));if(0===i.length)FC.deleteElement(t,e,n);else{var a=ix(n.dom(),i);t.selection.setRng(a.toRange())}},NR=function(e,t){var n=Ct.fromDom(e.getBody()),r=Ct.fromDom(e.selection.getStart()),o=H(ER(n,r),zR);return G(o).map((function(n){var r=sl.fromRangeStart(e.selection.getRng());return!(!rA.willDeleteLastPositionInElement(t,r,n.dom())||ux(n))&&(kR(t,e,n,o),!0)})).getOr(!1)},SR=function(e,t){return!!e.selection.isCollapsed()&&NR(e,t)},TR={backspaceDelete:SR},AR=function(e,t){return{start:i(e),end:i(t)}},RR=function(e,t,n){return{rng:i(e),table:i(t),cells:i(n)}},BR=Im.generate([{removeTable:["element"]},{emptyCells:["cells"]}]),DR=function(e){return function(t){return ln(e,t)}},MR=function(e,t){return Cc(Ct.fromDom(e),"td,th",t)},PR=function(e,t){return bc(e,"table",t)},_R=function(e){return!1===ln(e.start(),e.end())},OR=function(e,t){return PR(e.start(),t).bind((function(n){return PR(e.end(),t).bind((function(e){return Os(ln(n,e),n)}))}))},HR=function(e){return gc(e,"td,th")},LR=function(e,t){return PR(e.start(),t).bind((function(t){return G(HR(t)).map((function(t){return AR(e.start(),t)}))}))},IR=function(e,t){var n=MR(t.startContainer,e),r=MR(t.endContainer,e);return t.collapsed?p.none():Ps(n,r,AR).fold((function(){return n.fold((function(){return r.bind((function(t){return PR(t,e).bind((function(e){return Y(HR(e)).map((function(e){return AR(e,t)}))}))}))}),(function(t){return PR(t,e).bind((function(e){return G(HR(e)).map((function(e){return AR(t,e)}))}))}))}),(function(t){return VR(e,t)?p.none():LR(t,e)}))},VR=function(e,t){return OR(t,e).isSome()},FR=function(e,t){var n=MR(e.startContainer,t),r=MR(e.endContainer,t);return Ps(n,r,AR).filter(_R).filter((function(e){return VR(t,e)})).orThunk((function(){return IR(t,e)}))},UR=function(e,t){return OR(e,t).map((function(t){return RR(e,t,HR(t))}))},jR=function(e,t){var n=DR(e);return FR(t,n).bind((function(e){return UR(e,n)}))},qR=function(e,t){return F(e,(function(e){return ln(e,t)}))},WR=function(e){return Ps(qR(e.cells(),e.rng().start()),qR(e.cells(),e.rng().end()),(function(t,n){return e.cells().slice(t,n+1)}))},$R=function(e){return WR(e).map((function(t){var n=e.cells();return t.length===n.length?BR.removeTable(e.table()):BR.emptyCells(t)}))},KR=function(e,t){return jR(e,t).bind($R)},XR=function(e,t){return P(t,$w.fillWithPaddingBr),e.selection.setCursorLocation(t[0].dom(),0),!0},YR=function(e,t){return FC.deleteElement(e,!1,t),!0},GR=function(e,t,n){return KR(t,n).map((function(t){return t.fold(u(YR,e),u(XR,e))}))},ZR=function(e,t){return rB(e,t)},JR=function(e,t,n,r){return tB(t,r).fold((function(){return GR(e,t,n)}),(function(t){return ZR(e,t)})).getOr(!1)},QR=function(e,t){var n=Ct.fromDom(e.getBody()),r=e.selection.getRng(),o=Ck.getCellsFromEditor(e);return 0!==o.length?XR(e,o):JR(e,n,r,t)},eB=function(e,t){return V(ty.parentsAndSelf(t,e),fo)},tB=function(e,t){return V(ty.parentsAndSelf(t,e),(function(e){return"caption"===kt(e)}))},nB=function(e,t,n,r,o){return hd.navigate(n,e.getBody(),o).bind((function(e){return eB(t,Ct.fromDom(e.getNode())).map((function(e){return!1===ln(e,r)}))}))},rB=function(e,t){return $w.fillWithPaddingBr(t),e.selection.setCursorLocation(t.dom(),0),p.some(!0)},oB=function(e,t,n,r){return hd.firstPositionIn(e.dom()).bind((function(o){return hd.lastPositionIn(e.dom()).map((function(e){return t?n.isEqual(o)&&r.isEqual(e):n.isEqual(e)&&r.isEqual(o)}))})).getOr(!0)},iB=function(e,t){return rB(e,t)},aB=function(e,t,n){return tB(e,Ct.fromDom(n.getNode())).map((function(e){return!1===ln(e,t)}))},uB=function(e,t,n,r,o){return hd.navigate(n,e.getBody(),o).bind((function(i){return oB(r,n,o,i)?iB(e,r):aB(t,r,i)})).or(p.some(!0))},cB=function(e,t,n,r){var o=sl.fromRangeStart(e.selection.getRng());return eB(n,r).bind((function(r){return CC.isEmpty(r)?rB(e,r):nB(e,n,t,r,o)})).getOr(!1)},sB=function(e,t,n,r){var o=sl.fromRangeStart(e.selection.getRng());return CC.isEmpty(r)?rB(e,r):uB(e,n,t,r,o)},lB=function(e,t){return e?My(t):Py(t)},fB=function(e,t){var n=sl.fromRangeStart(e.selection.getRng());return lB(t,n)||hd.fromPosition(t,e.getBody(),n).map((function(e){return lB(t,e)})).getOr(!1)},dB=function(e,t,n){var r=Ct.fromDom(e.getBody());return tB(r,n).fold((function(){return cB(e,t,r,n)||fB(e,t)}),(function(n){return sB(e,t,r,n).getOr(!1)}))},hB=function(e,t){var n=Ct.fromDom(e.selection.getStart(!0)),r=Ck.getCellsFromEditor(e);return e.selection.isCollapsed()&&0===r.length?dB(e,t,n):QR(e,n)},mB={backspaceDelete:hB},gB=function(e,t){var n=sl.fromRangeStart(e.selection.getRng());return hd.fromPosition(t,e.getBody(),n).filter((function(e){return t?By(e):Dy(e)})).bind((function(e){return p.from(Tf(t?0:-1,e))})).map((function(t){return e.selection.select(t),!0})).getOr(!1)},pB=function(e,t){return!!e.selection.isCollapsed()&&gB(e,t)},vB={backspaceDelete:pB},yB=function(e){return yc(e,(function(e){return we.isContentEditableTrue(e.dom())||we.isContentEditableFalse(e.dom())})).exists((function(e){return we.isContentEditableTrue(e.dom())}))},bB=function(e){var t=parseInt(e,10);return isNaN(t)?0:t},wB=function(e,t){var n=e||ro(t)?"margin":"padding",r="rtl"===$t(t,"direction")?"-right":"-left";return n+r},CB=function(e,t,n,r,o,i){var a=wB(n,Ct.fromDom(i));if("outdent"===t){var u=Math.max(0,bB(i.style[a])-r);e.setStyle(i,a,u?u+o:"")}else{u=bB(i.style[a])+r+o;e.setStyle(i,a,u)}},xB=function(e,t){return q(t,(function(t){var n=wB(zm.shouldIndentUseMargin(e),t),r=Xt(t,n).map(bB).getOr(0),o=e.dom.getContentEditable(t.dom());return"false"!==o&&r>0}))},EB=function(e){var t=NB(e);return!0!==e.readonly&&(t.length>1||xB(e,t))},zB=function(e){return uo(e)||co(e)},kB=function(e){return yn(e).map(zB).getOr(!1)},NB=function(e){return H(M(e.selection.getSelectedBlocks(),Ct.fromDom),(function(e){return!zB(e)&&!kB(e)&&yB(e)}))},SB=function(e,t){var n=e.dom,r=e.selection,o=e.formatter,i=zm.getIndentation(e),a=/[a-z%]+$/i.exec(i)[0],u=parseInt(i,10),c=zm.shouldIndentUseMargin(e),s=zm.getForcedRootBlock(e);e.queryCommandState("InsertUnorderedList")||e.queryCommandState("InsertOrderedList")||""!==s||n.getParent(r.getNode(),n.isBlock)||o.apply("div"),P(NB(e),(function(e){CB(n,t,c,u,a,e.dom())}))},TB=function(e,t,n){return hd.navigateIgnore(e,t,n,Sy)},AB=function(e,t){return V(ty.parentsAndSelf(Ct.fromDom(t.container()),e),no)},RB=function(e,t,n){return TB(e,t.dom(),n).forall((function(e){return AB(t,n).fold((function(){return!1===Sf(e,n,t.dom())}),(function(r){return!1===Sf(e,n,t.dom())&&mn(r,Ct.fromDom(e.container()))}))}))},BB=function(e,t,n){return AB(t,n).fold((function(){return TB(e,t.dom(),n).forall((function(e){return!1===Sf(e,n,t.dom())}))}),(function(t){return TB(e,t.dom(),n).isNone()}))},DB=u(BB,!1),MB=u(BB,!0),PB=u(RB,!1),_B=u(RB,!0),OB=function(e,t,n){if(e.selection.isCollapsed()&&EB(e)){var r=e.dom,o=e.selection.getRng(),i=sl.fromRangeStart(o),a=r.getParent(o.startContainer,r.isBlock);if(null!==a&&DB(Ct.fromDom(a),i))return SB(e,"outdent"),!0}return!1},HB={backspaceDelete:OB},LB=function(e,t,n){XT.execute([{keyCode:by.BACKSPACE,action:XT.action(HB.backspaceDelete,e,!1)},{keyCode:by.BACKSPACE,action:XT.action(cR.backspaceDelete,e,!1)},{keyCode:by.DELETE,action:XT.action(cR.backspaceDelete,e,!0)},{keyCode:by.BACKSPACE,action:XT.action(hR.backspaceDelete,e,!1)},{keyCode:by.DELETE,action:XT.action(hR.backspaceDelete,e,!0)},{keyCode:by.BACKSPACE,action:XT.action(xR.backspaceDelete,e,t,!1)},{keyCode:by.DELETE,action:XT.action(xR.backspaceDelete,e,t,!0)},{keyCode:by.BACKSPACE,action:XT.action(mB.backspaceDelete,e,!1)},{keyCode:by.DELETE,action:XT.action(mB.backspaceDelete,e,!0)},{keyCode:by.BACKSPACE,action:XT.action(vB.backspaceDelete,e,!1)},{keyCode:by.DELETE,action:XT.action(vB.backspaceDelete,e,!0)},{keyCode:by.BACKSPACE,action:XT.action(_A.backspaceDelete,e,!1)},{keyCode:by.DELETE,action:XT.action(_A.backspaceDelete,e,!0)},{keyCode:by.BACKSPACE,action:XT.action(SA.backspaceDelete,e,!1)},{keyCode:by.DELETE,action:XT.action(SA.backspaceDelete,e,!0)},{keyCode:by.BACKSPACE,action:XT.action(TR.backspaceDelete,e,!1)},{keyCode:by.DELETE,action:XT.action(TR.backspaceDelete,e,!0)}],n).each((function(e){n.preventDefault()}))},IB=function(e,t){XT.execute([{keyCode:by.BACKSPACE,action:XT.action(cR.paddEmptyElement,e)},{keyCode:by.DELETE,action:XT.action(cR.paddEmptyElement,e)}],t)},VB=function(e,t){e.on("keydown",(function(n){!1===n.isDefaultPrevented()&&LB(e,t,n)})),e.on("keyup",(function(t){!1===t.isDefaultPrevented()&&IB(e,t)}))},FB={setup:VB},UB=function(e){while(e){if(1===e.nodeType||3===e.nodeType&&e.data&&/[\r\n\s]/.test(e.data))return e;e=e.nextSibling}},jB=function(e,t){var n,r,o=t,i=e.dom,a=e.schema.getMoveCaretBeforeOnEnterElements();if(t){if(/^(LI|DT|DD)$/.test(t.nodeName)){var u=UB(t.firstChild);u&&/^(UL|OL|DL)$/.test(u.nodeName)&&t.insertBefore(i.doc.createTextNode(" "),t.firstChild)}if(r=i.createRng(),t.normalize(),t.hasChildNodes()){var c=new Qa(t,t);while(n=c.current()){if(we.isText(n)){r.setStart(n,0),r.setEnd(n,0);break}if(a[n.nodeName.toLowerCase()]){r.setStartBefore(n),r.setEndBefore(n);break}o=n,n=c.next()}n||(r.setStart(o,0),r.setEnd(o,0))}else we.isBr(t)?t.nextSibling&&i.isBlock(t.nextSibling)?(r.setStartBefore(t),r.setEndBefore(t)):(r.setStartAfter(t),r.setEndAfter(t)):(r.setStart(t,0),r.setEnd(t,0));e.selection.setRng(r),e.selection.scrollIntoView(t)}},qB=function(e,t){var n,r,o=e.getRoot();n=t;while(n!==o&&"false"!==e.getContentEditable(n))"true"===e.getContentEditable(n)&&(r=n),n=n.parentNode;return n!==o?r:o},WB=function(e){return p.from(e.dom.getParent(e.selection.getStart(!0),e.dom.isBlock))},$B=function(e){return WB(e).fold(i(""),(function(e){return e.nodeName.toUpperCase()}))},KB=function(e){return WB(e).filter((function(e){return co(Ct.fromDom(e))})).isSome()},XB={moveToCaretPosition:jB,getEditableRoot:qB,getParentBlock:WB,getParentBlockName:$B,isListItemParentBlock:KB},YB=function(e,t){return e.firstChild&&e.firstChild.nodeName===t},GB=function(e,t){return e&&e.parentNode&&e.parentNode.nodeName===t},ZB=function(e){return e&&/^(OL|UL|LI)$/.test(e.nodeName)},JB=function(e){return ZB(e)&&ZB(e.parentNode)},QB=function(e){var t=e.parentNode;return/^(LI|DT|DD)$/.test(t.nodeName)?t:e},eD=function(e,t,n){var r=e[n?"firstChild":"lastChild"];while(r){if(we.isElement(r))break;r=r[n?"nextSibling":"previousSibling"]}return r===t},tD=function(e,t,n,r,o){var i=e.dom,a=e.selection.getRng();if(n!==e.getBody()){JB(n)&&(o="LI");var u=o?t(o):i.create("BR");if(eD(n,r,!0)&&eD(n,r,!1))GB(n,"LI")?i.insertAfter(u,QB(n)):i.replace(u,n);else if(eD(n,r,!0))GB(n,"LI")?(i.insertAfter(u,QB(n)),u.appendChild(i.doc.createTextNode(" ")),u.appendChild(n)):n.parentNode.insertBefore(u,n);else if(eD(n,r,!1))i.insertAfter(u,QB(n));else{n=QB(n);var c=a.cloneRange();c.setStartAfter(r),c.setEndAfter(n);var s=c.extractContents();"LI"===o&&YB(s,"LI")?(u=s.firstChild,i.insertAfter(s,n)):(i.insertAfter(s,n),i.insertAfter(u,n))}i.remove(r),XB.moveToCaretPosition(e,u)}},nD={insert:tD},rD=function(e){P(mc(Ct.fromDom(e),At),(function(e){var t=e.dom();t.nodeValue=qc.trim(t.nodeValue)}))},oD=function(e,t){return t&&"A"===t.nodeName&&e.isEmpty(t)},iD=function(e){return e&&/^(TD|TH|CAPTION)$/.test(e.nodeName)},aD=function(e){e.innerHTML='<br data-mce-bogus="1">'},uD=function(e,t){return e.nodeName===t||e.previousSibling&&e.previousSibling.nodeName===t},cD=function(e,t){return t&&e.isBlock(t)&&!/^(TD|TH|CAPTION|FORM)$/.test(t.nodeName)&&!/^(fixed|absolute)/i.test(t.style.position)&&"true"!==e.getContentEditable(t)},sD=function(e,t,n){var r,o=n,i=[];if(o){while(o=o.firstChild){if(e.isBlock(o))return;we.isElement(o)&&!t[o.nodeName.toLowerCase()]&&i.push(o)}r=i.length;while(r--)o=i[r],(!o.hasChildNodes()||o.firstChild===o.lastChild&&""===o.firstChild.nodeValue||oD(e,o))&&e.remove(o)}},lD=function(e,t,n){return!1===we.isText(t)?n:e?1===n&&t.data.charAt(n-1)===qc.ZWSP?0:n:n===t.data.length-1&&t.data.charAt(n)===qc.ZWSP?t.data.length:n},fD=function(e){var t=e.cloneRange();return t.setStart(e.startContainer,lD(!0,e.startContainer,e.startOffset)),t.setEnd(e.endContainer,lD(!1,e.endContainer,e.endOffset)),t},dD=function(e){do{we.isText(e)&&(e.nodeValue=e.nodeValue.replace(/^[\r\n]+/,"")),e=e.firstChild}while(e)},hD=function(e,t){var n,r,o=e.getRoot();n=t;while(n!==o&&"false"!==e.getContentEditable(n))"true"===e.getContentEditable(n)&&(r=n),n=n.parentNode;return n!==o?r:o},mD=function(e,t){var n=zm.getForcedRootBlock(e);n&&n.toLowerCase()===t.tagName.toLowerCase()&&e.dom.setAttribs(t,zm.getForcedRootBlockAttrs(e))},gD=function(e,t,n,r,o){var i,a,u,c,s,l,f=t||"P",d=e.dom,h=hD(d,r);if(a=d.getParent(r,d.isBlock),!a||!cD(d,a)){if(a=a||h,l=a===e.getBody()||iD(a)?a.nodeName.toLowerCase():a.parentNode.nodeName.toLowerCase(),!a.hasChildNodes())return i=d.create(f),mD(e,i),a.appendChild(i),n.setStart(i,0),n.setEnd(i,0),i;c=r;while(c.parentNode!==a)c=c.parentNode;while(c&&!d.isBlock(c))u=c,c=c.previousSibling;if(u&&e.schema.isValidChild(l,f.toLowerCase())){i=d.create(f),mD(e,i),u.parentNode.insertBefore(i,u),c=u;while(c&&!d.isBlock(c))s=c.nextSibling,i.appendChild(c),c=s;n.setStart(r,o),n.setEnd(r,o)}}return r},pD=function(e,t){var n;t.normalize(),n=t.lastChild,n&&!/^(left|right)$/gi.test(e.getStyle(n,"float",!0))||e.add(t,"br")},vD=function(e,t){var n,r,o,i,a,u,c,s,l,f,d,h,m,g=e.dom,p=e.schema,v=p.getNonEmptyElements(),y=e.selection.getRng(),b=function(t){var n,i,u,c=o,s=p.getTextInlineElements();if(t||"TABLE"===f||"HR"===f?(n=g.create(t||h),mD(e,n)):n=a.cloneNode(!1),u=n,!1===zm.shouldKeepStyles(e))g.setAttrib(n,"style",null),g.setAttrib(n,"class",null);else do{if(s[c.nodeName]){if(Wl(c)||Od.isBookmarkNode(c))continue;i=c.cloneNode(!1),g.setAttrib(i,"id",""),n.hasChildNodes()?(i.appendChild(n.firstChild),n.appendChild(i)):(u=i,n.appendChild(i))}}while((c=c.parentNode)&&c!==r);return aD(u),n},w=function(e){var t,n,r=lD(e,o,i);if(we.isText(o)&&(e?r>0:r<o.nodeValue.length))return!1;if(o.parentNode===a&&m&&!e)return!0;if(e&&we.isElement(o)&&o===a.firstChild)return!0;if(uD(o,"TABLE")||uD(o,"HR"))return m&&!e||!m&&e;var u=new Qa(o,a);we.isText(o)&&(e&&0===r?u.prev():e||r!==o.nodeValue.length||u.next());while(t=u.current()){if(we.isElement(t)){if(!t.getAttribute("data-mce-bogus")&&(n=t.nodeName.toLowerCase(),v[n]&&"br"!==n))return!1}else if(we.isText(t)&&!/^[ \t\r\n]*$/.test(t.nodeValue))return!1;e?u.prev():u.next()}return!0},C=function(){c=/^(H[1-6]|PRE|FIGURE)$/.test(f)&&"HGROUP"!==d?b(h):b(),zm.shouldEndContainerOnEmptyBlock(e)&&cD(g,l)&&g.isEmpty(a)?c=g.split(l,a):g.insertAfter(c,a),XB.moveToCaretPosition(e,c)};Gk.normalize(g,y).each((function(e){y.setStart(e.startContainer,e.startOffset),y.setEnd(e.endContainer,e.endOffset)})),o=y.startContainer,i=y.startOffset,h=zm.getForcedRootBlock(e),u=!(!t||!t.shiftKey);var x=!(!t||!t.ctrlKey);we.isElement(o)&&o.hasChildNodes()&&(m=i>o.childNodes.length-1,o=o.childNodes[Math.min(i,o.childNodes.length-1)]||o,i=m&&we.isText(o)?o.nodeValue.length:0),r=hD(g,o),r&&((h&&!u||!h&&u)&&(o=gD(e,h,y,o,i)),a=g.getParent(o,g.isBlock),l=a?g.getParent(a.parentNode,g.isBlock):null,f=a?a.nodeName.toUpperCase():"",d=l?l.nodeName.toUpperCase():"","LI"!==d||x||(a=l,l=l.parentNode,f=d),/^(LI|DT|DD)$/.test(f)&&g.isEmpty(a)?nD.insert(e,b,l,a,h):h&&a===e.getBody()||(h=h||"P",Kc(a)?(c=is(a),g.isEmpty(a)&&aD(a),XB.moveToCaretPosition(e,c)):w()?C():w(!0)?(c=a.parentNode.insertBefore(b(),a),XB.moveToCaretPosition(e,uD(a,"HR")?c:a)):(n=fD(y).cloneRange(),n.setEndAfter(a),s=n.extractContents(),rD(s),dD(s),c=s.firstChild,g.insertAfter(s,a),sD(g,v,c),pD(g,a),g.isEmpty(a)&&aD(a),c.normalize(),g.isEmpty(c)?(g.remove(c),C()):XB.moveToCaretPosition(e,c)),g.setAttrib(c,"id",""),e.fire("NewBlock",{newBlock:c})))},yD={insert:vD},bD=function(e,t,n){var r,o=new Qa(t,n),i=e.getNonEmptyElements();while(r=o.next())if(i[r.nodeName.toLowerCase()]||r.length>0)return!0},wD=function(e,t,n){var r=e.create("span",{}," ");n.parentNode.insertBefore(r,n),t.scrollIntoView(r),e.remove(r)},CD=function(e,t,n,r){var o=e.createRng();r?(o.setStartBefore(n),o.setEndBefore(n)):(o.setStartAfter(n),o.setEndAfter(n)),t.setRng(o)},xD=function(e,t){var n,r,o=e.selection,i=e.dom,a=o.getRng();Gk.normalize(i,a).each((function(e){a.setStart(e.startContainer,e.startOffset),a.setEnd(e.endContainer,e.endOffset)}));var u=a.startOffset,c=a.startContainer;if(1===c.nodeType&&c.hasChildNodes()){var s=u>c.childNodes.length-1;c=c.childNodes[Math.min(u,c.childNodes.length-1)]||c,u=s&&3===c.nodeType?c.nodeValue.length:0}var l=i.getParent(c,i.isBlock),f=l?i.getParent(l.parentNode,i.isBlock):null,d=f?f.nodeName.toUpperCase():"",h=!(!t||!t.ctrlKey);"LI"!==d||h||(l=f),c&&3===c.nodeType&&u>=c.nodeValue.length&&(bD(e.schema,c,l)||(n=i.create("br"),a.insertNode(n),a.setStartAfter(n),a.setEndAfter(n),r=!0)),n=i.create("br"),Sl(i,a,n),wD(i,o,n),CD(i,o,n,r),e.undoManager.add()},ED=function(e,t){var n=Ct.fromTag("br");eu(Ct.fromDom(t),n),e.undoManager.add()},zD=function(e,t){ND(e.getBody(),t)||tu(Ct.fromDom(t),Ct.fromTag("br"));var n=Ct.fromTag("br");tu(Ct.fromDom(t),n),wD(e.dom,e.selection,n.dom()),CD(e.dom,e.selection,n.dom(),!1),e.undoManager.add()},kD=function(e){return we.isBr(e.getNode())},ND=function(e,t){return!!kD(sl.after(t))||hd.nextPosition(e,sl.after(t)).map((function(e){return we.isBr(e.getNode())})).getOr(!1)},SD=function(e){return e&&"A"===e.nodeName&&"href"in e},TD=function(e){return e.fold(i(!1),SD,SD,i(!1))},AD=function(e){var t=u(FN.isInlineTarget,e),n=sl.fromRangeStart(e.selection.getRng());return lS.readLocation(t,e.getBody(),n).filter(TD)},RD=function(e,t){t.fold(r,u(ED,e),u(zD,e),r)},BD=function(e,t){var n=AD(e);n.isSome()?n.each(u(RD,e)):xD(e,t)},DD={insert:BD},MD=function(e,t){return XB.getParentBlock(e).filter((function(e){return t.length>0&&an(Ct.fromDom(e),t)})).isSome()},PD=function(e){return MD(e,zm.getBrNewLineSelector(e))},_D=function(e){return MD(e,zm.getNoNewLineSelector(e))},OD={shouldInsertBr:PD,shouldBlockNewLine:_D},HD=Im.generate([{br:[]},{block:[]},{none:[]}]),LD=function(e,t){return OD.shouldBlockNewLine(e)},ID=function(e){return function(t,n){var r=""===zm.getForcedRootBlock(t);return r===e}},VD=function(e){return function(t,n){return XB.isListItemParentBlock(t)===e}},FD=function(e,t){return function(n,r){var o=XB.getParentBlockName(n)===e.toUpperCase();return o===t}},UD=function(e){return FD("pre",e)},jD=function(){return FD("summary",!0)},qD=function(e){return function(t,n){return zm.shouldPutBrInPre(t)===e}},WD=function(e,t){return OD.shouldInsertBr(e)},$D=function(e,t){return t},KD=function(e){var t=zm.getForcedRootBlock(e),n=XB.getEditableRoot(e.dom,e.selection.getStart());return n&&e.schema.isValidChild(n.nodeName,t||"P")},XD=function(e,t){return function(n,r){var o=I(e,(function(e,t){return e&&t(n,r)}),!0);return o?p.some(t):p.none()}},YD=function(e,t){return jN.evaluateUntil([XD([LD],HD.none()),XD([jD()],HD.br()),XD([UD(!0),qD(!1),$D],HD.br()),XD([UD(!0),qD(!1)],HD.block()),XD([UD(!0),qD(!0),$D],HD.block()),XD([UD(!0),qD(!0)],HD.br()),XD([VD(!0),$D],HD.br()),XD([VD(!0)],HD.block()),XD([ID(!0),$D,KD],HD.block()),XD([ID(!0)],HD.br()),XD([WD],HD.br()),XD([ID(!1),$D],HD.br()),XD([KD],HD.block())],[e,!(!t||!t.shiftKey)]).getOr(HD.none())},GD={getAction:YD},ZD=function(e,t){GD.getAction(e,t).fold((function(){DD.insert(e,t)}),(function(){yD.insert(e,t)}),r)},JD={insert:ZD},QD=function(e,t){t.isDefaultPrevented()||(t.preventDefault(),kw(e.undoManager),e.undoManager.transact((function(){!1===e.selection.isCollapsed()&&e.execCommand("Delete"),JD.insert(e,t)})))},eM=function(e){e.on("keydown",(function(t){t.keyCode===by.ENTER&&QD(e,t)}))},tM={setup:eM},nM=function(e,t){var n=t.container(),r=t.offset();return we.isText(n)?(n.insertData(r,e),p.some(ul(n,r+e.length))):Hf(t).map((function(n){var r=Ct.fromText(e);return t.isAtEnd()?tu(n,r):eu(n,r),ul(r.dom(),e.length)}))},rM=u(nM," "),oM=u(nM," "),iM=" ",aM=function(e){return ul.isTextPosition(e)&&!e.isAtStart()&&!e.isAtEnd()},uM=function(e,t){var n=H(ty.parentsAndSelf(Ct.fromDom(t.container()),e),no);return Y(n).getOr(e)},cM=function(e,t){return aM(t)?Ny(t):Ny(t)||hd.prevPosition(uM(e,t).dom(),t).exists(Ny)},sM=function(e,t){return aM(t)?ky(t):ky(t)||hd.nextPosition(uM(e,t).dom(),t).exists(ky)},lM=function(e){return B(["pre","pre-wrap"],e)},fM=function(e){return Hf(e).bind((function(e){return yc(e,Tt)})).exists((function(e){return lM($t(e,"white-space"))}))},dM=function(e,t){return hd.prevPosition(e.dom(),t).isNone()},hM=function(e,t){return hd.nextPosition(e.dom(),t).isNone()},mM=function(e,t){return dM(e,t)||hM(e,t)||DB(e,t)||MB(e,t)||IA(e,t)||LA(e,t)},gM=function(e,t){return!fM(t)&&(mM(e,t)||cM(e,t)||sM(e,t))},pM=function(e,t){return!fM(t)&&(DB(e,t)||PB(e,t)||IA(e,t)||cM(e,t))},vM=function(e){var t=e.container(),n=e.offset();return we.isText(t)&&n<t.data.length?ul(t,n+1):e},yM=function(e,t){var n=vM(t);return!fM(n)&&(MB(e,n)||_B(e,n)||LA(e,n)||sM(e,n))},bM=function(e,t){return pM(e,t)||yM(e,t)},wM=function(e,t){return Cy(e.charAt(t))},CM=function(e){var t=e.container();return we.isText(t)&&tt(t.data,iM)},xM=function(e){var t=e.split("");return M(t,(function(e,n){return Cy(e)&&n>0&&n<t.length-1&&Ey(t[n-1])&&Ey(t[n+1])?" ":e})).join("")},EM=function(e,t){var n=t.data,r=ul(t,0);return!(!wM(n,0)||bM(e,r))&&(t.data=" "+n.slice(1),!0)},zM=function(e){var t=e.data,n=xM(t);return n!==t&&(e.data=n,!0)},kM=function(e,t){var n=t.data,r=ul(t,n.length-1);return!(!wM(n,n.length-1)||bM(e,r))&&(t.data=n.slice(0,-1)+" ",!0)},NM=function(e,t){return p.some(t).filter(CM).bind((function(t){var n=t.container(),r=EM(e,n)||zM(n)||kM(e,n);return r?p.some(t):p.none()}))},SM=function(e){var t=Ct.fromDom(e.getBody());e.selection.isCollapsed()&&NM(t,ul.fromRangeStart(e.selection.getRng())).each((function(t){e.selection.setRng(t.toRange())}))},TM=function(e){return function(t){return t.fold((function(t){return hd.prevPosition(e.dom(),sl.before(t))}),(function(e){return hd.firstPositionIn(e)}),(function(e){return hd.lastPositionIn(e)}),(function(t){return hd.nextPosition(e.dom(),sl.after(t))}))}},AM=function(e,t){return function(n){return gM(e,n)?rM(t):oM(t)}},RM=function(e){return function(t){return e.selection.setRng(t.toRange()),e.nodeChanged(),!0}},BM=function(e){var t=sl.fromRangeStart(e.selection.getRng()),n=Ct.fromDom(e.getBody());if(e.selection.isCollapsed()){var r=u(FN.isInlineTarget,e),o=sl.fromRangeStart(e.selection.getRng());return lS.readLocation(r,e.getBody(),o).bind(TM(n)).bind(AM(n,t)).exists(RM(e))}return!1},DM=function(e,t){XT.execute([{keyCode:by.SPACEBAR,action:XT.action(BM,e)}],t).each((function(e){t.preventDefault()}))},MM=function(e){e.on("keydown",(function(t){!1===t.isDefaultPrevented()&&DM(e,t)}))},PM={setup:MM},_M=function(e){return wc(Ct.fromDom(e.getBody()),"*[data-mce-caret]").fold(i(null),(function(e){return e.dom()}))},OM=function(e){e.selection.setRng(e.selection.getRng())},HM=function(e,t){t.hasAttribute("data-mce-caret")&&(is(t),OM(e),e.selection.scrollIntoView(t))},LM=function(e,t){var n=_M(e);if(n)return"compositionstart"===t.type?(t.preventDefault(),t.stopPropagation(),void HM(e,n)):void(Gc(n)&&(HM(e,n),e.undoManager.add()))},IM=function(e){e.on("keyup compositionstart",u(LM,e))},VM={setup:IM},FM=gt().browser,UM=function(e){var t=tc((function(){e.composing||SM(e)}),0);FM.isIE()&&(e.on("keypress",(function(e){t.throttle()})),e.on("remove",(function(e){t.cancel()})))},jM=function(e){UM(e),e.on("input",(function(t){!1===t.isComposing&&SM(e)}))},qM=function(e,t){XT.execute([{keyCode:by.END,action:rT(e,!0)},{keyCode:by.HOME,action:rT(e,!1)}],t).each((function(e){t.preventDefault()}))},WM=function(e){e.on("keydown",(function(t){!1===t.isDefaultPrevented()&&qM(e,t)}))},$M={setup:WM},KM=function(e){var t=TS.setupSelectedState(e);VM.setup(e),ZT.setup(e,t),FB.setup(e,t),tM.setup(e),PM.setup(e),jM(e),$M.setup(e)},XM={setup:KM},YM=function(e){var t=Vr.each,r=by.BACKSPACE,o=by.DELETE,i=e.dom,a=e.selection,u=e.settings,c=e.parser,s=pr.gecko,l=pr.ie,f=pr.webkit,d="data:text/mce-internal,",h=l?"Text":"URL",m=function(t,n){try{e.getDoc().execCommand(t,!1,n)}catch(r){}},g=function(e){return e.isDefaultPrevented()},p=function(t){var n,r;t.dataTransfer&&(e.selection.isCollapsed()&&"IMG"===t.target.tagName&&a.select(t.target),n=e.selection.getContent(),n.length>0&&(r=d+escape(e.id)+","+escape(n),t.dataTransfer.setData(h,r)))},v=function(e){var t;return e.dataTransfer&&(t=e.dataTransfer.getData(h),t&&t.indexOf(d)>=0)?(t=t.substr(d.length).split(","),{id:unescape(t[0]),html:unescape(t[1])}):null},y=function(t,n){e.queryCommandSupported("mceInsertClipboardContent")?e.execCommand("mceInsertClipboardContent",!1,{content:t,internal:n}):e.execCommand("mceInsertContent",!1,t)},b=function(){var t=function(e){var t=i.create("body"),n=e.cloneContents();return t.appendChild(n),a.serializer.serialize(t,{format:"html"})},n=function(n){var r=t(n),o=i.createRng();o.selectNode(e.getBody());var a=t(o);return r===a};e.on("keydown",(function(t){var a,u,c=t.keyCode;if(!g(t)&&(c===o||c===r)){if(a=e.selection.isCollapsed(),u=e.getBody(),a&&!i.isEmpty(u))return;if(!a&&!n(e.selection.getRng()))return;t.preventDefault(),e.setContent(""),u.firstChild&&i.isBlock(u.firstChild)?e.selection.setCursorLocation(u.firstChild,0):e.selection.setCursorLocation(u,0),e.nodeChanged()}}))},w=function(){e.shortcuts.add("meta+a",null,"SelectAll")},C=function(){e.inline||i.bind(e.getDoc(),"mousedown mouseup",(function(t){var n;if(t.target===e.getDoc().documentElement)if(n=a.getRng(),e.getBody().focus(),"mousedown"===t.type){if(Yc(n.startContainer))return;a.placeCaretAt(t.clientX,t.clientY)}else a.setRng(n)}))},x=function(){e.on("keydown",(function(t){if(!g(t)&&t.keyCode===r){if(!e.getBody().getElementsByTagName("hr").length)return;if(a.isCollapsed()&&0===a.getRng().startOffset){var n=a.getNode(),o=n.previousSibling;if("HR"===n.nodeName)return i.remove(n),void t.preventDefault();o&&o.nodeName&&"hr"===o.nodeName.toLowerCase()&&(i.remove(o),t.preventDefault())}}}))},E=function(){n.Range.prototype.getClientRects||e.on("mousedown",(function(t){if(!g(t)&&"HTML"===t.target.nodeName){var n=e.getBody();n.blur(),ur.setEditorTimeout(e,(function(){n.focus()}))}}))},z=function(){e.on("click",(function(t){var n=t.target;/^(IMG|HR)$/.test(n.nodeName)&&"false"!==i.getContentEditableParent(n)&&(t.preventDefault(),e.selection.select(n),e.nodeChanged()),"A"===n.nodeName&&i.hasClass(n,"mce-item-anchor")&&(t.preventDefault(),a.select(n))}))},k=function(){var n=function(){var n=i.getAttribs(a.getStart().cloneNode(!1));return function(){var r=a.getStart();r!==e.getBody()&&(i.setAttrib(r,"style",null),t(n,(function(e){r.setAttributeNode(e.cloneNode(!0))})))}},r=function(){return!a.isCollapsed()&&i.getParent(a.getStart(),i.isBlock)!==i.getParent(a.getEnd(),i.isBlock)};e.on("keypress",(function(t){var o;if(!g(t)&&(8===t.keyCode||46===t.keyCode)&&r())return o=n(),e.getDoc().execCommand("delete",!1,null),o(),t.preventDefault(),!1})),i.bind(e.getDoc(),"cut",(function(t){var o;!g(t)&&r()&&(o=n(),ur.setEditorTimeout(e,(function(){o()})))}))},N=function(){e.on("keydown",(function(e){if(!g(e)&&e.keyCode===r&&a.isCollapsed()&&0===a.getRng().startOffset){var t=a.getNode().previousSibling;if(t&&t.nodeName&&"table"===t.nodeName.toLowerCase())return e.preventDefault(),!1}}))},S=function(){e.on("keydown",(function(t){var n,r,o,u,c;if(!g(t)&&t.keyCode===by.BACKSPACE&&(n=a.getRng(),r=n.startContainer,o=n.startOffset,u=i.getRoot(),c=r,n.collapsed&&0===o)){while(c&&c.parentNode&&c.parentNode.firstChild===c&&c.parentNode!==u)c=c.parentNode;"BLOCKQUOTE"===c.tagName&&(e.formatter.toggle("blockquote",null,c),n=i.createRng(),n.setStart(r,0),n.setEnd(r,0),a.setRng(n))}}))},T=function(){var t=function(){m("StyleWithCSS",!1),m("enableInlineTableEditing",!1),u.object_resizing||m("enableObjectResizing",!1)};u.readonly||e.on("BeforeExecCommand mousedown",t)},A=function(){var n=function(){t(i.select("a"),(function(e){var t=e.parentNode,n=i.getRoot();if(t.lastChild===e){while(t&&!i.isBlock(t)){if(t.parentNode.lastChild!==t||t===n)return;t=t.parentNode}i.add(t,"br",{"data-mce-bogus":1})}}))};e.on("SetContent ExecCommand",(function(e){"setcontent"!==e.type&&"mceInsertLink"!==e.command||n()}))},R=function(){u.forced_root_block&&e.on("init",(function(){m("DefaultParagraphSeparator",zm.getForcedRootBlock(e))}))},B=function(){e.on("keyup focusin mouseup",(function(e){by.modifierPressed(e)||a.normalize()}),!0)},D=function(){e.contentStyles.push("img:-moz-broken {-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}")},M=function(){e.inline||e.on("keydown",(function(){n.document.activeElement===n.document.body&&e.getWin().focus()}))},P=function(){e.inline||(e.contentStyles.push("body {min-height: 150px}"),e.on("click",(function(t){var n;if("HTML"===t.target.nodeName){if(pr.ie>11)return void e.getBody().focus();n=e.selection.getRng(),e.getBody().focus(),e.selection.setRng(n),e.selection.normalize(),e.nodeChanged()}})))},_=function(){pr.mac&&e.on("keydown",(function(t){if(by.metaKeyPressed(t)&&!t.shiftKey&&(37===t.keyCode||39===t.keyCode)){t.preventDefault();var n=e.selection.getSel();n.modify("move",37===t.keyCode?"backward":"forward","lineboundary")}}))},O=function(){m("AutoUrlDetect",!1)},H=function(){e.on("click",(function(e){var t=e.target;do{if("A"===t.tagName)return void e.preventDefault()}while(t=t.parentNode)})),e.contentStyles.push(".mce-content-body {-webkit-touch-callout: none}")},L=function(){e.on("init",(function(){e.dom.bind(e.getBody(),"submit",(function(e){e.preventDefault()}))}))},I=function(){c.addNodeFilter("br",(function(e){var t=e.length;while(t--)"Apple-interchange-newline"===e[t].attr("class")&&e[t].remove()}))},V=function(){e.on("dragstart",(function(e){p(e)})),e.on("drop",(function(t){if(!g(t)){var n=v(t);if(n&&n.id!==e.id){t.preventDefault();var r=$z.fromPoint(t.x,t.y,e.getDoc());a.setRng(r),y(n.html,!0)}}}))},F=function(){},U=function(){var t;return!(!s||e.removed)&&(t=e.selection.getSel(),!t||!t.rangeCount||0===t.rangeCount)};return S(),b(),pr.windowsPhone||B(),f&&(C(),z(),R(),L(),N(),I(),pr.iOS?(M(),P(),H()):w()),pr.ie>=11&&(P(),N()),pr.ie&&(w(),O(),V()),s&&(x(),E(),k(),T(),A(),D(),_(),N()),{refreshContentEditable:F,isHidden:U}},GM=function(e){return we.isElement(e)&&ao(Ct.fromDom(e))},ZM=function(e){var t=e.selection.getRng(),n=ul.fromRangeStart(t),r=ul.fromRangeEnd(t);if(ul.isElementPosition(n)){var o=n.container();GM(o)&&hd.firstPositionIn(o).each((function(e){return t.setStart(e.container(),e.offset())}))}if(ul.isElementPosition(r)){o=n.container();GM(o)&&hd.lastPositionIn(o).each((function(e){return t.setEnd(e.container(),e.offset())}))}e.selection.setRng(Qx.normalize(t))},JM=function(e){e.on("click",(function(t){t.detail>=3&&ZM(e)}))},QM=function(e){e.on("click",(function(t){e.dom.getParent(t.target,"details")&&t.preventDefault()}))},eP=function(e){e.parser.addNodeFilter("details",(function(e){P(e,(function(e){e.attr("data-mce-open",e.attr("open")),e.attr("open","open")}))})),e.serializer.addNodeFilter("details",(function(e){P(e,(function(e){var t=e.attr("data-mce-open");e.attr("open",b(t)?t:null),e.attr("data-mce-open",null)}))}))},tP=function(e){QM(e),eP(e)},nP=Bu.DOM,rP=function(e,t){var n=Ct.fromDom(e.getDoc().head),r=Ct.fromTag("style");Ft(r,"type","text/css"),ru(r,Ct.fromText(t)),ru(n,r)},oP=function(e){var t=GE(e.settings,e.schema);return t.addAttributeFilter("src,href,style,tabindex",(function(t,n){var r,o,i,a=t.length,u=e.dom;while(a--)if(r=t[a],o=r.attr(n),i="data-mce-"+n,!r.attr(i)){if(0===o.indexOf("data:")||0===o.indexOf("blob:"))continue;"style"===n?(o=u.serializeStyle(u.parseStyle(o),r.name),o.length||(o=null),r.attr(i,o),r.attr(n,o)):"tabindex"===n?(r.attr(i,o),r.attr(n,null)):r.attr(i,e.convertURL(o,n,r.name))}})),t.addNodeFilter("script",(function(e){var t,n,r=e.length;while(r--)t=e[r],n=t.attr("type")||"no/type",0!==n.indexOf("mce-")&&t.attr("type","mce-"+n)})),t.addNodeFilter("#cdata",(function(e){var t,n=e.length;while(n--)t=e[n],t.type=8,t.name="#comment",t.value="[CDATA["+t.value+"]]"})),t.addNodeFilter("p,h1,h2,h3,h4,h5,h6,div",(function(t){var n,r=t.length,o=e.schema.getNonEmptyElements();while(r--)n=t[r],n.isEmpty(o)&&0===n.getAll("br").length&&(n.append(new Rh("br",1)).shortEnded=!0)})),t},iP=function(e){e.settings.auto_focus&&ur.setEditorTimeout(e,(function(){var t;t=!0===e.settings.auto_focus?e:e.editorManager.get(e.settings.auto_focus),t.destroyed||t.focus()}),100)},aP=function(e){e.bindPendingEventDelegates(),e.initialized=!0,e.fire("init"),e.focus(!0),e.nodeChanged({initial:!0}),e.execCallback("init_instance_callback",e),iP(e)},uP=function(e){return e.inline?nP.styleSheetLoader:e.dom.styleSheetLoader},cP=function(e,t){var r,o,i=e.settings,a=e.getElement(),u=e.getDoc();i.inline||(e.getElement().style.visibility=e.orgVisibility),t||e.inline||(u.open(),u.write(e.iframeHTML),u.close()),e.inline&&(e.on("remove",(function(){var e=this.getBody();nP.removeClass(e,"mce-content-body"),nP.removeClass(e,"mce-edit-focus"),nP.setAttrib(e,"contentEditable",null)})),nP.addClass(a,"mce-content-body"),e.contentDocument=u=n.document,e.contentWindow=n.window,e.bodyElement=a,e.contentAreaContainer=a,i.root_name=a.nodeName.toLowerCase()),r=e.getBody(),r.disabled=!0,e.readonly=i.readonly,e.readonly||(e.inline&&"static"===nP.getStyle(r,"position",!0)&&(r.style.position="relative"),r.contentEditable=e.getParam("content_editable_state",!0)),r.disabled=!1,e.editorUpload=Gv(e),e.schema=jo(i),e.dom=Bu(u,{keep_values:!0,url_converter:e.convertURL,url_converter_scope:e,hex_colors:i.force_hex_style_colors,update_styles:!0,root_element:e.inline?e.getBody():null,collect:function(){return e.inline},schema:e.schema,contentCssCors:zm.shouldUseContentCssCors(e),referrerPolicy:zm.getReferrerPolicy(e),onSetAttrib:function(t){e.fire("SetAttrib",t)}}),e.parser=oP(e),e.serializer=oz(i,e),e.selection=pN(e.dom,e.getWin(),e.serializer,e),e.annotator=Nh(e),e.formatter=kE(e),e.undoManager=Iw(e),e._nodeChangeDispatcher=new yy(e),e._selectionOverrides=Yb(e),tP(e),JM(e),XM.setup(e),cy.setup(e),e.fire("PreInit"),i.browser_spellcheck||i.gecko_spellcheck||(u.body.spellcheck=!1,nP.setAttrib(r,"spellcheck","false")),e.quirks=YM(e),e.fire("PostRender");var c=zm.getDirectionality(e);void 0!==c&&(r.dir=c),i.protect&&e.on("BeforeSetContent",(function(e){Vr.each(i.protect,(function(t){e.content=e.content.replace(t,(function(e){return"\x3c!--mce:protected "+escape(e)+"--\x3e"}))}))})),e.on("SetContent",(function(){e.addVisual(e.getBody())})),e.load({initial:!0,format:"html"}),e.startContent=e.getContent({format:"raw"}),e.on("compositionstart compositionend",(function(t){e.composing="compositionstart"===t.type})),e.contentStyles.length>0&&(o="",Vr.each(e.contentStyles,(function(e){o+=e+"\r\n"})),e.dom.addStyle(o)),uP(e).loadAll(e.contentCSS,(function(t){aP(e)}),(function(t){aP(e)})),i.content_style&&rP(e,i.content_style)},sP={initContentBody:cP},lP=Bu.DOM,fP=function(e,t){if(n.document.domain!==n.window.location.hostname&&pr.browser.isIE()){var r=$v.uuid("mce");e[r]=function(){sP.initContentBody(e)};var o='javascript:(function(){document.open();document.domain="'+n.document.domain+'";var ed = window.parent.tinymce.get("'+e.id+'");document.write(ed.iframeHTML);document.close();ed.'+r+"(true);})()";return lP.setAttrib(t,"src",o),!0}return!1},dP=function(e,t,n,r){var o=Ct.fromTag("iframe");return Ut(o,r),Ut(o,{id:e+"_ifr",frameBorder:"0",allowTransparency:"true",title:t}),lc(o,"tox-edit-area__iframe"),o},hP=function(e){var t,n,r;return r=zm.getDocType(e)+"<html><head>",zm.getDocumentBaseUrl(e)!==e.documentBaseUrl&&(r+='<base href="'+e.documentBaseURI.getURI()+'" />'),r+='<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />',t=zm.getBodyId(e),n=zm.getBodyClass(e),zm.getContentSecurityPolicy(e)&&(r+='<meta http-equiv="Content-Security-Policy" content="'+zm.getContentSecurityPolicy(e)+'" />'),r+='</head><body id="'+t+'" class="mce-content-body '+n+'" data-id="'+e.id+'"><br></body></html>',r},mP=function(e,t){var n=e.editorManager.translate("Rich Text Area. Press ALT-0 for help."),r=dP(e.id,n,t.height,zm.getIframeAttrs(e)).dom();r.onload=function(){r.onload=null,e.fire("load")};var o=fP(e,r);return e.contentAreaContainer=t.iframeContainer,e.iframeElement=r,e.iframeHTML=hP(e),lP.add(t.iframeContainer,r),o},gP=function(e,t){var n=mP(e,t);t.editorContainer&&(lP.get(t.editorContainer).style.display=e.orgDisplay,e.hidden=lP.isHidden(t.editorContainer)),e.getElement().style.display="none",lP.setAttrib(e.id,"aria-hidden","true"),n||sP.initContentBody(e)},pP={init:gP},vP=function(e){return/^[a-z0-9\-]+$/i.test(e)},yP=function(e){var t=zm.getContentCss(e),n=e.editorManager.baseURL+"/skins/content",r=e.editorManager.suffix,o="content"+r+".css",i=!0===e.inline;return M(t,(function(t){return vP(t)&&!i?n+"/"+t+"/"+o:e.documentBaseURI.toAbsolute(t)}))},bP=function(e){e.contentCSS=e.contentCSS.concat(yP(e))},wP=Bu.DOM,CP=function(e,t,n){var r=Av.get(n),o=Av.urls[n]||e.documentBaseUrl.replace(/\/$/,"");if(n=Vr.trim(n),r&&-1===Vr.inArray(t,n)){if(Vr.each(Av.dependencies(n),(function(n){CP(e,t,n)})),e.plugins[n])return;try{var i=new r(e,o,e.$);e.plugins[n]=i,i.init&&(i.init(e,o),t.push(n))}catch(KH){kv.pluginInitError(e,n,KH)}}},xP=function(e){return e.replace(/^\-/,"")},EP=function(e){var t=[];Vr.each(e.settings.plugins.split(/[ ,]/),(function(n){CP(e,t,xP(n))}))},zP=function(e){var t=Vr.trim(e.settings.icons),n=e.ui.registry.getAll().icons,r=Nv(),o=J(J({},r),Tv.get(t).icons);Dt(o,(function(t,r){Ht(n,r)||e.ui.registry.addIcon(r,t)}))},kP=function(e){var t=e.settings.theme;if(b(t)){e.settings.theme=xP(t);var n=Rv.get(t);e.theme=new n(e,Rv.urls[t]),e.theme.init&&e.theme.init(e,Rv.urls[t]||e.documentBaseUrl.replace(/\/$/,""),e.$)}else e.theme={}},NP=function(e){return e.theme.renderUI()},SP=function(e){var t=e.getElement(),n=e.settings.theme,r=n(e,t);return r.editorContainer.nodeType&&(r.editorContainer.id=r.editorContainer.id||e.id+"_parent"),r.iframeContainer&&r.iframeContainer.nodeType&&(r.iframeContainer.id=r.iframeContainer.id||e.id+"_iframecontainer"),r.height=r.iframeHeight?r.iframeHeight:t.offsetHeight,r},TP=function(e){return{editorContainer:e,iframeContainer:e}},AP=function(e){var t=wP.create("div");return wP.insertAfter(t,e),TP(t)},RP=function(e){var t=e.getElement();return e.inline?TP(null):AP(t)},BP=function(e){var t=e.getElement();return e.orgDisplay=t.style.display,b(e.settings.theme)?NP(e):z(e.settings.theme)?SP(e):RP(e)},DP=function(e){e.fire("ScriptsLoaded"),zP(e),kP(e),EP(e);var t=BP(e);return e.editorContainer=t.editorContainer?t.editorContainer:null,bP(e),e.inline?sP.initContentBody(e):pP.init(e,t)},MP={init:DP},PP=Bu.DOM,_P=function(e){return"-"===e.charAt(0)},OP=function(e,t){var n=zm.getLanguageCode(t),o=zm.getLanguageUrl(t);if(!1===Zu.hasCode(n)&&"en"!==n){var i=""!==o?o:t.editorManager.baseURL+"/langs/"+n+".js";e.add(i,r,void 0,(function(){kv.languageLoadError(i,n)}))}},HP=function(e,t,n,r){var o=t.settings,i=o.theme;if(b(i)){if(!_P(i)&&!Rv.urls.hasOwnProperty(i)){var a=o.theme_url;a?Rv.load(i,t.documentBaseURI.toAbsolute(a)):Rv.load(i,"themes/"+i+"/theme"+n+".js")}e.loadQueue((function(){Rv.waitFor(i,r)}))}else r()},LP=function(e){return p.from(zm.getIconsUrl(e)).filter((function(e){return e.length>0})).map((function(e){return{url:e,name:p.none()}}))},IP=function(e){return p.from(zm.getIconPackName(e)).filter((function(e){return e.length>0&&!Tv.has(e)})).map((function(t){return{url:e.editorManager.baseURL+"/icons/"+t+"/icons.js",name:p.some(t)}}))},VP=function(e,t){LP(t).orThunk((function(){return IP(t)})).each((function(t){e.add(t.url,r,void 0,(function(){kv.iconsLoadError(t.url,t.name.getOrUndefined())}))}))},FP=function(e,t){C(e.plugins)&&(e.plugins=e.plugins.join(" ")),Vr.each(e.external_plugins,(function(t,n){Av.load(n,t,r,void 0,(function(){kv.pluginLoadError(n,t)})),e.plugins+=" "+n})),Vr.each(e.plugins.split(/[ ,]/),(function(e){if(e=Vr.trim(e),e&&!Av.urls[e])if(_P(e)){e=e.substr(1,e.length);var n=Av.dependencies(e);Vr.each(n,(function(e){var n={prefix:"plugins/",resource:e,suffix:"/plugin"+t+".js"};e=Av.createUrl(n,e),Av.load(e.resource,e,r,void 0,(function(){kv.pluginLoadError(e.prefix+e.resource+e.suffix,e.resource)}))}))}else{var o={prefix:"plugins/",resource:e,suffix:"/plugin"+t+".js"};Av.load(e,o,r,void 0,(function(){kv.pluginLoadError(o.prefix+o.resource+o.suffix,e)}))}}))},UP=function(e,t){var n=Iu.ScriptLoader;HP(n,e,t,(function(){OP(n,e),VP(n,e),FP(e.settings,t),n.loadQueue((function(){e.removed||MP.init(e)}),e,(function(){e.removed||MP.init(e)}))}))},jP=function(e){var t=e.settings,r=e.id;Zu.setCode(zm.getLanguageCode(e));var o=function(){PP.unbind(n.window,"ready",o),e.render()};if(xi.Event.domLoaded){if(e.getElement()&&pr.contentEditable){t.inline?e.inline=!0:(e.orgVisibility=e.getElement().style.visibility,e.getElement().style.visibility="hidden");var i=e.getElement().form||PP.getParent(r,"form");i&&(e.formElement=i,t.hidden_input&&!we.isTextareaOrInput(e.getElement())&&(PP.insertAfter(PP.create("input",{type:"hidden",name:r}),r),e.hasHiddenInput=!0),e.formEventDelegate=function(t){e.fire(t.type,t)},PP.bind(i,"submit reset",e.formEventDelegate),e.on("reset",(function(){e.resetContent()})),!t.submit_patch||i.submit.nodeType||i.submit.length||i._mceOldSubmit||(i._mceOldSubmit=i.submit,i.submit=function(){return e.editorManager.triggerSave(),e.setDirty(!1),i._mceOldSubmit(i)})),e.windowManager=mv(e),e.notificationManager=dv(e),"xml"===t.encoding&&e.on("GetContent",(function(e){e.save&&(e.content=PP.encode(e.content))})),t.add_form_submit_trigger&&e.on("submit",(function(){e.initialized&&e.save()})),t.add_unload_trigger&&(e._beforeUnload=function(){!e.initialized||e.destroyed||e.isHidden()||e.save({format:"raw",no_events:!0,set_dirty:!1})},e.editorManager.on("BeforeUnload",e._beforeUnload)),e.editorManager.add(e),UP(e,e.suffix)}}else PP.bind(n.window,"ready",o)},qP={render:jP},WP="data-mce-contenteditable",$P=function(e,t,n){hc(e,t)&&!1===n?dc(e,t):n&&lc(e,t)},KP=function(e,t,n){try{e.getDoc().execCommand(t,!1,n)}catch(r){}},XP=function(e,t){e.dom().contentEditable=t?"true":"false"},YP=function(e){P(gc(e,'*[contenteditable="true"]'),(function(e){Ft(e,WP,"true"),XP(e,!1)}))},GP=function(e){P(gc(e,"*["+WP+'="true"]'),(function(e){Wt(e,WP),XP(e,!0)}))},ZP=function(e){p.from(e.selection.getNode()).each((function(e){e.removeAttribute("data-mce-selected")}))},JP=function(e){e.selection.setRng(e.selection.getRng())},QP=function(e,t){var n=Ct.fromDom(e.getBody());$P(n,"mce-content-readonly",t),t?(e.selection.controlSelection.hideResizeRect(),e._selectionOverrides.hideFakeCaret(),ZP(e),e.readonly=!0,XP(n,!1),YP(n)):(e.readonly=!1,XP(n,!0),GP(n),KP(e,"StyleWithCSS",!1),KP(e,"enableInlineTableEditing",!1),KP(e,"enableObjectResizing",!1),Jg.hasEditorOrUiFocus(e)&&e.focus(),JP(e),e.nodeChanged())},e_=function(e){return!0===e.readonly},t_=function(e){e.parser.addAttributeFilter("contenteditable",(function(t){e_(e)&&P(t,(function(e){e.attr(WP,e.attr("contenteditable")),e.attr("contenteditable","false")}))})),e.serializer.addAttributeFilter(WP,(function(t){e_(e)&&P(t,(function(e){e.attr("contenteditable",e.attr(WP))}))})),e.serializer.addTempAttr(WP)},n_=function(e){e.serializer?t_(e):e.on("PreInit",(function(){t_(e)}))},r_=function(e){return"click"===e.type},o_=function(e){var t=e.target;r_(e)&&"A"===t.tagName&&!by.metaKeyPressed(e)&&e.preventDefault()},i_=function(e){e.on("ShowCaret",(function(t){e_(e)&&t.preventDefault()})),e.on("ObjectSelected",(function(t){e_(e)&&t.preventDefault()}))},a_=["design","readonly"],u_=function(e,t,r,o){var i=r[t.get()],a=r[o];try{a.activate()}catch(KH){return void n.console.error("problem while activating editor mode "+o+":",KH)}i.deactivate(),i.editorReadOnly!==a.editorReadOnly&&QP(e,a.editorReadOnly),t.set(o),hp.fireSwitchMode(e,o)},c_=function(e,t,n,r){if(r!==n.get()){if(!Ht(t,r))throw new Error("Editor mode '"+r+"' is invalid");e.initialized?u_(e,n,t,r):e.on("init",(function(){return u_(e,n,t,r)}))}},s_=function(e,t,r){var o;if(B(a_,t))throw new Error("Cannot override default mode "+t);return J(J({},e),(o={},o[t]=J(J({},r),{deactivate:function(){try{r.deactivate()}catch(KH){n.console.error("problem while deactivating editor mode "+t+":",KH)}}}),o))},l_=function(e){var t=Ce("design"),n=Ce({design:{activate:r,deactivate:r,editorReadOnly:!1},readonly:{activate:r,deactivate:r,editorReadOnly:!0}});return n_(e),i_(e),{isReadOnly:function(){return e_(e)},set:function(r){return c_(e,n.get(),t,r)},get:function(){return t.get()},register:function(e,t){n.set(s_(n.get(),e,t))}}},f_=function(e){return e.firstChild&&e.firstChild===e.lastChild},d_=function(e){return"br"===e.name||" "===e.value},h_=function(e,t){var n=e.getBlockElements();return n[t.name]&&f_(t)&&d_(t.firstChild)},m_=function(e,t){var n=e.getNonEmptyElements();return t&&(t.isEmpty(n)||h_(e,t))},g_=function(e,t){var n=t.firstChild,r=t.lastChild;return n&&"meta"===n.name&&(n=n.next),r&&"mce_marker"===r.attr("id")&&(r=r.prev),m_(e,r)&&(r=r.prev),!(!n||n!==r)&&("ul"===n.name||"ol"===n.name)},p_=function(e){var t=e.firstChild,n=e.lastChild;return t&&"META"===t.nodeName&&t.parentNode.removeChild(t),n&&"mce_marker"===n.id&&n.parentNode.removeChild(n),e},v_=function(e,t,n){var r=t.serialize(n),o=e.createFragment(r);return p_(o)},y_=function(e){return Vr.grep(e.childNodes,(function(e){return"LI"===e.nodeName}))},b_=function(e){return" "===e.data||we.isBr(e)},w_=function(e){return e&&e.firstChild&&e.firstChild===e.lastChild&&b_(e.firstChild)},C_=function(e){return!e.firstChild||w_(e)},x_=function(e){return e.length>0&&C_(e[e.length-1])?e.slice(0,-1):e},E_=function(e,t){var n=e.getParent(t,e.isBlock);return n&&"LI"===n.nodeName?n:null},z_=function(e,t){return!!E_(e,t)},k_=function(e,t){var n=t.cloneRange(),r=t.cloneRange();return n.setStartBefore(e),r.setEndAfter(e),[n.cloneContents(),r.cloneContents()]},N_=function(e,t){var n=sl.before(e),r=Qf(t),o=r.next(n);return o?o.toRange():null},S_=function(e,t){var n=sl.after(e),r=Qf(t),o=r.prev(n);return o?o.toRange():null},T_=function(e,t,n,r){var o=k_(e,r),i=e.parentNode;return i.insertBefore(o[0],e),Vr.each(t,(function(t){i.insertBefore(t,e)})),i.insertBefore(o[1],e),i.removeChild(e),S_(t[t.length-1],n)},A_=function(e,t,n){var r=e.parentNode;return Vr.each(t,(function(t){r.insertBefore(t,e)})),N_(e,n)},R_=function(e,t,n,r){return r.insertAfter(t.reverse(),e),S_(t[0],n)},B_=function(e,t,n,r){var o=v_(t,e,r),i=E_(t,n.startContainer),a=x_(y_(o.firstChild)),u=1,c=2,s=t.getRoot(),l=function(e){var r=sl.fromRangeStart(n),o=Qf(t.getRoot()),a=e===u?o.prev(r):o.next(r);return!a||E_(t,a.getNode())!==i};return l(u)?A_(i,a,s):l(c)?R_(i,a,s,t):T_(i,a,s,n)},D_={isListFragment:g_,insertAtCaret:B_,isParentBlockLi:z_,trimListItems:x_,listItems:y_},M_=function(e,t){return we.isText(e)&&" "===e.nodeValue[t-1]},P_=function(e,t){var n,r;n=e.startContainer,r=e.startOffset;var o=function(e){return n[e]&&3===n[e].nodeType};return 3===n.nodeType&&(r>0?t=t.replace(/^ /," "):o("previousSibling")||(t=t.replace(/^ /," ")),r<n.length?t=t.replace(/ (<br>|)$/," "):o("nextSibling")||(t=t.replace(/( | )(<br>|)$/," "))),t},__=function(e,t){var n,r;return n=e.startContainer,r=e.startOffset,3===n.nodeType&&e.collapsed&&(" "===n.data[r]?(n.deleteData(r,1),/[\u00a0| ]$/.test(t)||(t+=" ")):" "===n.data[r-1]&&(n.deleteData(r-1,1),/[\u00a0| ]$/.test(t)||(t=" "+t))),t},O_=we.matchNodeNames(["td","th"]),H_=function(e,t){var n=e.selection.getRng(),r=n.startContainer,o=n.startOffset;n.collapsed&&M_(r,o)&&we.isText(r)&&(r.insertData(o-1," "),r.deleteData(o,1),n.setStart(r,o),n.setEnd(r,o),e.selection.setRng(n)),e.selection.setContent(t)},L_=function(e,t,n){if("all"===n.getAttribute("data-mce-bogus"))n.parentNode.insertBefore(e.dom.createFragment(t),n);else{var r=n.firstChild,o=n.lastChild;!r||r===o&&"BR"===r.nodeName?e.dom.setHTML(n,t):H_(e,t)}},I_=function(e,t){p.from(e.getParent(t,"td,th")).map(Ct.fromDom).each($w.trimBlockTrailingBr)},V_=function(e,t){var n=e.schema.getTextInlineElements(),r=e.dom;if(t){var o=e.getBody(),i=new gx(r);Vr.each(r.select("*[data-mce-fragment]"),(function(e){for(var t=e.parentNode;t&&t!==o;t=t.parentNode)n[e.nodeName.toLowerCase()]&&i.compare(t,e)&&r.remove(e,!0)}))}},F_=function(e){var t=e;while(t=t.walk())1===t.type&&t.attr("data-mce-fragment","1")},U_=function(e){Vr.each(e.getElementsByTagName("*"),(function(e){e.removeAttribute("data-mce-fragment")}))},j_=function(e){return!!e.getAttribute("data-mce-fragment")},q_=function(e,t){return t&&!e.schema.getShortEndedElements()[t.nodeName]},W_=function(e,t){var n,r,o,i,a,u=e.dom,c=e.selection,s=function(t){for(var n=e.getBody();t&&t!==n;t=t.parentNode)if("false"===e.dom.getContentEditable(t))return t;return null};if(t){if(e.selection.scrollIntoView(t),n=s(t),n)return u.remove(t),void c.select(n);var l=u.createRng();i=t.previousSibling,i&&3===i.nodeType?(l.setStart(i,i.nodeValue.length),pr.ie||(a=t.nextSibling,a&&3===a.nodeType&&(i.appendData(a.data),a.parentNode.removeChild(a)))):(l.setStartBefore(t),l.setEndBefore(t));var f=function(t){var n=sl.fromRangeStart(t),r=Qf(e.getBody());if(n=r.next(n),n)return n.toRange()};r=u.getParent(t,u.isBlock),u.remove(t),r&&u.isEmpty(r)&&(e.$(r).empty(),l.setStart(r,0),l.setEnd(r,0),O_(r)||j_(r)||!(o=f(l))?u.add(r,u.create("br",{"data-mce-bogus":"1"})):(l=o,u.remove(r))),c.setRng(l)}},$_=function(e,t,n){var r,o,i,a,u,c,s,l,f,d,h,m=e.selection,g=e.dom;if(/^ | $/.test(t)&&(t=P_(m.getRng(),t)),r=e.parser,h=n.merge,o=Bm({validate:e.settings.validate},e.schema),d='<span id="mce_marker" data-mce-type="bookmark">​</span>',c={content:t,format:"html",selection:!0,paste:n.paste},c=e.fire("BeforeSetContent",c),c.isDefaultPrevented())e.fire("SetContent",{content:c.content,format:"html",selection:!0,paste:n.paste});else{t=c.content,-1===t.indexOf("{$caret}")&&(t+="{$caret}"),t=t.replace(/\{\$caret\}/,d),l=m.getRng();var p=l.startContainer||(l.parentElement?l.parentElement():null),v=e.getBody();p===v&&m.isCollapsed()&&g.isBlock(v.firstChild)&&q_(e,v.firstChild)&&g.isEmpty(v.firstChild)&&(l=g.createRng(),l.setStart(v.firstChild,0),l.setEnd(v.firstChild,0),m.setRng(l)),m.isCollapsed()||(e.selection.setRng(Qx.normalize(e.selection.getRng())),e.getDoc().execCommand("Delete",!1,null),t=__(e.selection.getRng(),t)),i=m.getNode();var y={context:i.nodeName.toLowerCase(),data:n.data,insert:!0};if(u=r.parse(t,y),!0===n.paste&&D_.isListFragment(e.schema,u)&&D_.isParentBlockLi(g,i))return l=D_.insertAtCaret(o,g,e.selection.getRng(),u),e.selection.setRng(l),void e.fire("SetContent",c);if(F_(u),f=u.lastChild,"mce_marker"===f.attr("id"))for(s=f,f=f.prev;f;f=f.walk(!0))if(3===f.type||!g.isBlock(f.name)){e.schema.isValidChild(f.parent.name,"span")&&f.parent.insert(s,f,"br"===f.name);break}if(e._selectionOverrides.showBlockCaretContainer(i),y.invalid){H_(e,d),i=m.getNode(),a=e.getBody(),9===i.nodeType?i=f=a:f=i;while(f!==a)i=f,f=f.parentNode;t=i===a?a.innerHTML:g.getOuterHTML(i),t=o.serialize(r.parse(t.replace(/<span (id="mce_marker"|id=mce_marker).+?<\/span>/i,(function(){return o.serialize(u)})))),i===a?g.setHTML(a,t):g.setOuterHTML(i,t)}else t=o.serialize(u),L_(e,t,i);V_(e,h),W_(e,g.get("mce_marker")),U_(e.getBody()),I_(e.dom,e.selection.getStart()),e.fire("SetContent",c),e.addVisual()}},K_=function(e){var t;return"string"!==typeof e?(t=Vr.extend({paste:e.paste,data:{paste:e.paste}},e),{content:e.content,details:t}):{content:e,details:{}}},X_=function(e,t){var n=K_(t);$_(e,n.content,n.details)},Y_={insertAtCaret:X_},G_=function(e,t){e.getDoc().execCommand(t,!1,null)},Z_=function(e){HB.backspaceDelete(e,!1)||cR.backspaceDelete(e,!1)||hR.backspaceDelete(e,!1)||xR.backspaceDelete(e,!1)||SA.backspaceDelete(e,!1)||mB.backspaceDelete(e)||_A.backspaceDelete(e,!1)||TR.backspaceDelete(e,!1)||(G_(e,"Delete"),rA.paddEmptyBody(e))},J_=function(e){cR.backspaceDelete(e,!0)||hR.backspaceDelete(e,!0)||xR.backspaceDelete(e,!0)||SA.backspaceDelete(e,!0)||mB.backspaceDelete(e)||_A.backspaceDelete(e,!0)||TR.backspaceDelete(e,!0)||G_(e,"ForwardDelete")},Q_={deleteCommand:Z_,forwardDeleteCommand:J_},eO=function(e,t,n){var r=function(t){return Xt(t,e)},o=function(e){return ln(Ct.fromDom(t),e)};return yc(Ct.fromDom(n),(function(e){return r(e).isSome()}),o).bind(r)},tO=function(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n},nO=function(e,t){return/[0-9.]+px$/.test(e)?tO(72*parseInt(e,10)/96,t||0)+"pt":e},rO=function(e){return e.replace(/[\'\"\\]/g,"").replace(/,\s+/g,",")},oO=function(e,t){return p.from(Bu.DOM.getStyle(t,e,!0))},iO=function(e){return function(t,n){return p.from(n).map(Ct.fromDom).filter(Tt).bind((function(n){return eO(e,t,n.dom()).or(oO(e,n.dom()))})).getOr("")}},aO={getFontSize:iO("font-size"),getFontFamily:o(rO,iO("font-family")),toPt:nO},uO=function(e){return hd.firstPositionIn(e.getBody()).map((function(e){var t=e.container();return we.isText(t)?t.parentNode:t}))},cO=function(e,t){return e.startContainer===t&&0===e.startOffset},sO=function(e){return p.from(e.selection.getRng()).bind((function(t){var n=e.getBody();return cO(t,n)?p.none():p.from(e.selection.getStart(!0))}))},lO=function(e,t){if(/^[0-9\.]+$/.test(t)){var n=parseInt(t,10);if(n>=1&&n<=7){var r=zm.getFontStyleValues(e),o=zm.getFontSizeClasses(e);return o?o[n-1]||t:r[n-1]||t}return t}return t},fO=function(e){var t=e.split(/\s*,\s*/);return M(t,(function(e){return-1===e.indexOf(" ")||nt(e,'"')||nt(e,"'")?e:'"'+e+'"'})).join(",")},dO=function(e,t){var n=lO(e,t);e.formatter.toggle("fontname",{value:fO(n)}),e.nodeChanged()},hO=function(e){return sO(e).fold((function(){return uO(e).map((function(t){return aO.getFontFamily(e.getBody(),t)})).getOr("")}),(function(t){return aO.getFontFamily(e.getBody(),t)}))},mO=function(e,t){e.formatter.toggle("fontsize",{value:lO(e,t)}),e.nodeChanged()},gO=function(e){return sO(e).fold((function(){return uO(e).map((function(t){return aO.getFontSize(e.getBody(),t)})).getOr("")}),(function(t){return aO.getFontSize(e.getBody(),t)}))},pO=Vr.each,vO=Vr.map,yO=Vr.inArray,bO=function(){function e(e){this.commands={state:{},exec:{},value:{}},this.editor=e,this.setupCommands(e)}return e.prototype.execCommand=function(e,t,n,r){var o,i,a=!1,u=this;if(!u.editor.removed){if(/^(mceAddUndoLevel|mceEndUndoLevel|mceBeginUndoLevel|mceRepaint)$/.test(e)||r&&r.skip_focus?bg.restore(u.editor):u.editor.focus(),r=u.editor.fire("BeforeExecCommand",{command:e,ui:t,value:n}),r.isDefaultPrevented())return!1;if(i=e.toLowerCase(),o=u.commands.exec[i])return o(i,t,n),u.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!0;if(pO(this.editor.plugins,(function(r){if(r.execCommand&&r.execCommand(e,t,n))return u.editor.fire("ExecCommand",{command:e,ui:t,value:n}),a=!0,!1})),a)return a;if(u.editor.theme&&u.editor.theme.execCommand&&u.editor.theme.execCommand(e,t,n))return u.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!0;try{a=u.editor.getDoc().execCommand(e,t,n)}catch(c){}return!!a&&(u.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!0)}},e.prototype.queryCommandState=function(e){var t;if(!this.editor.quirks.isHidden()&&!this.editor.removed){if(e=e.toLowerCase(),t=this.commands.state[e])return t(e);try{return this.editor.getDoc().queryCommandState(e)}catch(n){}return!1}},e.prototype.queryCommandValue=function(e){var t;if(!this.editor.quirks.isHidden()&&!this.editor.removed){if(e=e.toLowerCase(),t=this.commands.value[e])return t(e);try{return this.editor.getDoc().queryCommandValue(e)}catch(n){}}},e.prototype.addCommands=function(e,t){var n=this;t=t||"exec",pO(e,(function(e,r){pO(r.toLowerCase().split(","),(function(r){n.commands[t][r]=e}))}))},e.prototype.addCommand=function(e,t,n){var r=this;e=e.toLowerCase(),this.commands.exec[e]=function(e,o,i,a){return t.call(n||r.editor,o,i,a)}},e.prototype.queryCommandSupported=function(e){if(e=e.toLowerCase(),this.commands.exec[e])return!0;try{return this.editor.getDoc().queryCommandSupported(e)}catch(t){}return!1},e.prototype.addQueryStateHandler=function(e,t,n){var r=this;e=e.toLowerCase(),this.commands.state[e]=function(){return t.call(n||r.editor)}},e.prototype.addQueryValueHandler=function(e,t,n){var r=this;e=e.toLowerCase(),this.commands.value[e]=function(){return t.call(n||r.editor)}},e.prototype.hasCustomCommand=function(e){return e=e.toLowerCase(),!!this.commands.exec[e]},e.prototype.execNativeCommand=function(e,t,n){return void 0===t&&(t=!1),void 0===n&&(n=null),this.editor.getDoc().execCommand(e,t,n)},e.prototype.isFormatMatch=function(e){return this.editor.formatter.match(e)},e.prototype.toggleFormat=function(e,t){this.editor.formatter.toggle(e,t?{value:t}:void 0),this.editor.nodeChanged()},e.prototype.storeSelection=function(e){this.selectionBookmark=this.editor.selection.getBookmark(e)},e.prototype.restoreSelection=function(){this.editor.selection.moveToBookmark(this.selectionBookmark)},e.prototype.setupCommands=function(e){var t=this;this.addCommands({"mceResetDesignMode,mceBeginUndoLevel":function(){},"mceEndUndoLevel,mceAddUndoLevel":function(){e.undoManager.add()},"Cut,Copy,Paste":function(n){var r,o=e.getDoc();try{t.execNativeCommand(n)}catch(a){r=!0}if("paste"!==n||o.queryCommandEnabled(n)||(r=!0),r||!o.queryCommandSupported(n)){var i=e.translate("Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.");pr.mac&&(i=i.replace(/Ctrl\+/g,"⌘+")),e.notificationManager.open({text:i,type:"error"})}},unlink:function(){if(e.selection.isCollapsed()){var t=e.dom.getParent(e.selection.getStart(),"a");t&&e.dom.remove(t,!0)}else e.formatter.remove("link")},"JustifyLeft,JustifyCenter,JustifyRight,JustifyFull,JustifyNone":function(n){var r=n.substring(7);"full"===r&&(r="justify"),pO("left,center,right,justify".split(","),(function(t){r!==t&&e.formatter.remove("align"+t)})),"none"!==r&&t.toggleFormat("align"+r)},"InsertUnorderedList,InsertOrderedList":function(n){var r,o;t.execNativeCommand(n),r=e.dom.getParent(e.selection.getNode(),"ol,ul"),r&&(o=r.parentNode,/^(H[1-6]|P|ADDRESS|PRE)$/.test(o.nodeName)&&(t.storeSelection(),e.dom.split(o,r),t.restoreSelection()))},"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(e){t.toggleFormat(e)},"ForeColor,HiliteColor":function(e,n,r){t.toggleFormat(e,r)},FontName:function(t,n,r){dO(e,r)},FontSize:function(t,n,r){mO(e,r)},RemoveFormat:function(t){e.formatter.remove(t)},mceBlockQuote:function(){t.toggleFormat("blockquote")},FormatBlock:function(e,n,r){return t.toggleFormat(r||"p")},mceCleanup:function(){var t=e.selection.getBookmark();e.setContent(e.getContent()),e.selection.moveToBookmark(t)},mceRemoveNode:function(n,r,o){var i=o||e.selection.getNode();i!==e.getBody()&&(t.storeSelection(),e.dom.remove(i,!0),t.restoreSelection())},mceSelectNodeDepth:function(t,n,r){var o=0;e.dom.getParent(e.selection.getNode(),(function(t){if(1===t.nodeType&&o++===r)return e.selection.select(t),!1}),e.getBody())},mceSelectNode:function(t,n,r){e.selection.select(r)},mceInsertContent:function(t,n,r){Y_.insertAtCaret(e,r)},mceInsertRawHTML:function(t,n,r){e.selection.setContent("tiny_mce_marker");var o=e.getContent();e.setContent(o.replace(/tiny_mce_marker/g,(function(){return r})))},mceInsertNewLine:function(t,n,r){JD.insert(e,r)},mceToggleFormat:function(e,n,r){t.toggleFormat(r)},mceSetContent:function(t,n,r){e.setContent(r)},"Indent,Outdent":function(t){SB(e,t)},mceRepaint:function(){},InsertHorizontalRule:function(){e.execCommand("mceInsertContent",!1,"<hr />")},mceToggleVisualAid:function(){e.hasVisual=!e.hasVisual,e.addVisual()},mceReplaceContent:function(t,n,r){e.execCommand("mceInsertContent",!1,r.replace(/\{\$selection\}/g,e.selection.getContent({format:"text"})))},mceInsertLink:function(t,n,r){var o;"string"===typeof r&&(r={href:r}),o=e.dom.getParent(e.selection.getNode(),"a"),r.href=r.href.replace(/ /g,"%20"),o&&r.href||e.formatter.remove("link"),r.href&&e.formatter.apply("link",r,o)},selectAll:function(){var t=e.dom.getParent(e.selection.getStart(),we.isContentEditableTrue);if(t){var n=e.dom.createRng();n.selectNodeContents(t),e.selection.setRng(n)}},delete:function(){Q_.deleteCommand(e)},forwardDelete:function(){Q_.forwardDeleteCommand(e)},mceNewDocument:function(){e.setContent("")},InsertLineBreak:function(t,n,r){return DD.insert(e,r),!0}});var n=function(t){return function(){var n=e.selection.isCollapsed()?[e.dom.getParent(e.selection.getNode(),e.dom.isBlock)]:e.selection.getSelectedBlocks(),r=vO(n,(function(n){return!!e.formatter.matchNode(n,t)}));return-1!==yO(r,!0)}};t.addCommands({JustifyLeft:n("alignleft"),JustifyCenter:n("aligncenter"),JustifyRight:n("alignright"),JustifyFull:n("alignjustify"),"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(e){return t.isFormatMatch(e)},mceBlockQuote:function(){return t.isFormatMatch("blockquote")},Outdent:function(){return EB(e)},"InsertUnorderedList,InsertOrderedList":function(t){var n=e.dom.getParent(e.selection.getNode(),"ul,ol");return n&&("insertunorderedlist"===t&&"UL"===n.tagName||"insertorderedlist"===t&&"OL"===n.tagName)}},"state"),t.addCommands({Undo:function(){e.undoManager.undo()},Redo:function(){e.undoManager.redo()}}),t.addQueryValueHandler("FontName",(function(){return hO(e)}),this),t.addQueryValueHandler("FontSize",(function(){return gO(e)}),this)},e}(),wO=Vr.makeMap("focus blur focusin focusout click dblclick mousedown mouseup mousemove mouseover beforepaste paste cut copy selectionchange mouseout mouseenter mouseleave wheel keydown keypress keyup input beforeinput contextmenu dragstart dragend dragover draggesture dragdrop drop drag submit compositionstart compositionend compositionupdate touchstart touchmove touchend touchcancel"," "),CO=function(){function e(e){this.bindings={},this.settings=e||{},this.scope=this.settings.scope||this,this.toggleEvent=this.settings.toggleEvent||l}return e.isNative=function(e){return!!wO[e.toLowerCase()]},e.prototype.fire=function(e,t){var n,r,o,i;if(e=e.toLowerCase(),t=t||{},t.type=e,t.target||(t.target=this.scope),t.preventDefault||(t.preventDefault=function(){t.isDefaultPrevented=f},t.stopPropagation=function(){t.isPropagationStopped=f},t.stopImmediatePropagation=function(){t.isImmediatePropagationStopped=f},t.isDefaultPrevented=l,t.isPropagationStopped=l,t.isImmediatePropagationStopped=l),this.settings.beforeFire&&this.settings.beforeFire(t),n=this.bindings[e],n)for(r=0,o=n.length;r<o;r++){if(i=n[r],i.once&&this.off(e,i.func),t.isImmediatePropagationStopped())return t.stopPropagation(),t;if(!1===i.func.call(this.scope,t))return t.preventDefault(),t}return t},e.prototype.on=function(e,t,n,r){var o,i,a;if(!1===t&&(t=l),t){var u={func:t};r&&Vr.extend(u,r),i=e.toLowerCase().split(" "),a=i.length;while(a--)e=i[a],o=this.bindings[e],o||(o=this.bindings[e]=[],this.toggleEvent(e,!0)),n?o.unshift(u):o.push(u)}return this},e.prototype.off=function(e,t){var n,r,o,i,a;if(e){i=e.toLowerCase().split(" "),n=i.length;while(n--){if(e=i[n],r=this.bindings[e],!e){for(o in this.bindings)this.toggleEvent(o,!1),delete this.bindings[o];return this}if(r){if(t){a=r.length;while(a--)r[a].func===t&&(r=r.slice(0,a).concat(r.slice(a+1)),this.bindings[e]=r)}else r.length=0;r.length||(this.toggleEvent(e,!1),delete this.bindings[e])}}}else{for(e in this.bindings)this.toggleEvent(e,!1);this.bindings={}}return this},e.prototype.once=function(e,t,n){return this.on(e,t,n,{once:!0})},e.prototype.has=function(e){return e=e.toLowerCase(),!(!this.bindings[e]||0===this.bindings[e].length)},e}(),xO=function(e){return e._eventDispatcher||(e._eventDispatcher=new CO({scope:e,toggleEvent:function(t,n){CO.isNative(t)&&e.toggleNativeEvent&&e.toggleNativeEvent(t,n)}})),e._eventDispatcher},EO={fire:function(e,t,n){var r=this;if(r.removed&&"remove"!==e&&"detach"!==e)return t;var o=xO(r).fire(e,t);if(!1!==n&&r.parent){var i=r.parent();while(i&&!o.isPropagationStopped())i.fire(e,o,!1),i=i.parent()}return o},on:function(e,t,n){return xO(this).on(e,t,n)},off:function(e,t){return xO(this).off(e,t)},once:function(e,t){return xO(this).once(e,t)},hasEventListeners:function(e){return xO(this).has(e)}},zO=Bu.DOM,kO=function(e,t){return"selectionchange"===t?e.getDoc():!e.inline&&/^mouse|touch|click|contextmenu|drop|dragover|dragend/.test(t)?e.getDoc().documentElement:e.settings.event_root?(e.eventRoot||(e.eventRoot=zO.select(e.settings.event_root)[0]),e.eventRoot):e.getBody()},NO=function(e){return!e.hidden&&!e_(e)},SO=function(e,t,n){NO(e)?e.fire(t,n):e_(e)&&o_(n)},TO=function(e,t){var n,r;if(e.delegates||(e.delegates={}),!e.delegates[t]&&!e.removed)if(n=kO(e,t),e.settings.event_root){if(AS||(AS={},e.editorManager.on("removeEditor",(function(){var t;if(!e.editorManager.activeEditor&&AS){for(t in AS)e.dom.unbind(kO(e,t));AS=null}}))),AS[t])return;r=function(n){var r=n.target,o=e.editorManager.get(),i=o.length;while(i--){var a=o[i].getBody();(a===r||zO.isChildOf(r,a))&&SO(o[i],t,n)}},AS[t]=r,zO.bind(n,t,r)}else r=function(n){SO(e,t,n)},zO.bind(n,t,r),e.delegates[t]=r},AO=J(J({},EO),{bindPendingEventDelegates:function(){var e=this;Vr.each(e._pendingNativeEvents,(function(t){TO(e,t)}))},toggleNativeEvent:function(e,t){var n=this;"focus"!==e&&"blur"!==e&&(t?n.initialized?TO(n,e):n._pendingNativeEvents?n._pendingNativeEvents.push(e):n._pendingNativeEvents=[e]:n.initialized&&(n.dom.unbind(kO(n,e),e,n.delegates[e]),delete n.delegates[e]))},unbindAllNativeEvents:function(){var e,t=this,n=t.getBody(),r=t.dom;if(t.delegates){for(e in t.delegates)t.dom.unbind(kO(t,e),e,t.delegates[e]);delete t.delegates}!t.inline&&n&&r&&(n.onload=null,r.unbind(t.getWin()),r.unbind(t.getDoc())),r&&(r.unbind(n),r.unbind(t.getContainer()))}}),RO=Vr.each,BO=Vr.explode,DO={f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123},MO=Vr.makeMap("alt,ctrl,shift,meta,access"),PO=function(){function e(e){this.shortcuts={},this.pendingPatterns=[],this.editor=e;var t=this;e.on("keyup keypress keydown",(function(e){!t.hasModifier(e)&&!t.isFunctionKey(e)||e.isDefaultPrevented()||(RO(t.shortcuts,(function(n){if(t.matchShortcut(e,n))return t.pendingPatterns=n.subpatterns.slice(0),"keydown"===e.type&&t.executeShortcutAction(n),!0})),t.matchShortcut(e,t.pendingPatterns[0])&&(1===t.pendingPatterns.length&&"keydown"===e.type&&t.executeShortcutAction(t.pendingPatterns[0]),t.pendingPatterns.shift()))}))}return e.prototype.add=function(e,t,n,r){var o,i=this;return o=n,"string"===typeof n?n=function(){i.editor.execCommand(o,!1,null)}:Vr.isArray(o)&&(n=function(){i.editor.execCommand(o[0],o[1],o[2])}),RO(BO(Vr.trim(e)),(function(e){var o=i.createShortcut(e,t,n,r);i.shortcuts[o.id]=o})),!0},e.prototype.remove=function(e){var t=this.createShortcut(e);return!!this.shortcuts[t.id]&&(delete this.shortcuts[t.id],!0)},e.prototype.parseShortcut=function(e){var t,n,r={};for(n in RO(BO(e.toLowerCase(),"+"),(function(e){e in MO?r[e]=!0:/^[0-9]{2,}$/.test(e)?r.keyCode=parseInt(e,10):(r.charCode=e.charCodeAt(0),r.keyCode=DO[e]||e.toUpperCase().charCodeAt(0))})),t=[r.keyCode],MO)r[n]?t.push(n):r[n]=!1;return r.id=t.join(","),r.access&&(r.alt=!0,pr.mac?r.ctrl=!0:r.shift=!0),r.meta&&(pr.mac?r.meta=!0:(r.ctrl=!0,r.meta=!1)),r},e.prototype.createShortcut=function(e,t,n,r){var o;return o=Vr.map(BO(e,">"),this.parseShortcut),o[o.length-1]=Vr.extend(o[o.length-1],{func:n,scope:r||this.editor}),Vr.extend(o[0],{desc:this.editor.translate(t),subpatterns:o.slice(1)})},e.prototype.hasModifier=function(e){return e.altKey||e.ctrlKey||e.metaKey},e.prototype.isFunctionKey=function(e){return"keydown"===e.type&&e.keyCode>=112&&e.keyCode<=123},e.prototype.matchShortcut=function(e,t){return!!t&&(t.ctrl===e.ctrlKey&&t.meta===e.metaKey&&(t.alt===e.altKey&&t.shift===e.shiftKey&&(!!(e.keyCode===t.keyCode||e.charCode&&e.charCode===t.charCode)&&(e.preventDefault(),!0))))},e.prototype.executeShortcutAction=function(e){return e.func?e.func.call(e.scope):null},e}(),_O=Vr.each,OO=Vr.trim,HO="source protocol authority userInfo user password host port relative path directory file query anchor".split(" "),LO={ftp:21,http:80,https:443,mailto:25},IO=function(){function e(t,r){t=OO(t),this.settings=r||{};var o=this.settings.base_uri,i=this;if(/^([\w\-]+):([^\/]{2})/i.test(t)||/^\s*#/.test(t))i.source=t;else{var a=0===t.indexOf("//");if(0!==t.indexOf("/")||a||(t=(o&&o.protocol||"http")+"://mce_host"+t),!/^[\w\-]*:?\/\//.test(t)){var u=this.settings.base_uri?this.settings.base_uri.path:new e(n.document.location.href).directory;if(this.settings.base_uri&&""==this.settings.base_uri.protocol)t="//mce_host"+i.toAbsPath(u,t);else{var c=/([^#?]*)([#?]?.*)/.exec(t);t=(o&&o.protocol||"http")+"://mce_host"+i.toAbsPath(u,c[1])+c[2]}}t=t.replace(/@@/g,"(mce_at)");var s=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@\/]*):?([^:@\/]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(t);_O(HO,(function(e,t){var n=s[t];n&&(n=n.replace(/\(mce_at\)/g,"@@")),i[e]=n})),o&&(i.protocol||(i.protocol=o.protocol),i.userInfo||(i.userInfo=o.userInfo),i.port||"mce_host"!==i.host||(i.port=o.port),i.host&&"mce_host"!==i.host||(i.host=o.host),i.source=""),a&&(i.protocol="")}}return e.parseDataUri=function(e){var t,n=decodeURIComponent(e).split(","),r=/data:([^;]+)/.exec(n[0]);return r&&(t=r[1]),{type:t,data:n[1]}},e.getDocumentBaseUrl=function(e){var t;return t=0!==e.protocol.indexOf("http")&&"file:"!==e.protocol?e.href:e.protocol+"//"+e.host+e.pathname,/^[^:]+:\/\/\/?[^\/]+\//.test(t)&&(t=t.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(t)||(t+="/")),t},e.prototype.setPath=function(e){var t=/^(.*?)\/?(\w+)?$/.exec(e);this.path=t[0],this.directory=t[1],this.file=t[2],this.source="",this.getURI()},e.prototype.toRelative=function(t){var n;if("./"===t)return t;var r=new e(t,{base_uri:this});if("mce_host"!==r.host&&this.host!==r.host&&r.host||this.port!==r.port||this.protocol!==r.protocol&&""!==r.protocol)return r.getURI();var o=this.getURI(),i=r.getURI();return o===i||"/"===o.charAt(o.length-1)&&o.substr(0,o.length-1)===i?o:(n=this.toRelPath(this.path,r.path),r.query&&(n+="?"+r.query),r.anchor&&(n+="#"+r.anchor),n)},e.prototype.toAbsolute=function(t,n){var r=new e(t,{base_uri:this});return r.getURI(n&&this.isSameOrigin(r))},e.prototype.isSameOrigin=function(e){if(this.host==e.host&&this.protocol==e.protocol){if(this.port==e.port)return!0;var t=LO[this.protocol];if(t&&(this.port||t)==(e.port||t))return!0}return!1},e.prototype.toRelPath=function(e,t){var n,r,o,i=0,a="",u=e.substring(0,e.lastIndexOf("/")).split("/");if(n=t.split("/"),u.length>=n.length)for(r=0,o=u.length;r<o;r++)if(r>=n.length||u[r]!==n[r]){i=r+1;break}if(u.length<n.length)for(r=0,o=n.length;r<o;r++)if(r>=u.length||u[r]!==n[r]){i=r+1;break}if(1===i)return t;for(r=0,o=u.length-(i-1);r<o;r++)a+="../";for(r=i-1,o=n.length;r<o;r++)a+=r!==i-1?"/"+n[r]:n[r];return a},e.prototype.toAbsPath=function(e,t){var n,r,o,i=0,a=[];r=/\/$/.test(t)?"/":"";var u=e.split("/"),c=t.split("/");for(_O(u,(function(e){e&&a.push(e)})),u=a,n=c.length-1,a=[];n>=0;n--)0!==c[n].length&&"."!==c[n]&&(".."!==c[n]?i>0?i--:a.push(c[n]):i++);return n=u.length-i,o=n<=0?a.reverse().join("/"):u.slice(0,n).join("/")+"/"+a.reverse().join("/"),0!==o.indexOf("/")&&(o="/"+o),r&&o.lastIndexOf("/")!==o.length-1&&(o+=r),o},e.prototype.getURI=function(e){var t;return void 0===e&&(e=!1),this.source&&!e||(t="",e||(this.protocol?t+=this.protocol+"://":t+="//",this.userInfo&&(t+=this.userInfo+"@"),this.host&&(t+=this.host),this.port&&(t+=":"+this.port)),this.path&&(t+=this.path),this.query&&(t+="?"+this.query),this.anchor&&(t+="#"+this.anchor),this.source=t),this.source},e}(),VO=function(){var e={},t={},n={},r={},o={},i={},a={},u=function(e,t){return function(n,r){return e[n.toLowerCase()]=J(J({},r),{type:t})}},c=function(e,t){return r[e.toLowerCase()]=t};return{addButton:u(e,"button"),addToggleButton:u(e,"togglebutton"),addMenuButton:u(e,"menubutton"),addSplitButton:u(e,"splitbutton"),addMenuItem:u(t,"menuitem"),addNestedMenuItem:u(t,"nestedmenuitem"),addToggleMenuItem:u(t,"togglemenuitem"),addAutocompleter:u(n,"autocompleter"),addContextMenu:u(o,"contextmenu"),addContextToolbar:u(i,"contexttoolbar"),addContextForm:u(i,"contextform"),addSidebar:u(a,"sidebar"),addIcon:c,getAll:function(){return{buttons:e,menuItems:t,icons:r,popups:n,contextMenus:o,contextToolbars:i,sidebars:a}}}},FO=function(){var e=VO();return{addAutocompleter:e.addAutocompleter,addButton:e.addButton,addContextForm:e.addContextForm,addContextMenu:e.addContextMenu,addContextToolbar:e.addContextToolbar,addIcon:e.addIcon,addMenuButton:e.addMenuButton,addMenuItem:e.addMenuItem,addNestedMenuItem:e.addNestedMenuItem,addSidebar:e.addSidebar,addSplitButton:e.addSplitButton,addToggleButton:e.addToggleButton,addToggleMenuItem:e.addToggleMenuItem,getAll:e.getAll}},UO=Bu.DOM,jO=Vr.extend,qO=Vr.each,WO=Vr.resolve,$O=pr.ie,KO=function(){function e(e,t,n){var r=this;this.plugins={},this.contentCSS=[],this.contentStyles=[],this.loadedCSS={},this.isNotDirty=!1,this.editorManager=n,this.documentBaseUrl=n.documentBaseURL,jO(this,AO),this.settings=Kp(this,e,this.documentBaseUrl,n.defaultSettings,t),this.settings.suffix&&(n.suffix=this.settings.suffix),this.suffix=n.suffix,this.settings.base_url&&n._setBaseUrl(this.settings.base_url),this.baseUri=n.baseURI,this.settings.referrer_policy&&(Iu.ScriptLoader._setReferrerPolicy(this.settings.referrer_policy),Bu.DOM.styleSheetLoader._setReferrerPolicy(this.settings.referrer_policy)),ec.languageLoad=this.settings.language_load,ec.baseURL=n.baseURL,this.id=e,this.setDirty(!1),this.documentBaseURI=new IO(this.settings.document_base_url,{base_uri:this.baseUri}),this.baseURI=this.baseUri,this.inline=!!this.settings.inline,this.shortcuts=new PO(this),this.editorCommands=new bO(this),this.settings.cache_suffix&&(pr.cacheSuffix=this.settings.cache_suffix.replace(/^[\?\&]+/,"")),this.ui={registry:FO()};var o=this,i=l_(o);this.mode=i,this.setMode=i.set,n.fire("SetupEditor",{editor:this}),this.execCallback("setup",this),this.$=Ja.overrideDefaults((function(){return{context:r.inline?r.getBody():r.getDoc(),element:r.getBody()}}))}return e.prototype.render=function(){qP.render(this)},e.prototype.focus=function(e){Jg.focus(this,e)},e.prototype.hasFocus=function(){return Jg.hasFocus(this)},e.prototype.execCallback=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r,o=this,i=o.settings[e];if(i)return o.callbackLookup&&(r=o.callbackLookup[e])&&(i=r.func,r=r.scope),"string"===typeof i&&(r=i.replace(/\.\w+$/,""),r=r?WO(r):0,i=WO(i),o.callbackLookup=o.callbackLookup||{},o.callbackLookup[e]={func:i,scope:r}),i.apply(r||o,Array.prototype.slice.call(arguments,1))},e.prototype.translate=function(e){return Zu.translate(e)},e.prototype.getParam=function(e,t,n){return Zp(this,e,t,n)},e.prototype.nodeChanged=function(e){this._nodeChangeDispatcher.nodeChanged(e)},e.prototype.addCommand=function(e,t,n){this.editorCommands.addCommand(e,t,n)},e.prototype.addQueryStateHandler=function(e,t,n){this.editorCommands.addQueryStateHandler(e,t,n)},e.prototype.addQueryValueHandler=function(e,t,n){this.editorCommands.addQueryValueHandler(e,t,n)},e.prototype.addShortcut=function(e,t,n,r){this.shortcuts.add(e,t,n,r)},e.prototype.execCommand=function(e,t,n,r){return this.editorCommands.execCommand(e,t,n,r)},e.prototype.queryCommandState=function(e){return this.editorCommands.queryCommandState(e)},e.prototype.queryCommandValue=function(e){return this.editorCommands.queryCommandValue(e)},e.prototype.queryCommandSupported=function(e){return this.editorCommands.queryCommandSupported(e)},e.prototype.show=function(){var e=this;e.hidden&&(e.hidden=!1,e.inline?e.getBody().contentEditable="true":(UO.show(e.getContainer()),UO.hide(e.id)),e.load(),e.fire("show"))},e.prototype.hide=function(){var e=this,t=e.getDoc();e.hidden||($O&&t&&!e.inline&&t.execCommand("SelectAll"),e.save(),e.inline?(e.getBody().contentEditable="false",e===e.editorManager.focusedEditor&&(e.editorManager.focusedEditor=null)):(UO.hide(e.getContainer()),UO.setStyle(e.id,"display",e.orgDisplay)),e.hidden=!0,e.fire("hide"))},e.prototype.isHidden=function(){return!!this.hidden},e.prototype.setProgressState=function(e,t){this.fire("ProgressState",{state:e,time:t})},e.prototype.load=function(e){var t,n=this,r=n.getElement();if(n.removed)return"";if(r){e=e||{},e.load=!0;var o=we.isTextareaOrInput(r)?r.value:r.innerHTML;return t=n.setContent(o,e),e.element=r,e.no_events||n.fire("LoadContent",e),e.element=r=null,t}},e.prototype.save=function(e){var t,n,r=this,o=r.getElement();if(o&&r.initialized&&!r.removed)return e=e||{},e.save=!0,e.element=o,t=e.content=r.getContent(e),e.no_events||r.fire("SaveContent",e),"raw"===e.format&&r.fire("RawSaveContent",e),t=e.content,we.isTextareaOrInput(o)?o.value=t:(!e.is_removing&&r.inline||(o.innerHTML=t),(n=UO.getParent(r.id,"form"))&&qO(n.elements,(function(e){if(e.name===r.id)return e.value=t,!1}))),e.element=o=null,!1!==e.set_dirty&&r.setDirty(!1),t},e.prototype.setContent=function(e,t){return ip(this,e,t)},e.prototype.getContent=function(e){return Tm(this,e)},e.prototype.insertContent=function(e,t){t&&(e=jO({content:e},t)),this.execCommand("mceInsertContent",!1,e)},e.prototype.resetContent=function(e){void 0===e?ip(this,this.startContent,{format:"raw"}):ip(this,e),this.undoManager.reset(),this.setDirty(!1),this.nodeChanged()},e.prototype.isDirty=function(){return!this.isNotDirty},e.prototype.setDirty=function(e){var t=!this.isNotDirty;this.isNotDirty=!e,e&&e!==t&&this.fire("dirty")},e.prototype.getContainer=function(){var e=this;return e.container||(e.container=UO.get(e.editorContainer||e.id+"_parent")),e.container},e.prototype.getContentAreaContainer=function(){return this.contentAreaContainer},e.prototype.getElement=function(){return this.targetElm||(this.targetElm=UO.get(this.id)),this.targetElm},e.prototype.getWin=function(){var e,t=this;return t.contentWindow||(e=t.iframeElement,e&&(t.contentWindow=e.contentWindow)),t.contentWindow},e.prototype.getDoc=function(){var e,t=this;return t.contentDocument||(e=t.getWin(),e&&(t.contentDocument=e.document)),t.contentDocument},e.prototype.getBody=function(){var e=this.getDoc();return this.bodyElement||(e?e.body:null)},e.prototype.convertURL=function(e,t,n){var r=this,o=r.settings;return o.urlconverter_callback?r.execCallback("urlconverter_callback",e,n,!0,t):!o.convert_urls||n&&"LINK"===n.nodeName||0===e.indexOf("file:")||0===e.length?e:o.relative_urls?r.documentBaseURI.toRelative(e):(e=r.documentBaseURI.toAbsolute(e,o.remove_script_host),e)},e.prototype.addVisual=function(e){var t,n=this,r=n.settings,o=n.dom;e=e||n.getBody(),void 0===n.hasVisual&&(n.hasVisual=r.visual),qO(o.select("table,a",e),(function(e){var i;switch(e.nodeName){case"TABLE":return t=r.visual_table_class||"mce-item-table",i=o.getAttrib(e,"border"),void(i&&"0"!==i||!n.hasVisual?o.removeClass(e,t):o.addClass(e,t));case"A":return void(o.getAttrib(e,"href")||(i=o.getAttrib(e,"name")||e.id,t=r.visual_anchor_class||"mce-item-anchor",i&&n.hasVisual?o.addClass(e,t):o.removeClass(e,t)))}})),n.fire("VisualAid",{element:e,hasVisual:n.hasVisual})},e.prototype.remove=function(){bp(this)},e.prototype.destroy=function(e){wp(this,e)},e.prototype.uploadImages=function(e){return this.editorUpload.uploadImages(e)},e.prototype._scanForImages=function(){return this.editorUpload.scanForImages()},e.prototype.addButton=function(){throw new Error("editor.addButton has been removed in tinymce 5x, use editor.ui.registry.addButton or editor.ui.registry.addToggleButton or editor.ui.registry.addSplitButton instead")},e.prototype.addSidebar=function(){throw new Error("editor.addSidebar has been removed in tinymce 5x, use editor.ui.registry.addSidebar instead")},e.prototype.addMenuItem=function(){throw new Error("editor.addMenuItem has been removed in tinymce 5x, use editor.ui.registry.addMenuItem instead")},e.prototype.addContextToolbar=function(){throw new Error("editor.addContextToolbar has been removed in tinymce 5x, use editor.ui.registry.addContextToolbar instead")},e}(),XO=Bu.DOM,YO=Vr.explode,GO=Vr.each,ZO=Vr.extend,JO=0,QO=!1,eH=[],tH=[],nH=function(e){return"length"!==e},rH=function(e){var t=e.type;GO(cH.get(),(function(n){switch(t){case"scroll":n.fire("ScrollWindow",e);break;case"resize":n.fire("ResizeWindow",e);break}}))},oH=function(e){e!==QO&&(e?Ja(window).on("resize scroll",rH):Ja(window).off("resize scroll",rH),QO=e)},iH=function(e){var t=tH;delete eH[e.id];for(var n=0;n<eH.length;n++)if(eH[n]===e){eH.splice(n,1);break}return tH=H(tH,(function(t){return e!==t})),cH.activeEditor===e&&(cH.activeEditor=tH.length>0?tH[0]:null),cH.focusedEditor===e&&(cH.focusedEditor=null),t.length!==tH.length},aH=function(e){return e&&e.initialized&&!(e.getContainer()||e.getBody()).parentNode&&(iH(e),e.unbindAllNativeEvents(),e.destroy(!0),e.removed=!0,e=null),e},uH="CSS1Compat"!==n.document.compatMode,cH=J(J({},EO),{baseURI:null,baseURL:null,defaultSettings:{},documentBaseURL:null,suffix:null,$:Ja,majorVersion:"5",minorVersion:"1.0",releaseDate:"2019-10-17",editors:eH,i18n:Zu,activeEditor:null,focusedEditor:null,settings:{},setup:function(){var e,t,r=this,o="";t=IO.getDocumentBaseUrl(n.document.location),/^[^:]+:\/\/\/?[^\/]+\//.test(t)&&(t=t.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(t)||(t+="/"));var i=window.tinymce||window.tinyMCEPreInit;if(i)e=i.base||i.baseURL,o=i.suffix;else{for(var a=n.document.getElementsByTagName("script"),u=0;u<a.length;u++){var c=a[u].src||"";if(""!==c){var s=c.substring(c.lastIndexOf("/"));if(/tinymce(\.full|\.jquery|)(\.min|\.dev|)\.js/.test(c)){-1!==s.indexOf(".min")&&(o=".min"),e=c.substring(0,c.lastIndexOf("/"));break}}}if(!e&&n.document.currentScript){c=n.document.currentScript.src;-1!==c.indexOf(".min")&&(o=".min"),e=c.substring(0,c.lastIndexOf("/"))}}r.baseURL=new IO(t).toAbsolute(e),r.documentBaseURL=t,r.baseURI=new IO(r.baseURL),r.suffix=o,Hg.setup(r)},overrideDefaults:function(e){var t,n;t=e.base_url,t&&this._setBaseUrl(t),n=e.suffix,e.suffix&&(this.suffix=n),this.defaultSettings=e;var r=e.plugin_base_urls;for(var o in r)ec.PluginManager.urls[o]=r[o]},init:function(e){var t,r,o=this;r=Vr.makeMap("area base basefont br col frame hr img input isindex link meta param embed source wbr track colgroup option table tbody tfoot thead tr th td script noscript style textarea video audio iframe object menu"," ");var i=function(e,t){return e.inline&&t.tagName.toLowerCase()in r},a=function(e){var t=e.id;return t||(t=e.name,t=t&&!XO.get(t)?e.name:XO.uniqueId(),e.setAttribute("id",t)),t},u=function(t){var n=e[t];if(n)return n.apply(o,Array.prototype.slice.call(arguments,2))},c=function(e,t){return t.constructor===RegExp?t.test(e.className):XO.hasClass(e,t)},s=function(e){var t,r=[];if(pr.browser.isIE()&&pr.browser.version.major<11)return kv.initError("TinyMCE does not support the browser you are using. For a list of supported browsers please see: https://www.tinymce.com/docs/get-started/system-requirements/"),[];if(uH)return kv.initError("Failed to initialize the editor as the document is not in standards mode. TinyMCE requires standards mode."),[];if(e.types)return GO(e.types,(function(e){r=r.concat(XO.select(e.selector))})),r;if(e.selector)return XO.select(e.selector);if(e.target)return[e.target];switch(e.mode){case"exact":t=e.elements||"",t.length>0&&GO(YO(t),(function(e){var t;(t=XO.get(e))?r.push(t):GO(n.document.forms,(function(t){GO(t.elements,(function(t){t.name===e&&(e="mce_editor_"+JO++,XO.setAttrib(t,"id",e),r.push(t))}))}))}));break;case"textareas":case"specific_textareas":GO(XO.select("textarea"),(function(t){e.editor_deselector&&c(t,e.editor_deselector)||e.editor_selector&&!c(t,e.editor_selector)||r.push(t)}));break}return r},l=function(e){t=e},f=function(){var t,n=0,r=[],c=function(e,i,a){var u=new KO(e,i,o);r.push(u),u.on("init",(function(){++n===t.length&&l(r)})),u.targetElm=u.targetElm||a,u.render()};XO.unbind(window,"ready",f),u("onpageload"),t=Ja.unique(s(e)),e.types?GO(e.types,(function(n){Vr.each(t,(function(t){return!XO.is(t,n.selector)||(c(a(t),ZO({},e,n),t),!1)}))})):(Vr.each(t,(function(e){aH(o.get(e.id))})),t=Vr.grep(t,(function(e){return!o.get(e.id)})),0===t.length?l([]):GO(t,(function(t){i(e,t)?kv.initError("Could not initialize inline editor on invalid inline target element",t):c(a(t),e,t)})))};return o.settings=e,XO.bind(window,"ready",f),new er((function(e){t?e(t):l=function(t){e(t)}}))},get:function(e){return 0===arguments.length?tH.slice(0):b(e)?V(tH,(function(t){return t.id===e})).getOr(null):k(e)&&tH[e]?tH[e]:null},add:function(e){var t,n=this;return t=eH[e.id],t===e||(null===n.get(e.id)&&(nH(e.id)&&(eH[e.id]=e),eH.push(e),tH.push(e)),oH(!0),n.activeEditor=e,n.fire("AddEditor",{editor:e}),RS||(RS=function(e){var t=n.fire("BeforeUnload");if(t.returnValue)return e.preventDefault(),e.returnValue=t.returnValue,t.returnValue},window.addEventListener("beforeunload",RS))),e},createEditor:function(e,t){return this.add(new KO(e,t,this))},remove:function(e){var t,n,r=this;if(e){if(!b(e))return n=e,x(r.get(n.id))?null:(iH(n)&&r.fire("RemoveEditor",{editor:n}),0===tH.length&&window.removeEventListener("beforeunload",RS),n.remove(),oH(tH.length>0),n);GO(XO.select(e),(function(e){n=r.get(e.id),n&&r.remove(n)}))}else for(t=tH.length-1;t>=0;t--)r.remove(tH[t])},execCommand:function(e,t,n){var r=this,o=r.get(n);switch(e){case"mceAddEditor":return r.get(n)||new KO(n,r.settings,r).render(),!0;case"mceRemoveEditor":return o&&o.remove(),!0;case"mceToggleEditor":return o?(o.isHidden()?o.show():o.hide(),!0):(r.execCommand("mceAddEditor",0,n),!0)}return!!r.activeEditor&&r.activeEditor.execCommand(e,t,n)},triggerSave:function(){GO(tH,(function(e){e.save()}))},addI18n:function(e,t){Zu.add(e,t)},translate:function(e){return Zu.translate(e)},setActive:function(e){var t=this.activeEditor;this.activeEditor!==e&&(t&&t.fire("deactivate",{relatedTarget:e}),e.fire("activate",{relatedTarget:t})),this.activeEditor=e},_setBaseUrl:function(e){this.baseURL=new IO(this.documentBaseURL).toAbsolute(e.replace(/\/+$/,"")),this.baseURI=new IO(this.baseURL)}});function sH(e){var t=function(t,n){return mh.walk(e,t,n)},n=oC,r=function(t){return Gk.normalize(e,t).fold(i(!1),(function(e){return t.setStart(e.startContainer,e.startOffset),t.setEnd(e.endContainer,e.endOffset),!0}))};return{walk:t,split:n,normalize:r}}cH.setup(),function(e){e.compareRanges=ly.isEq,e.getCaretRangeFromPoint=$z.fromPoint,e.getSelectedNode=Rs,e.getNode=Bs}(sH||(sH={}));var lH,fH,dH=sH,hH=function(e,t,r){void 0===r&&(r=1e3);var o=!1,i=null,a=function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];o||(o=!0,null!==i&&(n.clearTimeout(i),i=null),e.apply(null,t))}},u=a(e),c=a(t),s=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];o||null!==i||(i=n.setTimeout((function(){return c.apply(null,e)}),r))};return{start:s,resolve:u,reject:c}},mH=function(){var e={},t={},n=function(n,r){var o='Script at URL "'+r+'" failed to load',i='Script at URL "'+r+"\" did not call `tinymce.Resource.add('"+n+"', data)` within 1 second";if(void 0!==e[n])return e[n];var a=new er((function(e,a){var u=hH(e,a);t[n]=u.resolve,Iu.ScriptLoader.loadScript(r,(function(){return u.start(i)}),(function(){return u.reject(o)}))}));return e[n]=a,a},r=function(n,r){void 0!==t[n]&&(t[n](r),delete t[n]),e[n]=er.resolve(r)};return{load:n,add:r}},gH=mH(),pH=Math.min,vH=Math.max,yH=Math.round,bH=function(e,t,n){var r,o,i,a,u,c;return r=t.x,o=t.y,i=e.w,a=e.h,u=t.w,c=t.h,n=(n||"").split(""),"b"===n[0]&&(o+=c),"r"===n[1]&&(r+=u),"c"===n[0]&&(o+=yH(c/2)),"c"===n[1]&&(r+=yH(u/2)),"b"===n[3]&&(o-=a),"r"===n[4]&&(r-=i),"c"===n[3]&&(o-=yH(a/2)),"c"===n[4]&&(r-=yH(i/2)),zH(r,o,i,a)},wH=function(e,t,n,r){var o,i;for(i=0;i<r.length;i++)if(o=bH(e,t,r[i]),o.x>=n.x&&o.x+o.w<=n.w+n.x&&o.y>=n.y&&o.y+o.h<=n.h+n.y)return r[i];return null},CH=function(e,t,n){return zH(e.x-t,e.y-n,e.w+2*t,e.h+2*n)},xH=function(e,t){var n,r,o,i;return n=vH(e.x,t.x),r=vH(e.y,t.y),o=pH(e.x+e.w,t.x+t.w),i=pH(e.y+e.h,t.y+t.h),o-n<0||i-r<0?null:zH(n,r,o-n,i-r)},EH=function(e,t,n){var r,o,i,a,u,c,s,l,f,d;return u=e.x,c=e.y,s=e.x+e.w,l=e.y+e.h,f=t.x+t.w,d=t.y+t.h,r=vH(0,t.x-u),o=vH(0,t.y-c),i=vH(0,s-f),a=vH(0,l-d),u+=r,c+=o,n&&(s+=r,l+=o,u-=i,c-=a),s-=i,l-=a,zH(u,c,s-u,l-c)},zH=function(e,t,n,r){return{x:e,y:t,w:n,h:r}},kH=function(e){return zH(e.left,e.top,e.width,e.height)},NH={inflate:CH,relativePosition:bH,findBestRelativePosition:wH,intersect:xH,clamp:EH,create:zH,fromClientRect:kH},SH=Vr.each,TH=Vr.extend,AH=function(){};AH.extend=lH=function(e){var t,n,r,o=this,i=o.prototype,a=function(){var e,t,n,r=this;if(!fH&&(r.init&&r.init.apply(r,arguments),t=r.Mixins,t)){e=t.length;while(e--)n=t[e],n.init&&n.init.apply(r,arguments)}},u=function(){return this},c=function(e,t){return function(){var n,r=this,o=r._super;return r._super=i[e],n=t.apply(r,arguments),r._super=o,n}};for(n in fH=!0,t=new o,fH=!1,e.Mixins&&(SH(e.Mixins,(function(t){for(var n in t)"init"!==n&&(e[n]=t[n])})),i.Mixins&&(e.Mixins=i.Mixins.concat(e.Mixins))),e.Methods&&SH(e.Methods.split(","),(function(t){e[t]=u})),e.Properties&&SH(e.Properties.split(","),(function(t){var n="_"+t;e[t]=function(e){var t=this;return void 0!==e?(t[n]=e,t):t[n]}})),e.Statics&&SH(e.Statics,(function(e,t){a[t]=e})),e.Defaults&&i.Defaults&&(e.Defaults=TH({},i.Defaults,e.Defaults)),e)r=e[n],"function"===typeof r&&i[n]?t[n]=c(n,r):t[n]=r;return a.prototype=t,a.constructor=a,a.extend=lH,a};var RH,BH=Math.min,DH=Math.max,MH=Math.round,PH=function(e){var t={},n=0,r=0,o=0,i=function(e,t,n){var r,o,i,a,u,c;return r=0,o=0,i=0,e/=255,t/=255,n/=255,u=BH(e,BH(t,n)),c=DH(e,DH(t,n)),u===c?(i=u,{h:0,s:0,v:100*i}):(a=e===u?t-n:n===u?e-t:n-e,r=e===u?3:n===u?1:5,r=60*(r-a/(c-u)),o=(c-u)/c,i=c,{h:MH(r),s:MH(100*o),v:MH(100*i)})},a=function(e,t,i){var a,u,c,s;if(e=(parseInt(e,10)||0)%360,t=parseInt(t,10)/100,i=parseInt(i,10)/100,t=DH(0,BH(t,1)),i=DH(0,BH(i,1)),0!==t){switch(a=e/60,u=i*t,c=u*(1-Math.abs(a%2-1)),s=i-u,Math.floor(a)){case 0:n=u,r=c,o=0;break;case 1:n=c,r=u,o=0;break;case 2:n=0,r=u,o=c;break;case 3:n=0,r=c,o=u;break;case 4:n=c,r=0,o=u;break;case 5:n=u,r=0,o=c;break;default:n=r=o=0}n=MH(255*(n+s)),r=MH(255*(r+s)),o=MH(255*(o+s))}else n=r=o=MH(255*i)},u=function(){var e=function(e){return e=parseInt(e,10).toString(16),e.length>1?e:"0"+e};return"#"+e(n)+e(r)+e(o)},c=function(){return{r:n,g:r,b:o}},s=function(){return i(n,r,o)},l=function(e){var i;return"object"===typeof e?"r"in e?(n=e.r,r=e.g,o=e.b):"v"in e&&a(e.h,e.s,e.v):(i=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)[^\)]*\)/gi.exec(e))?(n=parseInt(i[1],10),r=parseInt(i[2],10),o=parseInt(i[3],10)):(i=/#([0-F]{2})([0-F]{2})([0-F]{2})/gi.exec(e))?(n=parseInt(i[1],16),r=parseInt(i[2],16),o=parseInt(i[3],16)):(i=/#([0-F])([0-F])([0-F])/gi.exec(e))&&(n=parseInt(i[1]+i[1],16),r=parseInt(i[2]+i[2],16),o=parseInt(i[3]+i[3],16)),n=n<0?0:n>255?255:n,r=r<0?0:r>255?255:r,o=o<0?0:o>255?255:o,t};return e&&l(e),t.toRgb=c,t.toHsv=s,t.toHex=u,t.parse=l,t},_H=function(e){var t=JSON.stringify(e);return b(t)?t.replace(/[\u0080-\uFFFF]/g,(function(e){var t=e.charCodeAt(0).toString(16);return"\\u"+"0000".substring(t.length)+t})):t},OH={serialize:_H,parse:function(e){try{return JSON.parse(e)}catch(t){}}},HH={callbacks:{},count:0,send:function(e){var t=this,n=Bu.DOM,r=void 0!==e.count?e.count:t.count,o="tinymce_jsonp_"+r;t.callbacks[r]=function(i){n.remove(o),delete t.callbacks[r],e.callback(i)},n.add(n.doc.body,"script",{id:o,src:e.url,type:"text/javascript"}),t.count++}},LH=J(J({},EO),{send:function(e){var t,r=0,o=function(){!e.async||4===t.readyState||r++>1e4?(e.success&&r<1e4&&200===t.status?e.success.call(e.success_scope,""+t.responseText,t,e):e.error&&e.error.call(e.error_scope,r>1e4?"TIMED_OUT":"GENERAL",t,e),t=null):ur.setTimeout(o,10)};if(e.scope=e.scope||this,e.success_scope=e.success_scope||e.scope,e.error_scope=e.error_scope||e.scope,e.async=!1!==e.async,e.data=e.data||"",LH.fire("beforeInitialize",{settings:e}),t=new n.XMLHttpRequest,t){if(t.overrideMimeType&&t.overrideMimeType(e.content_type),t.open(e.type||(e.data?"POST":"GET"),e.url,e.async),e.crossDomain&&(t.withCredentials=!0),e.content_type&&t.setRequestHeader("Content-Type",e.content_type),e.requestheaders&&Vr.each(e.requestheaders,(function(e){t.setRequestHeader(e.key,e.value)})),t.setRequestHeader("X-Requested-With","XMLHttpRequest"),t=LH.fire("beforeSend",{xhr:t,settings:e}).xhr,t.send(e.data),!e.async)return o();ur.setTimeout(o,10)}}}),IH=Vr.extend,VH=function(){function e(e){this.settings=IH({},e),this.count=0}return e.sendRPC=function(t){return(new e).send(t)},e.prototype.send=function(e){var t=e.error,n=e.success,r=IH(this.settings,e);r.success=function(e,o){e=OH.parse(e),"undefined"===typeof e&&(e={error:"JSON Parse error."}),e.error?t.call(r.error_scope||r.scope,e.error,o):n.call(r.success_scope||r.scope,e.result)},r.error=function(e,n){t&&t.call(r.error_scope||r.scope,e,n)},r.data=OH.serialize({id:e.id||"c"+this.count++,method:e.method,params:e.params}),r.content_type="application/json",LH.send(r)},e}(),FH=function(){return function(){var e={},t=[],n={getItem:function(t){var n=e[t];return n||null},setItem:function(n,r){t.push(n),e[n]=String(r)},key:function(e){return t[e]},removeItem:function(n){t=t.filter((function(e){return e===n})),delete e[n]},clear:function(){t=[],e={}},length:0};return Object.defineProperty(n,"length",{get:function(){return t.length},configurable:!1,enumerable:!1}),n}()};try{RH=n.window.localStorage}catch(KH){RH=FH()}var UH=RH,jH={geom:{Rect:NH},util:{Promise:er,Delay:ur,Tools:Vr,VK:by,URI:IO,Class:AH,EventDispatcher:CO,Observable:EO,I18n:Zu,XHR:LH,JSON:OH,JSONRequest:VH,JSONP:HH,LocalStorage:UH,Color:PH},dom:{EventUtils:xi,Sizzle:aa,DomQuery:Ja,TreeWalker:Qa,DOMUtils:Bu,ScriptLoader:Iu,RangeUtils:dH,Serializer:oz,ControlSelection:lz,BookmarkManager:az,Selection:pN,Event:xi.Event},html:{Styles:li,Entities:Do,Node:Rh,Schema:jo,SaxParser:Lh,DomParser:GE,Writer:Rm,Serializer:Bm},Env:pr,AddOnManager:ec,Annotator:Nh,Formatter:kE,UndoManager:Iw,EditorCommands:bO,WindowManager:mv,NotificationManager:dv,EditorObservable:AO,Shortcuts:PO,Editor:KO,FocusManager:Cg,EditorManager:cH,DOM:Bu.DOM,ScriptLoader:Iu.ScriptLoader,PluginManager:ec.PluginManager,ThemeManager:ec.ThemeManager,IconManager:Tv,Resource:gH,trim:Vr.trim,isArray:Vr.isArray,is:Vr.is,toArray:Vr.toArray,makeMap:Vr.makeMap,each:Vr.each,map:Vr.map,grep:Vr.grep,inArray:Vr.inArray,extend:Vr.extend,create:Vr.create,walk:Vr.walk,createNS:Vr.createNS,resolve:Vr.resolve,explode:Vr.explode,_addCacheSuffix:Vr._addCacheSuffix,isOpera:pr.opera,isWebKit:pr.webkit,isIE:pr.ie,isGecko:pr.gecko,isMac:pr.mac},qH=Vr.extend(cH,jH),WH=function(t){try{e.exports=t}catch(n){}},$H=function(e){window.tinymce=e,window.tinyMCE=e};$H(qH),WH(qH)})(window)}).call(this,n("c8ba"))}}]);
|