!function(){"use strict";varu=function(e){vart=e,n=function(){returnt};return{get:n,set:function(e){t=e},clone:function(){returnu(n())}}},t=tinymce.util.Tools.resolve("tinymce.PluginManager"),o=function(e){return!(!/(^|[ ,])powerpaste([, ]|$)/.test(e.settings.plugins)||!t.get("powerpaste")||("undefined"!=typeofwindow.console&&window.console.log&&window.console.log("PowerPaste is incompatible with Paste plugin! Remove 'paste' from the 'plugins' option."),0))},s=function(e,t){return{clipboard:e,quirks:t}},f=function(e,t,n,r){returne.fire("PastePreProcess",{content:t,internal:n,wordContent:r})},d=function(e,t,n,r){returne.fire("PastePostProcess",{node:t,internal:n,wordContent:r})},l=function(e,t){returne.fire("PastePlainTextToggle",{state:t})},n=function(e,t){returne.fire("paste",{ieFake:t})},m={shouldPlainTextInform:function(e){returne.getParam("paste_plaintext_inform",!0)},shouldBlockDrop:function(e){returne.getParam("paste_block_drop",!1)},shouldPasteDataImages:function(e){returne.getParam("paste_data_images",!1)},shouldFilterDrop:function(e){returne.getParam("paste_filter_drop",!0)},getPreProcess:function(e){returne.getParam("paste_preprocess")},getPostProcess:function(e){returne.getParam("paste_postprocess")},getWebkitStyles:function(e){returne.getParam("paste_webkit_styles")},shouldRemoveWebKitStyles:function(e){returne.getParam("paste_remove_styles_if_webkit",!0)},shouldMergeFormats:function(e){returne.getParam("paste_merge_formats",!0)},isSmartPasteEnabled:function(e){returne.getParam("smart_paste",!0)},isPasteAsTextEnabled:function(e){returne.getParam("paste_as_text",!1)},getRetainStyleProps:function(e){returne.getParam("paste_retain_style_properties")},getWordValidElements:function(e){returne.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(e){returne.getParam("paste_convert_word_fake_lists",!0)},shouldUseDefaultFilters:function(e){returne.getParam("paste_enable_default_filters",!0)}},r=function(e,t,n){varr,a,i;"text"===t.pasteFormat.get()?(t.pasteFormat.set("html"),l(e,!1)):(t.pasteFormat.set("text"),l(e,!0),i=e,!1===n.get()&&m.shouldPlainTextInform(i)&&(a="Paste is now in plain text mode. Contents will now be pasted as plain text until you toggle this option off.",(r=e).notificationManager.open({text:r.translate(a),type:"info"}),n.set(!0))),e.focus()},c=function(e,n,t){e.addCommand("mceTogglePlainTextPaste",function(){r(e,n,t)}),e.addCommand("mceInsertClipboardContent",function(e,t){t.content&&n.pasteHtml(t.content,t.internal),t.text&&n.pasteText(t.text)})},v=tinymce.util.Tools.resolve("tinymce.Env"),h=tinymce.util.Tools.resolve("tinymce.util.Delay"),b=tinymce.util.Tools.resolve("tinymce.util.Tools"),a=tinymce.util.Tools.resolve("tinymce.util.VK"),e="x-tinymce/html",i="\x3c!-- "+e+" --\x3e",p=function(e){returni+e},g=function(e){returne.replace(i,"")},y=function(e){return-1!==e.indexOf(i)},x=function(){returne},P=tinymce.util.Tools.resolve("tinymce.html.Entities"),w=function(e){returne.replace(/\r?\n/g,"<br>")},_=function(e,t,n){varr=e.split(/\n\n/),a=function(e,t){varn,r=[],a="<"+e;if("object"==typeoft){for(nint)t.hasOwnProperty(n)&&r.push(n+'="'+P.encodeAllRaw(t[n])+'"');r.length&&(a+=" "+r.join(" "))}returna+">"}(t,n),i="</"+t+">",o=b.map(r,function(e){returne.split(/\n/).join("<br />")});return1===o.length?o[0]:b.map(o,function(e){returna+e+i}).join("")},D=function(e){return!/<(?:\/?(?!(?:div|p|br|span)>)\w+|(?:(?!(?:span style="white-space:\s?pre;?">)|br\s?\/>))\w+\s[^>]+)>/i.test(e)},T=function(e,t,n){returnt?_(e,t,n):w(e)},C=tinymce.util.Tools.resolve("tinymce.html.DomParser"),k=tinymce.util.Tools.resolve("tinymce.html.Node"),R=tinymce.util.Tools.resolve("tinymce.html.Schema"),F=tinymce.util.Tools.resolve("tinymce.html.Serializer");functionE(t,e){returnb.each(e,function(e){t=e.constructor===RegExp?t.replace(e,""):t.replace(e[0],e[1])}),t}varS={fi