vue-tinymce-editor
Version:
This a component provides easy use of tinymce for vue developers
1 lines • 1.04 MB
JavaScript
webpackJsonp([0],{"+3YR":function(e,t){!function(){!function(){"use strict";function e(){}var t=tinymce.util.Tools.resolve("tinymce.PluginManager"),n=tinymce.util.Tools.resolve("tinymce.util.Tools"),r=[["cool","cry","embarassed","foot-in-mouth"],["frown","innocent","kiss","laughing"],["money-mouth","sealed","smile","surprised"],["tongue-out","undecided","wink","yell"]],o=function(e){var t;return t='<table role="list" class="mce-grid">',n.each(r,function(r){t+="<tr>",n.each(r,function(n){var r=e+"/img/smiley-"+n+".gif";t+='<td><a href="#" data-mce-url="'+r+'" data-mce-alt="'+n+'" tabindex="-1" role="option" aria-label="'+n+'"><img src="'+r+'" style="width: 18px; height: 18px" role="presentation" /></a></td>'}),t+="</tr>"}),t+="</table>"},i={getHtml:o},a=function(e,t,n){e.insertContent(e.dom.createHTML("img",{src:t,alt:n}))},u=function(e,t){var n=i.getHtml(t);e.addButton("emoticons",{type:"panelbutton",panel:{role:"application",autohide:!0,html:n,onclick:function(t){var n=e.dom.getParent(t.target,"a");n&&(a(e,n.getAttribute("data-mce-url"),n.getAttribute("data-mce-alt")),this.hide())}},tooltip:"Emoticons"})},s={register:u};t.add("emoticons",function(e,t){s.register(e,t)})}()}()},"+uI+":function(e,t){!function(){!function(){"use strict";function e(){}var t=tinymce.util.Tools.resolve("tinymce.PluginManager"),n=function(e,t){return e.fire("insertCustomChar",{chr:t})},r={fireInsertCustomChar:n},o=function(e,t){var n=r.fireInsertCustomChar(e,t).chr;e.execCommand("mceInsertContent",!1,n)},i={insertChar:o},a=tinymce.util.Tools.resolve("tinymce.util.Tools"),u=function(e){return e.settings.charmap},s=function(e){return e.settings.charmap_append},c={getCharMap:u,getCharMapAppend:s},l=a.isArray,f=function(){return[["160","no-break space"],["173","soft hyphen"],["34","quotation mark"],["162","cent sign"],["8364","euro sign"],["163","pound sign"],["165","yen sign"],["169","copyright sign"],["174","registered sign"],["8482","trade mark sign"],["8240","per mille sign"],["181","micro sign"],["183","middle dot"],["8226","bullet"],["8230","three dot leader"],["8242","minutes / feet"],["8243","seconds / inches"],["167","section sign"],["182","paragraph sign"],["223","sharp s / ess-zed"],["8249","single left-pointing angle quotation mark"],["8250","single right-pointing angle quotation mark"],["171","left pointing guillemet"],["187","right pointing guillemet"],["8216","left single quotation mark"],["8217","right single quotation mark"],["8220","left double quotation mark"],["8221","right double quotation mark"],["8218","single low-9 quotation mark"],["8222","double low-9 quotation mark"],["60","less-than sign"],["62","greater-than sign"],["8804","less-than or equal to"],["8805","greater-than or equal to"],["8211","en dash"],["8212","em dash"],["175","macron"],["8254","overline"],["164","currency sign"],["166","broken bar"],["168","diaeresis"],["161","inverted exclamation mark"],["191","turned question mark"],["710","circumflex accent"],["732","small tilde"],["176","degree sign"],["8722","minus sign"],["177","plus-minus sign"],["247","division sign"],["8260","fraction slash"],["215","multiplication sign"],["185","superscript one"],["178","superscript two"],["179","superscript three"],["188","fraction one quarter"],["189","fraction one half"],["190","fraction three quarters"],["402","function / florin"],["8747","integral"],["8721","n-ary sumation"],["8734","infinity"],["8730","square root"],["8764","similar to"],["8773","approximately equal to"],["8776","almost equal to"],["8800","not equal to"],["8801","identical to"],["8712","element of"],["8713","not an element of"],["8715","contains as member"],["8719","n-ary product"],["8743","logical and"],["8744","logical or"],["172","not sign"],["8745","intersection"],["8746","union"],["8706","partial differential"],["8704","for all"],["8707","there exists"],["8709","diameter"],["8711","backward difference"],["8727","asterisk operator"],["8733","proportional to"],["8736","angle"],["180","acute accent"],["184","cedilla"],["170","feminine ordinal indicator"],["186","masculine ordinal indicator"],["8224","dagger"],["8225","double dagger"],["192","A - grave"],["193","A - acute"],["194","A - circumflex"],["195","A - tilde"],["196","A - diaeresis"],["197","A - ring above"],["256","A - macron"],["198","ligature AE"],["199","C - cedilla"],["200","E - grave"],["201","E - acute"],["202","E - circumflex"],["203","E - diaeresis"],["274","E - macron"],["204","I - grave"],["205","I - acute"],["206","I - circumflex"],["207","I - diaeresis"],["298","I - macron"],["208","ETH"],["209","N - tilde"],["210","O - grave"],["211","O - acute"],["212","O - circumflex"],["213","O - tilde"],["214","O - diaeresis"],["216","O - slash"],["332","O - macron"],["338","ligature OE"],["352","S - caron"],["217","U - grave"],["218","U - acute"],["219","U - circumflex"],["220","U - diaeresis"],["362","U - macron"],["221","Y - acute"],["376","Y - diaeresis"],["562","Y - macron"],["222","THORN"],["224","a - grave"],["225","a - acute"],["226","a - circumflex"],["227","a - tilde"],["228","a - diaeresis"],["229","a - ring above"],["257","a - macron"],["230","ligature ae"],["231","c - cedilla"],["232","e - grave"],["233","e - acute"],["234","e - circumflex"],["235","e - diaeresis"],["275","e - macron"],["236","i - grave"],["237","i - acute"],["238","i - circumflex"],["239","i - diaeresis"],["299","i - macron"],["240","eth"],["241","n - tilde"],["242","o - grave"],["243","o - acute"],["244","o - circumflex"],["245","o - tilde"],["246","o - diaeresis"],["248","o slash"],["333","o macron"],["339","ligature oe"],["353","s - caron"],["249","u - grave"],["250","u - acute"],["251","u - circumflex"],["252","u - diaeresis"],["363","u - macron"],["253","y - acute"],["254","thorn"],["255","y - diaeresis"],["563","y - macron"],["913","Alpha"],["914","Beta"],["915","Gamma"],["916","Delta"],["917","Epsilon"],["918","Zeta"],["919","Eta"],["920","Theta"],["921","Iota"],["922","Kappa"],["923","Lambda"],["924","Mu"],["925","Nu"],["926","Xi"],["927","Omicron"],["928","Pi"],["929","Rho"],["931","Sigma"],["932","Tau"],["933","Upsilon"],["934","Phi"],["935","Chi"],["936","Psi"],["937","Omega"],["945","alpha"],["946","beta"],["947","gamma"],["948","delta"],["949","epsilon"],["950","zeta"],["951","eta"],["952","theta"],["953","iota"],["954","kappa"],["955","lambda"],["956","mu"],["957","nu"],["958","xi"],["959","omicron"],["960","pi"],["961","rho"],["962","final sigma"],["963","sigma"],["964","tau"],["965","upsilon"],["966","phi"],["967","chi"],["968","psi"],["969","omega"],["8501","alef symbol"],["982","pi symbol"],["8476","real part symbol"],["978","upsilon - hook symbol"],["8472","Weierstrass p"],["8465","imaginary part"],["8592","leftwards arrow"],["8593","upwards arrow"],["8594","rightwards arrow"],["8595","downwards arrow"],["8596","left right arrow"],["8629","carriage return"],["8656","leftwards double arrow"],["8657","upwards double arrow"],["8658","rightwards double arrow"],["8659","downwards double arrow"],["8660","left right double arrow"],["8756","therefore"],["8834","subset of"],["8835","superset of"],["8836","not a subset of"],["8838","subset of or equal to"],["8839","superset of or equal to"],["8853","circled plus"],["8855","circled times"],["8869","perpendicular"],["8901","dot operator"],["8968","left ceiling"],["8969","right ceiling"],["8970","left floor"],["8971","right floor"],["9001","left-pointing angle bracket"],["9002","right-pointing angle bracket"],["9674","lozenge"],["9824","black spade suit"],["9827","black club suit"],["9829","black heart suit"],["9830","black diamond suit"],["8194","en space"],["8195","em space"],["8201","thin space"],["8204","zero width non-joiner"],["8205","zero width joiner"],["8206","left-to-right mark"],["8207","right-to-left mark"]]},d=function(e){return a.grep(e,function(e){return l(e)&&2===e.length})},m=function(e){return l(e)?[].concat(d(e)):"function"==typeof e?e():[]},p=function(e,t){var n=c.getCharMap(e);n&&(t=m(n));var r=c.getCharMapAppend(e);return r?[].concat(t).concat(m(r)):t},g=function(e){return p(e,f())},h={getCharMap:g},v=function(e){return{getCharMap:function(){return h.getCharMap(e)},insertChar:function(t){i.insertChar(e,t)}}},y={get:v},b=function(e){var t,n,r,o=Math.min(e.length,25),i=Math.ceil(e.length/o);for(t='<table role="presentation" cellspacing="0" class="mce-charmap"><tbody>',r=0;r<i;r++){for(t+="<tr>",n=0;n<o;n++){var a=r*o+n;if(a<e.length){var u=e[a],s=parseInt(u[0],10),c=u?String.fromCharCode(s):" ";t+='<td title="'+u[1]+'"><div tabindex="-1" title="'+u[1]+'" role="button" data-chr="'+s+'">'+c+"</div></td>"}else t+="<td />"}t+="</tr>"}return t+="</tbody></table>"},w={getHtml:b},x=function(e){for(;e;){if("TD"===e.nodeName)return e;e=e.parentNode}},C=function(e){var t,n={type:"container",html:w.getHtml(h.getCharMap(e)),onclick:function(n){var r=n.target;if(/^(TD|DIV)$/.test(r.nodeName)){var o=x(r).firstChild;if(o&&o.hasAttribute("data-chr")){var a=o.getAttribute("data-chr"),u=parseInt(a,10);isNaN(u)||i.insertChar(e,String.fromCharCode(u)),n.ctrlKey||t.close()}}},onmouseover:function(e){var n=x(e.target);n&&n.firstChild?(t.find("#preview").text(n.firstChild.firstChild.data),t.find("#previewTitle").text(n.title)):(t.find("#preview").text(" "),t.find("#previewTitle").text(" "))}};t=e.windowManager.open({title:"Special character",spacing:10,padding:10,items:[n,{type:"container",layout:"flex",direction:"column",align:"center",spacing:5,minWidth:160,minHeight:160,items:[{type:"label",name:"preview",text:" ",style:"font-size: 40px; text-align: center",border:1,minWidth:140,minHeight:80},{type:"spacer",minHeight:20},{type:"label",name:"previewTitle",text:" ",style:"white-space: pre-wrap;",border:1,minWidth:140}]}],buttons:[{text:"Close",onclick:function(){t.close()}}]})},k={open:C},T=function(e){e.addCommand("mceShowCharmap",function(){k.open(e)})},S={register:T},E=function(e){e.addButton("charmap",{icon:"charmap",tooltip:"Special character",cmd:"mceShowCharmap"}),e.addMenuItem("charmap",{icon:"charmap",text:"Special character",cmd:"mceShowCharmap",context:"insert"})},_={register:E};t.add("charmap",function(e){return S.register(e),_.register(e),y.get(e)})}()}()},"/Xt6":function(e,t,n){n("3saF")},"0qAb":function(e,t){!function(){!function(){"use strict";function e(){}var t=function(e){var n=e,r=function(){return n};return{get:r,set:function(e){n=e},clone:function(){return t(r())}}},n=tinymce.util.Tools.resolve("tinymce.PluginManager"),r=function(e){return{isEnabled:function(){return e.get()}}},o={get:r},i=function(e,t){return e.fire("VisualChars",{state:t})},a={fireVisualChars:i},u={" ":"nbsp","":"shy"},s=function(e,t){var n,r="";for(n in e)r+=n;return new RegExp("["+r+"]",t?"g":"")},c=function(e){var t,n="";for(t in e)n&&(n+=","),n+="span.mce-"+e[t];return n},l={charMap:u,regExp:s(u),regExpGlobal:s(u,!0),selector:c(u),charMapToRegExp:s,charMapToSelector:c},f=function(){},d=function(e){return function(){return e()}},m=function(e,t){return function(){return e(t.apply(null,arguments))}},p=function(e){return function(){return e}},g=function(e){return e},h=function(e,t){return e===t},v=function(e){for(var t=new Array(arguments.length-1),n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];var o=t.concat(n);return e.apply(null,o)}},y=function(e){return function(){return!e.apply(null,arguments)}},b=function(e){return function(){throw new Error(e)}},w=function(e){return e()},x=function(e){e()},C=p(!1),k=p(!0),T={noop:f,noarg:d,compose:m,constant:p,identity:g,tripleEquals:h,curry:v,not:y,die:b,apply:w,call:x,never:C,always:k},S=T.never,E=T.always,_=function(){return N},N=function(){var e=function(e){return e.isNone()},t=function(e){return e()},n=function(e){return e},r=function(){},o={fold:function(e,t){return e()},is:S,isSome:S,isNone:E,getOr:n,getOrThunk:t,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},or:n,orThunk:t,map:_,ap:_,each:r,bind:_,flatten:_,exists:S,forall:E,filter:_,equals:e,equals_:e,toArray:function(){return[]},toString:T.constant("none()")};return Object.freeze&&Object.freeze(o),o}(),R=function(e){var t=function(){return e},n=function(){return i},r=function(t){return R(t(e))},o=function(t){return t(e)},i={fold:function(t,n){return n(e)},is:function(t){return e===t},isSome:E,isNone:S,getOr:t,getOrThunk:t,getOrDie:t,or:n,orThunk:n,map:r,ap:function(t){return t.fold(_,function(t){return R(t(e))})},each:function(t){t(e)},bind:o,flatten:t,exists:o,forall:o,filter:function(t){return t(e)?i:N},equals:function(t){return t.is(e)},equals_:function(t,n){return t.fold(S,function(t){return n(e,t)})},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return i},A=function(e){return null===e||void 0===e?N:R(e)},D={some:R,none:_,from:A},P=function(){var e=Array.prototype.indexOf,t=function(t,n){return e.call(t,n)},n=function(e,t){return Y(e,t)};return void 0===e?n:t}(),O=function(e,t){var n=P(e,t);return-1===n?D.none():D.some(n)},B=function(e,t){return P(e,t)>-1},I=function(e,t){return K(e,t).isSome()},M=function(e,t){for(var n=[],r=0;r<e;r++)n.push(t(r));return n},L=function(e,t){for(var n=[],r=0;r<e.length;r+=t){var o=e.slice(r,r+t);n.push(o)}return n},F=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,e)}return r},H=function(e,t){for(var n=0,r=e.length;n<r;n++){t(e[n],n,e)}},z=function(e,t){for(var n=e.length-1;n>=0;n--){t(e[n],n,e)}},U=function(e,t){for(var n=[],r=[],o=0,i=e.length;o<i;o++){var a=e[o];(t(a,o,e)?n:r).push(a)}return{pass:n,fail:r}},$=function(e,t){for(var n=[],r=0,o=e.length;r<o;r++){var i=e[r];t(i,r,e)&&n.push(i)}return n},W=function(e,t){if(0===e.length)return[];for(var n=t(e[0]),r=[],o=[],i=0,a=e.length;i<a;i++){var u=e[i],s=t(u);s!==n&&(r.push(o),o=[]),n=s,o.push(u)}return 0!==o.length&&r.push(o),r},j=function(e,t,n){return z(e,function(e){n=t(n,e)}),n},q=function(e,t,n){return H(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,e))return D.some(o)}return D.none()},K=function(e,t){for(var n=0,r=e.length;n<r;n++){if(t(e[n],n,e))return D.some(n)}return D.none()},Y=function(e,t){for(var n=0,r=e.length;n<r;++n)if(e[n]===t)return n;return-1},X=Array.prototype.push,G=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!Array.prototype.isPrototypeOf(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);X.apply(t,e[n])}return t},J=function(e,t){var n=F(e,t);return G(n)},Z=function(e,t){for(var n=0,r=e.length;n<r;++n){if(!0!==t(e[n],n,e))return!1}return!0},Q=function(e,t){return e.length===t.length&&Z(e,function(e,n){return e===t[n]})},ee=Array.prototype.slice,te=function(e){var t=ee.call(e,0);return t.reverse(),t},ne=function(e,t){return $(e,function(e){return!B(t,e)})},re=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},oe=function(e){return[e]},ie=function(e,t){var n=ee.call(e,0);return n.sort(t),n},ae=function(e){return 0===e.length?D.none():D.some(e[0])},ue=function(e){return 0===e.length?D.none():D.some(e[e.length-1])},se={map:F,each:H,eachr:z,partition:U,filter:$,groupBy:W,indexOf:O,foldr:j,foldl:q,find:V,findIndex:K,flatten:G,bind:J,forall:Z,exists:I,contains:B,equal:Q,reverse:te,chunk:L,difference:ne,mapToObject:re,pure:oe,sort:ie,range:M,head:ae,last:ue},ce=function(e,t){var n=t||document,r=n.createElement("div");if(r.innerHTML=e,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",e),"HTML must have a single root node";return de(r.childNodes[0])},le=function(e,t){var n=t||document,r=n.createElement(e);return de(r)},fe=function(e,t){var n=t||document,r=n.createTextNode(e);return de(r)},de=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:T.constant(e)}},me=function(e,t,n){return D.from(e.dom().elementFromPoint(t,n)).map(de)},pe={fromHtml:ce,fromTag:le,fromText:fe,fromDom:de,fromPoint:me},ge={ATTRIBUTE:2,CDATA_SECTION:4,COMMENT:8,DOCUMENT:9,DOCUMENT_TYPE:10,DOCUMENT_FRAGMENT:11,ELEMENT:1,TEXT:3,PROCESSING_INSTRUCTION:7,ENTITY_REFERENCE:5,ENTITY:6,NOTATION:12},he=function(e){return e.dom().nodeName.toLowerCase()},ve=function(e){return e.dom().nodeType},ye=function(e){return e.dom().nodeValue},be=function(e){return function(t){return ve(t)===e}},we=function(e){return ve(e)===ge.COMMENT||"#comment"===he(e)},xe=be(ge.ELEMENT),Ce=be(ge.TEXT),ke=be(ge.DOCUMENT),Te={name:he,type:ve,value:ye,isElement:xe,isText:Ce,isDocument:ke,isComment:we},Se=function(e){return'<span data-mce-bogus="1" class="mce-'+l.charMap[e]+'">'+e+"</span>"},Ee={wrapCharWithSpan:Se},_e=function(e){return Te.isText(e)&&void 0!==Te.value(e)&&l.regExp.test(Te.value(e))},Ne=function(e,t){var n=[],r=e.dom(),o=se.map(r.childNodes,pe.fromDom);return se.each(o,function(e){t(e)&&(n=n.concat([e])),n=n.concat(Ne(e,t))}),n},Re=function(e,t){for(;e.parentNode;){if(e.parentNode===t)return e;e=e.parentNode}},Ae=function(e){return e.replace(l.regExpGlobal,Ee.wrapCharWithSpan)},De={isMatch:_e,filterDescendants:Ne,findParentElm:Re,replaceWithSpans:Ae},Pe=function(e,t){var n,r,o=De.filterDescendants(pe.fromDom(t),De.isMatch);se.each(o,function(t){var o=De.replaceWithSpans(Te.value(t));for(r=e.dom.create("div",null,o);n=r.lastChild;)e.dom.insertAfter(n,t.dom());e.dom.remove(t.dom())})},Oe=function(e,t){var n=e.dom.select(l.selector,t);se.each(n,function(t){e.dom.remove(t,1)})},Be=function(e){var t=e.getBody(),n=e.selection.getBookmark(),r=De.findParentElm(e.selection.getNode(),t);r=void 0!==r?r:t,Oe(e,r),Pe(e,r),e.selection.moveToBookmark(n)},Ie={show:Pe,hide:Oe,toggle:Be},Me=function(e,t){var n,r=e.getBody(),o=e.selection;t.set(!t.get()),a.fireVisualChars(e,t.get()),n=o.getBookmark(),!0===t.get()?Ie.show(e,r):Ie.hide(e,r),o.moveToBookmark(n)},Le={toggleVisualChars:Me},Fe=function(e,t){e.addCommand("mceVisualChars",function(){Le.toggleVisualChars(e,t)})},He={register:Fe},ze=tinymce.util.Tools.resolve("tinymce.util.Delay"),Ue=function(e,t){var n=ze.debounce(function(){Ie.toggle(e)},300);!1!==e.settings.forced_root_block&&e.on("keydown",function(r){!0===t.get()&&(13===r.keyCode?Ie.toggle(e):n())})},$e={setup:Ue},We=function(e){return function(t){var n=t.control;e.on("VisualChars",function(e){n.active(e.state)})}},je=function(e){e.addButton("visualchars",{active:!1,title:"Show invisible characters",cmd:"mceVisualChars",onPostRender:We(e)}),e.addMenuItem("visualchars",{text:"Show invisible characters",cmd:"mceVisualChars",onPostRender:We(e),selectable:!0,context:"view",prependToContext:!0})};n.add("visualchars",function(e){var n=t(!1);return He.register(e,n),je(e),$e.setup(e,n),o.get(n)})}()}()},"1+T2":function(e,t){!function(){!function(){"use strict";function e(){}var t=tinymce.util.Tools.resolve("tinymce.PluginManager"),n=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),r=tinymce.util.Tools.resolve("tinymce.EditorManager"),o=tinymce.util.Tools.resolve("tinymce.Env"),i=tinymce.util.Tools.resolve("tinymce.util.Delay"),a=tinymce.util.Tools.resolve("tinymce.util.Tools"),u=tinymce.util.Tools.resolve("tinymce.util.VK"),s=function(e){return e.getParam("tabfocus_elements",":prev,:next")},c=function(e){return e.getParam("tab_focus",s(e))},l={getTabFocus:c},f=n.DOM,d=function(e){e.keyCode!==u.TAB||e.ctrlKey||e.altKey||e.metaKey||e.preventDefault()},m=function(e){function t(t){function n(n){function o(e){return"BODY"===e.nodeName||"hidden"!==e.type&&"none"!==e.style.display&&"hidden"!==e.style.visibility&&o(e.parentNode)}function i(e){return/INPUT|TEXTAREA|BUTTON/.test(e.tagName)&&r.get(t.id)&&-1!==e.tabIndex&&o(e)}if(c=f.select(":input:enabled,*[tabindex]:not(iframe)"),a.each(c,function(t,n){if(t.id===e.id)return s=n,!1}),n>0){for(m=s+1;m<c.length;m++)if(i(c[m]))return c[m]}else for(m=s-1;m>=0;m--)if(i(c[m]))return c[m];return null}var s,c,d,m;if(!(t.keyCode!==u.TAB||t.ctrlKey||t.altKey||t.metaKey||t.isDefaultPrevented())&&(d=a.explode(l.getTabFocus(e)),1===d.length&&(d[1]=d[0],d[0]=":prev"),c=t.shiftKey?":prev"===d[0]?n(-1):f.get(d[0]):":next"===d[1]?n(1):f.get(d[1]))){var p=r.get(c.id||c.name);c.id&&p?p.focus():i.setTimeout(function(){o.webkit||window.focus(),c.focus()},10),t.preventDefault()}}e.on("init",function(){e.inline&&f.setAttrib(e.getBody(),"tabIndex",null),e.on("keyup",d),o.gecko?e.on("keypress keydown",t):e.on("keydown",t)})},p={setup:m};t.add("tabfocus",function(e){p.setup(e)})}()}()},"162o":function(e,t,n){function r(e,t){this._id=e,this._clearFn=t}var o=Function.prototype.apply;t.setTimeout=function(){return new r(o.call(setTimeout,window,arguments),clearTimeout)},t.setInterval=function(){return new r(o.call(setInterval,window,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(window,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n("mypn"),t.setImmediate=setImmediate,t.clearImmediate=clearImmediate},"1Jrq":function(e,t){!function(){!function(){"use strict";function e(){}var t=function(e){var n=e,r=function(){return n};return{get:r,set:function(e){n=e},clone:function(){return t(r())}}},n=tinymce.util.Tools.resolve("tinymce.PluginManager"),r=function(e){return e.getParam("insertdatetime_dateformat",e.translate("%Y-%m-%d"))},o=function(e){return e.getParam("insertdatetime_timeformat",e.translate("%H:%M:%S"))},i=function(e){return e.getParam("insertdatetime_formats",["%H:%M:%S","%Y-%m-%d","%I:%M:%S %p","%D"])},a=function(e){var t=i(e);return t.length>0?t[0]:o(e)},u=function(e){return e.getParam("insertdatetime_element",!1)},s={getDateFormat:r,getTimeFormat:o,getFormats:i,getDefaultDateTime:a,shouldInsertTimeElement:u},c="Sun Mon Tue Wed Thu Fri Sat Sun".split(" "),l="Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sunday".split(" "),f="Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),d="January February March April May June July August September October November December".split(" "),m=function(e,t){if(e=""+e,e.length<t)for(var n=0;n<t-e.length;n++)e="0"+e;return e},p=function(e,t,n){return n=n||new Date,t=t.replace("%D","%m/%d/%Y"),t=t.replace("%r","%I:%M:%S %p"),t=t.replace("%Y",""+n.getFullYear()),t=t.replace("%y",""+n.getYear()),t=t.replace("%m",m(n.getMonth()+1,2)),t=t.replace("%d",m(n.getDate(),2)),t=t.replace("%H",""+m(n.getHours(),2)),t=t.replace("%M",""+m(n.getMinutes(),2)),t=t.replace("%S",""+m(n.getSeconds(),2)),t=t.replace("%I",""+((n.getHours()+11)%12+1)),t=t.replace("%p",n.getHours()<12?"AM":"PM"),t=t.replace("%B",""+e.translate(d[n.getMonth()])),t=t.replace("%b",""+e.translate(f[n.getMonth()])),t=t.replace("%A",""+e.translate(l[n.getDay()])),t=t.replace("%a",""+e.translate(c[n.getDay()])),t=t.replace("%%","%")},g=function(e,t,n,r){var o=e.dom.create("time",{datetime:n},r);t.parentNode.insertBefore(o,t),e.dom.remove(t),e.selection.select(o,!0),e.selection.collapse(!1)},h=function(e,t){if(s.shouldInsertTimeElement(e)){var n=p(e,t),r=void 0;r=/%[HMSIp]/.test(t)?p(e,"%Y-%m-%dT%H:%M"):p(e,"%Y-%m-%d");var o=e.dom.getParent(e.selection.getStart(),"time");o?g(e,o,r,n):e.insertContent('<time datetime="'+r+'">'+n+"</time>")}else e.insertContent(p(e,t))},v={insertDateTime:h,getDateTime:p},y=function(e){e.addCommand("mceInsertDate",function(){v.insertDateTime(e,s.getDateFormat(e))}),e.addCommand("mceInsertTime",function(){v.insertDateTime(e,s.getTimeFormat(e))})},b={register:y},w=tinymce.util.Tools.resolve("tinymce.util.Tools"),x=function(e,t){var n=s.getFormats(e);return w.map(n,function(n){return{text:v.getDateTime(e,n),onclick:function(){t.set(n),v.insertDateTime(e,n)}}})},C=function(e,t){var n=x(e,t);e.addButton("insertdatetime",{type:"splitbutton",title:"Insert date/time",menu:n,onclick:function(){var n=t.get();v.insertDateTime(e,n||s.getDefaultDateTime(e))}}),e.addMenuItem("insertdatetime",{icon:"date",text:"Date/time",menu:n,context:"insert"})},k={register:C};n.add("insertdatetime",function(e){var n=t(null);b.register(e),k.register(e,n)})}()}()},"1tuh":function(e,t,n){n("wKVN")},"3OjJ":function(e,t,n){n("WA99")},"3dPY":function(e,t){!function(){!function(){"use strict";function e(){}var t=tinymce.util.Tools.resolve("tinymce.PluginManager"),n=function(e,t){for(var n="",r=0;r<t;r++)n+=e;return n},r=function(e){return!!e.plugins.visualchars&&e.plugins.visualchars.isEnabled()},o=function(e,t){var o=r(e)?'<span class="mce-nbsp"> </span>':" ";e.insertContent(n(o,t)),e.dom.setAttrib(e.dom.select("span.mce-nbsp"),"data-mce-bogus","1")},i={insertNbsp:o},a=function(e){e.addCommand("mceNonBreaking",function(){i.insertNbsp(e,1)})},u={register:a},s=tinymce.util.Tools.resolve("tinymce.util.VK"),c=function(e){var t=e.getParam("nonbreaking_force_tab",0);return"boolean"==typeof t?!0===t?3:0:t},l={getKeyboardSpaces:c},f=function(e){var t=l.getKeyboardSpaces(e);t>0&&e.on("keydown",function(n){if(n.keyCode===s.TAB&&!n.isDefaultPrevented()){if(n.shiftKey)return;n.preventDefault(),n.stopImmediatePropagation(),i.insertNbsp(e,t)}})},d={setup:f},m=function(e){e.addButton("nonbreaking",{title:"Nonbreaking space",cmd:"mceNonBreaking"}),e.addMenuItem("nonbreaking",{text:"Nonbreaking space",cmd:"mceNonBreaking",context:"insert"})},p={register:m};t.add("nonbreaking",function(e){u.register(e),p.register(e),d.setup(e)})}()}()},"3saF":function(e,t){!function(){!function(){"use strict";function e(){}var t=tinymce.util.Tools.resolve("tinymce.PluginManager"),n=function(e){return/^[A-Za-z][A-Za-z0-9\-:._]*$/.test(e)},r=function(e){var t=e.selection.getNode();return"A"===t.tagName&&""===e.dom.getAttrib(t,"href")?t.id||t.name:""},o=function(e,t){var n=e.selection.getNode();"A"===n.tagName&&""===e.dom.getAttrib(n,"href")?(n.removeAttribute("name"),n.id=t):(e.focus(),e.selection.collapse(!0),e.execCommand("mceInsertContent",!1,e.dom.createHTML("a",{id:t})))},i={isValidId:n,getId:r,insert:o},a=function(e,t){return i.isValidId(t)?(i.insert(e,t),!1):(e.windowManager.alert("Id should start with a letter, followed only by letters, numbers, dashes, dots, colons or underscores."),!0)},u=function(e){var t=i.getId(e);e.windowManager.open({title:"Anchor",body:{type:"textbox",name:"id",size:40,label:"Id",value:t},onsubmit:function(t){var n=t.data.id;a(e,n)&&t.preventDefault()}})},s={open:u},c=function(e){e.addCommand("mceAnchor",function(){s.open(e)})},l={register:c},f=function(e){return!e.attr("href")&&(e.attr("id")||e.attr("name"))&&!e.firstChild},d=function(e){return function(t){for(var n=0;n<t.length;n++)f(t[n])&&t[n].attr("contenteditable",e)}},m=function(e){e.on("PreInit",function(){e.parser.addNodeFilter("a",d("false")),e.serializer.addNodeFilter("a",d(null))})},p={setup:m},g=function(e){e.addButton("anchor",{icon:"anchor",tooltip:"Anchor",cmd:"mceAnchor",stateSelector:"a:not([href])"}),e.addMenuItem("anchor",{icon:"anchor",text:"Anchor",context:"insert",cmd:"mceAnchor"})},h={register:g};t.add("anchor",function(e){p.setup(e),l.register(e),h.register(e)})}()}()},"4YQI":function(e,t,n){n("O2is")},"5bBJ":function(e,t,n){n("Z8GW")},"5eDb":function(e,t,n){(function(t){!function(){!function(){"use strict";function n(){function e(n,r){return t.push(n+" ")>Jt.cacheLength&&delete e[t.shift()],e[n+" "]=r}var t=[];return e}function r(e){return e[gn]=!0,e}function o(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||Tn)-(~e.sourceIndex||Tn);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function i(e){return r(function(t){return t=+t,r(function(n,r){for(var o,i=e([],n.length,t),a=i.length;a--;)n[o=i[a]]&&(n[o]=!(r[o]=n[o]))})})}function a(e){return e&&typeof e.getElementsByTagName!==kn&&e}function u(){}function s(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function c(e,t,n){var r=t.dir,o=n&&"parentNode"===r,i=yn++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||o)return e(t,n,i)}:function(t,n,a){var u,s,c=[vn,i];if(a){for(;t=t[r];)if((1===t.nodeType||o)&&e(t,n,a))return!0}else for(;t=t[r];)if(1===t.nodeType||o){if(s=t[gn]||(t[gn]={}),(u=s[r])&&u[0]===vn&&u[1]===i)return c[2]=u[2];if(s[r]=c,c[2]=e(t,n,a))return!0}}}function l(e){return e.length>1?function(t,n,r){for(var o=e.length;o--;)if(!e[o](t,n,r))return!1;return!0}:e[0]}function f(e,t,n){for(var r=0,o=t.length;r<o;r++)Jn(e,t[r],n);return n}function d(e,t,n,r,o){for(var i,a=[],u=0,s=e.length,c=null!=t;u<s;u++)(i=e[u])&&(n&&!n(i,r,o)||(a.push(i),c&&t.push(u)));return a}function m(e,t,n,o,i,a){return o&&!o[gn]&&(o=m(o)),i&&!i[gn]&&(i=m(i,a)),r(function(r,a,u,s){var c,l,m,p=[],g=[],h=a.length,v=r||f(t||"*",u.nodeType?[u]:u,[]),y=!e||!r&&t?v:d(v,p,e,u,s),b=n?i||(r?e:h||o)?[]:a:y;if(n&&n(y,b,u,s),o)for(c=d(b,g),o(c,[],u,s),l=c.length;l--;)(m=c[l])&&(b[g[l]]=!(y[g[l]]=m));if(r){if(i||e){if(i){for(c=[],l=b.length;l--;)(m=b[l])&&c.push(y[l]=m);i(null,b=[],c,s)}for(l=b.length;l--;)(m=b[l])&&(c=i?Dn.call(r,m):p[l])>-1&&(r[c]=!(a[c]=m))}}else b=d(b===a?b.splice(h,b.length):b),i?i(null,a,b,s):Rn.apply(a,b)})}function p(e){for(var t,n,r,o=e.length,i=Jt.relative[e[0].type],a=i||Jt.relative[" "],u=i?1:0,f=c(function(e){return e===t},a,!0),d=c(function(e){return Dn.call(t,e)>-1},a,!0),g=[function(e,n,r){return!i&&(r||n!==rn)||((t=n).nodeType?f(e,n,r):d(e,n,r))}];u<o;u++)if(n=Jt.relative[e[u].type])g=[c(l(g),n)];else{if(n=Jt.filter[e[u].type].apply(null,e[u].matches),n[gn]){for(r=++u;r<o&&!Jt.relative[e[r].type];r++);return m(u>1&&l(g),u>1&&s(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace(Mn,"$1"),n,u<r&&p(e.slice(u,r)),r<o&&p(e=e.slice(r)),r<o&&s(e))}g.push(n)}return l(g)}function g(e,t){var n=t.length>0,o=e.length>0,i=function(r,i,a,u,s){var c,l,f,m=0,p="0",g=r&&[],h=[],v=rn,y=r||o&&Jt.find.TAG("*",s),b=vn+=null==v?1:Math.random()||.1,w=y.length;for(s&&(rn=i!==sn&&i);p!==w&&null!=(c=y[p]);p++){if(o&&c){for(l=0;f=e[l++];)if(f(c,i,a)){u.push(c);break}s&&(vn=b)}n&&((c=!f&&c)&&m--,r&&g.push(c))}if(m+=p,n&&p!==m){for(l=0;f=t[l++];)f(g,h,i,a);if(r){if(m>0)for(;p--;)g[p]||h[p]||(h[p]=_n.call(u));h=d(h)}Rn.apply(u,h),s&&!r&&h.length>0&&m+t.length>1&&Jn.uniqueSort(u)}return s&&(vn=b,rn=v),g};return n?r(i):i}function h(e,t,n){var r=e.isiOS()&&!0===/ipad/i.test(n),o=e.isiOS()&&!r,i=e.isAndroid()&&3===e.version.major,a=e.isAndroid()&&4===e.version.major,u=r||i||a&&!0===/mobile/i.test(n),s=e.isiOS()||e.isAndroid(),c=s&&!u,l=t.isSafari()&&e.isiOS()&&!1===/safari/i.test(n);return{isiPad:Se.constant(r),isiPhone:Se.constant(o),isTablet:Se.constant(u),isPhone:Se.constant(c),isTouch:Se.constant(s),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:Se.constant(l)}}function v(){var e=arguments;return function(){for(var t=new Array(arguments.length),n=0;n<t.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 ct.each(e,function(e,n){r[e]=Se.constant(t[n])}),r}}function y(e,t){var n=e.concat(t);if(0===n.length)throw new Error("You must specify at least one required or optional field.");return ha.validateStrArr("required",e),ha.validateStrArr("optional",t),ha.checkDupes(n),function(r){var o=Ri.keys(r);ct.forall(e,function(e){return ct.contains(o,e)})||ha.reqMessage(e,o);var i=ct.filter(o,function(e){return!ct.contains(n,e)});i.length>0&&ha.unsuppMessage(i);var a={};return ct.each(e,function(e){a[e]=Se.constant(r[e])}),ct.each(t,function(e){a[e]=Se.constant(Object.prototype.hasOwnProperty.call(r,e)?Pe.some(r[e]):Pe.none())}),a}}function b(e,t){var n,r=0,o={};t=t||{},n=t.maxLoadTime||5e3;var i=function(t){e.getElementsByTagName("head")[0].appendChild(t)},a=function(t,a,u){var s,c,l,f,d=function(){for(var e=f.passed,t=e.length;t--;)e[t]();f.status=2,f.passed=[],f.failed=[]},m=function(){for(var e=f.failed,t=e.length;t--;)e[t]();f.status=3,f.passed=[],f.failed=[]},p=function(e,t){e()||((new Date).getTime()-l<n?Lt.setTimeout(t):m())},g=function(){p(function(){for(var t,n,r=e.styleSheets,o=r.length;o--;)if(t=r[o],(n=t.ownerNode?t.ownerNode:t.owningElement)&&n.id===s.id)return d(),!0},g)},h=function(){p(function(){try{var e=c.sheet.cssRules;return d(),!!e}catch(e){}},h)};if(t=xr._addCacheSuffix(t),o[t]?f=o[t]:(f={passed:[],failed:[]},o[t]=f),a&&f.passed.push(a),u&&f.failed.push(u),1!==f.status){if(2===f.status)return void d();if(3===f.status)return void m();if(f.status=1,s=e.createElement("link"),s.rel="stylesheet",s.type="text/css",s.id="u"+r++,s.async=!1,s.defer=!1,l=(new Date).getTime(),"onload"in s&&!function(){var e=navigator.userAgent.match(/WebKit\/(\d*)/);return!!(e&&parseInt(e[1],10)<536)}())s.onload=g,s.onerror=m;else{if(navigator.userAgent.indexOf("Firefox")>0)return c=e.createElement("style"),c.textContent='@import "'+t+'"',h(),void i(c);g()}i(s),s.href=t}},u=function(e){return bu.nu(function(t){a(e,Se.compose(t,Se.constant(Nu.value(e))),Se.compose(t,Se.constant(Nu.error(e))))})},s=function(e){return e.fold(Se.identity,Se.identity)};return{load:a,loadAll:function(e,t,n){Su.par(ct.map(e,u)).get(function(e){var r=ct.partition(e,function(e){return e.isValue()});r.fail.length>0?n(r.fail.map(s)):t(r.pass.map(s))})}}}function w(e,t){var n=e,r=function(e,n,r,o){var i,a;if(e){if(!o&&e[n])return e[n];if(e!==t){if(i=e[r])return i;for(a=e.parentNode;a&&a!==t;a=a.parentNode)if(i=a[r])return i}}},o=function(e,n,r,o){var i,a,u;if(e){if(i=e[r],t&&i===t)return;if(i){if(!o)for(u=i[n];u;u=u[n])if(!u[n])return u;return i}if((a=e.parentNode)&&a!==t)return a}};this.current=function(){return n},this.next=function(e){return n=r(n,"firstChild","nextSibling",e)},this.prev=function(e){return n=r(n,"lastChild","previousSibling",e)},this.prev2=function(e){return n=o(n,"lastChild","previousSibling",e)}}function x(e){var t,n,r,o,i,a,u,s,c,l,f,d,m,p={},g={},h=[],v={},y={},b=function(t,n,r){var o=e[t];return o?o=Os(o,/[, ]/,Os(o.toUpperCase(),/[, ]/)):(o=Ds[t])||(o=Os(n," ",Os(n.toUpperCase()," ")),o=Is(o,r),Ds[t]=o),o};e=e||{},r=Hs(e.schema),!1===e.verify_html&&(e.valid_elements="*[*]"),t=zs(e.valid_styles),n=zs(e.invalid_styles,"map"),s=zs(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 nav figure"),c=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",d),m=b("text_inline_elements","span strong b em i font strike u var cite dfn code mark q sup sub samp"),Bs((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")+"$")},x=function(e){var t,n,r,o,i,a,u,s,c,l,f,d,m,g,v,y,b,x,C,k=/^([#+\-])?([^\[!\/]+)(?:\/([^\[!]+))?(?:(!?)\[([^\]]+)\])?$/,T=/^([!\-])?(\w+[\\:]:\w+|[^=:<]+)?(?:([=:<])(.*))?$/,S=/[*?+]/;if(e)for(e=Fs(e,","),p["@"]&&(y=p["@"].attributes,b=p["@"].attributesOrder),t=0,n=e.length;t<n;t++)if(i=k.exec(e[t])){if(g=i[1],c=i[2],v=i[3],s=i[5],d={},m=[],a={attributes:d,attributesOrder:m},"#"===g&&(a.paddEmpty=!0),"-"===g&&(a.removeEmpty=!0),"!"===i[4]&&(a.removeEmptyAttrs=!0),y){for(x in y)d[x]=y[x];m.push.apply(m,b)}if(s)for(s=Fs(s,"|"),r=0,o=s.length;r<o;r++)if(i=T.exec(s[r])){if(u={},f=i[1],l=i[2].replace(/[\\:]:/g,":"),g=i[3],C=i[4],"!"===f&&(a.attributesRequired=a.attributesRequired||[],a.attributesRequired.push(l),u.required=!0),"-"===f){delete d[l],m.splice(Ls(m,l),1);continue}g&&("="===g&&(a.attributesDefault=a.attributesDefault||[],a.attributesDefault.push({name:l,value:C}),u.defaultValue=C),":"===g&&(a.attributesForced=a.attributesForced||[],a.attributesForced.push({name:l,value:C}),u.forcedValue=C),"<"===g&&(u.validValues=Os(C,"?"))),S.test(l)?(a.attributePatterns=a.attributePatterns||[],u.pattern=w(l),a.attributePatterns.push(u)):(d[l]||m.push(l),d[l]=u)}y||"@"!==c||(y=d,b=m),v&&(a.outputName=c,p[v]=a),S.test(c)?(a.pattern=w(c),h.push(a)):p[c]=a}},C=function(e){p={},h=[],x(e),Bs(r,function(e,t){g[t]=e.children})},k=function(e){var t=/^(~)?(.+)$/;e&&(Ds.text_block_elements=Ds.block_elements=null,Bs(Fs(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||(c[i.toUpperCase()]={},c[i]={}),!p[i]){var a=p[o];a=Is({},a),delete a.removeEmptyAttrs,delete a.removeEmpty,p[i]=a}Bs(g,function(e,t){e[o]&&(g[t]=e=Is({},g[t]),e[i]=e[o])})}))},T=function(t){var n=/^([+\-]?)(\w+)\[([^\]]+)\]$/;Ds[e.schema]=null,t&&Bs(Fs(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]],Bs(Fs(o[3],"|"),function(e){"-"===r?delete t[e]:t[e]={}}))})},S=function(e){var t,n=p[e];if(n)return n;for(t=h.length;t--;)if(n=h[t],n.pattern.test(e))return n};e.valid_elements?C(e.valid_elements):(Bs(r,function(e,t){p[t]={attributes:e.attributes,attributesOrder:e.attributesOrder},g[t]=e.children}),"html5"!==e.schema&&Bs(Fs("strong/b em/i"),function(e){e=Fs(e,"/"),p[e[1]].outputName=e[0]}),Bs(Fs("ol ul sub sup blockquote span font a table tbody tr strong em b i"),function(e){p[e]&&(p[e].removeEmpty=!0)}),Bs(Fs("p h1 h2 h3 h4 h5 h6 th td pre div address caption li"),function(e){p[e].paddEmpty=!0}),Bs(Fs("span"),function(e){p[e].removeEmptyAttrs=!0})),k(e.custom_elements),T(e.valid_children),x(e.extended_valid_elements),T("+ol[ul|ol],+ul[ul|ol]"),Bs({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){p[t]&&(p[t].parentsRequired=Fs(e))}),e.invalid_elements&&Bs(Ms(e.invalid_elements),function(e){p[e]&&delete p[e]}),S("span")||x("span[!data-mce-type|*]");var E=function(){return t},_=function(){return n},N=function(){return s},R=function(){return u},A=function(){return c},D=function(){return d},P=function(){return m};return{children:g,elements:p,getValidStyles:E,getValidClasses:N,getBlockElements:A,getInvalidStyles:_,getShortEndedElements:function(){return a},getTextBlockElements:D,getTextInlineElements:P,getBoolAttrs:R,getElementRule:S,getSelfClosingElements:function(){return i},getNonEmptyElements:function(){return l},getMoveCaretBeforeOnEnterElements:function(){return f},getWhiteSpaceElements:function(){return o},getSpecialElements:function(){return y},isValidChild:function(e,t){var n=g[e.toLowerCase()];return!(!n||!n[t.toLowerCase()])},isValid:function(e,t){var n,r,o=S(e);if(o){if(!t)return!0;if(o.attributes[t])return!0;if(n=o.attributePatterns)for(r=n.length;r--;)if(n[r].pattern.test(e))return!0}return!1},getCustomElements:function(){return v},addValidElements:x,setValidElements:C,addCustomElements:k,addValidChildren:T}}function C(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,s=/\s*([^:]+):\s*([^;]+);?/g,c=/\s+$/,l={};for(e=e||{},t&&(o=t.getValidStyles(),i=t.getInvalidStyles()),r="\\\" \\' \\; \\: ; : \ufeff".split(" "),n=0;n<r.length;n++)l[r[n]]="\ufeff"+n,l["\ufeff"+n]=r[n];return{toHex:function(e){return e.replace(a,Us)},parse:function(t){var r,o,i,f,d={},m=e.url_converter,p=e.url_converter_scope||this,g=function(e,t,r){var o,i,a,u;if((o=d[e+"-top"+t])&&(i=d[e+"-right"+t])&&(a=d[e+"-bottom"+t])&&(u=d[e+"-left"+t])){var s=[o,i,a,u];for(n=s.length-1;n--&&s[n]===s[n+1];);n>-1&&r||(d[e+t]=-1===n?s[0]:s.join(" "),delete d[e+"-top"+t],delete d[e+"-right"+t],delete d[e+"-bottom"+t],delete d[e+"-left"+t])}},h=function(e){var t,n=d[e];if(n){for(n=n.split(" "),t=n.length;t--;)if(n[t]!==n[0])return!1;return d[e]=n[0],!0}},v=function(e){return f=!0,l[e]},y=function(e,t){return f&&(e=e.replace(/\uFEFF[0-9]/g,function(e){return l[e]})),t||(e=e.replace(/\\([\'\";:])/g,"$1")),e},b=function(e){return String.fromCharCode(parseInt(e.slice(1),16))},w=function(e){return e.replace(/\\[0-9a-f]+/gi,b)},x=function(t,n,r,o,i,a){if(i=i||a)return i=y(i),"'"+i.replace(/\'/g,"\\'")+"'";if(n=y(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(p,n,"style")),"url('"+n.replace(/\'/g,"\\'")+"')"};if(t){for(t=t.replace(/[\u0000-\u001F]/g,""),t=t.replace(/\\[\"\';:\uFEFF]/g,v).replace(/\"[^\"]+\"|\'[^\']+\'/g,function(e){return e.replace(/[;:]/g,v)});r=s.exec(t);)if(s.lastIndex=r.index+r[0].length,o=r[1].replace(c,"").toLowerCase(),i=r[2].replace(c,""),o&&i){if(o=w(o),i=w(i),-1!==o.indexOf("\ufeff")||-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,Us),i=i.replace(u,x),d[o]=f?y(i,!0):i}g("border","",!0),g("border","-width"),g("border","-color"),g("border","-style"),g("padding",""),g("margin",""),function(e,t,n,r){h(t)&&h(n)&&h(r)&&(d[e]=d[t]+" "+d[n]+" "+d[r],delete d[t],delete d[n],delete d[r])}("border","border-width","border-style","border-color"),"medium none"===d.border&&delete d.border,"none"===d["border-image"]&&delete d["border-image"]}return d},serialize:function(e,t){var n,r,a="",u=function(t){var n,r,i,u;if(n=o[t])for(r=0,i=n.length;r<i;r++)t=n[r],(u=e[t])&&(a+=(a.length>0?" ":"")+t+": "+u+";")};if(t&&o)u("*"),u(t);else for(n in e)!(r=e[n])||i&&!function(e,t){var n;return(!(n=i["*"])||!n[e])&&(!(n=i[t])||!n[e])}(n,t)||(a+=(a.length>0?" ":"")+n+": "+r+";");return a}}}function k(e,t,n){var r=function(){return ll(e),0===t},o=function(){return ll(e)?t>=e.data.length:t>=e.childNodes.length},i=function(){var n;return n=pl(e.ownerDocument),n.setStart(e,t),n.setEnd(e,t),n},a=function(){return n||(n=kl(k(e,t))),n},u=function(){return a().length>0},s=function(n){return n&&e===n.container()&&t===n.offset()},c=function(n){return ml(e,n?t-1:t)};return{container:rl.constant(e),offset:rl.constant(t),toRange:i,getClientRects:a,isVisible:u,isAtStart:r,isAtEnd:o,isEqual:s,getNode:c}}function T(e){var t,n,r,o,i,a=[];return e=e||{},t=e.indent,n=Wp(e.indent_before||""),r=Wp(e.indent_after||""),o=As.getEncodeFunc(e.entity_encoding||"raw",e.entities),i="html"===e.element_format,{start:function(e,u,s){var c,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(c=0,l=u.length;c<l;c++)f=u[c],a.push(" ",f.name,'="',o(f.value,!0),'"');a[a.length]=!s||i?">":" />",s&&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$/,"")}}}function S(e,t){void 0===t&&(t=x());var n=T(e);return e=e||{},e.validate=!("validate"in e)||e.validate,{serialize: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,s,c,l,f,d,m,p,g=o[e.type];if(g)g(e);else{if(r=e.name,u=e.shortEnded,s=e.attributes,i&&s&&s.length>1&&(f=[],f.map={},p=t.getElementRule(e.name))){for(d=0,m=p.attributesOrder.length;d<m;d++)(c=p.attributesOrder[d])in s.map&&(l=s.map[c],f.map[c]=l,f.push({name:c,value:l}));for(d=0,m=s.length;d<m;d++)(c=s[d].name)in f.map||(l=s.map[c],f.map[c]=l,f.push({name:c,value:l}));s=f}if(n.start(e.name,s,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()}}}function E(e,t,n,r,o){return e(n,r)?Pe.some(n):bi.isFunction(o)&&o(n)?Pe.none():t(n,r,o)}function _(e){var t,n,r,o,i={state:{},exec:{},value:{}},a=e.settings;e.on("PreInit",function(){t=e.dom,n=e.selection,a=e.settings,r=e.formatter});var u=function(t,n,r,o){var a,u,s=!1;if(!e.removed){if(/^(mceAddUndoLevel|mceEndUndoLevel|mceBeginUndoLevel|mceRepaint)$/.test(t)||o&&o.skip_focus?Gx.restore(e):e.focus(),o=e.fire("BeforeExecCommand",{command:t,ui:n,value:r}),o.isDefaultPrevented())return!1;if(u=t.toLowerCase(),a=i.exec[u])return a(u,n,r),e.fire("ExecCommand",{command:t,ui:n,value:r}),!0;if(Qx(e.plugins,function(o){if(o.execCommand&&o.execCommand(t,n,r))return e.fire("ExecCommand",{command:t,ui:n,value:r}),s=!0,!1}),s)return s;if(e.theme&&e.theme.execCommand&&e.theme.execCommand(t,n,r))return e.fire("ExecCommand",{command:t,ui:n,value:r}),!0;try{s=e.getDoc().execCommand(t,n,r)}catch(e){}return!!s&&(e.fire("ExecCommand",{command:t,ui:n,value:r}),!0)}},s=function(t){var n;if(!e.quirks.isHidden()&&!e.removed){if(t=t.toLowerCase(),n=i.state[t])return n(t);try{return e.getDoc().queryCommandState(t)}catch(e){}return!1}},c=function(t){var n;if(!e.quirks.isHidden()&&!e.removed){if(t=t.toLowerCase(),n=i.value[t])return n(t);try{return e.getDoc().queryCommandValue(t)}catch(e){}}},l=function(e,t){t=t||"exec",Qx(e,function(e,n){Qx(n.toLowerCase().split(","),function(n){i[t][n]=e})})},f=function(t,n,r){t=t.toLowerCase(),i.exec[t]=function(t,o,i,a){return n.call(r||e,o,i,a)}};eC(this,{execCommand:u,queryCommandState:s,queryCommandValue:c,queryCommandSupported:function(t){if(t=t.toLowerCase(),i.exec[t])return!0;try{return e.getDoc().queryCommandSupported(t)}catch(e){}return!1},addCommands:l,addCommand:f,addQueryStateHandler:function(t,n,r){t=t.toLowerCase(),i.state[t]=function(){return n.call(r||e)}},addQueryValueHandler:function(t,n,r){t=t.toLowerCase(),i.value[t]=function(){return n.call(r||e)}},hasCustomCommand:function(e){return e=e.toLowerCase(),!!i.exec[e]}});var d=function(t,n,r){return void 0===n&&(n=iC),void 0===r&&(r=null),e.getDoc().execCommand(t,n,r)},m=function(e){return r.match(e)},p=function(t,n){r.toggle(t,n?{value:n}:void 0),e.nodeChanged()},g=function(e){o=n.getBookmark(e)},h=function(){n.moveToBookmark(o)};l({"mceResetDesignMode,mceBeginUndoLevel":function(){},"mceEndUndoLevel,mceAddUndoLevel":function(){e.undoManager.add()},"Cut,Copy,Paste":function(t){var n,r=e.getDoc();try{d(t)}catch(e){n=oC}if("paste"!==t||r.queryCommandEnabled(t)||(n=!0),n||!r.queryCommandSupported(t)){var o=e.translate("Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.");Rt.mac&&(o=o.replace(/Ctrl\+/g,"⌘+")),e.notificationManager.open({text:o,type:"error"})}},unlink:function(){if(n.isCollapsed()){var t=e.dom.getParent(e.selection.getStart(),"a");return void(t&&e.dom.remove(t,!0))}r.remove("link")},"JustifyLeft,JustifyCenter,JustifyRight,JustifyFull,JustifyNone":function(e){var t=e.substring(7);"full"===t&&(t="justify"),Qx("left,center,right,justify".split(","),function(e){t!==e&&r.remove("align"+e)}),"none"!==t&&p("align"+t)},"InsertUnorderedList,InsertOrderedList":function(e){var r,o;d(e),(r=t.getParent(n.getNode(),"ol,ul"))&&(o=r.parentNode,/^(H[1-6]|P|ADDRESS|PRE)$/.test(o.nodeName)&&(g(),t.split(o,r),h()))},"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(e){p(e)},"ForeColor,HiliteColor,FontName":function(e,t,n){p(e,n)},FontSize:function(e,t,n){var r,o;n>=1&&n<=7&&(o=rC(a.font_size_style_values),r=rC(a.font_size_classes),n=r?r[n-1]||n:o[n-1]||n),p(e,n)},RemoveFormat:function(e){r.remove(e)},mceBlockQuote:function(){p("blockquote")},FormatBlock:function(e,t,n){return p(n||"p")},mceCleanup:function(){var t=n.getBookmark();e.setContent(e.getContent({cleanup:oC}),{cleanup:oC}),n.moveToBookmark(t)},mceRemoveNode:function(t,r,o){var i=o||n.getNode();i!==e.getBody()&&(g(),e.dom.remove(i,oC),h())},mceSelectNodeDepth:function(r,o,i){var a=0;t.getParent(n.getNode(),function(e){if(1===e.nodeType&&a++===i)return n.select(e),iC},e.getBody())},mceSelectNode:function(e,t,r){n.select(r)},mceInsertContent:function(t,n,r){tg.insertAtCaret(e,r)},mceInsertRawHTML:function(t,r,o){n.setContent("tiny_mce_marker"),e.setContent(e.getContent().replace(/tiny_mce_marker/g,function(){return o}))},mceToggleFormat:function(e,t,n){p(n)},mceSetContent:function(t,n,r){e.setContent(r)},"Indent,Outdent":function(t){Zx(e,t)},mceRepaint:function(){},InsertHorizontalRule:function(){e.execCommand("mceInsertContent",!1,"<hr />")},mceToggleVisualAid:function(){e.hasVisual=!e.hasVisual,e.addVisual()},mceReplaceContent:function(t,r,o){e.execCommand("mceInsertContent",!1,o.replace(/\{\$selection\}/g,n.getContent({format:"text"})))},mceInsertLink:function(e,o,i){var a;"string"==typeof i&&(i={href:i}),a=t.getParent(n.getNode(),"a"),i.href=i.href.replace(" ","%20"),a&&i.href||r.remove("link"),i.href&&r.apply("link",i,a)},selectAll:function(){var e=t.getParent(n.getStart(),fs.isContentEditableTrue);if(e){var r=t.createRng();r.selectNodeContents(e),n.setRng(r)}},delete:function(){Yw.deleteCommand(e)},forwardDelete:function(){Yw.forwardDeleteCommand(e)},mceNewDocument:function(){e.setContent("")},InsertLineBreak:function(t,n,r){return Tx.insert(e,r),!0}}),l({"JustifyLeft,Justif