!function(){"use strict";functione(e){returne&&1===e.nodeType&&"false"===e.contentEditable}vart,n=function(e){vart=e,r=function(){returnt};return{get:r,set:function(e){t=e},clone:function(){returnn(r())}}},r=tinymce.util.Tools.resolve("tinymce.PluginManager"),o=function(e){return!(!/(^|[ ,])tinymcespellchecker([, ]|$)/.test(e.settings.plugins)||!r.get("tinymcespellchecker")||("undefined"!=typeofwindow.console&&window.console.log&&window.console.log("Spell Checker Pro is incompatible with Spell Checker plugin! Remove 'spellchecker' from the 'plugins' option."),0))},i=function(e){returne.getParam("spellchecker_languages","English=en,Danish=da,Dutch=nl,Finnish=fi,French=fr_FR,German=de,Italian=it,Polish=pl,Portuguese=pt_BR,Spanish=es,Swedish=sv")},c=function(e){vart=e.getParam("language","en");returne.getParam("spellchecker_language",t)},a=function(e){returne.getParam("spellchecker_rpc_url")},l=function(e){returne.getParam("spellchecker_callback")},s=function(e){vart=newRegExp('[^\\s!"#$%&()*+,-./:;<=>?@[\\]^_{|}`\xa7\xa9\xab\xae\xb1\xb6\xb7\xb8\xbb\xbc\xbd\xbe\xbf\xd7\xf7\xa4\u201d\u201c\u201e\xa0\u2002\u2003\u2009]+',"g");returne.getParam("spellchecker_wordchar_pattern",t)},u=tinymce.util.Tools.resolve("tinymce.util.Tools"),d=tinymce.util.Tools.resolve("tinymce.util.URI"),f=tinymce.util.Tools.resolve("tinymce.util.XHR"),h=function(e){returne.fire("SpellcheckStart")},g=function(e){returne.fire("SpellcheckEnd")},m=function(t,n){functionr(e,t){if(!e[0])thrownewError("findAndReplaceDOMText cannot handle zero-length matches");return{start:e.index,end:e.index+e[0].length,text:e[0],data:t}}functiono(t){varn;if(3===t.nodeType)returnt.data;if(m[t.nodeName]&&!g[t.nodeName])return"";if(e(t))return"\n";if(n="",(g[t.nodeName]||p[t.nodeName])&&(n+="\n"),t=t.firstChild)do{n+=o(t)}while(t=t.nextSibling);returnn}functioni(e){e.parentNode.insertBefore(e.firstChild,e),e.parentNode.removeChild(e)}functionc(e){return-1!==e.className.indexOf("mce-spellchecker-word")}functiona(e){varn=t.getElementsByTagName("*"),r=[];e="number"==typeofe?""+e:null;for(varo=0;o<n.length;o++){vari=n[o],a=i.getAttribute("data-mce-index");null!==a&&a.length&&c(i)&&(a!==e&&null!==e||r.push(i))}returnr}functionl(e){for(vart=v.length;t--;)if(v[t]===e)returnt;return-1}functions(e){for(vart=0,n=v.length;t<n&&!1!==e(v[t],t);t++);returnthis}functionu(e){vart,n=a(e?l(e):null);for(t=n.length;t--;)i(n[t]);returnthis}functiond(e){vart=a(l(e)),r=n.dom.createRng();returnr.setStartBefore(t[0]),r.setEndAfter(t[t.length-1]),r}varf,h,g,m,p,v=[],x=n.dom;returng=n.schema.getBlockElements(),m=n.schema.getWhiteSpaceElements(),p=n.schema.getShortEndedElements(),h=o(t),{text:h,matches:v,each:s,filter:function(e){vart=[];returns(function(n,r){e(n,r)&&t.push(n)}),v=t,this},reset:function(){returnv.splice(0,v.length),u(),this},matchFromElement:function(e){returnv[e.getAttribute("data-mce-index")]},elementFromMatch:function(e){returna(l(e))[0]},find:function(e,t){if(h&&e.global)for(;f=e.exec(h);)v.push(r(f,t));returnthis},add:function(e,t,n){returnv.push({start:e,end:e+t,text:h.substr(e,t),data:n}),this},wrap:function(n){returnv.length&&function(t,n,r){varo,i,c,a,l,s=[],u=0,d=t,f=0;(n=n.slice(0)).sort(function(e,t){returne.start-t.start}),l=n.shift();e:for(;;){if((g[d.nodeName]||p[d.nodeName]||e(d))&&u++,3===d.nodeType&&(!i&&d.length+u>=l.end?(i=d,a=l.end-u):o&&s.push(d),!o&&d.length+u>l.start&&(o=d,c=l.start-u),u+=d.length),o&&i){if(d=r({startNode:o,startNodeIndex:c,endNode:i,endNodeIndex:a,innerNodes:s,match:l.text,matchIndex:f}),u-=i.length-a,o=null,i=null,s=[],l=n.shift(),f++,!l)break}elseif(m[d.nodeName]&&!g[d.nodeName]||!d.firstChild){if(d.nextSibling){d=d.nextSibling;continue}}elseif(!e(d)){d=d.firstChild;continue}for(;;){if(d.nextSibling){d=d.nextSibling;break}if(d.parentNode===t)breake;d=d.parentNode}}}(t,v,function(e){functiont(t,n){varr=v[n];r.stencil||(r.stencil=e(r));varo=r.stencil.cloneNode(!1);returno.setAttribute("data-mce-index",n),t&&o.appendChild(x.doc.createTextNode(t)),o}returnfunction(e){varn,r,o,i=e.start