@wangeditor-next/video-module 1.4.0 → 2.0.0

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