!function(e,t){"use strict";functionn(e,t){for(varn,o=[],i=0;i<e.length;++i){if(n=l[e[i]]||r(e[i]),!n)throw"module definition dependecy not found: "+e[i];o.push(n)}t.apply(null,o)}functiono(e,o,i){if("string"!=typeofe)throw"invalid module definition, module id must be defined and be a string";if(o===t)throw"invalid module definition, dependencies must be specified";if(i===t)throw"invalid module definition, definition function must be specified";n(o,function(){l[e]=i.apply(null,arguments)})}functioni(e){return!!l[e]}functionr(t){for(varn=e,o=t.split(/[.\/]/),i=0;i<o.length;++i){if(!n[o[i]])return;n=n[o[i]]}returnn}functiona(n){for(varo=0;o<n.length;o++){for(vari=e,r=n[o],a=r.split(/[.\/]/),s=0;s<a.length-1;++s)i[a[s]]===t&&(i[a[s]]={}),i=i[a[s]];i[a[a.length-1]]=l[r]}}varl={},s="tinymce/spellcheckerplugin/DomTextMatcher",c="tinymce/spellcheckerplugin/Plugin",d="tinymce/PluginManager",u="tinymce/util/Tools",f="tinymce/ui/Menu",m="tinymce/dom/DOMUtils",p="tinymce/util/JSONRequest",g="tinymce/util/URI";o(s,[],function(){returnfunction(e,t,n){functiono(e){if(!e[0])throw"findAndReplaceDOMText cannot handle zero-length matches";vart=e.index;return[t,t+e[0].length,[e[0]]]}functioni(e){vart;if(3===e.nodeType)returne.data;if(h[e.nodeName]&&!g[e.nodeName])return"";if(t="",(g[e.nodeName]||v[e.nodeName])&&(t+="\n"),e=e.firstChild)dot+=i(e);while(e=e.nextSibling);returnt}functionr(e,t,n){varo,i,r,a,l=[],s=0,c=e,d=t.shift(),u=0;e:for(;;){if((g[c.nodeName]||v[c.nodeName])&&s++,3===c.nodeType&&(!i&&c.length+s>=d[1]?(i=c,a=d[1]-s):o&&l.push(c),!o&&c.length+s>d[0]&&(o=c,r=d[0]-s),s+=c.length),o&&i){if(c=n({startNode:o,startNodeIndex:r,endNode:i,endNodeIndex:a,innerNodes:l,match:d[2],matchIndex:u}),s-=i.length-a,o=null,i=null,l=[],d=t.shift(),u++,!d)break}else{if((!h[c.nodeName]||g[c.nodeName])&&c.firstChild){c=c.firstChild;continue}if(c.nextSibling){c=c.nextSibling;continue}}for(;;){if(c.nextSibling){c=c.nextSibling;break}if(c.parentNode===e)breake;c=c.parentNode}}}functiona(e){vart;if("function"!=typeofe){varn=e.nodeType?e:p.createElement(e);t=function(e,t){varo=n.cloneNode(!1);returno.setAttribute("data-mce-index",t),e&&o.appendChild(p.createTextNode(e)),o}}elset=e;returnfunctiono(e){varn,o,i,r=e.startNode,a=e.endNode,l=e.matchIndex;if(r===a){vars=r;i=s.parentNode,e.startNodeIndex>0&&(n=p.createTextNode(s.data.substring(0,e.startNodeIndex)),i.insertBefore(n,s));varc=t(e.match[0],l);returni.insertBefore(c,s),e.endNodeIndex<s.length&&(o=p.createTextNode(s.data.substring(e.endNodeIndex)),i.insertBefore(o,s)),s.parentNode.removeChild(s),c}n=p.createTextNode(r.data.substring(0,e.startNodeIndex)),o=p.createTextNode(a.data.substring(e.endNodeIndex));for(vard=t(r.data.substring(e.startNodeIndex),l),u=[],f=0,m=e.innerNodes.length;m>f;++f){varg=e.innerNodes[f],h=t(g.data,l);g.parentNode.replaceChild(h,g),u.push(h)}varv=t(a.data.substring(0,e.endNodeIndex),l);returni=r.parentNode,i.insertBefore(n,r),i.insertBefore(d,r),i.removeChild(r),i=a.parentNode,i.insertBefore(v,a),i.insertBefore(o,a),i.removeChild(a),v}}functionl(e){vart=[];returns(function(n,o){e(n,o)&&t.push(n)}),u=t,this}functions(e){for(vart=0,n=u.length;n>t&&e(u[t],t)!==!1;t++);returnthis}functionc(e){returnu.length&&(m=u.length,r(t,u,a(e))),this}vard,u=[],f,m=0,p,g,h,v;if(p=t.ownerDocument,g=n.getBlockElements(),h=n.getWhiteSpaceElements(),v=n.getShortEndedElements(),f=i(t),f&&e.global)for(;d=e.exec(f);)u.push(o(d));return{text:f,count:m,matches:u,each:s,filter:l,mark:c}}}),o(c,[s,d,u,f,m,p,g],function(e,t,n,o,i,r,a){t.add("spellchecker",function(t,l){functions(e){for(vartine)return!1;return!0}functionc(e,r){vara=[],l=h[r];n.each(l,function(e){a.push({text:e,onclick:function(){t.insertContent(e),u()}})}),a.push.apply(a,[{text:"-"},{text:"Ignore",onclick:function(){m(e,r)}},{text:"Ignore all",onclick:function(){m(e,r,!0)}},{text:"Finish",onclick:p}]),b=newo({items:a,context:"contextmenu",onautohide:function(e){-1!=e.target.className.indexOf("spellchecker")&&e.preventDefault()},onhide:function(){b.remove(),b=null}}),b.renderTo(document.body);vars=i.DOM.getPos(t.getContentAreaContainer()),c=t.dom.getPos(e);s.x+=c.x,s.y+=c.y,b.moveTo(s.x,s.y+e.offsetHeight)}functiond(){functionn(e){returnt.setProgressState(!1),s(e)?(t.windowManager.alert("No misspellings found"),void(v=!1)):(h=e,i.filter(function(t){return!!e[t[2][0]]}).mark(t.dom.create("span",{"class":"mce-spellchecker-word","data-mce-bogus":1})),i=null,voidt.fire("SpellcheckStart"))}functiono(e,n,o){r.sendRPC({url:newa(l).toAbsolute(y.spellchecker_rpc_url),method:e,params:{lang:y.spellchecker_language||"en",words:n},success:function(e){o(e)},error:function(e,n){e="JSON Parse error."==e?"Non JSON response:"+n.responseText:"Error: "+e,t.windowManager.alert(e),t.setProgressState(!1),i=null,v=!1}})}vari,c=[],d={};if(v)returnvoidp();v=!0;varu=t.getParam("spellchecker_wordchar_pattern")||newRegExp('[^\\s!"#$%&()*+,-./:;<=>?@[\\]^_{|}`\xa7\xa9\xab\xae\xb1\xb6\xb7
Line truncated
!function(e,t){"use strict";functionn(e,t){for(varn,r=[],i=0;i<e.length;++i){if(n=s[e[i]]||o(e[i]),!n)throw"module definition dependecy not found: "+e[i];r.push(n)}t.apply(null,r)}functionr(e,r,i){if("string"!=typeofe)throw"invalid module definition, module id must be defined and be a string";if(r===t)throw"invalid module definition, dependencies must be specified";if(i===t)throw"invalid module definition, definition function must be specified";n(r,function(){s[e]=i.apply(null,arguments)})}functioni(e){return!!s[e]}functiono(t){for(varn=e,r=t.split(/[.\/]/),i=0;i<r.length;++i){if(!n[r[i]])return;n=n[r[i]]}returnn}functiona(n){for(varr=0;r<n.length;r++){for(vari=e,o=n[r],a=o.split(/[.\/]/),l=0;l<a.length-1;++l)i[a[l]]===t&&(i[a[l]]={}),i=i[a[l]];i[a[a.length-1]]=s[o]}}vars={},l="tinymce/tableplugin/TableGrid",c="tinymce/util/Tools",d="tinymce/Env",u="tinymce/tableplugin/Quirks",f="tinymce/util/VK",p="tinymce/tableplugin/CellSelection",m="tinymce/dom/TreeWalker",h="tinymce/tableplugin/Plugin",g="tinymce/PluginManager";r(l,[c,d],function(e,t){functionn(e,t){returnparseInt(e.getAttribute(t)||1,10)}varr=e.each;returnfunction(i,o){functiona(){vare=0;R=[],r(["thead","tbody","tfoot"],function(t){vari=H.select("> "+t+" tr",o);r(i,function(i,o){o+=e,r(H.select("> td, > th",i),function(e,r){vari,a,s,l;if(R[o])for(;R[o][r];)r++;for(s=n(e,"rowspan"),l=n(e,"colspan"),a=o;o+s>a;a++)for(R[a]||(R[a]=[]),i=r;r+l>i;i++)R[a][i]={part:t,real:a==o&&i==r,elm:e,rowspan:s,colspan:l}})}),e+=i.length})}functions(e,t){returne=e.cloneNode(t),e.removeAttribute("id"),e}functionl(e,t){varn;returnn=R[t],n?n[e]:void0}functionc(e,t,n){e&&(n=parseInt(n,10),1===n?e.removeAttribute(t,1):e.setAttribute(t,n,1))}functiond(e){returne&&(H.hasClass(e.elm,"mce-item-selected")||e==L)}functionu(){vare=[];returnr(o.rows,function(t){r(t.cells,function(n){returnH.hasClass(n,"mce-item-selected")||n==L.elm?(e.push(t),!1):void0})}),e}functionf(){vare=H.createRng();e.setStartAfter(o),e.setEndAfter(o),M.setRng(e),H.remove(o)}functionp(n){varo,a={};returni.settings.table_clone_elements!==!1&&(a=e.makeMap((i.settings.table_clone_elements||"strong em b i span font h1 h2 h3 h4 h5 h6 p div").toUpperCase(),/[ ,]/)),e.walk(n,function(e){vari;return3==e.nodeType?(r(H.getParents(e.parentNode,null,n).reverse(),function(e){a[e.nodeName]&&(e=s(e,!1),o?i&&i.appendChild(e):o=i=e,i=e)}),i&&(i.innerHTML=t.ie?" ":'<br data-mce-bogus="1" />'),!1):void0},"childNodes"),n=s(n,!1),c(n,"rowSpan",1),c(n,"colSpan",1),o?n.appendChild(o):t.ie||(n.innerHTML='<br data-mce-bogus="1" />'),n}functionm(){vare=H.createRng(),t;returnr(H.select("tr",o),function(e){0===e.cells.length&&H.remove(e)}),0===H.select("tr",o).length?(e.setStartBefore(o),e.setEndBefore(o),M.setRng(e),voidH.remove(o)):(r(H.select("thead,tbody,tfoot",o),function(e){0===e.rows.length&&H.remove(e)}),a(),t=R[Math.min(R.length-1,A.y)],void(t&&(M.select(t[Math.min(t.length-1,A.x)].elm,!0),M.collapse(!0))))}functionh(e,t,n,r){vari,o,a,s,l;for(i=R[t][e].elm.parentNode,a=1;n>=a;a++)if(i=H.getNext(i,"tr")){for(o=e;o>=0;o--)if(l=R[t+a][o].elm,l.parentNode==i){for(s=1;r>=s;s++)H.insertAfter(p(l),l);break}if(-1==o)for(s=1;r>=s;s++)i.insertBefore(p(i.cells[0]),i.cells[0])}}functiong(){r(R,function(e,t){r(e,function(e,r){vari,o,a;if(d(e)&&(e=e.elm,i=n(e,"colspan"),o=n(e,"rowspan"),i>1||o>1)){for(c(e,"rowSpan",1),c(e,"colSpan",1),a=0;i-1>a;a++)H.insertAfter(p(e),e);h(r,t,o-1,i)}})})}functionv(t,n,i){varo,s,u,f,p,h,v,y,b,C,x;if(t?(o=k(t),s=o.x,u=o.y,f=s+(n-1),p=u+(i-1)):(A=B=null,r(R,function(e,t){r(e,function(e,n){d(e)&&(A||(A={x:n,y:t}),B={x:n,y:t})})}),s=A.x,u=A.y,f=B.x,p=B.y),y=l(s,u),b=l(f,p),y&&b&&y.part==b.part){for(g(),a(),y=l(s,u).elm,c(y,"colSpan",f-s+1),c(y,"rowSpan",p-u+1),v=u;p>=v;v++)for(h=s;f>=h;h++)R[v]&&R[v][h]&&(t=R[v][h].elm,t!=y&&(C=e.grep(t.childNodes),r(C,function(e){y.appendChild(e)}),C.length&&(C=e.grep(y.childNodes),x=0,r(C,function(e){"BR"==e.nodeName&&H.getAttrib(e,"data-mce-bogus")&&x++<C.length-1&&y.removeChild(e)})),H.remove(t)));m()}}functiony(e){vart,i,o,a,l,u,f,m,h;for(r(R,function(n,i){returnr(n,function(n){returnd(n)&&(n=n.elm,l=n.parentNode,u=s(l,!1),t=i,e)?!1:void0}),e?!t:void0}),a=0;a<R[0].length;a++)if(R[t][a]&&(i=R[t][a].elm,i!=o)){if(e){if(t>0&&R[t-1][a]&&(m=R[t-1][a].elm,h=n(m,"rowSpan"),h>1)){c(m,"rowSpan",h+1);continue}}elseif(h=n(i,"rowspan"),h>1){c(i,"rowSpan",h+1);continue}f=p(i),c(f,"colSpan",i.colSpan),u.appendChild(f),o=i}u.hasChildNodes()&&(e?l.parentNode.insertBefore(u,l):H.insertAfter(u,l))}functionb(e){vart,i;r(R,function(n){returnr(n,function(n,r){returnd(n)&&(t=r,e)?!1:void0}),e?!t:void0}),r(R,function(r,o){vara,s,l;r[t]&&(a=r[t].elm,a!=i&&(l=n(a,"colspan"),s=n(a,"rowspan"),1==l?e?(a.parentNode.insertBefore(p(a),a),h(t,o,s-1,l)):(H.insertAfter(p(a),a),h(t,o,s-1,l)):c(a,"colSpan",a.colSpan+1),i=a))})}functionC(){vart=[];r(R,function(i){r(i,function(i,o){d(i)&&-1===e.inArray(t,o)&&(r(R,function(e){vart=e[o].elm,rLine truncated
!function(e,t){"use strict";functionn(e,t){for(varn,o=[],i=0;i<e.length;++i){if(n=l[e[i]]||r(e[i]),!n)throw"module definition dependecy not found: "+e[i];o.push(n)}t.apply(null,o)}functiono(e,o,r){if("string"!=typeofe)throw"invalid module definition, module id must be defined and be a string";if(o===t)throw"invalid module definition, dependencies must be specified";if(r===t)throw"invalid module definition, definition function must be specified";n(o,function(){l[e]=r.apply(null,arguments)})}functionr(t){for(varn=e,o=t.split(/[.\/]/),r=0;r<o.length;++r){if(!n[o[r]])return;n=n[o[r]]}returnn}functioni(n){for(varo=0;o<n.length;o++){for(varr=e,i=n[o],a=i.split(/[.\/]/),c=0;c<a.length-1;++c)r[a[c]]===t&&(r[a[c]]={}),r=r[a[c]];r[a[a.length-1]]=l[i]}}varl={};o("tinymce/tableplugin/TableGrid",["tinymce/util/Tools","tinymce/Env"],function(e,t){functionn(e,t){returnparseInt(e.getAttribute(t)||1,10)}varo=e.each;returnfunction(r,i){functionl(){vare=0;B=[],o(["thead","tbody","tfoot"],function(t){varr=E.select("> "+t+" tr",i);o(r,function(r,i){i+=e,o(E.select("> td, > th",r),function(e,o){varr,l,a,c;if(B[i])for(;B[i][o];)o++;for(a=n(e,"rowspan"),c=n(e,"colspan"),l=i;i+a>l;l++)for(B[l]||(B[l]=[]),r=o;o+c>r;r++)B[l][r]={part:t,real:l==i&&r==o,elm:e,rowspan:a,colspan:c}})}),e+=r.length})}functiona(e,t){returne=e.cloneNode(t),e.removeAttribute("id"),e}functionc(e,t){varn;returnn=B[t],n?n[e]:void0}functions(e,t,n){e&&(n=parseInt(n,10),1===n?e.removeAttribute(t,1):e.setAttribute(t,n,1))}functiond(e){returne&&(E.hasClass(e.elm,"mce-item-selected")||e==D)}functionu(){vare=[];returno(i.rows,function(t){o(t.cells,function(n){returnE.hasClass(n,"mce-item-selected")||n==D.elm?(e.push(t),!1):void0})}),e}functionm(){vare=E.createRng();e.setStartAfter(i),e.setEndAfter(i),I.setRng(e),E.remove(i)}functionf(n){vari,l={};returnr.settings.table_clone_elements!==!1&&(l=e.makeMap((r.settings.table_clone_elements||"strong em b i span font h1 h2 h3 h4 h5 h6 p div").toUpperCase(),/[ ,]/)),e.walk(n,function(e){varr;return3==e.nodeType?(o(E.getParents(e.parentNode,null,n).reverse(),function(e){l[e.nodeName]&&(e=a(e,!1),i?r&&r.appendChild(e):i=r=e,r=e)}),r&&(r.innerHTML=t.ie?" ":'<br data-mce-bogus="1" />'),!1):void0},"childNodes"),n=a(n,!1),s(n,"rowSpan",1),s(n,"colSpan",1),i?n.appendChild(i):t.ie||(n.innerHTML='<br data-mce-bogus="1" />'),n}functiong(){vare,t=E.createRng();returno(E.select("tr",i),function(e){0===e.cells.length&&E.remove(e)}),0===E.select("tr",i).length?(t.setStartBefore(i),t.setEndBefore(i),I.setRng(t),voidE.remove(i)):(o(E.select("thead,tbody,tfoot",i),function(e){0===e.rows.length&&E.remove(e)}),l(),e=B[Math.min(B.length-1,k.y)],void(e&&(I.select(e[Math.min(e.length-1,k.x)].elm,!0),I.collapse(!0))))}functionp(e,t,n,o){varr,i,l,a,c;for(r=B[t][e].elm.parentNode,l=1;n>=l;l++)if(r=E.getNext(r,"tr")){for(i=e;i>=0;i--)if(c=B[t+l][i].elm,c.parentNode==r){for(a=1;o>=a;a++)E.insertAfter(f(c),c);break}if(-1==i)for(a=1;o>=a;a++)r.insertBefore(f(r.cells[0]),r.cells[0])}}functionh(){o(B,function(e,t){o(e,function(e,o){varr,i,l;if(d(e)&&(e=e.elm,r=n(e,"colspan"),i=n(e,"rowspan"),r>1||i>1)){for(s(e,"rowSpan",1),s(e,"colSpan",1),l=0;r-1>l;l++)E.insertAfter(f(e),e);p(o,t,i-1,r)}})})}functionb(t,n,r){vari,a,u,m,f,p,b,v,w,y,x;if(t?(i=T(t),a=i.x,u=i.y,m=a+(n-1),f=u+(r-1)):(k=M=null,o(B,function(e,t){o(e,function(e,n){d(e)&&(k||(k={x:n,y:t}),M={x:n,y:t})})}),a=k.x,u=k.y,m=M.x,f=M.y),v=c(a,u),w=c(m,f),v&&w&&v.part==w.part){for(h(),l(),v=c(a,u).elm,s(v,"colSpan",m-a+1),s(v,"rowSpan",f-u+1),b=u;f>=b;b++)for(p=a;m>=p;p++)B[b]&&B[b][p]&&(t=B[b][p].elm,t!=v&&(y=e.grep(t.childNodes),o(y,function(e){v.appendChild(e)}),y.length&&(y=e.grep(v.childNodes),x=0,o(y,function(e){"BR"==e.nodeName&&E.getAttrib(e,"data-mce-bogus")&&x++<y.length-1&&v.removeChild(e)})),E.remove(t)));g()}}functionv(e){vart,r,i,l,c,u,m,g,p;for(o(B,function(n,r){returno(n,function(n){returnd(n)&&(n=n.elm,c=n.parentNode,u=a(c,!1),t=r,e)?!1:void0}),e?!t:void0}),l=0;l<B[0].length;l++)if(B[t][l]&&(r=B[t][l].elm,r!=i)){if(e){if(t>0&&B[t-1][l]&&(g=B[t-1][l].elm,p=n(g,"rowSpan"),p>1)){s(g,"rowSpan",p+1);continue}}elseif(p=n(r,"rowspan"),p>1){s(r,"rowSpan",p+1);continue}m=f(r),s(m,"colSpan",r.colSpan),u.appendChild(m),i=r}u.hasChildNodes()&&(e?c.parentNode.insertBefore(u,c):E.insertAfter(u,c))}functionw(e){vart,r;o(B,function(n){returno(n,function(n,o){returnd(n)&&(t=o,e)?!1:void0}),e?!t:void0}),o(B,function(o,i){varl,a,c;o[t]&&(l=o[t].elm,l!=r&&(c=n(l,"colspan"),a=n(l,"rowspan"),1==c?e?(l.parentNode.insertBefore(f(l),l),p(t,i,a-1,c)):(E.insertAfter(f(l),l),p(t,i,a-1,c)):s(l,"colSpan",l.colSpan+1),r=l))})}functiony(){vart=[];o(B,function(r){o(r,function(r,i){d(r)&&-1===e.inArray(t,i)&&(o(B,function(e){vart,o=e[i].elm;t=n(o,"colSpan"),t>1?s(o,"colSpan",t-1):E.remove(o)}),t.push(i))})}),g()}functionx(){functione(e){vart,r,i;t=E.getNext(e,"tr"),o(e.cells,function(e){vart=n(e,"rowSpan");t>1&&(s(e,"rowSpan",t-1),r=T(e),p(r.x,Line truncated
!function(e,t){"use strict";functionn(e,t){for(varn,r=[],i=0;i<e.length;++i){if(n=s[e[i]]||o(e[i]),!n)throw"module definition dependecy not found: "+e[i];r.push(n)}t.apply(null,r)}functionr(e,r,i){if("string"!=typeofe)throw"invalid module definition, module id must be defined and be a string";if(r===t)throw"invalid module definition, dependencies must be specified";if(i===t)throw"invalid module definition, definition function must be specified";n(r,function(){s[e]=i.apply(null,arguments)})}functioni(e){return!!s[e]}functiono(t){for(varn=e,r=t.split(/[.\/]/),i=0;i<r.length;++i){if(!n[r[i]])return;n=n[r[i]]}returnn}functiona(n){for(varr=0;r<n.length;r++){for(vari=e,o=n[r],a=o.split(/[.\/]/),l=0;l<a.length-1;++l)i[a[l]]===t&&(i[a[l]]={}),i=i[a[l]];i[a[a.length-1]]=s[o]}}vars={},l="tinymce/dom/EventUtils",c="tinymce/dom/Sizzle",u="tinymce/dom/DomQuery",d="tinymce/html/Styles",f="tinymce/dom/TreeWalker",p="tinymce/util/Tools",h="tinymce/dom/Range",m="tinymce/html/Entities",g="tinymce/Env",v="tinymce/dom/DOMUtils",y="tinymce/dom/ScriptLoader",b="tinymce/AddOnManager",C="tinymce/html/Node",x="tinymce/html/Schema",w="tinymce/html/SaxParser",_="tinymce/html/DomParser",N="tinymce/html/Writer",E="tinymce/html/Serializer",k="tinymce/dom/Serializer",S="tinymce/dom/TridentSelection",T="tinymce/util/VK",R="tinymce/dom/ControlSelection",A="tinymce/dom/Selection",B="tinymce/dom/RangeUtils",L="tinymce/Formatter",H="tinymce/UndoManager",D="tinymce/EnterKey",M="tinymce/ForceBlocks",P="tinymce/EditorCommands",O="tinymce/util/URI",I="tinymce/util/Class",F="tinymce/ui/Selector",z="tinymce/ui/Collection",W="tinymce/ui/DomUtils",V="tinymce/ui/Control",U="tinymce/ui/Factory",q="tinymce/ui/Container",$="tinymce/ui/DragHelper",j="tinymce/ui/Scrollable",K="tinymce/ui/Panel",G="tinymce/ui/Movable",Y="tinymce/ui/Resizable",X="tinymce/ui/FloatPanel",J="tinymce/ui/KeyboardNavigation",Q="tinymce/ui/Window",Z="tinymce/ui/MessageBox",et="tinymce/WindowManager",tt="tinymce/util/Quirks",nt="tinymce/util/Observable",rt="tinymce/Shortcuts",it="tinymce/Editor",ot="tinymce/util/I18n",at="tinymce/FocusManager",st="tinymce/EditorManager",lt="tinymce/LegacyInput",ct="tinymce/util/XHR",ut="tinymce/util/JSON",dt="tinymce/util/JSONRequest",ft="tinymce/util/JSONP",pt="tinymce/util/LocalStorage",ht="tinymce/Compat",mt="tinymce/ui/Layout",gt="tinymce/ui/AbsoluteLayout",vt="tinymce/ui/Tooltip",yt="tinymce/ui/Widget",bt="tinymce/ui/Button",Ct="tinymce/ui/ButtonGroup",xt="tinymce/ui/Checkbox",wt="tinymce/ui/PanelButton",_t="tinymce/ui/ColorButton",Nt="tinymce/ui/ComboBox",Et="tinymce/ui/Path",kt="tinymce/ui/ElementPath",St="tinymce/ui/FormItem",Tt="tinymce/ui/Form",Rt="tinymce/ui/FieldSet",At="tinymce/ui/FilePicker",Bt="tinymce/ui/FitLayout",Lt="tinymce/ui/FlexLayout",Ht="tinymce/ui/FlowLayout",Dt="tinymce/ui/FormatControls",Mt="tinymce/ui/GridLayout",Pt="tinymce/ui/Iframe",Ot="tinymce/ui/Label",It="tinymce/ui/Toolbar",Ft="tinymce/ui/MenuBar",zt="tinymce/ui/MenuButton",Wt="tinymce/ui/ListBox",Vt="tinymce/ui/MenuItem",Ut="tinymce/ui/Menu",qt="tinymce/ui/Radio",$t="tinymce/ui/ResizeHandle",jt="tinymce/ui/Spacer",Kt="tinymce/ui/SplitButton",Gt="tinymce/ui/StackLayout",Yt="tinymce/ui/TabPanel",Xt="tinymce/ui/TextBox",Jt="tinymce/ui/Throbber";r(l,[],function(){functione(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r||!1):e.attachEvent&&e.attachEvent("on"+t,n)}functiont(e,t,n,r){e.removeEventListener?e.removeEventListener(t,n,r||!1):e.detachEvent&&e.detachEvent("on"+t,n)}functionn(e,t){functionn(){return!1}functionr(){return!0}vari,o=t||{},l;for(iine)s[i]||(o[i]=e[i]);if(o.target||(o.target=o.srcElement||document),e&&a.test(e.type)&&e.pageX===l&&e.clientX!==l){varc=o.target.ownerDocument||document,u=c.documentElement,d=c.body;o.pageX=e.clientX+(u&&u.scrollLeft||d&&d.scrollLeft||0)-(u&&u.clientLeft||d&&d.clientLeft||0),o.pageY=e.clientY+(u&&u.scrollTop||d&&d.scrollTop||0)-(u&&u.clientTop||d&&d.clientTop||0)}returno.preventDefault=function(){o.isDefaultPrevented=r,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},o.stopPropagation=function(){o.isPropagationStopped=r,e&&(e.stopPropagation?e.stopPropagation():e.cancelBubble=!0)},o.stopImmediatePropagation=function(){o.isImmediatePropagationStopped=r,o.stopPropagation()},o.isDefaultPrevented||(o.isDefaultPrevented=n,o.isPropagationStopped=n,o.isImmediatePropagationStopped=n),o}functionr(n,r,i){functiono(){i.domLoaded||(i.domLoaded=!0,r(c))}functiona(){"complete"===l.readyState&&(t(l,"readystatechange",a),o())}functions(){try{l.documentElement.doScroll("left")}catch(e){returnvoidsetTimeout(s,0)}o()}varl=n.document,c={type:"ready"};returni.domLoaded?voidr(c):(l.addEventListener?"complete"===l.readyState?o():e(n,"DOMContentLoaded",o):(e(l,"readystatechange",a),l.documentElement.doScroll&&n===n.top&&s()),voide(n,"load",o))}functioni(){functioni(e,t){varn,r,i,o,a=s[t];if(n=a&&a[e.type])for(r=0,i=n.length;i>r;r++)if(o=n[r],o&&o.func.call(o.scope,e)===!1&&e.preventDefault(),e.iLine truncated
}):(e=e[2],function(t,n,r){return"first"===e?0===n:"last"===e?n===r-1:"even"===e?n%2===0:"odd"===e?n%2===1:t[e]?t[e]():!1})):void0}functionc(e,r,c){functionu(e){e&&r.push(e)}vard;returnd=n.exec(e.replace(i,"")),u(t(d[1])),u(o(d[2])),u(a(d[3])),u(s(d[4],d[5],d[6])),u(l(d[7])),r.psuedo=!!d[7],r.direct=c,r}functionu(e,t){varn=[],i,o,a;doif(r.exec(""),o=r.exec(e),o&&(e=o[3],n.push(o[1]),o[2])){i=o[3];break}while(o);for(i&&u(i,t),e=[],a=0;a<n.length;a++)">"!=n[a]&&e.push(c(n[a],[],">"===n[a-1]));returnt.push(e),t}vard=this.match;this._selectors=u(e,[])},match:function(e,t){varn,r,i,o,a,s,l,c,u,d,f,p,h;for(t=t||this._selectors,n=0,r=t.length;r>n;n++){for(a=t[n],o=a.length,h=e,p=0,i=o-1;i>=0;i--)for(c=a[i];h;){if(c.psuedo)for(f=h.parent().items(),u=d=f.length;u--&&f[u]!==h;);for(s=0,l=c.length;l>s;s++)if(!c[s](h,u,d)){s=l+1;break}if(s===l){p++;break}if(i===o-1)break;h=h.parent()}if(p===o)return!0}return!1},find:function(e){functionn(e,t,i){varo,a,s,l,c,u=t[i];for(o=0,a=e.length;a>o;o++){for(c=e[o],s=0,l=u.length;l>s;s++)if(!u[s](c,o,a)){s=l+1;break}if(s===l)i==t.length-1?r.push(c):c.items&&n(c.items(),t,i+1);elseif(u.direct)return;c.items&&n(c.items(),t,i)}}varr=[],i,s,l=this._selectors;if(e.items){for(i=0,s=l.length;s>i;i++)n(e.items(),l[i],0);s>1&&(r=t(r))}returno||(o=a.Collection),newo(r)}});returna}),r(z,[p,F,I],function(e,t,n){varr,i,o=Array.prototype.push,a=Array.prototype.slice;returni={length:0,init:function(e){e&&this.add(e)},add:function(t){varn=this;returne.isArray(t)?o.apply(n,t):tinstanceofr?n.add(t.toArray()):o.call(n,t),n},set:function(e){vart=this,n=t.length,r;for(t.length=0,t.add(e),r=t.length;n>r;r++)deletet[r];returnt},filter:function(e){varn=this,i,o,a=[],s,l;for("string"==typeofe?(e=newt(e),l=function(t){returne.match(t)}):l=e,i=0,o=n.length;o>i;i++)s=n[i],l(s)&&a.push(s);returnnewr(a)},slice:function(){returnnewr(a.apply(this,arguments))},eq:function(e){return-1===e?this.slice(e):this.slice(e,+e+1)},each:function(t){returne.each(this,t),this},toArray:function(){returne.toArray(this)},indexOf:function(e){for(vart=this,n=t.length;n--&&t[n]!==e;);returnn},reverse:function(){returnnewr(e.toArray(this).reverse())},hasClass:function(e){returnthis[0]?this[0].hasClass(e):!1},prop:function(e,t){varn=this,r,i;returnt!==r?(n.each(function(n){n[e]&&n[e](t)}),n):(i=n[0],i&&i[e]?i[e]():void0)},exec:function(t){varn=this,r=e.toArray(arguments).slice(1);returnn.each(function(e){e[t]&&e[t].apply(e,r)}),n},remove:function(){for(vare=this.length;e--;)this[e].remove();returnthis}},e.each("fire on off show hide addClass removeClass append prepend before after reflow".split(" "),function(t){i[t]=function(){varn=e.toArray(arguments);returnthis.each(function(e){tine&&e[t].apply(e,n)}),this}}),e.each("text name disabled active selected checked visible parent value data".split(" "),function(e){i[e]=function(t){returnthis.prop(e,t)}}),r=n.extend(i),t.Collection=r,r}),r(W,[p,v],function(e,t){return{id:function(){returnt.DOM.uniqueId()},createFragment:function(e){returnt.DOM.createFragment(e)},getWindowSize:function(){returnt.DOM.getViewPort()},getSize:function(e){vart,n;if(e.getBoundingClientRect){varr=e.getBoundingClientRect();t=Math.max(r.width||r.right-r.left,e.offsetWidth),n=Math.max(r.height||r.bottom-r.bottom,e.offsetHeight)}elset=e.offsetWidth,n=e.offsetHeight;return{width:t,height:n}},getPos:function(e,n){returnt.DOM.getPos(e,n)},getViewPort:function(e){returnt.DOM.getViewPort(e)},get:function(e){returndocument.getElementById(e)},addClass:function(e,n){returnt.DOM.addClass(e,n)},removeClass:function(e,n){returnt.DOM.removeClass(e,n)},hasClass:function(e,n){returnt.DOM.hasClass(e,n)},toggleClass:function(e,n,r){returnt.DOM.toggleClass(e,n,r)},css:function(e,n,r){returnt.DOM.setStyle(e,n,r)},on:function(e,n,r,i){returnt.DOM.bind(e,n,r,i)},off:function(e,n,r){returnt.DOM.unbind(e,n,r)},fire:function(e,n,r){returnt.DOM.fire(e,n,r)},innerHtml:function(e,n){t.DOM.setHTML(e,n)}}}),r(V,[I,p,z,W],function(e,t,n,r){vari=t.makeMap("focusin focusout scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave wheel keydown keypress keyup contextmenu"," "),o={},a="onmousewheel"indocument,s=!1,l=e.extend({Statics:{controlIdLookup:{},elementIdCache:o},isRtl:function(){returnl.rtl},classPrefix:"mce-",init:function(e){varn=this,i,o;if(n.settings=e=t.extend({},n.Defaults,e),n._id=r.id(),n._text=n._name="",n._width=n._height=0,n._aria={role:e.role},i=e.classes)for(i=i.split(" "),i.map={},o=i.length;o--;)i.map[i[o]]=!0;n._classes=i||[],n.visible(!0),t.each("title text width height name classes visible disabled active value".split(" "),function(t){varr=e[t],i;r!==i?n[t](r):n["_"+t]===i&&(n["_"+t]=!1)}),n.on("click",function(){returnn.disabled()?!1:void0}),e.classes&&t.each(e.classes.split(" "),function(e){n.addClass(e)}),n.settings=e,n._borderBox=n.parseBox(e.border),n._paddingBox=n.parseBox(e.padding),n._marginBox=n.parseBoxLine truncated
;!function(e,t){"use strict";functionn(e,t){for(varn,o=[],i=0;i<e.length;++i){if(n=l[e[i]]||r(e[i]),!n)throw"module definition dependecy not found: "+e[i];o.push(n)}t.apply(null,o)}functiono(e,o,i){if("string"!=typeofe)throw"invalid module definition, module id must be defined and be a string";if(o===t)throw"invalid module definition, dependencies must be specified";if(i===t)throw"invalid module definition, definition function must be specified";n(o,function(){l[e]=i.apply(null,arguments)})}functioni(e){return!!l[e]}functionr(t){for(varn=e,o=t.split(/[.\/]/),i=0;i<o.length;++i){if(!n[o[i]])return;n=n[o[i]]}returnn}functiona(n){for(varo=0;o<n.length;o++){for(vari=e,r=n[o],a=r.split(/[.\/]/),s=0;s<a.length-1;++s)i[a[s]]===t&&(i[a[s]]={}),i=i[a[s]];i[a[a.length-1]]=l[r]}}varl={},s="tinymce/tableplugin/TableGrid",c="tinymce/util/Tools",d="tinymce/Env",u="tinymce/tableplugin/Quirks",f="tinymce/util/VK",m="tinymce/tableplugin/CellSelection",p="tinymce/dom/TreeWalker",g="tinymce/tableplugin/Plugin",h="tinymce/PluginManager";o(s,[c,d],function(e,t){functionn(e,t){returnparseInt(e.getAttribute(t)||1,10)}varo=e.each;returnfunction(i,r){functiona(){vare=0;_=[],o(["thead","tbody","tfoot"],function(t){vari=E.select("> "+t+" tr",r);o(i,function(i,r){r+=e,o(E.select("> td, > th",i),function(e,o){vari,a,l,s;if(_[r])for(;_[r][o];)o++;for(l=n(e,"rowspan"),s=n(e,"colspan"),a=r;r+l>a;a++)for(_[a]||(_[a]=[]),i=o;o+s>i;i++)_[a][i]={part:t,real:a==r&&i==o,elm:e,rowspan:l,colspan:s}})}),e+=i.length})}functionl(e,t){returne=e.cloneNode(t),e.removeAttribute("id"),e}functions(e,t){varn;returnn=_[t],n?n[e]:void0}functionc(e,t,n){e&&(n=parseInt(n,10),1===n?e.removeAttribute(t,1):e.setAttribute(t,n,1))}functiond(e){returne&&(E.hasClass(e.elm,"mce-item-selected")||e==M)}functionu(){vare=[];returno(r.rows,function(t){o(t.cells,function(n){returnE.hasClass(n,"mce-item-selected")||n==M.elm?(e.push(t),!1):void0})}),e}functionf(){vare=E.createRng();e.setStartAfter(r),e.setEndAfter(r),D.setRng(e),E.remove(r)}functionm(n){varr,a={};returni.settings.table_clone_elements!==!1&&(a=e.makeMap((i.settings.table_clone_elements||"strong em b i span font h1 h2 h3 h4 h5 h6 p div").toUpperCase(),/[ ,]/)),e.walk(n,function(e){vari;return3==e.nodeType?(o(E.getParents(e.parentNode,null,n).reverse(),function(e){a[e.nodeName]&&(e=l(e,!1),r?i&&i.appendChild(e):r=i=e,i=e)}),i&&(i.innerHTML=t.ie?" ":'<br data-mce-bogus="1" />'),!1):void0},"childNodes"),n=l(n,!1),c(n,"rowSpan",1),c(n,"colSpan",1),r?n.appendChild(r):t.ie||(n.innerHTML='<br data-mce-bogus="1" />'),n}functionp(){vare=E.createRng(),t;returno(E.select("tr",r),function(e){0===e.cells.length&&E.remove(e)}),0===E.select("tr",r).length?(e.setStartBefore(r),e.setEndBefore(r),D.setRng(e),voidE.remove(r)):(o(E.select("thead,tbody,tfoot",r),function(e){0===e.rows.length&&E.remove(e)}),a(),t=_[Math.min(_.length-1,B.y)],void(t&&(D.select(t[Math.min(t.length-1,B.x)].elm,!0),D.collapse(!0))))}functiong(e,t,n,o){vari,r,a,l,s;for(i=_[t][e].elm.parentNode,a=1;n>=a;a++)if(i=E.getNext(i,"tr")){for(r=e;r>=0;r--)if(s=_[t+a][r].elm,s.parentNode==i){for(l=1;o>=l;l++)E.insertAfter(m(s),s);break}if(-1==r)for(l=1;o>=l;l++)i.insertBefore(m(i.cells[0]),i.cells[0])}}functionh(){o(_,function(e,t){o(e,function(e,o){vari,r,a;if(d(e)&&(e=e.elm,i=n(e,"colspan"),r=n(e,"rowspan"),i>1||r>1)){for(c(e,"rowSpan",1),c(e,"colSpan",1),a=0;i-1>a;a++)E.insertAfter(m(e),e);g(o,t,r-1,i)}})})}functionb(t,n,i){varr,l,u,f,m,g,b,v,y,w,x;if(t?(r=S(t),l=r.x,u=r.y,f=l+(n-1),m=u+(i-1)):(B=A=null,o(_,function(e,t){o(e,function(e,n){d(e)&&(B||(B={x:n,y:t}),A={x:n,y:t})})}),l=B.x,u=B.y,f=A.x,m=A.y),v=s(l,u),y=s(f,m),v&&y&&v.part==y.part){for(h(),a(),v=s(l,u).elm,c(v,"colSpan",f-l+1),c(v,"rowSpan",m-u+1),b=u;m>=b;b++)for(g=l;f>=g;g++)_[b]&&_[b][g]&&(t=_[b][g].elm,t!=v&&(w=e.grep(t.childNodes),o(w,function(e){v.appendChild(e)}),w.length&&(w=e.grep(v.childNodes),x=0,o(w,function(e){"BR"==e.nodeName&&E.getAttrib(e,"data-mce-bogus")&&x++<w.length-1&&v.removeChild(e)})),E.remove(t)));p()}}functionv(e){vart,i,r,a,s,u,f,p,g;for(o(_,function(n,i){returno(n,function(n){returnd(n)&&(n=n.elm,s=n.parentNode,u=l(s,!1),t=i,e)?!1:void0}),e?!t:void0}),a=0;a<_[0].length;a++)if(_[t][a]&&(i=_[t][a].elm,i!=r)){if(e){if(t>0&&_[t-1][a]&&(p=_[t-1][a].elm,g=n(p,"rowSpan"),g>1)){c(p,"rowSpan",g+1);continue}}elseif(g=n(i,"rowspan"),g>1){c(i,"rowSpan",g+1);continue}f=m(i),c(f,"colSpan",i.colSpan),u.appendChild(f),r=i}u.hasChildNodes()&&(e?s.parentNode.insertBefore(u,s):E.insertAfter(u,s))}functiony(e){vart,i;o(_,function(n){returno(n,function(n,o){returnd(n)&&(t=o,e)?!1:void0}),e?!t:void0}),o(_,function(o,r){vara,l,s;o[t]&&(a=o[t].elm,a!=i&&(s=n(a,"colspan"),l=n(a,"rowspan"),1==s?e?(a.parentNode.insertBefore(m(a),a),g(t,r,l-1,s)):(E.insertAfter(m(a),a),g(t,r,l-1,s)):c(a,"colSpan",a.colSpan+1),i=a))})}functionw(){vart=[];o(_,function(i){o(i,function(i,r){d(i)&&-1===e.inArray(t,r)&&(o(_,function(e){vart=e[r].elm,Line truncated
;!function(e,t){"use strict";functionn(e,t){for(varn,i=[],r=0;r<e.length;++r){if(n=s[e[r]]||o(e[r]),!n)throw"module definition dependecy not found: "+e[r];i.push(n)}t.apply(null,i)}functioni(e,i,r){if("string"!=typeofe)throw"invalid module definition, module id must be defined and be a string";if(i===t)throw"invalid module definition, dependencies must be specified";if(r===t)throw"invalid module definition, definition function must be specified";n(i,function(){s[e]=r.apply(null,arguments)})}functionr(e){return!!s[e]}functiono(t){for(varn=e,i=t.split(/[.\/]/),r=0;r<i.length;++r){if(!n[i[r]])return;n=n[i[r]]}returnn}functiona(n){for(vari=0;i<n.length;i++){for(varr=e,o=n[i],a=o.split(/[.\/]/),l=0;l<a.length-1;++l)r[a[l]]===t&&(r[a[l]]={}),r=r[a[l]];r[a[a.length-1]]=s[o]}}vars={},l="tinymce/pasteplugin/Utils",c="tinymce/util/Tools",u="tinymce/html/DomParser",d="tinymce/html/Schema",p="tinymce/pasteplugin/Clipboard",f="tinymce/Env",m="tinymce/util/VK",g="tinymce/pasteplugin/WordFilter",h="tinymce/html/Serializer",v="tinymce/html/Node",b="tinymce/pasteplugin/Quirks",y="tinymce/pasteplugin/Plugin",w="tinymce/PluginManager";i(l,[c,u,d],function(e,t,n){functioni(t,n){returne.each(n,function(e){t=e.constructor==RegExp?t.replace(e,""):t.replace(e[0],e[1])}),t}functionr(i){functionr(e){vart=e.name,n=e;if("br"===t)returnvoid(s+="\n");if(l[t]&&(s+=" "),c[t])returnvoid(s+=" ");if(3==e.type&&(s+=e.value),!e.shortEnded&&(e=e.firstChild))dor(e);while(e=e.next);u[t]&&n.next&&(s+="\n","p"==t&&(s+="\n"))}varo=newn,a=newt({},o),s="",l=o.getShortEndedElements(),c=e.makeMap("script noscript style textarea video audio iframe object"," "),u=o.getBlockElements();returnr(a.parse(i)),s}return{filter:i,innerText:r}}),i(p,[f,m,l],function(e,t,n){returnfunction(i){functionr(e){vart,n=i.dom;if(i.settings.paste_data_images||(e=e.replace(/<img[^>]+src=\"data:image[^>]+>/g,"")),t=i.fire("BeforePastePreProcess",{content:e}),t=i.fire("PastePreProcess",t),e=t.content,!t.isDefaultPrevented()){if(i.hasEventListeners("PastePostProcess")&&!t.isDefaultPrevented()){varr=n.add(i.getBody(),"div",{style:"display:none"},e);t=i.fire("PastePostProcess",{node:r}),n.remove(r),e=t.node.innerHTML}t.isDefaultPrevented()||i.insertContent(e)}}functiono(e){e=i.dom.encode(e).replace(/\r\n/g,"\n");vart=i.dom.getParent(i.selection.getStart(),i.dom.isBlock),o=i.settings.forced_root_block,a;o&&(a=i.dom.createHTML(o,i.settings.forced_root_block_attrs),a=a.substr(0,a.length-3)+">"),t&&/^(PRE|DIV)$/.test(t.nodeName)||!o?e=n.filter(e,[[/\n/g,"<br>"]]):(e=n.filter(e,[[/\n\n/g,"</p>"+a],[/^(.*<\/p>)(<p>)$/,a+"$1"],[/\n/g,"<br />"]]),-1!=e.indexOf("<p>")&&(e=a+e)),r(e)}functiona(){vare=i.dom,t=i.getBody(),n=i.dom.getViewPort(i.getWin()),r=i.inline?t.scrollTop:n.y,o=i.inline?t.clientHeight:n.h;s(),d=e.add(i.getBody(),"div",{id:"mcepastebin",contentEditable:!0,"data-mce-bogus":"1",style:"position: absolute; top: "+(r+20)+"px;width: 10px; height: "+(o-40)+"px; overflow: hidden; opacity: 0"},m),e.setStyle(d,"left","rtl"==e.getStyle(t,"direction",!0)?65535:-65535),e.bind(d,"beforedeactivate focusin focusout",function(e){e.stopPropagation()}),p=i.selection.getRng(),d.focus(),i.selection.select(d,!0)}functions(){d&&(i.dom.unbind(d),i.dom.remove(d),p&&i.selection.setRng(p)),g=!1,d=p=null}functionl(){returnd?d.innerHTML:m}functionc(e){vart={},n=e.clipboardData||i.getDoc().dataTransfer;if(n&&n.types){t["text/plain"]=n.getData("Text");for(varr=0;r<n.types.length;r++){varo=n.types[r];t[o]=n.getData(o)}}returnt}varu=this,d,p,f=0,m="%MCEPASTEBIN%",g;i.on("keydown",function(n){if(!n.isDefaultPrevented()&&(t.metaKeyPressed(n)&&86==n.keyCode||n.shiftKey&&45==n.keyCode)){if(g=n.shiftKey&&86==n.keyCode,n.stopImmediatePropagation(),f=(newDate).getTime(),e.ie&&g)returnn.preventDefault(),voidi.fire("paste",{ieFake:!0});a()}}),i.on("paste",function(t){varp=c(t),h=(newDate).getTime()-f<100,v="text"==u.pasteFormat||g;h||t.preventDefault(),!e.ie||h&&!t.ieFake||(a(),i.dom.bind(d,"paste",function(e){e.stopPropagation()}),i.getDoc().execCommand("Paste",!1,null),p["text/html"]=l(),s()),setTimeout(function(){vare=l();returnd&&d.firstChild&&"mcepastebin"===d.firstChild.id&&(v=!0),s(),e!=m&&h||(e=p["text/html"]||p["text/plain"]||m,e!=m)?void(v?o(p["text/plain"]||n.innerText(e)):r(e)):void(h||i.windowManager.alert("Please use Ctrl+V/Cmd+V keyboard shortcuts to paste contents."))},0)}),u.pasteHtml=r,u.pasteText=o}}),i(g,[c,u,d,h,v,l],function(e,t,n,i,r,o){functiona(e){return/class="?Mso|style="[^"]*\bmso-|style='[^'']*\bmso-|w:WordDocument/i.test(e)}functions(s){varl=s.settings;s.on("BeforePastePreProcess",function(c){functionu(e){functiont(e,t,a,s){varl=e._listLevel||o;l!=o&&(o>l?n&&(n=n.parent.parent):(i=n,n=null)),n&&n.name==a?n.append(e):(i=i||n,n=newr(a,1),s>1&&n.attr("start",""+s),e.wrap(n)),e.name="li",t.value="";varc=t.next;c&&3==c.type&&(c.value=c.value.replace(/^\u00a0+/,"")),l>o&&i&&i.lastChild.append(n),o=l}for(varn,i,o=1,a=e.getAll("p"),s=0;Line truncated
;tinymce.PluginManager.add("link",function(e){functiont(t){returnfunction(){varn=e.settings.link_list;"string"==typeofn?tinymce.util.XHR.send({url:n,success:function(e){t(tinymce.util.JSON.parse(e))}}):t(n)}}functionn(t){functionn(e){vart=f.find("#text");(!t.value()||e.lastControl&&t.value()==e.lastControl.text())&&t.value(e.control.text()),f.find("#href").value(e.control.value())}functionl(){varn=[{text:"None",value:""}];returntinymce.each(t,function(t){n.push({text:t.text||t.title,value:e.convertURL(t.value||t.url,"href"),menu:t.menu})}),n}functioni(t){varn=[{text:"None",value:""}];returntinymce.each(e.settings.rel_list,function(e){n.push({text:e.text||e.title,value:e.value,selected:t===e.value})}),n}functionr(t){varn=[{text:"None",value:""}];returne.settings.target_list||n.push({text:"New window",value:"_blank"}),tinymce.each(e.settings.target_list,function(e){n.push({text:e.text||e.title,value:e.value,selected:t===e.value})}),n}functiona(t){varl=[];returntinymce.each(e.dom.select("a:not([href])"),function(e){varn=e.name||e.id;n&&l.push({text:n,value:"#"+n,selected:-1!=t.indexOf("#"+n)})}),l.length?(l.unshift({text:"None",value:""}),{name:"anchor",type:"listbox",label:"Anchors",values:l,onselect:n}):void0}functiono(){d&&d.value(e.convertURL(this.value(),"href")),c||0!==x.text.length||this.parent().parent().find("#text")[0].value(this.value())}varu,s,c,f,d,h,v,x={},g=e.selection,m=e.dom;u=g.getNode(),s=m.getParent(u,"a[href]"),x.text=c=s?s.innerText||s.textContent:g.getContent({format:"text"}),x.href=s?m.getAttrib(s,"href"):"",x.target=s?m.getAttrib(s,"target"):"",x.rel=s?m.getAttrib(s,"rel"):"","IMG"==u.nodeName&&(x.text=c=" "),t&&(d={type:"listbox",label:"Link list",values:l(),onselect:n,value:e.convertURL(x.href,"href"),onPostRender:function(){d=this}}),e.settings.target_list!==!1&&(v={name:"target",type:"listbox",label:"Target",values:r(x.target)}),e.settings.rel_list&&(h={name:"rel",type:"listbox",label:"Rel",values:i(x.rel)}),f=e.windowManager.open({title:"Insert link",data:x,body:[{name:"href",type:"filepicker",filetype:"file",size:40,autofocus:!0,label:"Url",onchange:o,onkeyup:o},{name:"text",type:"textbox",size:40,label:"Text to display",onchange:function(){x.text=this.value()}},a(x.href),d,h,v],onSubmit:function(t){functionn(t,n){window.setTimeout(function(){e.windowManager.confirm(t,n)},0)}functionl(){i.text!=c?s?(e.focus(),s.innerHTML=i.text,m.setAttribs(s,{href:r,target:i.target?i.target:null,rel:i.rel?i.rel:null}),g.select(s)):e.insertContent(m.createHTML("a",{href:r,target:i.target?i.target:null,rel:i.rel?i.rel:null},i.text)):e.execCommand("mceInsertLink",!1,{href:r,target:i.target,rel:i.rel?i.rel:null})}vari=t.data,r=i.href;returnr?r.indexOf("@")>0&&-1==r.indexOf("//")&&-1==r.indexOf("mailto:")?(n("The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?",function(e){e&&(r="mailto:"+r),l()}),void0):/^\s*www\./i.test(r)?(n("The URL you entered seems to be an external link. Do you want to add the required http:// prefix?",function(e){e&&(r="http://"+r),l()}),void0):(l(),void0):(e.execCommand("unlink"),void0)}})}e.addButton("link",{icon:"link",tooltip:"Insert/edit link",shortcut:"Ctrl+K",onclick:t(n),stateSelector:"a[href]"}),e.addButton("unlink",{icon:"unlink",tooltip:"Remove link",cmd:"unlink",stateSelector:"a[href]"}),e.addShortcut("Ctrl+K","",t(n)),this.showDialog=n,e.addMenuItem("link",{icon:"link",text:"Insert link",shortcut:"Ctrl+K",onclick:t(n),stateSelector:"a[href]",context:"insert",prependToContext:!0})});
;tinymce.PluginManager.add("directionality",function(e){functiont(t){varn,r=e.dom,i=e.selection.getSelectedBlocks();i.length&&(n=r.getAttrib(i[0],"dir"),tinymce.each(i,function(e){r.getParent(e.parentNode,"*[dir='"+t+"']",r.getRoot())||(n!=t?r.setAttrib(e,"dir",t):r.setAttrib(e,"dir",null))}),e.nodeChanged())}functionn(e){vart=[];returntinymce.each("h1 h2 h3 h4 h5 h6 div p".split(" "),function(n){t.push(n+"[dir="+e+"]")}),t.join(",")}e.addCommand("mceDirectionLTR",function(){t("ltr")}),e.addCommand("mceDirectionRTL",function(){t("rtl")}),e.addButton("ltr",{title:"Left to right",cmd:"mceDirectionLTR",stateSelector:n("ltr")}),e.addButton("rtl",{title:"Right to left",cmd:"mceDirectionRTL",stateSelector:n("rtl")})});
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.