!function(){"use strict";functione(){}functiono(e){returnfunction(){returne}}functiont(){returnu}varr,n=tinymce.util.Tools.resolve("tinymce.PluginManager"),d=function(){return(d=Object.assign||function(e){for(vart,r=1,n=arguments.length;r<n;r++)for(variint=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);returne}).apply(this,arguments)},a=o(!1),c=o(!0),u=(r={fold:function(e,t){returne()},is:a,isSome:a,isNone:c,getOr:l,getOrThunk:s,getOrDie:function(e){thrownewError(e||"error: getOrDie called on none.")},getOrNull:o(null),getOrUndefined:o(undefined),or:l,orThunk:s,map:t,each:e,bind:t,exists:a,forall:c,filter:t,equals:i,equals_:i,toArray:function(){return[]},toString:o("none()")},Object.freeze&&Object.freeze(r),r);functioni(e){returne.isNone()}functions(e){returne()}functionl(e){returne}functionm(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}}functionf(e,t){for(varr=0,n=e.length;r<n;r++){t(e[r],r)}}functionh(e,t){returnG(e,t)?E(e[t]):D()}functionp(t){returnfunction(e){returne?function(e){returne.replace(/px$/,"")}(e.style[t]):""}}functiong(r){returnfunction(e,t){e&&(e.style[r]=function(e){return/^[0-9.]+$/.test(e)?e+"px":e}(t))}}functionv(e,t){if(e)for(varr=0;r<e.length;r++)if(-1!==t.indexOf(e[r].filter))returne[r]}functionb(e){returnae.getAttrib(e,"data-ephox-embed-iri")}functionw(e,t){returnfunction(e){vart=ae.createFragment(e);return""!==b(t.firstChild)}(t)?function(e){vart=ae.createFragment(e).firstChild;return{type:"ephox-embed-iri",source1:b(t),source2:"",poster:"",width:oe.getMaxWidth(t),height:oe.getMaxHeight(t)}}(t):function(n,e){vari={};returnne({validate:!1,allow_conditional_comments:!0,start:function(e,t){if(i.source1||"param"!==e||(i.source1=t.map.movie),"iframe"!==e&&"object"!==e&&"embed"!==e&&"video"!==e&&"audio"!==e||(i.type||(i.type=e),i=re.extend(t.map,i)),"script"===e){varr=v(n,t.map.src);if(!r)return;i={type:"script",source1:t.map.src,width:String(r.width),height:String(r.height)}}"source"===e&&(i.source1?i.source2||(i.source2=t.map.src):i.source1=t.map.src),"img"!==e||i.poster||(i.poster=t.map.src)}}).parse(e),i.source1=i.source1||i.src||i.data,i.source2=i.source2||"",i.poster=i.poster||"",i}(e,t)}functiony(e,t){varr,n,i,o;for(rint)if(i=""+t[r],e.map[r])for(n=e.length;n--;)(o=e[n]).name===r&&(i?(e.map[r]=i,o.value=i):(deletee.map[r],e.splice(n,1)));elsei&&(e.push({name:r,value:i}),e.map[r]=i)}functionx(e,t){varr=me.createFragment(e).firstChild;returnoe.setMaxWidth(r,t.width),oe.setMaxHeight(r,t.height),function(e){vart=se();returnne(t).parse(e),t.getContent()}(r.outerHTML)}functionj(r,e){varn=re.extend({},e);if(!n.source1&&(re.extend(n,w(J(r),n.embed)),!n.source1))return"";n.source2||(n.source2=""),n.poster||(n.poster=""),n.source1=r.convertURL(n.source1,"source"),n.source2=r.convertURL(n.source2,"source"),n.source1mime=ue(n.source1),n.source2mime=ue(n.source2),n.poster=r.convertURL(n.poster,"poster");vart=function(t){vare=fe.filter(function(e){returne.regex.test(t)});return0<e.length?re.extend({},e[0],{url:function(e,t){for(varr=e.regex.exec(t),n=e.url,i=function(e){n=n.replace("$"+e,function(){returnr[e]?r[e]:""})},o=0;o<r.length;o++)i(o);returnn.replace(/\?$/,"")}(e[0],t)}):null}(n.source1);if(t&&(n.source1=t.url,n.type=t.type,n.allowFullscreen=t.allowFullscreen,n.width=n.width||String(t.w),n.height=n.height||String(t.h)),n.embed)returnde(n.embed,n,!0);vari=v(J(r),n.source1);i&&(n.type="script",n.width=String(i.width),n.height=String(i.height));varo=K(r),a=Q(r);returnn.width=n.width||"300",n.height=n.height||"150",re.each(n,function(e,t){n[t]=r.dom.encode(""+e)}),"iframe"===n.type?function(e){vart=e.allowFullscreen?' allowFullscreen="1"':"";return'<iframe src="'+e.source1+'" width="'+e.width+'" height="'+e.height+'"'+t+"></iframe>"}(n):"application/x-shockwave-