!function(j){"use strict";varo=function(){},H=function(n,r){returnfunction(){for(vare=[],t=0;t<arguments.length;t++)e[t]=arguments[t];returnn(r.apply(null,e))}},q=function(e){returnfunction(){returne}},$=function(e){returne};functiond(r){for(varo=[],e=1;e<arguments.length;e++)o[e-1]=arguments[e];returnfunction(){for(vare=[],t=0;t<arguments.length;t++)e[t]=arguments[t];varn=o.concat(e);returnr.apply(null,n)}}vare,t,n,r,i,a,u,s,c,l,f,m,g,p,h,v,y,b=function(n){returnfunction(){for(vare=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return!n.apply(null,e)}},C=q(!1),x=q(!0),w=C,N=x,E=function(){returnS},S=(r={fold:function(e,t){returne()},is:w,isSome:w,isNone:N,getOr:n=function(e){returne},getOrThunk:t=function(e){returne()},getOrDie:function(e){thrownewError(e||"error: getOrDie called on none.")},getOrNull:function(){returnnull},getOrUndefined:function(){returnundefined},or:n,orThunk:t,map:E,ap:E,each:function(){},bind:E,flatten:E,exists:w,forall:N,filter:E,equals:e=function(e){returne.isNone()},equals_:e,toArray:function(){return[]},toString:q("none()")},Object.freeze&&Object.freeze(r),r),T=function(n){vare=function(){returnn},t=function(){returno},r=function(e){returne(n)},o={fold:function(e,t){returnt(n)},is:function(e){returnn===e},isSome:N,isNone:w,getOr:e,getOrThunk:e,getOrDie:e,getOrNull:e,getOrUndefined:e,or:t,orThunk:t,map:function(e){returnT(e(n))},ap:function(e){returne.fold(E,function(e){returnT(e(n))})},each:function(e){e(n)},bind:r,flatten:e,exists:r,forall:r,filter:function(e){returne(n)?o:S},equals:function(e){returne.is(n)},equals_:function(e,t){returne.fold(w,function(e){returnt(n,e)})},toArray:function(){return[n]},toString:function(){return"some("+n+")"}};returno},_={some:T,none:E,from:function(e){returnnull===e||e===undefined?S:T(e)}},k=function(t){returnfunction(e){returnfunction(e){if(null===e)return"null";vart=typeofe;return"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t}(e)===t}},A=k("string"),R=k("object"),D=k("array"),B=k("null"),O=k("boolean"),P=k("function"),I=k("number"),L=Array.prototype.slice,F=(i=Array.prototype.indexOf)===undefined?function(e,t){returnJ(e,t)}:function(e,t){returni.call(e,t)},M=function(e,t){return-1<F(e,t)},z=function(e,t){returnG(e,t).isSome()},W=function(e,t){for(varn=e.length,r=newArray(n),o=0;o<n;o++){vari=e[o];r[o]=t(i,o,e)}returnr},U=function(e,t){for(varn=0,r=e.length;n<r;n++)t(e[n],n,e)},K=function(e,t){for(varn=[],r=[],o=0,i=e.length;o<i;o++){vara=e[o];(t(a,o,e)?n:r).push(a)}return{pass:n,fail:r}},V=function(e,t){for(varn=[],r=0,o=e.length;r<o;r++){vari=e[r];t(i,r,e)&&n.push(i)}returnn},X=function(e,t,n){returnU(e,function(e){n=t(n,e)}),n},Y=function(e,t){for(varn=0,r=e.length;n<r;n++){varo=e[n];if(t(o,n,e))return_.some(o)}return_.none()},G=function(e,t){for(varn=0,r=e.length;n<r;n++)if(t(e[n],n,e))return_.some(n);return_.none()},J=function(e,t){for(varn=0,r=e.length;n<r;++n)if(e[n]===t)returnn;return-1},Q=Array.prototype.push,Z=function(e,t){returnfunction(e){for(vart=[],n=0,r=e.length;n<r;++n){if(!D(e[n]))thrownewError("Arr.flatten item "+n+" was not an array, input: "+e);Q.apply(t,e[n])}returnt}(W(e,t))},ee=function(e,t){for(varn=0,r=e.length;n<r;++n)if(!0!==t(e[n],n,e))return!1;return!0},te=function(e,t){returnV(e,function(e){return!M(t,e)})},ne=function(e){return0===e.length?_.none():_.some(e[0])},re=function(e){return0===e.length?_.none():_.some(e[e.length-1])},oe=P(Array.from)?Array.from:function(e){returnL.call(e)},ie="undefined"!=typeofj.window?j.window:Function("return this;")(),ae=function(e,t){returnfunction(e,t){for(varn=t!==undefined&&null!==t?t:ie,r=0;r<e.length&&n!==undefined&&null!==n;++r)n=n[e[r]];returnn}(e.split("."),t)},ue={getOrDie:function(e,t){varn=ae(e,t);if(n===undefined||null===n)thrownewError(e+" not available on this browser");returnn}},se=function(){returnue.getOrDie("URL")},ce={createObjectU
!function(){"use strict";vart=tinymce.util.Tools.resolve("tinymce.PluginManager"),c=tinymce.util.Tools.resolve("tinymce.util.Tools"),e=function(t,e){vari,n=t.dom,o=t.selection.getSelectedBlocks();o.length&&(i=n.getAttrib(o[0],"dir"),c.each(o,function(t){n.getParent(t.parentNode,'*[dir="'+e+'"]',n.getRoot())||n.setAttrib(t,"dir",i!==e?e:null)}),t.nodeChanged())},i=function(t){t.addCommand("mceDirectionLTR",function(){e(t,"ltr")}),t.addCommand("mceDirectionRTL",function(){e(t,"rtl")})},n=function(e){vari=[];returnc.each("h1 h2 h3 h4 h5 h6 div p".split(" "),function(t){i.push(t+"[dir="+e+"]")}),i.join(",")},o=function(t){t.addButton("ltr",{title:"Left to right",cmd:"mceDirectionLTR",stateSelector:n("ltr")}),t.addButton("rtl",{title:"Right to left",cmd:"mceDirectionRTL",stateSelector:n("rtl")})};t.add("directionality",function(t){i(t),o(t)})}();
!function(l){"use strict";vari,e=tinymce.util.Tools.resolve("tinymce.PluginManager"),d=function(e){return!1!==e.settings.image_dimensions},u=function(e){return!0===e.settings.image_advtab},m=function(e){returne.getParam("image_prepend_url","")},n=function(e){returne.getParam("image_class_list")},r=function(e){return!1!==e.settings.image_description},a=function(e){return!0===e.settings.image_title},o=function(e){return!0===e.settings.image_caption},c=function(e){returne.getParam("image_list",!1)},s=function(e){returne.getParam("images_upload_url",!1)},g=function(e){returne.getParam("images_upload_handler",!1)},f=function(e){returne.getParam("images_upload_url")},p=function(e){returne.getParam("images_upload_handler")},h=function(e){returne.getParam("images_upload_base_path")},v=function(e){returne.getParam("images_upload_credentials")},b="undefined"!=typeofl.window?l.window:Function("return this;")(),y=function(e,t){returnfunction(e,t){for(varn=t!==undefined&&null!==t?t:b,r=0;r<e.length&&n!==undefined&&null!==n;++r)n=n[e[r]];returnn}(e.split("."),t)},x={getOrDie:function(e,t){varn=y(e,t);if(n===undefined||null===n)thrownewError(e+" not available on this browser");returnn}},w=tinymce.util.Tools.resolve("tinymce.util.Promise"),C=tinymce.util.Tools.resolve("tinymce.util.Tools"),S=tinymce.util.Tools.resolve("tinymce.util.XHR"),N=function(e,t){returnMath.max(parseInt(e,10),parseInt(t,10))},_=function(e,n){varr=l.document.createElement("img");functiont(e,t){r.parentNode&&r.parentNode.removeChild(r),n({width:e,height:t})}r.onload=function(){t(N(r.width,r.clientWidth),N(r.height,r.clientHeight))},r.onerror=function(){t(0,0)};vara=r.style;a.visibility="hidden",a.position="fixed",a.bottom=a.left="0px",a.width=a.height="auto",l.document.body.appendChild(r),r.src=e},T=function(e,a,t){returnfunctionn(e,r){returnr=r||[],C.each(e,function(e){vart={text:e.text||e.title};e.menu?t.menu=n(e.menu):(t.value=e.value,a(t)),r.push(t)}),r}(e,t||[])},A=function(e){returne&&(e=e.replace(/px$/,"")),e},R=function(e){return0<e.length&&/^[0-9]+$/.test(e)&&(e+="px"),e},I=function(e){if(e.margin){vart=e.margin.split(" ");switch(t.length){case1:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[0],e["margin-bottom"]=e["margin-bottom"]||t[0],e["margin-left"]=e["margin-left"]||t[0];break;case2:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[1],e["margin-bottom"]=e["margin-bottom"]||t[0],e["margin-left"]=e["margin-left"]||t[1];break;case3:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[1],e["margin-bottom"]=e["margin-bottom"]||t[2],e["margin-left"]=e["margin-left"]||t[1];break;case4:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[1],e["margin-bottom"]=e["margin-bottom"]||t[2],e["margin-left"]=e["margin-left"]||t[3]}deletee.margin}returne},t=function(e,t){varn=c(e);"string"==typeofn?S.send({url:n,success:function(e){t(JSON.parse(e))}}):"function"==typeofn?n(t):t(n)},O=function(e,t,n){functionr(){n.onload=n.onerror=null,e.selection&&(e.selection.select(n),e.nodeChanged())}n.onload=function(){t.width||t.height||!d(e)||e.dom.setAttribs(n,{width:n.clientWidth,height:n.clientHeight}),r()},n.onerror=r},L=function(r){returnneww(function(e,t){varn=new(x.getOrDie("FileReader"));n.onload=function(){e(n.result)},n.onerror=function(){t(n.error.message)},n.readAsDataURL(r)})},P=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),U=Object.prototype.hasOwnProperty,E=(i=function(e,t){returnt},function(){for(vare=newArray(arguments.length),t=0;t<e.length;t++)e[t]=arguments[t];if(0===e.length)thrownewError("Can't merge zero objects");for(varn={},r=0;r<e.length;r++){vara=e[r];for(varoina)U.call(a,o)&&(n[o]=i(n[o],a[o]))}returnn}),k=P.DOM,M=function(e){returne.style.marginLeft&&e.style.marginRight&&e.style.marginLeft===e.style.marginRight?A(e.style.marginLeft):""},D=function(e){returne.style.marginTop&&e.style.marginBottom&&e.style.marginTop===e.style.marginBottom?A(e.style.marginTop):""},z=function(e){returne.st
!function(u){"use strict";vare,n,t,r,o,i,a,s,c,f=tinymce.util.Tools.resolve("tinymce.PluginManager"),d=tinymce.util.Tools.resolve("tinymce.dom.RangeUtils"),l=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),m=tinymce.util.Tools.resolve("tinymce.util.VK"),p=tinymce.util.Tools.resolve("tinymce.dom.BookmarkManager"),v=tinymce.util.Tools.resolve("tinymce.util.Tools"),g=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),h=function(e){returne&&"BR"===e.nodeName},y=function(e){returne&&3===e.nodeType},N=function(e){returne&&/^(OL|UL|DL)$/.test(e.nodeName)},S=function(e){returne&&/^(OL|UL)$/.test(e.nodeName)},C=function(e){returne&&/^(DT|DD)$/.test(e.nodeName)},O=function(e){returne&&/^(LI|DT|DD)$/.test(e.nodeName)},b=function(e){returne&&/^(TH|TD)$/.test(e.nodeName)},T=h,E=function(e,n){returnn&&!!e.schema.getTextBlockElements()[n.nodeName]},L=function(e,n){returne&&e.nodeNameinn},D=function(e,n){return!!h(n)&&!(!e.isBlock(n.nextSibling)||h(n.previousSibling))},w=function(e,n,t){varr=e.isEmpty(n);return!(t&&0<e.select("span[data-mce-type=bookmark]",n).length)&&r},k=function(e,n){returne.isChildOf(n,e.getRoot())},A=function(e,n){if(y(e))return{container:e,offset:n};vart=d.getNode(e,n);returny(t)?{container:t,offset:n>=e.childNodes.length?t.data.length:0}:t.previousSibling&&y(t.previousSibling)?{container:t.previousSibling,offset:t.previousSibling.data.length}:t.nextSibling&&y(t.nextSibling)?{container:t.nextSibling,offset:0}:{container:e,offset:n}},x=function(e){varn=e.cloneRange(),t=A(e.startContainer,e.startOffset);n.setStart(t.container,t.offset);varr=A(e.endContainer,e.endOffset);returnn.setEnd(r.container,r.offset),n},R=g.DOM,I=function(o){vari={},e=function(e){varn,t,r;t=o[e?"startContainer":"endContainer"],r=o[e?"startOffset":"endOffset"],1===t.nodeType&&(n=R.create("span",{"data-mce-type":"bookmark"}),t.hasChildNodes()?(r=Math.min(r,t.childNodes.length-1),e?t.insertBefore(n,t.childNodes[r]):R.insertAfter(n,t.childNodes[r])):t.appendChild(n),t=n,r=0),i[e?"startContainer":"endContainer"]=t,i[e?"startOffset":"endOffset"]=r};returne(!0),o.collapsed||e(),i},_=function(o){functione(e){varn,t,r;n=r=o[e?"startContainer":"endContainer"],t=o[e?"startOffset":"endOffset"],n&&(1===n.nodeType&&(t=function(e){for(varn=e.parentNode.firstChild,t=0;n;){if(n===e)returnt;1===n.nodeType&&"bookmark"===n.getAttribute("data-mce-type")||t++,n=n.nextSibling}return-1}(n),n=n.parentNode,R.remove(r),!n.hasChildNodes()&&R.isBlock(n)&&n.appendChild(R.create("br"))),o[e?"startContainer":"endContainer"]=n,o[e?"startOffset":"endOffset"]=t)}e(!0),e();varn=R.createRng();returnn.setStart(o.startContainer,o.startOffset),o.endContainer&&n.setEnd(o.endContainer,o.endOffset),x(n)},B=function(e){returnfunction(){returne}},P=function(t){returnfunction(){for(vare=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return!t.apply(null,e)}},M=B(!1),U=B(!0),F=M,j=U,H=function(){return$},$=(r={fold:function(e,n){returne()},is:F,isSome:F,isNone:j,getOr:t=function(e){returne},getOrThunk:n=function(e){returne()},getOrDie:function(e){thrownewError(e||"error: getOrDie called on none.")},getOrNull:function(){returnnull},getOrUndefined:function(){returnundefined},or:t,orThunk:n,map:H,ap:H,each:function(){},bind:H,flatten:H,exists:F,forall:j,filter:H,equals:e=function(e){returne.isNone()},equals_:e,toArray:function(){return[]},toString:B("none()")},Object.freeze&&Object.freeze(r),r),q=function(t){vare=function(){returnt},n=function(){returno},r=function(e){returne(t)},o={fold:function(e,n){returnn(t)},is:function(e){returnt===e},isSome:j,isNone:F,getOr:e,getOrThunk:e,getOrDie:e,getOrNull:e,getOrUndefined:e,or:n,orThunk:n,map:function(e){returnq(e(t))},ap:function(e){returne.fold(H,function(e){returnq(e(t))})},each:function(e){e(t)},bind:r,flatten:e,exists:r,forall:r,filter:function(e){returne(t)?o:$},equals:function(e){returne.is(t)},equals_:function(e,n){returne.fold(F,function(e){returnn(t,e)})},toArray:function(){return[t]},toString:function(){return"some("+t+")"}};returno},W={some:q,none:H,from:function(e){returnnul
!function(h){"use strict";varp=function(t){vare=t,n=function(){returne};return{get:n,set:function(t){e=t},clone:function(){returnp(n())}}},e=tinymce.util.Tools.resolve("tinymce.PluginManager"),a=function(t){return!(!/(^|[ ,])powerpaste([, ]|$)/.test(t.settings.plugins)||!e.get("powerpaste")||("undefined"!=typeofh.window.console&&h.window.console.log&&h.window.console.log("PowerPaste is incompatible with Paste plugin! Remove 'paste' from the 'plugins' option."),0))},u=function(t,e){return{clipboard:t,quirks:e}},f=function(t,e,n,r){returnt.fire("PastePreProcess",{content:e,internal:n,wordContent:r})},d=function(t,e,n,r){returnt.fire("PastePostProcess",{node:e,internal:n,wordContent:r})},s=function(t,e){returnt.fire("PastePlainTextToggle",{state:e})},n=function(t,e){returnt.fire("paste",{ieFake:e})},m={shouldPlainTextInform:function(t){returnt.getParam("paste_plaintext_inform",!0)},shouldBlockDrop:function(t){returnt.getParam("paste_block_drop",!1)},shouldPasteDataImages:function(t){returnt.getParam("paste_data_images",!1)},shouldFilterDrop:function(t){returnt.getParam("paste_filter_drop",!0)},getPreProcess:function(t){returnt.getParam("paste_preprocess")},getPostProcess:function(t){returnt.getParam("paste_postprocess")},getWebkitStyles:function(t){returnt.getParam("paste_webkit_styles")},shouldRemoveWebKitStyles:function(t){returnt.getParam("paste_remove_styles_if_webkit",!0)},shouldMergeFormats:function(t){returnt.getParam("paste_merge_formats",!0)},isSmartPasteEnabled:function(t){returnt.getParam("smart_paste",!0)},isPasteAsTextEnabled:function(t){returnt.getParam("paste_as_text",!1)},getRetainStyleProps:function(t){returnt.getParam("paste_retain_style_properties")},getWordValidElements:function(t){returnt.getParam("paste_word_valid_elements","-strong/b,-em/i,-u,-span,-p,-ol,-ul,-li,-h1,-h2,-h3,-h4,-h5,-h6,-p/div,-a[href|name],sub,sup,strike,br,del,table[width],tr,td[colspan|rowspan|width],th[colspan|rowspan|width],thead,tfoot,tbody")},shouldConvertWordFakeLists:function(t){returnt.getParam("paste_convert_word_fake_lists",!0)},shouldUseDefaultFilters:function(t){returnt.getParam("paste_enable_default_filters",!0)}},r=function(t,e,n){varr,o,i;"text"===e.pasteFormat.get()?(e.pasteFormat.set("html"),s(t,!1)):(e.pasteFormat.set("text"),s(t,!0),i=t,!1===n.get()&&m.shouldPlainTextInform(i)&&(o="Paste is now in plain text mode. Contents will now be pasted as plain text until you toggle this option off.",(r=t).notificationManager.open({text:r.translate(o),type:"info"}),n.set(!0))),t.focus()},c=function(t,n,e){t.addCommand("mceTogglePlainTextPaste",function(){r(t,n,e)}),t.addCommand("mceInsertClipboardContent",function(t,e){e.content&&n.pasteHtml(e.content,e.internal),e.text&&n.pasteText(e.text)})},g=tinymce.util.Tools.resolve("tinymce.Env"),v=tinymce.util.Tools.resolve("tinymce.util.Delay"),y=tinymce.util.Tools.resolve("tinymce.util.Tools"),o=tinymce.util.Tools.resolve("tinymce.util.VK"),t="x-tinymce/html",i="\x3c!-- "+t+" --\x3e",l=function(t){returni+t},b=function(t){returnt.replace(i,"")},w=function(t){return-1!==t.indexOf(i)},x=function(){returnt},_=tinymce.util.Tools.resolve("tinymce.html.Entities"),P=function(t){returnt.replace(/\r?\n/g,"<br>")},T=function(t,e,n){varr=t.split(/\n\n/),o=function(t,e){varn,r=[],o="<"+t;if("object"==typeofe){for(nine)e.hasOwnProperty(n)&&r.push(n+'="'+_.encodeAllRaw(e[n])+'"');r.length&&(o+=" "+r.join(" "))}returno+">"}(e,n),i="</"+e+">",a=y.map(r,function(t){returnt.split(/\n/).join("<br />")});return1===a.length?a[0]:y.map(a,function(t){returno+t+i}).join("")},D=function(t){return!/<(?:\/?(?!(?:div|p|br|span)>)\w+|(?:(?!(?:span style="white-space:\s?pre;?">)|br\s?\/>))\w+\s[^>]+)>/i.test(t)},C=function(t,e,n){returne?T(t,e,n):P(t)},k=tinymce.util.Tools.resolve("tinymce.html.DomParser"),F=tinymce.util.Tools.resolve("tinymce.html.Node"),E=tinymce.util.Tools.resolve("tinymce.html.Schema"),I=tinymce.util.Tools.resolve("tinymce.html.Serializer");functionR(e,t){returny.each(t,function(t){e=t.constructor===RegExp?e.replace(t,""):e.replace(t[0],t[1])}),e}va
tinymce.WPWindowManager=tinymce.InlineWindowManager=function(a){if(this.wp)returnthis;this.wp={},this.parent=a.windowManager,this.editor=a,tinymce.extend(this,this.parent),this.open=function(e,i){varn,o=this,t=this.wp;if(!e.wpDialog)returnthis.parent.open.apply(this,arguments);e.id&&("undefined"!=typeofjQuery&&jQuery.wp&&jQuery.wp.wpdialog?(t.$element=n=jQuery("#"+e.id),n.length&&(window.console&&window.console.log&&window.console.log("tinymce.WPWindowManager is deprecated. Use the default editor.windowManager to open dialogs with inline HTML."),t.features=e,t.params=i,a.nodeChanged(),n.data("wpdialog")||n.wpdialog({title:e.title,width:e.width,height:e.height,modal:!0,dialogClass:"wp-dialog",zIndex:3e5}),n.wpdialog("open"),n.on("wpdialogclose",function(){o.wp.$element&&(o.wp={})}))):window.console&&window.console.error&&window.console.error('wpdialog.js is not loaded. Please set "wpdialogs" as dependency for your script when calling wp_enqueue_script(). You may also want to enqueue the "wp-jquery-ui-dialog" stylesheet.'))},this.close=function(){if(!this.wp.features||!this.wp.features.wpDialog)returnthis.parent.close.apply(this,arguments);this.wp.$element.wpdialog("close")}},tinymce.PluginManager.add("wpdialogs",function(e){e.on("init",function(){e.windowManager=newtinymce.WPWindowManager(e)})});
!function(r){r.PluginManager.add("wpemoji",function(n){vart,e,o=window.wp,i=window._wpemojiSettings,a=r.Env,w=window.navigator.userAgent,d=-1<w.indexOf("Windows"),c=!!((e=w.match(/Windows NT 6\.(\d)/))&&1<e[1]);functionm(e){o.emoji.parse(e,{imgAttr:{"data-mce-resize":"false","data-mce-placeholder":"1","data-wp-emoji":"1"}})}functions(e){vart,o;e&&window.twemoji&&window.twemoji.test(e.textContent||e.innerText)&&(a.webkit&&(o=(t=n.selection).getBookmark()),m(e),a.webkit&&t.moveToBookmark(o))}o&&o.emoji&&!i.supports.everything&&(c?n.on("keyup",function(e){231===e.keyCode&&s(n.selection.getNode())}):d||(n.on("keydown keyup",function(e){t="keydown"===e.type}),n.on("input",function(){t||s(n.selection.getNode())})),n.on("setcontent",function(e){vart=n.selection,o=t.getNode();window.twemoji&&window.twemoji.test(o.textContent||o.innerText)&&(m(o),a.ie&&a.ie<9&&e.load&&o&&"BODY"===o.nodeName&&t.collapse(!0))}),n.on("PastePostProcess",function(e){window.twemoji&&r.each(n.dom.$("img.emoji",e.node),function(e){e.alt&&window.twemoji.test(e.alt)&&function(e){e.className="emoji",e.setAttribute("data-mce-resize","false"),e.setAttribute("data-mce-placeholder","1"),e.setAttribute("data-wp-emoji","1")}(e)})}),n.on("postprocess",function(e){e.content&&(e.content=e.content.replace(/<img[^>]+data-wp-emoji="[^>]+>/g,function(e){vart=e.match(/alt="([^"]+)"/);returnt&&t[1]?t[1]:e}))}),n.on("resolvename",function(e){"IMG"===e.target.nodeName&&n.dom.getAttrib(e.target,"data-wp-emoji")&&e.preventDefault()}))})}(window.tinymce);
!function(h){h.ui.Factory.add("WPLinkPreview",h.ui.Control.extend({url:"#",renderHtml:function(){return'<div id="'+this._id+'" class="wp-link-preview"><a href="'+this.url+'" target="_blank" rel="noopener" tabindex="-1">'+this.url+"</a></div>"},setURL:function(e){vart,n;this.url!==e&&(this.url=e,-1!==(t=(e=(e=window.decodeURIComponent(e)).replace(/^(?:https?:)?\/\/(?:www\.)?/,"")).indexOf("?"))&&(e=e.slice(0,t)),-1!==(t=e.indexOf("#"))&&(e=e.slice(0,t)),"/"===(e=e.replace(/(?:index)?\.html$/,"")).charAt(e.length-1)&&(e=e.slice(0,-1)),""===e&&(e=this.url),40<e.length&&-1!==(t=e.indexOf("/"))&&-1!==(n=e.lastIndexOf("/"))&&n!==t&&(t+e.length-n<40&&(n=-(40-(t+1))),e=e.slice(0,t+1)+"\u2026"+e.slice(n)),h.$(this.getEl().firstChild).attr("href",this.url).text(e))}})),h.ui.Factory.add("WPLinkInput",h.ui.Control.extend({renderHtml:function(){return'<div id="'+this._id+'" class="wp-link-input"><input type="text" value="" placeholder="'+h.translate("Paste URL or type to search")+'" /><input type="text" style="display:none" value="" /></div>'},setURL:function(e){this.getEl().firstChild.value=e},getURL:function(){returnh.trim(this.getEl().firstChild.value)},getLinkText:function(){vare=this.getEl().firstChild.nextSibling.value;returnh.trim(e)?e.replace(/[\r\n\t ]+/g," "):""},reset:function(){vare=this.getEl().firstChild;e.value="",e.nextSibling.value=""}})),h.PluginManager.add("wplink",function(l){vara,r,d,c,i,n,t,p=window.jQuery,o=/^(mailto:)?[a-z0-9._%+-]+@[a-z0-9][a-z0-9.-]*\.[a-z]{2,63}$/i,s=/^https?:\/\/([^\s/?.#-][^\s\/?.#]*\.?)+(\/[^\s"]*)?$/i,u=/^https?:\/\/[^\/]+\.[^\/]+($|\/)/i,w=void0!==window.wp&&window.wp.a11y&&window.wp.a11y.speak?window.wp.a11y.speak:function(){},m=!1;functione(){l.$("a").each(function(e,t){varn=l.$(t);"_wp_link_placeholder"===n.attr("href")?l.dom.remove(t,!0):n.attr("data-wplink-edit")&&n.attr("data-wplink-edit",null)})}functionk(e,i){returne.replace(/(<a [^>]+>)([\s\S]*?)<\/a>/g,function(e,t,n){return-1<t.indexOf(' href="_wp_link_placeholder"')?n:(i&&(t=t.replace(/ data-wplink-edit="true"/g,"")),(t=t.replace(/ data-wplink-url-error="true"/g,""))+n+"</a>")})}functionf(e){vart=l.$(e),n=t.attr("href");n&&void0!==p&&(m=!1,!/^http/i.test(n)||s.test(n)&&u.test(n)?t.removeAttr("data-wplink-url-error"):(m=!0,t.attr("data-wplink-url-error","true"),w(l.translate("Warning: the link has been inserted but may have errors. Please test it."),"assertive")))}returnl.on("preinit",function(){if(l.wp&&l.wp._createToolbar){a=l.wp._createToolbar(["wp_link_preview","wp_link_edit","wp_link_remove"],!0);vare=["wp_link_input","wp_link_apply"];void0!==window.wpLink&&e.push("wp_link_advanced"),(r=l.wp._createToolbar(e,!0)).on("show",function(){void0!==window.wpLink&&window.wpLink.modalOpen||window.setTimeout(function(){vare=r.$el.find("input.ui-autocomplete-input")[0],t=i&&(i.textContent||i.innerText);e&&(!e.value&&t&&void0!==window.wpLink&&(e.value=window.wpLink.getUrlFromSelection(t)),n||(e.focus(),e.select()))})}),r.on("hide",function(){r.scrolling||l.execCommand("wp_link_cancel")})}}),l.addCommand("WP_Link",function(){h.Env.ie&&h.Env.ie<10&&void0!==window.wpLink?window.wpLink.open(l.id):(i=function(){vare,t,n=l.selection.getStart(),i=l.dom.getParent(n,"a[href]");returni||(t=l.selection.getContent({format:"raw"}))&&-1!==t.indexOf("</a>")&&((e=t.match(/href="([^">]+)"/))&&e[1]&&(i=l.$('a[href="'+e[1]+'"]',n)[0]),i&&l.selection.select(i)),i}(),r.tempHide=!1,i||(e(),l.execCommand("mceInsertLink",!1,{href:"_wp_link_placeholder"}),i=l.$('a[href="_wp_link_placeholder"]')[0],l.nodeChanged()),l.dom.setAttribs(i,{"data-wplink-edit":!0}))}),l.addCommand("wp_link_apply",function(){if(!r.scrolling){vare,t;if(i){e=c.getURL(),t=c.getLinkText(),l.focus();varn=document.createElement("a");if(n.href=e,"javascript:"!==n.protocol&&"data:"!==n.protocol||(e=""),!e)returnvoidl.dom.remove(i,!0);/^(?:[a-z]+:|#|\?|\.|\/)/.test(e)||o.test(e)||(e="http://"+e),l.dom.setAttribs(i,{href:e,"data-wplink-edit":null}),h.trim(i.innerHTML)||l.$(i).text(t||e),f(i)}c.reset(),l.nodeChanged(),void0===window.wpLinkL10n||m||w(window.wpLinkL