@wangeditor-next/video-module 1.3.5 → 1.3.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,28 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.3.7](https://github.com/cycleccc/wangEditor/compare/@wangeditor-next/video-module@1.3.6...@wangeditor-next/video-module@1.3.7) (2024-09-06)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **video:** add mode highest ([bbd4565](https://github.com/cycleccc/wangEditor/commit/bbd4565c0c2ba96b3f42512df47fa4f29c0c4d52))
12
+
13
+
14
+
15
+
16
+
17
+ ## [1.3.6](https://github.com/cycleccc/wangEditor/compare/@wangeditor-next/video-module@1.3.5...@wangeditor-next/video-module@1.3.6) (2024-08-29)
18
+
19
+
20
+ ### Reverts
21
+
22
+ * Revert "chore: modify package publish config" ([7e2785e](https://github.com/cycleccc/wangEditor/commit/7e2785ede4512e19f8a337e745440e7bf9de2f30))
23
+
24
+
25
+
26
+
27
+
6
28
  ## [1.3.5](https://github.com/cycleccc/wangEditor/compare/@wangeditor-next/video-module@1.3.4...@wangeditor-next/video-module@1.3.5) (2024-08-25)
7
29
 
8
30
  **Note:** Version bump only for package @wangeditor-next/video-module
package/dist/index.esm.js CHANGED
@@ -1,2 +1,2 @@
1
- import{i18nAddResources as t,DomEditor as e,t as n,genModalInputElems as r,genModalButtonElems as o,createUploader as i}from"@wangeditor-next/core";import{Transforms as u,Range as a}from"slate";import{jsx as c,h as s}from"snabbdom";import f,{append as l,on as d,focus as v,attr as p,val as h,html as y,parent as g,hasClass as m,empty as b}from"dom7";import{nanoid as w}from"nanoid";t("en",{videoModule:{delete:"Delete",uploadVideo:"Upload video",insertVideo:"Insert video",videoSrc:"Video source",videoSrcPlaceHolder:"Video file url, or third-party <iframe>",videoPoster:"Video poster",videoPosterPlaceHolder:"Poster image url",ok:"Ok",editSize:"Edit size",edit:"Edit video",width:"Width",height:"Height"}}),t("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",edit:"编辑视频",width:"宽度",height:"高度"}});var S=function(){return S=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},S.apply(this,arguments)};function x(t,e,n,r){return new(n||(n=Promise))((function(o,i){function u(t){try{c(r.next(t))}catch(t){i(t)}}function a(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(u,a)}c((r=r.apply(t,e||[])).next())}))}function E(t,e){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(u=0)),u;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return u.label++,{value:a[1],done:!1};case 5:u.label++,r=a[1],a=[0];continue;case 7:a=u.ops.pop(),u.trys.pop();continue;default:if(!(o=u.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){u=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){u.label=a[1];break}if(6===a[0]&&u.label<o[1]){u.label=o[1],o=a;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(a);break}o[2]&&u.ops.pop(),u.trys.pop();continue}a=e.call(t,u)}catch(t){a=[6,t],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}function O(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function I(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)u.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u}function j(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=O(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,o){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,o,(e=t[n](e)).done,e.value)}))}}}"function"==typeof SuppressedError&&SuppressedError;var P="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function T(t){var e={exports:{}};return t(e,e.exports),e.exports}var M,A,k=function(t){return t&&t.Math==Math&&t},N=k("object"==typeof globalThis&&globalThis)||k("object"==typeof window&&window)||k("object"==typeof self&&self)||k("object"==typeof P&&P)||function(){return this}()||Function("return this")(),R=function(t){try{return!!t()}catch(t){return!0}},V=!R((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),C=Function.prototype.call,L=C.bind?C.bind(C):function(){return C.apply(C,arguments)},z={}.propertyIsEnumerable,F=Object.getOwnPropertyDescriptor,D={f:F&&!z.call({1:2},1)?function(t){var e=F(this,t);return!!e&&e.enumerable}:z},_=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},$=Function.prototype,H=$.bind,B=$.call,G=H&&H.bind(B),W=H?function(t){return t&&G(B,t)}:function(t){return t&&function(){return B.apply(t,arguments)}},U=W({}.toString),K=W("".slice),X=function(t){return K(U(t),8,-1)},Y=N.Object,q=W("".split),J=R((function(){return!Y("z").propertyIsEnumerable(0)}))?function(t){return"String"==X(t)?q(t,""):Y(t)}:Y,Q=N.TypeError,Z=function(t){if(null==t)throw Q("Can't call method on "+t);return t},tt=function(t){return J(Z(t))},et=function(t){return"function"==typeof t},nt=function(t){return"object"==typeof t?null!==t:et(t)},rt=function(t,e){return arguments.length<2?(n=N[t],et(n)?n:void 0):N[t]&&N[t][e];var n},ot=W({}.isPrototypeOf),it=rt("navigator","userAgent")||"",ut=N.process,at=N.Deno,ct=ut&&ut.versions||at&&at.version,st=ct&&ct.v8;st&&(A=(M=st.split("."))[0]>0&&M[0]<4?1:+(M[0]+M[1])),!A&&it&&(!(M=it.match(/Edge\/(\d+)/))||M[1]>=74)&&(M=it.match(/Chrome\/(\d+)/))&&(A=+M[1]);var ft=A,lt=!!Object.getOwnPropertySymbols&&!R((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&ft&&ft<41})),dt=lt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,vt=N.Object,pt=dt?function(t){return"symbol"==typeof t}:function(t){var e=rt("Symbol");return et(e)&&ot(e.prototype,vt(t))},ht=N.String,yt=function(t){try{return ht(t)}catch(t){return"Object"}},gt=N.TypeError,mt=function(t){if(et(t))return t;throw gt(yt(t)+" is not a function")},bt=function(t,e){var n=t[e];return null==n?void 0:mt(n)},wt=N.TypeError,St=Object.defineProperty,xt=function(t,e){try{St(N,t,{value:e,configurable:!0,writable:!0})}catch(n){N[t]=e}return e},Et="__core-js_shared__",Ot=N[Et]||xt(Et,{}),It=T((function(t){(t.exports=function(t,e){return Ot[t]||(Ot[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),jt=N.Object,Pt=function(t){return jt(Z(t))},Tt=W({}.hasOwnProperty),Mt=Object.hasOwn||function(t,e){return Tt(Pt(t),e)},At=0,kt=Math.random(),Nt=W(1..toString),Rt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Nt(++At+kt,36)},Vt=It("wks"),Ct=N.Symbol,Lt=Ct&&Ct.for,zt=dt?Ct:Ct&&Ct.withoutSetter||Rt,Ft=function(t){if(!Mt(Vt,t)||!lt&&"string"!=typeof Vt[t]){var e="Symbol."+t;lt&&Mt(Ct,t)?Vt[t]=Ct[t]:Vt[t]=dt&&Lt?Lt(e):zt(e)}return Vt[t]},Dt=N.TypeError,_t=Ft("toPrimitive"),$t=function(t,e){if(!nt(t)||pt(t))return t;var n,r=bt(t,_t);if(r){if(void 0===e&&(e="default"),n=L(r,t,e),!nt(n)||pt(n))return n;throw Dt("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&et(n=t.toString)&&!nt(r=L(n,t)))return r;if(et(n=t.valueOf)&&!nt(r=L(n,t)))return r;if("string"!==e&&et(n=t.toString)&&!nt(r=L(n,t)))return r;throw wt("Can't convert object to primitive value")}(t,e)},Ht=function(t){var e=$t(t,"string");return pt(e)?e:e+""},Bt=N.document,Gt=nt(Bt)&&nt(Bt.createElement),Wt=function(t){return Gt?Bt.createElement(t):{}},Ut=!V&&!R((function(){return 7!=Object.defineProperty(Wt("div"),"a",{get:function(){return 7}}).a})),Kt=Object.getOwnPropertyDescriptor,Xt={f:V?Kt:function(t,e){if(t=tt(t),e=Ht(e),Ut)try{return Kt(t,e)}catch(t){}if(Mt(t,e))return _(!L(D.f,t,e),t[e])}},Yt=N.String,qt=N.TypeError,Jt=function(t){if(nt(t))return t;throw qt(Yt(t)+" is not an object")},Qt=N.TypeError,Zt=Object.defineProperty,te={f:V?Zt:function(t,e,n){if(Jt(t),e=Ht(e),Jt(n),Ut)try{return Zt(t,e,n)}catch(t){}if("get"in n||"set"in n)throw Qt("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},ee=V?function(t,e,n){return te.f(t,e,_(1,n))}:function(t,e,n){return t[e]=n,t},ne=W(Function.toString);et(Ot.inspectSource)||(Ot.inspectSource=function(t){return ne(t)});var re,oe,ie,ue=Ot.inspectSource,ae=N.WeakMap,ce=et(ae)&&/native code/.test(ue(ae)),se=It("keys"),fe=function(t){return se[t]||(se[t]=Rt(t))},le={},de="Object already initialized",ve=N.TypeError,pe=N.WeakMap;if(ce||Ot.state){var he=Ot.state||(Ot.state=new pe),ye=W(he.get),ge=W(he.has),me=W(he.set);re=function(t,e){if(ge(he,t))throw new ve(de);return e.facade=t,me(he,t,e),e},oe=function(t){return ye(he,t)||{}},ie=function(t){return ge(he,t)}}else{var be=fe("state");le[be]=!0,re=function(t,e){if(Mt(t,be))throw new ve(de);return e.facade=t,ee(t,be,e),e},oe=function(t){return Mt(t,be)?t[be]:{}},ie=function(t){return Mt(t,be)}}var we={set:re,get:oe,has:ie,enforce:function(t){return ie(t)?oe(t):re(t,{})},getterFor:function(t){return function(e){var n;if(!nt(e)||(n=oe(e)).type!==t)throw ve("Incompatible receiver, "+t+" required");return n}}},Se=Function.prototype,xe=V&&Object.getOwnPropertyDescriptor,Ee=Mt(Se,"name"),Oe={EXISTS:Ee,PROPER:Ee&&"something"===function(){}.name,CONFIGURABLE:Ee&&(!V||V&&xe(Se,"name").configurable)},Ie=T((function(t){var e=Oe.CONFIGURABLE,n=we.get,r=we.enforce,o=String(String).split("String");(t.exports=function(t,n,i,u){var a,c=!!u&&!!u.unsafe,s=!!u&&!!u.enumerable,f=!!u&&!!u.noTargetGet,l=u&&void 0!==u.name?u.name:n;et(i)&&("Symbol("===String(l).slice(0,7)&&(l="["+String(l).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Mt(i,"name")||e&&i.name!==l)&&ee(i,"name",l),(a=r(i)).source||(a.source=o.join("string"==typeof l?l:""))),t!==N?(c?!f&&t[n]&&(s=!0):delete t[n],s?t[n]=i:ee(t,n,i)):s?t[n]=i:xt(n,i)})(Function.prototype,"toString",(function(){return et(this)&&n(this).source||ue(this)}))})),je=Math.ceil,Pe=Math.floor,Te=function(t){var e=+t;return e!=e||0===e?0:(e>0?Pe:je)(e)},Me=Math.max,Ae=Math.min,ke=function(t,e){var n=Te(t);return n<0?Me(n+e,0):Ae(n,e)},Ne=Math.min,Re=function(t){return t>0?Ne(Te(t),9007199254740991):0},Ve=function(t){return Re(t.length)},Ce=function(t){return function(e,n,r){var o,i=tt(e),u=Ve(i),a=ke(r,u);if(t&&n!=n){for(;u>a;)if((o=i[a++])!=o)return!0}else for(;u>a;a++)if((t||a in i)&&i[a]===n)return t||a||0;return!t&&-1}},Le={includes:Ce(!0),indexOf:Ce(!1)},ze=Le.indexOf,Fe=W([].push),De=function(t,e){var n,r=tt(t),o=0,i=[];for(n in r)!Mt(le,n)&&Mt(r,n)&&Fe(i,n);for(;e.length>o;)Mt(r,n=e[o++])&&(~ze(i,n)||Fe(i,n));return i},_e=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],$e=_e.concat("length","prototype"),He={f:Object.getOwnPropertyNames||function(t){return De(t,$e)}},Be={f:Object.getOwnPropertySymbols},Ge=W([].concat),We=rt("Reflect","ownKeys")||function(t){var e=He.f(Jt(t)),n=Be.f;return n?Ge(e,n(t)):e},Ue=function(t,e){for(var n=We(e),r=te.f,o=Xt.f,i=0;i<n.length;i++){var u=n[i];Mt(t,u)||r(t,u,o(e,u))}},Ke=/#|\.prototype\./,Xe=function(t,e){var n=qe[Ye(t)];return n==Qe||n!=Je&&(et(e)?R(e):!!e)},Ye=Xe.normalize=function(t){return String(t).replace(Ke,".").toLowerCase()},qe=Xe.data={},Je=Xe.NATIVE="N",Qe=Xe.POLYFILL="P",Ze=Xe,tn=Xt.f,en=function(t,e){var n,r,o,i,u,a=t.target,c=t.global,s=t.stat;if(n=c?N:s?N[a]||xt(a,{}):(N[a]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(u=tn(n,r))&&u.value:n[r],!Ze(c?r:a+(s?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Ue(i,o)}(t.sham||o&&o.sham)&&ee(i,"sham",!0),Ie(n,r,i,t)}},nn={};nn[Ft("toStringTag")]="z";var rn,on="[object z]"===String(nn),un=Ft("toStringTag"),an=N.Object,cn="Arguments"==X(function(){return arguments}()),sn=on?X:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=an(t),un))?n:cn?X(e):"Object"==(r=X(e))&&et(e.callee)?"Arguments":r},fn=N.String,ln=function(t){if("Symbol"===sn(t))throw TypeError("Cannot convert a Symbol value to a string");return fn(t)},dn="\t\n\v\f\r                 \u2028\u2029\ufeff",vn=W("".replace),pn="["+dn+"]",hn=RegExp("^"+pn+pn+"*"),yn=RegExp(pn+pn+"*$"),gn=function(t){return function(e){var n=ln(Z(e));return 1&t&&(n=vn(n,hn,"")),2&t&&(n=vn(n,yn,"")),n}},mn={start:gn(1),end:gn(2),trim:gn(3)},bn=Oe.PROPER,wn=mn.trim;function Sn(t){return t.length?t[0].tagName.toLowerCase():""}function xn(t,e,n,r){void 0===e&&(e="auto"),void 0===n&&(n="auto"),void 0===r&&(r={});var o=f(t),i=r.width,u=void 0===i?"":i,a=r.height,c=void 0===a?"":a,s="";return u&&(s+="width: "+u+";"),c&&(s+="height: "+c+";"),o.attr("width",e),o.attr("height",n),o.attr("style",s),o[0].outerHTML}en({target:"String",proto:!0,forced:(rn="trim",R((function(){return!!dn[rn]()||"​…᠎"!=="​…᠎"[rn]()||bn&&dn[rn].name!==rn})))},{trim:function(){return wn(this)}}),en({global:!0},{globalThis:N}),l&&(f.fn.append=l),d&&(f.fn.on=d),v&&(f.fn.focus=v),p&&(f.fn.attr=p),h&&(f.fn.val=h),y&&(f.fn.html=y),g&&(f.fn.parent=g),m&&(f.fn.hasClass=m),b&&(f.fn.empty=b);var En={type:"video",renderElem:function(t,n,r){var o,i=t,u=i.src,a=void 0===u?"":u,f=i.poster,l=void 0===f?"":f,d=i.key,v=void 0===d?"":d,p=i.width,h=void 0===p?"auto":p,y=i.height,g=void 0===y?"auto":y,m=i.style,b=void 0===m?{}:m,w=i.textAlign,S=void 0===w?"center":w,x=e.isNodeSelected(r,t);if(0===a.trim().indexOf("<iframe ")){var E=xn(a,h,g,b);o=c("div",{className:"w-e-textarea-video-container","data-selected":x?"true":"",style:{textAlign:S},innerHTML:E})}else{var O=c("video",{key:v,poster:l,controls:!0,style:b},c("source",{src:a,type:"video/mp4"}),"Sorry, your browser doesn't support embedded videos.\n 抱歉,浏览器不支持 video 视频");"auto"!==h&&(O.data.width=h),"auto"!==g&&(O.data.height=g),o=c("div",{className:"w-e-textarea-video-container","data-selected":x?"true":"",style:{textAlign:S}},O)}return s("div",{props:{contentEditable:!1},on:{mousedown:function(t){return t.preventDefault()}}},o)}};var On,In={type:"video",elemToHtml:function(t,e){var n=t,r=n.src,o=void 0===r?"":r,i=n.poster,u=void 0===i?"":i,a=n.width,c=void 0===a?"auto":a,s=n.height,f=void 0===s?"auto":s,l=n.style,d=void 0===l?{}:l,v=n.textAlign,p='<div data-w-e-type="video" data-w-e-is-void style="text-align: '+(void 0===v?"center":v)+';">\n';if(0===o.trim().indexOf("<iframe ")){p+=xn(o,c,f,d)}else{var h=d.width,y=void 0===h?"":h,g=d.height,m=void 0===g?"":g,b="";y&&(b+="width: "+y+";"),m&&(b+="height: "+m+";"),p+='<video poster="'+u+'" controls="true" width="'+c+'" height="'+f+'" style="'+b+'"><source src="'+o+'" type="video/mp4"/></video>'}return p+="\n</div>"}},jn=Object.keys||function(t){return De(t,_e)},Pn=V?Object.defineProperties:function(t,e){Jt(t);for(var n,r=tt(e),o=jn(e),i=o.length,u=0;i>u;)te.f(t,n=o[u++],r[n]);return t},Tn=rt("document","documentElement"),Mn="prototype",An="script",kn=fe("IE_PROTO"),Nn=function(){},Rn=function(t){return"<"+An+">"+t+"</"+An+">"},Vn=function(t){t.write(Rn("")),t.close();var e=t.parentWindow.Object;return t=null,e},Cn=function(){try{On=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;Cn="undefined"!=typeof document?document.domain&&On?Vn(On):(e=Wt("iframe"),n="java"+An+":",e.style.display="none",Tn.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(Rn("document.F=Object")),t.close(),t.F):Vn(On);for(var r=_e.length;r--;)delete Cn[Mn][_e[r]];return Cn()};le[kn]=!0;var Ln=Object.create||function(t,e){var n;return null!==t?(Nn[Mn]=Jt(t),n=new Nn,Nn[Mn]=null,n[kn]=t):n=Cn(),void 0===e?n:Pn(n,e)},zn=Ft("unscopables"),Fn=Array.prototype;null==Fn[zn]&&te.f(Fn,zn,{configurable:!0,value:Ln(null)});var Dn=function(t){Fn[zn][t]=!0},_n=Le.includes;en({target:"Array",proto:!0},{includes:function(t){return _n(this,t,arguments.length>1?arguments[1]:void 0)}}),Dn("includes");var $n={selector:"iframe,video,p",preParseHtml:function(t){var e=f(t),n=e;if("p"===Sn(e)){var r=e.children();if(1===r.length){var o=r[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(n=f(o))}}var u=Sn(n);if("iframe"!==u&&"video"!==u)return n[0];if("video"===n.parent().attr("data-w-e-type"))return n[0];var a=f('<div data-w-e-type="video" data-w-e-is-void style="text-align: center;"></div>');return a.append(n),a[0]}},Hn=W(W.bind),Bn=function(t,e){return mt(t),void 0===e?t:Hn?Hn(t,e):function(){return t.apply(e,arguments)}},Gn=Array.isArray||function(t){return"Array"==X(t)},Wn=function(){},Un=[],Kn=rt("Reflect","construct"),Xn=/^\s*(?:class|function)\b/,Yn=W(Xn.exec),qn=!Xn.exec(Wn),Jn=function(t){if(!et(t))return!1;try{return Kn(Wn,Un,t),!0}catch(t){return!1}},Qn=!Kn||R((function(){var t;return Jn(Jn.call)||!Jn(Object)||!Jn((function(){t=!0}))||t}))?function(t){if(!et(t))return!1;switch(sn(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return qn||!!Yn(Xn,ue(t))}:Jn,Zn=Ft("species"),tr=N.Array,er=function(t,e){return new(function(t){var e;return Gn(t)&&(e=t.constructor,(Qn(e)&&(e===tr||Gn(e.prototype))||nt(e)&&null===(e=e[Zn]))&&(e=void 0)),void 0===e?tr:e}(t))(0===e?0:e)},nr=W([].push),rr=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,u=7==t,a=5==t||i;return function(c,s,f,l){for(var d,v,p=Pt(c),h=J(p),y=Bn(s,f),g=Ve(h),m=0,b=l||er,w=e?b(c,g):n||u?b(c,0):void 0;g>m;m++)if((a||m in h)&&(v=y(d=h[m],m,p),t))if(e)w[m]=v;else if(v)switch(t){case 3:return!0;case 5:return d;case 6:return m;case 2:nr(w,d)}else switch(t){case 4:return!1;case 7:nr(w,d)}return i?-1:r||o?o:w}},or={forEach:rr(0),map:rr(1),filter:rr(2),some:rr(3),every:rr(4),find:rr(5),findIndex:rr(6),filterReject:rr(7)},ir=or.find,ur="find",ar=!0;ur in[]&&Array(1)[ur]((function(){ar=!1})),en({target:"Array",proto:!0,forced:ar},{find:function(t){return ir(this,t,arguments.length>1?arguments[1]:void 0)}}),Dn(ur);var cr=on?{}.toString:function(){return"[object "+sn(this)+"]"};on||Ie(Object.prototype,"toString",cr,{unsafe:!0});var sr,fr,lr=function(){var t=Jt(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},dr=N.RegExp,vr=R((function(){var t=dr("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),pr=vr||R((function(){return!dr("a","y").sticky})),hr={BROKEN_CARET:vr||R((function(){var t=dr("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:pr,UNSUPPORTED_Y:vr},yr=N.RegExp,gr=R((function(){var t=yr(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),mr=N.RegExp,br=R((function(){var t=mr("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),wr=we.get,Sr=It("native-string-replace",String.prototype.replace),xr=RegExp.prototype.exec,Er=xr,Or=W("".charAt),Ir=W("".indexOf),jr=W("".replace),Pr=W("".slice),Tr=(fr=/b*/g,L(xr,sr=/a/,"a"),L(xr,fr,"a"),0!==sr.lastIndex||0!==fr.lastIndex),Mr=hr.BROKEN_CARET,Ar=void 0!==/()??/.exec("")[1];(Tr||Ar||Mr||gr||br)&&(Er=function(t){var e,n,r,o,i,u,a,c=this,s=wr(c),f=ln(t),l=s.raw;if(l)return l.lastIndex=c.lastIndex,e=L(Er,l,f),c.lastIndex=l.lastIndex,e;var d=s.groups,v=Mr&&c.sticky,p=L(lr,c),h=c.source,y=0,g=f;if(v&&(p=jr(p,"y",""),-1===Ir(p,"g")&&(p+="g"),g=Pr(f,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==Or(f,c.lastIndex-1))&&(h="(?: "+h+")",g=" "+g,y++),n=new RegExp("^(?:"+h+")",p)),Ar&&(n=new RegExp("^"+h+"$(?!\\s)",p)),Tr&&(r=c.lastIndex),o=L(xr,v?n:c,g),v?o?(o.input=Pr(o.input,y),o[0]=Pr(o[0],y),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:Tr&&o&&(c.lastIndex=c.global?o.index+o[0].length:r),Ar&&o&&o.length>1&&L(Sr,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=u=Ln(null),i=0;i<d.length;i++)u[(a=d[i])[0]]=o[a[1]];return o});var kr=Er;en({target:"RegExp",proto:!0,forced:/./.exec!==kr},{exec:kr});var Nr=Function.prototype,Rr=Nr.apply,Vr=Nr.bind,Cr=Nr.call,Lr="object"==typeof Reflect&&Reflect.apply||(Vr?Cr.bind(Rr):function(){return Cr.apply(Rr,arguments)}),zr=Ft("species"),Fr=RegExp.prototype,Dr=W("".charAt),_r=W("".charCodeAt),$r=W("".slice),Hr=function(t){return function(e,n){var r,o,i=ln(Z(e)),u=Te(n),a=i.length;return u<0||u>=a?t?"":void 0:(r=_r(i,u))<55296||r>56319||u+1===a||(o=_r(i,u+1))<56320||o>57343?t?Dr(i,u):r:t?$r(i,u,u+2):o-56320+(r-55296<<10)+65536}},Br={codeAt:Hr(!1),charAt:Hr(!0)},Gr=Br.charAt,Wr=function(t,e,n){return e+(n?Gr(t,e).length:1)},Ur=Math.floor,Kr=W("".charAt),Xr=W("".replace),Yr=W("".slice),qr=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Jr=/\$([$&'`]|\d{1,2})/g,Qr=function(t,e,n,r,o,i){var u=n+t.length,a=r.length,c=Jr;return void 0!==o&&(o=Pt(o),c=qr),Xr(i,c,(function(i,c){var s;switch(Kr(c,0)){case"$":return"$";case"&":return t;case"`":return Yr(e,0,n);case"'":return Yr(e,u);case"<":s=o[Yr(c,1,-1)];break;default:var f=+c;if(0===f)return i;if(f>a){var l=Ur(f/10);return 0===l?i:l<=a?void 0===r[l-1]?Kr(c,1):r[l-1]+Kr(c,1):i}s=r[f-1]}return void 0===s?"":s}))},Zr=N.TypeError,to=function(t,e){var n=t.exec;if(et(n)){var r=L(n,t,e);return null!==r&&Jt(r),r}if("RegExp"===X(t))return L(kr,t,e);throw Zr("RegExp#exec called on incompatible receiver")},eo=Ft("replace"),no=Math.max,ro=Math.min,oo=W([].concat),io=W([].push),uo=W("".indexOf),ao=W("".slice),co="$0"==="a".replace(/./,"$0"),so=!!/./[eo]&&""===/./[eo]("a","$0");!function(t,e,n,r){var o=Ft(t),i=!R((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),u=i&&!R((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[zr]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return e=!0,null},n[o](""),!e}));if(!i||!u||n){var a=W(/./[o]),c=e(o,""[t],(function(t,e,n,r,o){var u=W(t),c=e.exec;return c===kr||c===Fr.exec?i&&!o?{done:!0,value:a(e,n,r)}:{done:!0,value:u(n,e,r)}:{done:!1}}));Ie(String.prototype,t,c[0]),Ie(Fr,o,c[1])}r&&ee(Fr[o],"sham",!0)}("replace",(function(t,e,n){var r=so?"$":"$0";return[function(t,n){var r=Z(this),o=null==t?void 0:bt(t,eo);return o?L(o,t,r,n):L(e,ln(r),t,n)},function(t,o){var i=Jt(this),u=ln(t);if("string"==typeof o&&-1===uo(o,r)&&-1===uo(o,"$<")){var a=n(e,i,u,o);if(a.done)return a.value}var c=et(o);c||(o=ln(o));var s=i.global;if(s){var f=i.unicode;i.lastIndex=0}for(var l=[];;){var d=to(i,u);if(null===d)break;if(io(l,d),!s)break;""===ln(d[0])&&(i.lastIndex=Wr(u,Re(i.lastIndex),f))}for(var v,p="",h=0,y=0;y<l.length;y++){for(var g=ln((d=l[y])[0]),m=no(ro(Te(d.index),u.length),0),b=[],w=1;w<d.length;w++)io(b,void 0===(v=d[w])?v:String(v));var S=d.groups;if(c){var x=oo([g],b,m,u);void 0!==S&&io(x,S);var E=ln(Lr(o,void 0,x))}else E=Qr(g,u,m,b,S,o);m>=h&&(p+=ao(u,h,m)+E,h=m+g.length)}return p+ao(u,h)}]}),!!R((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!co||so);var fo={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},lo=Wt("span").classList,vo=lo&&lo.constructor&&lo.constructor.prototype,po=vo===Object.prototype?void 0:vo,ho=function(t,e){var n=[][t];return!!n&&R((function(){n.call(null,e||function(){throw 1},1)}))},yo=or.forEach,go=ho("forEach")?[].forEach:function(t){return yo(this,t,arguments.length>1?arguments[1]:void 0)},mo=function(t){if(t&&t.forEach!==go)try{ee(t,"forEach",go)}catch(e){t.forEach=go}};for(var bo in fo)fo[bo]&&mo(N[bo]&&N[bo].prototype);function wo(t){return void 0===t&&(t="r"),t+"-"+w()}function So(t){var e={};return t.trim().split(";").forEach((function(t){if(t){var n=I(t.split(":"),2),r=n[0],o=n[1];r&&o&&(e[r.trim()]=o.trim())}})),e}function xo(t,e,n,r,o){return void 0===e&&(e=""),void 0===n&&(n="auto"),void 0===r&&(r="auto"),void 0===o&&(o={}),{type:"video",src:t,poster:e,width:n,height:r,style:o,children:[{text:""}]}}mo(po);var Eo={selector:'div[data-w-e-type="video"]',parseElemHtml:function(t,e,n){var r=f(t),o="",i="",u="auto",a="auto",c={},s=r.find("iframe");if(s.length>0)return u=s.attr("width")||"auto",a=s.attr("height")||"auto",c=So(c=s.attr("style")||""),xo(o=s[0].outerHTML,i,u,a,c);var l=r.find("video");return(o=l.attr("src")||"")||l.length>0&&(o=l.find("source").attr("src")||""),u=l.attr("width")||"auto",a=l.attr("height")||"auto",xo(o,i=l.attr("poster")||"",u,a,c=So(c=l.attr("style")||""))}},Oo=N.Promise,Io=function(t,e,n){for(var r in e)Ie(t,r,e[r],n);return t},jo=N.String,Po=N.TypeError,To=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=W(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return Jt(n),function(t){if("object"==typeof t||et(t))return t;throw Po("Can't set "+jo(t)+" as a prototype")}(r),e?t(n,r):n.__proto__=r,n}}():void 0),Mo=te.f,Ao=Ft("toStringTag"),ko=function(t,e,n){t&&!Mt(t=n?t:t.prototype,Ao)&&Mo(t,Ao,{configurable:!0,value:e})},No=Ft("species"),Ro=N.TypeError,Vo=function(t,e){if(ot(e,t))return t;throw Ro("Incorrect invocation")},Co={},Lo=Ft("iterator"),zo=Array.prototype,Fo=Ft("iterator"),Do=function(t){if(null!=t)return bt(t,Fo)||bt(t,"@@iterator")||Co[sn(t)]},_o=N.TypeError,$o=function(t,e,n){var r,o;Jt(t);try{if(!(r=bt(t,"return"))){if("throw"===e)throw n;return n}r=L(r,t)}catch(t){o=!0,r=t}if("throw"===e)throw n;if(o)throw r;return Jt(r),n},Ho=N.TypeError,Bo=function(t,e){this.stopped=t,this.result=e},Go=Bo.prototype,Wo=function(t,e,n){var r,o,i,u,a,c,s,f,l=n&&n.that,d=!(!n||!n.AS_ENTRIES),v=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),h=Bn(e,l),y=function(t){return r&&$o(r,"normal",t),new Bo(!0,t)},g=function(t){return d?(Jt(t),p?h(t[0],t[1],y):h(t[0],t[1])):p?h(t,y):h(t)};if(v)r=t;else{if(!(o=Do(t)))throw Ho(yt(t)+" is not iterable");if(void 0!==(f=o)&&(Co.Array===f||zo[Lo]===f)){for(i=0,u=Ve(t);u>i;i++)if((a=g(t[i]))&&ot(Go,a))return a;return new Bo(!1)}r=function(t,e){var n=arguments.length<2?Do(t):e;if(mt(n))return Jt(L(n,t));throw _o(yt(t)+" is not iterable")}(t,o)}for(c=r.next;!(s=L(c,r)).done;){try{a=g(s.value)}catch(t){$o(r,"throw",t)}if("object"==typeof a&&a&&ot(Go,a))return a}return new Bo(!1)},Uo=Ft("iterator"),Ko=!1;try{var Xo=0,Yo={next:function(){return{done:!!Xo++}},return:function(){Ko=!0}};Yo[Uo]=function(){return this},Array.from(Yo,(function(){throw 2}))}catch(t){}var qo,Jo,Qo,Zo,ti=function(t,e){if(!e&&!Ko)return!1;var n=!1;try{var r={};r[Uo]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n},ei=N.TypeError,ni=Ft("species"),ri=function(t,e){var n,r=Jt(t).constructor;return void 0===r||null==(n=Jt(r)[ni])?e:function(t){if(Qn(t))return t;throw ei(yt(t)+" is not a constructor")}(n)},oi=W([].slice),ii=/(?:ipad|iphone|ipod).*applewebkit/i.test(it),ui="process"==X(N.process),ai=N.setImmediate,ci=N.clearImmediate,si=N.process,fi=N.Dispatch,li=N.Function,di=N.MessageChannel,vi=N.String,pi=0,hi={},yi="onreadystatechange";try{qo=N.location}catch(t){}var gi=function(t){if(Mt(hi,t)){var e=hi[t];delete hi[t],e()}},mi=function(t){return function(){gi(t)}},bi=function(t){gi(t.data)},wi=function(t){N.postMessage(vi(t),qo.protocol+"//"+qo.host)};ai&&ci||(ai=function(t){var e=oi(arguments,1);return hi[++pi]=function(){Lr(et(t)?t:li(t),void 0,e)},Jo(pi),pi},ci=function(t){delete hi[t]},ui?Jo=function(t){si.nextTick(mi(t))}:fi&&fi.now?Jo=function(t){fi.now(mi(t))}:di&&!ii?(Zo=(Qo=new di).port2,Qo.port1.onmessage=bi,Jo=Bn(Zo.postMessage,Zo)):N.addEventListener&&et(N.postMessage)&&!N.importScripts&&qo&&"file:"!==qo.protocol&&!R(wi)?(Jo=wi,N.addEventListener("message",bi,!1)):Jo=yi in Wt("script")?function(t){Tn.appendChild(Wt("script"))[yi]=function(){Tn.removeChild(this),gi(t)}}:function(t){setTimeout(mi(t),0)});var Si,xi,Ei,Oi,Ii,ji,Pi,Ti,Mi={set:ai,clear:ci},Ai=/ipad|iphone|ipod/i.test(it)&&void 0!==N.Pebble,ki=/web0s(?!.*chrome)/i.test(it),Ni=Xt.f,Ri=Mi.set,Vi=N.MutationObserver||N.WebKitMutationObserver,Ci=N.document,Li=N.process,zi=N.Promise,Fi=Ni(N,"queueMicrotask"),Di=Fi&&Fi.value;Di||(Si=function(){var t,e;for(ui&&(t=Li.domain)&&t.exit();xi;){e=xi.fn,xi=xi.next;try{e()}catch(t){throw xi?Oi():Ei=void 0,t}}Ei=void 0,t&&t.enter()},ii||ui||ki||!Vi||!Ci?!Ai&&zi&&zi.resolve?((Pi=zi.resolve(void 0)).constructor=zi,Ti=Bn(Pi.then,Pi),Oi=function(){Ti(Si)}):ui?Oi=function(){Li.nextTick(Si)}:(Ri=Bn(Ri,N),Oi=function(){Ri(Si)}):(Ii=!0,ji=Ci.createTextNode(""),new Vi(Si).observe(ji,{characterData:!0}),Oi=function(){ji.data=Ii=!Ii}));var _i,$i,Hi,Bi,Gi=Di||function(t){var e={fn:t,next:void 0};Ei&&(Ei.next=e),xi||(xi=e,Oi()),Ei=e},Wi=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=mt(e),this.reject=mt(n)},Ui={f:function(t){return new Wi(t)}},Ki=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Xi="object"==typeof window,Yi=Mi.set,qi=Ft("species"),Ji="Promise",Qi=we.getterFor(Ji),Zi=we.set,tu=we.getterFor(Ji),eu=Oo&&Oo.prototype,nu=Oo,ru=eu,ou=N.TypeError,iu=N.document,uu=N.process,au=Ui.f,cu=au,su=!!(iu&&iu.createEvent&&N.dispatchEvent),fu=et(N.PromiseRejectionEvent),lu="unhandledrejection",du=!1,vu=Ze(Ji,(function(){var t=ue(nu),e=t!==String(nu);if(!e&&66===ft)return!0;if(ft>=51&&/native code/.test(t))return!1;var n=new nu((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};return(n.constructor={})[qi]=r,!(du=n.then((function(){}))instanceof r)||!e&&Xi&&!fu})),pu=vu||!ti((function(t){nu.all(t).catch((function(){}))})),hu=function(t){var e;return!(!nt(t)||!et(e=t.then))&&e},yu=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;Gi((function(){for(var r=t.value,o=1==t.state,i=0;n.length>i;){var u,a,c,s=n[i++],f=o?s.ok:s.fail,l=s.resolve,d=s.reject,v=s.domain;try{f?(o||(2===t.rejection&&wu(t),t.rejection=1),!0===f?u=r:(v&&v.enter(),u=f(r),v&&(v.exit(),c=!0)),u===s.promise?d(ou("Promise-chain cycle")):(a=hu(u))?L(a,u,l,d):l(u)):d(r)}catch(t){v&&!c&&v.exit(),d(t)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&mu(t)}))}},gu=function(t,e,n){var r,o;su?((r=iu.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),N.dispatchEvent(r)):r={promise:e,reason:n},!fu&&(o=N["on"+t])?o(r):t===lu&&function(t,e){var n=N.console;n&&n.error&&(1==arguments.length?n.error(t):n.error(t,e))}("Unhandled promise rejection",n)},mu=function(t){L(Yi,N,(function(){var e,n=t.facade,r=t.value;if(bu(t)&&(e=Ki((function(){ui?uu.emit("unhandledRejection",r,n):gu(lu,n,r)})),t.rejection=ui||bu(t)?2:1,e.error))throw e.value}))},bu=function(t){return 1!==t.rejection&&!t.parent},wu=function(t){L(Yi,N,(function(){var e=t.facade;ui?uu.emit("rejectionHandled",e):gu("rejectionhandled",e,t.value)}))},Su=function(t,e,n){return function(r){t(e,r,n)}},xu=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,yu(t,!0))},Eu=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw ou("Promise can't be resolved itself");var r=hu(e);r?Gi((function(){var n={done:!1};try{L(r,e,Su(Eu,n,t),Su(xu,n,t))}catch(e){xu(n,e,t)}})):(t.value=e,t.state=1,yu(t,!1))}catch(e){xu({done:!1},e,t)}}};if(vu&&(ru=(nu=function(t){Vo(this,ru),mt(t),L(_i,this);var e=Qi(this);try{t(Su(Eu,e),Su(xu,e))}catch(t){xu(e,t)}}).prototype,(_i=function(t){Zi(this,{type:Ji,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Io(ru,{then:function(t,e){var n=tu(this),r=n.reactions,o=au(ri(this,nu));return o.ok=!et(t)||t,o.fail=et(e)&&e,o.domain=ui?uu.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&yu(n,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),$i=function(){var t=new _i,e=Qi(t);this.promise=t,this.resolve=Su(Eu,e),this.reject=Su(xu,e)},Ui.f=au=function(t){return t===nu||t===Hi?new $i(t):cu(t)},et(Oo)&&eu!==Object.prototype)){Bi=eu.then,du||(Ie(eu,"then",(function(t,e){var n=this;return new nu((function(t,e){L(Bi,n,t,e)})).then(t,e)}),{unsafe:!0}),Ie(eu,"catch",ru.catch,{unsafe:!0}));try{delete eu.constructor}catch(t){}To&&To(eu,ru)}function Ou(t,n,r,o,i){return void 0===r&&(r=""),void 0===o&&(o=""),void 0===i&&(i=""),x(this,void 0,void 0,(function(){var a,c,s,f,l,d,v;return E(this,(function(p){switch(p.label){case 0:return n?(t.restoreSelection(),a=t.getMenuConfig("insertVideo"),c=a.onInsertedVideo,s=a.checkVideo,f=a.parseVideoSrc,[4,s(n,r)]):[2];case 1:return"string"==typeof(l=p.sent())?(t.alert(l,"error"),[2]):null==l?[2]:[4,f(n)];case 2:return 0!==(d=p.sent()).trim().indexOf("<iframe ")&&(d=d.replace(/</g,"&lt;").replace(/>/g,"&gt;")),v={type:"video",src:d,poster:r,children:[{text:""}],style:{width:o,height:i}},Promise.resolve().then((function(){e.isSelectedEmptyParagraph(t)&&u.removeNodes(t,{mode:"highest"}),u.insertNodes(t,v)})),c(v),[2]}}))}))}function Iu(){return wo("w-e-insert-video")}en({global:!0,wrap:!0,forced:vu},{Promise:nu}),ko(nu,Ji,!1),function(t){var e=rt(t),n=te.f;V&&e&&!e[No]&&n(e,No,{configurable:!0,get:function(){return this}})}(Ji),Hi=rt(Ji),en({target:Ji,stat:!0,forced:vu},{reject:function(t){var e=au(this);return L(e.reject,void 0,t),e.promise}}),en({target:Ji,stat:!0,forced:vu},{resolve:function(t){return function(t,e){if(Jt(t),nt(e)&&e.constructor===t)return e;var n=Ui.f(t);return(0,n.resolve)(e),n.promise}(this,t)}}),en({target:Ji,stat:!0,forced:pu},{all:function(t){var e=this,n=au(e),r=n.resolve,o=n.reject,i=Ki((function(){var n=mt(e.resolve),i=[],u=0,a=1;Wo(t,(function(t){var c=u++,s=!1;a++,L(n,e,t).then((function(t){s||(s=!0,i[c]=t,--a||r(i))}),o)})),--a||r(i)}));return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=au(e),r=n.reject,o=Ki((function(){var o=mt(e.resolve);Wo(t,(function(t){L(o,e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var ju=function(){function t(){this.title=n("videoModule.insertVideo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.srcInputId=Iu(),this.posterInputId=Iu(),this.buttonId=Iu()}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.exec=function(t,e){},t.prototype.isDisabled=function(t){var n=t.selection;return null==n||(!a.isCollapsed(n)||!!e.getSelectedElems(t).some((function(n){var r=e.getNodeType(n);return"pre"===r||("list-item"===r||!!t.isVoid(n))})))},t.prototype.getModalPositionNode=function(t){return null},t.prototype.getModalContentElem=function(t){var e=this,i=this,u=i.srcInputId,a=i.posterInputId,c=i.buttonId,s=I(r(n("videoModule.videoSrc"),u,n("videoModule.videoSrcPlaceHolder")),2),l=s[0],d=s[1],v=I(r(n("videoModule.videoPoster"),a,n("videoModule.videoPosterPlaceHolder")),2),p=v[0],h=v[1],y=f(d),g=f(h),m=I(o(c,n("videoModule.ok")),1)[0];if(null==this.$content){var b=f("<div></div>");b.on("click","#"+c,(function(n){return x(e,void 0,void 0,(function(){var e,r;return E(this,(function(o){switch(o.label){case 0:return n.preventDefault(),e=b.find("#"+u).val().trim(),r=b.find("#"+a).val().trim(),[4,Ou(t,e,r)];case 1:return o.sent(),t.hidePanelOrModal(),[2]}}))}))})),this.$content=b}var w=this.$content;return w.empty(),w.append(l),w.append(p),w.append(m),y.val(""),g.val(""),setTimeout((function(){y.focus()})),w[0]},t}(),Pu=W([].join),Tu=J!=Object,Mu=ho("join",",");en({target:"Array",proto:!0,forced:Tu||!Mu},{join:function(t){return Pu(tt(this),void 0===t?",":t)}});var Au,ku,Nu,Ru=!R((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Vu=fe("IE_PROTO"),Cu=N.Object,Lu=Cu.prototype,zu=Ru?Cu.getPrototypeOf:function(t){var e=Pt(t);if(Mt(e,Vu))return e[Vu];var n=e.constructor;return et(n)&&e instanceof n?n.prototype:e instanceof Cu?Lu:null},Fu=Ft("iterator"),Du=!1;[].keys&&("next"in(Nu=[].keys())?(ku=zu(zu(Nu)))!==Object.prototype&&(Au=ku):Du=!0);var _u=null==Au||R((function(){var t={};return Au[Fu].call(t)!==t}));_u&&(Au={}),et(Au[Fu])||Ie(Au,Fu,(function(){return this}));var $u={IteratorPrototype:Au,BUGGY_SAFARI_ITERATORS:Du},Hu=$u.IteratorPrototype,Bu=function(){return this},Gu=Oe.PROPER,Wu=Oe.CONFIGURABLE,Uu=$u.IteratorPrototype,Ku=$u.BUGGY_SAFARI_ITERATORS,Xu=Ft("iterator"),Yu="keys",qu="values",Ju="entries",Qu=function(){return this},Zu=function(t,e,n,r,o,i,u){!function(t,e,n,r){var o=e+" Iterator";t.prototype=Ln(Hu,{next:_(+!r,n)}),ko(t,o,!1),Co[o]=Bu}(n,e,r);var a,c,s,f=function(t){if(t===o&&h)return h;if(!Ku&&t in v)return v[t];switch(t){case Yu:case qu:case Ju:return function(){return new n(this,t)}}return function(){return new n(this)}},l=e+" Iterator",d=!1,v=t.prototype,p=v[Xu]||v["@@iterator"]||o&&v[o],h=!Ku&&p||f(o),y="Array"==e&&v.entries||p;if(y&&(a=zu(y.call(new t)))!==Object.prototype&&a.next&&(zu(a)!==Uu&&(To?To(a,Uu):et(a[Xu])||Ie(a,Xu,Qu)),ko(a,l,!0)),Gu&&o==qu&&p&&p.name!==qu&&(Wu?ee(v,"name",qu):(d=!0,h=function(){return L(p,this)})),o)if(c={values:f(qu),keys:i?h:f(Yu),entries:f(Ju)},u)for(s in c)(Ku||d||!(s in v))&&Ie(v,s,c[s]);else en({target:e,proto:!0,forced:Ku||d},c);return v[Xu]!==h&&Ie(v,Xu,h,{name:o}),Co[e]=h,c},ta="Array Iterator",ea=we.set,na=we.getterFor(ta),ra=Zu(Array,"Array",(function(t,e){ea(this,{type:ta,target:tt(t),index:0,kind:e})}),(function(){var t=na(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values");Co.Arguments=Co.Array,Dn("keys"),Dn("values"),Dn("entries");var oa=function(t,e,n){var r=Ht(e);r in t?te.f(t,r,_(0,n)):t[r]=n},ia=Ft("species"),ua=function(t){return ft>=51||!R((function(){var e=[];return(e.constructor={})[ia]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}("slice"),aa=Ft("species"),ca=N.Array,sa=Math.max;en({target:"Array",proto:!0,forced:!ua},{slice:function(t,e){var n,r,o,i=tt(this),u=Ve(i),a=ke(t,u),c=ke(void 0===e?u:e,u);if(Gn(i)&&(n=i.constructor,(Qn(n)&&(n===ca||Gn(n.prototype))||nt(n)&&null===(n=n[aa]))&&(n=void 0),n===ca||void 0===n))return oi(i,a,c);for(r=new(void 0===n?ca:n)(sa(c-a,0)),o=0;a<c;a++,o++)a in i&&oa(r,o,i[a]);return r.length=o,r}});var fa=Oe.EXISTS,la=te.f,da=Function.prototype,va=W(da.toString),pa=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,ha=W(pa.exec);V&&!fa&&la(da,"name",{configurable:!0,get:function(){try{return ha(pa,va(this))[1]}catch(t){return""}}});var ya=Br.charAt,ga="String Iterator",ma=we.set,ba=we.getterFor(ga);Zu(String,"String",(function(t){ma(this,{type:ga,string:ln(t),index:0})}),(function(){var t,e=ba(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=ya(n,r),e.index+=t.length,{value:t,done:!1})}));var wa=N.Array,Sa=Math.max,xa=He.f,Ea="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Oa=function(t){try{return xa(t)}catch(t){return function(t,e,n){for(var r=Ve(t),o=ke(e,r),i=ke(void 0===n?r:n,r),u=wa(Sa(i-o,0)),a=0;o<i;o++,a++)oa(u,a,t[o]);return u.length=a,u}(Ea)}},Ia={f:function(t){return Ea&&"Window"==X(t)?Oa(t):xa(tt(t))}},ja=R((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),Pa=Object.isExtensible,Ta=R((function(){Pa(1)}))||ja?function(t){return!!nt(t)&&((!ja||"ArrayBuffer"!=X(t))&&(!Pa||Pa(t)))}:Pa,Ma=!R((function(){return Object.isExtensible(Object.preventExtensions({}))})),Aa=T((function(t){var e=te.f,n=!1,r=Rt("meta"),o=0,i=function(t){e(t,r,{value:{objectID:"O"+o++,weakData:{}}})},u=t.exports={enable:function(){u.enable=function(){},n=!0;var t=He.f,e=W([].splice),o={};o[r]=1,t(o).length&&(He.f=function(n){for(var o=t(n),i=0,u=o.length;i<u;i++)if(o[i]===r){e(o,i,1);break}return o},en({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Ia.f}))},fastKey:function(t,e){if(!nt(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!Mt(t,r)){if(!Ta(t))return"F";if(!e)return"E";i(t)}return t[r].objectID},getWeakData:function(t,e){if(!Mt(t,r)){if(!Ta(t))return!0;if(!e)return!1;i(t)}return t[r].weakData},onFreeze:function(t){return Ma&&n&&Ta(t)&&!Mt(t,r)&&i(t),t}};le[r]=!0})),ka=Aa.getWeakData,Na=we.set,Ra=we.getterFor,Va=or.find,Ca=or.findIndex,La=W([].splice),za=0,Fa=function(t){return t.frozen||(t.frozen=new Da)},Da=function(){this.entries=[]},_a=function(t,e){return Va(t.entries,(function(t){return t[0]===e}))};Da.prototype={get:function(t){var e=_a(this,t);if(e)return e[1]},has:function(t){return!!_a(this,t)},set:function(t,e){var n=_a(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=Ca(this.entries,(function(e){return e[0]===t}));return~e&&La(this.entries,e,1),!!~e}};var $a,Ha={getConstructor:function(t,e,n,r){var o=t((function(t,o){Vo(t,i),Na(t,{type:e,id:za++,frozen:void 0}),null!=o&&Wo(o,t[r],{that:t,AS_ENTRIES:n})})),i=o.prototype,u=Ra(e),a=function(t,e,n){var r=u(t),o=ka(Jt(e),!0);return!0===o?Fa(r).set(e,n):o[r.id]=n,t};return Io(i,{delete:function(t){var e=u(this);if(!nt(t))return!1;var n=ka(t);return!0===n?Fa(e).delete(t):n&&Mt(n,e.id)&&delete n[e.id]},has:function(t){var e=u(this);if(!nt(t))return!1;var n=ka(t);return!0===n?Fa(e).has(t):n&&Mt(n,e.id)}}),Io(i,n?{get:function(t){var e=u(this);if(nt(t)){var n=ka(t);return!0===n?Fa(e).get(t):n?n[e.id]:void 0}},set:function(t,e){return a(this,t,e)}}:{add:function(t){return a(this,t,!0)}}),o}},Ba=we.enforce,Ga=!N.ActiveXObject&&"ActiveXObject"in N,Wa=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Ua=function(t,e,n){var r=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=r?"set":"add",u=N[t],a=u&&u.prototype,c=u,s={},f=function(t){var e=W(a[t]);Ie(a,t,"add"==t?function(t){return e(this,0===t?0:t),this}:"delete"==t?function(t){return!(o&&!nt(t))&&e(this,0===t?0:t)}:"get"==t?function(t){return o&&!nt(t)?void 0:e(this,0===t?0:t)}:"has"==t?function(t){return!(o&&!nt(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this})};if(Ze(t,!et(u)||!(o||a.forEach&&!R((function(){(new u).entries().next()})))))c=n.getConstructor(e,t,r,i),Aa.enable();else if(Ze(t,!0)){var l=new c,d=l[i](o?{}:-0,1)!=l,v=R((function(){l.has(1)})),p=ti((function(t){new u(t)})),h=!o&&R((function(){for(var t=new u,e=5;e--;)t[i](e,e);return!t.has(-0)}));p||((c=e((function(t,e){Vo(t,a);var n=function(t,e,n){var r,o;return To&&et(r=e.constructor)&&r!==n&&nt(o=r.prototype)&&o!==n.prototype&&To(t,o),t}(new u,t,c);return null!=e&&Wo(e,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=a,a.constructor=c),(v||h)&&(f("delete"),f("has"),r&&f("get")),(h||d)&&f(i),o&&a.clear&&delete a.clear}return s[t]=c,en({global:!0,forced:c!=u},s),ko(c,t),o||n.setStrong(c,t,r),c}("WeakMap",Wa,Ha);if(ce&&Ga){$a=Ha.getConstructor(Wa,"WeakMap",!0),Aa.enable();var Ka=Ua.prototype,Xa=W(Ka.delete),Ya=W(Ka.has),qa=W(Ka.get),Ja=W(Ka.set);Io(Ka,{delete:function(t){if(nt(t)&&!Ta(t)){var e=Ba(this);return e.frozen||(e.frozen=new $a),Xa(this,t)||e.frozen.delete(t)}return Xa(this,t)},has:function(t){if(nt(t)&&!Ta(t)){var e=Ba(this);return e.frozen||(e.frozen=new $a),Ya(this,t)||e.frozen.has(t)}return Ya(this,t)},get:function(t){if(nt(t)&&!Ta(t)){var e=Ba(this);return e.frozen||(e.frozen=new $a),Ya(this,t)?qa(this,t):e.frozen.get(t)}return qa(this,t)},set:function(t,e){if(nt(t)&&!Ta(t)){var n=Ba(this);n.frozen||(n.frozen=new $a),Ya(this,t)?Ja(this,t,e):n.frozen.set(t,e)}else Ja(this,t,e);return this}})}var Qa=Ft("iterator"),Za=Ft("toStringTag"),tc=ra.values,ec=function(t,e){if(t){if(t[Qa]!==tc)try{ee(t,Qa,tc)}catch(e){t[Qa]=tc}if(t[Za]||ee(t,Za,e),fo[e])for(var n in ra)if(t[n]!==ra[n])try{ee(t,n,ra[n])}catch(e){t[n]=ra[n]}}};for(var nc in fo)ec(N[nc]&&N[nc].prototype,nc);function rc(t){return t.getMenuConfig("uploadVideo")}ec(po,"DOMTokenList");var oc=new WeakMap;function ic(t,e){return x(this,void 0,void 0,(function(){var n,r,o,u;return E(this,(function(a){switch(a.label){case 0:return n=function(t){var e=oc.get(t);if(null!=e)return e;var n=rc(t),r=n.onSuccess,o=n.onProgress,u=n.onFailed,a=n.customInsert,c=n.onError;return e=i(S(S({},n),{onProgress:function(e){t.showProgressBar(e),o&&o(e)},onSuccess:function(e,n){if(a)return a(n,(function(e,n){return Ou(t,e,n)})),void r(e,n);var o=n.errno,i=void 0===o?1:o,c=n.data,s=void 0===c?{}:c;if(0===i){var f=s.url,l=void 0===f?"":f,d=s.poster;Ou(t,l,void 0===d?"":d),r(e,n)}else u(e,n)},onError:function(t,e,n){c(t,e,n)}})),oc.set(t,e),e}(t),r=e.name,o=e.type,u=e.size,n.addFile({name:r,type:o,size:u,data:e}),[4,n.upload()];case 1:return a.sent(),[2]}}))}))}var uc=function(){function t(){this.title=n("videoModule.uploadVideo"),this.iconSvg='<svg viewBox="0 0 1056 1024"><path d="M805.902261 521.819882a251.441452 251.441452 0 0 0-251.011972 246.600033 251.051015 251.051015 0 1 0 502.023944 8.823877 253.237463 253.237463 0 0 0-251.011972-255.42391z m59.463561 240.001647v129.898403h-116.701631v-129.898403h-44.041298l101.279368-103.504859 101.279368 103.504859z" p-id="6802"></path><path d="M788.254507 0.000781H99.094092A98.663439 98.663439 0 0 0 0.001171 99.093701v590.067495a98.663439 98.663439 0 0 0 99.092921 99.092921h411.7549a266.434235 266.434235 0 0 1-2.186448-41.815807 275.843767 275.843767 0 0 1 275.180024-270.729042 270.650955 270.650955 0 0 1 103.504859 19.834201V99.093701A101.51363 101.51363 0 0 0 788.254507 0.000781zM295.054441 640.747004V147.507894l394.146189 246.600033z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.exec=function(t,e){var n=this.getMenuConfig(t),r=n.allowedFileTypes,o=void 0===r?[]:r,i=n.customBrowseAndUpload;if(i)i((function(e,n){return Ou(t,e,n)}));else{var u="";o.length>0&&(u='accept="'+o.join(", ")+'"');var a=f("body"),c=f('<input type="file" '+u+" multiple/>");c.hide(),a.append(c),c.click(),c.on("change",(function(){var e=c[0].files;!function(t,e){var n,r;x(this,void 0,void 0,(function(){var o,i,u,a,c,s;return E(this,(function(f){switch(f.label){case 0:if(null==e)return[2];o=Array.prototype.slice.call(e),i=rc(t).customUpload,f.label=1;case 1:f.trys.push([1,9,10,15]),u=j(o),f.label=2;case 2:return[4,u.next()];case 3:return(a=f.sent()).done?[3,8]:(c=a.value,i?[4,i(c,(function(e,n){return Ou(t,e,n)}))]:[3,5]);case 4:return f.sent(),[3,7];case 5:return[4,ic(t,c)];case 6:f.sent(),f.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return s=f.sent(),n={error:s},[3,15];case 10:return f.trys.push([10,,13,14]),a&&!a.done&&(r=u.return)?[4,r.call(u)]:[3,12];case 11:f.sent(),f.label=12;case 12:return[3,14];case 13:if(n)throw n.error;return[7];case 14:return[7];case 15:return[2]}}))}))}(t,e)}))}},t.prototype.isDisabled=function(t){var n=t.selection;return null==n||(!a.isCollapsed(n)||!!e.getSelectedElems(t).some((function(n){var r=e.getNodeType(n);return"pre"===r||("list-item"===r||!!t.isVoid(n))})))},t.prototype.getMenuConfig=function(t){return t.getMenuConfig("uploadVideo")},t}();function ac(){return wo("w-e-insert-video")}var cc=function(){function t(){this.title=n("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=ac(),this.heightInputId=ac(),this.buttonId=ac()}return t.prototype.getSelectedVideoNode=function(t){return e.getSelectedNodeByType(t,"video")},t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.exec=function(t,e){},t.prototype.isDisabled=function(t){return null==t.selection||null==this.getSelectedVideoNode(t)},t.prototype.getModalPositionNode=function(t){return this.getSelectedVideoNode(t)},t.prototype.getModalContentElem=function(t){var i=this,a=i.widthInputId,c=i.heightInputId,s=i.buttonId,l=I(r(n("videoModule.width"),a,"auto"),2),d=l[0],v=l[1],p=f(v),h=I(r(n("videoModule.height"),c,"auto"),2),y=h[0],g=h[1],m=f(g),b=I(o(s,n("videoModule.ok")),1)[0];if(null==this.$content){var w=f("<div></div>");w.on("click","#"+s,(function(n){n.preventDefault();var r=w.find("#"+a).val().trim(),o=w.find("#"+c).val().trim(),i=function(t){return/^\d+(\.\d+)?%$/.test(t)},s=function(t){return/^\d+(\.\d+)?$/.test(t)},f="auto",l="auto";i(r)?f=r:s(r)&&(f=parseInt(r)+"px"),i(o)?l=o:s(o)&&(l=parseInt(o)+"px");var d=E.style,v=void 0===d?{}:d;t.restoreSelection();var p={style:S(S({},v),{width:f,height:l})};u.setNodes(t,p,{match:function(t){return e.checkNodeType(t,"video")}}),t.hidePanelOrModal()})),this.$content=w}var x=this.$content;x.empty(),x.append(d),x.append(y),x.append(b);var E=this.getSelectedVideoNode(t);if(null==E)return x[0];var O=E.style,j=void 0===O?{}:O,P=j.width,T=void 0===P?"":P,M=j.height,A=void 0===M?"":M;return p.val(T),m.val(A),setTimeout((function(){p.focus()})),x[0]},t}();function sc(){return wo("w-e-edit-video")}var fc=function(){function t(){this.title=n("videoModule.edit"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M864 0a160 160 0 0 1 128 256l-64 64-224-224 64-64c26.752-20.096 59.968-32 96-32zM64 736l-64 288 288-64 592-592-224-224L64 736z m651.584-372.416l-448 448-55.168-55.168 448-448 55.168 55.168z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=sc(),this.posterInputId=sc(),this.buttonId=sc()}return t.prototype.getSelectedVideoNode=function(t){return e.getSelectedNodeByType(t,"video")},t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.exec=function(t,e){},t.prototype.isDisabled=function(t){return null==t.selection||null==this.getSelectedVideoNode(t)},t.prototype.getModalPositionNode=function(t){return this.getSelectedVideoNode(t)},t.prototype.getModalContentElem=function(t){var i=this,a=this,c=a.srcInputId,s=a.posterInputId,l=a.buttonId,d=I(r(n("videoModule.videoSrc"),c,n("videoModule.videoSrcPlaceHolder")),2),v=d[0],p=d[1],h=I(r(n("videoModule.videoPoster"),s,n("videoModule.videoPosterPlaceHolder")),2),y=h[0],g=h[1],m=f(p),b=f(g),w=I(o(l,n("videoModule.ok")),1)[0];if(null==this.$content){var S=f("<div></div>");S.on("click","#"+l,(function(n){return x(i,void 0,void 0,(function(){var r,o,i,a;return E(this,(function(f){return n.preventDefault(),r=S.find("#"+c).val().trim(),o=S.find("#"+s).val().trim(),i=wo("video-"),a={src:r,poster:o,key:i},t.restoreSelection(),u.setNodes(t,a,{match:function(t){return e.checkNodeType(t,"video")}}),t.hidePanelOrModal(),[2]}))}))})),this.$content=S}var O=this.$content;O.empty(),O.append(v),O.append(y),O.append(w);var j=this.getSelectedVideoNode(t);if(null==j)return O[0];var P=j.src,T=void 0===P?"":P,M=j.poster,A=void 0===M?"":M;return m.val(T),b.val(A),setTimeout((function(){m.focus()})),O[0]},t}();var lc={renderElems:[En],elemsToHtml:[In],preParseHtml:[$n],parseElemsHtml:[Eo],menus:[{key:"insertVideo",factory:function(){return new ju},config:{onInsertedVideo:function(t){},checkVideo:function(t,e){return!0},parseVideoSrc:function(t){return t}}},{key:"uploadVideo",factory:function(){return new uc},config:{server:"",fieldName:"wangeditor-uploaded-video",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["video/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(t){return t},onProgress:function(t){},onSuccess:function(t,e){},onFailed:function(t,e){console.error("'"+t.name+"' upload failed",e)},onError:function(t,e,n){console.error("'"+t.name+" upload error",e,n)}}},{key:"editVideoSize",factory:function(){return new cc}},{key:"editVideoSrc",factory:function(){return new fc}}],editorPlugin:function(t){var n=t.isVoid,r=t.normalizeNode,o=t;return o.isVoid=function(t){return"video"===t.type||n(t)},o.normalizeNode=function(t){var n=I(t,2),i=n[0],a=n[1];"video"===e.getNodeType(i)&&(e.isLastNode(o,i)&&u.insertNodes(o,e.genEmptyParagraph(),{at:[a[0]+1]}));return r([i,a])},o}};export{lc as default};
1
+ import{i18nAddResources as t,DomEditor as e,t as n,genModalInputElems as r,genModalButtonElems as o,createUploader as i}from"@wangeditor-next/core";import{Transforms as u,Range as a}from"slate";import{jsx as c,h as s}from"snabbdom";import f,{append as l,on as d,focus as v,attr as p,val as h,html as y,parent as g,hasClass as m,empty as b}from"dom7";import{nanoid as w}from"nanoid";t("en",{videoModule:{delete:"Delete",uploadVideo:"Upload video",insertVideo:"Insert video",videoSrc:"Video source",videoSrcPlaceHolder:"Video file url, or third-party <iframe>",videoPoster:"Video poster",videoPosterPlaceHolder:"Poster image url",ok:"Ok",editSize:"Edit size",edit:"Edit video",width:"Width",height:"Height"}}),t("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",edit:"编辑视频",width:"宽度",height:"高度"}});var S=function(){return S=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},S.apply(this,arguments)};function x(t,e,n,r){return new(n||(n=Promise))((function(o,i){function u(t){try{c(r.next(t))}catch(t){i(t)}}function a(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(u,a)}c((r=r.apply(t,e||[])).next())}))}function E(t,e){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(u=0)),u;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return u.label++,{value:a[1],done:!1};case 5:u.label++,r=a[1],a=[0];continue;case 7:a=u.ops.pop(),u.trys.pop();continue;default:if(!(o=u.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){u=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){u.label=a[1];break}if(6===a[0]&&u.label<o[1]){u.label=o[1],o=a;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(a);break}o[2]&&u.ops.pop(),u.trys.pop();continue}a=e.call(t,u)}catch(t){a=[6,t],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}function O(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function I(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)u.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u}function j(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=O(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,o){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,o,(e=t[n](e)).done,e.value)}))}}}"function"==typeof SuppressedError&&SuppressedError;var P="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function T(t){var e={exports:{}};return t(e,e.exports),e.exports}var M,A,k=function(t){return t&&t.Math==Math&&t},N=k("object"==typeof globalThis&&globalThis)||k("object"==typeof window&&window)||k("object"==typeof self&&self)||k("object"==typeof P&&P)||function(){return this}()||Function("return this")(),R=function(t){try{return!!t()}catch(t){return!0}},V=!R((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),C=Function.prototype.call,L=C.bind?C.bind(C):function(){return C.apply(C,arguments)},z={}.propertyIsEnumerable,F=Object.getOwnPropertyDescriptor,D={f:F&&!z.call({1:2},1)?function(t){var e=F(this,t);return!!e&&e.enumerable}:z},_=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},$=Function.prototype,H=$.bind,B=$.call,G=H&&H.bind(B),W=H?function(t){return t&&G(B,t)}:function(t){return t&&function(){return B.apply(t,arguments)}},U=W({}.toString),K=W("".slice),X=function(t){return K(U(t),8,-1)},Y=N.Object,q=W("".split),J=R((function(){return!Y("z").propertyIsEnumerable(0)}))?function(t){return"String"==X(t)?q(t,""):Y(t)}:Y,Q=N.TypeError,Z=function(t){if(null==t)throw Q("Can't call method on "+t);return t},tt=function(t){return J(Z(t))},et=function(t){return"function"==typeof t},nt=function(t){return"object"==typeof t?null!==t:et(t)},rt=function(t,e){return arguments.length<2?(n=N[t],et(n)?n:void 0):N[t]&&N[t][e];var n},ot=W({}.isPrototypeOf),it=rt("navigator","userAgent")||"",ut=N.process,at=N.Deno,ct=ut&&ut.versions||at&&at.version,st=ct&&ct.v8;st&&(A=(M=st.split("."))[0]>0&&M[0]<4?1:+(M[0]+M[1])),!A&&it&&(!(M=it.match(/Edge\/(\d+)/))||M[1]>=74)&&(M=it.match(/Chrome\/(\d+)/))&&(A=+M[1]);var ft=A,lt=!!Object.getOwnPropertySymbols&&!R((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&ft&&ft<41})),dt=lt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,vt=N.Object,pt=dt?function(t){return"symbol"==typeof t}:function(t){var e=rt("Symbol");return et(e)&&ot(e.prototype,vt(t))},ht=N.String,yt=function(t){try{return ht(t)}catch(t){return"Object"}},gt=N.TypeError,mt=function(t){if(et(t))return t;throw gt(yt(t)+" is not a function")},bt=function(t,e){var n=t[e];return null==n?void 0:mt(n)},wt=N.TypeError,St=Object.defineProperty,xt=function(t,e){try{St(N,t,{value:e,configurable:!0,writable:!0})}catch(n){N[t]=e}return e},Et="__core-js_shared__",Ot=N[Et]||xt(Et,{}),It=T((function(t){(t.exports=function(t,e){return Ot[t]||(Ot[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),jt=N.Object,Pt=function(t){return jt(Z(t))},Tt=W({}.hasOwnProperty),Mt=Object.hasOwn||function(t,e){return Tt(Pt(t),e)},At=0,kt=Math.random(),Nt=W(1..toString),Rt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Nt(++At+kt,36)},Vt=It("wks"),Ct=N.Symbol,Lt=Ct&&Ct.for,zt=dt?Ct:Ct&&Ct.withoutSetter||Rt,Ft=function(t){if(!Mt(Vt,t)||!lt&&"string"!=typeof Vt[t]){var e="Symbol."+t;lt&&Mt(Ct,t)?Vt[t]=Ct[t]:Vt[t]=dt&&Lt?Lt(e):zt(e)}return Vt[t]},Dt=N.TypeError,_t=Ft("toPrimitive"),$t=function(t,e){if(!nt(t)||pt(t))return t;var n,r=bt(t,_t);if(r){if(void 0===e&&(e="default"),n=L(r,t,e),!nt(n)||pt(n))return n;throw Dt("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&et(n=t.toString)&&!nt(r=L(n,t)))return r;if(et(n=t.valueOf)&&!nt(r=L(n,t)))return r;if("string"!==e&&et(n=t.toString)&&!nt(r=L(n,t)))return r;throw wt("Can't convert object to primitive value")}(t,e)},Ht=function(t){var e=$t(t,"string");return pt(e)?e:e+""},Bt=N.document,Gt=nt(Bt)&&nt(Bt.createElement),Wt=function(t){return Gt?Bt.createElement(t):{}},Ut=!V&&!R((function(){return 7!=Object.defineProperty(Wt("div"),"a",{get:function(){return 7}}).a})),Kt=Object.getOwnPropertyDescriptor,Xt={f:V?Kt:function(t,e){if(t=tt(t),e=Ht(e),Ut)try{return Kt(t,e)}catch(t){}if(Mt(t,e))return _(!L(D.f,t,e),t[e])}},Yt=N.String,qt=N.TypeError,Jt=function(t){if(nt(t))return t;throw qt(Yt(t)+" is not an object")},Qt=N.TypeError,Zt=Object.defineProperty,te={f:V?Zt:function(t,e,n){if(Jt(t),e=Ht(e),Jt(n),Ut)try{return Zt(t,e,n)}catch(t){}if("get"in n||"set"in n)throw Qt("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},ee=V?function(t,e,n){return te.f(t,e,_(1,n))}:function(t,e,n){return t[e]=n,t},ne=W(Function.toString);et(Ot.inspectSource)||(Ot.inspectSource=function(t){return ne(t)});var re,oe,ie,ue=Ot.inspectSource,ae=N.WeakMap,ce=et(ae)&&/native code/.test(ue(ae)),se=It("keys"),fe=function(t){return se[t]||(se[t]=Rt(t))},le={},de="Object already initialized",ve=N.TypeError,pe=N.WeakMap;if(ce||Ot.state){var he=Ot.state||(Ot.state=new pe),ye=W(he.get),ge=W(he.has),me=W(he.set);re=function(t,e){if(ge(he,t))throw new ve(de);return e.facade=t,me(he,t,e),e},oe=function(t){return ye(he,t)||{}},ie=function(t){return ge(he,t)}}else{var be=fe("state");le[be]=!0,re=function(t,e){if(Mt(t,be))throw new ve(de);return e.facade=t,ee(t,be,e),e},oe=function(t){return Mt(t,be)?t[be]:{}},ie=function(t){return Mt(t,be)}}var we={set:re,get:oe,has:ie,enforce:function(t){return ie(t)?oe(t):re(t,{})},getterFor:function(t){return function(e){var n;if(!nt(e)||(n=oe(e)).type!==t)throw ve("Incompatible receiver, "+t+" required");return n}}},Se=Function.prototype,xe=V&&Object.getOwnPropertyDescriptor,Ee=Mt(Se,"name"),Oe={EXISTS:Ee,PROPER:Ee&&"something"===function(){}.name,CONFIGURABLE:Ee&&(!V||V&&xe(Se,"name").configurable)},Ie=T((function(t){var e=Oe.CONFIGURABLE,n=we.get,r=we.enforce,o=String(String).split("String");(t.exports=function(t,n,i,u){var a,c=!!u&&!!u.unsafe,s=!!u&&!!u.enumerable,f=!!u&&!!u.noTargetGet,l=u&&void 0!==u.name?u.name:n;et(i)&&("Symbol("===String(l).slice(0,7)&&(l="["+String(l).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Mt(i,"name")||e&&i.name!==l)&&ee(i,"name",l),(a=r(i)).source||(a.source=o.join("string"==typeof l?l:""))),t!==N?(c?!f&&t[n]&&(s=!0):delete t[n],s?t[n]=i:ee(t,n,i)):s?t[n]=i:xt(n,i)})(Function.prototype,"toString",(function(){return et(this)&&n(this).source||ue(this)}))})),je=Math.ceil,Pe=Math.floor,Te=function(t){var e=+t;return e!=e||0===e?0:(e>0?Pe:je)(e)},Me=Math.max,Ae=Math.min,ke=function(t,e){var n=Te(t);return n<0?Me(n+e,0):Ae(n,e)},Ne=Math.min,Re=function(t){return t>0?Ne(Te(t),9007199254740991):0},Ve=function(t){return Re(t.length)},Ce=function(t){return function(e,n,r){var o,i=tt(e),u=Ve(i),a=ke(r,u);if(t&&n!=n){for(;u>a;)if((o=i[a++])!=o)return!0}else for(;u>a;a++)if((t||a in i)&&i[a]===n)return t||a||0;return!t&&-1}},Le={includes:Ce(!0),indexOf:Ce(!1)},ze=Le.indexOf,Fe=W([].push),De=function(t,e){var n,r=tt(t),o=0,i=[];for(n in r)!Mt(le,n)&&Mt(r,n)&&Fe(i,n);for(;e.length>o;)Mt(r,n=e[o++])&&(~ze(i,n)||Fe(i,n));return i},_e=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],$e=_e.concat("length","prototype"),He={f:Object.getOwnPropertyNames||function(t){return De(t,$e)}},Be={f:Object.getOwnPropertySymbols},Ge=W([].concat),We=rt("Reflect","ownKeys")||function(t){var e=He.f(Jt(t)),n=Be.f;return n?Ge(e,n(t)):e},Ue=function(t,e){for(var n=We(e),r=te.f,o=Xt.f,i=0;i<n.length;i++){var u=n[i];Mt(t,u)||r(t,u,o(e,u))}},Ke=/#|\.prototype\./,Xe=function(t,e){var n=qe[Ye(t)];return n==Qe||n!=Je&&(et(e)?R(e):!!e)},Ye=Xe.normalize=function(t){return String(t).replace(Ke,".").toLowerCase()},qe=Xe.data={},Je=Xe.NATIVE="N",Qe=Xe.POLYFILL="P",Ze=Xe,tn=Xt.f,en=function(t,e){var n,r,o,i,u,a=t.target,c=t.global,s=t.stat;if(n=c?N:s?N[a]||xt(a,{}):(N[a]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(u=tn(n,r))&&u.value:n[r],!Ze(c?r:a+(s?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Ue(i,o)}(t.sham||o&&o.sham)&&ee(i,"sham",!0),Ie(n,r,i,t)}},nn={};nn[Ft("toStringTag")]="z";var rn,on="[object z]"===String(nn),un=Ft("toStringTag"),an=N.Object,cn="Arguments"==X(function(){return arguments}()),sn=on?X:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=an(t),un))?n:cn?X(e):"Object"==(r=X(e))&&et(e.callee)?"Arguments":r},fn=N.String,ln=function(t){if("Symbol"===sn(t))throw TypeError("Cannot convert a Symbol value to a string");return fn(t)},dn="\t\n\v\f\r                 \u2028\u2029\ufeff",vn=W("".replace),pn="["+dn+"]",hn=RegExp("^"+pn+pn+"*"),yn=RegExp(pn+pn+"*$"),gn=function(t){return function(e){var n=ln(Z(e));return 1&t&&(n=vn(n,hn,"")),2&t&&(n=vn(n,yn,"")),n}},mn={start:gn(1),end:gn(2),trim:gn(3)},bn=Oe.PROPER,wn=mn.trim;function Sn(t){return t.length?t[0].tagName.toLowerCase():""}function xn(t,e,n,r){void 0===e&&(e="auto"),void 0===n&&(n="auto"),void 0===r&&(r={});var o=f(t),i=r.width,u=void 0===i?"":i,a=r.height,c=void 0===a?"":a,s="";return u&&(s+="width: "+u+";"),c&&(s+="height: "+c+";"),o.attr("width",e),o.attr("height",n),o.attr("style",s),o[0].outerHTML}en({target:"String",proto:!0,forced:(rn="trim",R((function(){return!!dn[rn]()||"​…᠎"!=="​…᠎"[rn]()||bn&&dn[rn].name!==rn})))},{trim:function(){return wn(this)}}),en({global:!0},{globalThis:N}),l&&(f.fn.append=l),d&&(f.fn.on=d),v&&(f.fn.focus=v),p&&(f.fn.attr=p),h&&(f.fn.val=h),y&&(f.fn.html=y),g&&(f.fn.parent=g),m&&(f.fn.hasClass=m),b&&(f.fn.empty=b);var En={type:"video",renderElem:function(t,n,r){var o,i=t,u=i.src,a=void 0===u?"":u,f=i.poster,l=void 0===f?"":f,d=i.key,v=void 0===d?"":d,p=i.width,h=void 0===p?"auto":p,y=i.height,g=void 0===y?"auto":y,m=i.style,b=void 0===m?{}:m,w=i.textAlign,S=void 0===w?"center":w,x=e.isNodeSelected(r,t);if(0===a.trim().indexOf("<iframe ")){var E=xn(a,h,g,b);o=c("div",{className:"w-e-textarea-video-container","data-selected":x?"true":"",style:{textAlign:S},innerHTML:E})}else{var O=c("video",{key:v,poster:l,controls:!0,style:b},c("source",{src:a,type:"video/mp4"}),"Sorry, your browser doesn't support embedded videos.\n 抱歉,浏览器不支持 video 视频");"auto"!==h&&(O.data.width=h),"auto"!==g&&(O.data.height=g),o=c("div",{className:"w-e-textarea-video-container","data-selected":x?"true":"",style:{textAlign:S}},O)}return s("div",{props:{contentEditable:!1},on:{mousedown:function(t){return t.preventDefault()}}},o)}};var On,In={type:"video",elemToHtml:function(t,e){var n=t,r=n.src,o=void 0===r?"":r,i=n.poster,u=void 0===i?"":i,a=n.width,c=void 0===a?"auto":a,s=n.height,f=void 0===s?"auto":s,l=n.style,d=void 0===l?{}:l,v=n.textAlign,p='<div data-w-e-type="video" data-w-e-is-void style="text-align: '+(void 0===v?"center":v)+';">\n';if(0===o.trim().indexOf("<iframe ")){p+=xn(o,c,f,d)}else{var h=d.width,y=void 0===h?"":h,g=d.height,m=void 0===g?"":g,b="";y&&(b+="width: "+y+";"),m&&(b+="height: "+m+";"),p+='<video poster="'+u+'" controls="true" width="'+c+'" height="'+f+'" style="'+b+'"><source src="'+o+'" type="video/mp4"/></video>'}return p+="\n</div>"}},jn=Object.keys||function(t){return De(t,_e)},Pn=V?Object.defineProperties:function(t,e){Jt(t);for(var n,r=tt(e),o=jn(e),i=o.length,u=0;i>u;)te.f(t,n=o[u++],r[n]);return t},Tn=rt("document","documentElement"),Mn="prototype",An="script",kn=fe("IE_PROTO"),Nn=function(){},Rn=function(t){return"<"+An+">"+t+"</"+An+">"},Vn=function(t){t.write(Rn("")),t.close();var e=t.parentWindow.Object;return t=null,e},Cn=function(){try{On=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;Cn="undefined"!=typeof document?document.domain&&On?Vn(On):(e=Wt("iframe"),n="java"+An+":",e.style.display="none",Tn.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(Rn("document.F=Object")),t.close(),t.F):Vn(On);for(var r=_e.length;r--;)delete Cn[Mn][_e[r]];return Cn()};le[kn]=!0;var Ln=Object.create||function(t,e){var n;return null!==t?(Nn[Mn]=Jt(t),n=new Nn,Nn[Mn]=null,n[kn]=t):n=Cn(),void 0===e?n:Pn(n,e)},zn=Ft("unscopables"),Fn=Array.prototype;null==Fn[zn]&&te.f(Fn,zn,{configurable:!0,value:Ln(null)});var Dn=function(t){Fn[zn][t]=!0},_n=Le.includes;en({target:"Array",proto:!0},{includes:function(t){return _n(this,t,arguments.length>1?arguments[1]:void 0)}}),Dn("includes");var $n={selector:"iframe,video,p",preParseHtml:function(t){var e=f(t),n=e;if("p"===Sn(e)){var r=e.children();if(1===r.length){var o=r[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(n=f(o))}}var u=Sn(n);if("iframe"!==u&&"video"!==u)return n[0];if("video"===n.parent().attr("data-w-e-type"))return n[0];var a=f('<div data-w-e-type="video" data-w-e-is-void style="text-align: center;"></div>');return a.append(n),a[0]}},Hn=W(W.bind),Bn=function(t,e){return mt(t),void 0===e?t:Hn?Hn(t,e):function(){return t.apply(e,arguments)}},Gn=Array.isArray||function(t){return"Array"==X(t)},Wn=function(){},Un=[],Kn=rt("Reflect","construct"),Xn=/^\s*(?:class|function)\b/,Yn=W(Xn.exec),qn=!Xn.exec(Wn),Jn=function(t){if(!et(t))return!1;try{return Kn(Wn,Un,t),!0}catch(t){return!1}},Qn=!Kn||R((function(){var t;return Jn(Jn.call)||!Jn(Object)||!Jn((function(){t=!0}))||t}))?function(t){if(!et(t))return!1;switch(sn(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return qn||!!Yn(Xn,ue(t))}:Jn,Zn=Ft("species"),tr=N.Array,er=function(t,e){return new(function(t){var e;return Gn(t)&&(e=t.constructor,(Qn(e)&&(e===tr||Gn(e.prototype))||nt(e)&&null===(e=e[Zn]))&&(e=void 0)),void 0===e?tr:e}(t))(0===e?0:e)},nr=W([].push),rr=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,u=7==t,a=5==t||i;return function(c,s,f,l){for(var d,v,p=Pt(c),h=J(p),y=Bn(s,f),g=Ve(h),m=0,b=l||er,w=e?b(c,g):n||u?b(c,0):void 0;g>m;m++)if((a||m in h)&&(v=y(d=h[m],m,p),t))if(e)w[m]=v;else if(v)switch(t){case 3:return!0;case 5:return d;case 6:return m;case 2:nr(w,d)}else switch(t){case 4:return!1;case 7:nr(w,d)}return i?-1:r||o?o:w}},or={forEach:rr(0),map:rr(1),filter:rr(2),some:rr(3),every:rr(4),find:rr(5),findIndex:rr(6),filterReject:rr(7)},ir=or.find,ur="find",ar=!0;ur in[]&&Array(1)[ur]((function(){ar=!1})),en({target:"Array",proto:!0,forced:ar},{find:function(t){return ir(this,t,arguments.length>1?arguments[1]:void 0)}}),Dn(ur);var cr=on?{}.toString:function(){return"[object "+sn(this)+"]"};on||Ie(Object.prototype,"toString",cr,{unsafe:!0});var sr,fr,lr=function(){var t=Jt(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},dr=N.RegExp,vr=R((function(){var t=dr("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),pr=vr||R((function(){return!dr("a","y").sticky})),hr={BROKEN_CARET:vr||R((function(){var t=dr("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:pr,UNSUPPORTED_Y:vr},yr=N.RegExp,gr=R((function(){var t=yr(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),mr=N.RegExp,br=R((function(){var t=mr("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),wr=we.get,Sr=It("native-string-replace",String.prototype.replace),xr=RegExp.prototype.exec,Er=xr,Or=W("".charAt),Ir=W("".indexOf),jr=W("".replace),Pr=W("".slice),Tr=(fr=/b*/g,L(xr,sr=/a/,"a"),L(xr,fr,"a"),0!==sr.lastIndex||0!==fr.lastIndex),Mr=hr.BROKEN_CARET,Ar=void 0!==/()??/.exec("")[1];(Tr||Ar||Mr||gr||br)&&(Er=function(t){var e,n,r,o,i,u,a,c=this,s=wr(c),f=ln(t),l=s.raw;if(l)return l.lastIndex=c.lastIndex,e=L(Er,l,f),c.lastIndex=l.lastIndex,e;var d=s.groups,v=Mr&&c.sticky,p=L(lr,c),h=c.source,y=0,g=f;if(v&&(p=jr(p,"y",""),-1===Ir(p,"g")&&(p+="g"),g=Pr(f,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==Or(f,c.lastIndex-1))&&(h="(?: "+h+")",g=" "+g,y++),n=new RegExp("^(?:"+h+")",p)),Ar&&(n=new RegExp("^"+h+"$(?!\\s)",p)),Tr&&(r=c.lastIndex),o=L(xr,v?n:c,g),v?o?(o.input=Pr(o.input,y),o[0]=Pr(o[0],y),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:Tr&&o&&(c.lastIndex=c.global?o.index+o[0].length:r),Ar&&o&&o.length>1&&L(Sr,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=u=Ln(null),i=0;i<d.length;i++)u[(a=d[i])[0]]=o[a[1]];return o});var kr=Er;en({target:"RegExp",proto:!0,forced:/./.exec!==kr},{exec:kr});var Nr=Function.prototype,Rr=Nr.apply,Vr=Nr.bind,Cr=Nr.call,Lr="object"==typeof Reflect&&Reflect.apply||(Vr?Cr.bind(Rr):function(){return Cr.apply(Rr,arguments)}),zr=Ft("species"),Fr=RegExp.prototype,Dr=W("".charAt),_r=W("".charCodeAt),$r=W("".slice),Hr=function(t){return function(e,n){var r,o,i=ln(Z(e)),u=Te(n),a=i.length;return u<0||u>=a?t?"":void 0:(r=_r(i,u))<55296||r>56319||u+1===a||(o=_r(i,u+1))<56320||o>57343?t?Dr(i,u):r:t?$r(i,u,u+2):o-56320+(r-55296<<10)+65536}},Br={codeAt:Hr(!1),charAt:Hr(!0)},Gr=Br.charAt,Wr=function(t,e,n){return e+(n?Gr(t,e).length:1)},Ur=Math.floor,Kr=W("".charAt),Xr=W("".replace),Yr=W("".slice),qr=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Jr=/\$([$&'`]|\d{1,2})/g,Qr=function(t,e,n,r,o,i){var u=n+t.length,a=r.length,c=Jr;return void 0!==o&&(o=Pt(o),c=qr),Xr(i,c,(function(i,c){var s;switch(Kr(c,0)){case"$":return"$";case"&":return t;case"`":return Yr(e,0,n);case"'":return Yr(e,u);case"<":s=o[Yr(c,1,-1)];break;default:var f=+c;if(0===f)return i;if(f>a){var l=Ur(f/10);return 0===l?i:l<=a?void 0===r[l-1]?Kr(c,1):r[l-1]+Kr(c,1):i}s=r[f-1]}return void 0===s?"":s}))},Zr=N.TypeError,to=function(t,e){var n=t.exec;if(et(n)){var r=L(n,t,e);return null!==r&&Jt(r),r}if("RegExp"===X(t))return L(kr,t,e);throw Zr("RegExp#exec called on incompatible receiver")},eo=Ft("replace"),no=Math.max,ro=Math.min,oo=W([].concat),io=W([].push),uo=W("".indexOf),ao=W("".slice),co="$0"==="a".replace(/./,"$0"),so=!!/./[eo]&&""===/./[eo]("a","$0");!function(t,e,n,r){var o=Ft(t),i=!R((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),u=i&&!R((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[zr]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return e=!0,null},n[o](""),!e}));if(!i||!u||n){var a=W(/./[o]),c=e(o,""[t],(function(t,e,n,r,o){var u=W(t),c=e.exec;return c===kr||c===Fr.exec?i&&!o?{done:!0,value:a(e,n,r)}:{done:!0,value:u(n,e,r)}:{done:!1}}));Ie(String.prototype,t,c[0]),Ie(Fr,o,c[1])}r&&ee(Fr[o],"sham",!0)}("replace",(function(t,e,n){var r=so?"$":"$0";return[function(t,n){var r=Z(this),o=null==t?void 0:bt(t,eo);return o?L(o,t,r,n):L(e,ln(r),t,n)},function(t,o){var i=Jt(this),u=ln(t);if("string"==typeof o&&-1===uo(o,r)&&-1===uo(o,"$<")){var a=n(e,i,u,o);if(a.done)return a.value}var c=et(o);c||(o=ln(o));var s=i.global;if(s){var f=i.unicode;i.lastIndex=0}for(var l=[];;){var d=to(i,u);if(null===d)break;if(io(l,d),!s)break;""===ln(d[0])&&(i.lastIndex=Wr(u,Re(i.lastIndex),f))}for(var v,p="",h=0,y=0;y<l.length;y++){for(var g=ln((d=l[y])[0]),m=no(ro(Te(d.index),u.length),0),b=[],w=1;w<d.length;w++)io(b,void 0===(v=d[w])?v:String(v));var S=d.groups;if(c){var x=oo([g],b,m,u);void 0!==S&&io(x,S);var E=ln(Lr(o,void 0,x))}else E=Qr(g,u,m,b,S,o);m>=h&&(p+=ao(u,h,m)+E,h=m+g.length)}return p+ao(u,h)}]}),!!R((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!co||so);var fo={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},lo=Wt("span").classList,vo=lo&&lo.constructor&&lo.constructor.prototype,po=vo===Object.prototype?void 0:vo,ho=function(t,e){var n=[][t];return!!n&&R((function(){n.call(null,e||function(){throw 1},1)}))},yo=or.forEach,go=ho("forEach")?[].forEach:function(t){return yo(this,t,arguments.length>1?arguments[1]:void 0)},mo=function(t){if(t&&t.forEach!==go)try{ee(t,"forEach",go)}catch(e){t.forEach=go}};for(var bo in fo)fo[bo]&&mo(N[bo]&&N[bo].prototype);function wo(t){return void 0===t&&(t="r"),t+"-"+w()}function So(t){var e={};return t.trim().split(";").forEach((function(t){if(t){var n=I(t.split(":"),2),r=n[0],o=n[1];r&&o&&(e[r.trim()]=o.trim())}})),e}function xo(t,e,n,r,o){return void 0===e&&(e=""),void 0===n&&(n="auto"),void 0===r&&(r="auto"),void 0===o&&(o={}),{type:"video",src:t,poster:e,width:n,height:r,style:o,children:[{text:""}]}}mo(po);var Eo={selector:'div[data-w-e-type="video"]',parseElemHtml:function(t,e,n){var r=f(t),o="",i="",u="auto",a="auto",c={},s=r.find("iframe");if(s.length>0)return u=s.attr("width")||"auto",a=s.attr("height")||"auto",c=So(c=s.attr("style")||""),xo(o=s[0].outerHTML,i,u,a,c);var l=r.find("video");return(o=l.attr("src")||"")||l.length>0&&(o=l.find("source").attr("src")||""),u=l.attr("width")||"auto",a=l.attr("height")||"auto",xo(o,i=l.attr("poster")||"",u,a,c=So(c=l.attr("style")||""))}},Oo=N.Promise,Io=function(t,e,n){for(var r in e)Ie(t,r,e[r],n);return t},jo=N.String,Po=N.TypeError,To=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=W(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return Jt(n),function(t){if("object"==typeof t||et(t))return t;throw Po("Can't set "+jo(t)+" as a prototype")}(r),e?t(n,r):n.__proto__=r,n}}():void 0),Mo=te.f,Ao=Ft("toStringTag"),ko=function(t,e,n){t&&!Mt(t=n?t:t.prototype,Ao)&&Mo(t,Ao,{configurable:!0,value:e})},No=Ft("species"),Ro=N.TypeError,Vo=function(t,e){if(ot(e,t))return t;throw Ro("Incorrect invocation")},Co={},Lo=Ft("iterator"),zo=Array.prototype,Fo=Ft("iterator"),Do=function(t){if(null!=t)return bt(t,Fo)||bt(t,"@@iterator")||Co[sn(t)]},_o=N.TypeError,$o=function(t,e,n){var r,o;Jt(t);try{if(!(r=bt(t,"return"))){if("throw"===e)throw n;return n}r=L(r,t)}catch(t){o=!0,r=t}if("throw"===e)throw n;if(o)throw r;return Jt(r),n},Ho=N.TypeError,Bo=function(t,e){this.stopped=t,this.result=e},Go=Bo.prototype,Wo=function(t,e,n){var r,o,i,u,a,c,s,f,l=n&&n.that,d=!(!n||!n.AS_ENTRIES),v=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),h=Bn(e,l),y=function(t){return r&&$o(r,"normal",t),new Bo(!0,t)},g=function(t){return d?(Jt(t),p?h(t[0],t[1],y):h(t[0],t[1])):p?h(t,y):h(t)};if(v)r=t;else{if(!(o=Do(t)))throw Ho(yt(t)+" is not iterable");if(void 0!==(f=o)&&(Co.Array===f||zo[Lo]===f)){for(i=0,u=Ve(t);u>i;i++)if((a=g(t[i]))&&ot(Go,a))return a;return new Bo(!1)}r=function(t,e){var n=arguments.length<2?Do(t):e;if(mt(n))return Jt(L(n,t));throw _o(yt(t)+" is not iterable")}(t,o)}for(c=r.next;!(s=L(c,r)).done;){try{a=g(s.value)}catch(t){$o(r,"throw",t)}if("object"==typeof a&&a&&ot(Go,a))return a}return new Bo(!1)},Uo=Ft("iterator"),Ko=!1;try{var Xo=0,Yo={next:function(){return{done:!!Xo++}},return:function(){Ko=!0}};Yo[Uo]=function(){return this},Array.from(Yo,(function(){throw 2}))}catch(t){}var qo,Jo,Qo,Zo,ti=function(t,e){if(!e&&!Ko)return!1;var n=!1;try{var r={};r[Uo]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n},ei=N.TypeError,ni=Ft("species"),ri=function(t,e){var n,r=Jt(t).constructor;return void 0===r||null==(n=Jt(r)[ni])?e:function(t){if(Qn(t))return t;throw ei(yt(t)+" is not a constructor")}(n)},oi=W([].slice),ii=/(?:ipad|iphone|ipod).*applewebkit/i.test(it),ui="process"==X(N.process),ai=N.setImmediate,ci=N.clearImmediate,si=N.process,fi=N.Dispatch,li=N.Function,di=N.MessageChannel,vi=N.String,pi=0,hi={},yi="onreadystatechange";try{qo=N.location}catch(t){}var gi=function(t){if(Mt(hi,t)){var e=hi[t];delete hi[t],e()}},mi=function(t){return function(){gi(t)}},bi=function(t){gi(t.data)},wi=function(t){N.postMessage(vi(t),qo.protocol+"//"+qo.host)};ai&&ci||(ai=function(t){var e=oi(arguments,1);return hi[++pi]=function(){Lr(et(t)?t:li(t),void 0,e)},Jo(pi),pi},ci=function(t){delete hi[t]},ui?Jo=function(t){si.nextTick(mi(t))}:fi&&fi.now?Jo=function(t){fi.now(mi(t))}:di&&!ii?(Zo=(Qo=new di).port2,Qo.port1.onmessage=bi,Jo=Bn(Zo.postMessage,Zo)):N.addEventListener&&et(N.postMessage)&&!N.importScripts&&qo&&"file:"!==qo.protocol&&!R(wi)?(Jo=wi,N.addEventListener("message",bi,!1)):Jo=yi in Wt("script")?function(t){Tn.appendChild(Wt("script"))[yi]=function(){Tn.removeChild(this),gi(t)}}:function(t){setTimeout(mi(t),0)});var Si,xi,Ei,Oi,Ii,ji,Pi,Ti,Mi={set:ai,clear:ci},Ai=/ipad|iphone|ipod/i.test(it)&&void 0!==N.Pebble,ki=/web0s(?!.*chrome)/i.test(it),Ni=Xt.f,Ri=Mi.set,Vi=N.MutationObserver||N.WebKitMutationObserver,Ci=N.document,Li=N.process,zi=N.Promise,Fi=Ni(N,"queueMicrotask"),Di=Fi&&Fi.value;Di||(Si=function(){var t,e;for(ui&&(t=Li.domain)&&t.exit();xi;){e=xi.fn,xi=xi.next;try{e()}catch(t){throw xi?Oi():Ei=void 0,t}}Ei=void 0,t&&t.enter()},ii||ui||ki||!Vi||!Ci?!Ai&&zi&&zi.resolve?((Pi=zi.resolve(void 0)).constructor=zi,Ti=Bn(Pi.then,Pi),Oi=function(){Ti(Si)}):ui?Oi=function(){Li.nextTick(Si)}:(Ri=Bn(Ri,N),Oi=function(){Ri(Si)}):(Ii=!0,ji=Ci.createTextNode(""),new Vi(Si).observe(ji,{characterData:!0}),Oi=function(){ji.data=Ii=!Ii}));var _i,$i,Hi,Bi,Gi=Di||function(t){var e={fn:t,next:void 0};Ei&&(Ei.next=e),xi||(xi=e,Oi()),Ei=e},Wi=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=mt(e),this.reject=mt(n)},Ui={f:function(t){return new Wi(t)}},Ki=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Xi="object"==typeof window,Yi=Mi.set,qi=Ft("species"),Ji="Promise",Qi=we.getterFor(Ji),Zi=we.set,tu=we.getterFor(Ji),eu=Oo&&Oo.prototype,nu=Oo,ru=eu,ou=N.TypeError,iu=N.document,uu=N.process,au=Ui.f,cu=au,su=!!(iu&&iu.createEvent&&N.dispatchEvent),fu=et(N.PromiseRejectionEvent),lu="unhandledrejection",du=!1,vu=Ze(Ji,(function(){var t=ue(nu),e=t!==String(nu);if(!e&&66===ft)return!0;if(ft>=51&&/native code/.test(t))return!1;var n=new nu((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};return(n.constructor={})[qi]=r,!(du=n.then((function(){}))instanceof r)||!e&&Xi&&!fu})),pu=vu||!ti((function(t){nu.all(t).catch((function(){}))})),hu=function(t){var e;return!(!nt(t)||!et(e=t.then))&&e},yu=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;Gi((function(){for(var r=t.value,o=1==t.state,i=0;n.length>i;){var u,a,c,s=n[i++],f=o?s.ok:s.fail,l=s.resolve,d=s.reject,v=s.domain;try{f?(o||(2===t.rejection&&wu(t),t.rejection=1),!0===f?u=r:(v&&v.enter(),u=f(r),v&&(v.exit(),c=!0)),u===s.promise?d(ou("Promise-chain cycle")):(a=hu(u))?L(a,u,l,d):l(u)):d(r)}catch(t){v&&!c&&v.exit(),d(t)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&mu(t)}))}},gu=function(t,e,n){var r,o;su?((r=iu.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),N.dispatchEvent(r)):r={promise:e,reason:n},!fu&&(o=N["on"+t])?o(r):t===lu&&function(t,e){var n=N.console;n&&n.error&&(1==arguments.length?n.error(t):n.error(t,e))}("Unhandled promise rejection",n)},mu=function(t){L(Yi,N,(function(){var e,n=t.facade,r=t.value;if(bu(t)&&(e=Ki((function(){ui?uu.emit("unhandledRejection",r,n):gu(lu,n,r)})),t.rejection=ui||bu(t)?2:1,e.error))throw e.value}))},bu=function(t){return 1!==t.rejection&&!t.parent},wu=function(t){L(Yi,N,(function(){var e=t.facade;ui?uu.emit("rejectionHandled",e):gu("rejectionhandled",e,t.value)}))},Su=function(t,e,n){return function(r){t(e,r,n)}},xu=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,yu(t,!0))},Eu=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw ou("Promise can't be resolved itself");var r=hu(e);r?Gi((function(){var n={done:!1};try{L(r,e,Su(Eu,n,t),Su(xu,n,t))}catch(e){xu(n,e,t)}})):(t.value=e,t.state=1,yu(t,!1))}catch(e){xu({done:!1},e,t)}}};if(vu&&(ru=(nu=function(t){Vo(this,ru),mt(t),L(_i,this);var e=Qi(this);try{t(Su(Eu,e),Su(xu,e))}catch(t){xu(e,t)}}).prototype,(_i=function(t){Zi(this,{type:Ji,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Io(ru,{then:function(t,e){var n=tu(this),r=n.reactions,o=au(ri(this,nu));return o.ok=!et(t)||t,o.fail=et(e)&&e,o.domain=ui?uu.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&yu(n,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),$i=function(){var t=new _i,e=Qi(t);this.promise=t,this.resolve=Su(Eu,e),this.reject=Su(xu,e)},Ui.f=au=function(t){return t===nu||t===Hi?new $i(t):cu(t)},et(Oo)&&eu!==Object.prototype)){Bi=eu.then,du||(Ie(eu,"then",(function(t,e){var n=this;return new nu((function(t,e){L(Bi,n,t,e)})).then(t,e)}),{unsafe:!0}),Ie(eu,"catch",ru.catch,{unsafe:!0}));try{delete eu.constructor}catch(t){}To&&To(eu,ru)}function Ou(t,n,r,o,i){return void 0===r&&(r=""),void 0===o&&(o=""),void 0===i&&(i=""),x(this,void 0,void 0,(function(){var a,c,s,f,l,d,v;return E(this,(function(p){switch(p.label){case 0:return n?(t.restoreSelection(),a=t.getMenuConfig("insertVideo"),c=a.onInsertedVideo,s=a.checkVideo,f=a.parseVideoSrc,[4,s(n,r)]):[2];case 1:return"string"==typeof(l=p.sent())?(t.alert(l,"error"),[2]):null==l?[2]:[4,f(n)];case 2:return 0!==(d=p.sent()).trim().indexOf("<iframe ")&&(d=d.replace(/</g,"&lt;").replace(/>/g,"&gt;")),v={type:"video",src:d,poster:r,children:[{text:""}],style:{width:o,height:i}},Promise.resolve().then((function(){e.isSelectedEmptyParagraph(t)&&u.removeNodes(t,{mode:"highest"}),u.insertNodes(t,v,{mode:"highest"})})),c(v),[2]}}))}))}function Iu(){return wo("w-e-insert-video")}en({global:!0,wrap:!0,forced:vu},{Promise:nu}),ko(nu,Ji,!1),function(t){var e=rt(t),n=te.f;V&&e&&!e[No]&&n(e,No,{configurable:!0,get:function(){return this}})}(Ji),Hi=rt(Ji),en({target:Ji,stat:!0,forced:vu},{reject:function(t){var e=au(this);return L(e.reject,void 0,t),e.promise}}),en({target:Ji,stat:!0,forced:vu},{resolve:function(t){return function(t,e){if(Jt(t),nt(e)&&e.constructor===t)return e;var n=Ui.f(t);return(0,n.resolve)(e),n.promise}(this,t)}}),en({target:Ji,stat:!0,forced:pu},{all:function(t){var e=this,n=au(e),r=n.resolve,o=n.reject,i=Ki((function(){var n=mt(e.resolve),i=[],u=0,a=1;Wo(t,(function(t){var c=u++,s=!1;a++,L(n,e,t).then((function(t){s||(s=!0,i[c]=t,--a||r(i))}),o)})),--a||r(i)}));return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=au(e),r=n.reject,o=Ki((function(){var o=mt(e.resolve);Wo(t,(function(t){L(o,e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var ju=function(){function t(){this.title=n("videoModule.insertVideo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.srcInputId=Iu(),this.posterInputId=Iu(),this.buttonId=Iu()}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.exec=function(t,e){},t.prototype.isDisabled=function(t){var n=t.selection;return null==n||(!a.isCollapsed(n)||!!e.getSelectedElems(t).some((function(n){var r=e.getNodeType(n);return"pre"===r||("list-item"===r||!!t.isVoid(n))})))},t.prototype.getModalPositionNode=function(t){return null},t.prototype.getModalContentElem=function(t){var e=this,i=this,u=i.srcInputId,a=i.posterInputId,c=i.buttonId,s=I(r(n("videoModule.videoSrc"),u,n("videoModule.videoSrcPlaceHolder")),2),l=s[0],d=s[1],v=I(r(n("videoModule.videoPoster"),a,n("videoModule.videoPosterPlaceHolder")),2),p=v[0],h=v[1],y=f(d),g=f(h),m=I(o(c,n("videoModule.ok")),1)[0];if(null==this.$content){var b=f("<div></div>");b.on("click","#"+c,(function(n){return x(e,void 0,void 0,(function(){var e,r;return E(this,(function(o){switch(o.label){case 0:return n.preventDefault(),e=b.find("#"+u).val().trim(),r=b.find("#"+a).val().trim(),[4,Ou(t,e,r)];case 1:return o.sent(),t.hidePanelOrModal(),[2]}}))}))})),this.$content=b}var w=this.$content;return w.empty(),w.append(l),w.append(p),w.append(m),y.val(""),g.val(""),setTimeout((function(){y.focus()})),w[0]},t}(),Pu=W([].join),Tu=J!=Object,Mu=ho("join",",");en({target:"Array",proto:!0,forced:Tu||!Mu},{join:function(t){return Pu(tt(this),void 0===t?",":t)}});var Au,ku,Nu,Ru=!R((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Vu=fe("IE_PROTO"),Cu=N.Object,Lu=Cu.prototype,zu=Ru?Cu.getPrototypeOf:function(t){var e=Pt(t);if(Mt(e,Vu))return e[Vu];var n=e.constructor;return et(n)&&e instanceof n?n.prototype:e instanceof Cu?Lu:null},Fu=Ft("iterator"),Du=!1;[].keys&&("next"in(Nu=[].keys())?(ku=zu(zu(Nu)))!==Object.prototype&&(Au=ku):Du=!0);var _u=null==Au||R((function(){var t={};return Au[Fu].call(t)!==t}));_u&&(Au={}),et(Au[Fu])||Ie(Au,Fu,(function(){return this}));var $u={IteratorPrototype:Au,BUGGY_SAFARI_ITERATORS:Du},Hu=$u.IteratorPrototype,Bu=function(){return this},Gu=Oe.PROPER,Wu=Oe.CONFIGURABLE,Uu=$u.IteratorPrototype,Ku=$u.BUGGY_SAFARI_ITERATORS,Xu=Ft("iterator"),Yu="keys",qu="values",Ju="entries",Qu=function(){return this},Zu=function(t,e,n,r,o,i,u){!function(t,e,n,r){var o=e+" Iterator";t.prototype=Ln(Hu,{next:_(+!r,n)}),ko(t,o,!1),Co[o]=Bu}(n,e,r);var a,c,s,f=function(t){if(t===o&&h)return h;if(!Ku&&t in v)return v[t];switch(t){case Yu:case qu:case Ju:return function(){return new n(this,t)}}return function(){return new n(this)}},l=e+" Iterator",d=!1,v=t.prototype,p=v[Xu]||v["@@iterator"]||o&&v[o],h=!Ku&&p||f(o),y="Array"==e&&v.entries||p;if(y&&(a=zu(y.call(new t)))!==Object.prototype&&a.next&&(zu(a)!==Uu&&(To?To(a,Uu):et(a[Xu])||Ie(a,Xu,Qu)),ko(a,l,!0)),Gu&&o==qu&&p&&p.name!==qu&&(Wu?ee(v,"name",qu):(d=!0,h=function(){return L(p,this)})),o)if(c={values:f(qu),keys:i?h:f(Yu),entries:f(Ju)},u)for(s in c)(Ku||d||!(s in v))&&Ie(v,s,c[s]);else en({target:e,proto:!0,forced:Ku||d},c);return v[Xu]!==h&&Ie(v,Xu,h,{name:o}),Co[e]=h,c},ta="Array Iterator",ea=we.set,na=we.getterFor(ta),ra=Zu(Array,"Array",(function(t,e){ea(this,{type:ta,target:tt(t),index:0,kind:e})}),(function(){var t=na(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values");Co.Arguments=Co.Array,Dn("keys"),Dn("values"),Dn("entries");var oa=function(t,e,n){var r=Ht(e);r in t?te.f(t,r,_(0,n)):t[r]=n},ia=Ft("species"),ua=function(t){return ft>=51||!R((function(){var e=[];return(e.constructor={})[ia]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}("slice"),aa=Ft("species"),ca=N.Array,sa=Math.max;en({target:"Array",proto:!0,forced:!ua},{slice:function(t,e){var n,r,o,i=tt(this),u=Ve(i),a=ke(t,u),c=ke(void 0===e?u:e,u);if(Gn(i)&&(n=i.constructor,(Qn(n)&&(n===ca||Gn(n.prototype))||nt(n)&&null===(n=n[aa]))&&(n=void 0),n===ca||void 0===n))return oi(i,a,c);for(r=new(void 0===n?ca:n)(sa(c-a,0)),o=0;a<c;a++,o++)a in i&&oa(r,o,i[a]);return r.length=o,r}});var fa=Oe.EXISTS,la=te.f,da=Function.prototype,va=W(da.toString),pa=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,ha=W(pa.exec);V&&!fa&&la(da,"name",{configurable:!0,get:function(){try{return ha(pa,va(this))[1]}catch(t){return""}}});var ya=Br.charAt,ga="String Iterator",ma=we.set,ba=we.getterFor(ga);Zu(String,"String",(function(t){ma(this,{type:ga,string:ln(t),index:0})}),(function(){var t,e=ba(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=ya(n,r),e.index+=t.length,{value:t,done:!1})}));var wa=N.Array,Sa=Math.max,xa=He.f,Ea="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Oa=function(t){try{return xa(t)}catch(t){return function(t,e,n){for(var r=Ve(t),o=ke(e,r),i=ke(void 0===n?r:n,r),u=wa(Sa(i-o,0)),a=0;o<i;o++,a++)oa(u,a,t[o]);return u.length=a,u}(Ea)}},Ia={f:function(t){return Ea&&"Window"==X(t)?Oa(t):xa(tt(t))}},ja=R((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),Pa=Object.isExtensible,Ta=R((function(){Pa(1)}))||ja?function(t){return!!nt(t)&&((!ja||"ArrayBuffer"!=X(t))&&(!Pa||Pa(t)))}:Pa,Ma=!R((function(){return Object.isExtensible(Object.preventExtensions({}))})),Aa=T((function(t){var e=te.f,n=!1,r=Rt("meta"),o=0,i=function(t){e(t,r,{value:{objectID:"O"+o++,weakData:{}}})},u=t.exports={enable:function(){u.enable=function(){},n=!0;var t=He.f,e=W([].splice),o={};o[r]=1,t(o).length&&(He.f=function(n){for(var o=t(n),i=0,u=o.length;i<u;i++)if(o[i]===r){e(o,i,1);break}return o},en({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Ia.f}))},fastKey:function(t,e){if(!nt(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!Mt(t,r)){if(!Ta(t))return"F";if(!e)return"E";i(t)}return t[r].objectID},getWeakData:function(t,e){if(!Mt(t,r)){if(!Ta(t))return!0;if(!e)return!1;i(t)}return t[r].weakData},onFreeze:function(t){return Ma&&n&&Ta(t)&&!Mt(t,r)&&i(t),t}};le[r]=!0})),ka=Aa.getWeakData,Na=we.set,Ra=we.getterFor,Va=or.find,Ca=or.findIndex,La=W([].splice),za=0,Fa=function(t){return t.frozen||(t.frozen=new Da)},Da=function(){this.entries=[]},_a=function(t,e){return Va(t.entries,(function(t){return t[0]===e}))};Da.prototype={get:function(t){var e=_a(this,t);if(e)return e[1]},has:function(t){return!!_a(this,t)},set:function(t,e){var n=_a(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=Ca(this.entries,(function(e){return e[0]===t}));return~e&&La(this.entries,e,1),!!~e}};var $a,Ha={getConstructor:function(t,e,n,r){var o=t((function(t,o){Vo(t,i),Na(t,{type:e,id:za++,frozen:void 0}),null!=o&&Wo(o,t[r],{that:t,AS_ENTRIES:n})})),i=o.prototype,u=Ra(e),a=function(t,e,n){var r=u(t),o=ka(Jt(e),!0);return!0===o?Fa(r).set(e,n):o[r.id]=n,t};return Io(i,{delete:function(t){var e=u(this);if(!nt(t))return!1;var n=ka(t);return!0===n?Fa(e).delete(t):n&&Mt(n,e.id)&&delete n[e.id]},has:function(t){var e=u(this);if(!nt(t))return!1;var n=ka(t);return!0===n?Fa(e).has(t):n&&Mt(n,e.id)}}),Io(i,n?{get:function(t){var e=u(this);if(nt(t)){var n=ka(t);return!0===n?Fa(e).get(t):n?n[e.id]:void 0}},set:function(t,e){return a(this,t,e)}}:{add:function(t){return a(this,t,!0)}}),o}},Ba=we.enforce,Ga=!N.ActiveXObject&&"ActiveXObject"in N,Wa=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Ua=function(t,e,n){var r=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=r?"set":"add",u=N[t],a=u&&u.prototype,c=u,s={},f=function(t){var e=W(a[t]);Ie(a,t,"add"==t?function(t){return e(this,0===t?0:t),this}:"delete"==t?function(t){return!(o&&!nt(t))&&e(this,0===t?0:t)}:"get"==t?function(t){return o&&!nt(t)?void 0:e(this,0===t?0:t)}:"has"==t?function(t){return!(o&&!nt(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this})};if(Ze(t,!et(u)||!(o||a.forEach&&!R((function(){(new u).entries().next()})))))c=n.getConstructor(e,t,r,i),Aa.enable();else if(Ze(t,!0)){var l=new c,d=l[i](o?{}:-0,1)!=l,v=R((function(){l.has(1)})),p=ti((function(t){new u(t)})),h=!o&&R((function(){for(var t=new u,e=5;e--;)t[i](e,e);return!t.has(-0)}));p||((c=e((function(t,e){Vo(t,a);var n=function(t,e,n){var r,o;return To&&et(r=e.constructor)&&r!==n&&nt(o=r.prototype)&&o!==n.prototype&&To(t,o),t}(new u,t,c);return null!=e&&Wo(e,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=a,a.constructor=c),(v||h)&&(f("delete"),f("has"),r&&f("get")),(h||d)&&f(i),o&&a.clear&&delete a.clear}return s[t]=c,en({global:!0,forced:c!=u},s),ko(c,t),o||n.setStrong(c,t,r),c}("WeakMap",Wa,Ha);if(ce&&Ga){$a=Ha.getConstructor(Wa,"WeakMap",!0),Aa.enable();var Ka=Ua.prototype,Xa=W(Ka.delete),Ya=W(Ka.has),qa=W(Ka.get),Ja=W(Ka.set);Io(Ka,{delete:function(t){if(nt(t)&&!Ta(t)){var e=Ba(this);return e.frozen||(e.frozen=new $a),Xa(this,t)||e.frozen.delete(t)}return Xa(this,t)},has:function(t){if(nt(t)&&!Ta(t)){var e=Ba(this);return e.frozen||(e.frozen=new $a),Ya(this,t)||e.frozen.has(t)}return Ya(this,t)},get:function(t){if(nt(t)&&!Ta(t)){var e=Ba(this);return e.frozen||(e.frozen=new $a),Ya(this,t)?qa(this,t):e.frozen.get(t)}return qa(this,t)},set:function(t,e){if(nt(t)&&!Ta(t)){var n=Ba(this);n.frozen||(n.frozen=new $a),Ya(this,t)?Ja(this,t,e):n.frozen.set(t,e)}else Ja(this,t,e);return this}})}var Qa=Ft("iterator"),Za=Ft("toStringTag"),tc=ra.values,ec=function(t,e){if(t){if(t[Qa]!==tc)try{ee(t,Qa,tc)}catch(e){t[Qa]=tc}if(t[Za]||ee(t,Za,e),fo[e])for(var n in ra)if(t[n]!==ra[n])try{ee(t,n,ra[n])}catch(e){t[n]=ra[n]}}};for(var nc in fo)ec(N[nc]&&N[nc].prototype,nc);function rc(t){return t.getMenuConfig("uploadVideo")}ec(po,"DOMTokenList");var oc=new WeakMap;function ic(t,e){return x(this,void 0,void 0,(function(){var n,r,o,u;return E(this,(function(a){switch(a.label){case 0:return n=function(t){var e=oc.get(t);if(null!=e)return e;var n=rc(t),r=n.onSuccess,o=n.onProgress,u=n.onFailed,a=n.customInsert,c=n.onError;return e=i(S(S({},n),{onProgress:function(e){t.showProgressBar(e),o&&o(e)},onSuccess:function(e,n){if(a)return a(n,(function(e,n){return Ou(t,e,n)})),void r(e,n);var o=n.errno,i=void 0===o?1:o,c=n.data,s=void 0===c?{}:c;if(0===i){var f=s.url,l=void 0===f?"":f,d=s.poster;Ou(t,l,void 0===d?"":d),r(e,n)}else u(e,n)},onError:function(t,e,n){c(t,e,n)}})),oc.set(t,e),e}(t),r=e.name,o=e.type,u=e.size,n.addFile({name:r,type:o,size:u,data:e}),[4,n.upload()];case 1:return a.sent(),[2]}}))}))}var uc=function(){function t(){this.title=n("videoModule.uploadVideo"),this.iconSvg='<svg viewBox="0 0 1056 1024"><path d="M805.902261 521.819882a251.441452 251.441452 0 0 0-251.011972 246.600033 251.051015 251.051015 0 1 0 502.023944 8.823877 253.237463 253.237463 0 0 0-251.011972-255.42391z m59.463561 240.001647v129.898403h-116.701631v-129.898403h-44.041298l101.279368-103.504859 101.279368 103.504859z" p-id="6802"></path><path d="M788.254507 0.000781H99.094092A98.663439 98.663439 0 0 0 0.001171 99.093701v590.067495a98.663439 98.663439 0 0 0 99.092921 99.092921h411.7549a266.434235 266.434235 0 0 1-2.186448-41.815807 275.843767 275.843767 0 0 1 275.180024-270.729042 270.650955 270.650955 0 0 1 103.504859 19.834201V99.093701A101.51363 101.51363 0 0 0 788.254507 0.000781zM295.054441 640.747004V147.507894l394.146189 246.600033z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.exec=function(t,e){var n=this.getMenuConfig(t),r=n.allowedFileTypes,o=void 0===r?[]:r,i=n.customBrowseAndUpload;if(i)i((function(e,n){return Ou(t,e,n)}));else{var u="";o.length>0&&(u='accept="'+o.join(", ")+'"');var a=f("body"),c=f('<input type="file" '+u+" multiple/>");c.hide(),a.append(c),c.click(),c.on("change",(function(){var e=c[0].files;!function(t,e){var n,r;x(this,void 0,void 0,(function(){var o,i,u,a,c,s;return E(this,(function(f){switch(f.label){case 0:if(null==e)return[2];o=Array.prototype.slice.call(e),i=rc(t).customUpload,f.label=1;case 1:f.trys.push([1,9,10,15]),u=j(o),f.label=2;case 2:return[4,u.next()];case 3:return(a=f.sent()).done?[3,8]:(c=a.value,i?[4,i(c,(function(e,n){return Ou(t,e,n)}))]:[3,5]);case 4:return f.sent(),[3,7];case 5:return[4,ic(t,c)];case 6:f.sent(),f.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return s=f.sent(),n={error:s},[3,15];case 10:return f.trys.push([10,,13,14]),a&&!a.done&&(r=u.return)?[4,r.call(u)]:[3,12];case 11:f.sent(),f.label=12;case 12:return[3,14];case 13:if(n)throw n.error;return[7];case 14:return[7];case 15:return[2]}}))}))}(t,e)}))}},t.prototype.isDisabled=function(t){var n=t.selection;return null==n||(!a.isCollapsed(n)||!!e.getSelectedElems(t).some((function(n){var r=e.getNodeType(n);return"pre"===r||("list-item"===r||!!t.isVoid(n))})))},t.prototype.getMenuConfig=function(t){return t.getMenuConfig("uploadVideo")},t}();function ac(){return wo("w-e-insert-video")}var cc=function(){function t(){this.title=n("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=ac(),this.heightInputId=ac(),this.buttonId=ac()}return t.prototype.getSelectedVideoNode=function(t){return e.getSelectedNodeByType(t,"video")},t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.exec=function(t,e){},t.prototype.isDisabled=function(t){return null==t.selection||null==this.getSelectedVideoNode(t)},t.prototype.getModalPositionNode=function(t){return this.getSelectedVideoNode(t)},t.prototype.getModalContentElem=function(t){var i=this,a=i.widthInputId,c=i.heightInputId,s=i.buttonId,l=I(r(n("videoModule.width"),a,"auto"),2),d=l[0],v=l[1],p=f(v),h=I(r(n("videoModule.height"),c,"auto"),2),y=h[0],g=h[1],m=f(g),b=I(o(s,n("videoModule.ok")),1)[0];if(null==this.$content){var w=f("<div></div>");w.on("click","#"+s,(function(n){n.preventDefault();var r=w.find("#"+a).val().trim(),o=w.find("#"+c).val().trim(),i=function(t){return/^\d+(\.\d+)?%$/.test(t)},s=function(t){return/^\d+(\.\d+)?$/.test(t)},f="auto",l="auto";i(r)?f=r:s(r)&&(f=parseInt(r)+"px"),i(o)?l=o:s(o)&&(l=parseInt(o)+"px");var d=E.style,v=void 0===d?{}:d;t.restoreSelection();var p={style:S(S({},v),{width:f,height:l})};u.setNodes(t,p,{match:function(t){return e.checkNodeType(t,"video")}}),t.hidePanelOrModal()})),this.$content=w}var x=this.$content;x.empty(),x.append(d),x.append(y),x.append(b);var E=this.getSelectedVideoNode(t);if(null==E)return x[0];var O=E.style,j=void 0===O?{}:O,P=j.width,T=void 0===P?"":P,M=j.height,A=void 0===M?"":M;return p.val(T),m.val(A),setTimeout((function(){p.focus()})),x[0]},t}();function sc(){return wo("w-e-edit-video")}var fc=function(){function t(){this.title=n("videoModule.edit"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M864 0a160 160 0 0 1 128 256l-64 64-224-224 64-64c26.752-20.096 59.968-32 96-32zM64 736l-64 288 288-64 592-592-224-224L64 736z m651.584-372.416l-448 448-55.168-55.168 448-448 55.168 55.168z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=sc(),this.posterInputId=sc(),this.buttonId=sc()}return t.prototype.getSelectedVideoNode=function(t){return e.getSelectedNodeByType(t,"video")},t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.exec=function(t,e){},t.prototype.isDisabled=function(t){return null==t.selection||null==this.getSelectedVideoNode(t)},t.prototype.getModalPositionNode=function(t){return this.getSelectedVideoNode(t)},t.prototype.getModalContentElem=function(t){var i=this,a=this,c=a.srcInputId,s=a.posterInputId,l=a.buttonId,d=I(r(n("videoModule.videoSrc"),c,n("videoModule.videoSrcPlaceHolder")),2),v=d[0],p=d[1],h=I(r(n("videoModule.videoPoster"),s,n("videoModule.videoPosterPlaceHolder")),2),y=h[0],g=h[1],m=f(p),b=f(g),w=I(o(l,n("videoModule.ok")),1)[0];if(null==this.$content){var S=f("<div></div>");S.on("click","#"+l,(function(n){return x(i,void 0,void 0,(function(){var r,o,i,a;return E(this,(function(f){return n.preventDefault(),r=S.find("#"+c).val().trim(),o=S.find("#"+s).val().trim(),i=wo("video-"),a={src:r,poster:o,key:i},t.restoreSelection(),u.setNodes(t,a,{match:function(t){return e.checkNodeType(t,"video")}}),t.hidePanelOrModal(),[2]}))}))})),this.$content=S}var O=this.$content;O.empty(),O.append(v),O.append(y),O.append(w);var j=this.getSelectedVideoNode(t);if(null==j)return O[0];var P=j.src,T=void 0===P?"":P,M=j.poster,A=void 0===M?"":M;return m.val(T),b.val(A),setTimeout((function(){m.focus()})),O[0]},t}();var lc={renderElems:[En],elemsToHtml:[In],preParseHtml:[$n],parseElemsHtml:[Eo],menus:[{key:"insertVideo",factory:function(){return new ju},config:{onInsertedVideo:function(t){},checkVideo:function(t,e){return!0},parseVideoSrc:function(t){return t}}},{key:"uploadVideo",factory:function(){return new uc},config:{server:"",fieldName:"wangeditor-uploaded-video",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["video/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(t){return t},onProgress:function(t){},onSuccess:function(t,e){},onFailed:function(t,e){console.error("'"+t.name+"' upload failed",e)},onError:function(t,e,n){console.error("'"+t.name+" upload error",e,n)}}},{key:"editVideoSize",factory:function(){return new cc}},{key:"editVideoSrc",factory:function(){return new fc}}],editorPlugin:function(t){var n=t.isVoid,r=t.normalizeNode,o=t;return o.isVoid=function(t){return"video"===t.type||n(t)},o.normalizeNode=function(t){var n=I(t,2),i=n[0],a=n[1];"video"===e.getNodeType(i)&&(e.isLastNode(o,i)&&u.insertNodes(o,e.genEmptyParagraph(),{at:[a[0]+1]}));return r([i,a])},o}};export{lc as default};
2
2
  //# sourceMappingURL=index.esm.js.map