@wangeditor-next/video-module 1.3.10 → 1.3.11

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.
Files changed (116) hide show
  1. package/dist/core/src/config/index.d.ts +13 -0
  2. package/dist/core/src/config/interface.d.ts +58 -0
  3. package/dist/core/src/config/register.d.ts +12 -0
  4. package/dist/core/src/constants/index.d.ts +1 -0
  5. package/dist/core/src/constants/svg.d.ts +12 -0
  6. package/dist/core/src/create/bind-node-relation.d.ts +15 -0
  7. package/dist/core/src/create/create-editor.d.ts +21 -0
  8. package/dist/core/src/create/create-toolbar.d.ts +14 -0
  9. package/dist/core/src/create/helper.d.ts +30 -0
  10. package/dist/core/src/create/index.d.ts +7 -0
  11. package/dist/core/src/editor/dom-editor.d.ts +143 -0
  12. package/dist/core/src/editor/interface.d.ts +67 -0
  13. package/dist/core/src/editor/plugins/with-config.d.ts +7 -0
  14. package/dist/core/src/editor/plugins/with-content.d.ts +7 -0
  15. package/dist/core/src/editor/plugins/with-dom.d.ts +10 -0
  16. package/dist/core/src/editor/plugins/with-emitter.d.ts +7 -0
  17. package/dist/core/src/editor/plugins/with-event-data.d.ts +7 -0
  18. package/dist/core/src/editor/plugins/with-max-length.d.ts +7 -0
  19. package/dist/core/src/editor/plugins/with-selection.d.ts +7 -0
  20. package/dist/core/src/i18n/index.d.ts +32 -0
  21. package/dist/core/src/index.d.ts +32 -0
  22. package/dist/core/src/menus/bar/HoverBar.d.ts +48 -0
  23. package/dist/core/src/menus/bar/Toolbar.d.ts +35 -0
  24. package/dist/core/src/menus/bar-item/BaseButton.d.ts +26 -0
  25. package/dist/core/src/menus/bar-item/DropPanelButton.d.ts +14 -0
  26. package/dist/core/src/menus/bar-item/GroupButton.d.ts +17 -0
  27. package/dist/core/src/menus/bar-item/ModalButton.d.ts +25 -0
  28. package/dist/core/src/menus/bar-item/Select.d.ts +22 -0
  29. package/dist/core/src/menus/bar-item/SimpleButton.d.ts +11 -0
  30. package/dist/core/src/menus/bar-item/index.d.ts +24 -0
  31. package/dist/core/src/menus/bar-item/tooltip.d.ts +6 -0
  32. package/dist/core/src/menus/helpers/helpers.d.ts +18 -0
  33. package/dist/core/src/menus/helpers/position.d.ts +36 -0
  34. package/dist/core/src/menus/index.d.ts +9 -0
  35. package/dist/core/src/menus/interface.d.ts +66 -0
  36. package/dist/core/src/menus/panel-and-modal/BaseClass.d.ts +26 -0
  37. package/dist/core/src/menus/panel-and-modal/DropPanel.d.ts +14 -0
  38. package/dist/core/src/menus/panel-and-modal/Modal.d.ts +44 -0
  39. package/dist/core/src/menus/panel-and-modal/SelectList.d.ts +20 -0
  40. package/dist/core/src/menus/register.d.ts +16 -0
  41. package/dist/core/src/parse-html/helper.d.ts +10 -0
  42. package/dist/core/src/parse-html/index.d.ts +35 -0
  43. package/dist/core/src/parse-html/parse-common-elem-html.d.ts +15 -0
  44. package/dist/core/src/parse-html/parse-elem-html.d.ts +15 -0
  45. package/dist/core/src/parse-html/parse-text-elem-html.d.ts +15 -0
  46. package/dist/core/src/render/element/getRenderElem.d.ts +11 -0
  47. package/dist/core/src/render/element/renderElement.d.ts +9 -0
  48. package/dist/core/src/render/element/renderStyle.d.ts +13 -0
  49. package/dist/core/src/render/helper.d.ts +6 -0
  50. package/dist/core/src/render/index.d.ts +27 -0
  51. package/dist/core/src/render/node2Vnode.d.ts +15 -0
  52. package/dist/core/src/render/text/genVnode.d.ts +9 -0
  53. package/dist/core/src/render/text/renderStyle.d.ts +13 -0
  54. package/dist/core/src/render/text/renderText.d.ts +9 -0
  55. package/dist/core/src/text-area/TextArea.d.ts +47 -0
  56. package/dist/core/src/text-area/event-handlers/beforeInput.d.ts +8 -0
  57. package/dist/core/src/text-area/event-handlers/blur.d.ts +8 -0
  58. package/dist/core/src/text-area/event-handlers/click.d.ts +8 -0
  59. package/dist/core/src/text-area/event-handlers/composition.d.ts +27 -0
  60. package/dist/core/src/text-area/event-handlers/copy.d.ts +8 -0
  61. package/dist/core/src/text-area/event-handlers/cut.d.ts +8 -0
  62. package/dist/core/src/text-area/event-handlers/drag.d.ts +9 -0
  63. package/dist/core/src/text-area/event-handlers/drop.d.ts +8 -0
  64. package/dist/core/src/text-area/event-handlers/focus.d.ts +8 -0
  65. package/dist/core/src/text-area/event-handlers/index.d.ts +35 -0
  66. package/dist/core/src/text-area/event-handlers/keydown.d.ts +8 -0
  67. package/dist/core/src/text-area/event-handlers/keypress.d.ts +8 -0
  68. package/dist/core/src/text-area/event-handlers/paste.d.ts +8 -0
  69. package/dist/core/src/text-area/helpers.d.ts +26 -0
  70. package/dist/core/src/text-area/place-holder.d.ts +18 -0
  71. package/dist/core/src/text-area/syncSelection.d.ts +19 -0
  72. package/dist/core/src/text-area/update-view.d.ts +13 -0
  73. package/dist/core/src/to-html/elem2html.d.ts +8 -0
  74. package/dist/core/src/to-html/index.d.ts +32 -0
  75. package/dist/core/src/to-html/node2html.d.ts +8 -0
  76. package/dist/core/src/to-html/text2html.d.ts +8 -0
  77. package/dist/core/src/upload/createUploader.d.ts +8 -0
  78. package/dist/core/src/upload/index.d.ts +7 -0
  79. package/dist/core/src/upload/interface.d.ts +28 -0
  80. package/dist/core/src/utils/dom.d.ts +102 -0
  81. package/dist/core/src/utils/hotkeys.d.ts +35 -0
  82. package/dist/core/src/utils/key.d.ts +11 -0
  83. package/dist/core/src/utils/line.d.ts +14 -0
  84. package/dist/core/src/utils/ua.d.ts +14 -0
  85. package/dist/core/src/utils/util.d.ts +28 -0
  86. package/dist/core/src/utils/vdom.d.ts +34 -0
  87. package/dist/core/src/utils/weak-maps.d.ts +56 -0
  88. package/dist/index.js +1 -1
  89. package/dist/index.js.map +1 -1
  90. package/dist/index.mjs +2 -0
  91. package/dist/index.mjs.map +1 -0
  92. package/dist/video-module/src/constants/svg.d.ts +12 -12
  93. package/dist/video-module/src/index.d.ts +8 -8
  94. package/dist/video-module/src/locale/en.d.ts +21 -21
  95. package/dist/video-module/src/locale/index.d.ts +5 -5
  96. package/dist/video-module/src/locale/zh-CN.d.ts +21 -21
  97. package/dist/video-module/src/module/custom-types.d.ts +23 -23
  98. package/dist/video-module/src/module/elem-to-html.d.ts +11 -11
  99. package/dist/video-module/src/module/helper/insert-video.d.ts +12 -12
  100. package/dist/video-module/src/module/helper/upload-videos.d.ts +6 -6
  101. package/dist/video-module/src/module/index.d.ts +7 -7
  102. package/dist/video-module/src/module/menu/EditVideoSizeMenu.d.ts +25 -25
  103. package/dist/video-module/src/module/menu/EditVideoSrcMenu.d.ts +26 -26
  104. package/dist/video-module/src/module/menu/InsertVideoMenu.d.ts +25 -25
  105. package/dist/video-module/src/module/menu/UploadVideoMenu.d.ts +16 -16
  106. package/dist/video-module/src/module/menu/config.d.ts +33 -33
  107. package/dist/video-module/src/module/menu/index.d.ts +30 -30
  108. package/dist/video-module/src/module/parse-elem-html.d.ts +14 -14
  109. package/dist/video-module/src/module/plugin.d.ts +7 -7
  110. package/dist/video-module/src/module/pre-parse-html.d.ts +15 -15
  111. package/dist/video-module/src/module/render-elem.d.ts +13 -13
  112. package/dist/video-module/src/utils/dom.d.ts +29 -29
  113. package/dist/video-module/src/utils/util.d.ts +12 -12
  114. package/package.json +10 -7
  115. package/dist/index.esm.js +0 -2
  116. package/dist/index.esm.js.map +0 -1
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("@wangeditor-next/core"),require("dom7"),require("slate"),require("nanoid"),require("snabbdom")):"function"==typeof define&&define.amd?define(["@wangeditor-next/core","dom7","slate","nanoid","snabbdom"],e):(t="undefined"!=typeof globalThis?globalThis:t||self).WangEditorVideoModule=e(t.core,t.$,t.slate,t.nanoid,t.snabbdom)}(this,(function(t,e,n,r,o){"use strict";function i(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var u=i(e);t.i18nAddResources("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.i18nAddResources("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",edit:"编辑视频",width:"宽度",height:"高度"}});var a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function c(t){var e={exports:{}};return t(e,e.exports),e.exports}var s,f,l=function(t){return t&&t.Math===Math&&t},d=l("object"==typeof globalThis&&globalThis)||l("object"==typeof window&&window)||l("object"==typeof self&&self)||l("object"==typeof a&&a)||l("object"==typeof a&&a)||function(){return this}()||Function("return this")(),p=function(t){try{return!!t()}catch(t){return!0}},v=!p((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),h=!p((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),y=Function.prototype.call,g=h?y.bind(y):function(){return y.apply(y,arguments)},m={}.propertyIsEnumerable,b=Object.getOwnPropertyDescriptor,w={f:b&&!m.call({1:2},1)?function(t){var e=b(this,t);return!!e&&e.enumerable}:m},S=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},E=Function.prototype,O=E.call,x=h&&E.bind.bind(O,O),I=h?x:function(t){return function(){return O.apply(t,arguments)}},j=I({}.toString),T=I("".slice),P=function(t){return T(j(t),8,-1)},M=Object,A=I("".split),N=p((function(){return!M("z").propertyIsEnumerable(0)}))?function(t){return"String"===P(t)?A(t,""):M(t)}:M,R=function(t){return null==t},C=TypeError,k=function(t){if(R(t))throw new C("Can't call method on "+t);return t},D=function(t){return N(k(t))},V="object"==typeof document&&document.all,L=void 0===V&&void 0!==V?function(t){return"function"==typeof t||t===V}:function(t){return"function"==typeof t},z=function(t){return"object"==typeof t?null!==t:L(t)},F=function(t,e){return arguments.length<2?(n=d[t],L(n)?n:void 0):d[t]&&d[t][e];var n},_=I({}.isPrototypeOf),$=d.navigator,B=$&&$.userAgent,U=B?String(B):"",H=d.process,W=d.Deno,G=H&&H.versions||W&&W.version,q=G&&G.v8;q&&(f=(s=q.split("."))[0]>0&&s[0]<4?1:+(s[0]+s[1])),!f&&U&&(!(s=U.match(/Edge\/(\d+)/))||s[1]>=74)&&(s=U.match(/Chrome\/(\d+)/))&&(f=+s[1]);var K=f,X=d.String,Y=!!Object.getOwnPropertySymbols&&!p((function(){var t=Symbol("symbol detection");return!X(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&K&&K<41})),J=Y&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Q=Object,Z=J?function(t){return"symbol"==typeof t}:function(t){var e=F("Symbol");return L(e)&&_(e.prototype,Q(t))},tt=String,et=function(t){try{return tt(t)}catch(t){return"Object"}},nt=TypeError,rt=function(t){if(L(t))return t;throw new nt(et(t)+" is not a function")},ot=function(t,e){var n=t[e];return R(n)?void 0:rt(n)},it=TypeError,ut=Object.defineProperty,at=function(t,e){try{ut(d,t,{value:e,configurable:!0,writable:!0})}catch(n){d[t]=e}return e},ct=c((function(t){var e="__core-js_shared__",n=t.exports=d[e]||at(e,{});(n.versions||(n.versions=[])).push({version:"3.38.1",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),st=function(t,e){return ct[t]||(ct[t]=e||{})},ft=Object,lt=function(t){return ft(k(t))},dt=I({}.hasOwnProperty),pt=Object.hasOwn||function(t,e){return dt(lt(t),e)},vt=0,ht=Math.random(),yt=I(1..toString),gt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+yt(++vt+ht,36)},mt=d.Symbol,bt=st("wks"),wt=J?mt.for||mt:mt&&mt.withoutSetter||gt,St=function(t){return pt(bt,t)||(bt[t]=Y&&pt(mt,t)?mt[t]:wt("Symbol."+t)),bt[t]},Et=TypeError,Ot=St("toPrimitive"),xt=function(t,e){if(!z(t)||Z(t))return t;var n,r=ot(t,Ot);if(r){if(void 0===e&&(e="default"),n=g(r,t,e),!z(n)||Z(n))return n;throw new Et("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&L(n=t.toString)&&!z(r=g(n,t)))return r;if(L(n=t.valueOf)&&!z(r=g(n,t)))return r;if("string"!==e&&L(n=t.toString)&&!z(r=g(n,t)))return r;throw new it("Can't convert object to primitive value")}(t,e)},It=function(t){var e=xt(t,"string");return Z(e)?e:e+""},jt=d.document,Tt=z(jt)&&z(jt.createElement),Pt=function(t){return Tt?jt.createElement(t):{}},Mt=!v&&!p((function(){return 7!==Object.defineProperty(Pt("div"),"a",{get:function(){return 7}}).a})),At=Object.getOwnPropertyDescriptor,Nt={f:v?At:function(t,e){if(t=D(t),e=It(e),Mt)try{return At(t,e)}catch(t){}if(pt(t,e))return S(!g(w.f,t,e),t[e])}},Rt=v&&p((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ct=String,kt=TypeError,Dt=function(t){if(z(t))return t;throw new kt(Ct(t)+" is not an object")},Vt=TypeError,Lt=Object.defineProperty,zt=Object.getOwnPropertyDescriptor,Ft="enumerable",_t="configurable",$t="writable",Bt={f:v?Rt?function(t,e,n){if(Dt(t),e=It(e),Dt(n),"function"==typeof t&&"prototype"===e&&"value"in n&&$t in n&&!n[$t]){var r=zt(t,e);r&&r[$t]&&(t[e]=n.value,n={configurable:_t in n?n[_t]:r[_t],enumerable:Ft in n?n[Ft]:r[Ft],writable:!1})}return Lt(t,e,n)}:Lt:function(t,e,n){if(Dt(t),e=It(e),Dt(n),Mt)try{return Lt(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new Vt("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Ut=v?function(t,e,n){return Bt.f(t,e,S(1,n))}:function(t,e,n){return t[e]=n,t},Ht=Function.prototype,Wt=v&&Object.getOwnPropertyDescriptor,Gt=pt(Ht,"name"),qt={EXISTS:Gt,PROPER:Gt&&"something"===function(){}.name,CONFIGURABLE:Gt&&(!v||v&&Wt(Ht,"name").configurable)},Kt=I(Function.toString);L(ct.inspectSource)||(ct.inspectSource=function(t){return Kt(t)});var Xt,Yt,Jt,Qt=ct.inspectSource,Zt=d.WeakMap,te=L(Zt)&&/native code/.test(String(Zt)),ee=st("keys"),ne=function(t){return ee[t]||(ee[t]=gt(t))},re={},oe="Object already initialized",ie=d.TypeError,ue=d.WeakMap;if(te||ct.state){var ae=ct.state||(ct.state=new ue);ae.get=ae.get,ae.has=ae.has,ae.set=ae.set,Xt=function(t,e){if(ae.has(t))throw new ie(oe);return e.facade=t,ae.set(t,e),e},Yt=function(t){return ae.get(t)||{}},Jt=function(t){return ae.has(t)}}else{var ce=ne("state");re[ce]=!0,Xt=function(t,e){if(pt(t,ce))throw new ie(oe);return e.facade=t,Ut(t,ce,e),e},Yt=function(t){return pt(t,ce)?t[ce]:{}},Jt=function(t){return pt(t,ce)}}var se={set:Xt,get:Yt,has:Jt,enforce:function(t){return Jt(t)?Yt(t):Xt(t,{})},getterFor:function(t){return function(e){var n;if(!z(e)||(n=Yt(e)).type!==t)throw new ie("Incompatible receiver, "+t+" required");return n}}},fe=c((function(t){var e=qt.CONFIGURABLE,n=se.enforce,r=se.get,o=String,i=Object.defineProperty,u=I("".slice),a=I("".replace),c=I([].join),s=v&&!p((function(){return 8!==i((function(){}),"length",{value:8}).length})),f=String(String).split("String"),l=t.exports=function(t,r,l){"Symbol("===u(o(r),0,7)&&(r="["+a(o(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),l&&l.getter&&(r="get "+r),l&&l.setter&&(r="set "+r),(!pt(t,"name")||e&&t.name!==r)&&(v?i(t,"name",{value:r,configurable:!0}):t.name=r),s&&l&&pt(l,"arity")&&t.length!==l.arity&&i(t,"length",{value:l.arity});try{l&&pt(l,"constructor")&&l.constructor?v&&i(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var d=n(t);return pt(d,"source")||(d.source=c(f,"string"==typeof r?r:"")),t};Function.prototype.toString=l((function(){return L(this)&&r(this).source||Qt(this)}),"toString")})),le=function(t,e,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:e;if(L(n)&&fe(n,i,r),r.global)o?t[e]=n:at(e,n);else{try{r.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=n:Bt.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},de=Math.ceil,pe=Math.floor,ve=Math.trunc||function(t){var e=+t;return(e>0?pe:de)(e)},he=function(t){var e=+t;return e!=e||0===e?0:ve(e)},ye=Math.max,ge=Math.min,me=function(t,e){var n=he(t);return n<0?ye(n+e,0):ge(n,e)},be=Math.min,we=function(t){var e=he(t);return e>0?be(e,9007199254740991):0},Se=function(t){return we(t.length)},Ee=function(t){return function(e,n,r){var o=D(e),i=Se(o);if(0===i)return!t&&-1;var u,a=me(r,i);if(t&&n!=n){for(;i>a;)if((u=o[a++])!=u)return!0}else for(;i>a;a++)if((t||a in o)&&o[a]===n)return t||a||0;return!t&&-1}},Oe={includes:Ee(!0),indexOf:Ee(!1)},xe=Oe.indexOf,Ie=I([].push),je=function(t,e){var n,r=D(t),o=0,i=[];for(n in r)!pt(re,n)&&pt(r,n)&&Ie(i,n);for(;e.length>o;)pt(r,n=e[o++])&&(~xe(i,n)||Ie(i,n));return i},Te=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Pe=Te.concat("length","prototype"),Me={f:Object.getOwnPropertyNames||function(t){return je(t,Pe)}},Ae={f:Object.getOwnPropertySymbols},Ne=I([].concat),Re=F("Reflect","ownKeys")||function(t){var e=Me.f(Dt(t)),n=Ae.f;return n?Ne(e,n(t)):e},Ce=function(t,e,n){for(var r=Re(e),o=Bt.f,i=Nt.f,u=0;u<r.length;u++){var a=r[u];pt(t,a)||n&&pt(n,a)||o(t,a,i(e,a))}},ke=/#|\.prototype\./,De=function(t,e){var n=Le[Ve(t)];return n===Fe||n!==ze&&(L(e)?p(e):!!e)},Ve=De.normalize=function(t){return String(t).replace(ke,".").toLowerCase()},Le=De.data={},ze=De.NATIVE="N",Fe=De.POLYFILL="P",_e=De,$e=Nt.f,Be=function(t,e){var n,r,o,i,u,a=t.target,c=t.global,s=t.stat;if(n=c?d:s?d[a]||at(a,{}):d[a]&&d[a].prototype)for(r in e){if(i=e[r],o=t.dontCallGetSet?(u=$e(n,r))&&u.value:n[r],!_e(c?r:a+(s?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Ce(i,o)}(t.sham||o&&o.sham)&&Ut(i,"sham",!0),le(n,r,i,t)}},Ue=Array.isArray||function(t){return"Array"===P(t)},He=TypeError,We=function(t){if(t>9007199254740991)throw He("Maximum allowed index exceeded");return t},Ge=function(t,e,n){v?Bt.f(t,e,S(0,n)):t[e]=n},qe={};qe[St("toStringTag")]="z";var Ke="[object z]"===String(qe),Xe=St("toStringTag"),Ye=Object,Je="Arguments"===P(function(){return arguments}()),Qe=Ke?P: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=Ye(t),Xe))?n:Je?P(e):"Object"===(r=P(e))&&L(e.callee)?"Arguments":r},Ze=function(){},tn=F("Reflect","construct"),en=/^\s*(?:class|function)\b/,nn=I(en.exec),rn=!en.test(Ze),on=function(t){if(!L(t))return!1;try{return tn(Ze,[],t),!0}catch(t){return!1}},un=function(t){if(!L(t))return!1;switch(Qe(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return rn||!!nn(en,Qt(t))}catch(t){return!0}};un.sham=!0;var an=!tn||p((function(){var t;return on(on.call)||!on(Object)||!on((function(){t=!0}))||t}))?un:on,cn=St("species"),sn=Array,fn=function(t,e){return new(function(t){var e;return Ue(t)&&(e=t.constructor,(an(e)&&(e===sn||Ue(e.prototype))||z(e)&&null===(e=e[cn]))&&(e=void 0)),void 0===e?sn:e}(t))(0===e?0:e)},ln=St("species"),dn=function(t){return K>=51||!p((function(){var e=[];return(e.constructor={})[ln]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},pn=St("isConcatSpreadable"),vn=K>=51||!p((function(){var t=[];return t[pn]=!1,t.concat()[0]!==t})),hn=function(t){if(!z(t))return!1;var e=t[pn];return void 0!==e?!!e:Ue(t)},yn=!vn||!dn("concat");Be({target:"Array",proto:!0,arity:1,forced:yn},{concat:function(t){var e,n,r,o,i,u=lt(this),a=fn(u,0),c=0;for(e=-1,r=arguments.length;e<r;e++)if(hn(i=-1===e?u:arguments[e]))for(o=Se(i),We(c+o),n=0;n<o;n++,c++)n in i&&Ge(a,c,i[n]);else We(c+1),Ge(a,c++,i);return a.length=c,a}});var gn,mn=String,bn=function(t){if("Symbol"===Qe(t))throw new TypeError("Cannot convert a Symbol value to a string");return mn(t)},wn="\t\n\v\f\r                 \u2028\u2029\ufeff",Sn=I("".replace),En=RegExp("^["+wn+"]+"),On=RegExp("(^|[^"+wn+"])["+wn+"]+$"),xn=function(t){return function(e){var n=bn(k(e));return 1&t&&(n=Sn(n,En,"")),2&t&&(n=Sn(n,On,"$1")),n}},In={start:xn(1),end:xn(2),trim:xn(3)},jn=qt.PROPER,Tn=In.trim;function Pn(t){return t.length?t[0].tagName.toLowerCase():""}function Mn(t,e,n,r){void 0===e&&(e="auto"),void 0===n&&(n="auto"),void 0===r&&(r={});var o=u.default(t),i=r.width,a=void 0===i?"":i,c=r.height,s=void 0===c?"":c,f="";return a&&(f+="width: ".concat(a,";")),s&&(f+="height: ".concat(s,";")),o.attr("width",e),o.attr("height",n),o.attr("style",f),o[0].outerHTML}Be({target:"String",proto:!0,forced:(gn="trim",p((function(){return!!wn[gn]()||"​…᠎"!=="​…᠎"[gn]()||jn&&wn[gn].name!==gn})))},{trim:function(){return Tn(this)}}),Be({global:!0,forced:d.globalThis!==d},{globalThis:d}),e.append&&(u.default.fn.append=e.append),e.on&&(u.default.fn.on=e.on),e.focus&&(u.default.fn.focus=e.focus),e.attr&&(u.default.fn.attr=e.attr),e.val&&(u.default.fn.val=e.val),e.html&&(u.default.fn.html=e.html),e.parent&&(u.default.fn.parent=e.parent),e.hasClass&&(u.default.fn.hasClass=e.hasClass),e.empty&&(u.default.fn.empty=e.empty);var An={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,p=n.textAlign,v='<div data-w-e-type="video" data-w-e-is-void style="text-align: '.concat(void 0===p?"center":p,';">\n');if(0===o.trim().indexOf("<iframe ")){v+=Mn(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: ".concat(y,";")),m&&(b+="height: ".concat(m,";")),v+='<video poster="'.concat(u,'" controls="true" width="').concat(c,'" height="').concat(f,'" style="').concat(b,'"><source src="').concat(o,'" type="video/mp4"/></video>')}return v+="\n</div>"}},Nn=function(t,e,n){return n.get&&fe(n.get,e,{getter:!0}),n.set&&fe(n.set,e,{setter:!0}),Bt.f(t,e,n)},Rn=qt.EXISTS,Cn=Function.prototype,kn=I(Cn.toString),Dn=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Vn=I(Dn.exec);v&&!Rn&&Nn(Cn,"name",{configurable:!0,get:function(){try{return Vn(Dn,kn(this))[1]}catch(t){return""}}});var Ln,zn=function(t){if("Function"===P(t))return I(t)},Fn=zn(zn.bind),_n=function(t,e){return rt(t),void 0===e?t:h?Fn(t,e):function(){return t.apply(e,arguments)}},$n=I([].push),Bn=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,p,v=lt(c),h=N(v),y=Se(h),g=_n(s,f),m=0,b=l||fn,w=e?b(c,y):n||u?b(c,0):void 0;y>m;m++)if((a||m in h)&&(p=g(d=h[m],m,v),t))if(e)w[m]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return m;case 2:$n(w,d)}else switch(t){case 4:return!1;case 7:$n(w,d)}return i?-1:r||o?o:w}},Un={forEach:Bn(0),map:Bn(1),filter:Bn(2),some:Bn(3),every:Bn(4),find:Bn(5),findIndex:Bn(6),filterReject:Bn(7)},Hn=Object.keys||function(t){return je(t,Te)},Wn=v&&!Rt?Object.defineProperties:function(t,e){Dt(t);for(var n,r=D(e),o=Hn(e),i=o.length,u=0;i>u;)Bt.f(t,n=o[u++],r[n]);return t},Gn={f:Wn},qn=F("document","documentElement"),Kn="prototype",Xn="script",Yn=ne("IE_PROTO"),Jn=function(){},Qn=function(t){return"<"+Xn+">"+t+"</"+Xn+">"},Zn=function(t){t.write(Qn("")),t.close();var e=t.parentWindow.Object;return t=null,e},tr=function(){try{Ln=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;tr="undefined"!=typeof document?document.domain&&Ln?Zn(Ln):(e=Pt("iframe"),n="java"+Xn+":",e.style.display="none",qn.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(Qn("document.F=Object")),t.close(),t.F):Zn(Ln);for(var r=Te.length;r--;)delete tr[Kn][Te[r]];return tr()};re[Yn]=!0;var er=Object.create||function(t,e){var n;return null!==t?(Jn[Kn]=Dt(t),n=new Jn,Jn[Kn]=null,n[Yn]=t):n=tr(),void 0===e?n:Gn.f(n,e)},nr=Bt.f,rr=St("unscopables"),or=Array.prototype;void 0===or[rr]&&nr(or,rr,{configurable:!0,value:er(null)});var ir=function(t){or[rr][t]=!0},ur=Un.find,ar="find",cr=!0;ar in[]&&Array(1)[ar]((function(){cr=!1})),Be({target:"Array",proto:!0,forced:cr},{find:function(t){return ur(this,t,arguments.length>1?arguments[1]:void 0)}}),ir(ar);var sr=Ke?{}.toString:function(){return"[object "+Qe(this)+"]"};Ke||le(Object.prototype,"toString",sr,{unsafe:!0});var fr,lr,dr=function(){var t=Dt(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},pr=d.RegExp,vr=p((function(){var t=pr("a","y");return t.lastIndex=2,null!==t.exec("abcd")})),hr=vr||p((function(){return!pr("a","y").sticky})),yr={BROKEN_CARET:vr||p((function(){var t=pr("^r","gy");return t.lastIndex=2,null!==t.exec("str")})),MISSED_STICKY:hr,UNSUPPORTED_Y:vr},gr=d.RegExp,mr=p((function(){var t=gr(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})),br=d.RegExp,wr=p((function(){var t=br("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),Sr=se.get,Er=st("native-string-replace",String.prototype.replace),Or=RegExp.prototype.exec,xr=Or,Ir=I("".charAt),jr=I("".indexOf),Tr=I("".replace),Pr=I("".slice),Mr=(lr=/b*/g,g(Or,fr=/a/,"a"),g(Or,lr,"a"),0!==fr.lastIndex||0!==lr.lastIndex),Ar=yr.BROKEN_CARET,Nr=void 0!==/()??/.exec("")[1];(Mr||Nr||Ar||mr||wr)&&(xr=function(t){var e,n,r,o,i,u,a,c=this,s=Sr(c),f=bn(t),l=s.raw;if(l)return l.lastIndex=c.lastIndex,e=g(xr,l,f),c.lastIndex=l.lastIndex,e;var d=s.groups,p=Ar&&c.sticky,v=g(dr,c),h=c.source,y=0,m=f;if(p&&(v=Tr(v,"y",""),-1===jr(v,"g")&&(v+="g"),m=Pr(f,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==Ir(f,c.lastIndex-1))&&(h="(?: "+h+")",m=" "+m,y++),n=new RegExp("^(?:"+h+")",v)),Nr&&(n=new RegExp("^"+h+"$(?!\\s)",v)),Mr&&(r=c.lastIndex),o=g(Or,p?n:c,m),p?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:Mr&&o&&(c.lastIndex=c.global?o.index+o[0].length:r),Nr&&o&&o.length>1&&g(Er,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=er(null),i=0;i<d.length;i++)u[(a=d[i])[0]]=o[a[1]];return o});var Rr=xr;Be({target:"RegExp",proto:!0,forced:/./.exec!==Rr},{exec:Rr});var Cr=function(){return Cr=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},Cr.apply(this,arguments)};function kr(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 Dr(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 Vr(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 Lr(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 zr(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=Vr(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 Fr=Function.prototype,_r=Fr.apply,$r=Fr.call,Br="object"==typeof Reflect&&Reflect.apply||(h?$r.bind(_r):function(){return $r.apply(_r,arguments)}),Ur=St("species"),Hr=RegExp.prototype,Wr=I("".charAt),Gr=I("".charCodeAt),qr=I("".slice),Kr=function(t){return function(e,n){var r,o,i=bn(k(e)),u=he(n),a=i.length;return u<0||u>=a?t?"":void 0:(r=Gr(i,u))<55296||r>56319||u+1===a||(o=Gr(i,u+1))<56320||o>57343?t?Wr(i,u):r:t?qr(i,u,u+2):o-56320+(r-55296<<10)+65536}},Xr={codeAt:Kr(!1),charAt:Kr(!0)},Yr=Xr.charAt,Jr=function(t,e,n){return e+(n?Yr(t,e).length:1)},Qr=Math.floor,Zr=I("".charAt),to=I("".replace),eo=I("".slice),no=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,ro=/\$([$&'`]|\d{1,2})/g,oo=function(t,e,n,r,o,i){var u=n+t.length,a=r.length,c=ro;return void 0!==o&&(o=lt(o),c=no),to(i,c,(function(i,c){var s;switch(Zr(c,0)){case"$":return"$";case"&":return t;case"`":return eo(e,0,n);case"'":return eo(e,u);case"<":s=o[eo(c,1,-1)];break;default:var f=+c;if(0===f)return i;if(f>a){var l=Qr(f/10);return 0===l?i:l<=a?void 0===r[l-1]?Zr(c,1):r[l-1]+Zr(c,1):i}s=r[f-1]}return void 0===s?"":s}))},io=TypeError,uo=function(t,e){var n=t.exec;if(L(n)){var r=g(n,t,e);return null!==r&&Dt(r),r}if("RegExp"===P(t))return g(Rr,t,e);throw new io("RegExp#exec called on incompatible receiver")},ao=St("replace"),co=Math.max,so=Math.min,fo=I([].concat),lo=I([].push),po=I("".indexOf),vo=I("".slice),ho="$0"==="a".replace(/./,"$0"),yo=!!/./[ao]&&""===/./[ao]("a","$0");!function(t,e,n,r){var o=St(t),i=!p((function(){var e={};return e[o]=function(){return 7},7!==""[t](e)})),u=i&&!p((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[Ur]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return e=!0,null},n[o](""),!e}));if(!i||!u||n){var a=/./[o],c=e(o,""[t],(function(t,e,n,r,o){var u=e.exec;return u===Rr||u===Hr.exec?i&&!o?{done:!0,value:g(a,e,n,r)}:{done:!0,value:g(t,n,e,r)}:{done:!1}}));le(String.prototype,t,c[0]),le(Hr,o,c[1])}r&&Ut(Hr[o],"sham",!0)}("replace",(function(t,e,n){var r=yo?"$":"$0";return[function(t,n){var r=k(this),o=R(t)?void 0:ot(t,ao);return o?g(o,t,r,n):g(e,bn(r),t,n)},function(t,o){var i=Dt(this),u=bn(t);if("string"==typeof o&&-1===po(o,r)&&-1===po(o,"$<")){var a=n(e,i,u,o);if(a.done)return a.value}var c=L(o);c||(o=bn(o));var s,f=i.global;f&&(s=i.unicode,i.lastIndex=0);for(var l,d=[];null!==(l=uo(i,u))&&(lo(d,l),f);){""===bn(l[0])&&(i.lastIndex=Jr(u,we(i.lastIndex),s))}for(var p,v="",h=0,y=0;y<d.length;y++){for(var g,m=bn((l=d[y])[0]),b=co(so(he(l.index),u.length),0),w=[],S=1;S<l.length;S++)lo(w,void 0===(p=l[S])?p:String(p));var E=l.groups;if(c){var O=fo([m],w,b,u);void 0!==E&&lo(O,E),g=bn(Br(o,void 0,O))}else g=oo(m,u,b,w,E,o);b>=h&&(v+=vo(u,h,b)+g,h=b+m.length)}return v+vo(u,h)}]}),!!p((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!ho||yo);var go={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},mo=Pt("span").classList,bo=mo&&mo.constructor&&mo.constructor.prototype,wo=bo===Object.prototype?void 0:bo,So=function(t,e){var n=[][t];return!!n&&p((function(){n.call(null,e||function(){return 1},1)}))},Eo=Un.forEach,Oo=So("forEach")?[].forEach:function(t){return Eo(this,t,arguments.length>1?arguments[1]:void 0)},xo=function(t){if(t&&t.forEach!==Oo)try{Ut(t,"forEach",Oo)}catch(e){t.forEach=Oo}};for(var Io in go)go[Io]&&xo(d[Io]&&d[Io].prototype);function jo(t){return void 0===t&&(t="r"),"".concat(t,"-").concat(r.nanoid())}function To(t){var e={};return t.trim().split(";").forEach((function(t){if(t){var n=Lr(t.split(":"),2),r=n[0],o=n[1];r&&o&&(e[r.trim()]=o.trim())}})),e}function Po(){return jo("w-e-insert-video")}xo(wo);var Mo=function(){function e(){this.title=t.t("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=Po(),this.heightInputId=Po(),this.buttonId=Po()}return e.prototype.getSelectedVideoNode=function(e){return t.DomEditor.getSelectedNodeByType(e,"video")},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,e){},e.prototype.isDisabled=function(t){return null==t.selection||null==this.getSelectedVideoNode(t)},e.prototype.getModalPositionNode=function(t){return this.getSelectedVideoNode(t)},e.prototype.getModalContentElem=function(e){var r=this,o=r.widthInputId,i=r.heightInputId,a=r.buttonId,c=Lr(t.genModalInputElems(t.t("videoModule.width"),o,"auto"),2),s=c[0],f=c[1],l=u.default(f),d=Lr(t.genModalInputElems(t.t("videoModule.height"),i,"auto"),2),p=d[0],v=d[1],h=u.default(v),y=Lr(t.genModalButtonElems(a,t.t("videoModule.ok")),1)[0],g=this.getSelectedVideoNode(e);if(null==this.$content){var m=u.default("<div></div>");m.on("click","#".concat(a),(function(r){r.preventDefault();var u=m.find("#".concat(o)).val().trim(),a=m.find("#".concat(i)).val().trim(),c=function(t){return/^\d+(\.\d+)?%$/.test(t)},s=function(t){return/^\d+(\.\d+)?$/.test(t)},f="auto",l="auto";c(u)?f=u:s(u)&&(f="".concat(parseInt(u,10),"px")),c(a)?l=a:s(a)&&(l="".concat(parseInt(a,10),"px"));var d=g.style,p=void 0===d?{}:d;e.restoreSelection();var v={style:Cr(Cr({},p),{width:f,height:l})};n.Transforms.setNodes(e,v,{match:function(e){return t.DomEditor.checkNodeType(e,"video")}}),e.hidePanelOrModal()})),this.$content=m}var b=this.$content;if(b.empty(),b.append(s),b.append(p),b.append(y),null==g)return b[0];var w=g.style,S=void 0===w?{}:w,E=S.width,O=void 0===E?"":E,x=S.height,I=void 0===x?"":x;return l.val(O),h.val(I),setTimeout((function(){l.focus()})),b[0]},e}();function Ao(){return jo("w-e-edit-video")}var No,Ro,Co,ko,Do=function(){function e(){this.title=t.t("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=Ao(),this.posterInputId=Ao(),this.buttonId=Ao()}return e.prototype.getSelectedVideoNode=function(e){return t.DomEditor.getSelectedNodeByType(e,"video")},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,e){},e.prototype.isDisabled=function(t){return null==t.selection||null==this.getSelectedVideoNode(t)},e.prototype.getModalPositionNode=function(t){return this.getSelectedVideoNode(t)},e.prototype.getModalContentElem=function(e){var r=this,o=this,i=o.srcInputId,a=o.posterInputId,c=o.buttonId,s=Lr(t.genModalInputElems(t.t("videoModule.videoSrc"),i,t.t("videoModule.videoSrcPlaceHolder")),2),f=s[0],l=s[1],d=Lr(t.genModalInputElems(t.t("videoModule.videoPoster"),a,t.t("videoModule.videoPosterPlaceHolder")),2),p=d[0],v=d[1],h=u.default(l),y=u.default(v),g=Lr(t.genModalButtonElems(c,t.t("videoModule.ok")),1)[0];if(null==this.$content){var m=u.default("<div></div>");m.on("click","#".concat(c),(function(o){return kr(r,void 0,void 0,(function(){var r,u,c,s;return Dr(this,(function(f){return o.preventDefault(),r=m.find("#".concat(i)).val().trim(),u=m.find("#".concat(a)).val().trim(),c=jo("video-"),s={src:r,poster:u,key:c},e.restoreSelection(),n.Transforms.setNodes(e,s,{match:function(e){return t.DomEditor.checkNodeType(e,"video")}}),e.hidePanelOrModal(),[2]}))}))})),this.$content=m}var b=this.$content;b.empty(),b.append(f),b.append(p),b.append(g);var w=this.getSelectedVideoNode(e);if(null==w)return b[0];var S=w.src,E=void 0===S?"":S,O=w.poster,x=void 0===O?"":O;return h.val(E),y.val(x),setTimeout((function(){h.focus()})),b[0]},e}(),Vo=function(t){return U.slice(0,t.length)===t},Lo=Vo("Bun/")?"BUN":Vo("Cloudflare-Workers")?"CLOUDFLARE":Vo("Deno/")?"DENO":Vo("Node.js/")?"NODE":d.Bun&&"string"==typeof Bun.version?"BUN":d.Deno&&"object"==typeof Deno.version?"DENO":"process"===P(d.process)?"NODE":d.window&&d.document?"BROWSER":"REST",zo="NODE"===Lo,Fo=String,_o=TypeError,$o=function(t){if(function(t){return z(t)||null===t}(t))return t;throw new _o("Can't set "+Fo(t)+" as a prototype")},Bo=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=function(t,e,n){try{return I(rt(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}}(Object.prototype,"__proto__","set"),t(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return k(n),$o(r),z(n)?(e?t(n,r):n.__proto__=r,n):n}}():void 0),Uo=Bt.f,Ho=St("toStringTag"),Wo=function(t,e,n){t&&!n&&(t=t.prototype),t&&!pt(t,Ho)&&Uo(t,Ho,{configurable:!0,value:e})},Go=St("species"),qo=TypeError,Ko=function(t,e){if(_(e,t))return t;throw new qo("Incorrect invocation")},Xo=TypeError,Yo=St("species"),Jo=function(t,e){var n,r=Dt(t).constructor;return void 0===r||R(n=Dt(r)[Yo])?e:function(t){if(an(t))return t;throw new Xo(et(t)+" is not a constructor")}(n)},Qo=I([].slice),Zo=TypeError,ti=/(?:ipad|iphone|ipod).*applewebkit/i.test(U),ei=d.setImmediate,ni=d.clearImmediate,ri=d.process,oi=d.Dispatch,ii=d.Function,ui=d.MessageChannel,ai=d.String,ci=0,si={},fi="onreadystatechange";p((function(){No=d.location}));var li=function(t){if(pt(si,t)){var e=si[t];delete si[t],e()}},di=function(t){return function(){li(t)}},pi=function(t){li(t.data)},vi=function(t){d.postMessage(ai(t),No.protocol+"//"+No.host)};ei&&ni||(ei=function(t){!function(t,e){if(t<e)throw new Zo("Not enough arguments")}(arguments.length,1);var e=L(t)?t:ii(t),n=Qo(arguments,1);return si[++ci]=function(){Br(e,void 0,n)},Ro(ci),ci},ni=function(t){delete si[t]},zo?Ro=function(t){ri.nextTick(di(t))}:oi&&oi.now?Ro=function(t){oi.now(di(t))}:ui&&!ti?(ko=(Co=new ui).port2,Co.port1.onmessage=pi,Ro=_n(ko.postMessage,ko)):d.addEventListener&&L(d.postMessage)&&!d.importScripts&&No&&"file:"!==No.protocol&&!p(vi)?(Ro=vi,d.addEventListener("message",pi,!1)):Ro=fi in Pt("script")?function(t){qn.appendChild(Pt("script"))[fi]=function(){qn.removeChild(this),li(t)}}:function(t){setTimeout(di(t),0)});var hi={set:ei,clear:ni},yi=Object.getOwnPropertyDescriptor,gi=function(){this.head=null,this.tail=null};gi.prototype={add:function(t){var e={item:t,next:null},n=this.tail;n?n.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var mi,bi,wi,Si,Ei,Oi=gi,xi=/ipad|iphone|ipod/i.test(U)&&"undefined"!=typeof Pebble,Ii=/web0s(?!.*chrome)/i.test(U),ji=hi.set,Ti=d.MutationObserver||d.WebKitMutationObserver,Pi=d.document,Mi=d.process,Ai=d.Promise,Ni=function(t){if(!v)return d[t];var e=yi(d,t);return e&&e.value}("queueMicrotask");if(!Ni){var Ri=new Oi,Ci=function(){var t,e;for(zo&&(t=Mi.domain)&&t.exit();e=Ri.get();)try{e()}catch(t){throw Ri.head&&mi(),t}t&&t.enter()};ti||zo||Ii||!Ti||!Pi?!xi&&Ai&&Ai.resolve?((Si=Ai.resolve(void 0)).constructor=Ai,Ei=_n(Si.then,Si),mi=function(){Ei(Ci)}):zo?mi=function(){Mi.nextTick(Ci)}:(ji=_n(ji,d),mi=function(){ji(Ci)}):(bi=!0,wi=Pi.createTextNode(""),new Ti(Ci).observe(wi,{characterData:!0}),mi=function(){wi.data=bi=!bi}),Ni=function(t){Ri.head||mi(),Ri.add(t)}}var ki=Ni,Di=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Vi=d.Promise;Vi&&Vi.prototype;var Li,zi,Fi,_i,$i=St("species"),Bi=!1,Ui=L(d.PromiseRejectionEvent),Hi=_e("Promise",(function(){var t=Qt(Vi),e=t!==String(Vi);if(!e&&66===K)return!0;if(!K||K<51||!/native code/.test(t)){var n=new Vi((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((n.constructor={})[$i]=r,!(Bi=n.then((function(){}))instanceof r))return!0}return!(e||"BROWSER"!==Lo&&"DENO"!==Lo||Ui)})),Wi={CONSTRUCTOR:Hi,REJECTION_EVENT:Ui,SUBCLASSING:Bi},Gi=TypeError,qi=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw new Gi("Bad Promise constructor");e=t,n=r})),this.resolve=rt(e),this.reject=rt(n)},Ki={f:function(t){return new qi(t)}},Xi=hi.set,Yi="Promise",Ji=Wi.CONSTRUCTOR,Qi=Wi.REJECTION_EVENT,Zi=Wi.SUBCLASSING,tu=se.getterFor(Yi),eu=se.set,nu=Vi&&Vi.prototype,ru=Vi,ou=nu,iu=d.TypeError,uu=d.document,au=d.process,cu=Ki.f,su=cu,fu=!!(uu&&uu.createEvent&&d.dispatchEvent),lu="unhandledrejection",du=function(t){var e;return!(!z(t)||!L(e=t.then))&&e},pu=function(t,e){var n,r,o,i=e.value,u=1===e.state,a=u?t.ok:t.fail,c=t.resolve,s=t.reject,f=t.domain;try{a?(u||(2===e.rejection&&mu(e),e.rejection=1),!0===a?n=i:(f&&f.enter(),n=a(i),f&&(f.exit(),o=!0)),n===t.promise?s(new iu("Promise-chain cycle")):(r=du(n))?g(r,n,c,s):c(n)):s(i)}catch(t){f&&!o&&f.exit(),s(t)}},vu=function(t,e){t.notified||(t.notified=!0,ki((function(){for(var n,r=t.reactions;n=r.get();)pu(n,t);t.notified=!1,e&&!t.rejection&&yu(t)})))},hu=function(t,e,n){var r,o;fu?((r=uu.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),d.dispatchEvent(r)):r={promise:e,reason:n},!Qi&&(o=d["on"+t])?o(r):t===lu&&function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}}("Unhandled promise rejection",n)},yu=function(t){g(Xi,d,(function(){var e,n=t.facade,r=t.value;if(gu(t)&&(e=Di((function(){zo?au.emit("unhandledRejection",r,n):hu(lu,n,r)})),t.rejection=zo||gu(t)?2:1,e.error))throw e.value}))},gu=function(t){return 1!==t.rejection&&!t.parent},mu=function(t){g(Xi,d,(function(){var e=t.facade;zo?au.emit("rejectionHandled",e):hu("rejectionhandled",e,t.value)}))},bu=function(t,e,n){return function(r){t(e,r,n)}},wu=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,vu(t,!0))},Su=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw new iu("Promise can't be resolved itself");var r=du(e);r?ki((function(){var n={done:!1};try{g(r,e,bu(Su,n,t),bu(wu,n,t))}catch(e){wu(n,e,t)}})):(t.value=e,t.state=1,vu(t,!1))}catch(e){wu({done:!1},e,t)}}};if(Ji&&(ou=(ru=function(t){Ko(this,ou),rt(t),g(Li,this);var e=tu(this);try{t(bu(Su,e),bu(wu,e))}catch(t){wu(e,t)}}).prototype,(Li=function(t){eu(this,{type:Yi,done:!1,notified:!1,parent:!1,reactions:new Oi,rejection:!1,state:0,value:null})}).prototype=le(ou,"then",(function(t,e){var n=tu(this),r=cu(Jo(this,ru));return n.parent=!0,r.ok=!L(t)||t,r.fail=L(e)&&e,r.domain=zo?au.domain:void 0,0===n.state?n.reactions.add(r):ki((function(){pu(r,n)})),r.promise})),zi=function(){var t=new Li,e=tu(t);this.promise=t,this.resolve=bu(Su,e),this.reject=bu(wu,e)},Ki.f=cu=function(t){return t===ru||undefined===t?new zi(t):su(t)},L(Vi)&&nu!==Object.prototype)){Fi=nu.then,Zi||le(nu,"then",(function(t,e){var n=this;return new ru((function(t,e){g(Fi,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete nu.constructor}catch(t){}Bo&&Bo(nu,ou)}Be({global:!0,constructor:!0,wrap:!0,forced:Ji},{Promise:ru}),Wo(ru,Yi,!1),_i=F(Yi),v&&_i&&!_i[Go]&&Nn(_i,Go,{configurable:!0,get:function(){return this}});var Eu={},Ou=St("iterator"),xu=Array.prototype,Iu=St("iterator"),ju=function(t){if(!R(t))return ot(t,Iu)||ot(t,"@@iterator")||Eu[Qe(t)]},Tu=TypeError,Pu=function(t,e,n){var r,o;Dt(t);try{if(!(r=ot(t,"return"))){if("throw"===e)throw n;return n}r=g(r,t)}catch(t){o=!0,r=t}if("throw"===e)throw n;if(o)throw r;return Dt(r),n},Mu=TypeError,Au=function(t,e){this.stopped=t,this.result=e},Nu=Au.prototype,Ru=function(t,e,n){var r,o,i,u,a,c,s,f,l=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_RECORD),v=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),y=_n(e,l),m=function(t){return r&&Pu(r,"normal",t),new Au(!0,t)},b=function(t){return d?(Dt(t),h?y(t[0],t[1],m):y(t[0],t[1])):h?y(t,m):y(t)};if(p)r=t.iterator;else if(v)r=t;else{if(!(o=ju(t)))throw new Mu(et(t)+" is not iterable");if(void 0!==(f=o)&&(Eu.Array===f||xu[Ou]===f)){for(i=0,u=Se(t);u>i;i++)if((a=b(t[i]))&&_(Nu,a))return a;return new Au(!1)}r=function(t,e){var n=arguments.length<2?ju(t):e;if(rt(n))return Dt(g(n,t));throw new Tu(et(t)+" is not iterable")}(t,o)}for(c=p?t.next:r.next;!(s=g(c,r)).done;){try{a=b(s.value)}catch(t){Pu(r,"throw",t)}if("object"==typeof a&&a&&_(Nu,a))return a}return new Au(!1)},Cu=St("iterator"),ku=!1;try{var Du=0,Vu={next:function(){return{done:!!Du++}},return:function(){ku=!0}};Vu[Cu]=function(){return this},Array.from(Vu,(function(){throw 2}))}catch(t){}var Lu=function(t,e){try{if(!e&&!ku)return!1}catch(t){return!1}var n=!1;try{var r={};r[Cu]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n},zu=Wi.CONSTRUCTOR||!Lu((function(t){Vi.all(t).then(void 0,(function(){}))}));Be({target:"Promise",stat:!0,forced:zu},{all:function(t){var e=this,n=Ki.f(e),r=n.resolve,o=n.reject,i=Di((function(){var n=rt(e.resolve),i=[],u=0,a=1;Ru(t,(function(t){var c=u++,s=!1;a++,g(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}});var Fu=Wi.CONSTRUCTOR,_u=Vi&&Vi.prototype;if(Be({target:"Promise",proto:!0,forced:Fu,real:!0},{catch:function(t){return this.then(void 0,t)}}),L(Vi)){var $u=F("Promise").prototype.catch;_u.catch!==$u&&le(_u,"catch",$u,{unsafe:!0})}Be({target:"Promise",stat:!0,forced:zu},{race:function(t){var e=this,n=Ki.f(e),r=n.reject,o=Di((function(){var o=rt(e.resolve);Ru(t,(function(t){g(o,e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}}),Be({target:"Promise",stat:!0,forced:Wi.CONSTRUCTOR},{reject:function(t){var e=Ki.f(this);return(0,e.reject)(t),e.promise}});var Bu=Wi.CONSTRUCTOR;function Uu(e,r,o,i,u){return void 0===o&&(o=""),void 0===i&&(i=""),void 0===u&&(u=""),kr(this,void 0,void 0,(function(){var a,c,s,f,l,d,p;return Dr(this,(function(v){switch(v.label){case 0:return r?(e.restoreSelection(),a=e.getMenuConfig("insertVideo"),c=a.onInsertedVideo,s=a.checkVideo,f=a.parseVideoSrc,[4,s(r,o)]):[2];case 1:return"string"==typeof(l=v.sent())?(e.alert(l,"error"),[2]):null==l?[2]:[4,f(r)];case 2:return 0!==(d=v.sent()).trim().indexOf("<iframe ")&&(d=d.replace(/</g,"&lt;").replace(/>/g,"&gt;")),p={type:"video",src:d,poster:o,children:[{text:""}],style:{width:i,height:u}},Promise.resolve().then((function(){t.DomEditor.isSelectedEmptyParagraph(e)&&n.Transforms.removeNodes(e,{mode:"highest"}),n.Transforms.insertNodes(e,p,{mode:"highest"})})),c(p),[2]}}))}))}function Hu(){return jo("w-e-insert-video")}F("Promise"),Be({target:"Promise",stat:!0,forced:Bu},{resolve:function(t){return function(t,e){if(Dt(t),z(e)&&e.constructor===t)return e;var n=Ki.f(t);return(0,n.resolve)(e),n.promise}(this,t)}});var Wu=function(){function e(){this.title=t.t("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=Hu(),this.posterInputId=Hu(),this.buttonId=Hu()}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,e){},e.prototype.isDisabled=function(e){var r=e.selection;return null==r||(!n.Range.isCollapsed(r)||!!t.DomEditor.getSelectedElems(e).some((function(n){var r=t.DomEditor.getNodeType(n);return"pre"===r||("list-item"===r||!!e.isVoid(n))})))},e.prototype.getModalPositionNode=function(t){return null},e.prototype.getModalContentElem=function(e){var n=this,r=this,o=r.srcInputId,i=r.posterInputId,a=r.buttonId,c=Lr(t.genModalInputElems(t.t("videoModule.videoSrc"),o,t.t("videoModule.videoSrcPlaceHolder")),2),s=c[0],f=c[1],l=Lr(t.genModalInputElems(t.t("videoModule.videoPoster"),i,t.t("videoModule.videoPosterPlaceHolder")),2),d=l[0],p=l[1],v=u.default(f),h=u.default(p),y=Lr(t.genModalButtonElems(a,t.t("videoModule.ok")),1)[0];if(null==this.$content){var g=u.default("<div></div>");g.on("click","#".concat(a),(function(t){return kr(n,void 0,void 0,(function(){var n,r;return Dr(this,(function(u){switch(u.label){case 0:return t.preventDefault(),n=g.find("#".concat(o)).val().trim(),r=g.find("#".concat(i)).val().trim(),[4,Uu(e,n,r)];case 1:return u.sent(),e.hidePanelOrModal(),[2]}}))}))})),this.$content=g}var m=this.$content;return m.empty(),m.append(s),m.append(d),m.append(y),v.val(""),h.val(""),setTimeout((function(){v.focus()})),m[0]},e}(),Gu=I([].join),qu=N!==Object||!So("join",",");Be({target:"Array",proto:!0,forced:qu},{join:function(t){return Gu(D(this),void 0===t?",":t)}});var Ku,Xu,Yu,Ju=!p((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Qu=ne("IE_PROTO"),Zu=Object,ta=Zu.prototype,ea=Ju?Zu.getPrototypeOf:function(t){var e=lt(t);if(pt(e,Qu))return e[Qu];var n=e.constructor;return L(n)&&e instanceof n?n.prototype:e instanceof Zu?ta:null},na=St("iterator"),ra=!1;[].keys&&("next"in(Yu=[].keys())?(Xu=ea(ea(Yu)))!==Object.prototype&&(Ku=Xu):ra=!0);var oa=!z(Ku)||p((function(){var t={};return Ku[na].call(t)!==t}));oa&&(Ku={}),L(Ku[na])||le(Ku,na,(function(){return this}));var ia={IteratorPrototype:Ku,BUGGY_SAFARI_ITERATORS:ra},ua=ia.IteratorPrototype,aa=function(){return this},ca=qt.PROPER,sa=qt.CONFIGURABLE,fa=ia.IteratorPrototype,la=ia.BUGGY_SAFARI_ITERATORS,da=St("iterator"),pa="keys",va="values",ha="entries",ya=function(){return this},ga=function(t,e,n,r,o,i,u){!function(t,e,n,r){var o=e+" Iterator";t.prototype=er(ua,{next:S(+!r,n)}),Wo(t,o,!1),Eu[o]=aa}(n,e,r);var a,c,s,f=function(t){if(t===o&&h)return h;if(!la&&t&&t in p)return p[t];switch(t){case pa:case va:case ha:return function(){return new n(this,t)}}return function(){return new n(this)}},l=e+" Iterator",d=!1,p=t.prototype,v=p[da]||p["@@iterator"]||o&&p[o],h=!la&&v||f(o),y="Array"===e&&p.entries||v;if(y&&(a=ea(y.call(new t)))!==Object.prototype&&a.next&&(ea(a)!==fa&&(Bo?Bo(a,fa):L(a[da])||le(a,da,ya)),Wo(a,l,!0)),ca&&o===va&&v&&v.name!==va&&(sa?Ut(p,"name",va):(d=!0,h=function(){return g(v,this)})),o)if(c={values:f(va),keys:i?h:f(pa),entries:f(ha)},u)for(s in c)(la||d||!(s in p))&&le(p,s,c[s]);else Be({target:e,proto:!0,forced:la||d},c);return p[da]!==h&&le(p,da,h,{name:o}),Eu[e]=h,c},ma=function(t,e){return{value:t,done:e}},ba=Bt.f,wa="Array Iterator",Sa=se.set,Ea=se.getterFor(wa),Oa=ga(Array,"Array",(function(t,e){Sa(this,{type:wa,target:D(t),index:0,kind:e})}),(function(){var t=Ea(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=null,ma(void 0,!0);switch(t.kind){case"keys":return ma(n,!1);case"values":return ma(e[n],!1)}return ma([n,e[n]],!1)}),"values"),xa=Eu.Arguments=Eu.Array;if(ir("keys"),ir("values"),ir("entries"),v&&"values"!==xa.name)try{ba(xa,"name",{value:"values"})}catch(t){}var Ia=dn("slice"),ja=St("species"),Ta=Array,Pa=Math.max;Be({target:"Array",proto:!0,forced:!Ia},{slice:function(t,e){var n,r,o,i=D(this),u=Se(i),a=me(t,u),c=me(void 0===e?u:e,u);if(Ue(i)&&(n=i.constructor,(an(n)&&(n===Ta||Ue(n.prototype))||z(n)&&null===(n=n[ja]))&&(n=void 0),n===Ta||void 0===n))return Qo(i,a,c);for(r=new(void 0===n?Ta:n)(Pa(c-a,0)),o=0;a<c;a++,o++)a in i&&Ge(r,o,i[a]);return r.length=o,r}});var Ma=Xr.charAt,Aa="String Iterator",Na=se.set,Ra=se.getterFor(Aa);ga(String,"String",(function(t){Na(this,{type:Aa,string:bn(t),index:0})}),(function(){var t,e=Ra(this),n=e.string,r=e.index;return r>=n.length?ma(void 0,!0):(t=Ma(n,r),e.index+=t.length,ma(t,!1))}));var Ca=!p((function(){return Object.isExtensible(Object.preventExtensions({}))})),ka=function(t,e,n){for(var r in e)le(t,r,e[r],n);return t},Da=Me.f,Va="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],La={f:function(t){return Va&&"Window"===P(t)?function(t){try{return Da(t)}catch(t){return Qo(Va)}}(t):Da(D(t))}},za=p((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),Fa=Object.isExtensible,_a=p((function(){Fa(1)}))||za?function(t){return!!z(t)&&((!za||"ArrayBuffer"!==P(t))&&(!Fa||Fa(t)))}:Fa,$a=c((function(t){var e=Bt.f,n=!1,r=gt("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=Me.f,e=I([].splice),o={};o[r]=1,t(o).length&&(Me.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},Be({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:La.f}))},fastKey:function(t,e){if(!z(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!pt(t,r)){if(!_a(t))return"F";if(!e)return"E";i(t)}return t[r].objectID},getWeakData:function(t,e){if(!pt(t,r)){if(!_a(t))return!0;if(!e)return!1;i(t)}return t[r].weakData},onFreeze:function(t){return Ca&&n&&_a(t)&&!pt(t,r)&&i(t),t}};re[r]=!0})),Ba=$a.getWeakData,Ua=se.set,Ha=se.getterFor,Wa=Un.find,Ga=Un.findIndex,qa=I([].splice),Ka=0,Xa=function(t){return t.frozen||(t.frozen=new Ya)},Ya=function(){this.entries=[]},Ja=function(t,e){return Wa(t.entries,(function(t){return t[0]===e}))};Ya.prototype={get:function(t){var e=Ja(this,t);if(e)return e[1]},has:function(t){return!!Ja(this,t)},set:function(t,e){var n=Ja(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=Ga(this.entries,(function(e){return e[0]===t}));return~e&&qa(this.entries,e,1),!!~e}};var Qa,Za={getConstructor:function(t,e,n,r){var o=t((function(t,o){Ko(t,i),Ua(t,{type:e,id:Ka++,frozen:null}),R(o)||Ru(o,t[r],{that:t,AS_ENTRIES:n})})),i=o.prototype,u=Ha(e),a=function(t,e,n){var r=u(t),o=Ba(Dt(e),!0);return!0===o?Xa(r).set(e,n):o[r.id]=n,t};return ka(i,{delete:function(t){var e=u(this);if(!z(t))return!1;var n=Ba(t);return!0===n?Xa(e).delete(t):n&&pt(n,e.id)&&delete n[e.id]},has:function(t){var e=u(this);if(!z(t))return!1;var n=Ba(t);return!0===n?Xa(e).has(t):n&&pt(n,e.id)}}),ka(i,n?{get:function(t){var e=u(this);if(z(t)){var n=Ba(t);if(!0===n)return Xa(e).get(t);if(n)return n[e.id]}},set:function(t,e){return a(this,t,e)}}:{add:function(t){return a(this,t,!0)}}),o}},tc=se.enforce,ec=Object,nc=Array.isArray,rc=ec.isExtensible,oc=ec.isFrozen,ic=ec.isSealed,uc=ec.freeze,ac=ec.seal,cc=!d.ActiveXObject&&"ActiveXObject"in d,sc=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},fc=function(t,e,n){var r=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=r?"set":"add",u=d[t],a=u&&u.prototype,c=u,s={},f=function(t){var e=I(a[t]);le(a,t,"add"===t?function(t){return e(this,0===t?0:t),this}:"delete"===t?function(t){return!(o&&!z(t))&&e(this,0===t?0:t)}:"get"===t?function(t){return o&&!z(t)?void 0:e(this,0===t?0:t)}:"has"===t?function(t){return!(o&&!z(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this})};if(_e(t,!L(u)||!(o||a.forEach&&!p((function(){(new u).entries().next()})))))c=n.getConstructor(e,t,r,i),$a.enable();else if(_e(t,!0)){var l=new c,v=l[i](o?{}:-0,1)!==l,h=p((function(){l.has(1)})),y=Lu((function(t){new u(t)})),g=!o&&p((function(){for(var t=new u,e=5;e--;)t[i](e,e);return!t.has(-0)}));y||((c=e((function(t,e){Ko(t,a);var n=function(t,e,n){var r,o;return Bo&&L(r=e.constructor)&&r!==n&&z(o=r.prototype)&&o!==n.prototype&&Bo(t,o),t}(new u,t,c);return R(e)||Ru(e,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=a,a.constructor=c),(h||g)&&(f("delete"),f("has"),r&&f("get")),(g||v)&&f(i),o&&a.clear&&delete a.clear}return s[t]=c,Be({global:!0,constructor:!0,forced:c!==u},s),Wo(c,t),o||n.setStrong(c,t,r),c}("WeakMap",sc,Za),lc=fc.prototype,dc=I(lc.set);if(te)if(cc){Qa=Za.getConstructor(sc,"WeakMap",!0),$a.enable();var pc=I(lc.delete),vc=I(lc.has),hc=I(lc.get);ka(lc,{delete:function(t){if(z(t)&&!rc(t)){var e=tc(this);return e.frozen||(e.frozen=new Qa),pc(this,t)||e.frozen.delete(t)}return pc(this,t)},has:function(t){if(z(t)&&!rc(t)){var e=tc(this);return e.frozen||(e.frozen=new Qa),vc(this,t)||e.frozen.has(t)}return vc(this,t)},get:function(t){if(z(t)&&!rc(t)){var e=tc(this);return e.frozen||(e.frozen=new Qa),vc(this,t)?hc(this,t):e.frozen.get(t)}return hc(this,t)},set:function(t,e){if(z(t)&&!rc(t)){var n=tc(this);n.frozen||(n.frozen=new Qa),vc(this,t)?dc(this,t,e):n.frozen.set(t,e)}else dc(this,t,e);return this}})}else Ca&&p((function(){var t=uc([]);return dc(new fc,t,1),!oc(t)}))&&ka(lc,{set:function(t,e){var n;return nc(t)&&(oc(t)?n=uc:ic(t)&&(n=ac)),dc(this,t,e),n&&n(t),this}});var yc=St("iterator"),gc=Oa.values,mc=function(t,e){if(t){if(t[yc]!==gc)try{Ut(t,yc,gc)}catch(e){t[yc]=gc}if(Wo(t,e,!0),go[e])for(var n in Oa)if(t[n]!==Oa[n])try{Ut(t,n,Oa[n])}catch(e){t[n]=Oa[n]}}};for(var bc in go)mc(d[bc]&&d[bc].prototype,bc);function wc(t){return t.getMenuConfig("uploadVideo")}mc(wo,"DOMTokenList");var Sc=new WeakMap;function Ec(e,n){return kr(this,void 0,void 0,(function(){var r,o,i,u;return Dr(this,(function(a){switch(a.label){case 0:return r=function(e){var n=Sc.get(e);if(null!=n)return n;var r=wc(e),o=r.onSuccess,i=r.onProgress,u=r.onFailed,a=r.customInsert,c=r.onError;return n=t.createUploader(Cr(Cr({},r),{onProgress:function(t){e.showProgressBar(t),i&&i(t)},onSuccess:function(t,n){if(a)return a(n,(function(t,n){return Uu(e,t,n)})),void o(t,n);var r=n.errno,i=void 0===r?1:r,c=n.data,s=void 0===c?{}:c;if(0===i){var f=s.url,l=void 0===f?"":f,d=s.poster;Uu(e,l,void 0===d?"":d),o(t,n)}else u(t,n)},onError:function(t,e,n){c(t,e,n)}})),Sc.set(e,n),n}(e),o=n.name,i=n.type,u=n.size,r.addFile({name:o,type:i,size:u,data:n}),[4,r.upload()];case 1:return a.sent(),[2]}}))}))}var Oc=function(){function e(){this.title=t.t("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 e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.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 Uu(t,e,n)}));else{var a="";o.length>0&&(a='accept="'.concat(o.join(", "),'"'));var c=u.default("body"),s=u.default('<input type="file" '.concat(a," multiple/>"));s.hide(),c.append(s),s.click(),s.on("change",(function(){var e=s[0].files;!function(t,e){var n,r,o,i;kr(this,void 0,void 0,(function(){var u,a,c,s,f,l,d;return Dr(this,(function(p){switch(p.label){case 0:if(null==e)return[2];u=Array.prototype.slice.call(e),a=wc(t).customUpload,p.label=1;case 1:p.trys.push([1,12,13,18]),c=!0,s=zr(u),p.label=2;case 2:return[4,s.next()];case 3:if(f=p.sent(),n=f.done)return[3,11];i=f.value,c=!1,p.label=4;case 4:return p.trys.push([4,,9,10]),l=i,a?[4,a(l,(function(e,n){return Uu(t,e,n)}))]:[3,6];case 5:return p.sent(),[3,8];case 6:return[4,Ec(t,l)];case 7:p.sent(),p.label=8;case 8:return[3,10];case 9:return c=!0,[7];case 10:return[3,2];case 11:return[3,18];case 12:return d=p.sent(),r={error:d},[3,18];case 13:return p.trys.push([13,,16,17]),c||n||!(o=s.return)?[3,15]:[4,o.call(s)];case 14:p.sent(),p.label=15;case 15:return[3,17];case 16:if(r)throw r.error;return[7];case 17:return[7];case 18:return[2]}}))}))}(t,e)}))}},e.prototype.isDisabled=function(e){var r=e.selection;return null==r||(!n.Range.isCollapsed(r)||!!t.DomEditor.getSelectedElems(e).some((function(n){var r=t.DomEditor.getNodeType(n);return"pre"===r||("list-item"===r||!!e.isVoid(n))})))},e.prototype.getMenuConfig=function(t){return t.getMenuConfig("uploadVideo")},e}(),xc={key:"insertVideo",factory:function(){return new Wu},config:{onInsertedVideo:function(t){},checkVideo:function(t,e){return!0},parseVideoSrc:function(t){return t}}},Ic={key:"uploadVideo",factory:function(){return new Oc},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("'".concat(t.name,"' upload failed"),e)},onError:function(t,e,n){console.error("'".concat(t.name," upload error"),e,n)}}},jc={key:"editVideoSize",factory:function(){return new Mo}},Tc={key:"editVideoSrc",factory:function(){return new Do}};function Pc(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:""}]}}var Mc={selector:'div[data-w-e-type="video"]',parseElemHtml:function(t,e,n){var r=u.default(t),o="",i="",a="auto",c="auto",s={},f=r.find("iframe");if(f.length>0)return a=f.attr("width")||"auto",c=f.attr("height")||"auto",s=To(s=f.attr("style")||""),Pc(o=f[0].outerHTML,i,a,c,s);var l=r.find("video");return(o=l.attr("src")||"")||l.length>0&&(o=l.find("source").attr("src")||""),a=l.attr("width")||"auto",c=l.attr("height")||"auto",Pc(o,i=l.attr("poster")||"",a,c,s=To(s=l.attr("style")||""))}};var Ac=Oe.includes,Nc=p((function(){return!Array(1).includes()}));Be({target:"Array",proto:!0,forced:Nc},{includes:function(t){return Ac(this,t,arguments.length>1?arguments[1]:void 0)}}),ir("includes");var Rc={renderElems:[{type:"video",renderElem:function(e,n,r){var i,u=e,a=u.src,c=void 0===a?"":a,s=u.poster,f=void 0===s?"":s,l=u.key,d=void 0===l?"":l,p=u.width,v=void 0===p?"auto":p,h=u.height,y=void 0===h?"auto":h,g=u.style,m=void 0===g?{}:g,b=u.textAlign,w=void 0===b?"center":b,S=t.DomEditor.isNodeSelected(r,e);if(0===c.trim().indexOf("<iframe ")){var E=Mn(c,v,y,m);i=o.jsx("div",{className:"w-e-textarea-video-container","data-selected":S?"true":"",style:{textAlign:w},innerHTML:E})}else{var O=o.jsx("video",{key:d,poster:f,controls:!0,style:m},o.jsx("source",{src:c,type:"video/mp4"}),"Sorry, your browser doesn't support embedded videos.\n 抱歉,浏览器不支持 video 视频");"auto"!==v&&(O.data.width=v),"auto"!==y&&(O.data.height=y),i=o.jsx("div",{className:"w-e-textarea-video-container","data-selected":S?"true":"",style:{textAlign:w}},O)}return o.h("div",{props:{contentEditable:!1},on:{mousedown:function(t){return t.preventDefault()}}},i)}}],elemsToHtml:[An],preParseHtml:[{selector:"iframe,video,p",preParseHtml:function(t){var e=u.default(t),n=e;if("p"===Pn(e)){var r=e.children();if(1===r.length){var o=r[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(n=u.default(o))}}var a=Pn(n);if("iframe"!==a&&"video"!==a)return n[0];if("video"===n.parent().attr("data-w-e-type"))return n[0];var c=u.default('<div data-w-e-type="video" data-w-e-is-void style="text-align: center;"></div>');return c.append(n),c[0]}}],parseElemsHtml:[Mc],menus:[xc,Ic,jc,Tc],editorPlugin:function(e){var r=e.isVoid,o=e.normalizeNode,i=e;return i.isVoid=function(t){return"video"===t.type||r(t)},i.normalizeNode=function(e){var r=Lr(e,2),u=r[0],a=r[1];"video"===t.DomEditor.getNodeType(u)&&(t.DomEditor.isLastNode(i,u)&&n.Transforms.insertNodes(i,t.DomEditor.genEmptyParagraph(),{at:[a[0]+1]}));return o([u,a])},i}};return Rc}));
1
+ !function(t,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("@wangeditor-next/core"),require("dom7"),require("slate"),require("nanoid"),require("snabbdom")):"function"==typeof define&&define.amd?define(["@wangeditor-next/core","dom7","slate","nanoid","snabbdom"],r):(t="undefined"!=typeof globalThis?globalThis:t||self).WangEditorVideoModule=r(t.core,t.$,t.slate,t.nanoid,t.snabbdom)}(this,(function(t,r,e,n,o){"use strict";t.i18nAddResources("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.i18nAddResources("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",edit:"编辑视频",width:"宽度",height:"高度"}});var i,u,c="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},a={};function f(){if(u)return i;u=1;var t=function(t){return t&&t.Math===Math&&t};return i=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof c&&c)||t("object"==typeof i&&i)||function(){return this}()||Function("return this")()}var s,l,d,v,p,h,y,g,m={};function b(){return l?s:(l=1,s=function(t){try{return!!t()}catch(t){return!0}})}function w(){if(v)return d;v=1;var t=b();return d=!t((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))}function S(){if(h)return p;h=1;var t=b();return p=!t((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))}function E(){if(g)return y;g=1;var t=S(),r=Function.prototype.call;return y=t?r.bind(r):function(){return r.apply(r,arguments)},y}var x,O,I,T,j,P,M,A,N,R,C,k,D,V,L,z,F,_,$,B,U,H,W,G,q,K,X,Y,J,Q,Z,tt,rt,et,nt,ot,it,ut,ct,at,ft,st={};function lt(){return I?O:(I=1,O=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}})}function dt(){if(j)return T;j=1;var t=S(),r=Function.prototype,e=r.call,n=t&&r.bind.bind(e,e);return T=t?n:function(t){return function(){return e.apply(t,arguments)}},T}function vt(){if(M)return P;M=1;var t=dt(),r=t({}.toString),e=t("".slice);return P=function(t){return e(r(t),8,-1)}}function pt(){if(N)return A;N=1;var t=dt(),r=b(),e=vt(),n=Object,o=t("".split);return A=r((function(){return!n("z").propertyIsEnumerable(0)}))?function(t){return"String"===e(t)?o(t,""):n(t)}:n}function ht(){return C?R:(C=1,R=function(t){return null==t})}function yt(){if(D)return k;D=1;var t=ht(),r=TypeError;return k=function(e){if(t(e))throw new r("Can't call method on "+e);return e}}function gt(){if(L)return V;L=1;var t=pt(),r=yt();return V=function(e){return t(r(e))}}function mt(){if(F)return z;F=1;var t="object"==typeof document&&document.all;return z=void 0===t&&void 0!==t?function(r){return"function"==typeof r||r===t}:function(t){return"function"==typeof t}}function bt(){if($)return _;$=1;var t=mt();return _=function(r){return"object"==typeof r?null!==r:t(r)}}function wt(){if(U)return B;U=1;var t=f(),r=mt();return B=function(e,n){return arguments.length<2?(o=t[e],r(o)?o:void 0):t[e]&&t[e][n];var o},B}function St(){if(W)return H;W=1;var t=dt();return H=t({}.isPrototypeOf)}function Et(){if(q)return G;q=1;var t=f().navigator,r=t&&t.userAgent;return G=r?String(r):""}function xt(){if(X)return K;X=1;var t,r,e=f(),n=Et(),o=e.process,i=e.Deno,u=o&&o.versions||i&&i.version,c=u&&u.v8;return c&&(r=(t=c.split("."))[0]>0&&t[0]<4?1:+(t[0]+t[1])),!r&&n&&(!(t=n.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=n.match(/Chrome\/(\d+)/))&&(r=+t[1]),K=r}function Ot(){if(J)return Y;J=1;var t=xt(),r=b(),e=f().String;return Y=!!Object.getOwnPropertySymbols&&!r((function(){var r=Symbol("symbol detection");return!e(r)||!(Object(r)instanceof Symbol)||!Symbol.sham&&t&&t<41}))}function It(){if(Z)return Q;Z=1;var t=Ot();return Q=t&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function Tt(){if(rt)return tt;rt=1;var t=wt(),r=mt(),e=St(),n=It(),o=Object;return tt=n?function(t){return"symbol"==typeof t}:function(n){var i=t("Symbol");return r(i)&&e(i.prototype,o(n))}}function jt(){if(nt)return et;nt=1;var t=String;return et=function(r){try{return t(r)}catch(t){return"Object"}}}function Pt(){if(it)return ot;it=1;var t=mt(),r=jt(),e=TypeError;return ot=function(n){if(t(n))return n;throw new e(r(n)+" is not a function")}}function Mt(){if(ct)return ut;ct=1;var t=Pt(),r=ht();return ut=function(e,n){var o=e[n];return r(o)?void 0:t(o)}}function At(){if(ft)return at;ft=1;var t=E(),r=mt(),e=bt(),n=TypeError;return at=function(o,i){var u,c;if("string"===i&&r(u=o.toString)&&!e(c=t(u,o)))return c;if(r(u=o.valueOf)&&!e(c=t(u,o)))return c;if("string"!==i&&r(u=o.toString)&&!e(c=t(u,o)))return c;throw new n("Can't convert object to primitive value")}}var Nt,Rt,Ct,kt,Dt,Vt,Lt,zt,Ft,_t,$t,Bt,Ut,Ht,Wt,Gt,qt,Kt,Xt,Yt,Jt,Qt,Zt,tr,rr={exports:{}};function er(){return Rt?Nt:(Rt=1,Nt=!1)}function nr(){if(kt)return Ct;kt=1;var t=f(),r=Object.defineProperty;return Ct=function(e,n){try{r(t,e,{value:n,configurable:!0,writable:!0})}catch(r){t[e]=n}return n}}function or(){if(Dt)return rr.exports;Dt=1;var t=er(),r=f(),e=nr(),n="__core-js_shared__",o=rr.exports=r[n]||e(n,{});return(o.versions||(o.versions=[])).push({version:"3.38.1",mode:t?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"}),rr.exports}function ir(){if(Lt)return Vt;Lt=1;var t=or();return Vt=function(r,e){return t[r]||(t[r]=e||{})}}function ur(){if(Ft)return zt;Ft=1;var t=yt(),r=Object;return zt=function(e){return r(t(e))}}function cr(){if($t)return _t;$t=1;var t=dt(),r=ur(),e=t({}.hasOwnProperty);return _t=Object.hasOwn||function(t,n){return e(r(t),n)}}function ar(){if(Ut)return Bt;Ut=1;var t=dt(),r=0,e=Math.random(),n=t(1..toString);return Bt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+n(++r+e,36)}}function fr(){if(Wt)return Ht;Wt=1;var t=f(),r=ir(),e=cr(),n=ar(),o=Ot(),i=It(),u=t.Symbol,c=r("wks"),a=i?u.for||u:u&&u.withoutSetter||n;return Ht=function(t){return e(c,t)||(c[t]=o&&e(u,t)?u[t]:a("Symbol."+t)),c[t]}}function sr(){if(qt)return Gt;qt=1;var t=E(),r=bt(),e=Tt(),n=Mt(),o=At(),i=fr(),u=TypeError,c=i("toPrimitive");return Gt=function(i,a){if(!r(i)||e(i))return i;var f,s=n(i,c);if(s){if(void 0===a&&(a="default"),f=t(s,i,a),!r(f)||e(f))return f;throw new u("Can't convert object to primitive value")}return void 0===a&&(a="number"),o(i,a)}}function lr(){if(Xt)return Kt;Xt=1;var t=sr(),r=Tt();return Kt=function(e){var n=t(e,"string");return r(n)?n:n+""}}function dr(){if(Jt)return Yt;Jt=1;var t=f(),r=bt(),e=t.document,n=r(e)&&r(e.createElement);return Yt=function(t){return n?e.createElement(t):{}}}function vr(){if(Zt)return Qt;Zt=1;var t=w(),r=b(),e=dr();return Qt=!t&&!r((function(){return 7!==Object.defineProperty(e("div"),"a",{get:function(){return 7}}).a}))}function pr(){if(tr)return m;tr=1;var t=w(),r=E(),e=function(){if(x)return st;x=1;var t={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,e=r&&!t.call({1:2},1);return st.f=e?function(t){var e=r(this,t);return!!e&&e.enumerable}:t,st}(),n=lt(),o=gt(),i=lr(),u=cr(),c=vr(),a=Object.getOwnPropertyDescriptor;return m.f=t?a:function(t,f){if(t=o(t),f=i(f),c)try{return a(t,f)}catch(t){}if(u(t,f))return n(!r(e.f,t,f),t[f])},m}var hr,yr,gr,mr,br,wr,Sr,Er={};function xr(){if(yr)return hr;yr=1;var t=w(),r=b();return hr=t&&r((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))}function Or(){if(mr)return gr;mr=1;var t=bt(),r=String,e=TypeError;return gr=function(n){if(t(n))return n;throw new e(r(n)+" is not an object")}}function Ir(){if(br)return Er;br=1;var t=w(),r=vr(),e=xr(),n=Or(),o=lr(),i=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,a="enumerable",f="configurable",s="writable";return Er.f=t?e?function(t,r,e){if(n(t),r=o(r),n(e),"function"==typeof t&&"prototype"===r&&"value"in e&&s in e&&!e[s]){var i=c(t,r);i&&i[s]&&(t[r]=e.value,e={configurable:f in e?e[f]:i[f],enumerable:a in e?e[a]:i[a],writable:!1})}return u(t,r,e)}:u:function(t,e,c){if(n(t),e=o(e),n(c),r)try{return u(t,e,c)}catch(t){}if("get"in c||"set"in c)throw new i("Accessors not supported");return"value"in c&&(t[e]=c.value),t},Er}function Tr(){if(Sr)return wr;Sr=1;var t=w(),r=Ir(),e=lt();return wr=t?function(t,n,o){return r.f(t,n,e(1,o))}:function(t,r,e){return t[r]=e,t}}var jr,Pr,Mr,Ar,Nr,Rr,Cr,kr,Dr,Vr,Lr,zr,Fr,_r,$r,Br={exports:{}};function Ur(){if(Pr)return jr;Pr=1;var t=w(),r=cr(),e=Function.prototype,n=t&&Object.getOwnPropertyDescriptor,o=r(e,"name"),i=o&&"something"===function(){}.name,u=o&&(!t||t&&n(e,"name").configurable);return jr={EXISTS:o,PROPER:i,CONFIGURABLE:u}}function Hr(){if(Ar)return Mr;Ar=1;var t=dt(),r=mt(),e=or(),n=t(Function.toString);return r(e.inspectSource)||(e.inspectSource=function(t){return n(t)}),Mr=e.inspectSource}function Wr(){if(Rr)return Nr;Rr=1;var t=f(),r=mt(),e=t.WeakMap;return Nr=r(e)&&/native code/.test(String(e))}function Gr(){if(kr)return Cr;kr=1;var t=ir(),r=ar(),e=t("keys");return Cr=function(t){return e[t]||(e[t]=r(t))}}function qr(){return Vr?Dr:(Vr=1,Dr={})}function Kr(){if(zr)return Lr;zr=1;var t,r,e,n=Wr(),o=f(),i=bt(),u=Tr(),c=cr(),a=or(),s=Gr(),l=qr(),d="Object already initialized",v=o.TypeError,p=o.WeakMap;if(n||a.state){var h=a.state||(a.state=new p);h.get=h.get,h.has=h.has,h.set=h.set,t=function(t,r){if(h.has(t))throw new v(d);return r.facade=t,h.set(t,r),r},r=function(t){return h.get(t)||{}},e=function(t){return h.has(t)}}else{var y=s("state");l[y]=!0,t=function(t,r){if(c(t,y))throw new v(d);return r.facade=t,u(t,y,r),r},r=function(t){return c(t,y)?t[y]:{}},e=function(t){return c(t,y)}}return Lr={set:t,get:r,has:e,enforce:function(n){return e(n)?r(n):t(n,{})},getterFor:function(t){return function(e){var n;if(!i(e)||(n=r(e)).type!==t)throw new v("Incompatible receiver, "+t+" required");return n}}}}function Xr(){if(Fr)return Br.exports;Fr=1;var t=dt(),r=b(),e=mt(),n=cr(),o=w(),i=Ur().CONFIGURABLE,u=Hr(),c=Kr(),a=c.enforce,f=c.get,s=String,l=Object.defineProperty,d=t("".slice),v=t("".replace),p=t([].join),h=o&&!r((function(){return 8!==l((function(){}),"length",{value:8}).length})),y=String(String).split("String"),g=Br.exports=function(t,r,e){"Symbol("===d(s(r),0,7)&&(r="["+v(s(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),e&&e.getter&&(r="get "+r),e&&e.setter&&(r="set "+r),(!n(t,"name")||i&&t.name!==r)&&(o?l(t,"name",{value:r,configurable:!0}):t.name=r),h&&e&&n(e,"arity")&&t.length!==e.arity&&l(t,"length",{value:e.arity});try{e&&n(e,"constructor")&&e.constructor?o&&l(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var u=a(t);return n(u,"source")||(u.source=p(y,"string"==typeof r?r:"")),t};return Function.prototype.toString=g((function(){return e(this)&&f(this).source||u(this)}),"toString"),Br.exports}function Yr(){if($r)return _r;$r=1;var t=mt(),r=Ir(),e=Xr(),n=nr();return _r=function(o,i,u,c){c||(c={});var a=c.enumerable,f=void 0!==c.name?c.name:i;if(t(u)&&e(u,f,c),c.global)a?o[i]=u:n(i,u);else{try{c.unsafe?o[i]&&(a=!0):delete o[i]}catch(t){}a?o[i]=u:r.f(o,i,{value:u,enumerable:!1,configurable:!c.nonConfigurable,writable:!c.nonWritable})}return o}}var Jr,Qr,Zr,te,re,ee,ne,oe,ie,ue,ce,ae,fe,se,le,de,ve,pe={};function he(){if(te)return Zr;te=1;var t=function(){if(Qr)return Jr;Qr=1;var t=Math.ceil,r=Math.floor;return Jr=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}}();return Zr=function(r){var e=+r;return e!=e||0===e?0:t(e)}}function ye(){if(ee)return re;ee=1;var t=he(),r=Math.max,e=Math.min;return re=function(n,o){var i=t(n);return i<0?r(i+o,0):e(i,o)}}function ge(){if(oe)return ne;oe=1;var t=he(),r=Math.min;return ne=function(e){var n=t(e);return n>0?r(n,9007199254740991):0}}function me(){if(ue)return ie;ue=1;var t=ge();return ie=function(r){return t(r.length)}}function be(){if(ae)return ce;ae=1;var t=gt(),r=ye(),e=me(),n=function(n){return function(o,i,u){var c=t(o),a=e(c);if(0===a)return!n&&-1;var f,s=r(u,a);if(n&&i!=i){for(;a>s;)if((f=c[s++])!=f)return!0}else for(;a>s;s++)if((n||s in c)&&c[s]===i)return n||s||0;return!n&&-1}};return ce={includes:n(!0),indexOf:n(!1)}}function we(){if(se)return fe;se=1;var t=dt(),r=cr(),e=gt(),n=be().indexOf,o=qr(),i=t([].push);return fe=function(t,u){var c,a=e(t),f=0,s=[];for(c in a)!r(o,c)&&r(a,c)&&i(s,c);for(;u.length>f;)r(a,c=u[f++])&&(~n(s,c)||i(s,c));return s}}function Se(){return de?le:(de=1,le=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function Ee(){if(ve)return pe;ve=1;var t=we(),r=Se().concat("length","prototype");return pe.f=Object.getOwnPropertyNames||function(e){return t(e,r)},pe}var xe,Oe,Ie,Te,je,Pe,Me,Ae,Ne,Re,Ce,ke,De,Ve,Le,ze,Fe,_e,$e,Be,Ue,He,We,Ge,qe,Ke,Xe,Ye,Je={};function Qe(){if(Ie)return Oe;Ie=1;var t=wt(),r=dt(),e=Ee(),n=(xe||(xe=1,Je.f=Object.getOwnPropertySymbols),Je),o=Or(),i=r([].concat);return Oe=t("Reflect","ownKeys")||function(t){var r=e.f(o(t)),u=n.f;return u?i(r,u(t)):r}}function Ze(){if(je)return Te;je=1;var t=cr(),r=Qe(),e=pr(),n=Ir();return Te=function(o,i,u){for(var c=r(i),a=n.f,f=e.f,s=0;s<c.length;s++){var l=c[s];t(o,l)||u&&t(u,l)||a(o,l,f(i,l))}}}function tn(){if(Me)return Pe;Me=1;var t=b(),r=mt(),e=/#|\.prototype\./,n=function(e,n){var a=i[o(e)];return a===c||a!==u&&(r(n)?t(n):!!n)},o=n.normalize=function(t){return String(t).replace(e,".").toLowerCase()},i=n.data={},u=n.NATIVE="N",c=n.POLYFILL="P";return Pe=n}function rn(){if(Ne)return Ae;Ne=1;var t=f(),r=pr().f,e=Tr(),n=Yr(),o=nr(),i=Ze(),u=tn();return Ae=function(c,a){var f,s,l,d,v,p=c.target,h=c.global,y=c.stat;if(f=h?t:y?t[p]||o(p,{}):t[p]&&t[p].prototype)for(s in a){if(d=a[s],l=c.dontCallGetSet?(v=r(f,s))&&v.value:f[s],!u(h?s:p+(y?".":"#")+s,c.forced)&&void 0!==l){if(typeof d==typeof l)continue;i(d,l)}(c.sham||l&&l.sham)&&e(d,"sham",!0),n(f,s,d,c)}}}function en(){if(Ce)return Re;Ce=1;var t=vt();return Re=Array.isArray||function(r){return"Array"===t(r)}}function nn(){if(De)return ke;De=1;var t=TypeError;return ke=function(r){if(r>9007199254740991)throw t("Maximum allowed index exceeded");return r}}function on(){if(Le)return Ve;Le=1;var t=w(),r=Ir(),e=lt();return Ve=function(n,o,i){t?r.f(n,o,e(0,i)):n[o]=i}}function un(){if(Fe)return ze;Fe=1;var t={};return t[fr()("toStringTag")]="z",ze="[object z]"===String(t)}function cn(){if($e)return _e;$e=1;var t=un(),r=mt(),e=vt(),n=fr()("toStringTag"),o=Object,i="Arguments"===e(function(){return arguments}());return _e=t?e:function(t){var u,c,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(c=function(t,r){try{return t[r]}catch(t){}}(u=o(t),n))?c:i?e(u):"Object"===(a=e(u))&&r(u.callee)?"Arguments":a}}function an(){if(Ue)return Be;Ue=1;var t=dt(),r=b(),e=mt(),n=cn(),o=wt(),i=Hr(),u=function(){},c=o("Reflect","construct"),a=/^\s*(?:class|function)\b/,f=t(a.exec),s=!a.test(u),l=function(t){if(!e(t))return!1;try{return c(u,[],t),!0}catch(t){return!1}},d=function(t){if(!e(t))return!1;switch(n(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return s||!!f(a,i(t))}catch(t){return!0}};return d.sham=!0,Be=!c||r((function(){var t;return l(l.call)||!l(Object)||!l((function(){t=!0}))||t}))?d:l}function fn(){if(We)return He;We=1;var t=en(),r=an(),e=bt(),n=fr()("species"),o=Array;return He=function(i){var u;return t(i)&&(u=i.constructor,(r(u)&&(u===o||t(u.prototype))||e(u)&&null===(u=u[n]))&&(u=void 0)),void 0===u?o:u}}function sn(){if(qe)return Ge;qe=1;var t=fn();return Ge=function(r,e){return new(t(r))(0===e?0:e)}}function ln(){if(Xe)return Ke;Xe=1;var t=b(),r=fr(),e=xt(),n=r("species");return Ke=function(r){return e>=51||!t((function(){var t=[];return(t.constructor={})[n]=function(){return{foo:1}},1!==t[r](Boolean).foo}))}}!function(){if(Ye)return a;Ye=1;var t=rn(),r=b(),e=en(),n=bt(),o=ur(),i=me(),u=nn(),c=on(),f=sn(),s=ln(),l=fr(),d=xt(),v=l("isConcatSpreadable"),p=d>=51||!r((function(){var t=[];return t[v]=!1,t.concat()[0]!==t})),h=function(t){if(!n(t))return!1;var r=t[v];return void 0!==r?!!r:e(t)};t({target:"Array",proto:!0,arity:1,forced:!p||!s("concat")},{concat:function(t){var r,e,n,a,s,l=o(this),d=f(l,0),v=0;for(r=-1,n=arguments.length;r<n;r++)if(h(s=-1===r?l:arguments[r]))for(a=i(s),u(v+a),e=0;e<a;e++,v++)e in s&&c(d,v,s[e]);else u(v+1),c(d,v++,s);return d.length=v,d}})}();var dn,vn,pn,hn,yn,gn,mn,bn,wn,Sn={};function En(){if(vn)return dn;vn=1;var t=cn(),r=String;return dn=function(e){if("Symbol"===t(e))throw new TypeError("Cannot convert a Symbol value to a string");return r(e)}}function xn(){return hn?pn:(hn=1,pn="\t\n\v\f\r                 \u2028\u2029\ufeff")}!function(){if(wn)return Sn;wn=1;var t=rn(),r=function(){if(gn)return yn;gn=1;var t=dt(),r=yt(),e=En(),n=xn(),o=t("".replace),i=RegExp("^["+n+"]+"),u=RegExp("(^|[^"+n+"])["+n+"]+$"),c=function(t){return function(n){var c=e(r(n));return 1&t&&(c=o(c,i,"")),2&t&&(c=o(c,u,"$1")),c}};return yn={start:c(1),end:c(2),trim:c(3)}}().trim,e=function(){if(bn)return mn;bn=1;var t=Ur().PROPER,r=b(),e=xn();return mn=function(n){return r((function(){return!!e[n]()||"​…᠎"!=="​…᠎"[n]()||t&&e[n].name!==n}))}}();t({target:"String",proto:!0,forced:e("trim")},{trim:function(){return r(this)}})}();var On,In,Tn={};function jn(t){return t.length?t[0].tagName.toLowerCase():""}function Pn(t,e,n,o){void 0===e&&(e="auto"),void 0===n&&(n="auto"),void 0===o&&(o={});var i=r(t),u=o.width,c=void 0===u?"":u,a=o.height,f=void 0===a?"":a,s="";return c&&(s+="width: ".concat(c,";")),f&&(s+="height: ".concat(f,";")),i.attr("width",e),i.attr("height",n),i.attr("style",s),i[0].outerHTML}In||(In=1,function(){if(On)return Tn;On=1;var t=rn(),r=f();t({global:!0,forced:r.globalThis!==r},{globalThis:r})}()),r.append&&(r.fn.append=r.append),r.on&&(r.fn.on=r.on),r.focus&&(r.fn.focus=r.focus),r.attr&&(r.fn.attr=r.attr),r.val&&(r.fn.val=r.val),r.html&&(r.fn.html=r.html),r.parent&&(r.fn.parent=r.parent),r.hasClass&&(r.fn.hasClass=r.hasClass),r.empty&&(r.fn.empty=r.empty);var Mn,An,Nn,Rn={type:"video",elemToHtml:function(t,r){var e=t,n=e.src,o=void 0===n?"":n,i=e.poster,u=void 0===i?"":i,c=e.width,a=void 0===c?"auto":c,f=e.height,s=void 0===f?"auto":f,l=e.style,d=void 0===l?{}:l,v=e.textAlign,p='<div data-w-e-type="video" data-w-e-is-void style="text-align: '.concat(void 0===v?"center":v,';">\n');if(0===o.trim().indexOf("<iframe ")){p+=Pn(o,a,s,d)}else{var h=d.width,y=void 0===h?"":h,g=d.height,m=void 0===g?"":g,b="";y&&(b+="width: ".concat(y,";")),m&&(b+="height: ".concat(m,";")),p+='<video poster="'.concat(u,'" controls="true" width="').concat(a,'" height="').concat(s,'" style="').concat(b,'"><source src="').concat(o,'" type="video/mp4"/></video>')}return p+="\n</div>"}},Cn={};function kn(){if(An)return Mn;An=1;var t=Xr(),r=Ir();return Mn=function(e,n,o){return o.get&&t(o.get,n,{getter:!0}),o.set&&t(o.set,n,{setter:!0}),r.f(e,n,o)}}!function(){if(Nn)return Cn;Nn=1;var t=w(),r=Ur().EXISTS,e=dt(),n=kn(),o=Function.prototype,i=e(o.toString),u=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,c=e(u.exec);t&&!r&&n(o,"name",{configurable:!0,get:function(){try{return c(u,i(this))[1]}catch(t){return""}}})}();var Dn,Vn,Ln,zn,Fn,_n,$n={};function Bn(){if(zn)return Ln;zn=1;var t=function(){if(Vn)return Dn;Vn=1;var t=vt(),r=dt();return Dn=function(e){if("Function"===t(e))return r(e)}}(),r=Pt(),e=S(),n=t(t.bind);return Ln=function(t,o){return r(t),void 0===o?t:e?n(t,o):function(){return t.apply(o,arguments)}},Ln}function Un(){if(_n)return Fn;_n=1;var t=Bn(),r=dt(),e=pt(),n=ur(),o=me(),i=sn(),u=r([].push),c=function(r){var c=1===r,a=2===r,f=3===r,s=4===r,l=6===r,d=7===r,v=5===r||l;return function(p,h,y,g){for(var m,b,w=n(p),S=e(w),E=o(S),x=t(h,y),O=0,I=g||i,T=c?I(p,E):a||d?I(p,0):void 0;E>O;O++)if((v||O in S)&&(b=x(m=S[O],O,w),r))if(c)T[O]=b;else if(b)switch(r){case 3:return!0;case 5:return m;case 6:return O;case 2:u(T,m)}else switch(r){case 4:return!1;case 7:u(T,m)}return l?-1:f||s?s:T}};return Fn={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}}var Hn,Wn,Gn,qn,Kn,Xn,Yn,Jn,Qn,Zn,to={};function ro(){if(Wn)return Hn;Wn=1;var t=we(),r=Se();return Hn=Object.keys||function(e){return t(e,r)}}function eo(){if(Kn)return qn;Kn=1;var t=wt();return qn=t("document","documentElement")}function no(){if(Yn)return Xn;Yn=1;var t,r=Or(),e=function(){if(Gn)return to;Gn=1;var t=w(),r=xr(),e=Ir(),n=Or(),o=gt(),i=ro();return to.f=t&&!r?Object.defineProperties:function(t,r){n(t);for(var u,c=o(r),a=i(r),f=a.length,s=0;f>s;)e.f(t,u=a[s++],c[u]);return t},to}(),n=Se(),o=qr(),i=eo(),u=dr(),c=Gr(),a="prototype",f="script",s=c("IE_PROTO"),l=function(){},d=function(t){return"<"+f+">"+t+"</"+f+">"},v=function(t){t.write(d("")),t.close();var r=t.parentWindow.Object;return t=null,r},p=function(){try{t=new ActiveXObject("htmlfile")}catch(t){}var r,e,o;p="undefined"!=typeof document?document.domain&&t?v(t):(e=u("iframe"),o="java"+f+":",e.style.display="none",i.appendChild(e),e.src=String(o),(r=e.contentWindow.document).open(),r.write(d("document.F=Object")),r.close(),r.F):v(t);for(var c=n.length;c--;)delete p[a][n[c]];return p()};return o[s]=!0,Xn=Object.create||function(t,n){var o;return null!==t?(l[a]=r(t),o=new l,l[a]=null,o[s]=t):o=p(),void 0===n?o:e.f(o,n)}}function oo(){if(Qn)return Jn;Qn=1;var t=fr(),r=no(),e=Ir().f,n=t("unscopables"),o=Array.prototype;return void 0===o[n]&&e(o,n,{configurable:!0,value:r(null)}),Jn=function(t){o[n][t]=!0}}!function(){if(Zn)return $n;Zn=1;var t=rn(),r=Un().find,e=oo(),n="find",o=!0;n in[]&&Array(1)[n]((function(){o=!1})),t({target:"Array",proto:!0,forced:o},{find:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),e(n)}();var io,uo,co,ao={};!function(){if(co)return ao;co=1;var t=un(),r=Yr(),e=function(){if(uo)return io;uo=1;var t=un(),r=cn();return io=t?{}.toString:function(){return"[object "+r(this)+"]"}}();t||r(Object.prototype,"toString",e,{unsafe:!0})}();var fo,so,lo,vo,po,ho,yo,go,mo,bo,wo,So={};function Eo(){if(so)return fo;so=1;var t=Or();return fo=function(){var r=t(this),e="";return r.hasIndices&&(e+="d"),r.global&&(e+="g"),r.ignoreCase&&(e+="i"),r.multiline&&(e+="m"),r.dotAll&&(e+="s"),r.unicode&&(e+="u"),r.unicodeSets&&(e+="v"),r.sticky&&(e+="y"),e}}function xo(){if(bo)return mo;bo=1;var t,r,e=E(),n=dt(),o=En(),i=Eo(),u=function(){if(vo)return lo;vo=1;var t=b(),r=f().RegExp,e=t((function(){var t=r("a","y");return t.lastIndex=2,null!==t.exec("abcd")})),n=e||t((function(){return!r("a","y").sticky})),o=e||t((function(){var t=r("^r","gy");return t.lastIndex=2,null!==t.exec("str")}));return lo={BROKEN_CARET:o,MISSED_STICKY:n,UNSUPPORTED_Y:e}}(),c=ir(),a=no(),s=Kr().get,l=function(){if(ho)return po;ho=1;var t=b(),r=f().RegExp;return po=t((function(){var t=r(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)}))}(),d=function(){if(go)return yo;go=1;var t=b(),r=f().RegExp;return yo=t((function(){var t=r("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))}(),v=c("native-string-replace",String.prototype.replace),p=RegExp.prototype.exec,h=p,y=n("".charAt),g=n("".indexOf),m=n("".replace),w=n("".slice),S=(r=/b*/g,e(p,t=/a/,"a"),e(p,r,"a"),0!==t.lastIndex||0!==r.lastIndex),x=u.BROKEN_CARET,O=void 0!==/()??/.exec("")[1];return(S||O||x||l||d)&&(h=function(t){var r,n,u,c,f,l,d,b=this,E=s(b),I=o(t),T=E.raw;if(T)return T.lastIndex=b.lastIndex,r=e(h,T,I),b.lastIndex=T.lastIndex,r;var j=E.groups,P=x&&b.sticky,M=e(i,b),A=b.source,N=0,R=I;if(P&&(M=m(M,"y",""),-1===g(M,"g")&&(M+="g"),R=w(I,b.lastIndex),b.lastIndex>0&&(!b.multiline||b.multiline&&"\n"!==y(I,b.lastIndex-1))&&(A="(?: "+A+")",R=" "+R,N++),n=new RegExp("^(?:"+A+")",M)),O&&(n=new RegExp("^"+A+"$(?!\\s)",M)),S&&(u=b.lastIndex),c=e(p,P?n:b,R),P?c?(c.input=w(c.input,N),c[0]=w(c[0],N),c.index=b.lastIndex,b.lastIndex+=c[0].length):b.lastIndex=0:S&&c&&(b.lastIndex=b.global?c.index+c[0].length:u),O&&c&&c.length>1&&e(v,c[0],n,(function(){for(f=1;f<arguments.length-2;f++)void 0===arguments[f]&&(c[f]=void 0)})),c&&j)for(c.groups=l=a(null),f=0;f<j.length;f++)l[(d=j[f])[0]]=c[d[1]];return c}),mo=h}function Oo(){if(wo)return So;wo=1;var t=rn(),r=xo();return t({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r}),So}Oo();var Io=function(){return Io=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++)for(var o in r=arguments[e])Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);return t},Io.apply(this,arguments)};function To(t,r,e,n){return new(e||(e=Promise))((function(o,i){function u(t){try{a(n.next(t))}catch(t){i(t)}}function c(t){try{a(n.throw(t))}catch(t){i(t)}}function a(t){var r;t.done?o(t.value):(r=t.value,r instanceof e?r:new e((function(t){t(r)}))).then(u,c)}a((n=n.apply(t,r||[])).next())}))}function jo(t,r){var e,n,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(a){return function(c){if(e)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(u=0)),u;)try{if(e=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return u.label++,{value:c[1],done:!1};case 5:u.label++,n=c[1],c=[0];continue;case 7:c=u.ops.pop(),u.trys.pop();continue;default:if(!(o=u.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){u=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){u.label=c[1];break}if(6===c[0]&&u.label<o[1]){u.label=o[1],o=c;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(c);break}o[2]&&u.ops.pop(),u.trys.pop();continue}c=r.call(t,u)}catch(t){c=[6,t],n=0}finally{e=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,a])}}}function Po(t){var r="function"==typeof Symbol&&Symbol.iterator,e=r&&t[r],n=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function Mo(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var n,o,i=e.call(t),u=[];try{for(;(void 0===r||r-- >0)&&!(n=i.next()).done;)u.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(o)throw o.error}}return u}function Ao(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,e=t[Symbol.asyncIterator];return e?e.call(t):(t=Po(t),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(e){r[e]=t[e]&&function(r){return new Promise((function(n,o){(function(t,r,e,n){Promise.resolve(n).then((function(r){t({value:r,done:e})}),r)})(n,o,(r=t[e](r)).done,r.value)}))}}}"function"==typeof SuppressedError&&SuppressedError;var No,Ro,Co,ko,Do,Vo,Lo,zo,Fo,_o,$o,Bo,Uo,Ho={};function Wo(){if(Ro)return No;Ro=1;var t=S(),r=Function.prototype,e=r.apply,n=r.call;return No="object"==typeof Reflect&&Reflect.apply||(t?n.bind(e):function(){return n.apply(e,arguments)}),No}function Go(){if(Vo)return Do;Vo=1;var t=dt(),r=he(),e=En(),n=yt(),o=t("".charAt),i=t("".charCodeAt),u=t("".slice),c=function(t){return function(c,a){var f,s,l=e(n(c)),d=r(a),v=l.length;return d<0||d>=v?t?"":void 0:(f=i(l,d))<55296||f>56319||d+1===v||(s=i(l,d+1))<56320||s>57343?t?o(l,d):f:t?u(l,d,d+2):s-56320+(f-55296<<10)+65536}};return Do={codeAt:c(!1),charAt:c(!0)}}function qo(){if(zo)return Lo;zo=1;var t=Go().charAt;return Lo=function(r,e,n){return e+(n?t(r,e).length:1)}}function Ko(){if(_o)return Fo;_o=1;var t=dt(),r=ur(),e=Math.floor,n=t("".charAt),o=t("".replace),i=t("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;return Fo=function(t,a,f,s,l,d){var v=f+t.length,p=s.length,h=c;return void 0!==l&&(l=r(l),h=u),o(d,h,(function(r,o){var u;switch(n(o,0)){case"$":return"$";case"&":return t;case"`":return i(a,0,f);case"'":return i(a,v);case"<":u=l[i(o,1,-1)];break;default:var c=+o;if(0===c)return r;if(c>p){var d=e(c/10);return 0===d?r:d<=p?void 0===s[d-1]?n(o,1):s[d-1]+n(o,1):r}u=s[c-1]}return void 0===u?"":u}))}}!function(){if(Uo)return Ho;Uo=1;var t=Wo(),r=E(),e=dt(),n=function(){if(ko)return Co;ko=1,Oo();var t=E(),r=Yr(),e=xo(),n=b(),o=fr(),i=Tr(),u=o("species"),c=RegExp.prototype;return Co=function(a,f,s,l){var d=o(a),v=!n((function(){var t={};return t[d]=function(){return 7},7!==""[a](t)})),p=v&&!n((function(){var t=!1,r=/a/;return"split"===a&&((r={}).constructor={},r.constructor[u]=function(){return r},r.flags="",r[d]=/./[d]),r.exec=function(){return t=!0,null},r[d](""),!t}));if(!v||!p||s){var h=/./[d],y=f(d,""[a],(function(r,n,o,i,u){var a=n.exec;return a===e||a===c.exec?v&&!u?{done:!0,value:t(h,n,o,i)}:{done:!0,value:t(r,o,n,i)}:{done:!1}}));r(String.prototype,a,y[0]),r(c,d,y[1])}l&&i(c[d],"sham",!0)}}(),o=b(),i=Or(),u=mt(),c=ht(),a=he(),f=ge(),s=En(),l=yt(),d=qo(),v=Mt(),p=Ko(),h=function(){if(Bo)return $o;Bo=1;var t=E(),r=Or(),e=mt(),n=vt(),o=xo(),i=TypeError;return $o=function(u,c){var a=u.exec;if(e(a)){var f=t(a,u,c);return null!==f&&r(f),f}if("RegExp"===n(u))return t(o,u,c);throw new i("RegExp#exec called on incompatible receiver")}}(),y=fr()("replace"),g=Math.max,m=Math.min,w=e([].concat),S=e([].push),x=e("".indexOf),O=e("".slice),I="$0"==="a".replace(/./,"$0"),T=!!/./[y]&&""===/./[y]("a","$0");n("replace",(function(e,n,o){var b=T?"$":"$0";return[function(t,e){var o=l(this),i=c(t)?void 0:v(t,y);return i?r(i,t,o,e):r(n,s(o),t,e)},function(r,e){var c=i(this),l=s(r);if("string"==typeof e&&-1===x(e,b)&&-1===x(e,"$<")){var v=o(n,c,l,e);if(v.done)return v.value}var y=u(e);y||(e=s(e));var E,I=c.global;I&&(E=c.unicode,c.lastIndex=0);for(var T,j=[];null!==(T=h(c,l))&&(S(j,T),I);){""===s(T[0])&&(c.lastIndex=d(l,f(c.lastIndex),E))}for(var P,M="",A=0,N=0;N<j.length;N++){for(var R,C=s((T=j[N])[0]),k=g(m(a(T.index),l.length),0),D=[],V=1;V<T.length;V++)S(D,void 0===(P=T[V])?P:String(P));var L=T.groups;if(y){var z=w([C],D,k,l);void 0!==L&&S(z,L),R=s(t(e,void 0,z))}else R=p(C,l,k,D,L,e);k>=A&&(M+=O(l,A,k)+R,A=k+C.length)}return M+O(l,A)}]}),!!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!I||T)}();var Xo,Yo,Jo,Qo,Zo,ti,ri,ei,ni,oi={};function ii(){return Yo?Xo:(Yo=1,Xo={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})}function ui(){if(Qo)return Jo;Qo=1;var t=dr()("span").classList,r=t&&t.constructor&&t.constructor.prototype;return Jo=r===Object.prototype?void 0:r}function ci(){if(ti)return Zo;ti=1;var t=b();return Zo=function(r,e){var n=[][r];return!!n&&t((function(){n.call(null,e||function(){return 1},1)}))}}function ai(t){return void 0===t&&(t="r"),"".concat(t,"-").concat(n.nanoid())}function fi(t){var r={};return t.trim().split(";").forEach((function(t){if(t){var e=Mo(t.split(":"),2),n=e[0],o=e[1];n&&o&&(r[n.trim()]=o.trim())}})),r}function si(){return ai("w-e-insert-video")}!function(){if(ni)return oi;ni=1;var t=f(),r=ii(),e=ui(),n=function(){if(ei)return ri;ei=1;var t=Un().forEach,r=ci()("forEach");return ri=r?[].forEach:function(r){return t(this,r,arguments.length>1?arguments[1]:void 0)},ri}(),o=Tr(),i=function(t){if(t&&t.forEach!==n)try{o(t,"forEach",n)}catch(r){t.forEach=n}};for(var u in r)r[u]&&i(t[u]&&t[u].prototype);i(e)}();var li=function(){function n(){this.title=t.t("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=si(),this.heightInputId=si(),this.buttonId=si()}return n.prototype.getSelectedVideoNode=function(r){return t.DomEditor.getSelectedNodeByType(r,"video")},n.prototype.getValue=function(t){return""},n.prototype.isActive=function(t){return!1},n.prototype.exec=function(t,r){},n.prototype.isDisabled=function(t){return null==t.selection||null==this.getSelectedVideoNode(t)},n.prototype.getModalPositionNode=function(t){return this.getSelectedVideoNode(t)},n.prototype.getModalContentElem=function(n){var o=this,i=o.widthInputId,u=o.heightInputId,c=o.buttonId,a=Mo(t.genModalInputElems(t.t("videoModule.width"),i,"auto"),2),f=a[0],s=a[1],l=r(s),d=Mo(t.genModalInputElems(t.t("videoModule.height"),u,"auto"),2),v=d[0],p=d[1],h=r(p),y=Mo(t.genModalButtonElems(c,t.t("videoModule.ok")),1)[0],g=this.getSelectedVideoNode(n);if(null==this.$content){var m=r("<div></div>");m.on("click","#".concat(c),(function(r){r.preventDefault();var o=m.find("#".concat(i)).val().trim(),c=m.find("#".concat(u)).val().trim(),a=function(t){return/^\d+(\.\d+)?%$/.test(t)},f=function(t){return/^\d+(\.\d+)?$/.test(t)},s="auto",l="auto";a(o)?s=o:f(o)&&(s="".concat(parseInt(o,10),"px")),a(c)?l=c:f(c)&&(l="".concat(parseInt(c,10),"px"));var d=g.style,v=void 0===d?{}:d;n.restoreSelection();var p={style:Io(Io({},v),{width:s,height:l})};e.Transforms.setNodes(n,p,{match:function(r){return t.DomEditor.checkNodeType(r,"video")}}),n.hidePanelOrModal()})),this.$content=m}var b=this.$content;if(b.empty(),b.append(f),b.append(v),b.append(y),null==g)return b[0];var w=g.style,S=void 0===w?{}:w,E=S.width,x=void 0===E?"":E,O=S.height,I=void 0===O?"":O;return l.val(x),h.val(I),setTimeout((function(){l.focus()})),b[0]},n}();function di(){return ai("w-e-edit-video")}var vi,pi,hi,yi,gi,mi,bi,wi,Si,Ei,xi,Oi,Ii,Ti,ji,Pi,Mi,Ai,Ni,Ri,Ci,ki,Di,Vi,Li,zi,Fi,_i,$i,Bi,Ui,Hi,Wi,Gi,qi,Ki,Xi,Yi,Ji,Qi,Zi,tu,ru,eu,nu,ou,iu,uu,cu=function(){function n(){this.title=t.t("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=di(),this.posterInputId=di(),this.buttonId=di()}return n.prototype.getSelectedVideoNode=function(r){return t.DomEditor.getSelectedNodeByType(r,"video")},n.prototype.getValue=function(t){return""},n.prototype.isActive=function(t){return!1},n.prototype.exec=function(t,r){},n.prototype.isDisabled=function(t){return null==t.selection||null==this.getSelectedVideoNode(t)},n.prototype.getModalPositionNode=function(t){return this.getSelectedVideoNode(t)},n.prototype.getModalContentElem=function(n){var o=this,i=this,u=i.srcInputId,c=i.posterInputId,a=i.buttonId,f=Mo(t.genModalInputElems(t.t("videoModule.videoSrc"),u,t.t("videoModule.videoSrcPlaceHolder")),2),s=f[0],l=f[1],d=Mo(t.genModalInputElems(t.t("videoModule.videoPoster"),c,t.t("videoModule.videoPosterPlaceHolder")),2),v=d[0],p=d[1],h=r(l),y=r(p),g=Mo(t.genModalButtonElems(a,t.t("videoModule.ok")),1)[0];if(null==this.$content){var m=r("<div></div>");m.on("click","#".concat(a),(function(r){return To(o,void 0,void 0,(function(){var o,i,a,f;return jo(this,(function(s){return r.preventDefault(),o=m.find("#".concat(u)).val().trim(),i=m.find("#".concat(c)).val().trim(),a=ai("video-"),f={src:o,poster:i,key:a},n.restoreSelection(),e.Transforms.setNodes(n,f,{match:function(r){return t.DomEditor.checkNodeType(r,"video")}}),n.hidePanelOrModal(),[2]}))}))})),this.$content=m}var b=this.$content;b.empty(),b.append(s),b.append(v),b.append(g);var w=this.getSelectedVideoNode(n);if(null==w)return b[0];var S=w.src,E=void 0===S?"":S,x=w.poster,O=void 0===x?"":x;return h.val(E),y.val(O),setTimeout((function(){h.focus()})),b[0]},n}(),au={};function fu(){if(pi)return vi;pi=1;var t=f(),r=Et(),e=vt(),n=function(t){return r.slice(0,t.length)===t};return vi=n("Bun/")?"BUN":n("Cloudflare-Workers")?"CLOUDFLARE":n("Deno/")?"DENO":n("Node.js/")?"NODE":t.Bun&&"string"==typeof Bun.version?"BUN":t.Deno&&"object"==typeof Deno.version?"DENO":"process"===e(t.process)?"NODE":t.window&&t.document?"BROWSER":"REST"}function su(){if(yi)return hi;yi=1;var t=fu();return hi="NODE"===t}function lu(){if(wi)return bi;wi=1;var t=bt();return bi=function(r){return t(r)||null===r}}function du(){if(Ei)return Si;Ei=1;var t=lu(),r=String,e=TypeError;return Si=function(n){if(t(n))return n;throw new e("Can't set "+r(n)+" as a prototype")}}function vu(){if(Oi)return xi;Oi=1;var t=function(){if(mi)return gi;mi=1;var t=dt(),r=Pt();return gi=function(e,n,o){try{return t(r(Object.getOwnPropertyDescriptor(e,n)[o]))}catch(t){}}}(),r=bt(),e=yt(),n=du();return xi=Object.setPrototypeOf||("__proto__"in{}?function(){var o,i=!1,u={};try{(o=t(Object.prototype,"__proto__","set"))(u,[]),i=u instanceof Array}catch(t){}return function(t,u){return e(t),n(u),r(t)?(i?o(t,u):t.__proto__=u,t):t}}():void 0)}function pu(){if(Ti)return Ii;Ti=1;var t=Ir().f,r=cr(),e=fr()("toStringTag");return Ii=function(n,o,i){n&&!i&&(n=n.prototype),n&&!r(n,e)&&t(n,e,{configurable:!0,value:o})}}function hu(){if(Pi)return ji;Pi=1;var t=wt(),r=kn(),e=fr(),n=w(),o=e("species");return ji=function(e){var i=t(e);n&&i&&!i[o]&&r(i,o,{configurable:!0,get:function(){return this}})}}function yu(){if(Ai)return Mi;Ai=1;var t=St(),r=TypeError;return Mi=function(e,n){if(t(n,e))return e;throw new r("Incorrect invocation")}}function gu(){if(Ri)return Ni;Ri=1;var t=an(),r=jt(),e=TypeError;return Ni=function(n){if(t(n))return n;throw new e(r(n)+" is not a constructor")}}function mu(){if(ki)return Ci;ki=1;var t=Or(),r=gu(),e=ht(),n=fr()("species");return Ci=function(o,i){var u,c=t(o).constructor;return void 0===c||e(u=t(c)[n])?i:r(u)}}function bu(){if(Vi)return Di;Vi=1;var t=dt();return Di=t([].slice)}function wu(){if(zi)return Li;zi=1;var t=TypeError;return Li=function(r,e){if(r<e)throw new t("Not enough arguments");return r}}function Su(){if(_i)return Fi;_i=1;var t=Et();return Fi=/(?:ipad|iphone|ipod).*applewebkit/i.test(t)}function Eu(){if(Bi)return $i;Bi=1;var t,r,e,n,o=f(),i=Wo(),u=Bn(),c=mt(),a=cr(),s=b(),l=eo(),d=bu(),v=dr(),p=wu(),h=Su(),y=su(),g=o.setImmediate,m=o.clearImmediate,w=o.process,S=o.Dispatch,E=o.Function,x=o.MessageChannel,O=o.String,I=0,T={},j="onreadystatechange";s((function(){t=o.location}));var P=function(t){if(a(T,t)){var r=T[t];delete T[t],r()}},M=function(t){return function(){P(t)}},A=function(t){P(t.data)},N=function(r){o.postMessage(O(r),t.protocol+"//"+t.host)};return g&&m||(g=function(t){p(arguments.length,1);var e=c(t)?t:E(t),n=d(arguments,1);return T[++I]=function(){i(e,void 0,n)},r(I),I},m=function(t){delete T[t]},y?r=function(t){w.nextTick(M(t))}:S&&S.now?r=function(t){S.now(M(t))}:x&&!h?(n=(e=new x).port2,e.port1.onmessage=A,r=u(n.postMessage,n)):o.addEventListener&&c(o.postMessage)&&!o.importScripts&&t&&"file:"!==t.protocol&&!s(N)?(r=N,o.addEventListener("message",A,!1)):r=j in v("script")?function(t){l.appendChild(v("script"))[j]=function(){l.removeChild(this),P(t)}}:function(t){setTimeout(M(t),0)}),$i={set:g,clear:m}}function xu(){if(Hi)return Ui;Hi=1;var t=f(),r=w(),e=Object.getOwnPropertyDescriptor;return Ui=function(n){if(!r)return t[n];var o=e(t,n);return o&&o.value}}function Ou(){if(Gi)return Wi;Gi=1;var t=function(){this.head=null,this.tail=null};return t.prototype={add:function(t){var r={item:t,next:null},e=this.tail;e?e.next=r:this.head=r,this.tail=r},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}},Wi=t}function Iu(){if(Qi)return Ji;Qi=1;var t,r,e,n,o,i=f(),u=xu(),c=Bn(),a=Eu().set,s=Ou(),l=Su(),d=function(){if(Ki)return qi;Ki=1;var t=Et();return qi=/ipad|iphone|ipod/i.test(t)&&"undefined"!=typeof Pebble}(),v=function(){if(Yi)return Xi;Yi=1;var t=Et();return Xi=/web0s(?!.*chrome)/i.test(t)}(),p=su(),h=i.MutationObserver||i.WebKitMutationObserver,y=i.document,g=i.process,m=i.Promise,b=u("queueMicrotask");if(!b){var w=new s,S=function(){var r,e;for(p&&(r=g.domain)&&r.exit();e=w.get();)try{e()}catch(r){throw w.head&&t(),r}r&&r.enter()};l||p||v||!h||!y?!d&&m&&m.resolve?((n=m.resolve(void 0)).constructor=m,o=c(n.then,n),t=function(){o(S)}):p?t=function(){g.nextTick(S)}:(a=c(a,i),t=function(){a(S)}):(r=!0,e=y.createTextNode(""),new h(S).observe(e,{characterData:!0}),t=function(){e.data=r=!r}),b=function(r){w.head||t(),w.add(r)}}return Ji=b}function Tu(){return tu||(tu=1,Zi=function(t,r){try{1===arguments.length?console.error(t):console.error(t,r)}catch(t){}}),Zi}function ju(){return eu?ru:(eu=1,ru=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}})}function Pu(){if(ou)return nu;ou=1;var t=f();return nu=t.Promise}function Mu(){if(uu)return iu;uu=1;var t=f(),r=Pu(),e=mt(),n=tn(),o=Hr(),i=fr(),u=fu(),c=er(),a=xt(),s=r&&r.prototype,l=i("species"),d=!1,v=e(t.PromiseRejectionEvent),p=n("Promise",(function(){var t=o(r),e=t!==String(r);if(!e&&66===a)return!0;if(c&&(!s.catch||!s.finally))return!0;if(!a||a<51||!/native code/.test(t)){var n=new r((function(t){t(1)})),i=function(t){t((function(){}),(function(){}))};if((n.constructor={})[l]=i,!(d=n.then((function(){}))instanceof i))return!0}return!(e||"BROWSER"!==u&&"DENO"!==u||v)}));return iu={CONSTRUCTOR:p,REJECTION_EVENT:v,SUBCLASSING:d}}var Au,Nu,Ru={};function Cu(){if(Au)return Ru;Au=1;var t=Pt(),r=TypeError,e=function(e){var n,o;this.promise=new e((function(t,e){if(void 0!==n||void 0!==o)throw new r("Bad Promise constructor");n=t,o=e})),this.resolve=t(n),this.reject=t(o)};return Ru.f=function(t){return new e(t)},Ru}var ku,Du,Vu,Lu,zu,Fu,_u,$u,Bu,Uu,Hu,Wu,Gu,qu,Ku,Xu,Yu,Ju={};function Qu(){return Du?ku:(Du=1,ku={})}function Zu(){if(Lu)return Vu;Lu=1;var t=fr(),r=Qu(),e=t("iterator"),n=Array.prototype;return Vu=function(t){return void 0!==t&&(r.Array===t||n[e]===t)}}function tc(){if(Fu)return zu;Fu=1;var t=cn(),r=Mt(),e=ht(),n=Qu(),o=fr()("iterator");return zu=function(i){if(!e(i))return r(i,o)||r(i,"@@iterator")||n[t(i)]}}function rc(){if($u)return _u;$u=1;var t=E(),r=Pt(),e=Or(),n=jt(),o=tc(),i=TypeError;return _u=function(u,c){var a=arguments.length<2?o(u):c;if(r(a))return e(t(a,u));throw new i(n(u)+" is not iterable")},_u}function ec(){if(Uu)return Bu;Uu=1;var t=E(),r=Or(),e=Mt();return Bu=function(n,o,i){var u,c;r(n);try{if(!(u=e(n,"return"))){if("throw"===o)throw i;return i}u=t(u,n)}catch(t){c=!0,u=t}if("throw"===o)throw i;if(c)throw u;return r(u),i}}function nc(){if(Wu)return Hu;Wu=1;var t=Bn(),r=E(),e=Or(),n=jt(),o=Zu(),i=me(),u=St(),c=rc(),a=tc(),f=ec(),s=TypeError,l=function(t,r){this.stopped=t,this.result=r},d=l.prototype;return Hu=function(v,p,h){var y,g,m,b,w,S,E,x=h&&h.that,O=!(!h||!h.AS_ENTRIES),I=!(!h||!h.IS_RECORD),T=!(!h||!h.IS_ITERATOR),j=!(!h||!h.INTERRUPTED),P=t(p,x),M=function(t){return y&&f(y,"normal",t),new l(!0,t)},A=function(t){return O?(e(t),j?P(t[0],t[1],M):P(t[0],t[1])):j?P(t,M):P(t)};if(I)y=v.iterator;else if(T)y=v;else{if(!(g=a(v)))throw new s(n(v)+" is not iterable");if(o(g)){for(m=0,b=i(v);b>m;m++)if((w=A(v[m]))&&u(d,w))return w;return new l(!1)}y=c(v,g)}for(S=I?v.next:y.next;!(E=r(S,y)).done;){try{w=A(E.value)}catch(t){f(y,"throw",t)}if("object"==typeof w&&w&&u(d,w))return w}return new l(!1)}}function oc(){if(qu)return Gu;qu=1;var t=fr()("iterator"),r=!1;try{var e=0,n={next:function(){return{done:!!e++}},return:function(){r=!0}};n[t]=function(){return this},Array.from(n,(function(){throw 2}))}catch(t){}return Gu=function(e,n){try{if(!n&&!r)return!1}catch(t){return!1}var o=!1;try{var i={};i[t]=function(){return{next:function(){return{done:o=!0}}}},e(i)}catch(t){}return o}}function ic(){if(Xu)return Ku;Xu=1;var t=Pu(),r=oc(),e=Mu().CONSTRUCTOR;return Ku=e||!r((function(r){t.all(r).then(void 0,(function(){}))}))}var uc,cc={};var ac,fc={};var sc,lc={};var dc,vc,pc,hc,yc={};function gc(){if(vc)return dc;vc=1;var t=Or(),r=bt(),e=Cu();return dc=function(n,o){if(t(n),r(o)&&o.constructor===n)return o;var i=e.f(n);return(0,i.resolve)(o),i.promise}}function mc(r,n){return To(this,arguments,void 0,(function(r,n,o,i,u){var c,a,f,s,l,d,v;return void 0===o&&(o=""),void 0===i&&(i=""),void 0===u&&(u=""),jo(this,(function(p){switch(p.label){case 0:return n?(r.restoreSelection(),c=r.getMenuConfig("insertVideo"),a=c.onInsertedVideo,f=c.checkVideo,s=c.parseVideoSrc,[4,f(n,o)]):[2];case 1:return"string"==typeof(l=p.sent())?(r.alert(l,"error"),[2]):null==l?[2]:[4,s(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:o,children:[{text:""}],style:{width:i,height:u}},Promise.resolve().then((function(){t.DomEditor.isSelectedEmptyParagraph(r)&&e.Transforms.removeNodes(r,{mode:"highest"}),e.Transforms.insertNodes(r,v,{mode:"highest"})})),a(v),[2]}}))}))}function bc(){return ai("w-e-insert-video")}hc||(hc=1,function(){if(Nu)return au;Nu=1;var t,r,e,n=rn(),o=er(),i=su(),u=f(),c=E(),a=Yr(),s=vu(),l=pu(),d=hu(),v=Pt(),p=mt(),h=bt(),y=yu(),g=mu(),m=Eu().set,b=Iu(),w=Tu(),S=ju(),x=Ou(),O=Kr(),I=Pu(),T=Mu(),j=Cu(),P="Promise",M=T.CONSTRUCTOR,A=T.REJECTION_EVENT,N=T.SUBCLASSING,R=O.getterFor(P),C=O.set,k=I&&I.prototype,D=I,V=k,L=u.TypeError,z=u.document,F=u.process,_=j.f,$=_,B=!!(z&&z.createEvent&&u.dispatchEvent),U="unhandledrejection",H=function(t){var r;return!(!h(t)||!p(r=t.then))&&r},W=function(t,r){var e,n,o,i=r.value,u=1===r.state,a=u?t.ok:t.fail,f=t.resolve,s=t.reject,l=t.domain;try{a?(u||(2===r.rejection&&Y(r),r.rejection=1),!0===a?e=i:(l&&l.enter(),e=a(i),l&&(l.exit(),o=!0)),e===t.promise?s(new L("Promise-chain cycle")):(n=H(e))?c(n,e,f,s):f(e)):s(i)}catch(t){l&&!o&&l.exit(),s(t)}},G=function(t,r){t.notified||(t.notified=!0,b((function(){for(var e,n=t.reactions;e=n.get();)W(e,t);t.notified=!1,r&&!t.rejection&&K(t)})))},q=function(t,r,e){var n,o;B?((n=z.createEvent("Event")).promise=r,n.reason=e,n.initEvent(t,!1,!0),u.dispatchEvent(n)):n={promise:r,reason:e},!A&&(o=u["on"+t])?o(n):t===U&&w("Unhandled promise rejection",e)},K=function(t){c(m,u,(function(){var r,e=t.facade,n=t.value;if(X(t)&&(r=S((function(){i?F.emit("unhandledRejection",n,e):q(U,e,n)})),t.rejection=i||X(t)?2:1,r.error))throw r.value}))},X=function(t){return 1!==t.rejection&&!t.parent},Y=function(t){c(m,u,(function(){var r=t.facade;i?F.emit("rejectionHandled",r):q("rejectionhandled",r,t.value)}))},J=function(t,r,e){return function(n){t(r,n,e)}},Q=function(t,r,e){t.done||(t.done=!0,e&&(t=e),t.value=r,t.state=2,G(t,!0))},Z=function(t,r,e){if(!t.done){t.done=!0,e&&(t=e);try{if(t.facade===r)throw new L("Promise can't be resolved itself");var n=H(r);n?b((function(){var e={done:!1};try{c(n,r,J(Z,e,t),J(Q,e,t))}catch(r){Q(e,r,t)}})):(t.value=r,t.state=1,G(t,!1))}catch(r){Q({done:!1},r,t)}}};if(M&&(V=(D=function(r){y(this,V),v(r),c(t,this);var e=R(this);try{r(J(Z,e),J(Q,e))}catch(t){Q(e,t)}}).prototype,(t=function(t){C(this,{type:P,done:!1,notified:!1,parent:!1,reactions:new x,rejection:!1,state:0,value:null})}).prototype=a(V,"then",(function(t,r){var e=R(this),n=_(g(this,D));return e.parent=!0,n.ok=!p(t)||t,n.fail=p(r)&&r,n.domain=i?F.domain:void 0,0===e.state?e.reactions.add(n):b((function(){W(n,e)})),n.promise})),r=function(){var r=new t,e=R(r);this.promise=r,this.resolve=J(Z,e),this.reject=J(Q,e)},j.f=_=function(t){return t===D||void 0===t?new r(t):$(t)},!o&&p(I)&&k!==Object.prototype)){e=k.then,N||a(k,"then",(function(t,r){var n=this;return new D((function(t,r){c(e,n,t,r)})).then(t,r)}),{unsafe:!0});try{delete k.constructor}catch(t){}s&&s(k,V)}n({global:!0,constructor:!0,wrap:!0,forced:M},{Promise:D}),l(D,P,!1,!0),d(P)}(),function(){if(Yu)return Ju;Yu=1;var t=rn(),r=E(),e=Pt(),n=Cu(),o=ju(),i=nc();t({target:"Promise",stat:!0,forced:ic()},{all:function(t){var u=this,c=n.f(u),a=c.resolve,f=c.reject,s=o((function(){var n=e(u.resolve),o=[],c=0,s=1;i(t,(function(t){var e=c++,i=!1;s++,r(n,u,t).then((function(t){i||(i=!0,o[e]=t,--s||a(o))}),f)})),--s||a(o)}));return s.error&&f(s.value),c.promise}})}(),function(){if(uc)return cc;uc=1;var t=rn(),r=er(),e=Mu().CONSTRUCTOR,n=Pu(),o=wt(),i=mt(),u=Yr(),c=n&&n.prototype;if(t({target:"Promise",proto:!0,forced:e,real:!0},{catch:function(t){return this.then(void 0,t)}}),!r&&i(n)){var a=o("Promise").prototype.catch;c.catch!==a&&u(c,"catch",a,{unsafe:!0})}}(),function(){if(ac)return fc;ac=1;var t=rn(),r=E(),e=Pt(),n=Cu(),o=ju(),i=nc();t({target:"Promise",stat:!0,forced:ic()},{race:function(t){var u=this,c=n.f(u),a=c.reject,f=o((function(){var n=e(u.resolve);i(t,(function(t){r(n,u,t).then(c.resolve,a)}))}));return f.error&&a(f.value),c.promise}})}(),function(){if(sc)return lc;sc=1;var t=rn(),r=Cu();t({target:"Promise",stat:!0,forced:Mu().CONSTRUCTOR},{reject:function(t){var e=r.f(this);return(0,e.reject)(t),e.promise}})}(),function(){if(pc)return yc;pc=1;var t=rn(),r=wt(),e=er(),n=Pu(),o=Mu().CONSTRUCTOR,i=gc(),u=r("Promise"),c=e&&!o;t({target:"Promise",stat:!0,forced:e||o},{resolve:function(t){return i(c&&this===u?n:this,t)}})}());var wc,Sc,Ec,xc,Oc,Ic,Tc,jc,Pc,Mc,Ac,Nc,Rc,Cc,kc,Dc=function(){function n(){this.title=t.t("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=bc(),this.posterInputId=bc(),this.buttonId=bc()}return n.prototype.getValue=function(t){return""},n.prototype.isActive=function(t){return!1},n.prototype.exec=function(t,r){},n.prototype.isDisabled=function(r){var n=r.selection;return null==n||(!e.Range.isCollapsed(n)||!!t.DomEditor.getSelectedElems(r).some((function(e){var n=t.DomEditor.getNodeType(e);return"pre"===n||("list-item"===n||!!r.isVoid(e))})))},n.prototype.getModalPositionNode=function(t){return null},n.prototype.getModalContentElem=function(e){var n=this,o=this,i=o.srcInputId,u=o.posterInputId,c=o.buttonId,a=Mo(t.genModalInputElems(t.t("videoModule.videoSrc"),i,t.t("videoModule.videoSrcPlaceHolder")),2),f=a[0],s=a[1],l=Mo(t.genModalInputElems(t.t("videoModule.videoPoster"),u,t.t("videoModule.videoPosterPlaceHolder")),2),d=l[0],v=l[1],p=r(s),h=r(v),y=Mo(t.genModalButtonElems(c,t.t("videoModule.ok")),1)[0];if(null==this.$content){var g=r("<div></div>");g.on("click","#".concat(c),(function(t){return To(n,void 0,void 0,(function(){var r,n;return jo(this,(function(o){switch(o.label){case 0:return t.preventDefault(),r=g.find("#".concat(i)).val().trim(),n=g.find("#".concat(u)).val().trim(),[4,mc(e,r,n)];case 1:return o.sent(),e.hidePanelOrModal(),[2]}}))}))})),this.$content=g}var m=this.$content;return m.empty(),m.append(f),m.append(d),m.append(y),p.val(""),h.val(""),setTimeout((function(){p.focus()})),m[0]},n}(),Vc={};function Lc(){if(Oc)return xc;Oc=1;var t=cr(),r=mt(),e=ur(),n=Gr(),o=function(){if(Ec)return Sc;Ec=1;var t=b();return Sc=!t((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))}(),i=n("IE_PROTO"),u=Object,c=u.prototype;return xc=o?u.getPrototypeOf:function(n){var o=e(n);if(t(o,i))return o[i];var a=o.constructor;return r(a)&&o instanceof a?a.prototype:o instanceof u?c:null}}function zc(){if(Tc)return Ic;Tc=1;var t,r,e,n=b(),o=mt(),i=bt(),u=no(),c=Lc(),a=Yr(),f=fr(),s=er(),l=f("iterator"),d=!1;return[].keys&&("next"in(e=[].keys())?(r=c(c(e)))!==Object.prototype&&(t=r):d=!0),!i(t)||n((function(){var r={};return t[l].call(r)!==r}))?t={}:s&&(t=u(t)),o(t[l])||a(t,l,(function(){return this})),Ic={IteratorPrototype:t,BUGGY_SAFARI_ITERATORS:d}}function Fc(){if(Ac)return Mc;Ac=1;var t=rn(),r=E(),e=er(),n=Ur(),o=mt(),i=function(){if(Pc)return jc;Pc=1;var t=zc().IteratorPrototype,r=no(),e=lt(),n=pu(),o=Qu(),i=function(){return this};return jc=function(u,c,a,f){var s=c+" Iterator";return u.prototype=r(t,{next:e(+!f,a)}),n(u,s,!1,!0),o[s]=i,u}}(),u=Lc(),c=vu(),a=pu(),f=Tr(),s=Yr(),l=fr(),d=Qu(),v=zc(),p=n.PROPER,h=n.CONFIGURABLE,y=v.IteratorPrototype,g=v.BUGGY_SAFARI_ITERATORS,m=l("iterator"),b="keys",w="values",S="entries",x=function(){return this};return Mc=function(n,l,v,E,O,I,T){i(v,l,E);var j,P,M,A=function(t){if(t===O&&D)return D;if(!g&&t&&t in C)return C[t];switch(t){case b:case w:case S:return function(){return new v(this,t)}}return function(){return new v(this)}},N=l+" Iterator",R=!1,C=n.prototype,k=C[m]||C["@@iterator"]||O&&C[O],D=!g&&k||A(O),V="Array"===l&&C.entries||k;if(V&&(j=u(V.call(new n)))!==Object.prototype&&j.next&&(e||u(j)===y||(c?c(j,y):o(j[m])||s(j,m,x)),a(j,N,!0,!0),e&&(d[N]=x)),p&&O===w&&k&&k.name!==w&&(!e&&h?f(C,"name",w):(R=!0,D=function(){return r(k,this)})),O)if(P={values:A(w),keys:I?D:A(b),entries:A(S)},T)for(M in P)(g||R||!(M in C))&&s(C,M,P[M]);else t({target:l,proto:!0,forced:g||R},P);return e&&!T||C[m]===D||s(C,m,D,{name:O}),d[l]=D,P}}function _c(){return Rc?Nc:(Rc=1,Nc=function(t,r){return{value:t,done:r}})}function $c(){if(kc)return Cc;kc=1;var t=gt(),r=oo(),e=Qu(),n=Kr(),o=Ir().f,i=Fc(),u=_c(),c=er(),a=w(),f="Array Iterator",s=n.set,l=n.getterFor(f);Cc=i(Array,"Array",(function(r,e){s(this,{type:f,target:t(r),index:0,kind:e})}),(function(){var t=l(this),r=t.target,e=t.index++;if(!r||e>=r.length)return t.target=null,u(void 0,!0);switch(t.kind){case"keys":return u(e,!1);case"values":return u(r[e],!1)}return u([e,r[e]],!1)}),"values");var d=e.Arguments=e.Array;if(r("keys"),r("values"),r("entries"),!c&&a&&"values"!==d.name)try{o(d,"name",{value:"values"})}catch(t){}return Cc}!function(){if(wc)return Vc;wc=1;var t=rn(),r=dt(),e=pt(),n=gt(),o=ci(),i=r([].join);t({target:"Array",proto:!0,forced:e!==Object||!o("join",",")},{join:function(t){return i(n(this),void 0===t?",":t)}})}(),$c();var Bc,Uc={};!function(){if(Bc)return Uc;Bc=1;var t=rn(),r=en(),e=an(),n=bt(),o=ye(),i=me(),u=gt(),c=on(),a=fr(),f=ln(),s=bu(),l=f("slice"),d=a("species"),v=Array,p=Math.max;t({target:"Array",proto:!0,forced:!l},{slice:function(t,a){var f,l,h,y=u(this),g=i(y),m=o(t,g),b=o(void 0===a?g:a,g);if(r(y)&&(f=y.constructor,(e(f)&&(f===v||r(f.prototype))||n(f)&&null===(f=f[d]))&&(f=void 0),f===v||void 0===f))return s(y,m,b);for(l=new(void 0===f?v:f)(p(b-m,0)),h=0;m<b;m++,h++)m in y&&c(l,h,y[m]);return l.length=h,l}})}();var Hc,Wc={};!function(){if(Hc)return Wc;Hc=1;var t=Go().charAt,r=En(),e=Kr(),n=Fc(),o=_c(),i="String Iterator",u=e.set,c=e.getterFor(i);n(String,"String",(function(t){u(this,{type:i,string:r(t),index:0})}),(function(){var r,e=c(this),n=e.string,i=e.index;return i>=n.length?o(void 0,!0):(r=t(n,i),e.index+=r.length,o(r,!1))}))}();var Gc,qc,Kc,Xc,Yc={};function Jc(){if(qc)return Gc;qc=1;var t=b();return Gc=!t((function(){return Object.isExtensible(Object.preventExtensions({}))}))}function Qc(){if(Xc)return Kc;Xc=1;var t=Yr();return Kc=function(r,e,n){for(var o in e)t(r,o,e[o],n);return r}}var Zc,ta,ra,ea,na,oa,ia,ua,ca,aa,fa,sa,la,da,va={exports:{}},pa={};function ha(){if(Zc)return pa;Zc=1;var t=vt(),r=gt(),e=Ee().f,n=bu(),o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];return pa.f=function(i){return o&&"Window"===t(i)?function(t){try{return e(t)}catch(t){return n(o)}}(i):e(r(i))},pa}function ya(){if(na)return ea;na=1;var t=b(),r=bt(),e=vt(),n=function(){if(ra)return ta;ra=1;var t=b();return ta=t((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))}(),o=Object.isExtensible,i=t((function(){}));return ea=i||n?function(t){return!!r(t)&&((!n||"ArrayBuffer"!==e(t))&&(!o||o(t)))}:o}function ga(){if(oa)return va.exports;oa=1;var t=rn(),r=dt(),e=qr(),n=bt(),o=cr(),i=Ir().f,u=Ee(),c=ha(),a=ya(),f=ar(),s=Jc(),l=!1,d=f("meta"),v=0,p=function(t){i(t,d,{value:{objectID:"O"+v++,weakData:{}}})},h=va.exports={enable:function(){h.enable=function(){},l=!0;var e=u.f,n=r([].splice),o={};o[d]=1,e(o).length&&(u.f=function(t){for(var r=e(t),o=0,i=r.length;o<i;o++)if(r[o]===d){n(r,o,1);break}return r},t({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:c.f}))},fastKey:function(t,r){if(!n(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,d)){if(!a(t))return"F";if(!r)return"E";p(t)}return t[d].objectID},getWeakData:function(t,r){if(!o(t,d)){if(!a(t))return!0;if(!r)return!1;p(t)}return t[d].weakData},onFreeze:function(t){return s&&l&&a(t)&&!o(t,d)&&p(t),t}};return e[d]=!0,va.exports}function ma(){if(ua)return ia;ua=1;var t=mt(),r=bt(),e=vu();return ia=function(n,o,i){var u,c;return e&&t(u=o.constructor)&&u!==i&&r(c=u.prototype)&&c!==i.prototype&&e(n,c),n}}function ba(){if(aa)return ca;aa=1;var t=rn(),r=f(),e=dt(),n=tn(),o=Yr(),i=ga(),u=nc(),c=yu(),a=mt(),s=ht(),l=bt(),d=b(),v=oc(),p=pu(),h=ma();return ca=function(f,y,g){var m=-1!==f.indexOf("Map"),b=-1!==f.indexOf("Weak"),w=m?"set":"add",S=r[f],E=S&&S.prototype,x=S,O={},I=function(t){var r=e(E[t]);o(E,t,"add"===t?function(t){return r(this,0===t?0:t),this}:"delete"===t?function(t){return!(b&&!l(t))&&r(this,0===t?0:t)}:"get"===t?function(t){return b&&!l(t)?void 0:r(this,0===t?0:t)}:"has"===t?function(t){return!(b&&!l(t))&&r(this,0===t?0:t)}:function(t,e){return r(this,0===t?0:t,e),this})};if(n(f,!a(S)||!(b||E.forEach&&!d((function(){(new S).entries().next()})))))x=g.getConstructor(y,f,m,w),i.enable();else if(n(f,!0)){var T=new x,j=T[w](b?{}:-0,1)!==T,P=d((function(){T.has(1)})),M=v((function(t){new S(t)})),A=!b&&d((function(){for(var t=new S,r=5;r--;)t[w](r,r);return!t.has(-0)}));M||((x=y((function(t,r){c(t,E);var e=h(new S,t,x);return s(r)||u(r,e[w],{that:e,AS_ENTRIES:m}),e}))).prototype=E,E.constructor=x),(P||A)&&(I("delete"),I("has"),m&&I("get")),(A||j)&&I(w),b&&E.clear&&delete E.clear}return O[f]=x,t({global:!0,constructor:!0,forced:x!==S},O),p(x,f),b||g.setStrong(x,f,m),x}}function wa(){if(sa)return fa;sa=1;var t=dt(),r=Qc(),e=ga().getWeakData,n=yu(),o=Or(),i=ht(),u=bt(),c=nc(),a=Un(),f=cr(),s=Kr(),l=s.set,d=s.getterFor,v=a.find,p=a.findIndex,h=t([].splice),y=0,g=function(t){return t.frozen||(t.frozen=new m)},m=function(){this.entries=[]},b=function(t,r){return v(t.entries,(function(t){return t[0]===r}))};return m.prototype={get:function(t){var r=b(this,t);if(r)return r[1]},has:function(t){return!!b(this,t)},set:function(t,r){var e=b(this,t);e?e[1]=r:this.entries.push([t,r])},delete:function(t){var r=p(this.entries,(function(r){return r[0]===t}));return~r&&h(this.entries,r,1),!!~r}},fa={getConstructor:function(t,a,s,v){var p=t((function(t,r){n(t,h),l(t,{type:a,id:y++,frozen:null}),i(r)||c(r,t[v],{that:t,AS_ENTRIES:s})})),h=p.prototype,m=d(a),b=function(t,r,n){var i=m(t),u=e(o(r),!0);return!0===u?g(i).set(r,n):u[i.id]=n,t};return r(h,{delete:function(t){var r=m(this);if(!u(t))return!1;var n=e(t);return!0===n?g(r).delete(t):n&&f(n,r.id)&&delete n[r.id]},has:function(t){var r=m(this);if(!u(t))return!1;var n=e(t);return!0===n?g(r).has(t):n&&f(n,r.id)}}),r(h,s?{get:function(t){var r=m(this);if(u(t)){var n=e(t);if(!0===n)return g(r).get(t);if(n)return n[r.id]}},set:function(t,r){return b(this,t,r)}}:{add:function(t){return b(this,t,!0)}}),p}}}da||(da=1,function(){if(la)return Yc;la=1;var t,r=Jc(),e=f(),n=dt(),o=Qc(),i=ga(),u=ba(),c=wa(),a=bt(),s=Kr().enforce,l=b(),d=Wr(),v=Object,p=Array.isArray,h=v.isExtensible,y=v.isFrozen,g=v.isSealed,m=v.freeze,w=v.seal,S=!e.ActiveXObject&&"ActiveXObject"in e,E=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},x=u("WeakMap",E,c),O=x.prototype,I=n(O.set);if(d)if(S){t=c.getConstructor(E,"WeakMap",!0),i.enable();var T=n(O.delete),j=n(O.has),P=n(O.get);o(O,{delete:function(r){if(a(r)&&!h(r)){var e=s(this);return e.frozen||(e.frozen=new t),T(this,r)||e.frozen.delete(r)}return T(this,r)},has:function(r){if(a(r)&&!h(r)){var e=s(this);return e.frozen||(e.frozen=new t),j(this,r)||e.frozen.has(r)}return j(this,r)},get:function(r){if(a(r)&&!h(r)){var e=s(this);return e.frozen||(e.frozen=new t),j(this,r)?P(this,r):e.frozen.get(r)}return P(this,r)},set:function(r,e){if(a(r)&&!h(r)){var n=s(this);n.frozen||(n.frozen=new t),j(this,r)?I(this,r,e):n.frozen.set(r,e)}else I(this,r,e);return this}})}else r&&l((function(){var t=m([]);return I(new x,t,1),!y(t)}))&&o(O,{set:function(t,r){var e;return p(t)&&(y(t)?e=m:g(t)&&(e=w)),I(this,t,r),e&&e(t),this}})}());var Sa,Ea={};function xa(t){return t.getMenuConfig("uploadVideo")}!function(){if(Sa)return Ea;Sa=1;var t=f(),r=ii(),e=ui(),n=$c(),o=Tr(),i=pu(),u=fr()("iterator"),c=n.values,a=function(t,e){if(t){if(t[u]!==c)try{o(t,u,c)}catch(r){t[u]=c}if(i(t,e,!0),r[e])for(var a in n)if(t[a]!==n[a])try{o(t,a,n[a])}catch(r){t[a]=n[a]}}};for(var s in r)a(t[s]&&t[s].prototype,s);a(e,"DOMTokenList")}();var Oa=new WeakMap;function Ia(r,e){return To(this,void 0,void 0,(function(){var n,o,i,u;return jo(this,(function(c){switch(c.label){case 0:return n=function(r){var e=Oa.get(r);if(null!=e)return e;var n=xa(r),o=n.onSuccess,i=n.onProgress,u=n.onFailed,c=n.customInsert,a=n.onError;return e=t.createUploader(Io(Io({},n),{onProgress:function(t){r.showProgressBar(t),i&&i(t)},onSuccess:function(t,e){if(c)return c(e,(function(t,e){return mc(r,t,e)})),void o(t,e);var n=e.errno,i=void 0===n?1:n,a=e.data,f=void 0===a?{}:a;if(0===i){var s=f.url,l=void 0===s?"":s,d=f.poster;mc(r,l,void 0===d?"":d),o(t,e)}else u(t,e)},onError:function(t,r,e){a(t,r,e)}})),Oa.set(r,e),e}(r),o=e.name,i=e.type,u=e.size,n.addFile({name:o,type:i,size:u,data:e}),[4,n.upload()];case 1:return c.sent(),[2]}}))}))}var Ta=function(){function n(){this.title=t.t("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 n.prototype.getValue=function(t){return""},n.prototype.isActive=function(t){return!1},n.prototype.exec=function(t,e){var n=this.getMenuConfig(t),o=n.allowedFileTypes,i=void 0===o?[]:o,u=n.customBrowseAndUpload;if(u)u((function(r,e){return mc(t,r,e)}));else{var c="";i.length>0&&(c='accept="'.concat(i.join(", "),'"'));var a=r("body"),f=r('<input type="file" '.concat(c," multiple/>"));f.hide(),a.append(f),f.click(),f.on("change",(function(){var r=f[0].files;!function(t,r){To(this,void 0,void 0,(function(){var e,n,o,i,u,c,a,f,s,l,d;return jo(this,(function(v){switch(v.label){case 0:if(null==r)return[2];e=Array.prototype.slice.call(r),n=xa(t).customUpload,v.label=1;case 1:v.trys.push([1,9,10,15]),o=!0,i=Ao(e),v.label=2;case 2:return[4,i.next()];case 3:return u=v.sent(),(f=u.done)?[3,8]:(d=u.value,o=!1,c=d,n?[4,n(c,(function(r,e){return mc(t,r,e)}))]:[3,5]);case 4:return v.sent(),[3,7];case 5:return[4,Ia(t,c)];case 6:v.sent(),v.label=7;case 7:return o=!0,[3,2];case 8:return[3,15];case 9:return a=v.sent(),s={error:a},[3,15];case 10:return v.trys.push([10,,13,14]),o||f||!(l=i.return)?[3,12]:[4,l.call(i)];case 11:v.sent(),v.label=12;case 12:return[3,14];case 13:if(s)throw s.error;return[7];case 14:return[7];case 15:return[2]}}))}))}(t,r)}))}},n.prototype.isDisabled=function(r){var n=r.selection;return null==n||(!e.Range.isCollapsed(n)||!!t.DomEditor.getSelectedElems(r).some((function(e){var n=t.DomEditor.getNodeType(e);return"pre"===n||("list-item"===n||!!r.isVoid(e))})))},n.prototype.getMenuConfig=function(t){return t.getMenuConfig("uploadVideo")},n}(),ja={key:"insertVideo",factory:function(){return new Dc},config:{onInsertedVideo:function(t){},checkVideo:function(t,r){return!0},parseVideoSrc:function(t){return t}}},Pa={key:"uploadVideo",factory:function(){return new Ta},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,r){},onFailed:function(t,r){console.error("'".concat(t.name,"' upload failed"),r)},onError:function(t,r,e){console.error("'".concat(t.name," upload error"),r,e)}}},Ma={key:"editVideoSize",factory:function(){return new li}},Aa={key:"editVideoSrc",factory:function(){return new cu}};function Na(t,r,e,n,o){return void 0===r&&(r=""),void 0===e&&(e="auto"),void 0===n&&(n="auto"),void 0===o&&(o={}),{type:"video",src:t,poster:r,width:e,height:n,style:o,children:[{text:""}]}}var Ra={selector:'div[data-w-e-type="video"]',parseElemHtml:function(t,e,n){var o=r(t),i="",u="",c="auto",a="auto",f={},s=o.find("iframe");if(s.length>0)return c=s.attr("width")||"auto",a=s.attr("height")||"auto",f=fi(f=s.attr("style")||""),Na(i=s[0].outerHTML,u,c,a,f);var l=o.find("video");return(i=l.attr("src")||"")||l.length>0&&(i=l.find("source").attr("src")||""),c=l.attr("width")||"auto",a=l.attr("height")||"auto",Na(i,u=l.attr("poster")||"",c,a,f=fi(f=l.attr("style")||""))}};var Ca,ka={};return function(){if(Ca)return ka;Ca=1;var t=rn(),r=be().includes,e=b(),n=oo();t({target:"Array",proto:!0,forced:e((function(){return!Array(1).includes()}))},{includes:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),n("includes")}(),{renderElems:[{type:"video",renderElem:function(r,e,n){var i,u=r,c=u.src,a=void 0===c?"":c,f=u.poster,s=void 0===f?"":f,l=u.key,d=void 0===l?"":l,v=u.width,p=void 0===v?"auto":v,h=u.height,y=void 0===h?"auto":h,g=u.style,m=void 0===g?{}:g,b=u.textAlign,w=void 0===b?"center":b,S=t.DomEditor.isNodeSelected(n,r);if(0===a.trim().indexOf("<iframe ")){var E=Pn(a,p,y,m);i=o.jsx("div",{className:"w-e-textarea-video-container","data-selected":S?"true":"",style:{textAlign:w},innerHTML:E})}else{var x=o.jsx("video",{key:d,poster:s,controls:!0,style:m},o.jsx("source",{src:a,type:"video/mp4"}),"Sorry, your browser doesn't support embedded videos.\n 抱歉,浏览器不支持 video 视频");"auto"!==p&&(x.data.width=p),"auto"!==y&&(x.data.height=y),i=o.jsx("div",{className:"w-e-textarea-video-container","data-selected":S?"true":"",style:{textAlign:w}},x)}return o.h("div",{props:{contentEditable:!1},on:{mousedown:function(t){return t.preventDefault()}}},i)}}],elemsToHtml:[Rn],preParseHtml:[{selector:"iframe,video,p",preParseHtml:function(t){var e=r(t),n=e;if("p"===jn(e)){var o=e.children();if(1===o.length){var i=o[0],u=i.tagName.toLowerCase();["iframe","video"].includes(u)&&(n=r(i))}}var c=jn(n);if("iframe"!==c&&"video"!==c)return n[0];if("video"===n.parent().attr("data-w-e-type"))return n[0];var a=r('<div data-w-e-type="video" data-w-e-is-void style="text-align: center;"></div>');return a.append(n),a[0]}}],parseElemsHtml:[Ra],menus:[ja,Pa,Ma,Aa],editorPlugin:function(r){var n=r.isVoid,o=r.normalizeNode,i=r;return i.isVoid=function(t){return"video"===t.type||n(t)},i.normalizeNode=function(r){var n=Mo(r,2),u=n[0],c=n[1];"video"===t.DomEditor.getNodeType(u)&&(t.DomEditor.isLastNode(i,u)&&e.Transforms.insertNodes(i,t.DomEditor.genEmptyParagraph(),{at:[c[0]+1]}));return o([u,c])},i}}}));
2
2
  //# sourceMappingURL=index.js.map