@wangeditor-kai/editor 5.6.39 → 5.6.40

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 (165) hide show
  1. package/dist/basic-modules/src/index.d.ts +1 -1
  2. package/dist/basic-modules/src/modules/blockquote/index.d.ts +1 -1
  3. package/dist/basic-modules/src/modules/blockquote/menu/BlockquoteMenu.d.ts +1 -1
  4. package/dist/basic-modules/src/modules/blockquote/parse-elem-html.d.ts +1 -1
  5. package/dist/basic-modules/src/modules/blockquote/plugin.d.ts +1 -1
  6. package/dist/basic-modules/src/modules/blockquote/render-elem.d.ts +1 -1
  7. package/dist/basic-modules/src/modules/code-block/index.d.ts +1 -1
  8. package/dist/basic-modules/src/modules/code-block/menu/CodeBlockMenu.d.ts +1 -1
  9. package/dist/basic-modules/src/modules/code-block/parse-elem-html.d.ts +1 -1
  10. package/dist/basic-modules/src/modules/code-block/plugin.d.ts +1 -1
  11. package/dist/basic-modules/src/modules/code-block/render-elem.d.ts +1 -1
  12. package/dist/basic-modules/src/modules/color/index.d.ts +1 -1
  13. package/dist/basic-modules/src/modules/color/menu/BaseMenu.d.ts +1 -1
  14. package/dist/basic-modules/src/modules/color/parse-style-html.d.ts +1 -1
  15. package/dist/basic-modules/src/modules/common/index.d.ts +1 -1
  16. package/dist/basic-modules/src/modules/common/menu/EnterMenu.d.ts +1 -1
  17. package/dist/basic-modules/src/modules/divider/index.d.ts +1 -1
  18. package/dist/basic-modules/src/modules/divider/menu/InsertDividerMenu.d.ts +1 -1
  19. package/dist/basic-modules/src/modules/divider/parse-elem-html.d.ts +1 -1
  20. package/dist/basic-modules/src/modules/divider/plugin.d.ts +1 -1
  21. package/dist/basic-modules/src/modules/divider/render-elem.d.ts +1 -1
  22. package/dist/basic-modules/src/modules/emotion/index.d.ts +1 -1
  23. package/dist/basic-modules/src/modules/emotion/menu/EmotionMenu.d.ts +1 -1
  24. package/dist/basic-modules/src/modules/font-size-family/index.d.ts +1 -1
  25. package/dist/basic-modules/src/modules/font-size-family/menu/BaseMenu.d.ts +1 -1
  26. package/dist/basic-modules/src/modules/font-size-family/menu/FontFamilyMenu.d.ts +1 -1
  27. package/dist/basic-modules/src/modules/font-size-family/menu/FontSizeMenu.d.ts +1 -1
  28. package/dist/basic-modules/src/modules/font-size-family/parse-style-html.d.ts +1 -1
  29. package/dist/basic-modules/src/modules/format-painter/helper.d.ts +1 -1
  30. package/dist/basic-modules/src/modules/format-painter/index.d.ts +1 -1
  31. package/dist/basic-modules/src/modules/format-painter/menu/FormatPainter.d.ts +1 -1
  32. package/dist/basic-modules/src/modules/format-painter/plugin.d.ts +1 -1
  33. package/dist/basic-modules/src/modules/full-screen/index.d.ts +1 -1
  34. package/dist/basic-modules/src/modules/full-screen/menu/FullScreen.d.ts +1 -1
  35. package/dist/basic-modules/src/modules/header/helper.d.ts +1 -1
  36. package/dist/basic-modules/src/modules/header/index.d.ts +1 -1
  37. package/dist/basic-modules/src/modules/header/menu/HeaderButtonMenuBase.d.ts +1 -1
  38. package/dist/basic-modules/src/modules/header/menu/HeaderSelectMenu.d.ts +1 -1
  39. package/dist/basic-modules/src/modules/header/parse-elem-html.d.ts +1 -1
  40. package/dist/basic-modules/src/modules/header/plugin.d.ts +1 -1
  41. package/dist/basic-modules/src/modules/header/render-elem.d.ts +1 -1
  42. package/dist/basic-modules/src/modules/image/helper.d.ts +1 -1
  43. package/dist/basic-modules/src/modules/image/index.d.ts +1 -1
  44. package/dist/basic-modules/src/modules/image/menu/DeleteImage.d.ts +1 -1
  45. package/dist/basic-modules/src/modules/image/menu/EditImage.d.ts +1 -1
  46. package/dist/basic-modules/src/modules/image/menu/EditImageSizeMenu.d.ts +1 -1
  47. package/dist/basic-modules/src/modules/image/menu/InsertImage.d.ts +1 -1
  48. package/dist/basic-modules/src/modules/image/menu/ViewImageLink.d.ts +1 -1
  49. package/dist/basic-modules/src/modules/image/menu/WidthBase.d.ts +1 -1
  50. package/dist/basic-modules/src/modules/image/parse-elem-html.d.ts +1 -1
  51. package/dist/basic-modules/src/modules/image/plugin.d.ts +1 -1
  52. package/dist/basic-modules/src/modules/image/render-elem.d.ts +1 -1
  53. package/dist/basic-modules/src/modules/indent/index.d.ts +1 -1
  54. package/dist/basic-modules/src/modules/indent/menu/BaseMenu.d.ts +1 -1
  55. package/dist/basic-modules/src/modules/indent/menu/DecreaseIndentMenu.d.ts +1 -1
  56. package/dist/basic-modules/src/modules/indent/menu/IncreaseIndentMenu.d.ts +1 -1
  57. package/dist/basic-modules/src/modules/indent/parse-style-html.d.ts +1 -1
  58. package/dist/basic-modules/src/modules/justify/index.d.ts +1 -1
  59. package/dist/basic-modules/src/modules/justify/menu/BaseMenu.d.ts +1 -1
  60. package/dist/basic-modules/src/modules/justify/menu/JustifyCenterMenu.d.ts +1 -1
  61. package/dist/basic-modules/src/modules/justify/menu/JustifyJustifyMenu.d.ts +1 -1
  62. package/dist/basic-modules/src/modules/justify/menu/JustifyLeftMenu.d.ts +1 -1
  63. package/dist/basic-modules/src/modules/justify/menu/JustifyRightMenu.d.ts +1 -1
  64. package/dist/basic-modules/src/modules/justify/parse-style-html.d.ts +1 -1
  65. package/dist/basic-modules/src/modules/line-height/index.d.ts +1 -1
  66. package/dist/basic-modules/src/modules/line-height/menu/LineHeightMenu.d.ts +1 -1
  67. package/dist/basic-modules/src/modules/line-height/parse-style-html.d.ts +1 -1
  68. package/dist/basic-modules/src/modules/link/helper.d.ts +1 -1
  69. package/dist/basic-modules/src/modules/link/index.d.ts +1 -1
  70. package/dist/basic-modules/src/modules/link/menu/EditLink.d.ts +1 -1
  71. package/dist/basic-modules/src/modules/link/menu/InsertLink.d.ts +1 -1
  72. package/dist/basic-modules/src/modules/link/menu/UnLink.d.ts +1 -1
  73. package/dist/basic-modules/src/modules/link/menu/ViewLink.d.ts +1 -1
  74. package/dist/basic-modules/src/modules/link/parse-elem-html.d.ts +2 -2
  75. package/dist/basic-modules/src/modules/link/plugin.d.ts +1 -1
  76. package/dist/basic-modules/src/modules/link/render-elem.d.ts +1 -1
  77. package/dist/basic-modules/src/modules/paragraph/index.d.ts +1 -1
  78. package/dist/basic-modules/src/modules/paragraph/parse-elem-html.d.ts +1 -1
  79. package/dist/basic-modules/src/modules/paragraph/plugin.d.ts +1 -1
  80. package/dist/basic-modules/src/modules/paragraph/render-elem.d.ts +1 -1
  81. package/dist/basic-modules/src/modules/text-style/helper.d.ts +1 -1
  82. package/dist/basic-modules/src/modules/text-style/index.d.ts +1 -1
  83. package/dist/basic-modules/src/modules/text-style/menu/BaseMenu.d.ts +1 -1
  84. package/dist/basic-modules/src/modules/text-style/menu/ClearStyleMenu.d.ts +1 -1
  85. package/dist/basic-modules/src/modules/text-style/parse-style-html.d.ts +1 -1
  86. package/dist/basic-modules/src/modules/todo/index.d.ts +1 -1
  87. package/dist/basic-modules/src/modules/todo/menu/Todo.d.ts +1 -1
  88. package/dist/basic-modules/src/modules/todo/parse-elem-html.d.ts +1 -1
  89. package/dist/basic-modules/src/modules/todo/plugin.d.ts +1 -1
  90. package/dist/basic-modules/src/modules/todo/render-elem.d.ts +1 -1
  91. package/dist/basic-modules/src/modules/undo-redo/index.d.ts +1 -1
  92. package/dist/basic-modules/src/modules/undo-redo/menu/RedoMenu.d.ts +1 -1
  93. package/dist/basic-modules/src/modules/undo-redo/menu/UndoMenu.d.ts +1 -1
  94. package/dist/code-highlight/src/module/index.d.ts +1 -1
  95. package/dist/code-highlight/src/module/menu/SelectLangMenu.d.ts +1 -1
  96. package/dist/code-highlight/src/module/parse-style-html.d.ts +1 -1
  97. package/dist/css/style.css +8 -1
  98. package/dist/index.js +4 -10
  99. package/dist/index.js.map +1 -1
  100. package/dist/index.mjs +4 -10
  101. package/dist/index.mjs.map +1 -1
  102. package/dist/list-module/src/module/helpers.d.ts +1 -1
  103. package/dist/list-module/src/module/index.d.ts +1 -1
  104. package/dist/list-module/src/module/menu/BaseMenu.d.ts +1 -1
  105. package/dist/list-module/src/module/parse-elem-html.d.ts +1 -1
  106. package/dist/list-module/src/module/plugin.d.ts +1 -1
  107. package/dist/list-module/src/module/render-elem.d.ts +1 -1
  108. package/dist/list-module/src/utils/maps.d.ts +1 -1
  109. package/dist/plugin-formula/src/constants/icon-svg.d.ts +11 -0
  110. package/dist/plugin-formula/src/index.d.ts +7 -0
  111. package/dist/plugin-formula/src/module/custom-types.d.ts +13 -0
  112. package/dist/plugin-formula/src/module/elem-to-html.d.ts +11 -0
  113. package/dist/plugin-formula/src/module/index.d.ts +8 -0
  114. package/dist/plugin-formula/src/module/local.d.ts +5 -0
  115. package/dist/plugin-formula/src/module/menu/EditFormula.d.ts +29 -0
  116. package/dist/plugin-formula/src/module/menu/InsertFormula.d.ts +24 -0
  117. package/dist/plugin-formula/src/module/menu/TextToFormula.d.ts +27 -0
  118. package/dist/plugin-formula/src/module/menu/index.d.ts +19 -0
  119. package/dist/plugin-formula/src/module/parse-elem-html.d.ts +12 -0
  120. package/dist/plugin-formula/src/module/plugin.d.ts +7 -0
  121. package/dist/plugin-formula/src/module/render-elem.d.ts +12 -0
  122. package/dist/plugin-formula/src/register-custom-elem/index.d.ts +5 -0
  123. package/dist/plugin-formula/src/register-custom-elem/native-shim.d.ts +0 -0
  124. package/dist/plugin-formula/src/utils/dom.d.ts +15 -0
  125. package/dist/plugin-formula/src/utils/util.d.ts +17 -0
  126. package/dist/table-module/src/module/column-resize.d.ts +1 -1
  127. package/dist/table-module/src/module/helpers.d.ts +1 -1
  128. package/dist/table-module/src/module/index.d.ts +1 -1
  129. package/dist/table-module/src/module/menu/CellProperty.d.ts +1 -1
  130. package/dist/table-module/src/module/menu/DeleteCol.d.ts +1 -1
  131. package/dist/table-module/src/module/menu/DeleteRow.d.ts +1 -1
  132. package/dist/table-module/src/module/menu/DeleteTable.d.ts +1 -1
  133. package/dist/table-module/src/module/menu/FullWidth.d.ts +1 -1
  134. package/dist/table-module/src/module/menu/InsertCol.d.ts +1 -1
  135. package/dist/table-module/src/module/menu/InsertRow.d.ts +1 -1
  136. package/dist/table-module/src/module/menu/InsertTable.d.ts +1 -1
  137. package/dist/table-module/src/module/menu/MergeCell.d.ts +1 -1
  138. package/dist/table-module/src/module/menu/SplitCell.d.ts +1 -1
  139. package/dist/table-module/src/module/menu/TableHeader.d.ts +1 -1
  140. package/dist/table-module/src/module/menu/TableProperty.d.ts +1 -1
  141. package/dist/table-module/src/module/parse-elem-html.d.ts +1 -1
  142. package/dist/table-module/src/module/parse-style-html.d.ts +1 -1
  143. package/dist/table-module/src/module/plugin.d.ts +1 -1
  144. package/dist/table-module/src/module/render-elem/render-cell.d.ts +1 -1
  145. package/dist/table-module/src/module/render-elem/render-row.d.ts +1 -1
  146. package/dist/table-module/src/module/render-elem/render-table.d.ts +1 -1
  147. package/dist/upload-image-module/src/module/index.d.ts +1 -1
  148. package/dist/upload-image-module/src/module/menu/UploadImageMenu.d.ts +1 -1
  149. package/dist/upload-image-module/src/module/menu/config.d.ts +1 -1
  150. package/dist/upload-image-module/src/module/menu/index.d.ts +1 -1
  151. package/dist/upload-image-module/src/module/plugin.d.ts +1 -1
  152. package/dist/upload-image-module/src/module/upload-images.d.ts +1 -1
  153. package/dist/video-module/src/module/helper/insert-video.d.ts +1 -1
  154. package/dist/video-module/src/module/helper/upload-videos.d.ts +1 -1
  155. package/dist/video-module/src/module/index.d.ts +1 -1
  156. package/dist/video-module/src/module/menu/EditVideoSizeMenu.d.ts +1 -1
  157. package/dist/video-module/src/module/menu/EditVideoSrcMenu.d.ts +1 -1
  158. package/dist/video-module/src/module/menu/InsertVideoMenu.d.ts +1 -1
  159. package/dist/video-module/src/module/menu/UploadVideoMenu.d.ts +1 -1
  160. package/dist/video-module/src/module/menu/config.d.ts +1 -1
  161. package/dist/video-module/src/module/menu/index.d.ts +1 -1
  162. package/dist/video-module/src/module/parse-elem-html.d.ts +1 -1
  163. package/dist/video-module/src/module/plugin.d.ts +1 -1
  164. package/dist/video-module/src/module/render-elem.d.ts +1 -1
  165. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,11 +1,11 @@
1
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).wangEditor={})}(this,function(t){"use strict";var e,n,r,o,i,u,a,s,c,l,f,d,p,h,v,g,y,m,b="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function E(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function w(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if("function"==typeof e){var n=function t(){var n=!1;try{n=this instanceof t}catch{}return n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(e){var r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(n,e,r.get?r:{enumerable:!0,get:function(){return t[e]}})}),n}function S(){return n?e:(n=1,e=function(t){try{return!!t()}catch(t){return!0}})}function C(){if(o)return r;o=1;var t=S();return r=!t(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})}function D(){if(u)return i;u=1;var t=C(),e=Function.prototype,n=e.call,r=t&&e.bind.bind(n,n);return i=t?r:function(t){return function(){return n.apply(t,arguments)}},i}function O(){if(s)return a;s=1;var t=D(),e=t({}.toString),n=t("".slice);return a=function(t){return n(e(t),8,-1)},a}function A(){if(l)return c;l=1;var t=D(),e=S(),n=O(),r=Object,o=t("".split);return c=e(function(){return!r("z").propertyIsEnumerable(0)})?function(t){return"String"===n(t)?o(t,""):r(t)}:r,c}function x(){return d||(d=1,f=function(t){return null==t}),f}function T(){if(h)return p;h=1;var t=x(),e=TypeError;return p=function(n){if(t(n))throw new e("Can't call method on "+n);return n},p}function N(){if(g)return v;g=1;var t=A(),e=T();return v=function(n){return t(e(n))},v}function P(){if(m)return y;m=1;var t=function(t){return t&&t.Math===Math&&t};return y=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof b&&b)||t("object"==typeof y&&y)||function(){return this}()||Function("return this")()}var k,I,B,F,R,_,j,L,M,z,H,$,U,V,G,W,q,K,Y,X,J,Z,Q,tt,et,nt,rt,ot,it,ut={exports:{}};function at(){return I?k:(I=1,k=!1)}function st(){if(F)return B;F=1;var t=P(),e=Object.defineProperty;return B=function(n,r){try{e(t,n,{value:r,configurable:!0,writable:!0})}catch(e){t[n]=r}return r}}function ct(){if(R)return ut.exports;R=1;var t=at(),e=P(),n=st(),r="__core-js_shared__",o=ut.exports=e[r]||n(r,{});return(o.versions||(o.versions=[])).push({version:"3.44.0",mode:t?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.44.0/LICENSE",source:"https://github.com/zloirock/core-js"}),ut.exports}function lt(){if(j)return _;j=1;var t=ct();return _=function(e,n){return t[e]||(t[e]=n||{})}}function ft(){if(M)return L;M=1;var t=T(),e=Object;return L=function(n){return e(t(n))}}function dt(){if(H)return z;H=1;var t=D(),e=ft(),n=t({}.hasOwnProperty);return z=Object.hasOwn||function(t,r){return n(e(t),r)},z}function pt(){if(U)return $;U=1;var t=D(),e=0,n=Math.random(),r=t(1.1.toString);return $=function(t){return"Symbol("+(void 0===t?"":t)+")_"+r(++e+n,36)}}function ht(){if(q)return W;q=1;var t,e,n=P(),r=function(){if(G)return V;G=1;var t=P().navigator,e=t&&t.userAgent;return V=e?String(e):""}(),o=n.process,i=n.Deno,u=o&&o.versions||i&&i.version,a=u&&u.v8;return a&&(e=(t=a.split("."))[0]>0&&t[0]<4?1:+(t[0]+t[1])),!e&&r&&(!(t=r.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=r.match(/Chrome\/(\d+)/))&&(e=+t[1]),W=e}function vt(){if(Y)return K;Y=1;var t=ht(),e=S(),n=P().String;return K=!!Object.getOwnPropertySymbols&&!e(function(){var e=Symbol("symbol detection");return!n(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&t&&t<41}),K}function gt(){if(J)return X;J=1;var t=vt();return X=t&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function yt(){if(Q)return Z;Q=1;var t=P(),e=lt(),n=dt(),r=pt(),o=vt(),i=gt(),u=t.Symbol,a=e("wks"),s=i?u.for||u:u&&u.withoutSetter||r;return Z=function(t){return n(a,t)||(a[t]=o&&n(u,t)?u[t]:s("Symbol."+t)),a[t]}}function mt(){if(et)return tt;et=1;var t="object"==typeof document&&document.all;return tt=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(t){return"function"==typeof t}}function bt(){if(rt)return nt;rt=1;var t=mt();return nt=function(e){return"object"==typeof e?null!==e:t(e)},nt}function Et(){if(it)return ot;it=1;var t=bt(),e=String,n=TypeError;return ot=function(r){if(t(r))return r;throw new n(e(r)+" is not an object")}}var wt,St,Ct,Dt,Ot={};function At(){if(St)return wt;St=1;var t=S();return wt=!t(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function xt(){if(Dt)return Ct;Dt=1;var t=At(),e=S();return Ct=t&&e(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}var Tt,Nt,Pt,kt,It,Bt,Ft,Rt,_t,jt,Lt,Mt,zt,Ht,$t,Ut,Vt,Gt,Wt,qt,Kt,Yt,Xt,Jt,Zt,Qt,te,ee,ne,re,oe,ie,ue,ae,se,ce,le,fe,de,pe,he,ve,ge,ye,me,be,Ee,we,Se,Ce,De,Oe,Ae,xe,Te,Ne,Pe,ke,Ie,Be,Fe,Re,_e,je,Le={};function Me(){if(Nt)return Tt;Nt=1;var t=P(),e=bt(),n=t.document,r=e(n)&&e(n.createElement);return Tt=function(t){return r?n.createElement(t):{}},Tt}function ze(){if(kt)return Pt;kt=1;var t=At(),e=S(),n=Me();return Pt=!t&&!e(function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a})}function He(){if(Bt)return It;Bt=1;var t=C(),e=Function.prototype.call;return It=t?e.bind(e):function(){return e.apply(e,arguments)},It}function $e(){if(Rt)return Ft;Rt=1;var t=P(),e=mt();return Ft=function(n,r){return arguments.length<2?(o=t[n],e(o)?o:void 0):t[n]&&t[n][r];var o},Ft}function Ue(){if(jt)return _t;jt=1;var t=D();return _t=t({}.isPrototypeOf)}function Ve(){if(Mt)return Lt;Mt=1;var t=$e(),e=mt(),n=Ue(),r=gt(),o=Object;return Lt=r?function(t){return"symbol"==typeof t}:function(r){var i=t("Symbol");return e(i)&&n(i.prototype,o(r))},Lt}function Ge(){if(Ht)return zt;Ht=1;var t=String;return zt=function(e){try{return t(e)}catch(t){return"Object"}}}function We(){if(Ut)return $t;Ut=1;var t=mt(),e=Ge(),n=TypeError;return $t=function(r){if(t(r))return r;throw new n(e(r)+" is not a function")}}function qe(){if(Gt)return Vt;Gt=1;var t=We(),e=x();return Vt=function(n,r){var o=n[r];return e(o)?void 0:t(o)},Vt}function Ke(){if(Yt)return Kt;Yt=1;var t=He(),e=bt(),n=Ve(),r=qe(),o=function(){if(qt)return Wt;qt=1;var t=He(),e=mt(),n=bt(),r=TypeError;return Wt=function(o,i){var u,a;if("string"===i&&e(u=o.toString)&&!n(a=t(u,o)))return a;if(e(u=o.valueOf)&&!n(a=t(u,o)))return a;if("string"!==i&&e(u=o.toString)&&!n(a=t(u,o)))return a;throw new r("Can't convert object to primitive value")},Wt}(),i=yt(),u=TypeError,a=i("toPrimitive");return Kt=function(i,s){if(!e(i)||n(i))return i;var c,l=r(i,a);if(l){if(void 0===s&&(s="default"),c=t(l,i,s),!e(c)||n(c))return c;throw new u("Can't convert object to primitive value")}return void 0===s&&(s="number"),o(i,s)}}function Ye(){if(Jt)return Xt;Jt=1;var t=Ke(),e=Ve();return Xt=function(n){var r=t(n,"string");return e(r)?r:r+""}}function Xe(){if(Zt)return Le;Zt=1;var t=At(),e=ze(),n=xt(),r=Et(),o=Ye(),i=TypeError,u=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s="enumerable",c="configurable",l="writable";return Le.f=t?n?function(t,e,n){if(r(t),e=o(e),r(n),"function"==typeof t&&"prototype"===e&&"value"in n&&l in n&&!n[l]){var i=a(t,e);i&&i[l]&&(t[e]=n.value,n={configurable:c in n?n[c]:i[c],enumerable:s in n?n[s]:i[s],writable:!1})}return u(t,e,n)}:u:function(t,n,a){if(r(t),n=o(n),r(a),e)try{return u(t,n,a)}catch(t){}if("get"in a||"set"in a)throw new i("Accessors not supported");return"value"in a&&(t[n]=a.value),t},Le}function Je(){if(ne)return ee;ne=1;var t=function(){if(te)return Qt;te=1;var t=Math.ceil,e=Math.floor;return Qt=Math.trunc||function(n){var r=+n;return(r>0?e:t)(r)},Qt}();return ee=function(e){var n=+e;return n!=n||0===n?0:t(n)}}function Ze(){if(ue)return ie;ue=1;var t=Je(),e=Math.min;return ie=function(n){var r=t(n);return r>0?e(r,9007199254740991):0}}function Qe(){if(se)return ae;se=1;var t=Ze();return ae=function(e){return t(e.length)}}function tn(){if(le)return ce;le=1;var t=N(),e=function(){if(oe)return re;oe=1;var t=Je(),e=Math.max,n=Math.min;return re=function(r,o){var i=t(r);return i<0?e(i+o,0):n(i,o)},re}(),n=Qe(),r=function(r){return function(o,i,u){var a=t(o),s=n(a);if(0===s)return!r&&-1;var c,l=e(u,s);if(r&&i!=i){for(;s>l;)if((c=a[l++])!=c)return!0}else for(;s>l;l++)if((r||l in a)&&a[l]===i)return r||l||0;return!r&&-1}};return ce={includes:r(!0),indexOf:r(!1)}}function en(){return de?fe:(de=1,fe={})}function nn(){if(he)return pe;he=1;var t=D(),e=dt(),n=N(),r=tn().indexOf,o=en(),i=t([].push);return pe=function(t,u){var a,s=n(t),c=0,l=[];for(a in s)!e(o,a)&&e(s,a)&&i(l,a);for(;u.length>c;)e(s,a=u[c++])&&(~r(l,a)||i(l,a));return l},pe}function rn(){return ge?ve:(ge=1,ve=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function on(){if(be)return Ot;be=1;var t=At(),e=xt(),n=Xe(),r=Et(),o=N(),i=function(){if(me)return ye;me=1;var t=nn(),e=rn();return ye=Object.keys||function(n){return t(n,e)},ye}();return Ot.f=t&&!e?Object.defineProperties:function(t,e){r(t);for(var u,a=o(e),s=i(e),c=s.length,l=0;c>l;)n.f(t,u=s[l++],a[u]);return t},Ot}function un(){if(Ce)return Se;Ce=1;var t=lt(),e=pt(),n=t("keys");return Se=function(t){return n[t]||(n[t]=e(t))}}function an(){if(Oe)return De;Oe=1;var t,e=Et(),n=on(),r=rn(),o=en(),i=function(){if(we)return Ee;we=1;var t=$e();return Ee=t("document","documentElement")}(),u=Me(),a=un(),s="prototype",c="script",l=a("IE_PROTO"),f=function(){},d=function(t){return"<"+c+">"+t+"</"+c+">"},p=function(t){t.write(d("")),t.close();var e=t.parentWindow.Object;return t=null,e},h=function(){try{t=new ActiveXObject("htmlfile")}catch(t){}var e,n,o;h="undefined"!=typeof document?document.domain&&t?p(t):(n=u("iframe"),o="java"+c+":",n.style.display="none",i.appendChild(n),n.src=String(o),(e=n.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F):p(t);for(var a=r.length;a--;)delete h[s][r[a]];return h()};return o[l]=!0,De=Object.create||function(t,r){var o;return null!==t?(f[s]=e(t),o=new f,f[s]=null,o[l]=t):o=h(),void 0===r?o:n.f(o,r)},De}function sn(){return Ne?Te:(Ne=1,Te={})}function cn(){return Be?Ie:(Be=1,Ie=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}})}function ln(){if(Re)return Fe;Re=1;var t=At(),e=Xe(),n=cn();return Fe=t?function(t,r,o){return e.f(t,r,n(1,o))}:function(t,e,n){return t[e]=n,t}}function fn(){if(je)return _e;je=1;var t,e,n,r=function(){if(ke)return Pe;ke=1;var t=P(),e=mt(),n=t.WeakMap;return Pe=e(n)&&/native code/.test(String(n))}(),o=P(),i=bt(),u=ln(),a=dt(),s=ct(),c=un(),l=en(),f="Object already initialized",d=o.TypeError,p=o.WeakMap;if(r||s.state){var h=s.state||(s.state=new p);h.get=h.get,h.has=h.has,h.set=h.set,t=function(t,e){if(h.has(t))throw new d(f);return e.facade=t,h.set(t,e),e},e=function(t){return h.get(t)||{}},n=function(t){return h.has(t)}}else{var v=c("state");l[v]=!0,t=function(t,e){if(a(t,v))throw new d(f);return e.facade=t,u(t,v,e),e},e=function(t){return a(t,v)?t[v]:{}},n=function(t){return a(t,v)}}return _e={set:t,get:e,has:n,enforce:function(r){return n(r)?e(r):t(r,{})},getterFor:function(t){return function(n){var r;if(!i(n)||(r=e(n)).type!==t)throw new d("Incompatible receiver, "+t+" required");return r}}},_e}var dn,pn,hn={},vn={};function gn(){if(pn)return hn;pn=1;var t=At(),e=He(),n=function(){if(dn)return vn;dn=1;var t={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,n=e&&!t.call({1:2},1);return vn.f=n?function(t){var n=e(this,t);return!!n&&n.enumerable}:t,vn}(),r=cn(),o=N(),i=Ye(),u=dt(),a=ze(),s=Object.getOwnPropertyDescriptor;return hn.f=t?s:function(t,c){if(t=o(t),c=i(c),a)try{return s(t,c)}catch(t){}if(u(t,c))return r(!e(n.f,t,c),t[c])},hn}var yn,mn,bn,En,wn,Sn,Cn,Dn={exports:{}};function On(){if(mn)return yn;mn=1;var t=At(),e=dt(),n=Function.prototype,r=t&&Object.getOwnPropertyDescriptor,o=e(n,"name"),i=o&&"something"===function(){}.name,u=o&&(!t||t&&r(n,"name").configurable);return yn={EXISTS:o,PROPER:i,CONFIGURABLE:u}}function An(){if(En)return bn;En=1;var t=D(),e=mt(),n=ct(),r=t(Function.toString);return e(n.inspectSource)||(n.inspectSource=function(t){return r(t)}),bn=n.inspectSource}function xn(){if(wn)return Dn.exports;wn=1;var t=D(),e=S(),n=mt(),r=dt(),o=At(),i=On().CONFIGURABLE,u=An(),a=fn(),s=a.enforce,c=a.get,l=String,f=Object.defineProperty,d=t("".slice),p=t("".replace),h=t([].join),v=o&&!e(function(){return 8!==f(function(){},"length",{value:8}).length}),g=String(String).split("String"),y=Dn.exports=function(t,e,n){"Symbol("===d(l(e),0,7)&&(e="["+p(l(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!r(t,"name")||i&&t.name!==e)&&(o?f(t,"name",{value:e,configurable:!0}):t.name=e),v&&n&&r(n,"arity")&&t.length!==n.arity&&f(t,"length",{value:n.arity});try{n&&r(n,"constructor")&&n.constructor?o&&f(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var u=s(t);return r(u,"source")||(u.source=h(g,"string"==typeof e?e:"")),t};return Function.prototype.toString=y(function(){return n(this)&&c(this).source||u(this)},"toString"),Dn.exports}function Tn(){if(Cn)return Sn;Cn=1;var t=mt(),e=Xe(),n=xn(),r=st();return Sn=function(o,i,u,a){a||(a={});var s=a.enumerable,c=void 0!==a.name?a.name:i;if(t(u)&&n(u,c,a),a.global)s?o[i]=u:r(i,u);else{try{a.unsafe?o[i]&&(s=!0):delete o[i]}catch(t){}s?o[i]=u:e.f(o,i,{value:u,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return o},Sn}var Nn,Pn={};var kn,In,Bn,Fn,Rn,_n,jn,Ln,Mn,zn,Hn,$n,Un,Vn,Gn,Wn,qn,Kn,Yn,Xn,Jn,Zn,Qn,tr,er,nr,rr,or,ir,ur,ar,sr,cr,lr={};function fr(){if(Bn)return In;Bn=1;var t=$e(),e=D(),n=function(){if(Nn)return Pn;Nn=1;var t=nn(),e=rn().concat("length","prototype");return Pn.f=Object.getOwnPropertyNames||function(n){return t(n,e)},Pn}(),r=(kn||(kn=1,lr.f=Object.getOwnPropertySymbols),lr),o=Et(),i=e([].concat);return In=t("Reflect","ownKeys")||function(t){var e=n.f(o(t)),u=r.f;return u?i(e,u(t)):e},In}function dr(){if(Rn)return Fn;Rn=1;var t=dt(),e=fr(),n=gn(),r=Xe();return Fn=function(o,i,u){for(var a=e(i),s=r.f,c=n.f,l=0;l<a.length;l++){var f=a[l];t(o,f)||u&&t(u,f)||s(o,f,c(i,f))}},Fn}function pr(){if(Mn)return Ln;Mn=1;var t=P(),e=gn().f,n=ln(),r=Tn(),o=st(),i=dr(),u=function(){if(jn)return _n;jn=1;var t=S(),e=mt(),n=/#|\.prototype\./,r=function(n,r){var s=i[o(n)];return s===a||s!==u&&(e(r)?t(r):!!r)},o=r.normalize=function(t){return String(t).replace(n,".").toLowerCase()},i=r.data={},u=r.NATIVE="N",a=r.POLYFILL="P";return _n=r}();return Ln=function(a,s){var c,l,f,d,p,h=a.target,v=a.global,g=a.stat;if(c=v?t:g?t[h]||o(h,{}):t[h]&&t[h].prototype)for(l in s){if(d=s[l],f=a.dontCallGetSet?(p=e(c,l))&&p.value:c[l],!u(v?l:h+(g?".":"#")+l,a.forced)&&void 0!==f){if(typeof d==typeof f)continue;i(d,f)}(a.sham||f&&f.sham)&&n(d,"sham",!0),r(c,l,d,a)}}}function hr(){if(Un)return $n;Un=1;var t=dt(),e=mt(),n=ft(),r=un(),o=function(){if(Hn)return zn;Hn=1;var t=S();return zn=!t(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),zn}(),i=r("IE_PROTO"),u=Object,a=u.prototype;return $n=o?u.getPrototypeOf:function(r){var o=n(r);if(t(o,i))return o[i];var s=o.constructor;return e(s)&&o instanceof s?s.prototype:o instanceof u?a:null},$n}function vr(){if(Gn)return Vn;Gn=1;var t,e,n,r=S(),o=mt(),i=bt(),u=an(),a=hr(),s=Tn(),c=yt(),l=at(),f=c("iterator"),d=!1;return[].keys&&("next"in(n=[].keys())?(e=a(a(n)))!==Object.prototype&&(t=e):d=!0),!i(t)||r(function(){var e={};return t[f].call(e)!==e})?t={}:l&&(t=u(t)),o(t[f])||s(t,f,function(){return this}),Vn={IteratorPrototype:t,BUGGY_SAFARI_ITERATORS:d}}function gr(){if(qn)return Wn;qn=1;var t=Xe().f,e=dt(),n=yt()("toStringTag");return Wn=function(r,o,i){r&&!i&&(r=r.prototype),r&&!e(r,n)&&t(r,n,{configurable:!0,value:o})}}function yr(){if(er)return tr;er=1;var t=function(){if(Qn)return Zn;Qn=1;var t=bt();return Zn=function(e){return t(e)||null===e}}(),e=String,n=TypeError;return tr=function(r){if(t(r))return r;throw new n("Can't set "+e(r)+" as a prototype")}}function mr(){if(rr)return nr;rr=1;var t=function(){if(Jn)return Xn;Jn=1;var t=D(),e=We();return Xn=function(n,r,o){try{return t(e(Object.getOwnPropertyDescriptor(n,r)[o]))}catch(t){}}}(),e=bt(),n=T(),r=yr();return nr=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 n(t),r(u),e(t)?(i?o(t,u):t.__proto__=u,t):t}}():void 0),nr}function br(){if(ir)return or;ir=1;var t=pr(),e=He(),n=at(),r=On(),o=mt(),i=function(){if(Yn)return Kn;Yn=1;var t=vr().IteratorPrototype,e=an(),n=cn(),r=gr(),o=sn(),i=function(){return this};return Kn=function(u,a,s,c){var l=a+" Iterator";return u.prototype=e(t,{next:n(+!c,s)}),r(u,l,!1,!0),o[l]=i,u}}(),u=hr(),a=mr(),s=gr(),c=ln(),l=Tn(),f=yt(),d=sn(),p=vr(),h=r.PROPER,v=r.CONFIGURABLE,g=p.IteratorPrototype,y=p.BUGGY_SAFARI_ITERATORS,m=f("iterator"),b="keys",E="values",w="entries",S=function(){return this};return or=function(r,f,p,C,D,O,A){i(p,f,C);var x,T,N,P=function(t){if(t===D&&R)return R;if(!y&&t&&t in B)return B[t];switch(t){case b:case E:case w:return function(){return new p(this,t)}}return function(){return new p(this)}},k=f+" Iterator",I=!1,B=r.prototype,F=B[m]||B["@@iterator"]||D&&B[D],R=!y&&F||P(D),_="Array"===f&&B.entries||F;if(_&&(x=u(_.call(new r)))!==Object.prototype&&x.next&&(n||u(x)===g||(a?a(x,g):o(x[m])||l(x,m,S)),s(x,k,!0,!0),n&&(d[k]=S)),h&&D===E&&F&&F.name!==E&&(!n&&v?c(B,"name",E):(I=!0,R=function(){return e(F,this)})),D)if(T={values:P(E),keys:O?R:P(b),entries:P(w)},A)for(N in T)(y||I||!(N in B))&&l(B,N,T[N]);else t({target:f,proto:!0,forced:y||I},T);return n&&!A||B[m]===R||l(B,m,R,{name:D}),d[f]=R,T}}function Er(){return ar?ur:(ar=1,ur=function(t,e){return{value:t,done:e}})}function wr(){if(cr)return sr;cr=1;var t=N(),e=function(){if(xe)return Ae;xe=1;var t=yt(),e=an(),n=Xe().f,r=t("unscopables"),o=Array.prototype;return void 0===o[r]&&n(o,r,{configurable:!0,value:e(null)}),Ae=function(t){o[r][t]=!0}}(),n=sn(),r=fn(),o=Xe().f,i=br(),u=Er(),a=at(),s=At(),c="Array Iterator",l=r.set,f=r.getterFor(c);sr=i(Array,"Array",function(e,n){l(this,{type:c,target:t(e),index:0,kind:n})},function(){var t=f(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=null,u(void 0,!0);switch(t.kind){case"keys":return u(n,!1);case"values":return u(e[n],!1)}return u([n,e[n]],!1)},"values");var d=n.Arguments=n.Array;if(e("keys"),e("values"),e("entries"),!a&&s&&"values"!==d.name)try{o(d,"name",{value:"values"})}catch(t){}return sr}wr();var Sr,Cr,Dr,Or,Ar,xr,Tr,Nr={};function Pr(){if(Cr)return Sr;Cr=1;var t={};return t[yt()("toStringTag")]="z",Sr="[object z]"===String(t)}function kr(){if(Or)return Dr;Or=1;var t=Pr(),e=mt(),n=O(),r=yt()("toStringTag"),o=Object,i="Arguments"===n(function(){return arguments}());return Dr=t?n:function(t){var u,a,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(a=function(t,e){try{return t[e]}catch(t){}}(u=o(t),r))?a:i?n(u):"Object"===(s=n(u))&&e(u.callee)?"Arguments":s},Dr}!function(){if(Tr)return Nr;Tr=1;var t=Pr(),e=Tn(),n=function(){if(xr)return Ar;xr=1;var t=Pr(),e=kr();return Ar=t?{}.toString:function(){return"[object "+e(this)+"]"}}();t||e(Object.prototype,"toString",n,{unsafe:!0})}();var Ir,Br,Fr,Rr,_r,jr,Lr,Mr,zr,Hr,$r,Ur,Vr,Gr={};function Wr(){if(Br)return Ir;Br=1;var t=kr(),e=String;return Ir=function(n){if("Symbol"===t(n))throw new TypeError("Cannot convert a Symbol value to a string");return e(n)}}function qr(){if(Rr)return Fr;Rr=1;var t=Et();return Fr=function(){var e=t(this),n="";return e.hasIndices&&(n+="d"),e.global&&(n+="g"),e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.dotAll&&(n+="s"),e.unicode&&(n+="u"),e.unicodeSets&&(n+="v"),e.sticky&&(n+="y"),n}}function Kr(){if(Ur)return $r;Ur=1;var t,e,n=He(),r=D(),o=Wr(),i=qr(),u=function(){if(jr)return _r;jr=1;var t=S(),e=P().RegExp,n=t(function(){var t=e("a","y");return t.lastIndex=2,null!==t.exec("abcd")}),r=n||t(function(){return!e("a","y").sticky}),o=n||t(function(){var t=e("^r","gy");return t.lastIndex=2,null!==t.exec("str")});return _r={BROKEN_CARET:o,MISSED_STICKY:r,UNSUPPORTED_Y:n}}(),a=lt(),s=an(),c=fn().get,l=function(){if(Mr)return Lr;Mr=1;var t=S(),e=P().RegExp;return Lr=t(function(){var t=e(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)}),Lr}(),f=function(){if(Hr)return zr;Hr=1;var t=S(),e=P().RegExp;return zr=t(function(){var t=e("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}),zr}(),d=a("native-string-replace",String.prototype.replace),p=RegExp.prototype.exec,h=p,v=r("".charAt),g=r("".indexOf),y=r("".replace),m=r("".slice),b=(e=/b*/g,n(p,t=/a/,"a"),n(p,e,"a"),0!==t.lastIndex||0!==e.lastIndex),E=u.BROKEN_CARET,w=void 0!==/()??/.exec("")[1];return(b||w||E||l||f)&&(h=function(t){var e,r,u,a,l,f,S,C=this,D=c(C),O=o(t),A=D.raw;if(A)return A.lastIndex=C.lastIndex,e=n(h,A,O),C.lastIndex=A.lastIndex,e;var x=D.groups,T=E&&C.sticky,N=n(i,C),P=C.source,k=0,I=O;if(T&&(N=y(N,"y",""),-1===g(N,"g")&&(N+="g"),I=m(O,C.lastIndex),C.lastIndex>0&&(!C.multiline||C.multiline&&"\n"!==v(O,C.lastIndex-1))&&(P="(?: "+P+")",I=" "+I,k++),r=new RegExp("^(?:"+P+")",N)),w&&(r=new RegExp("^"+P+"$(?!\\s)",N)),b&&(u=C.lastIndex),a=n(p,T?r:C,I),T?a?(a.input=m(a.input,k),a[0]=m(a[0],k),a.index=C.lastIndex,C.lastIndex+=a[0].length):C.lastIndex=0:b&&a&&(C.lastIndex=C.global?a.index+a[0].length:u),w&&a&&a.length>1&&n(d,a[0],r,function(){for(l=1;l<arguments.length-2;l++)void 0===arguments[l]&&(a[l]=void 0)}),a&&x)for(a.groups=f=s(null),l=0;l<x.length;l++)f[(S=x[l])[0]]=a[S[1]];return a}),$r=h}function Yr(){if(Vr)return Gr;Vr=1;var t=pr(),e=Kr();return t({target:"RegExp",proto:!0,forced:/./.exec!==e},{exec:e}),Gr}Yr();var Xr,Jr,Zr,Qr={};function to(){if(Jr)return Xr;Jr=1;var t=D(),e=Je(),n=Wr(),r=T(),o=t("".charAt),i=t("".charCodeAt),u=t("".slice),a=function(t){return function(a,s){var c,l,f=n(r(a)),d=e(s),p=f.length;return d<0||d>=p?t?"":void 0:(c=i(f,d))<55296||c>56319||d+1===p||(l=i(f,d+1))<56320||l>57343?t?o(f,d):c:t?u(f,d,d+2):l-56320+(c-55296<<10)+65536}};return Xr={codeAt:a(!1),charAt:a(!0)}}!function(){if(Zr)return Qr;Zr=1;var t=to().charAt,e=Wr(),n=fn(),r=br(),o=Er(),i="String Iterator",u=n.set,a=n.getterFor(i);r(String,"String",function(t){u(this,{type:i,string:e(t),index:0})},function(){var e,n=a(this),r=n.string,i=n.index;return i>=r.length?o(void 0,!0):(e=t(r,i),n.index+=e.length,o(e,!1))})}();var eo,no,ro,oo,io,uo,ao,so,co,lo,fo,po={};function ho(){if(oo)return ro;oo=1;var t=to().charAt;return ro=function(e,n,r){return n+(r?t(e,n).length:1)},ro}function vo(){if(so)return ao;so=1;var t=He(),e=dt(),n=Ue(),r=function(){if(uo)return io;uo=1;var t=P(),e=S(),n=t.RegExp,r=!e(function(){var t=!0;try{n(".","d")}catch(e){t=!1}var e={},r="",o=t?"dgimsy":"gimsy",i=function(t,n){Object.defineProperty(e,t,{get:function(){return r+=n,!0}})},u={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in t&&(u.hasIndices="d"),u)i(a,u[a]);return Object.getOwnPropertyDescriptor(n.prototype,"flags").get.call(e)!==o||r!==o});return io={correct:r}}(),o=qr(),i=RegExp.prototype;return ao=r.correct?function(t){return t.flags}:function(u){return r.correct||!n(i,u)||e(u,"flags")?u.flags:t(o,u)},ao}!function(){if(fo)return po;fo=1;var t=He(),e=D(),n=function(){if(no)return eo;no=1,Yr();var t=He(),e=Tn(),n=Kr(),r=S(),o=yt(),i=ln(),u=o("species"),a=RegExp.prototype;return eo=function(s,c,l,f){var d=o(s),p=!r(function(){var t={};return t[d]=function(){return 7},7!==""[s](t)}),h=p&&!r(function(){var t=!1,e=/a/;return"split"===s&&((e={}).constructor={},e.constructor[u]=function(){return e},e.flags="",e[d]=/./[d]),e.exec=function(){return t=!0,null},e[d](""),!t});if(!p||!h||l){var v=/./[d],g=c(d,""[s],function(e,r,o,i,u){var s=r.exec;return s===n||s===a.exec?p&&!u?{done:!0,value:t(v,r,o,i)}:{done:!0,value:t(e,o,r,i)}:{done:!1}});e(String.prototype,s,g[0]),e(a,d,g[1])}f&&i(a[d],"sham",!0)},eo}(),r=Et(),o=bt(),i=Ze(),u=Wr(),a=T(),s=qe(),c=ho(),l=vo(),f=function(){if(lo)return co;lo=1;var t=He(),e=Et(),n=mt(),r=O(),o=Kr(),i=TypeError;return co=function(u,a){var s=u.exec;if(n(s)){var c=t(s,u,a);return null!==c&&e(c),c}if("RegExp"===r(u))return t(o,u,a);throw new i("RegExp#exec called on incompatible receiver")},co}(),d=e("".indexOf);n("match",function(e,n,p){return[function(n){var r=a(this),i=o(n)?s(n,e):void 0;return i?t(i,n,r):new RegExp(n)[e](u(r))},function(t){var e=r(this),o=u(t),a=p(n,e,o);if(a.done)return a.value;var s=u(l(e));if(-1===d(s,"g"))return f(e,o);var h=-1!==d(s,"u");e.lastIndex=0;for(var v,g=[],y=0;null!==(v=f(e,o));){var m=u(v[0]);g[y]=m,""===m&&(e.lastIndex=c(o,i(e.lastIndex),h)),y++}return 0===y?null:g}]})}();var go,yo,mo,bo,Eo,wo,So,Co,Do,Oo,Ao,xo,To,No,Po,ko,Io,Bo,Fo,Ro,_o,jo,Lo,Mo,zo,Ho,$o,Uo={},Vo={};function Go(){if(yo)return go;yo=1;var t=bt(),e=ln();return go=function(n,r){t(r)&&"cause"in r&&e(n,"cause",r.cause)},go}function Wo(){if(Co)return So;Co=1;var t=ln(),e=function(){if(bo)return mo;bo=1;var t=D(),e=Error,n=t("".replace),r=String(new e("zxcasd").stack),o=/\n\s*at [^:]*:[^\n]*/,i=o.test(r);return mo=function(t,r){if(i&&"string"==typeof t&&!e.prepareStackTrace)for(;r--;)t=n(t,o,"");return t}}(),n=function(){if(wo)return Eo;wo=1;var t=S(),e=cn();return Eo=!t(function(){var t=new Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",e(1,7)),7!==t.stack)})}(),r=Error.captureStackTrace;return So=function(o,i,u,a){n&&(r?r(o,i):t(o,"stack",e(u,a)))},So}function qo(){if(xo)return Ao;xo=1;var t=function(){if(Oo)return Do;Oo=1;var t=O(),e=D();return Do=function(n){if("Function"===t(n))return e(n)},Do}(),e=We(),n=C(),r=t(t.bind);return Ao=function(t,o){return e(t),void 0===o?t:n?r(t,o):function(){return t.apply(o,arguments)}},Ao}function Ko(){if(No)return To;No=1;var t=yt(),e=sn(),n=t("iterator"),r=Array.prototype;return To=function(t){return void 0!==t&&(e.Array===t||r[n]===t)},To}function Yo(){if(ko)return Po;ko=1;var t=kr(),e=qe(),n=x(),r=sn(),o=yt()("iterator");return Po=function(i){if(!n(i))return e(i,o)||e(i,"@@iterator")||r[t(i)]},Po}function Xo(){if(Bo)return Io;Bo=1;var t=He(),e=We(),n=Et(),r=Ge(),o=Yo(),i=TypeError;return Io=function(u,a){var s=arguments.length<2?o(u):a;if(e(s))return n(t(s,u));throw new i(r(u)+" is not iterable")},Io}function Jo(){if(Ro)return Fo;Ro=1;var t=He(),e=Et(),n=qe();return Fo=function(r,o,i){var u,a;e(r);try{if(!(u=n(r,"return"))){if("throw"===o)throw i;return i}u=t(u,r)}catch(t){a=!0,u=t}if("throw"===o)throw i;if(a)throw u;return e(u),i},Fo}function Zo(){if(jo)return _o;jo=1;var t=qo(),e=He(),n=Et(),r=Ge(),o=Ko(),i=Qe(),u=Ue(),a=Xo(),s=Yo(),c=Jo(),l=TypeError,f=function(t,e){this.stopped=t,this.result=e},d=f.prototype;return _o=function(p,h,v){var g,y,m,b,E,w,S,C=v&&v.that,D=!(!v||!v.AS_ENTRIES),O=!(!v||!v.IS_RECORD),A=!(!v||!v.IS_ITERATOR),x=!(!v||!v.INTERRUPTED),T=t(h,C),N=function(t){return g&&c(g,"normal"),new f(!0,t)},P=function(t){return D?(n(t),x?T(t[0],t[1],N):T(t[0],t[1])):x?T(t,N):T(t)};if(O)g=p.iterator;else if(A)g=p;else{if(!(y=s(p)))throw new l(r(p)+" is not iterable");if(o(y)){for(m=0,b=i(p);b>m;m++)if((E=P(p[m]))&&u(d,E))return E;return new f(!1)}g=a(p,y)}for(w=O?p.next:g.next;!(S=e(w,g)).done;){try{E=P(S.value)}catch(t){c(g,"throw",t)}if("object"==typeof E&&E&&u(d,E))return E}return new f(!1)},_o}function Qo(){if(Mo)return Lo;Mo=1;var t=Wr();return Lo=function(e,n){return void 0===e?arguments.length<2?"":n:t(e)},Lo}function ti(){return Ho||(Ho=1,function(){if(zo)return Vo;zo=1;var t=pr(),e=Ue(),n=hr(),r=mr(),o=dr(),i=an(),u=ln(),a=cn(),s=Go(),c=Wo(),l=Zo(),f=Qo(),d=yt()("toStringTag"),p=Error,h=[].push,v=function(t,o){var a,y=e(g,this);r?a=r(new p,y?n(this):g):(a=y?this:i(g),u(a,d,"Error")),void 0!==o&&u(a,"message",f(o)),c(a,v,a.stack,1),arguments.length>2&&s(a,arguments[2]);var m=[];return l(t,h,{that:m}),u(a,"errors",m),a};r?r(v,p):o(v,p,{name:!0});var g=v.prototype=i(p.prototype,{constructor:a(1,v),message:a(1,""),name:a(1,"AggregateError")});t({global:!0,constructor:!0,arity:2},{AggregateError:v})}()),Uo}$o||($o=1,ti());var ei,ni,ri={};ni||(ni=1,function(){if(ei)return ri;ei=1;var t=pr(),e=P();t({global:!0,forced:e.globalThis!==e},{globalThis:e})}());var oi,ii,ui,ai,si,ci,li={};function fi(){return ii?oi:(ii=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 di(){if(ai)return ui;ai=1;var t=Me()("span").classList,e=t&&t.constructor&&t.constructor.prototype;return ui=e===Object.prototype?void 0:e}if(function(){if(si)return li;si=1;var t=P(),e=fi(),n=di(),r=wr(),o=ln(),i=gr(),u=yt()("iterator"),a=r.values,s=function(t,n){if(t){if(t[u]!==a)try{o(t,u,a)}catch(e){t[u]=a}if(i(t,n,!0),e[n])for(var s in r)if(t[s]!==r[s])try{o(t,s,r[s])}catch(e){t[s]=r[s]}}};for(var c in e)s(t[c]&&t[c].prototype,c);s(n,"DOMTokenList")}(),"undefined"==typeof global){if("ActiveXObject"in window){console.error("抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器\n Sorry, wangEditor V5+ versions do not support IE browser.")}pi(),hi()}else global&&(null===(ci=global.navigator)||void 0===ci?void 0:ci.userAgent.match("QQBrowser"))&&(pi(),hi());function pi(){"undefined"==typeof globalThis&&(window.globalThis=window)}function hi(){"undefined"==typeof AggregateError&&(window.AggregateError=function(t,e){var n=new Error(e);return n.errors=t,n})}var vi,gi,yi,mi,bi,Ei,wi,Si,Ci,Di,Oi,Ai,xi,Ti,Ni,Pi,ki={};function Ii(){if(gi)return vi;gi=1;var t=function(t){return t&&t.Math===Math&&t};return vi=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof b&&b)||t("object"==typeof vi&&vi)||function(){return this}()||Function("return this")()}function Bi(){return mi?yi:(mi=1,yi=function(t){try{return!!t()}catch(t){return!0}})}function Fi(){return Ei?bi:(Ei=1,bi=!Bi()(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))}function Ri(){if(Si)return wi;Si=1;var t=Fi(),e=Function.prototype,n=e.apply,r=e.call;return wi="object"==typeof Reflect&&Reflect.apply||(t?r.bind(n):function(){return r.apply(n,arguments)}),wi}function _i(){if(Di)return Ci;Di=1;var t=Fi(),e=Function.prototype,n=e.call,r=t&&e.bind.bind(n,n);return Ci=t?r:function(t){return function(){return n.apply(t,arguments)}},Ci}function ji(){if(Ai)return Oi;Ai=1;var t=_i(),e=t({}.toString),n=t("".slice);return Oi=function(t){return n(e(t),8,-1)},Oi}function Li(){if(Ti)return xi;Ti=1;var t=ji(),e=_i();return xi=function(n){if("Function"===t(n))return e(n)},xi}function Mi(){if(Pi)return Ni;Pi=1;var t="object"==typeof document&&document.all;return Ni=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(t){return"function"==typeof t}}var zi,Hi,$i,Ui,Vi={};function Gi(){return Hi?zi:(Hi=1,zi=!Bi()(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))}function Wi(){if(Ui)return $i;Ui=1;var t=Fi(),e=Function.prototype.call;return $i=t?e.bind(e):function(){return e.apply(e,arguments)},$i}var qi,Ki,Yi,Xi,Ji,Zi,Qi,tu,eu,nu,ru,ou,iu,uu,au,su,cu,lu,fu,du,pu,hu,vu,gu,yu,mu,bu,Eu,wu,Su,Cu,Du,Ou,Au,xu,Tu,Nu,Pu={};function ku(){if(qi)return Pu;qi=1;var t={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,n=e&&!t.call({1:2},1);return Pu.f=n?function(t){var n=e(this,t);return!!n&&n.enumerable}:t,Pu}function Iu(){return Yi?Ki:(Yi=1,Ki=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}})}function Bu(){if(Ji)return Xi;Ji=1;var t=_i(),e=Bi(),n=ji(),r=Object,o=t("".split);return Xi=e(function(){return!r("z").propertyIsEnumerable(0)})?function(t){return"String"===n(t)?o(t,""):r(t)}:r,Xi}function Fu(){return Qi||(Qi=1,Zi=function(t){return null==t}),Zi}function Ru(){if(eu)return tu;eu=1;var t=Fu(),e=TypeError;return tu=function(n){if(t(n))throw new e("Can't call method on "+n);return n},tu}function _u(){if(ru)return nu;ru=1;var t=Bu(),e=Ru();return nu=function(n){return t(e(n))},nu}function ju(){if(iu)return ou;iu=1;var t=Mi();return ou=function(e){return"object"==typeof e?null!==e:t(e)},ou}function Lu(){return au?uu:(au=1,uu={})}function Mu(){if(cu)return su;cu=1;var t=Lu(),e=Ii(),n=Mi(),r=function(t){return n(t)?t:void 0};return su=function(n,o){return arguments.length<2?r(t[n])||r(e[n]):t[n]&&t[n][o]||e[n]&&e[n][o]},su}function zu(){return fu?lu:(fu=1,lu=_i()({}.isPrototypeOf))}function Hu(){if(pu)return du;pu=1;var t=Ii().navigator,e=t&&t.userAgent;return du=e?String(e):""}function $u(){if(vu)return hu;vu=1;var t,e,n=Ii(),r=Hu(),o=n.process,i=n.Deno,u=o&&o.versions||i&&i.version,a=u&&u.v8;return a&&(e=(t=a.split("."))[0]>0&&t[0]<4?1:+(t[0]+t[1])),!e&&r&&(!(t=r.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=r.match(/Chrome\/(\d+)/))&&(e=+t[1]),hu=e}function Uu(){if(yu)return gu;yu=1;var t=$u(),e=Bi(),n=Ii().String;return gu=!!Object.getOwnPropertySymbols&&!e(function(){var e=Symbol("symbol detection");return!n(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&t&&t<41}),gu}function Vu(){return bu?mu:(bu=1,mu=Uu()&&!Symbol.sham&&"symbol"==typeof Symbol.iterator)}function Gu(){if(wu)return Eu;wu=1;var t=Mu(),e=Mi(),n=zu(),r=Object;return Eu=Vu()?function(t){return"symbol"==typeof t}:function(o){var i=t("Symbol");return e(i)&&n(i.prototype,r(o))},Eu}function Wu(){if(Cu)return Su;Cu=1;var t=String;return Su=function(e){try{return t(e)}catch(t){return"Object"}}}function qu(){if(Ou)return Du;Ou=1;var t=Mi(),e=Wu(),n=TypeError;return Du=function(r){if(t(r))return r;throw new n(e(r)+" is not a function")}}function Ku(){if(xu)return Au;xu=1;var t=qu(),e=Fu();return Au=function(n,r){var o=n[r];return e(o)?void 0:t(o)},Au}function Yu(){if(Nu)return Tu;Nu=1;var t=Wi(),e=Mi(),n=ju(),r=TypeError;return Tu=function(o,i){var u,a;if("string"===i&&e(u=o.toString)&&!n(a=t(u,o)))return a;if(e(u=o.valueOf)&&!n(a=t(u,o)))return a;if("string"!==i&&e(u=o.toString)&&!n(a=t(u,o)))return a;throw new r("Can't convert object to primitive value")},Tu}var Xu,Ju,Zu,Qu,ta,ea,na,ra,oa,ia,ua,aa,sa,ca,la,fa,da,pa,ha,va,ga,ya,ma,ba,Ea,wa,Sa,Ca,Da={exports:{}};function Oa(){return Ju?Xu:(Ju=1,Xu=!0)}function Aa(){if(Qu)return Zu;Qu=1;var t=Ii(),e=Object.defineProperty;return Zu=function(n,r){try{e(t,n,{value:r,configurable:!0,writable:!0})}catch(e){t[n]=r}return r}}function xa(){if(ta)return Da.exports;ta=1;var t=Oa(),e=Ii(),n=Aa(),r="__core-js_shared__",o=Da.exports=e[r]||n(r,{});return(o.versions||(o.versions=[])).push({version:"3.44.0",mode:t?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.44.0/LICENSE",source:"https://github.com/zloirock/core-js"}),Da.exports}function Ta(){if(na)return ea;na=1;var t=xa();return ea=function(e,n){return t[e]||(t[e]=n||{})}}function Na(){if(oa)return ra;oa=1;var t=Ru(),e=Object;return ra=function(n){return e(t(n))}}function Pa(){if(ua)return ia;ua=1;var t=_i(),e=Na(),n=t({}.hasOwnProperty);return ia=Object.hasOwn||function(t,r){return n(e(t),r)},ia}function ka(){if(sa)return aa;sa=1;var t=_i(),e=0,n=Math.random(),r=t(1.1.toString);return aa=function(t){return"Symbol("+(void 0===t?"":t)+")_"+r(++e+n,36)}}function Ia(){if(la)return ca;la=1;var t=Ii(),e=Ta(),n=Pa(),r=ka(),o=Uu(),i=Vu(),u=t.Symbol,a=e("wks"),s=i?u.for||u:u&&u.withoutSetter||r;return ca=function(t){return n(a,t)||(a[t]=o&&n(u,t)?u[t]:s("Symbol."+t)),a[t]}}function Ba(){if(da)return fa;da=1;var t=Wi(),e=ju(),n=Gu(),r=Ku(),o=Yu(),i=TypeError,u=Ia()("toPrimitive");return fa=function(a,s){if(!e(a)||n(a))return a;var c,l=r(a,u);if(l){if(void 0===s&&(s="default"),c=t(l,a,s),!e(c)||n(c))return c;throw new i("Can't convert object to primitive value")}return void 0===s&&(s="number"),o(a,s)}}function Fa(){if(ha)return pa;ha=1;var t=Ba(),e=Gu();return pa=function(n){var r=t(n,"string");return e(r)?r:r+""}}function Ra(){if(ga)return va;ga=1;var t=Ii(),e=ju(),n=t.document,r=e(n)&&e(n.createElement);return va=function(t){return r?n.createElement(t):{}},va}function _a(){if(ma)return ya;ma=1;var t=Gi(),e=Bi(),n=Ra();return ya=!t&&!e(function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a})}function ja(){if(ba)return Vi;ba=1;var t=Gi(),e=Wi(),n=ku(),r=Iu(),o=_u(),i=Fa(),u=Pa(),a=_a(),s=Object.getOwnPropertyDescriptor;return Vi.f=t?s:function(t,c){if(t=o(t),c=i(c),a)try{return s(t,c)}catch(t){}if(u(t,c))return r(!e(n.f,t,c),t[c])},Vi}function La(){if(wa)return Ea;wa=1;var t=Bi(),e=Mi(),n=/#|\.prototype\./,r=function(n,r){var s=i[o(n)];return s===a||s!==u&&(e(r)?t(r):!!r)},o=r.normalize=function(t){return String(t).replace(n,".").toLowerCase()},i=r.data={},u=r.NATIVE="N",a=r.POLYFILL="P";return Ea=r}function Ma(){if(Ca)return Sa;Ca=1;var t=Li(),e=qu(),n=Fi(),r=t(t.bind);return Sa=function(t,o){return e(t),void 0===o?t:n?r(t,o):function(){return t.apply(o,arguments)}},Sa}var za,Ha,$a,Ua,Va,Ga,Wa,qa,Ka,Ya,Xa,Ja,Za,Qa,ts,es,ns,rs,os,is,us,as,ss,cs,ls,fs,ds,ps,hs,vs,gs,ys,ms,bs,Es,ws,Ss,Cs,Ds={};function Os(){return Ha?za:(Ha=1,za=Gi()&&Bi()(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}))}function As(){if(Ua)return $a;Ua=1;var t=ju(),e=String,n=TypeError;return $a=function(r){if(t(r))return r;throw new n(e(r)+" is not an object")}}function xs(){if(Va)return Ds;Va=1;var t=Gi(),e=_a(),n=Os(),r=As(),o=Fa(),i=TypeError,u=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s="enumerable",c="configurable",l="writable";return Ds.f=t?n?function(t,e,n){if(r(t),e=o(e),r(n),"function"==typeof t&&"prototype"===e&&"value"in n&&l in n&&!n[l]){var i=a(t,e);i&&i[l]&&(t[e]=n.value,n={configurable:c in n?n[c]:i[c],enumerable:s in n?n[s]:i[s],writable:!1})}return u(t,e,n)}:u:function(t,n,a){if(r(t),n=o(n),r(a),e)try{return u(t,n,a)}catch(t){}if("get"in a||"set"in a)throw new i("Accessors not supported");return"value"in a&&(t[n]=a.value),t},Ds}function Ts(){if(Wa)return Ga;Wa=1;var t=Gi(),e=xs(),n=Iu();return Ga=t?function(t,r,o){return e.f(t,r,n(1,o))}:function(t,e,n){return t[e]=n,t}}function Ns(){if(Ka)return qa;Ka=1;var t=Ii(),e=Ri(),n=Li(),r=Mi(),o=ja().f,i=La(),u=Lu(),a=Ma(),s=Ts(),c=Pa(),l=function(t){var n=function(r,o,i){if(this instanceof n){switch(arguments.length){case 0:return new t;case 1:return new t(r);case 2:return new t(r,o)}return new t(r,o,i)}return e(t,this,arguments)};return n.prototype=t.prototype,n};return qa=function(e,f){var d,p,h,v,g,y,m,b,E,w=e.target,S=e.global,C=e.stat,D=e.proto,O=S?t:C?t[w]:t[w]&&t[w].prototype,A=S?u:u[w]||s(u,w,{})[w],x=A.prototype;for(v in f)p=!(d=i(S?v:w+(C?".":"#")+v,e.forced))&&O&&c(O,v),y=A[v],p&&(m=e.dontCallGetSet?(E=o(O,v))&&E.value:O[v]),g=p&&m?m:f[v],(d||D||typeof y!=typeof g)&&(b=e.bind&&p?a(g,t):e.wrap&&p?l(g):D&&r(g)?n(g):g,(e.sham||g&&g.sham||y&&y.sham)&&s(b,"sham",!0),s(A,v,b),D&&(c(u,h=w+"Prototype")||s(u,h,{}),s(u[h],v,g),e.real&&x&&(d||!x[v])&&s(x,v,g)))}}function Ps(){if(Xa)return Ya;Xa=1;var t=ji();return Ya=Array.isArray||function(e){return"Array"===t(e)}}function ks(){if(Za)return Ja;Za=1;var t=Math.ceil,e=Math.floor;return Ja=Math.trunc||function(n){var r=+n;return(r>0?e:t)(r)},Ja}function Is(){if(ts)return Qa;ts=1;var t=ks();return Qa=function(e){var n=+e;return n!=n||0===n?0:t(n)}}function Bs(){if(ns)return es;ns=1;var t=Is(),e=Math.min;return es=function(n){var r=t(n);return r>0?e(r,9007199254740991):0}}function Fs(){if(os)return rs;os=1;var t=Bs();return rs=function(e){return t(e.length)}}function Rs(){if(us)return is;us=1;var t=TypeError;return is=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e},is}function _s(){if(ss)return as;ss=1;var t=Gi(),e=xs(),n=Iu();return as=function(r,o,i){t?e.f(r,o,n(0,i)):r[o]=i}}function js(){if(ls)return cs;ls=1;var t={};return t[Ia()("toStringTag")]="z",cs="[object z]"===String(t)}function Ls(){if(ds)return fs;ds=1;var t=js(),e=Mi(),n=ji(),r=Ia()("toStringTag"),o=Object,i="Arguments"===n(function(){return arguments}());return fs=t?n:function(t){var u,a,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(a=function(t,e){try{return t[e]}catch(t){}}(u=o(t),r))?a:i?n(u):"Object"===(s=n(u))&&e(u.callee)?"Arguments":s},fs}function Ms(){if(hs)return ps;hs=1;var t=_i(),e=Mi(),n=xa(),r=t(Function.toString);return e(n.inspectSource)||(n.inspectSource=function(t){return r(t)}),ps=n.inspectSource}function zs(){if(gs)return vs;gs=1;var t=_i(),e=Bi(),n=Mi(),r=Ls(),o=Mu(),i=Ms(),u=function(){},a=o("Reflect","construct"),s=/^\s*(?:class|function)\b/,c=t(s.exec),l=!s.test(u),f=function(t){if(!n(t))return!1;try{return a(u,[],t),!0}catch(t){return!1}},d=function(t){if(!n(t))return!1;switch(r(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return l||!!c(s,i(t))}catch(t){return!0}};return d.sham=!0,vs=!a||e(function(){var t;return f(f.call)||!f(Object)||!f(function(){t=!0})||t})?d:f}function Hs(){if(ms)return ys;ms=1;var t=Ps(),e=zs(),n=ju(),r=Ia()("species"),o=Array;return ys=function(i){var u;return t(i)&&(u=i.constructor,(e(u)&&(u===o||t(u.prototype))||n(u)&&null===(u=u[r]))&&(u=void 0)),void 0===u?o:u},ys}function $s(){if(Es)return bs;Es=1;var t=Hs();return bs=function(e,n){return new(t(e))(0===n?0:n)}}function Us(){if(Ss)return ws;Ss=1;var t=Bi(),e=Ia(),n=$u(),r=e("species");return ws=function(e){return n>=51||!t(function(){var t=[];return(t.constructor={})[r]=function(){return{foo:1}},1!==t[e](Boolean).foo})},ws}var Vs,Gs,Ws={},qs={};function Ks(){if(Gs)return Vs;Gs=1;var t=Ls(),e=String;return Vs=function(n){if("Symbol"===t(n))throw new TypeError("Cannot convert a Symbol value to a string");return e(n)}}var Ys,Xs,Js,Zs,Qs,tc,ec,nc,rc,oc,ic,uc,ac,sc,cc,lc,fc,dc,pc,hc={};function vc(){if(Xs)return Ys;Xs=1;var t=Is(),e=Math.max,n=Math.min;return Ys=function(r,o){var i=t(r);return i<0?e(i+o,0):n(i,o)},Ys}function gc(){if(Zs)return Js;Zs=1;var t=_u(),e=vc(),n=Fs(),r=function(r){return function(o,i,u){var a=t(o),s=n(a);if(0===s)return!r&&-1;var c,l=e(u,s);if(r&&i!=i){for(;s>l;)if((c=a[l++])!=c)return!0}else for(;s>l;l++)if((r||l in a)&&a[l]===i)return r||l||0;return!r&&-1}};return Js={includes:r(!0),indexOf:r(!1)}}function yc(){return tc?Qs:(tc=1,Qs={})}function mc(){if(nc)return ec;nc=1;var t=_i(),e=Pa(),n=_u(),r=gc().indexOf,o=yc(),i=t([].push);return ec=function(t,u){var a,s=n(t),c=0,l=[];for(a in s)!e(o,a)&&e(s,a)&&i(l,a);for(;u.length>c;)e(s,a=u[c++])&&(~r(l,a)||i(l,a));return l},ec}function bc(){return oc?rc:(oc=1,rc=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function Ec(){if(uc)return ic;uc=1;var t=mc(),e=bc();return ic=Object.keys||function(n){return t(n,e)},ic}function wc(){if(ac)return hc;ac=1;var t=Gi(),e=Os(),n=xs(),r=As(),o=_u(),i=Ec();return hc.f=t&&!e?Object.defineProperties:function(t,e){r(t);for(var u,a=o(e),s=i(e),c=s.length,l=0;c>l;)n.f(t,u=s[l++],a[u]);return t},hc}function Sc(){return cc?sc:(cc=1,sc=Mu()("document","documentElement"))}function Cc(){if(fc)return lc;fc=1;var t=Ta(),e=ka(),n=t("keys");return lc=function(t){return n[t]||(n[t]=e(t))}}function Dc(){if(pc)return dc;pc=1;var t,e=As(),n=wc(),r=bc(),o=yc(),i=Sc(),u=Ra(),a="prototype",s="script",c=Cc()("IE_PROTO"),l=function(){},f=function(t){return"<"+s+">"+t+"</"+s+">"},d=function(t){t.write(f("")),t.close();var e=t.parentWindow.Object;return t=null,e},p=function(){try{t=new ActiveXObject("htmlfile")}catch(t){}var e,n,o;p="undefined"!=typeof document?document.domain&&t?d(t):(n=u("iframe"),o="java"+s+":",n.style.display="none",i.appendChild(n),n.src=String(o),(e=n.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F):d(t);for(var c=r.length;c--;)delete p[a][r[c]];return p()};return o[c]=!0,dc=Object.create||function(t,r){var o;return null!==t?(l[a]=e(t),o=new l,l[a]=null,o[c]=t):o=p(),void 0===r?o:n.f(o,r)},dc}var Oc,Ac={};function xc(){if(Oc)return Ac;Oc=1;var t=mc(),e=bc().concat("length","prototype");return Ac.f=Object.getOwnPropertyNames||function(n){return t(n,e)},Ac}var Tc,Nc,Pc,kc={};function Ic(){return Nc?Tc:(Nc=1,Tc=_i()([].slice))}function Bc(){if(Pc)return kc;Pc=1;var t=ji(),e=_u(),n=xc().f,r=Ic(),o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];return kc.f=function(i){return o&&"Window"===t(i)?function(t){try{return n(t)}catch(t){return r(o)}}(i):n(e(i))},kc}var Fc,Rc,_c,jc,Lc,Mc={};function zc(){return Fc||(Fc=1,Mc.f=Object.getOwnPropertySymbols),Mc}function Hc(){if(_c)return Rc;_c=1;var t=Ts();return Rc=function(e,n,r,o){return o&&o.enumerable?e[n]=r:t(e,n,r),e}}function $c(){if(Lc)return jc;Lc=1;var t=xs();return jc=function(e,n,r){return t.f(e,n,r)}}var Uc,Vc,Gc,Wc,qc,Kc,Yc,Xc,Jc,Zc,Qc,tl,el,nl,rl,ol,il={};function ul(){if(Uc)return il;Uc=1;var t=Ia();return il.f=t,il}function al(){if(Gc)return Vc;Gc=1;var t=Lu(),e=Pa(),n=ul(),r=xs().f;return Vc=function(o){var i=t.Symbol||(t.Symbol={});e(i,o)||r(i,o,{value:n.f(o)})}}function sl(){if(qc)return Wc;qc=1;var t=Wi(),e=Mu(),n=Ia(),r=Hc();return Wc=function(){var o=e("Symbol"),i=o&&o.prototype,u=i&&i.valueOf,a=n("toPrimitive");i&&!i[a]&&r(i,a,function(e){return t(u,this)},{arity:1})}}function cl(){if(Yc)return Kc;Yc=1;var t=js(),e=Ls();return Kc=t?{}.toString:function(){return"[object "+e(this)+"]"}}function ll(){if(Jc)return Xc;Jc=1;var t=js(),e=xs().f,n=Ts(),r=Pa(),o=cl(),i=Ia()("toStringTag");return Xc=function(u,a,s,c){var l=s?u:u&&u.prototype;l&&(r(l,i)||e(l,i,{configurable:!0,value:a}),c&&!t&&n(l,"toString",o))},Xc}function fl(){if(Qc)return Zc;Qc=1;var t=Ii(),e=Mi(),n=t.WeakMap;return Zc=e(n)&&/native code/.test(String(n))}function dl(){if(el)return tl;el=1;var t,e,n,r=fl(),o=Ii(),i=ju(),u=Ts(),a=Pa(),s=xa(),c=Cc(),l=yc(),f="Object already initialized",d=o.TypeError,p=o.WeakMap;if(r||s.state){var h=s.state||(s.state=new p);h.get=h.get,h.has=h.has,h.set=h.set,t=function(t,e){if(h.has(t))throw new d(f);return e.facade=t,h.set(t,e),e},e=function(t){return h.get(t)||{}},n=function(t){return h.has(t)}}else{var v=c("state");l[v]=!0,t=function(t,e){if(a(t,v))throw new d(f);return e.facade=t,u(t,v,e),e},e=function(t){return a(t,v)?t[v]:{}},n=function(t){return a(t,v)}}return tl={set:t,get:e,has:n,enforce:function(r){return n(r)?e(r):t(r,{})},getterFor:function(t){return function(n){var r;if(!i(n)||(r=e(n)).type!==t)throw new d("Incompatible receiver, "+t+" required");return r}}},tl}function pl(){if(rl)return nl;rl=1;var t=Ma(),e=_i(),n=Bu(),r=Na(),o=Fs(),i=$s(),u=e([].push),a=function(e){var a=1===e,s=2===e,c=3===e,l=4===e,f=6===e,d=7===e,p=5===e||f;return function(h,v,g,y){for(var m,b,E=r(h),w=n(E),S=o(w),C=t(v,g),D=0,O=y||i,A=a?O(h,S):s||d?O(h,0):void 0;S>D;D++)if((p||D in w)&&(b=C(m=w[D],D,E),e))if(a)A[D]=b;else if(b)switch(e){case 3:return!0;case 5:return m;case 6:return D;case 2:u(A,m)}else switch(e){case 4:return!1;case 7:u(A,m)}return f?-1:c||l?l:A}};return nl={forEach:a(0),map:a(1),filter:a(2),some:a(3),every:a(4),find:a(5),findIndex:a(6),filterReject:a(7)}}var hl,vl,gl,yl={};function ml(){return vl?hl:(vl=1,hl=Uu()&&!!Symbol.for&&!!Symbol.keyFor)}var bl,El={};var wl,Sl,Cl,Dl={};function Ol(){if(Sl)return wl;Sl=1;var t=_i(),e=Ps(),n=Mi(),r=ji(),o=Ks(),i=t([].push);return wl=function(t){if(n(t))return t;if(e(t)){for(var u=t.length,a=[],s=0;s<u;s++){var c=t[s];"string"==typeof c?i(a,c):"number"!=typeof c&&"Number"!==r(c)&&"String"!==r(c)||i(a,o(c))}var l=a.length,f=!0;return function(t,n){if(f)return f=!1,n;if(e(this))return n;for(var r=0;r<l;r++)if(a[r]===t)return n}}},wl}var Al,xl,Tl={};function Nl(){return xl||(xl=1,function(){if(ol)return qs;ol=1;var t=Ns(),e=Ii(),n=Wi(),r=_i(),o=Oa(),i=Gi(),u=Uu(),a=Bi(),s=Pa(),c=zu(),l=As(),f=_u(),d=Fa(),p=Ks(),h=Iu(),v=Dc(),g=Ec(),y=xc(),m=Bc(),b=zc(),E=ja(),w=xs(),S=wc(),C=ku(),D=Hc(),O=$c(),A=Ta(),x=Cc(),T=yc(),N=ka(),P=Ia(),k=ul(),I=al(),B=sl(),F=ll(),R=dl(),_=pl().forEach,j=x("hidden"),L="Symbol",M="prototype",z=R.set,H=R.getterFor(L),$=Object[M],U=e.Symbol,V=U&&U[M],G=e.RangeError,W=e.TypeError,q=e.QObject,K=E.f,Y=w.f,X=m.f,J=C.f,Z=r([].push),Q=A("symbols"),tt=A("op-symbols"),et=A("wks"),nt=!q||!q[M]||!q[M].findChild,rt=function(t,e,n){var r=K($,e);r&&delete $[e],Y(t,e,n),r&&t!==$&&Y($,e,r)},ot=i&&a(function(){return 7!==v(Y({},"a",{get:function(){return Y(this,"a",{value:7}).a}})).a})?rt:Y,it=function(t,e){var n=Q[t]=v(V);return z(n,{type:L,tag:t,description:e}),i||(n.description=e),n},ut=function(t,e,n){t===$&&ut(tt,e,n),l(t);var r=d(e);return l(n),s(Q,r)?(n.enumerable?(s(t,j)&&t[j][r]&&(t[j][r]=!1),n=v(n,{enumerable:h(0,!1)})):(s(t,j)||Y(t,j,h(1,v(null))),t[j][r]=!0),ot(t,r,n)):Y(t,r,n)},at=function(t,e){l(t);var r=f(e),o=g(r).concat(ft(r));return _(o,function(e){i&&!n(st,r,e)||ut(t,e,r[e])}),t},st=function(t){var e=d(t),r=n(J,this,e);return!(this===$&&s(Q,e)&&!s(tt,e))&&(!(r||!s(this,e)||!s(Q,e)||s(this,j)&&this[j][e])||r)},ct=function(t,e){var n=f(t),r=d(e);if(n!==$||!s(Q,r)||s(tt,r)){var o=K(n,r);return!o||!s(Q,r)||s(n,j)&&n[j][r]||(o.enumerable=!0),o}},lt=function(t){var e=X(f(t)),n=[];return _(e,function(t){s(Q,t)||s(T,t)||Z(n,t)}),n},ft=function(t){var e=t===$,n=X(e?tt:f(t)),r=[];return _(n,function(t){!s(Q,t)||e&&!s($,t)||Z(r,Q[t])}),r};u||(U=function(){if(c(V,this))throw new W("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?p(arguments[0]):void 0,r=N(t),o=function(t){var i=void 0===this?e:this;i===$&&n(o,tt,t),s(i,j)&&s(i[j],r)&&(i[j][r]=!1);var u=h(1,t);try{ot(i,r,u)}catch(t){if(!(t instanceof G))throw t;rt(i,r,u)}};return i&&nt&&ot($,r,{configurable:!0,set:o}),it(r,t)},D(V=U[M],"toString",function(){return H(this).tag}),D(U,"withoutSetter",function(t){return it(N(t),t)}),C.f=st,w.f=ut,S.f=at,E.f=ct,y.f=m.f=lt,b.f=ft,k.f=function(t){return it(P(t),t)},i&&(O(V,"description",{configurable:!0,get:function(){return H(this).description}}),o||D($,"propertyIsEnumerable",st,{unsafe:!0}))),t({global:!0,constructor:!0,wrap:!0,forced:!u,sham:!u},{Symbol:U}),_(g(et),function(t){I(t)}),t({target:L,stat:!0,forced:!u},{useSetter:function(){nt=!0},useSimple:function(){nt=!1}}),t({target:"Object",stat:!0,forced:!u,sham:!i},{create:function(t,e){return void 0===e?v(t):at(v(t),e)},defineProperty:ut,defineProperties:at,getOwnPropertyDescriptor:ct}),t({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:lt}),B(),F(U,L),T[j]=!0}(),function(){if(gl)return yl;gl=1;var t=Ns(),e=Mu(),n=Pa(),r=Ks(),o=Ta(),i=ml(),u=o("string-to-symbol-registry"),a=o("symbol-to-string-registry");t({target:"Symbol",stat:!0,forced:!i},{for:function(t){var o=r(t);if(n(u,o))return u[o];var i=e("Symbol")(o);return u[o]=i,a[i]=o,i}})}(),function(){if(bl)return El;bl=1;var t=Ns(),e=Pa(),n=Gu(),r=Wu(),o=Ta(),i=ml(),u=o("symbol-to-string-registry");t({target:"Symbol",stat:!0,forced:!i},{keyFor:function(t){if(!n(t))throw new TypeError(r(t)+" is not a symbol");if(e(u,t))return u[t]}})}(),function(){if(Cl)return Dl;Cl=1;var t=Ns(),e=Mu(),n=Ri(),r=Wi(),o=_i(),i=Bi(),u=Mi(),a=Gu(),s=Ic(),c=Ol(),l=Uu(),f=String,d=e("JSON","stringify"),p=o(/./.exec),h=o("".charAt),v=o("".charCodeAt),g=o("".replace),y=o(1.1.toString),m=/[\uD800-\uDFFF]/g,b=/^[\uD800-\uDBFF]$/,E=/^[\uDC00-\uDFFF]$/,w=!l||i(function(){var t=e("Symbol")("stringify detection");return"[null]"!==d([t])||"{}"!==d({a:t})||"{}"!==d(Object(t))}),S=i(function(){return'"\\udf06\\ud834"'!==d("\udf06\ud834")||'"\\udead"'!==d("\udead")}),C=function(t,e){var o=s(arguments),i=c(e);if(u(i)||void 0!==t&&!a(t))return o[1]=function(t,e){if(u(i)&&(e=r(i,this,f(t),e)),!a(e))return e},n(d,null,o)},D=function(t,e,n){var r=h(n,e-1),o=h(n,e+1);return p(b,t)&&!p(E,o)||p(E,t)&&!p(b,r)?"\\u"+y(v(t,0),16):t};d&&t({target:"JSON",stat:!0,arity:3,forced:w||S},{stringify:function(t,e,r){var o=s(arguments),i=n(w?C:d,null,o);return S&&"string"==typeof i?g(i,m,D):i}})}(),function(){if(Al)return Tl;Al=1;var t=Ns(),e=Uu(),n=Bi(),r=zc(),o=Na();t({target:"Object",stat:!0,forced:!e||n(function(){r.f(1)})},{getOwnPropertySymbols:function(t){var e=r.f;return e?e(o(t)):[]}})}()),Ws}var Pl,kl={};function Il(){return Pl||(Pl=1,al()("asyncDispose")),kl}var Bl;var Fl,Rl={};function _l(){return Fl||(Fl=1,al()("dispose")),Rl}var jl;var Ll;var Ml,zl={};function Hl(){return Ml||(Ml=1,al()("iterator")),zl}var $l;var Ul;var Vl;var Gl;var Wl;var ql;var Kl,Yl={};var Xl,Jl={};var Zl;var Ql,tf,ef,nf={};function rf(){return ef?tf:(ef=1,function(){if(Cs)return ki;Cs=1;var t=Ns(),e=Bi(),n=Ps(),r=ju(),o=Na(),i=Fs(),u=Rs(),a=_s(),s=$s(),c=Us(),l=Ia(),f=$u(),d=l("isConcatSpreadable"),p=f>=51||!e(function(){var t=[];return t[d]=!1,t.concat()[0]!==t}),h=function(t){if(!r(t))return!1;var e=t[d];return void 0!==e?!!e:n(t)};t({target:"Array",proto:!0,arity:1,forced:!p||!c("concat")},{concat:function(t){var e,n,r,c,l,f=o(this),d=s(f,0),p=0;for(e=-1,r=arguments.length;e<r;e++)if(h(l=-1===e?f:arguments[e]))for(c=i(l),u(p+c),n=0;n<c;n++,p++)n in l&&a(d,p,l[n]);else u(p+1),a(d,p++,l);return d.length=p,d}})}(),Nl(),Il(),Bl||(Bl=1,al()("asyncIterator")),_l(),jl||(jl=1,al()("hasInstance")),Ll||(Ll=1,al()("isConcatSpreadable")),Hl(),$l||($l=1,al()("match")),Ul||(Ul=1,al()("matchAll")),Vl||(Vl=1,al()("replace")),Gl||(Gl=1,al()("search")),Wl||(Wl=1,al()("species")),ql||(ql=1,al()("split")),function(){if(Kl)return Yl;Kl=1;var t=al(),e=sl();t("toPrimitive"),e()}(),function(){if(Xl)return Jl;Xl=1;var t=Mu(),e=al(),n=ll();e("toStringTag"),n(t("Symbol"),"Symbol")}(),Zl||(Zl=1,al()("unscopables")),function(){if(Ql)return nf;Ql=1;var t=Ii();ll()(t.JSON,"JSON",!0)}(),tf=Lu().Symbol)}var of,uf,af,sf,cf,lf,ff,df,pf,hf,vf,gf,yf,mf,bf,Ef,wf,Sf,Cf,Df,Of,Af,xf,Tf,Nf,Pf,kf,If,Bf,Ff,Rf,_f,jf,Lf={};function Mf(){return uf?of:(uf=1,of=function(){})}function zf(){return sf?af:(sf=1,af={})}function Hf(){if(lf)return cf;lf=1;var t=Gi(),e=Pa(),n=Function.prototype,r=t&&Object.getOwnPropertyDescriptor,o=e(n,"name"),i=o&&"something"===function(){}.name,u=o&&(!t||t&&r(n,"name").configurable);return cf={EXISTS:o,PROPER:i,CONFIGURABLE:u}}function $f(){return df||(df=1,ff=!Bi()(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),ff}function Uf(){if(hf)return pf;hf=1;var t=Pa(),e=Mi(),n=Na(),r=Cc(),o=$f(),i=r("IE_PROTO"),u=Object,a=u.prototype;return pf=o?u.getPrototypeOf:function(r){var o=n(r);if(t(o,i))return o[i];var s=o.constructor;return e(s)&&o instanceof s?s.prototype:o instanceof u?a:null},pf}function Vf(){if(gf)return vf;gf=1;var t,e,n,r=Bi(),o=Mi(),i=ju(),u=Dc(),a=Uf(),s=Hc(),c=Ia(),l=Oa(),f=c("iterator"),d=!1;return[].keys&&("next"in(n=[].keys())?(e=a(a(n)))!==Object.prototype&&(t=e):d=!0),!i(t)||r(function(){var e={};return t[f].call(e)!==e})?t={}:l&&(t=u(t)),o(t[f])||s(t,f,function(){return this}),vf={IteratorPrototype:t,BUGGY_SAFARI_ITERATORS:d}}function Gf(){if(mf)return yf;mf=1;var t=Vf().IteratorPrototype,e=Dc(),n=Iu(),r=ll(),o=zf(),i=function(){return this};return yf=function(u,a,s,c){var l=a+" Iterator";return u.prototype=e(t,{next:n(+!c,s)}),r(u,l,!1,!0),o[l]=i,u}}function Wf(){if(Ef)return bf;Ef=1;var t=_i(),e=qu();return bf=function(n,r,o){try{return t(e(Object.getOwnPropertyDescriptor(n,r)[o]))}catch(t){}}}function qf(){if(Sf)return wf;Sf=1;var t=ju();return wf=function(e){return t(e)||null===e}}function Kf(){if(Df)return Cf;Df=1;var t=qf(),e=String,n=TypeError;return Cf=function(r){if(t(r))return r;throw new n("Can't set "+e(r)+" as a prototype")}}function Yf(){if(Af)return Of;Af=1;var t=Wf(),e=ju(),n=Ru(),r=Kf();return Of=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 n(t),r(u),e(t)?(i?o(t,u):t.__proto__=u,t):t}}():void 0),Of}function Xf(){if(Tf)return xf;Tf=1;var t=Ns(),e=Wi(),n=Oa(),r=Hf(),o=Mi(),i=Gf(),u=Uf(),a=Yf(),s=ll(),c=Ts(),l=Hc(),f=Ia(),d=zf(),p=Vf(),h=r.PROPER,v=r.CONFIGURABLE,g=p.IteratorPrototype,y=p.BUGGY_SAFARI_ITERATORS,m=f("iterator"),b="keys",E="values",w="entries",S=function(){return this};return xf=function(r,f,p,C,D,O,A){i(p,f,C);var x,T,N,P=function(t){if(t===D&&R)return R;if(!y&&t&&t in B)return B[t];switch(t){case b:case E:case w:return function(){return new p(this,t)}}return function(){return new p(this)}},k=f+" Iterator",I=!1,B=r.prototype,F=B[m]||B["@@iterator"]||D&&B[D],R=!y&&F||P(D),_="Array"===f&&B.entries||F;if(_&&(x=u(_.call(new r)))!==Object.prototype&&x.next&&(n||u(x)===g||(a?a(x,g):o(x[m])||l(x,m,S)),s(x,k,!0,!0),n&&(d[k]=S)),h&&D===E&&F&&F.name!==E&&(!n&&v?c(B,"name",E):(I=!0,R=function(){return e(F,this)})),D)if(T={values:P(E),keys:O?R:P(b),entries:P(w)},A)for(N in T)(y||I||!(N in B))&&l(B,N,T[N]);else t({target:f,proto:!0,forced:y||I},T);return n&&!A||B[m]===R||l(B,m,R,{name:D}),d[f]=R,T}}function Jf(){return Pf?Nf:(Pf=1,Nf=function(t,e){return{value:t,done:e}})}function Zf(){if(If)return kf;If=1;var t=_u(),e=Mf(),n=zf(),r=dl(),o=xs().f,i=Xf(),u=Jf(),a=Oa(),s=Gi(),c="Array Iterator",l=r.set,f=r.getterFor(c);kf=i(Array,"Array",function(e,n){l(this,{type:c,target:t(e),index:0,kind:n})},function(){var t=f(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=null,u(void 0,!0);switch(t.kind){case"keys":return u(n,!1);case"values":return u(e[n],!1)}return u([n,e[n]],!1)},"values");var d=n.Arguments=n.Array;if(e("keys"),e("values"),e("entries"),!a&&s&&"values"!==d.name)try{o(d,"name",{value:"values"})}catch(t){}return kf}function Qf(){return Ff?Bf:(Ff=1,Bf={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 td(){if(Rf)return Lf;Rf=1,Zf();var t=Qf(),e=Ii(),n=ll(),r=zf();for(var o in t)n(e[o],o),r[o]=r.Array;return Lf}function ed(){if(jf)return _f;jf=1;var t=rf();return td(),_f=t}var nd,rd={};var od;var id;var ud,ad,sd;function cd(){if(sd)return ad;sd=1;var t=ed();return function(){if(nd)return rd;nd=1;var t=Ia(),e=xs().f,n=t("metadata"),r=Function.prototype;void 0===r[n]&&e(r,n,{value:null})}(),od||(od=1,Il()),id||(id=1,_l()),ud||(ud=1,al()("metadata")),ad=t}var ld,fd,dd;function pd(){if(fd)return ld;fd=1;var t=Mu(),e=_i(),n=t("Symbol"),r=n.keyFor,o=e(n.prototype.valueOf);return ld=n.isRegisteredSymbol||function(t){try{return void 0!==r(o(t))}catch(t){return!1}}}var hd,vd,gd;function yd(){if(vd)return hd;vd=1;for(var t=Ta(),e=Mu(),n=_i(),r=Gu(),o=Ia(),i=e("Symbol"),u=i.isWellKnownSymbol,a=e("Object","getOwnPropertyNames"),s=n(i.prototype.valueOf),c=t("wks"),l=0,f=a(i),d=f.length;l<d;l++)try{var p=f[l];r(i[p])&&o(p)}catch(t){}return hd=function(t){if(u&&u(t))return!0;try{for(var e=s(t),n=0,r=a(c),o=r.length;n<o;n++)if(c[r[n]]==e)return!0}catch(t){}return!1},hd}var md;var bd;var Ed;var wd;var Sd;var Cd;var Dd;var Od,Ad,xd,Td,Nd;function Pd(){if(xd)return Ad;xd=1;var t=cd();return dd||(dd=1,Ns()({target:"Symbol",stat:!0},{isRegisteredSymbol:pd()})),gd||(gd=1,Ns()({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:yd()})),md||(md=1,al()("customMatcher")),bd||(bd=1,al()("observable")),Ed||(Ed=1,Ns()({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:pd()})),wd||(wd=1,Ns()({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:yd()})),Sd||(Sd=1,al()("matcher")),Cd||(Cd=1,al()("metadataKey")),Dd||(Dd=1,al()("patternMatch")),Od||(Od=1,al()("replaceAll")),Ad=t}function kd(){return Nd?Td:(Nd=1,Td=Pd())}var Id,Bd,Fd,Rd,_d,jd,Ld,Md,zd,Hd,$d,Ud,Vd,Gd=E(kd()),Wd={};function qd(){if(Bd)return Id;Bd=1;var t=_i(),e=Is(),n=Ks(),r=Ru(),o=t("".charAt),i=t("".charCodeAt),u=t("".slice),a=function(t){return function(a,s){var c,l,f=n(r(a)),d=e(s),p=f.length;return d<0||d>=p?t?"":void 0:(c=i(f,d))<55296||c>56319||d+1===p||(l=i(f,d+1))<56320||l>57343?t?o(f,d):c:t?u(f,d,d+2):l-56320+(c-55296<<10)+65536}};return Id={codeAt:a(!1),charAt:a(!0)}}function Kd(){return _d?Rd:(_d=1,Zf(),function(){if(Fd)return Wd;Fd=1;var t=qd().charAt,e=Ks(),n=dl(),r=Xf(),o=Jf(),i="String Iterator",u=n.set,a=n.getterFor(i);r(String,"String",function(t){u(this,{type:i,string:e(t),index:0})},function(){var e,n=a(this),r=n.string,i=n.index;return i>=r.length?o(void 0,!0):(e=t(r,i),n.index+=e.length,o(e,!1))})}(),Hl(),Rd=ul().f("iterator"))}function Yd(){if(Ld)return jd;Ld=1;var t=Kd();return td(),jd=t}function Xd(){return zd?Md:(zd=1,Md=Yd())}function Jd(){return $d?Hd:($d=1,Hd=Xd())}function Zd(){return Vd?Ud:(Vd=1,Ud=Jd())}var Qd=E(Zd());function tp(t){return tp="function"==typeof Gd&&"symbol"==typeof Qd?function(t){return typeof t}:function(t){return t&&"function"==typeof Gd&&t.constructor===Gd&&t!==Gd.prototype?"symbol":typeof t},tp(t)}var ep,np={};if(function(){if(ep)return np;ep=1;var t=pr(),e=S(),n=N(),r=gn().f,o=At();t({target:"Object",stat:!0,forced:!o||e(function(){r(1)}),sham:!o},{getOwnPropertyDescriptor:function(t,e){return r(n(t),e)}})}(),"object"===("undefined"==typeof global?"undefined":tp(global))){var rp=Object.getOwnPropertyDescriptor(global,"window");global.window&&!rp.set||(global.window=global,global.requestAnimationFrame=function(){},global.navigator={userAgent:""},global.location={hostname:"0.0.0.0",port:0,protocol:"http:"},global.btoa=function(){},global.crypto={getRandomValues:function(t){return nodeCrypto.randomFillSync(t)}}),null!=global.document&&null==global.document.getElementsByTagName&&(global.document.getElementsByTagName=function(){return[]})}var op,ip={},up={};function ap(){if(op)return up;
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).wangEditor={})}(this,function(e){"use strict";var t,n,r,o,i,a,s,u,l,c,d,f,p,h,g,v,m,y,b="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function E(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function C(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){var n=!1;try{n=this instanceof e}catch{}return n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}function w(){return n?t:(n=1,t=function(e){try{return!!e()}catch(e){return!0}})}function D(){if(o)return r;o=1;var e=w();return r=!e(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})}function A(){if(a)return i;a=1;var e=D(),t=Function.prototype,n=t.call,r=e&&t.bind.bind(n,n);return i=e?r:function(e){return function(){return n.apply(e,arguments)}},i}function S(){if(u)return s;u=1;var e=A(),t=e({}.toString),n=e("".slice);return s=function(e){return n(t(e),8,-1)}}function x(){if(c)return l;c=1;var e=A(),t=w(),n=S(),r=Object,o=e("".split);return l=t(function(){return!r("z").propertyIsEnumerable(0)})?function(e){return"String"===n(e)?o(e,""):r(e)}:r}function T(){return f?d:(f=1,d=function(e){return null==e})}function O(){if(h)return p;h=1;var e=T(),t=TypeError;return p=function(n){if(e(n))throw new t("Can't call method on "+n);return n}}function N(){if(v)return g;v=1;var e=x(),t=O();return g=function(n){return e(t(n))}}function B(){if(y)return m;y=1;var e=function(e){return e&&e.Math===Math&&e};return m=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof b&&b)||e("object"==typeof m&&m)||function(){return this}()||Function("return this")()}var k,F,P,I,_,R,L,M,j,H,z,$,U,V,W,G,q,K,Y,X,Z,J,Q,ee,te,ne,re,oe,ie,ae={exports:{}};function se(){return F?k:(F=1,k=!1)}function ue(){if(I)return P;I=1;var e=B(),t=Object.defineProperty;return P=function(n,r){try{t(e,n,{value:r,configurable:!0,writable:!0})}catch(t){e[n]=r}return r}}function le(){if(_)return ae.exports;_=1;var e=se(),t=B(),n=ue(),r="__core-js_shared__",o=ae.exports=t[r]||n(r,{});return(o.versions||(o.versions=[])).push({version:"3.44.0",mode:e?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.44.0/LICENSE",source:"https://github.com/zloirock/core-js"}),ae.exports}function ce(){if(L)return R;L=1;var e=le();return R=function(t,n){return e[t]||(e[t]=n||{})}}function de(){if(j)return M;j=1;var e=O(),t=Object;return M=function(n){return t(e(n))}}function fe(){if(z)return H;z=1;var e=A(),t=de(),n=e({}.hasOwnProperty);return H=Object.hasOwn||function(e,r){return n(t(e),r)}}function pe(){if(U)return $;U=1;var e=A(),t=0,n=Math.random(),r=e(1.1.toString);return $=function(e){return"Symbol("+(void 0===e?"":e)+")_"+r(++t+n,36)}}function he(){if(q)return G;q=1;var e,t,n=B(),r=function(){if(W)return V;W=1;var e=B().navigator,t=e&&e.userAgent;return V=t?String(t):""}(),o=n.process,i=n.Deno,a=o&&o.versions||i&&i.version,s=a&&a.v8;return s&&(t=(e=s.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!t&&r&&(!(e=r.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=r.match(/Chrome\/(\d+)/))&&(t=+e[1]),G=t}function ge(){if(Y)return K;Y=1;var e=he(),t=w(),n=B().String;return K=!!Object.getOwnPropertySymbols&&!t(function(){var t=Symbol("symbol detection");return!n(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41}),K}function ve(){if(Z)return X;Z=1;var e=ge();return X=e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function me(){if(Q)return J;Q=1;var e=B(),t=ce(),n=fe(),r=pe(),o=ge(),i=ve(),a=e.Symbol,s=t("wks"),u=i?a.for||a:a&&a.withoutSetter||r;return J=function(e){return n(s,e)||(s[e]=o&&n(a,e)?a[e]:u("Symbol."+e)),s[e]}}function ye(){if(te)return ee;te=1;var e="object"==typeof document&&document.all;return ee=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(e){return"function"==typeof e}}function be(){if(re)return ne;re=1;var e=ye();return ne=function(t){return"object"==typeof t?null!==t:e(t)}}function Ee(){if(ie)return oe;ie=1;var e=be(),t=String,n=TypeError;return oe=function(r){if(e(r))return r;throw new n(t(r)+" is not an object")}}var Ce,we,De,Ae,Se={};function xe(){if(we)return Ce;we=1;var e=w();return Ce=!e(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function Te(){if(Ae)return De;Ae=1;var e=xe(),t=w();return De=e&&t(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}var Oe,Ne,Be,ke,Fe,Pe,Ie,_e,Re,Le,Me,je,He,ze,$e,Ue,Ve,We,Ge,qe,Ke,Ye,Xe,Ze,Je,Qe,et,tt,nt,rt,ot,it,at,st,ut,lt,ct,dt,ft,pt,ht,gt,vt,mt,yt,bt,Et,Ct,wt,Dt,At,St,xt,Tt,Ot,Nt,Bt,kt,Ft,Pt,It,_t,Rt,Lt,Mt={};function jt(){if(Ne)return Oe;Ne=1;var e=B(),t=be(),n=e.document,r=t(n)&&t(n.createElement);return Oe=function(e){return r?n.createElement(e):{}}}function Ht(){if(ke)return Be;ke=1;var e=xe(),t=w(),n=jt();return Be=!e&&!t(function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a})}function zt(){if(Pe)return Fe;Pe=1;var e=D(),t=Function.prototype.call;return Fe=e?t.bind(t):function(){return t.apply(t,arguments)},Fe}function $t(){if(_e)return Ie;_e=1;var e=B(),t=ye();return Ie=function(n,r){return arguments.length<2?(o=e[n],t(o)?o:void 0):e[n]&&e[n][r];var o},Ie}function Ut(){if(Le)return Re;Le=1;var e=A();return Re=e({}.isPrototypeOf)}function Vt(){if(je)return Me;je=1;var e=$t(),t=ye(),n=Ut(),r=ve(),o=Object;return Me=r?function(e){return"symbol"==typeof e}:function(r){var i=e("Symbol");return t(i)&&n(i.prototype,o(r))}}function Wt(){if(ze)return He;ze=1;var e=String;return He=function(t){try{return e(t)}catch(e){return"Object"}}}function Gt(){if(Ue)return $e;Ue=1;var e=ye(),t=Wt(),n=TypeError;return $e=function(r){if(e(r))return r;throw new n(t(r)+" is not a function")}}function qt(){if(We)return Ve;We=1;var e=Gt(),t=T();return Ve=function(n,r){var o=n[r];return t(o)?void 0:e(o)},Ve}function Kt(){if(Ye)return Ke;Ye=1;var e=zt(),t=be(),n=Vt(),r=qt(),o=function(){if(qe)return Ge;qe=1;var e=zt(),t=ye(),n=be(),r=TypeError;return Ge=function(o,i){var a,s;if("string"===i&&t(a=o.toString)&&!n(s=e(a,o)))return s;if(t(a=o.valueOf)&&!n(s=e(a,o)))return s;if("string"!==i&&t(a=o.toString)&&!n(s=e(a,o)))return s;throw new r("Can't convert object to primitive value")},Ge}(),i=me(),a=TypeError,s=i("toPrimitive");return Ke=function(i,u){if(!t(i)||n(i))return i;var l,c=r(i,s);if(c){if(void 0===u&&(u="default"),l=e(c,i,u),!t(l)||n(l))return l;throw new a("Can't convert object to primitive value")}return void 0===u&&(u="number"),o(i,u)}}function Yt(){if(Ze)return Xe;Ze=1;var e=Kt(),t=Vt();return Xe=function(n){var r=e(n,"string");return t(r)?r:r+""}}function Xt(){if(Je)return Mt;Je=1;var e=xe(),t=Ht(),n=Te(),r=Ee(),o=Yt(),i=TypeError,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,u="enumerable",l="configurable",c="writable";return Mt.f=e?n?function(e,t,n){if(r(e),t=o(t),r(n),"function"==typeof e&&"prototype"===t&&"value"in n&&c in n&&!n[c]){var i=s(e,t);i&&i[c]&&(e[t]=n.value,n={configurable:l in n?n[l]:i[l],enumerable:u in n?n[u]:i[u],writable:!1})}return a(e,t,n)}:a:function(e,n,s){if(r(e),n=o(n),r(s),t)try{return a(e,n,s)}catch(e){}if("get"in s||"set"in s)throw new i("Accessors not supported");return"value"in s&&(e[n]=s.value),e},Mt}function Zt(){if(nt)return tt;nt=1;var e=function(){if(et)return Qe;et=1;var e=Math.ceil,t=Math.floor;return Qe=Math.trunc||function(n){var r=+n;return(r>0?t:e)(r)},Qe}();return tt=function(t){var n=+t;return n!=n||0===n?0:e(n)}}function Jt(){if(at)return it;at=1;var e=Zt(),t=Math.min;return it=function(n){var r=e(n);return r>0?t(r,9007199254740991):0}}function Qt(){if(ut)return st;ut=1;var e=Jt();return st=function(t){return e(t.length)}}function en(){if(ct)return lt;ct=1;var e=N(),t=function(){if(ot)return rt;ot=1;var e=Zt(),t=Math.max,n=Math.min;return rt=function(r,o){var i=e(r);return i<0?t(i+o,0):n(i,o)},rt}(),n=Qt(),r=function(r){return function(o,i,a){var s=e(o),u=n(s);if(0===u)return!r&&-1;var l,c=t(a,u);if(r&&i!=i){for(;u>c;)if((l=s[c++])!=l)return!0}else for(;u>c;c++)if((r||c in s)&&s[c]===i)return r||c||0;return!r&&-1}};return lt={includes:r(!0),indexOf:r(!1)}}function tn(){return ft?dt:(ft=1,dt={})}function nn(){if(ht)return pt;ht=1;var e=A(),t=fe(),n=N(),r=en().indexOf,o=tn(),i=e([].push);return pt=function(e,a){var s,u=n(e),l=0,c=[];for(s in u)!t(o,s)&&t(u,s)&&i(c,s);for(;a.length>l;)t(u,s=a[l++])&&(~r(c,s)||i(c,s));return c},pt}function rn(){return vt?gt:(vt=1,gt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function on(){if(bt)return Se;bt=1;var e=xe(),t=Te(),n=Xt(),r=Ee(),o=N(),i=function(){if(yt)return mt;yt=1;var e=nn(),t=rn();return mt=Object.keys||function(n){return e(n,t)},mt}();return Se.f=e&&!t?Object.defineProperties:function(e,t){r(e);for(var a,s=o(t),u=i(t),l=u.length,c=0;l>c;)n.f(e,a=u[c++],s[a]);return e},Se}function an(){if(Dt)return wt;Dt=1;var e=ce(),t=pe(),n=e("keys");return wt=function(e){return n[e]||(n[e]=t(e))}}function sn(){if(St)return At;St=1;var e,t=Ee(),n=on(),r=rn(),o=tn(),i=function(){if(Ct)return Et;Ct=1;var e=$t();return Et=e("document","documentElement")}(),a=jt(),s=an(),u="prototype",l="script",c=s("IE_PROTO"),d=function(){},f=function(e){return"<"+l+">"+e+"</"+l+">"},p=function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t},h=function(){try{e=new ActiveXObject("htmlfile")}catch(e){}var t,n,o;h="undefined"!=typeof document?document.domain&&e?p(e):(n=a("iframe"),o="java"+l+":",n.style.display="none",i.appendChild(n),n.src=String(o),(t=n.contentWindow.document).open(),t.write(f("document.F=Object")),t.close(),t.F):p(e);for(var s=r.length;s--;)delete h[u][r[s]];return h()};return o[c]=!0,At=Object.create||function(e,r){var o;return null!==e?(d[u]=t(e),o=new d,d[u]=null,o[c]=e):o=h(),void 0===r?o:n.f(o,r)},At}function un(){return Nt?Ot:(Nt=1,Ot={})}function ln(){return Pt?Ft:(Pt=1,Ft=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}})}function cn(){if(_t)return It;_t=1;var e=xe(),t=Xt(),n=ln();return It=e?function(e,r,o){return t.f(e,r,n(1,o))}:function(e,t,n){return e[t]=n,e}}function dn(){if(Lt)return Rt;Lt=1;var e,t,n,r=function(){if(kt)return Bt;kt=1;var e=B(),t=ye(),n=e.WeakMap;return Bt=t(n)&&/native code/.test(String(n))}(),o=B(),i=be(),a=cn(),s=fe(),u=le(),l=an(),c=tn(),d="Object already initialized",f=o.TypeError,p=o.WeakMap;if(r||u.state){var h=u.state||(u.state=new p);h.get=h.get,h.has=h.has,h.set=h.set,e=function(e,t){if(h.has(e))throw new f(d);return t.facade=e,h.set(e,t),t},t=function(e){return h.get(e)||{}},n=function(e){return h.has(e)}}else{var g=l("state");c[g]=!0,e=function(e,t){if(s(e,g))throw new f(d);return t.facade=e,a(e,g,t),t},t=function(e){return s(e,g)?e[g]:{}},n=function(e){return s(e,g)}}return Rt={set:e,get:t,has:n,enforce:function(r){return n(r)?t(r):e(r,{})},getterFor:function(e){return function(n){var r;if(!i(n)||(r=t(n)).type!==e)throw new f("Incompatible receiver, "+e+" required");return r}}}}var fn,pn,hn={},gn={};function vn(){if(pn)return hn;pn=1;var e=xe(),t=zt(),n=function(){if(fn)return gn;fn=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,n=t&&!e.call({1:2},1);return gn.f=n?function(e){var n=t(this,e);return!!n&&n.enumerable}:e,gn}(),r=ln(),o=N(),i=Yt(),a=fe(),s=Ht(),u=Object.getOwnPropertyDescriptor;return hn.f=e?u:function(e,l){if(e=o(e),l=i(l),s)try{return u(e,l)}catch(e){}if(a(e,l))return r(!t(n.f,e,l),e[l])},hn}var mn,yn,bn,En,Cn,wn,Dn,An={exports:{}};function Sn(){if(yn)return mn;yn=1;var e=xe(),t=fe(),n=Function.prototype,r=e&&Object.getOwnPropertyDescriptor,o=t(n,"name"),i=o&&"something"===function(){}.name,a=o&&(!e||e&&r(n,"name").configurable);return mn={EXISTS:o,PROPER:i,CONFIGURABLE:a}}function xn(){if(En)return bn;En=1;var e=A(),t=ye(),n=le(),r=e(Function.toString);return t(n.inspectSource)||(n.inspectSource=function(e){return r(e)}),bn=n.inspectSource}function Tn(){if(Cn)return An.exports;Cn=1;var e=A(),t=w(),n=ye(),r=fe(),o=xe(),i=Sn().CONFIGURABLE,a=xn(),s=dn(),u=s.enforce,l=s.get,c=String,d=Object.defineProperty,f=e("".slice),p=e("".replace),h=e([].join),g=o&&!t(function(){return 8!==d(function(){},"length",{value:8}).length}),v=String(String).split("String"),m=An.exports=function(e,t,n){"Symbol("===f(c(t),0,7)&&(t="["+p(c(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!r(e,"name")||i&&e.name!==t)&&(o?d(e,"name",{value:t,configurable:!0}):e.name=t),g&&n&&r(n,"arity")&&e.length!==n.arity&&d(e,"length",{value:n.arity});try{n&&r(n,"constructor")&&n.constructor?o&&d(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var a=u(e);return r(a,"source")||(a.source=h(v,"string"==typeof t?t:"")),e};return Function.prototype.toString=m(function(){return n(this)&&l(this).source||a(this)},"toString"),An.exports}function On(){if(Dn)return wn;Dn=1;var e=ye(),t=Xt(),n=Tn(),r=ue();return wn=function(o,i,a,s){s||(s={});var u=s.enumerable,l=void 0!==s.name?s.name:i;if(e(a)&&n(a,l,s),s.global)u?o[i]=a:r(i,a);else{try{s.unsafe?o[i]&&(u=!0):delete o[i]}catch(e){}u?o[i]=a:t.f(o,i,{value:a,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return o},wn}var Nn,Bn={};var kn,Fn,Pn,In,_n,Rn,Ln,Mn,jn,Hn,zn,$n,Un,Vn,Wn,Gn,qn,Kn,Yn,Xn,Zn,Jn,Qn,er,tr,nr,rr,or,ir,ar,sr,ur,lr,cr={};function dr(){if(Pn)return Fn;Pn=1;var e=$t(),t=A(),n=function(){if(Nn)return Bn;Nn=1;var e=nn(),t=rn().concat("length","prototype");return Bn.f=Object.getOwnPropertyNames||function(n){return e(n,t)},Bn}(),r=(kn||(kn=1,cr.f=Object.getOwnPropertySymbols),cr),o=Ee(),i=t([].concat);return Fn=e("Reflect","ownKeys")||function(e){var t=n.f(o(e)),a=r.f;return a?i(t,a(e)):t},Fn}function fr(){if(_n)return In;_n=1;var e=fe(),t=dr(),n=vn(),r=Xt();return In=function(o,i,a){for(var s=t(i),u=r.f,l=n.f,c=0;c<s.length;c++){var d=s[c];e(o,d)||a&&e(a,d)||u(o,d,l(i,d))}},In}function pr(){if(jn)return Mn;jn=1;var e=B(),t=vn().f,n=cn(),r=On(),o=ue(),i=fr(),a=function(){if(Ln)return Rn;Ln=1;var e=w(),t=ye(),n=/#|\.prototype\./,r=function(n,r){var u=i[o(n)];return u===s||u!==a&&(t(r)?e(r):!!r)},o=r.normalize=function(e){return String(e).replace(n,".").toLowerCase()},i=r.data={},a=r.NATIVE="N",s=r.POLYFILL="P";return Rn=r}();return Mn=function(s,u){var l,c,d,f,p,h=s.target,g=s.global,v=s.stat;if(l=g?e:v?e[h]||o(h,{}):e[h]&&e[h].prototype)for(c in u){if(f=u[c],d=s.dontCallGetSet?(p=t(l,c))&&p.value:l[c],!a(g?c:h+(v?".":"#")+c,s.forced)&&void 0!==d){if(typeof f==typeof d)continue;i(f,d)}(s.sham||d&&d.sham)&&n(f,"sham",!0),r(l,c,f,s)}}}function hr(){if(Un)return $n;Un=1;var e=fe(),t=ye(),n=de(),r=an(),o=function(){if(zn)return Hn;zn=1;var e=w();return Hn=!e(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),Hn}(),i=r("IE_PROTO"),a=Object,s=a.prototype;return $n=o?a.getPrototypeOf:function(r){var o=n(r);if(e(o,i))return o[i];var u=o.constructor;return t(u)&&o instanceof u?u.prototype:o instanceof a?s:null},$n}function gr(){if(Wn)return Vn;Wn=1;var e,t,n,r=w(),o=ye(),i=be(),a=sn(),s=hr(),u=On(),l=me(),c=se(),d=l("iterator"),f=!1;return[].keys&&("next"in(n=[].keys())?(t=s(s(n)))!==Object.prototype&&(e=t):f=!0),!i(e)||r(function(){var t={};return e[d].call(t)!==t})?e={}:c&&(e=a(e)),o(e[d])||u(e,d,function(){return this}),Vn={IteratorPrototype:e,BUGGY_SAFARI_ITERATORS:f}}function vr(){if(qn)return Gn;qn=1;var e=Xt().f,t=fe(),n=me()("toStringTag");return Gn=function(r,o,i){r&&!i&&(r=r.prototype),r&&!t(r,n)&&e(r,n,{configurable:!0,value:o})}}function mr(){if(tr)return er;tr=1;var e=function(){if(Qn)return Jn;Qn=1;var e=be();return Jn=function(t){return e(t)||null===t}}(),t=String,n=TypeError;return er=function(r){if(e(r))return r;throw new n("Can't set "+t(r)+" as a prototype")}}function yr(){if(rr)return nr;rr=1;var e=function(){if(Zn)return Xn;Zn=1;var e=A(),t=Gt();return Xn=function(n,r,o){try{return e(t(Object.getOwnPropertyDescriptor(n,r)[o]))}catch(e){}}}(),t=be(),n=O(),r=mr();return nr=Object.setPrototypeOf||("__proto__"in{}?function(){var o,i=!1,a={};try{(o=e(Object.prototype,"__proto__","set"))(a,[]),i=a instanceof Array}catch(e){}return function(e,a){return n(e),r(a),t(e)?(i?o(e,a):e.__proto__=a,e):e}}():void 0),nr}function br(){if(ir)return or;ir=1;var e=pr(),t=zt(),n=se(),r=Sn(),o=ye(),i=function(){if(Yn)return Kn;Yn=1;var e=gr().IteratorPrototype,t=sn(),n=ln(),r=vr(),o=un(),i=function(){return this};return Kn=function(a,s,u,l){var c=s+" Iterator";return a.prototype=t(e,{next:n(+!l,u)}),r(a,c,!1,!0),o[c]=i,a}}(),a=hr(),s=yr(),u=vr(),l=cn(),c=On(),d=me(),f=un(),p=gr(),h=r.PROPER,g=r.CONFIGURABLE,v=p.IteratorPrototype,m=p.BUGGY_SAFARI_ITERATORS,y=d("iterator"),b="keys",E="values",C="entries",w=function(){return this};return or=function(r,d,p,D,A,S,x){i(p,d,D);var T,O,N,B=function(e){if(e===A&&_)return _;if(!m&&e&&e in P)return P[e];switch(e){case b:case E:case C:return function(){return new p(this,e)}}return function(){return new p(this)}},k=d+" Iterator",F=!1,P=r.prototype,I=P[y]||P["@@iterator"]||A&&P[A],_=!m&&I||B(A),R="Array"===d&&P.entries||I;if(R&&(T=a(R.call(new r)))!==Object.prototype&&T.next&&(n||a(T)===v||(s?s(T,v):o(T[y])||c(T,y,w)),u(T,k,!0,!0),n&&(f[k]=w)),h&&A===E&&I&&I.name!==E&&(!n&&g?l(P,"name",E):(F=!0,_=function(){return t(I,this)})),A)if(O={values:B(E),keys:S?_:B(b),entries:B(C)},x)for(N in O)(m||F||!(N in P))&&c(P,N,O[N]);else e({target:d,proto:!0,forced:m||F},O);return n&&!x||P[y]===_||c(P,y,_,{name:A}),f[d]=_,O}}function Er(){return sr?ar:(sr=1,ar=function(e,t){return{value:e,done:t}})}function Cr(){if(lr)return ur;lr=1;var e=N(),t=function(){if(Tt)return xt;Tt=1;var e=me(),t=sn(),n=Xt().f,r=e("unscopables"),o=Array.prototype;return void 0===o[r]&&n(o,r,{configurable:!0,value:t(null)}),xt=function(e){o[r][e]=!0}}(),n=un(),r=dn(),o=Xt().f,i=br(),a=Er(),s=se(),u=xe(),l="Array Iterator",c=r.set,d=r.getterFor(l);ur=i(Array,"Array",function(t,n){c(this,{type:l,target:e(t),index:0,kind:n})},function(){var e=d(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,a(void 0,!0);switch(e.kind){case"keys":return a(n,!1);case"values":return a(t[n],!1)}return a([n,t[n]],!1)},"values");var f=n.Arguments=n.Array;if(t("keys"),t("values"),t("entries"),!s&&u&&"values"!==f.name)try{o(f,"name",{value:"values"})}catch(e){}return ur}Cr();var wr,Dr,Ar,Sr,xr,Tr,Or,Nr={};function Br(){if(Dr)return wr;Dr=1;var e={};return e[me()("toStringTag")]="z",wr="[object z]"===String(e)}function kr(){if(Sr)return Ar;Sr=1;var e=Br(),t=ye(),n=S(),r=me()("toStringTag"),o=Object,i="Arguments"===n(function(){return arguments}());return Ar=e?n:function(e){var a,s,u;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(s=function(e,t){try{return e[t]}catch(e){}}(a=o(e),r))?s:i?n(a):"Object"===(u=n(a))&&t(a.callee)?"Arguments":u},Ar}!function(){if(Or)return Nr;Or=1;var e=Br(),t=On(),n=function(){if(Tr)return xr;Tr=1;var e=Br(),t=kr();return xr=e?{}.toString:function(){return"[object "+t(this)+"]"}}();e||t(Object.prototype,"toString",n,{unsafe:!0})}();var Fr,Pr,Ir,_r,Rr,Lr,Mr,jr,Hr,zr,$r,Ur,Vr,Wr={};function Gr(){if(Pr)return Fr;Pr=1;var e=kr(),t=String;return Fr=function(n){if("Symbol"===e(n))throw new TypeError("Cannot convert a Symbol value to a string");return t(n)}}function qr(){if(_r)return Ir;_r=1;var e=Ee();return Ir=function(){var t=e(this),n="";return t.hasIndices&&(n+="d"),t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.dotAll&&(n+="s"),t.unicode&&(n+="u"),t.unicodeSets&&(n+="v"),t.sticky&&(n+="y"),n}}function Kr(){if(Ur)return $r;Ur=1;var e,t,n=zt(),r=A(),o=Gr(),i=qr(),a=function(){if(Lr)return Rr;Lr=1;var e=w(),t=B().RegExp,n=e(function(){var e=t("a","y");return e.lastIndex=2,null!==e.exec("abcd")}),r=n||e(function(){return!t("a","y").sticky}),o=n||e(function(){var e=t("^r","gy");return e.lastIndex=2,null!==e.exec("str")});return Rr={BROKEN_CARET:o,MISSED_STICKY:r,UNSUPPORTED_Y:n}}(),s=ce(),u=sn(),l=dn().get,c=function(){if(jr)return Mr;jr=1;var e=w(),t=B().RegExp;return Mr=e(function(){var e=t(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)})}(),d=function(){if(zr)return Hr;zr=1;var e=w(),t=B().RegExp;return Hr=e(function(){var e=t("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})}(),f=s("native-string-replace",String.prototype.replace),p=RegExp.prototype.exec,h=p,g=r("".charAt),v=r("".indexOf),m=r("".replace),y=r("".slice),b=(t=/b*/g,n(p,e=/a/,"a"),n(p,t,"a"),0!==e.lastIndex||0!==t.lastIndex),E=a.BROKEN_CARET,C=void 0!==/()??/.exec("")[1];return(b||C||E||c||d)&&(h=function(e){var t,r,a,s,c,d,w,D=this,A=l(D),S=o(e),x=A.raw;if(x)return x.lastIndex=D.lastIndex,t=n(h,x,S),D.lastIndex=x.lastIndex,t;var T=A.groups,O=E&&D.sticky,N=n(i,D),B=D.source,k=0,F=S;if(O&&(N=m(N,"y",""),-1===v(N,"g")&&(N+="g"),F=y(S,D.lastIndex),D.lastIndex>0&&(!D.multiline||D.multiline&&"\n"!==g(S,D.lastIndex-1))&&(B="(?: "+B+")",F=" "+F,k++),r=new RegExp("^(?:"+B+")",N)),C&&(r=new RegExp("^"+B+"$(?!\\s)",N)),b&&(a=D.lastIndex),s=n(p,O?r:D,F),O?s?(s.input=y(s.input,k),s[0]=y(s[0],k),s.index=D.lastIndex,D.lastIndex+=s[0].length):D.lastIndex=0:b&&s&&(D.lastIndex=D.global?s.index+s[0].length:a),C&&s&&s.length>1&&n(f,s[0],r,function(){for(c=1;c<arguments.length-2;c++)void 0===arguments[c]&&(s[c]=void 0)}),s&&T)for(s.groups=d=u(null),c=0;c<T.length;c++)d[(w=T[c])[0]]=s[w[1]];return s}),$r=h}function Yr(){if(Vr)return Wr;Vr=1;var e=pr(),t=Kr();return e({target:"RegExp",proto:!0,forced:/./.exec!==t},{exec:t}),Wr}Yr();var Xr,Zr,Jr,Qr={};function eo(){if(Zr)return Xr;Zr=1;var e=A(),t=Zt(),n=Gr(),r=O(),o=e("".charAt),i=e("".charCodeAt),a=e("".slice),s=function(e){return function(s,u){var l,c,d=n(r(s)),f=t(u),p=d.length;return f<0||f>=p?e?"":void 0:(l=i(d,f))<55296||l>56319||f+1===p||(c=i(d,f+1))<56320||c>57343?e?o(d,f):l:e?a(d,f,f+2):c-56320+(l-55296<<10)+65536}};return Xr={codeAt:s(!1),charAt:s(!0)}}!function(){if(Jr)return Qr;Jr=1;var e=eo().charAt,t=Gr(),n=dn(),r=br(),o=Er(),i="String Iterator",a=n.set,s=n.getterFor(i);r(String,"String",function(e){a(this,{type:i,string:t(e),index:0})},function(){var t,n=s(this),r=n.string,i=n.index;return i>=r.length?o(void 0,!0):(t=e(r,i),n.index+=t.length,o(t,!1))})}();var to,no,ro,oo,io,ao,so,uo,lo,co,fo,po={};function ho(){if(oo)return ro;oo=1;var e=eo().charAt;return ro=function(t,n,r){return n+(r?e(t,n).length:1)},ro}function go(){if(uo)return so;uo=1;var e=zt(),t=fe(),n=Ut(),r=function(){if(ao)return io;ao=1;var e=B(),t=w(),n=e.RegExp,r=!t(function(){var e=!0;try{n(".","d")}catch(t){e=!1}var t={},r="",o=e?"dgimsy":"gimsy",i=function(e,n){Object.defineProperty(t,e,{get:function(){return r+=n,!0}})},a={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var s in e&&(a.hasIndices="d"),a)i(s,a[s]);return Object.getOwnPropertyDescriptor(n.prototype,"flags").get.call(t)!==o||r!==o});return io={correct:r}}(),o=qr(),i=RegExp.prototype;return so=r.correct?function(e){return e.flags}:function(a){return r.correct||!n(i,a)||t(a,"flags")?a.flags:e(o,a)}}!function(){if(fo)return po;fo=1;var e=zt(),t=A(),n=function(){if(no)return to;no=1,Yr();var e=zt(),t=On(),n=Kr(),r=w(),o=me(),i=cn(),a=o("species"),s=RegExp.prototype;return to=function(u,l,c,d){var f=o(u),p=!r(function(){var e={};return e[f]=function(){return 7},7!==""[u](e)}),h=p&&!r(function(){var e=!1,t=/a/;return"split"===u&&((t={}).constructor={},t.constructor[a]=function(){return t},t.flags="",t[f]=/./[f]),t.exec=function(){return e=!0,null},t[f](""),!e});if(!p||!h||c){var g=/./[f],v=l(f,""[u],function(t,r,o,i,a){var u=r.exec;return u===n||u===s.exec?p&&!a?{done:!0,value:e(g,r,o,i)}:{done:!0,value:e(t,o,r,i)}:{done:!1}});t(String.prototype,u,v[0]),t(s,f,v[1])}d&&i(s[f],"sham",!0)},to}(),r=Ee(),o=be(),i=Jt(),a=Gr(),s=O(),u=qt(),l=ho(),c=go(),d=function(){if(co)return lo;co=1;var e=zt(),t=Ee(),n=ye(),r=S(),o=Kr(),i=TypeError;return lo=function(a,s){var u=a.exec;if(n(u)){var l=e(u,a,s);return null!==l&&t(l),l}if("RegExp"===r(a))return e(o,a,s);throw new i("RegExp#exec called on incompatible receiver")},lo}(),f=t("".indexOf);n("match",function(t,n,p){return[function(n){var r=s(this),i=o(n)?u(n,t):void 0;return i?e(i,n,r):new RegExp(n)[t](a(r))},function(e){var t=r(this),o=a(e),s=p(n,t,o);if(s.done)return s.value;var u=a(c(t));if(-1===f(u,"g"))return d(t,o);var h=-1!==f(u,"u");t.lastIndex=0;for(var g,v=[],m=0;null!==(g=d(t,o));){var y=a(g[0]);v[m]=y,""===y&&(t.lastIndex=l(o,i(t.lastIndex),h)),m++}return 0===m?null:v}]})}();var vo,mo,yo,bo,Eo,Co,wo,Do,Ao,So,xo,To,Oo,No,Bo,ko,Fo,Po,Io,_o,Ro,Lo,Mo,jo,Ho,zo,$o,Uo={},Vo={};function Wo(){if(mo)return vo;mo=1;var e=be(),t=cn();return vo=function(n,r){e(r)&&"cause"in r&&t(n,"cause",r.cause)},vo}function Go(){if(Do)return wo;Do=1;var e=cn(),t=function(){if(bo)return yo;bo=1;var e=A(),t=Error,n=e("".replace),r=String(new t("zxcasd").stack),o=/\n\s*at [^:]*:[^\n]*/,i=o.test(r);return yo=function(e,r){if(i&&"string"==typeof e&&!t.prepareStackTrace)for(;r--;)e=n(e,o,"");return e}}(),n=function(){if(Co)return Eo;Co=1;var e=w(),t=ln();return Eo=!e(function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",t(1,7)),7!==e.stack)})}(),r=Error.captureStackTrace;return wo=function(o,i,a,s){n&&(r?r(o,i):e(o,"stack",t(a,s)))},wo}function qo(){if(To)return xo;To=1;var e=function(){if(So)return Ao;So=1;var e=S(),t=A();return Ao=function(n){if("Function"===e(n))return t(n)}}(),t=Gt(),n=D(),r=e(e.bind);return xo=function(e,o){return t(e),void 0===o?e:n?r(e,o):function(){return e.apply(o,arguments)}},xo}function Ko(){if(No)return Oo;No=1;var e=me(),t=un(),n=e("iterator"),r=Array.prototype;return Oo=function(e){return void 0!==e&&(t.Array===e||r[n]===e)}}function Yo(){if(ko)return Bo;ko=1;var e=kr(),t=qt(),n=T(),r=un(),o=me()("iterator");return Bo=function(i){if(!n(i))return t(i,o)||t(i,"@@iterator")||r[e(i)]}}function Xo(){if(Po)return Fo;Po=1;var e=zt(),t=Gt(),n=Ee(),r=Wt(),o=Yo(),i=TypeError;return Fo=function(a,s){var u=arguments.length<2?o(a):s;if(t(u))return n(e(u,a));throw new i(r(a)+" is not iterable")},Fo}function Zo(){if(_o)return Io;_o=1;var e=zt(),t=Ee(),n=qt();return Io=function(r,o,i){var a,s;t(r);try{if(!(a=n(r,"return"))){if("throw"===o)throw i;return i}a=e(a,r)}catch(e){s=!0,a=e}if("throw"===o)throw i;if(s)throw a;return t(a),i},Io}function Jo(){if(Lo)return Ro;Lo=1;var e=qo(),t=zt(),n=Ee(),r=Wt(),o=Ko(),i=Qt(),a=Ut(),s=Xo(),u=Yo(),l=Zo(),c=TypeError,d=function(e,t){this.stopped=e,this.result=t},f=d.prototype;return Ro=function(p,h,g){var v,m,y,b,E,C,w,D=g&&g.that,A=!(!g||!g.AS_ENTRIES),S=!(!g||!g.IS_RECORD),x=!(!g||!g.IS_ITERATOR),T=!(!g||!g.INTERRUPTED),O=e(h,D),N=function(e){return v&&l(v,"normal"),new d(!0,e)},B=function(e){return A?(n(e),T?O(e[0],e[1],N):O(e[0],e[1])):T?O(e,N):O(e)};if(S)v=p.iterator;else if(x)v=p;else{if(!(m=u(p)))throw new c(r(p)+" is not iterable");if(o(m)){for(y=0,b=i(p);b>y;y++)if((E=B(p[y]))&&a(f,E))return E;return new d(!1)}v=s(p,m)}for(C=S?p.next:v.next;!(w=t(C,v)).done;){try{E=B(w.value)}catch(e){l(v,"throw",e)}if("object"==typeof E&&E&&a(f,E))return E}return new d(!1)},Ro}function Qo(){if(jo)return Mo;jo=1;var e=Gr();return Mo=function(t,n){return void 0===t?arguments.length<2?"":n:e(t)},Mo}function ei(){return zo||(zo=1,function(){if(Ho)return Vo;Ho=1;var e=pr(),t=Ut(),n=hr(),r=yr(),o=fr(),i=sn(),a=cn(),s=ln(),u=Wo(),l=Go(),c=Jo(),d=Qo(),f=me()("toStringTag"),p=Error,h=[].push,g=function(e,o){var s,m=t(v,this);r?s=r(new p,m?n(this):v):(s=m?this:i(v),a(s,f,"Error")),void 0!==o&&a(s,"message",d(o)),l(s,g,s.stack,1),arguments.length>2&&u(s,arguments[2]);var y=[];return c(e,h,{that:y}),a(s,"errors",y),s};r?r(g,p):o(g,p,{name:!0});var v=g.prototype=i(p.prototype,{constructor:s(1,g),message:s(1,""),name:s(1,"AggregateError")});e({global:!0,constructor:!0,arity:2},{AggregateError:g})}()),Uo}$o||($o=1,ei());var ti,ni,ri={};ni||(ni=1,function(){if(ti)return ri;ti=1;var e=pr(),t=B();e({global:!0,forced:t.globalThis!==t},{globalThis:t})}());var oi,ii,ai,si,ui,li,ci={};function di(){return ii?oi:(ii=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 fi(){if(si)return ai;si=1;var e=jt()("span").classList,t=e&&e.constructor&&e.constructor.prototype;return ai=t===Object.prototype?void 0:t}if(function(){if(ui)return ci;ui=1;var e=B(),t=di(),n=fi(),r=Cr(),o=cn(),i=vr(),a=me()("iterator"),s=r.values,u=function(e,n){if(e){if(e[a]!==s)try{o(e,a,s)}catch(t){e[a]=s}if(i(e,n,!0),t[n])for(var u in r)if(e[u]!==r[u])try{o(e,u,r[u])}catch(t){e[u]=r[u]}}};for(var l in t)u(e[l]&&e[l].prototype,l);u(n,"DOMTokenList")}(),"undefined"==typeof global){if("ActiveXObject"in window){console.error("抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器\n Sorry, wangEditor V5+ versions do not support IE browser.")}pi(),hi()}else global&&(null===(li=global.navigator)||void 0===li?void 0:li.userAgent.match("QQBrowser"))&&(pi(),hi());function pi(){"undefined"==typeof globalThis&&(window.globalThis=window)}function hi(){"undefined"==typeof AggregateError&&(window.AggregateError=function(e,t){var n=new Error(t);return n.errors=e,n})}var gi,vi,mi,yi,bi,Ei,Ci,wi,Di,Ai,Si,xi,Ti,Oi,Ni,Bi,ki={};function Fi(){if(vi)return gi;vi=1;var e=function(e){return e&&e.Math===Math&&e};return gi=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof b&&b)||e("object"==typeof gi&&gi)||function(){return this}()||Function("return this")()}function Pi(){return yi?mi:(yi=1,mi=function(e){try{return!!e()}catch(e){return!0}})}function Ii(){return Ei?bi:(Ei=1,bi=!Pi()(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))}function _i(){if(wi)return Ci;wi=1;var e=Ii(),t=Function.prototype,n=t.apply,r=t.call;return Ci="object"==typeof Reflect&&Reflect.apply||(e?r.bind(n):function(){return r.apply(n,arguments)}),Ci}function Ri(){if(Ai)return Di;Ai=1;var e=Ii(),t=Function.prototype,n=t.call,r=e&&t.bind.bind(n,n);return Di=e?r:function(e){return function(){return n.apply(e,arguments)}},Di}function Li(){if(xi)return Si;xi=1;var e=Ri(),t=e({}.toString),n=e("".slice);return Si=function(e){return n(t(e),8,-1)}}function Mi(){if(Oi)return Ti;Oi=1;var e=Li(),t=Ri();return Ti=function(n){if("Function"===e(n))return t(n)}}function ji(){if(Bi)return Ni;Bi=1;var e="object"==typeof document&&document.all;return Ni=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(e){return"function"==typeof e}}var Hi,zi,$i,Ui,Vi={};function Wi(){return zi?Hi:(zi=1,Hi=!Pi()(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))}function Gi(){if(Ui)return $i;Ui=1;var e=Ii(),t=Function.prototype.call;return $i=e?t.bind(t):function(){return t.apply(t,arguments)},$i}var qi,Ki,Yi,Xi,Zi,Ji,Qi,ea,ta,na,ra,oa,ia,aa,sa,ua,la,ca,da,fa,pa,ha,ga,va,ma,ya,ba,Ea,Ca,wa,Da,Aa,Sa,xa,Ta,Oa,Na,Ba={};function ka(){if(qi)return Ba;qi=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,n=t&&!e.call({1:2},1);return Ba.f=n?function(e){var n=t(this,e);return!!n&&n.enumerable}:e,Ba}function Fa(){return Yi?Ki:(Yi=1,Ki=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}})}function Pa(){if(Zi)return Xi;Zi=1;var e=Ri(),t=Pi(),n=Li(),r=Object,o=e("".split);return Xi=t(function(){return!r("z").propertyIsEnumerable(0)})?function(e){return"String"===n(e)?o(e,""):r(e)}:r}function Ia(){return Qi?Ji:(Qi=1,Ji=function(e){return null==e})}function _a(){if(ta)return ea;ta=1;var e=Ia(),t=TypeError;return ea=function(n){if(e(n))throw new t("Can't call method on "+n);return n}}function Ra(){if(ra)return na;ra=1;var e=Pa(),t=_a();return na=function(n){return e(t(n))}}function La(){if(ia)return oa;ia=1;var e=ji();return oa=function(t){return"object"==typeof t?null!==t:e(t)}}function Ma(){return sa?aa:(sa=1,aa={})}function ja(){if(la)return ua;la=1;var e=Ma(),t=Fi(),n=ji(),r=function(e){return n(e)?e:void 0};return ua=function(n,o){return arguments.length<2?r(e[n])||r(t[n]):e[n]&&e[n][o]||t[n]&&t[n][o]},ua}function Ha(){return da?ca:(da=1,ca=Ri()({}.isPrototypeOf))}function za(){if(pa)return fa;pa=1;var e=Fi().navigator,t=e&&e.userAgent;return fa=t?String(t):""}function $a(){if(ga)return ha;ga=1;var e,t,n=Fi(),r=za(),o=n.process,i=n.Deno,a=o&&o.versions||i&&i.version,s=a&&a.v8;return s&&(t=(e=s.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!t&&r&&(!(e=r.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=r.match(/Chrome\/(\d+)/))&&(t=+e[1]),ha=t}function Ua(){if(ma)return va;ma=1;var e=$a(),t=Pi(),n=Fi().String;return va=!!Object.getOwnPropertySymbols&&!t(function(){var t=Symbol("symbol detection");return!n(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41}),va}function Va(){return ba?ya:(ba=1,ya=Ua()&&!Symbol.sham&&"symbol"==typeof Symbol.iterator)}function Wa(){if(Ca)return Ea;Ca=1;var e=ja(),t=ji(),n=Ha(),r=Object;return Ea=Va()?function(e){return"symbol"==typeof e}:function(o){var i=e("Symbol");return t(i)&&n(i.prototype,r(o))}}function Ga(){if(Da)return wa;Da=1;var e=String;return wa=function(t){try{return e(t)}catch(e){return"Object"}}}function qa(){if(Sa)return Aa;Sa=1;var e=ji(),t=Ga(),n=TypeError;return Aa=function(r){if(e(r))return r;throw new n(t(r)+" is not a function")}}function Ka(){if(Ta)return xa;Ta=1;var e=qa(),t=Ia();return xa=function(n,r){var o=n[r];return t(o)?void 0:e(o)},xa}function Ya(){if(Na)return Oa;Na=1;var e=Gi(),t=ji(),n=La(),r=TypeError;return Oa=function(o,i){var a,s;if("string"===i&&t(a=o.toString)&&!n(s=e(a,o)))return s;if(t(a=o.valueOf)&&!n(s=e(a,o)))return s;if("string"!==i&&t(a=o.toString)&&!n(s=e(a,o)))return s;throw new r("Can't convert object to primitive value")},Oa}var Xa,Za,Ja,Qa,es,ts,ns,rs,os,is,as,ss,us,ls,cs,ds,fs,ps,hs,gs,vs,ms,ys,bs,Es,Cs,ws,Ds,As={exports:{}};function Ss(){return Za?Xa:(Za=1,Xa=!0)}function xs(){if(Qa)return Ja;Qa=1;var e=Fi(),t=Object.defineProperty;return Ja=function(n,r){try{t(e,n,{value:r,configurable:!0,writable:!0})}catch(t){e[n]=r}return r}}function Ts(){if(es)return As.exports;es=1;var e=Ss(),t=Fi(),n=xs(),r="__core-js_shared__",o=As.exports=t[r]||n(r,{});return(o.versions||(o.versions=[])).push({version:"3.44.0",mode:e?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.44.0/LICENSE",source:"https://github.com/zloirock/core-js"}),As.exports}function Os(){if(ns)return ts;ns=1;var e=Ts();return ts=function(t,n){return e[t]||(e[t]=n||{})}}function Ns(){if(os)return rs;os=1;var e=_a(),t=Object;return rs=function(n){return t(e(n))}}function Bs(){if(as)return is;as=1;var e=Ri(),t=Ns(),n=e({}.hasOwnProperty);return is=Object.hasOwn||function(e,r){return n(t(e),r)}}function ks(){if(us)return ss;us=1;var e=Ri(),t=0,n=Math.random(),r=e(1.1.toString);return ss=function(e){return"Symbol("+(void 0===e?"":e)+")_"+r(++t+n,36)}}function Fs(){if(cs)return ls;cs=1;var e=Fi(),t=Os(),n=Bs(),r=ks(),o=Ua(),i=Va(),a=e.Symbol,s=t("wks"),u=i?a.for||a:a&&a.withoutSetter||r;return ls=function(e){return n(s,e)||(s[e]=o&&n(a,e)?a[e]:u("Symbol."+e)),s[e]}}function Ps(){if(fs)return ds;fs=1;var e=Gi(),t=La(),n=Wa(),r=Ka(),o=Ya(),i=TypeError,a=Fs()("toPrimitive");return ds=function(s,u){if(!t(s)||n(s))return s;var l,c=r(s,a);if(c){if(void 0===u&&(u="default"),l=e(c,s,u),!t(l)||n(l))return l;throw new i("Can't convert object to primitive value")}return void 0===u&&(u="number"),o(s,u)}}function Is(){if(hs)return ps;hs=1;var e=Ps(),t=Wa();return ps=function(n){var r=e(n,"string");return t(r)?r:r+""}}function _s(){if(vs)return gs;vs=1;var e=Fi(),t=La(),n=e.document,r=t(n)&&t(n.createElement);return gs=function(e){return r?n.createElement(e):{}}}function Rs(){if(ys)return ms;ys=1;var e=Wi(),t=Pi(),n=_s();return ms=!e&&!t(function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a})}function Ls(){if(bs)return Vi;bs=1;var e=Wi(),t=Gi(),n=ka(),r=Fa(),o=Ra(),i=Is(),a=Bs(),s=Rs(),u=Object.getOwnPropertyDescriptor;return Vi.f=e?u:function(e,l){if(e=o(e),l=i(l),s)try{return u(e,l)}catch(e){}if(a(e,l))return r(!t(n.f,e,l),e[l])},Vi}function Ms(){if(Cs)return Es;Cs=1;var e=Pi(),t=ji(),n=/#|\.prototype\./,r=function(n,r){var u=i[o(n)];return u===s||u!==a&&(t(r)?e(r):!!r)},o=r.normalize=function(e){return String(e).replace(n,".").toLowerCase()},i=r.data={},a=r.NATIVE="N",s=r.POLYFILL="P";return Es=r}function js(){if(Ds)return ws;Ds=1;var e=Mi(),t=qa(),n=Ii(),r=e(e.bind);return ws=function(e,o){return t(e),void 0===o?e:n?r(e,o):function(){return e.apply(o,arguments)}},ws}var Hs,zs,$s,Us,Vs,Ws,Gs,qs,Ks,Ys,Xs,Zs,Js,Qs,eu,tu,nu,ru,ou,iu,au,su,uu,lu,cu,du,fu,pu,hu,gu,vu,mu,yu,bu,Eu,Cu,wu,Du,Au={};function Su(){return zs?Hs:(zs=1,Hs=Wi()&&Pi()(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}))}function xu(){if(Us)return $s;Us=1;var e=La(),t=String,n=TypeError;return $s=function(r){if(e(r))return r;throw new n(t(r)+" is not an object")}}function Tu(){if(Vs)return Au;Vs=1;var e=Wi(),t=Rs(),n=Su(),r=xu(),o=Is(),i=TypeError,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,u="enumerable",l="configurable",c="writable";return Au.f=e?n?function(e,t,n){if(r(e),t=o(t),r(n),"function"==typeof e&&"prototype"===t&&"value"in n&&c in n&&!n[c]){var i=s(e,t);i&&i[c]&&(e[t]=n.value,n={configurable:l in n?n[l]:i[l],enumerable:u in n?n[u]:i[u],writable:!1})}return a(e,t,n)}:a:function(e,n,s){if(r(e),n=o(n),r(s),t)try{return a(e,n,s)}catch(e){}if("get"in s||"set"in s)throw new i("Accessors not supported");return"value"in s&&(e[n]=s.value),e},Au}function Ou(){if(Gs)return Ws;Gs=1;var e=Wi(),t=Tu(),n=Fa();return Ws=e?function(e,r,o){return t.f(e,r,n(1,o))}:function(e,t,n){return e[t]=n,e}}function Nu(){if(Ks)return qs;Ks=1;var e=Fi(),t=_i(),n=Mi(),r=ji(),o=Ls().f,i=Ms(),a=Ma(),s=js(),u=Ou(),l=Bs(),c=function(e){var n=function(r,o,i){if(this instanceof n){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,o)}return new e(r,o,i)}return t(e,this,arguments)};return n.prototype=e.prototype,n};return qs=function(t,d){var f,p,h,g,v,m,y,b,E,C=t.target,w=t.global,D=t.stat,A=t.proto,S=w?e:D?e[C]:e[C]&&e[C].prototype,x=w?a:a[C]||u(a,C,{})[C],T=x.prototype;for(g in d)p=!(f=i(w?g:C+(D?".":"#")+g,t.forced))&&S&&l(S,g),m=x[g],p&&(y=t.dontCallGetSet?(E=o(S,g))&&E.value:S[g]),v=p&&y?y:d[g],(f||A||typeof m!=typeof v)&&(b=t.bind&&p?s(v,e):t.wrap&&p?c(v):A&&r(v)?n(v):v,(t.sham||v&&v.sham||m&&m.sham)&&u(b,"sham",!0),u(x,g,b),A&&(l(a,h=C+"Prototype")||u(a,h,{}),u(a[h],g,v),t.real&&T&&(f||!T[g])&&u(T,g,v)))}}function Bu(){if(Xs)return Ys;Xs=1;var e=Li();return Ys=Array.isArray||function(t){return"Array"===e(t)}}function ku(){if(Js)return Zs;Js=1;var e=Math.ceil,t=Math.floor;return Zs=Math.trunc||function(n){var r=+n;return(r>0?t:e)(r)},Zs}function Fu(){if(eu)return Qs;eu=1;var e=ku();return Qs=function(t){var n=+t;return n!=n||0===n?0:e(n)}}function Pu(){if(nu)return tu;nu=1;var e=Fu(),t=Math.min;return tu=function(n){var r=e(n);return r>0?t(r,9007199254740991):0}}function Iu(){if(ou)return ru;ou=1;var e=Pu();return ru=function(t){return e(t.length)}}function _u(){if(au)return iu;au=1;var e=TypeError;return iu=function(t){if(t>9007199254740991)throw e("Maximum allowed index exceeded");return t}}function Ru(){if(uu)return su;uu=1;var e=Wi(),t=Tu(),n=Fa();return su=function(r,o,i){e?t.f(r,o,n(0,i)):r[o]=i}}function Lu(){if(cu)return lu;cu=1;var e={};return e[Fs()("toStringTag")]="z",lu="[object z]"===String(e)}function Mu(){if(fu)return du;fu=1;var e=Lu(),t=ji(),n=Li(),r=Fs()("toStringTag"),o=Object,i="Arguments"===n(function(){return arguments}());return du=e?n:function(e){var a,s,u;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(s=function(e,t){try{return e[t]}catch(e){}}(a=o(e),r))?s:i?n(a):"Object"===(u=n(a))&&t(a.callee)?"Arguments":u},du}function ju(){if(hu)return pu;hu=1;var e=Ri(),t=ji(),n=Ts(),r=e(Function.toString);return t(n.inspectSource)||(n.inspectSource=function(e){return r(e)}),pu=n.inspectSource}function Hu(){if(vu)return gu;vu=1;var e=Ri(),t=Pi(),n=ji(),r=Mu(),o=ja(),i=ju(),a=function(){},s=o("Reflect","construct"),u=/^\s*(?:class|function)\b/,l=e(u.exec),c=!u.test(a),d=function(e){if(!n(e))return!1;try{return s(a,[],e),!0}catch(e){return!1}},f=function(e){if(!n(e))return!1;switch(r(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return c||!!l(u,i(e))}catch(e){return!0}};return f.sham=!0,gu=!s||t(function(){var e;return d(d.call)||!d(Object)||!d(function(){e=!0})||e})?f:d}function zu(){if(yu)return mu;yu=1;var e=Bu(),t=Hu(),n=La(),r=Fs()("species"),o=Array;return mu=function(i){var a;return e(i)&&(a=i.constructor,(t(a)&&(a===o||e(a.prototype))||n(a)&&null===(a=a[r]))&&(a=void 0)),void 0===a?o:a},mu}function $u(){if(Eu)return bu;Eu=1;var e=zu();return bu=function(t,n){return new(e(t))(0===n?0:n)}}function Uu(){if(wu)return Cu;wu=1;var e=Pi(),t=Fs(),n=$a(),r=t("species");return Cu=function(t){return n>=51||!e(function(){var e=[];return(e.constructor={})[r]=function(){return{foo:1}},1!==e[t](Boolean).foo})},Cu}var Vu,Wu,Gu={},qu={};function Ku(){if(Wu)return Vu;Wu=1;var e=Mu(),t=String;return Vu=function(n){if("Symbol"===e(n))throw new TypeError("Cannot convert a Symbol value to a string");return t(n)}}var Yu,Xu,Zu,Ju,Qu,el,tl,nl,rl,ol,il,al,sl,ul,ll,cl,dl,fl,pl,hl={};function gl(){if(Xu)return Yu;Xu=1;var e=Fu(),t=Math.max,n=Math.min;return Yu=function(r,o){var i=e(r);return i<0?t(i+o,0):n(i,o)},Yu}function vl(){if(Ju)return Zu;Ju=1;var e=Ra(),t=gl(),n=Iu(),r=function(r){return function(o,i,a){var s=e(o),u=n(s);if(0===u)return!r&&-1;var l,c=t(a,u);if(r&&i!=i){for(;u>c;)if((l=s[c++])!=l)return!0}else for(;u>c;c++)if((r||c in s)&&s[c]===i)return r||c||0;return!r&&-1}};return Zu={includes:r(!0),indexOf:r(!1)}}function ml(){return el?Qu:(el=1,Qu={})}function yl(){if(nl)return tl;nl=1;var e=Ri(),t=Bs(),n=Ra(),r=vl().indexOf,o=ml(),i=e([].push);return tl=function(e,a){var s,u=n(e),l=0,c=[];for(s in u)!t(o,s)&&t(u,s)&&i(c,s);for(;a.length>l;)t(u,s=a[l++])&&(~r(c,s)||i(c,s));return c},tl}function bl(){return ol?rl:(ol=1,rl=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function El(){if(al)return il;al=1;var e=yl(),t=bl();return il=Object.keys||function(n){return e(n,t)},il}function Cl(){if(sl)return hl;sl=1;var e=Wi(),t=Su(),n=Tu(),r=xu(),o=Ra(),i=El();return hl.f=e&&!t?Object.defineProperties:function(e,t){r(e);for(var a,s=o(t),u=i(t),l=u.length,c=0;l>c;)n.f(e,a=u[c++],s[a]);return e},hl}function wl(){return ll?ul:(ll=1,ul=ja()("document","documentElement"))}function Dl(){if(dl)return cl;dl=1;var e=Os(),t=ks(),n=e("keys");return cl=function(e){return n[e]||(n[e]=t(e))}}function Al(){if(pl)return fl;pl=1;var e,t=xu(),n=Cl(),r=bl(),o=ml(),i=wl(),a=_s(),s="prototype",u="script",l=Dl()("IE_PROTO"),c=function(){},d=function(e){return"<"+u+">"+e+"</"+u+">"},f=function(e){e.write(d("")),e.close();var t=e.parentWindow.Object;return e=null,t},p=function(){try{e=new ActiveXObject("htmlfile")}catch(e){}var t,n,o;p="undefined"!=typeof document?document.domain&&e?f(e):(n=a("iframe"),o="java"+u+":",n.style.display="none",i.appendChild(n),n.src=String(o),(t=n.contentWindow.document).open(),t.write(d("document.F=Object")),t.close(),t.F):f(e);for(var l=r.length;l--;)delete p[s][r[l]];return p()};return o[l]=!0,fl=Object.create||function(e,r){var o;return null!==e?(c[s]=t(e),o=new c,c[s]=null,o[l]=e):o=p(),void 0===r?o:n.f(o,r)},fl}var Sl,xl={};function Tl(){if(Sl)return xl;Sl=1;var e=yl(),t=bl().concat("length","prototype");return xl.f=Object.getOwnPropertyNames||function(n){return e(n,t)},xl}var Ol,Nl,Bl,kl={};function Fl(){return Nl?Ol:(Nl=1,Ol=Ri()([].slice))}function Pl(){if(Bl)return kl;Bl=1;var e=Li(),t=Ra(),n=Tl().f,r=Fl(),o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];return kl.f=function(i){return o&&"Window"===e(i)?function(e){try{return n(e)}catch(e){return r(o)}}(i):n(t(i))},kl}var Il,_l,Rl,Ll,Ml,jl={};function Hl(){return Il||(Il=1,jl.f=Object.getOwnPropertySymbols),jl}function zl(){if(Rl)return _l;Rl=1;var e=Ou();return _l=function(t,n,r,o){return o&&o.enumerable?t[n]=r:e(t,n,r),t}}function $l(){if(Ml)return Ll;Ml=1;var e=Tu();return Ll=function(t,n,r){return e.f(t,n,r)}}var Ul,Vl,Wl,Gl,ql,Kl,Yl,Xl,Zl,Jl,Ql,ec,tc,nc,rc,oc,ic={};function ac(){if(Ul)return ic;Ul=1;var e=Fs();return ic.f=e,ic}function sc(){if(Wl)return Vl;Wl=1;var e=Ma(),t=Bs(),n=ac(),r=Tu().f;return Vl=function(o){var i=e.Symbol||(e.Symbol={});t(i,o)||r(i,o,{value:n.f(o)})}}function uc(){if(ql)return Gl;ql=1;var e=Gi(),t=ja(),n=Fs(),r=zl();return Gl=function(){var o=t("Symbol"),i=o&&o.prototype,a=i&&i.valueOf,s=n("toPrimitive");i&&!i[s]&&r(i,s,function(t){return e(a,this)},{arity:1})}}function lc(){if(Yl)return Kl;Yl=1;var e=Lu(),t=Mu();return Kl=e?{}.toString:function(){return"[object "+t(this)+"]"}}function cc(){if(Zl)return Xl;Zl=1;var e=Lu(),t=Tu().f,n=Ou(),r=Bs(),o=lc(),i=Fs()("toStringTag");return Xl=function(a,s,u,l){var c=u?a:a&&a.prototype;c&&(r(c,i)||t(c,i,{configurable:!0,value:s}),l&&!e&&n(c,"toString",o))}}function dc(){if(Ql)return Jl;Ql=1;var e=Fi(),t=ji(),n=e.WeakMap;return Jl=t(n)&&/native code/.test(String(n))}function fc(){if(tc)return ec;tc=1;var e,t,n,r=dc(),o=Fi(),i=La(),a=Ou(),s=Bs(),u=Ts(),l=Dl(),c=ml(),d="Object already initialized",f=o.TypeError,p=o.WeakMap;if(r||u.state){var h=u.state||(u.state=new p);h.get=h.get,h.has=h.has,h.set=h.set,e=function(e,t){if(h.has(e))throw new f(d);return t.facade=e,h.set(e,t),t},t=function(e){return h.get(e)||{}},n=function(e){return h.has(e)}}else{var g=l("state");c[g]=!0,e=function(e,t){if(s(e,g))throw new f(d);return t.facade=e,a(e,g,t),t},t=function(e){return s(e,g)?e[g]:{}},n=function(e){return s(e,g)}}return ec={set:e,get:t,has:n,enforce:function(r){return n(r)?t(r):e(r,{})},getterFor:function(e){return function(n){var r;if(!i(n)||(r=t(n)).type!==e)throw new f("Incompatible receiver, "+e+" required");return r}}}}function pc(){if(rc)return nc;rc=1;var e=js(),t=Ri(),n=Pa(),r=Ns(),o=Iu(),i=$u(),a=t([].push),s=function(t){var s=1===t,u=2===t,l=3===t,c=4===t,d=6===t,f=7===t,p=5===t||d;return function(h,g,v,m){for(var y,b,E=r(h),C=n(E),w=o(C),D=e(g,v),A=0,S=m||i,x=s?S(h,w):u||f?S(h,0):void 0;w>A;A++)if((p||A in C)&&(b=D(y=C[A],A,E),t))if(s)x[A]=b;else if(b)switch(t){case 3:return!0;case 5:return y;case 6:return A;case 2:a(x,y)}else switch(t){case 4:return!1;case 7:a(x,y)}return d?-1:l||c?c:x}};return nc={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6),filterReject:s(7)}}var hc,gc,vc,mc={};function yc(){return gc?hc:(gc=1,hc=Ua()&&!!Symbol.for&&!!Symbol.keyFor)}var bc,Ec={};var Cc,wc,Dc,Ac={};function Sc(){if(wc)return Cc;wc=1;var e=Ri(),t=Bu(),n=ji(),r=Li(),o=Ku(),i=e([].push);return Cc=function(e){if(n(e))return e;if(t(e)){for(var a=e.length,s=[],u=0;u<a;u++){var l=e[u];"string"==typeof l?i(s,l):"number"!=typeof l&&"Number"!==r(l)&&"String"!==r(l)||i(s,o(l))}var c=s.length,d=!0;return function(e,n){if(d)return d=!1,n;if(t(this))return n;for(var r=0;r<c;r++)if(s[r]===e)return n}}},Cc}var xc,Tc,Oc={};function Nc(){return Tc||(Tc=1,function(){if(oc)return qu;oc=1;var e=Nu(),t=Fi(),n=Gi(),r=Ri(),o=Ss(),i=Wi(),a=Ua(),s=Pi(),u=Bs(),l=Ha(),c=xu(),d=Ra(),f=Is(),p=Ku(),h=Fa(),g=Al(),v=El(),m=Tl(),y=Pl(),b=Hl(),E=Ls(),C=Tu(),w=Cl(),D=ka(),A=zl(),S=$l(),x=Os(),T=Dl(),O=ml(),N=ks(),B=Fs(),k=ac(),F=sc(),P=uc(),I=cc(),_=fc(),R=pc().forEach,L=T("hidden"),M="Symbol",j="prototype",H=_.set,z=_.getterFor(M),$=Object[j],U=t.Symbol,V=U&&U[j],W=t.RangeError,G=t.TypeError,q=t.QObject,K=E.f,Y=C.f,X=y.f,Z=D.f,J=r([].push),Q=x("symbols"),ee=x("op-symbols"),te=x("wks"),ne=!q||!q[j]||!q[j].findChild,re=function(e,t,n){var r=K($,t);r&&delete $[t],Y(e,t,n),r&&e!==$&&Y($,t,r)},oe=i&&s(function(){return 7!==g(Y({},"a",{get:function(){return Y(this,"a",{value:7}).a}})).a})?re:Y,ie=function(e,t){var n=Q[e]=g(V);return H(n,{type:M,tag:e,description:t}),i||(n.description=t),n},ae=function(e,t,n){e===$&&ae(ee,t,n),c(e);var r=f(t);return c(n),u(Q,r)?(n.enumerable?(u(e,L)&&e[L][r]&&(e[L][r]=!1),n=g(n,{enumerable:h(0,!1)})):(u(e,L)||Y(e,L,h(1,g(null))),e[L][r]=!0),oe(e,r,n)):Y(e,r,n)},se=function(e,t){c(e);var r=d(t),o=v(r).concat(de(r));return R(o,function(t){i&&!n(ue,r,t)||ae(e,t,r[t])}),e},ue=function(e){var t=f(e),r=n(Z,this,t);return!(this===$&&u(Q,t)&&!u(ee,t))&&(!(r||!u(this,t)||!u(Q,t)||u(this,L)&&this[L][t])||r)},le=function(e,t){var n=d(e),r=f(t);if(n!==$||!u(Q,r)||u(ee,r)){var o=K(n,r);return!o||!u(Q,r)||u(n,L)&&n[L][r]||(o.enumerable=!0),o}},ce=function(e){var t=X(d(e)),n=[];return R(t,function(e){u(Q,e)||u(O,e)||J(n,e)}),n},de=function(e){var t=e===$,n=X(t?ee:d(e)),r=[];return R(n,function(e){!u(Q,e)||t&&!u($,e)||J(r,Q[e])}),r};a||(U=function(){if(l(V,this))throw new G("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?p(arguments[0]):void 0,r=N(e),o=function(e){var i=void 0===this?t:this;i===$&&n(o,ee,e),u(i,L)&&u(i[L],r)&&(i[L][r]=!1);var a=h(1,e);try{oe(i,r,a)}catch(e){if(!(e instanceof W))throw e;re(i,r,a)}};return i&&ne&&oe($,r,{configurable:!0,set:o}),ie(r,e)},A(V=U[j],"toString",function(){return z(this).tag}),A(U,"withoutSetter",function(e){return ie(N(e),e)}),D.f=ue,C.f=ae,w.f=se,E.f=le,m.f=y.f=ce,b.f=de,k.f=function(e){return ie(B(e),e)},i&&(S(V,"description",{configurable:!0,get:function(){return z(this).description}}),o||A($,"propertyIsEnumerable",ue,{unsafe:!0}))),e({global:!0,constructor:!0,wrap:!0,forced:!a,sham:!a},{Symbol:U}),R(v(te),function(e){F(e)}),e({target:M,stat:!0,forced:!a},{useSetter:function(){ne=!0},useSimple:function(){ne=!1}}),e({target:"Object",stat:!0,forced:!a,sham:!i},{create:function(e,t){return void 0===t?g(e):se(g(e),t)},defineProperty:ae,defineProperties:se,getOwnPropertyDescriptor:le}),e({target:"Object",stat:!0,forced:!a},{getOwnPropertyNames:ce}),P(),I(U,M),O[L]=!0}(),function(){if(vc)return mc;vc=1;var e=Nu(),t=ja(),n=Bs(),r=Ku(),o=Os(),i=yc(),a=o("string-to-symbol-registry"),s=o("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!i},{for:function(e){var o=r(e);if(n(a,o))return a[o];var i=t("Symbol")(o);return a[o]=i,s[i]=o,i}})}(),function(){if(bc)return Ec;bc=1;var e=Nu(),t=Bs(),n=Wa(),r=Ga(),o=Os(),i=yc(),a=o("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!i},{keyFor:function(e){if(!n(e))throw new TypeError(r(e)+" is not a symbol");if(t(a,e))return a[e]}})}(),function(){if(Dc)return Ac;Dc=1;var e=Nu(),t=ja(),n=_i(),r=Gi(),o=Ri(),i=Pi(),a=ji(),s=Wa(),u=Fl(),l=Sc(),c=Ua(),d=String,f=t("JSON","stringify"),p=o(/./.exec),h=o("".charAt),g=o("".charCodeAt),v=o("".replace),m=o(1.1.toString),y=/[\uD800-\uDFFF]/g,b=/^[\uD800-\uDBFF]$/,E=/^[\uDC00-\uDFFF]$/,C=!c||i(function(){var e=t("Symbol")("stringify detection");return"[null]"!==f([e])||"{}"!==f({a:e})||"{}"!==f(Object(e))}),w=i(function(){return'"\\udf06\\ud834"'!==f("\udf06\ud834")||'"\\udead"'!==f("\udead")}),D=function(e,t){var o=u(arguments),i=l(t);if(a(i)||void 0!==e&&!s(e))return o[1]=function(e,t){if(a(i)&&(t=r(i,this,d(e),t)),!s(t))return t},n(f,null,o)},A=function(e,t,n){var r=h(n,t-1),o=h(n,t+1);return p(b,e)&&!p(E,o)||p(E,e)&&!p(b,r)?"\\u"+m(g(e,0),16):e};f&&e({target:"JSON",stat:!0,arity:3,forced:C||w},{stringify:function(e,t,r){var o=u(arguments),i=n(C?D:f,null,o);return w&&"string"==typeof i?v(i,y,A):i}})}(),function(){if(xc)return Oc;xc=1;var e=Nu(),t=Ua(),n=Pi(),r=Hl(),o=Ns();e({target:"Object",stat:!0,forced:!t||n(function(){r.f(1)})},{getOwnPropertySymbols:function(e){var t=r.f;return t?t(o(e)):[]}})}()),Gu}var Bc,kc={};function Fc(){return Bc||(Bc=1,sc()("asyncDispose")),kc}var Pc;var Ic,_c={};function Rc(){return Ic||(Ic=1,sc()("dispose")),_c}var Lc;var Mc;var jc,Hc={};function zc(){return jc||(jc=1,sc()("iterator")),Hc}var $c;var Uc;var Vc;var Wc;var Gc;var qc;var Kc,Yc={};var Xc,Zc={};var Jc;var Qc,ed,td,nd={};function rd(){return td?ed:(td=1,function(){if(Du)return ki;Du=1;var e=Nu(),t=Pi(),n=Bu(),r=La(),o=Ns(),i=Iu(),a=_u(),s=Ru(),u=$u(),l=Uu(),c=Fs(),d=$a(),f=c("isConcatSpreadable"),p=d>=51||!t(function(){var e=[];return e[f]=!1,e.concat()[0]!==e}),h=function(e){if(!r(e))return!1;var t=e[f];return void 0!==t?!!t:n(e)};e({target:"Array",proto:!0,arity:1,forced:!p||!l("concat")},{concat:function(e){var t,n,r,l,c,d=o(this),f=u(d,0),p=0;for(t=-1,r=arguments.length;t<r;t++)if(h(c=-1===t?d:arguments[t]))for(l=i(c),a(p+l),n=0;n<l;n++,p++)n in c&&s(f,p,c[n]);else a(p+1),s(f,p++,c);return f.length=p,f}})}(),Nc(),Fc(),Pc||(Pc=1,sc()("asyncIterator")),Rc(),Lc||(Lc=1,sc()("hasInstance")),Mc||(Mc=1,sc()("isConcatSpreadable")),zc(),$c||($c=1,sc()("match")),Uc||(Uc=1,sc()("matchAll")),Vc||(Vc=1,sc()("replace")),Wc||(Wc=1,sc()("search")),Gc||(Gc=1,sc()("species")),qc||(qc=1,sc()("split")),function(){if(Kc)return Yc;Kc=1;var e=sc(),t=uc();e("toPrimitive"),t()}(),function(){if(Xc)return Zc;Xc=1;var e=ja(),t=sc(),n=cc();t("toStringTag"),n(e("Symbol"),"Symbol")}(),Jc||(Jc=1,sc()("unscopables")),function(){if(Qc)return nd;Qc=1;var e=Fi();cc()(e.JSON,"JSON",!0)}(),ed=Ma().Symbol)}var od,id,ad,sd,ud,ld,cd,dd,fd,pd,hd,gd,vd,md,yd,bd,Ed,Cd,wd,Dd,Ad,Sd,xd,Td,Od,Nd,Bd,kd,Fd,Pd,Id,_d,Rd,Ld={};function Md(){return id?od:(id=1,od=function(){})}function jd(){return sd?ad:(sd=1,ad={})}function Hd(){if(ld)return ud;ld=1;var e=Wi(),t=Bs(),n=Function.prototype,r=e&&Object.getOwnPropertyDescriptor,o=t(n,"name"),i=o&&"something"===function(){}.name,a=o&&(!e||e&&r(n,"name").configurable);return ud={EXISTS:o,PROPER:i,CONFIGURABLE:a}}function zd(){return dd||(dd=1,cd=!Pi()(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),cd}function $d(){if(pd)return fd;pd=1;var e=Bs(),t=ji(),n=Ns(),r=Dl(),o=zd(),i=r("IE_PROTO"),a=Object,s=a.prototype;return fd=o?a.getPrototypeOf:function(r){var o=n(r);if(e(o,i))return o[i];var u=o.constructor;return t(u)&&o instanceof u?u.prototype:o instanceof a?s:null},fd}function Ud(){if(gd)return hd;gd=1;var e,t,n,r=Pi(),o=ji(),i=La(),a=Al(),s=$d(),u=zl(),l=Fs(),c=Ss(),d=l("iterator"),f=!1;return[].keys&&("next"in(n=[].keys())?(t=s(s(n)))!==Object.prototype&&(e=t):f=!0),!i(e)||r(function(){var t={};return e[d].call(t)!==t})?e={}:c&&(e=a(e)),o(e[d])||u(e,d,function(){return this}),hd={IteratorPrototype:e,BUGGY_SAFARI_ITERATORS:f}}function Vd(){if(md)return vd;md=1;var e=Ud().IteratorPrototype,t=Al(),n=Fa(),r=cc(),o=jd(),i=function(){return this};return vd=function(a,s,u,l){var c=s+" Iterator";return a.prototype=t(e,{next:n(+!l,u)}),r(a,c,!1,!0),o[c]=i,a}}function Wd(){if(bd)return yd;bd=1;var e=Ri(),t=qa();return yd=function(n,r,o){try{return e(t(Object.getOwnPropertyDescriptor(n,r)[o]))}catch(e){}}}function Gd(){if(Cd)return Ed;Cd=1;var e=La();return Ed=function(t){return e(t)||null===t}}function qd(){if(Dd)return wd;Dd=1;var e=Gd(),t=String,n=TypeError;return wd=function(r){if(e(r))return r;throw new n("Can't set "+t(r)+" as a prototype")}}function Kd(){if(Sd)return Ad;Sd=1;var e=Wd(),t=La(),n=_a(),r=qd();return Ad=Object.setPrototypeOf||("__proto__"in{}?function(){var o,i=!1,a={};try{(o=e(Object.prototype,"__proto__","set"))(a,[]),i=a instanceof Array}catch(e){}return function(e,a){return n(e),r(a),t(e)?(i?o(e,a):e.__proto__=a,e):e}}():void 0),Ad}function Yd(){if(Td)return xd;Td=1;var e=Nu(),t=Gi(),n=Ss(),r=Hd(),o=ji(),i=Vd(),a=$d(),s=Kd(),u=cc(),l=Ou(),c=zl(),d=Fs(),f=jd(),p=Ud(),h=r.PROPER,g=r.CONFIGURABLE,v=p.IteratorPrototype,m=p.BUGGY_SAFARI_ITERATORS,y=d("iterator"),b="keys",E="values",C="entries",w=function(){return this};return xd=function(r,d,p,D,A,S,x){i(p,d,D);var T,O,N,B=function(e){if(e===A&&_)return _;if(!m&&e&&e in P)return P[e];switch(e){case b:case E:case C:return function(){return new p(this,e)}}return function(){return new p(this)}},k=d+" Iterator",F=!1,P=r.prototype,I=P[y]||P["@@iterator"]||A&&P[A],_=!m&&I||B(A),R="Array"===d&&P.entries||I;if(R&&(T=a(R.call(new r)))!==Object.prototype&&T.next&&(n||a(T)===v||(s?s(T,v):o(T[y])||c(T,y,w)),u(T,k,!0,!0),n&&(f[k]=w)),h&&A===E&&I&&I.name!==E&&(!n&&g?l(P,"name",E):(F=!0,_=function(){return t(I,this)})),A)if(O={values:B(E),keys:S?_:B(b),entries:B(C)},x)for(N in O)(m||F||!(N in P))&&c(P,N,O[N]);else e({target:d,proto:!0,forced:m||F},O);return n&&!x||P[y]===_||c(P,y,_,{name:A}),f[d]=_,O}}function Xd(){return Nd?Od:(Nd=1,Od=function(e,t){return{value:e,done:t}})}function Zd(){if(kd)return Bd;kd=1;var e=Ra(),t=Md(),n=jd(),r=fc(),o=Tu().f,i=Yd(),a=Xd(),s=Ss(),u=Wi(),l="Array Iterator",c=r.set,d=r.getterFor(l);Bd=i(Array,"Array",function(t,n){c(this,{type:l,target:e(t),index:0,kind:n})},function(){var e=d(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,a(void 0,!0);switch(e.kind){case"keys":return a(n,!1);case"values":return a(t[n],!1)}return a([n,t[n]],!1)},"values");var f=n.Arguments=n.Array;if(t("keys"),t("values"),t("entries"),!s&&u&&"values"!==f.name)try{o(f,"name",{value:"values"})}catch(e){}return Bd}function Jd(){return Pd?Fd:(Pd=1,Fd={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 Qd(){if(Id)return Ld;Id=1,Zd();var e=Jd(),t=Fi(),n=cc(),r=jd();for(var o in e)n(t[o],o),r[o]=r.Array;return Ld}function ef(){if(Rd)return _d;Rd=1;var e=rd();return Qd(),_d=e}var tf,nf={};var rf;var of;var af,sf,uf;function lf(){if(uf)return sf;uf=1;var e=ef();return function(){if(tf)return nf;tf=1;var e=Fs(),t=Tu().f,n=e("metadata"),r=Function.prototype;void 0===r[n]&&t(r,n,{value:null})}(),rf||(rf=1,Fc()),of||(of=1,Rc()),af||(af=1,sc()("metadata")),sf=e}var cf,df,ff;function pf(){if(df)return cf;df=1;var e=ja(),t=Ri(),n=e("Symbol"),r=n.keyFor,o=t(n.prototype.valueOf);return cf=n.isRegisteredSymbol||function(e){try{return void 0!==r(o(e))}catch(e){return!1}}}var hf,gf,vf;function mf(){if(gf)return hf;gf=1;for(var e=Os(),t=ja(),n=Ri(),r=Wa(),o=Fs(),i=t("Symbol"),a=i.isWellKnownSymbol,s=t("Object","getOwnPropertyNames"),u=n(i.prototype.valueOf),l=e("wks"),c=0,d=s(i),f=d.length;c<f;c++)try{var p=d[c];r(i[p])&&o(p)}catch(e){}return hf=function(e){if(a&&a(e))return!0;try{for(var t=u(e),n=0,r=s(l),o=r.length;n<o;n++)if(l[r[n]]==t)return!0}catch(e){}return!1},hf}var yf;var bf;var Ef;var Cf;var wf;var Df;var Af;var Sf,xf,Tf,Of,Nf;function Bf(){if(Tf)return xf;Tf=1;var e=lf();return ff||(ff=1,Nu()({target:"Symbol",stat:!0},{isRegisteredSymbol:pf()})),vf||(vf=1,Nu()({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:mf()})),yf||(yf=1,sc()("customMatcher")),bf||(bf=1,sc()("observable")),Ef||(Ef=1,Nu()({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:pf()})),Cf||(Cf=1,Nu()({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:mf()})),wf||(wf=1,sc()("matcher")),Df||(Df=1,sc()("metadataKey")),Af||(Af=1,sc()("patternMatch")),Sf||(Sf=1,sc()("replaceAll")),xf=e}function kf(){return Nf?Of:(Nf=1,Of=Bf())}var Ff,Pf,If,_f,Rf,Lf,Mf,jf,Hf,zf,$f,Uf,Vf,Wf=E(kf()),Gf={};function qf(){if(Pf)return Ff;Pf=1;var e=Ri(),t=Fu(),n=Ku(),r=_a(),o=e("".charAt),i=e("".charCodeAt),a=e("".slice),s=function(e){return function(s,u){var l,c,d=n(r(s)),f=t(u),p=d.length;return f<0||f>=p?e?"":void 0:(l=i(d,f))<55296||l>56319||f+1===p||(c=i(d,f+1))<56320||c>57343?e?o(d,f):l:e?a(d,f,f+2):c-56320+(l-55296<<10)+65536}};return Ff={codeAt:s(!1),charAt:s(!0)}}function Kf(){return Rf?_f:(Rf=1,Zd(),function(){if(If)return Gf;If=1;var e=qf().charAt,t=Ku(),n=fc(),r=Yd(),o=Xd(),i="String Iterator",a=n.set,s=n.getterFor(i);r(String,"String",function(e){a(this,{type:i,string:t(e),index:0})},function(){var t,n=s(this),r=n.string,i=n.index;return i>=r.length?o(void 0,!0):(t=e(r,i),n.index+=t.length,o(t,!1))})}(),zc(),_f=ac().f("iterator"))}function Yf(){if(Mf)return Lf;Mf=1;var e=Kf();return Qd(),Lf=e}function Xf(){return Hf?jf:(Hf=1,jf=Yf())}function Zf(){return $f?zf:($f=1,zf=Xf())}function Jf(){return Vf?Uf:(Vf=1,Uf=Zf())}var Qf=E(Jf());function ep(e){return ep="function"==typeof Wf&&"symbol"==typeof Qf?function(e){return typeof e}:function(e){return e&&"function"==typeof Wf&&e.constructor===Wf&&e!==Wf.prototype?"symbol":typeof e},ep(e)}var tp,np={};if(function(){if(tp)return np;tp=1;var e=pr(),t=w(),n=N(),r=vn().f,o=xe();e({target:"Object",stat:!0,forced:!o||t(function(){r(1)}),sham:!o},{getOwnPropertyDescriptor:function(e,t){return r(n(e),t)}})}(),"object"===("undefined"==typeof global?"undefined":ep(global))){var rp=Object.getOwnPropertyDescriptor(global,"window");global.window&&!rp.set||(global.window=global,global.requestAnimationFrame=function(){},global.navigator={userAgent:""},global.location={hostname:"0.0.0.0",port:0,protocol:"http:"},global.btoa=function(){},global.crypto={getRandomValues:function(e){return nodeCrypto.randomFillSync(e)}}),null!=global.document&&null==global.document.getElementsByTagName&&(global.document.getElementsByTagName=function(){return[]})}var op,ip={},ap={};function sp(){if(op)return ap;
2
2
  /*!
3
3
  * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
4
4
  *
5
5
  * Copyright (c) 2014-2017, Jon Schlinkert.
6
6
  * Released under the MIT License.
7
7
  */
8
- function t(t){return"[object Object]"===Object.prototype.toString.call(t)}return op=1,Object.defineProperty(up,"__esModule",{value:!0}),up.isPlainObject=function(e){var n,r;return!1!==t(e)&&(void 0===(n=e.constructor)||!1!==t(r=n.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))},up}var sp,cp,lp,fp={exports:{}},dp={};function pp(){if(sp)return dp;function t(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+t+(n.length?" "+n.map(function(t){return"'"+t+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function e(t){return!!t&&!!t[W]}function n(t){var e;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var n=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===K}(t)||Array.isArray(t)||!!t[G]||!!(null===(e=t.constructor)||void 0===e?void 0:e[G])||c(t)||l(t))}function r(t,e,n){void 0===n&&(n=!1),0===o(t)?(n?Object.keys:Y)(t).forEach(function(r){n&&"symbol"==typeof r||e(r,t[r],t)}):t.forEach(function(n,r){return e(r,n,t)})}function o(t){var e=t[W];return e?e.t>3?e.t-4:e.t:Array.isArray(t)?1:c(t)?2:l(t)?3:0}function i(t,e){return 2===o(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function u(t,e){return 2===o(t)?t.get(e):t[e]}function a(t,e,n){var r=o(t);2===r?t.set(e,n):3===r?t.add(n):t[e]=n}function s(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function c(t){return H&&t instanceof Map}function l(t){return $&&t instanceof Set}function f(t){return t.i||t.u}function d(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=X(t);delete e[W];for(var n=Y(e),r=0;r<n.length;r++){var o=n[r],i=e[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[o]})}return Object.create(Object.getPrototypeOf(t),e)}function p(t,i){return void 0===i&&(i=!1),v(t)||e(t)||!n(t)||(o(t)>1&&(t.set=t.add=t.clear=t.delete=h),Object.freeze(t),i&&r(t,function(t,e){return p(e,!0)},!0)),t}function h(){t(2)}function v(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function g(e){var n=J[e];return n||t(18,e),n}function y(t,e){J[t]||(J[t]=e)}function m(){return M}function b(t,e){e&&(g("Patches"),t.o=[],t.v=[],t.s=e)}function E(t){w(t),t.p.forEach(C),t.p=null}function w(t){t===M&&(M=t.l)}function S(t){return M={p:[],l:M,h:t,_:!0,m:0}}function C(t){var e=t[W];0===e.t||1===e.t?e.j():e.O=!0}function D(e,r){r.m=r.p.length;var o=r.p[0],i=void 0!==e&&e!==o;return r.h.S||g("ES5").P(r,e,i),i?(o[W].g&&(E(r),t(4)),n(e)&&(e=O(r,e),r.l||x(r,e)),r.o&&g("Patches").M(o[W].u,e,r.o,r.v)):e=O(r,o,[]),E(r),r.o&&r.s(r.o,r.v),e!==V?e:void 0}function O(t,e,n){if(v(e))return e;var o=e[W];if(!o)return r(e,function(r,i){return A(t,o,e,r,i,n)},!0),e;if(o.A!==t)return e;if(!o.g)return x(t,o.u,!0),o.u;if(!o.R){o.R=!0,o.A.m--;var i=4===o.t||5===o.t?o.i=d(o.k):o.i,u=i,a=!1;3===o.t&&(u=new Set(i),i.clear(),a=!0),r(u,function(e,r){return A(t,o,i,e,r,n,a)}),x(t,i,!1),n&&t.o&&g("Patches").F(o,n,t.o,t.v)}return o.i}function A(t,r,o,u,s,c,l){if(e(s)){var f=O(t,s,c&&r&&3!==r.t&&!i(r.N,u)?c.concat(u):void 0);if(a(o,u,f),!e(f))return;t._=!1}else l&&o.add(s);if(n(s)&&!v(s)){if(!t.h.D&&t.m<1)return;O(t,s),r&&r.A.l||x(t,s)}}function x(t,e,n){void 0===n&&(n=!1),!t.l&&t.h.D&&t._&&p(e,n)}function T(t,e){var n=t[W];return(n?f(n):t)[e]}function N(t,e){if(e in t)for(var n=Object.getPrototypeOf(t);n;){var r=Object.getOwnPropertyDescriptor(n,e);if(r)return r;n=Object.getPrototypeOf(n)}}function P(t){t.g||(t.g=!0,t.l&&P(t.l))}function k(t){t.i||(t.i=d(t.u))}function I(t,e,n){var r=c(e)?g("MapSet").K(e,n):l(e)?g("MapSet").$(e,n):t.S?function(t,e){var n=Array.isArray(t),r={t:n?1:0,A:e?e.A:m(),g:!1,R:!1,N:{},l:e,u:t,k:null,i:null,j:null,C:!1},o=r,i=Z;n&&(o=[r],i=Q);var u=Proxy.revocable(o,i),a=u.revoke,s=u.proxy;return r.k=s,r.j=a,s}(e,n):g("ES5").I(e,n);return(n?n.A:m()).p.push(r),r}function B(i){return e(i)||t(22,i),function t(e){if(!n(e))return e;var i,s=e[W],c=o(e);if(s){if(!s.g&&(s.t<4||!g("ES5").J(s)))return s.u;s.R=!0,i=F(e,c),s.R=!1}else i=F(e,c);return r(i,function(e,n){s&&u(s.u,e)===n||a(i,e,t(n))}),3===c?new Set(i):i}(i)}function F(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return d(t)}function R(){function t(t,e){var n=a[t];return n?n.enumerable=e:a[t]=n={configurable:!0,enumerable:e,get:function(){return Z.get(this[W],t)},set:function(e){Z.set(this[W],t,e)}},n}function n(t){for(var e=t.length-1;e>=0;e--){var n=t[e][W];if(!n.g)switch(n.t){case 5:u(n)&&P(n);break;case 4:o(n)&&P(n)}}}function o(t){for(var e=t.u,n=t.k,r=Y(n),o=r.length-1;o>=0;o--){var u=r[o];if(u!==W){var a=e[u];if(void 0===a&&!i(e,u))return!0;var c=n[u],l=c&&c[W];if(l?l.u!==a:!s(c,a))return!0}}var f=!!e[W];return r.length!==Y(e).length+(f?0:1)}function u(t){var e=t.k;if(e.length!==t.u.length)return!0;var n=Object.getOwnPropertyDescriptor(e,e.length-1);if(n&&!n.get)return!0;for(var r=0;r<e.length;r++)if(!e.hasOwnProperty(r))return!0;return!1}var a={};y("ES5",{I:function(e,n){var r=Array.isArray(e),o=function(e,n){if(e){for(var r=Array(n.length),o=0;o<n.length;o++)Object.defineProperty(r,""+o,t(o,!0));return r}var i=X(n);delete i[W];for(var u=Y(i),a=0;a<u.length;a++){var s=u[a];i[s]=t(s,e||!!i[s].enumerable)}return Object.create(Object.getPrototypeOf(n),i)}(r,e),i={t:r?5:4,A:n?n.A:m(),g:!1,R:!1,N:{},l:n,u:e,k:o,i:null,O:!1,C:!1};return Object.defineProperty(o,W,{value:i,writable:!0}),o},P:function(t,o,a){a?e(o)&&o[W].A===t&&n(t.p):(t.o&&function t(e){if(e&&"object"==typeof e){var n=e[W];if(n){var o=n.u,a=n.k,s=n.N,c=n.t;if(4===c)r(a,function(e){e!==W&&(void 0!==o[e]||i(o,e)?s[e]||t(a[e]):(s[e]=!0,P(n)))}),r(o,function(t){void 0!==a[t]||i(a,t)||(s[t]=!1,P(n))});else if(5===c){if(u(n)&&(P(n),s.length=!0),a.length<o.length)for(var l=a.length;l<o.length;l++)s[l]=!1;else for(var f=o.length;f<a.length;f++)s[f]=!0;for(var d=Math.min(a.length,o.length),p=0;p<d;p++)a.hasOwnProperty(p)||(s[p]=!0),void 0===s[p]&&t(a[p])}}}}(t.p[0]),n(t.p))},J:function(t){return 4===t.t?o(t):u(t)}})}function _(){function a(t){if(!n(t))return t;if(Array.isArray(t))return t.map(a);if(c(t))return new Map(Array.from(t.entries()).map(function(t){return[t[0],a(t[1])]}));if(l(t))return new Set(Array.from(t).map(a));var e=Object.create(Object.getPrototypeOf(t));for(var r in t)e[r]=a(t[r]);return i(t,G)&&(e[G]=t[G]),e}function s(t){return e(t)?a(t):t}var f="add";y("Patches",{W:function(e,n){return n.forEach(function(n){for(var r=n.path,i=n.op,s=e,c=0;c<r.length-1;c++){var l=o(s),d=r[c];"string"!=typeof d&&"number"!=typeof d&&(d=""+d),0!==l&&1!==l||"__proto__"!==d&&"constructor"!==d||t(24),"function"==typeof s&&"prototype"===d&&t(24),"object"!=typeof(s=u(s,d))&&t(15,r.join("/"))}var p=o(s),h=a(n.value),v=r[r.length-1];switch(i){case"replace":switch(p){case 2:return s.set(v,h);case 3:t(16);default:return s[v]=h}case f:switch(p){case 1:return"-"===v?s.push(h):s.splice(v,0,h);case 2:return s.set(v,h);case 3:return s.add(h);default:return s[v]=h}case"remove":switch(p){case 1:return s.splice(v,1);case 2:return s.delete(v);case 3:return s.delete(n.value);default:return delete s[v]}default:t(17,i)}}),e},F:function(t,e,n,o){switch(t.t){case 0:case 4:case 2:return function(t,e,n,o){var a=t.u,c=t.i;r(t.N,function(t,r){var l=u(a,t),d=u(c,t),p=r?i(a,t)?"replace":f:"remove";if(l!==d||"replace"!==p){var h=e.concat(t);n.push("remove"===p?{op:p,path:h}:{op:p,path:h,value:d}),o.push(p===f?{op:"remove",path:h}:"remove"===p?{op:f,path:h,value:s(l)}:{op:"replace",path:h,value:s(l)})}})}(t,e,n,o);case 5:case 1:return function(t,e,n,r){var o=t.u,i=t.N,u=t.i;if(u.length<o.length){var a=[u,o];o=a[0],u=a[1];var c=[r,n];n=c[0],r=c[1]}for(var l=0;l<o.length;l++)if(i[l]&&u[l]!==o[l]){var d=e.concat([l]);n.push({op:"replace",path:d,value:s(u[l])}),r.push({op:"replace",path:d,value:s(o[l])})}for(var p=o.length;p<u.length;p++){var h=e.concat([p]);n.push({op:f,path:h,value:s(u[p])})}o.length<u.length&&r.push({op:"replace",path:e.concat(["length"]),value:o.length})}(t,e,n,o);case 3:return function(t,e,n,r){var o=t.u,i=t.i,u=0;o.forEach(function(t){if(!i.has(t)){var o=e.concat([u]);n.push({op:"remove",path:o,value:t}),r.unshift({op:f,path:o,value:t})}u++}),u=0,i.forEach(function(t){if(!o.has(t)){var i=e.concat([u]);n.push({op:f,path:i,value:t}),r.unshift({op:"remove",path:i,value:t})}u++})}(t,e,n,o)}},M:function(t,e,n,r){n.push({op:"replace",path:[],value:e===V?void 0:e}),r.push({op:"replace",path:[],value:t})}})}function j(){function e(t,e){function n(){this.constructor=t}a(t,e),t.prototype=(n.prototype=e.prototype,new n)}function o(t){t.i||(t.N=new Map,t.i=new Map(t.u))}function i(t){t.i||(t.i=new Set,t.u.forEach(function(e){if(n(e)){var r=I(t.A.h,e,t);t.p.set(e,r),t.i.add(r)}else t.i.add(e)}))}function u(e){e.O&&t(3,JSON.stringify(f(e)))}var a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},s=function(){function t(t,e){return this[W]={t:2,l:e,A:e?e.A:m(),g:!1,R:!1,i:void 0,N:void 0,u:t,k:this,C:!1,O:!1},this}e(t,Map);var i=t.prototype;return Object.defineProperty(i,"size",{get:function(){return f(this[W]).size}}),i.has=function(t){return f(this[W]).has(t)},i.set=function(t,e){var n=this[W];return u(n),f(n).has(t)&&f(n).get(t)===e||(o(n),P(n),n.N.set(t,!0),n.i.set(t,e),n.N.set(t,!0)),this},i.delete=function(t){if(!this.has(t))return!1;var e=this[W];return u(e),o(e),P(e),e.u.has(t)?e.N.set(t,!1):e.N.delete(t),e.i.delete(t),!0},i.clear=function(){var t=this[W];u(t),f(t).size&&(o(t),P(t),t.N=new Map,r(t.u,function(e){t.N.set(e,!1)}),t.i.clear())},i.forEach=function(t,e){var n=this;f(this[W]).forEach(function(r,o){t.call(e,n.get(o),o,n)})},i.get=function(t){var e=this[W];u(e);var r=f(e).get(t);if(e.R||!n(r))return r;if(r!==e.u.get(t))return r;var i=I(e.A.h,r,e);return o(e),e.i.set(t,i),i},i.keys=function(){return f(this[W]).keys()},i.values=function(){var t,e=this,n=this.keys();return(t={})[q]=function(){return e.values()},t.next=function(){var t=n.next();return t.done?t:{done:!1,value:e.get(t.value)}},t},i.entries=function(){var t,e=this,n=this.keys();return(t={})[q]=function(){return e.entries()},t.next=function(){var t=n.next();if(t.done)return t;var r=e.get(t.value);return{done:!1,value:[t.value,r]}},t},i[q]=function(){return this.entries()},t}(),c=function(){function t(t,e){return this[W]={t:3,l:e,A:e?e.A:m(),g:!1,R:!1,i:void 0,u:t,k:this,p:new Map,O:!1,C:!1},this}e(t,Set);var n=t.prototype;return Object.defineProperty(n,"size",{get:function(){return f(this[W]).size}}),n.has=function(t){var e=this[W];return u(e),e.i?!!e.i.has(t)||!(!e.p.has(t)||!e.i.has(e.p.get(t))):e.u.has(t)},n.add=function(t){var e=this[W];return u(e),this.has(t)||(i(e),P(e),e.i.add(t)),this},n.delete=function(t){if(!this.has(t))return!1;var e=this[W];return u(e),i(e),P(e),e.i.delete(t)||!!e.p.has(t)&&e.i.delete(e.p.get(t))},n.clear=function(){var t=this[W];u(t),f(t).size&&(i(t),P(t),t.i.clear())},n.values=function(){var t=this[W];return u(t),i(t),t.i.values()},n.entries=function(){var t=this[W];return u(t),i(t),t.i.entries()},n.keys=function(){return this.values()},n[q]=function(){return this.values()},n.forEach=function(t,e){for(var n=this.values(),r=n.next();!r.done;)t.call(e,r.value,r.value,this),r=n.next()},t}();y("MapSet",{K:function(t,e){return new s(t,e)},$:function(t,e){return new c(t,e)}})}var L;sp=1,Object.defineProperty(dp,"__esModule",{value:!0});var M,z="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),H="undefined"!=typeof Map,$="undefined"!=typeof Set,U="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,V=z?Symbol.for("immer-nothing"):((L={})["immer-nothing"]=!0,L),G=z?Symbol.for("immer-draftable"):"__$immer_draftable",W=z?Symbol.for("immer-state"):"__$immer_state",q="undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator",K=""+Object.prototype.constructor,Y="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,X=Object.getOwnPropertyDescriptors||function(t){var e={};return Y(t).forEach(function(n){e[n]=Object.getOwnPropertyDescriptor(t,n)}),e},J={},Z={get:function(t,e){if(e===W)return t;var r=f(t);if(!i(r,e))return function(t,e,n){var r,o=N(e,n);return o?"value"in o?o.value:null===(r=o.get)||void 0===r?void 0:r.call(t.k):void 0}(t,r,e);var o=r[e];return t.R||!n(o)?o:o===T(t.u,e)?(k(t),t.i[e]=I(t.A.h,o,t)):o},has:function(t,e){return e in f(t)},ownKeys:function(t){return Reflect.ownKeys(f(t))},set:function(t,e,n){var r=N(f(t),e);if(null==r?void 0:r.set)return r.set.call(t.k,n),!0;if(!t.g){var o=T(f(t),e),u=null==o?void 0:o[W];if(u&&u.u===n)return t.i[e]=n,t.N[e]=!1,!0;if(s(n,o)&&(void 0!==n||i(t.u,e)))return!0;k(t),P(t)}return t.i[e]===n&&(void 0!==n||e in t.i)||Number.isNaN(n)&&Number.isNaN(t.i[e])||(t.i[e]=n,t.N[e]=!0),!0},deleteProperty:function(t,e){return void 0!==T(t.u,e)||e in t.u?(t.N[e]=!1,k(t),P(t)):delete t.N[e],t.i&&delete t.i[e],!0},getOwnPropertyDescriptor:function(t,e){var n=f(t),r=Reflect.getOwnPropertyDescriptor(n,e);return r?{writable:!0,configurable:1!==t.t||"length"!==e,enumerable:r.enumerable,value:n[e]}:r},defineProperty:function(){t(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.u)},setPrototypeOf:function(){t(12)}},Q={};r(Z,function(t,e){Q[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Q.deleteProperty=function(t,e){return Q.set.call(this,t,e,void 0)},Q.set=function(t,e,n){return Z.set.call(this,t[0],e,n,t[0])};var tt=function(){function r(e){var r=this;this.S=U,this.D=!0,this.produce=function(e,o,i){if("function"==typeof e&&"function"!=typeof o){var u=o;o=e;var a=r;return function(t){var e=this;void 0===t&&(t=u);for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return a.produce(t,function(t){var n;return(n=o).call.apply(n,[e,t].concat(r))})}}var s;if("function"!=typeof o&&t(6),void 0!==i&&"function"!=typeof i&&t(7),n(e)){var c=S(r),l=I(r,e,void 0),f=!0;try{s=o(l),f=!1}finally{f?E(c):w(c)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then(function(t){return b(c,i),D(t,c)},function(t){throw E(c),t}):(b(c,i),D(s,c))}if(!e||"object"!=typeof e){if(void 0===(s=o(e))&&(s=e),s===V&&(s=void 0),r.D&&p(s,!0),i){var d=[],h=[];g("Patches").M(e,s,d,h),i(d,h)}return s}t(21,e)},this.produceWithPatches=function(t,e){if("function"==typeof t)return function(e){for(var n=arguments.length,o=Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return r.produceWithPatches(e,function(e){return t.apply(void 0,[e].concat(o))})};var n,o,i=r.produce(t,e,function(t,e){n=t,o=e});return"undefined"!=typeof Promise&&i instanceof Promise?i.then(function(t){return[t,n,o]}):[i,n,o]},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var o=r.prototype;return o.createDraft=function(r){n(r)||t(8),e(r)&&(r=B(r));var o=S(this),i=I(this,r,void 0);return i[W].C=!0,w(o),i},o.finishDraft=function(t,e){var n=(t&&t[W]).A;return b(n,e),D(void 0,n)},o.setAutoFreeze=function(t){this.D=t},o.setUseProxies=function(e){e&&!U&&t(20),this.S=e},o.applyPatches=function(t,n){var r;for(r=n.length-1;r>=0;r--){var o=n[r];if(0===o.path.length&&"replace"===o.op){t=o.value;break}}r>-1&&(n=n.slice(r+1));var i=g("Patches").W;return e(t)?i(t,n):this.produce(t,function(t){return i(t,n)})},r}(),et=new tt,nt=et.produce,rt=et.produceWithPatches.bind(et),ot=et.setAutoFreeze.bind(et),it=et.setUseProxies.bind(et),ut=et.applyPatches.bind(et),at=et.createDraft.bind(et),st=et.finishDraft.bind(et);return dp.Immer=tt,dp.applyPatches=ut,dp.castDraft=function(t){return t},dp.castImmutable=function(t){return t},dp.createDraft=at,dp.current=B,dp.default=nt,dp.enableAllPlugins=function(){R(),j(),_()},dp.enableES5=R,dp.enableMapSet=j,dp.enablePatches=_,dp.finishDraft=st,dp.freeze=p,dp.immerable=G,dp.isDraft=e,dp.isDraftable=n,dp.nothing=V,dp.original=function(n){return e(n)||t(23,n),n[W].u},dp.produce=nt,dp.produceWithPatches=rt,dp.setAutoFreeze=ot,dp.setUseProxies=it,dp}function hp(){return cp||(cp=1,fp.exports=pp()),fp.exports}function vp(){if(lp)return ip;lp=1,Object.defineProperty(ip,"__esModule",{value:!0});var t=ap(),e=hp();function n(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function r(t,e){return t(e={exports:{}},e.exports),e.exports}var o=r(function(t){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},t.exports.default=t.exports,t.exports.__esModule=!0});n(o);var i=r(function(t){t.exports=function(t){if(Array.isArray(t))return o(t)},t.exports.default=t.exports,t.exports.__esModule=!0});n(i);var u=r(function(t){t.exports=function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.default=t.exports,t.exports.__esModule=!0});n(u);var a=r(function(t){t.exports=function(t,e){if(t){if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}},t.exports.default=t.exports,t.exports.__esModule=!0});n(a);var s=r(function(t){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.default=t.exports,t.exports.__esModule=!0});n(s);var c=n(r(function(t){t.exports=function(t){return i(t)||u(t)||a(t)||s()},t.exports.default=t.exports,t.exports.__esModule=!0})),l=r(function(t){t.exports=function(t){if(Array.isArray(t))return t},t.exports.default=t.exports,t.exports.__esModule=!0});n(l);var f=r(function(t){t.exports=function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],u=!0,a=!1;try{for(n=n.call(t);!(u=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);u=!0);}catch(t){a=!0,o=t}finally{try{u||null==n.return||n.return()}finally{if(a)throw o}}return i}},t.exports.default=t.exports,t.exports.__esModule=!0});n(f);var d=r(function(t){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.default=t.exports,t.exports.__esModule=!0});n(d);var p=r(function(t){t.exports=function(t,e){return l(t)||f(t,e)||a(t,e)||d()},t.exports.default=t.exports,t.exports.__esModule=!0}),h=n(p),v=n(r(function(t){t.exports=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},t.exports.default=t.exports,t.exports.__esModule=!0})),g=new WeakMap,y=new WeakMap,m=new WeakMap,b=new WeakMap,E=new WeakMap,w=new WeakMap,S=new WeakMap;function C(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function D(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?C(Object(n),!0).forEach(function(e){v(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function O(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return A(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return A(t,e)}(t))||e){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return u=t.done,t},e:function(t){a=!0,i=t},f:function(){try{u||null==n.return||n.return()}finally{if(a)throw i}}}}function A(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var x=r(function(t){t.exports=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o},t.exports.default=t.exports,t.exports.__esModule=!0});n(x);var T=r(function(t){t.exports=function(t,e){if(null==t)return{};var n,r,o=x(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o},t.exports.default=t.exports,t.exports.__esModule=!0}),N=n(T);function P(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return k(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return k(t,e)}(t))||e){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return u=t.done,t},e:function(t){a=!0,i=t},f:function(){try{u||null==n.return||n.return()}finally{if(a)throw i}}}}function k(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var I,B=function(t){var e,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=!n,o=n?M(t):t,i=I.None,u=I.None,a=0,s=null,c=P(o);try{for(c.s();!(e=c.n()).done;){var l=e.value,f=l.codePointAt(0);if(!f)break;var d=J(l,f),p=h(r?[u,d]:[d,i],2);if(i=p[0],u=p[1],Z(i,I.ZWJ)&&Z(u,I.ExtPict)&&!nt(r?t.substring(0,a):t.substring(0,t.length-a)))break;if(Z(i,I.RI)&&Z(u,I.RI)&&!(s=null!==s?!s:!!r||ot(t.substring(0,t.length-a))))break;if(i!==I.None&&u!==I.None&&tt(i,u))break;a+=l.length}}catch(t){c.e(t)}finally{c.f()}return a||1},F=/\s/,R=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,_=/['\u2018\u2019]/,j=function(t,e,n){if(n){var r=t.length-e;return[t.slice(r,t.length),t.slice(0,r)]}return[t.slice(0,e),t.slice(e)]},L=function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(F.test(e))return!1;if(_.test(e)){var o=B(n,r),i=j(n,o,r),u=h(i,2);if(t(u[0],u[1],r))return!0}return!R.test(e)},M=function*(t){for(var e=t.length-1,n=0;n<t.length;n++){var r=t.charAt(e-n);if(H(r.charCodeAt(0))){var o=t.charAt(e-n-1);if(z(o.charCodeAt(0))){yield o+r,n++;continue}}yield r}},z=function(t){return t>=55296&&t<=56319},H=function(t){return t>=56320&&t<=57343};!function(t){t[t.None=0]="None",t[t.Extend=1]="Extend",t[t.ZWJ=2]="ZWJ",t[t.RI=4]="RI",t[t.Prepend=8]="Prepend",t[t.SpacingMark=16]="SpacingMark",t[t.L=32]="L",t[t.V=64]="V",t[t.T=128]="T",t[t.LV=256]="LV",t[t.LVT=512]="LVT",t[t.ExtPict=1024]="ExtPict",t[t.Any=2048]="Any"}(I||(I={}));var $=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,U=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,V=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,G=/^[\u1100-\u115F\uA960-\uA97C]$/,W=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,q=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,K=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,Y=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,X=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,J=function(t,e){var n=I.Any;return-1!==t.search($)&&(n|=I.Extend),8205===e&&(n|=I.ZWJ),e>=127462&&e<=127487&&(n|=I.RI),-1!==t.search(U)&&(n|=I.Prepend),-1!==t.search(V)&&(n|=I.SpacingMark),-1!==t.search(G)&&(n|=I.L),-1!==t.search(W)&&(n|=I.V),-1!==t.search(q)&&(n|=I.T),-1!==t.search(K)&&(n|=I.LV),-1!==t.search(Y)&&(n|=I.LVT),-1!==t.search(X)&&(n|=I.ExtPict),n};function Z(t,e){return 0!==(t&e)}var Q=[[I.L,I.L|I.V|I.LV|I.LVT],[I.LV|I.V,I.V|I.T],[I.LVT|I.T,I.T],[I.Any,I.Extend|I.ZWJ],[I.Any,I.SpacingMark],[I.Prepend,I.Any],[I.ZWJ,I.ExtPict],[I.RI,I.RI]];function tt(t,e){return-1===Q.findIndex(function(n){return Z(t,n[0])&&Z(e,n[1])})}var et=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,nt=function(t){return-1!==t.search(et)},rt=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,ot=function(t){var e=t.match(rt);return null!==e&&e[0].length/2%2==1},it=function(e){return t.isPlainObject(e)&&St.isNodeList(e.children)&&!ht.isEditor(e)},ut={isAncestor:function(e){return t.isPlainObject(e)&&St.isNodeList(e.children)},isElement:it,isElementList:function(t){return Array.isArray(t)&&t.every(function(t){return ut.isElement(t)})},isElementProps:function(t){return void 0!==t.children},isElementType:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"type";return it(t)&&t[n]===e},matches:function(t,e){for(var n in e)if("children"!==n&&t[n]!==e[n])return!1;return!0}},at=["text"],st=["text"];function ct(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function lt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ct(Object(n),!0).forEach(function(e){v(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ct(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function ft(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return dt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dt(t,e)}(t))||e){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return u=t.done,t},e:function(t){a=!0,i=t},f:function(){try{u||null==n.return||n.return()}finally{if(a)throw i}}}}function dt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var pt=new WeakMap,ht={above:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.voids,r=void 0!==n&&n,o=e.mode,i=void 0===o?"lowest":o,u=e.at,a=void 0===u?t.selection:u,s=e.match;if(a){var c,l=ht.path(t,a),f="lowest"===i,d=ft(ht.levels(t,{at:l,voids:r,match:s,reverse:f}));try{for(d.s();!(c=d.n()).done;){var p=h(c.value,2),v=p[0],g=p[1];if(!Gt.isText(v)&&!At.equals(l,g))return[v,g]}}catch(t){d.e(t)}finally{d.f()}}},addMark:function(t,e,n){t.addMark(e,n)},after:function(t,e){var n,r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i={anchor:ht.point(t,e,{edge:"end"}),focus:ht.end(t,[])},u=o.distance,a=void 0===u?1:u,s=0,c=ft(ht.positions(t,lt(lt({},o),{},{at:i})));try{for(c.s();!(r=c.n()).done;){var l=r.value;if(s>a)break;0!==s&&(n=l),s++}}catch(t){c.e(t)}finally{c.f()}return n},before:function(t,e){var n,r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i={anchor:ht.start(t,[]),focus:ht.point(t,e,{edge:"start"})},u=o.distance,a=void 0===u?1:u,s=0,c=ft(ht.positions(t,lt(lt({},o),{},{at:i,reverse:!0})));try{for(c.s();!(r=c.n()).done;){var l=r.value;if(s>a)break;0!==s&&(n=l),s++}}catch(t){c.e(t)}finally{c.f()}return n},deleteBackward:function(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).unit,n=void 0===e?"character":e;t.deleteBackward(n)},deleteForward:function(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).unit,n=void 0===e?"character":e;t.deleteForward(n)},deleteFragment:function(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).direction,n=void 0===e?"forward":e;t.deleteFragment(n)},edges:function(t,e){return[ht.start(t,e),ht.end(t,e)]},end:function(t,e){return ht.point(t,e,{edge:"end"})},first:function(t,e){var n=ht.path(t,e,{edge:"start"});return ht.node(t,n)},fragment:function(t,e){var n=ht.range(t,e),r=St.fragment(t,n);return r},hasBlocks:function(t,e){return e.children.some(function(e){return ht.isBlock(t,e)})},hasInlines:function(t,e){return e.children.some(function(e){return Gt.isText(e)||ht.isInline(t,e)})},hasTexts:function(t,e){return e.children.every(function(t){return Gt.isText(t)})},insertBreak:function(t){t.insertBreak()},insertSoftBreak:function(t){t.insertSoftBreak()},insertFragment:function(t,e){t.insertFragment(e)},insertNode:function(t,e){t.insertNode(e)},insertText:function(t,e){t.insertText(e)},isBlock:function(t,e){return ut.isElement(e)&&!t.isInline(e)},isEditor:function(e){var n=pt.get(e);if(void 0!==n)return n;if(!t.isPlainObject(e))return!1;var r="function"==typeof e.addMark&&"function"==typeof e.apply&&"function"==typeof e.deleteBackward&&"function"==typeof e.deleteForward&&"function"==typeof e.deleteFragment&&"function"==typeof e.insertBreak&&"function"==typeof e.insertSoftBreak&&"function"==typeof e.insertFragment&&"function"==typeof e.insertNode&&"function"==typeof e.insertText&&"function"==typeof e.isInline&&"function"==typeof e.isVoid&&"function"==typeof e.normalizeNode&&"function"==typeof e.onChange&&"function"==typeof e.removeMark&&"function"==typeof e.getDirtyPaths&&(null===e.marks||t.isPlainObject(e.marks))&&(null===e.selection||Ft.isRange(e.selection))&&St.isNodeList(e.children)&&Ot.isOperationList(e.operations);return pt.set(e,r),r},isEnd:function(t,e,n){var r=ht.end(t,n);return Pt.equals(e,r)},isEdge:function(t,e,n){return ht.isStart(t,e,n)||ht.isEnd(t,e,n)},isEmpty:function(t,e){var n=e.children,r=h(n,1)[0];return 0===n.length||1===n.length&&Gt.isText(r)&&""===r.text&&!t.isVoid(e)},isInline:function(t,e){return ut.isElement(e)&&t.isInline(e)},isNormalizing:function(t){var e=b.get(t);return void 0===e||e},isStart:function(t,e,n){if(0!==e.offset)return!1;var r=ht.start(t,n);return Pt.equals(e,r)},isVoid:function(t,e){return ut.isElement(e)&&t.isVoid(e)},last:function(t,e){var n=ht.path(t,e,{edge:"end"});return ht.node(t,n)},leaf:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=ht.path(t,e,n);return[St.leaf(t,r),r]},levels:function*(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.at,r=void 0===n?t.selection:n,o=e.reverse,i=void 0!==o&&o,u=e.voids,a=void 0!==u&&u,s=e.match;if(null==s&&(s=function(){return!0}),r){var c,l=[],f=ht.path(t,r),d=ft(St.levels(t,f));try{for(d.s();!(c=d.n()).done;){var p=h(c.value,2),v=p[0],g=p[1];if(s(v,g)&&(l.push([v,g]),!a&&ht.isVoid(t,v)))break}}catch(t){d.e(t)}finally{d.f()}i&&l.reverse(),yield*l}},marks:function(t){var e=t.marks,n=t.selection;if(!n)return null;if(e)return e;if(Ft.isExpanded(n)){var r=ht.nodes(t,{match:Gt.isText}),o=h(r,1)[0];if(o){var i=h(o,1)[0];return i.text,N(i,at)}return{}}var u=n.anchor,a=u.path,s=ht.leaf(t,a),c=h(s,1)[0];if(0===u.offset){var l=ht.previous(t,{at:a,match:Gt.isText}),f=ht.above(t,{match:function(e){return ht.isBlock(t,e)}});if(l&&f){var d=h(l,2),p=d[0],v=d[1],g=h(f,2)[1];At.isAncestor(g,v)&&(c=p)}}var y=c;return y.text,N(y,st)},next:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.mode,r=void 0===n?"lowest":n,o=e.voids,i=void 0!==o&&o,u=e.match,a=e.at,s=void 0===a?t.selection:a;if(s){var c=ht.after(t,s,{voids:i});if(c){var l=ht.last(t,[]),f=h(l,2)[1],d=[c.path,f];if(At.isPath(s)&&0===s.length)throw new Error("Cannot get the next node from the root node!");if(null==u)if(At.isPath(s)){var p=ht.parent(t,s),v=h(p,1)[0];u=function(t){return v.children.includes(t)}}else u=function(){return!0};var g=ht.nodes(t,{at:d,match:u,mode:r,voids:i}),y=h(g,1)[0];return y}}},node:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=ht.path(t,e,n),o=St.get(t,r);return[o,r]},nodes:function*(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.at,r=void 0===n?t.selection:n,o=e.mode,i=void 0===o?"all":o,u=e.universal,a=void 0!==u&&u,s=e.reverse,c=void 0!==s&&s,l=e.voids,f=void 0!==l&&l,d=e.match;if(d||(d=function(){return!0}),r){var p,v;if(gt.isSpan(r))p=r[0],v=r[1];else{var g=ht.path(t,r,{edge:"start"}),y=ht.path(t,r,{edge:"end"});p=c?y:g,v=c?g:y}var m,b,E=St.nodes(t,{reverse:c,from:p,to:v,pass:function(e){var n=h(e,1)[0];return!f&&ht.isVoid(t,n)}}),w=[],S=ft(E);try{for(S.s();!(b=S.n()).done;){var C=h(b.value,2),D=C[0],O=C[1],A=m&&0===At.compare(O,m[1]);if("highest"!==i||!A)if(d(D,O))if("lowest"===i&&A)m=[D,O];else{var x="lowest"===i?m:[D,O];x&&(a?w.push(x):yield x),m=[D,O]}else if(a&&!A&&Gt.isText(D))return}}catch(t){S.e(t)}finally{S.f()}"lowest"===i&&m&&(a?w.push(m):yield m),a&&(yield*w)}},normalize:function(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).force,n=void 0!==e&&e,r=function(t){return g.get(t)||[]},o=function(t){var e=r(t).pop(),n=e.join(",");return function(t){return y.get(t)||new Set}(t).delete(n),e};if(ht.isNormalizing(t)){if(n){var i=Array.from(St.nodes(t),function(t){return h(t,2)[1]}),u=new Set(i.map(function(t){return t.join(",")}));g.set(t,i),y.set(t,u)}0!==r(t).length&&ht.withoutNormalizing(t,function(){var e,n=ft(r(t));try{for(n.s();!(e=n.n()).done;){var i=e.value;if(St.has(t,i)){var u=ht.node(t,i),a=h(u,2),s=a[0];a[1];ut.isElement(s)&&0===s.children.length&&t.normalizeNode(u)}}}catch(t){n.e(t)}finally{n.f()}for(var c=42*r(t).length,l=0;0!==r(t).length;){if(l>c)throw new Error("\n Could not completely normalize the editor after ".concat(c," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.\n "));var f=o(t);if(St.has(t,f)){var d=ht.node(t,f);t.normalizeNode(d)}l++}})}},parent:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=ht.path(t,e,n),o=At.parent(r);return ht.node(t,o)},path:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.depth,o=n.edge;if(At.isPath(e))if("start"===o){var i=St.first(t,e);e=h(i,2)[1]}else if("end"===o){var u=St.last(t,e);e=h(u,2)[1]}return Ft.isRange(e)&&(e="start"===o?Ft.start(e):"end"===o?Ft.end(e):At.common(e.anchor.path,e.focus.path)),Pt.isPoint(e)&&(e=e.path),null!=r&&(e=e.slice(0,r)),e},hasPath:function(t,e){return St.has(t,e)},pathRef:function(t,e){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).affinity,r={current:e,affinity:void 0===n?"forward":n,unref:function(){var e=r.current;return ht.pathRefs(t).delete(r),r.current=null,e}};return ht.pathRefs(t).add(r),r},pathRefs:function(t){var e=E.get(t);return e||(e=new Set,E.set(t,e)),e},point:function(t,e){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).edge,r=void 0===n?"start":n;if(At.isPath(e)){var o;if("end"===r){var i=St.last(t,e);o=h(i,2)[1]}else{var u=St.first(t,e);o=h(u,2)[1]}var a=St.get(t,o);if(!Gt.isText(a))throw new Error("Cannot get the ".concat(r," point in the node at path [").concat(e,"] because it has no ").concat(r," text node."));return{path:o,offset:"end"===r?a.text.length:0}}if(Ft.isRange(e)){var s=Ft.edges(e),c=h(s,2),l=c[0],f=c[1];return"start"===r?l:f}return e},pointRef:function(t,e){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).affinity,r={current:e,affinity:void 0===n?"forward":n,unref:function(){var e=r.current;return ht.pointRefs(t).delete(r),r.current=null,e}};return ht.pointRefs(t).add(r),r},pointRefs:function(t){var e=w.get(t);return e||(e=new Set,w.set(t,e)),e},positions:function*(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.at,r=void 0===n?t.selection:n,o=e.unit,i=void 0===o?"offset":o,u=e.reverse,a=void 0!==u&&u,s=e.voids,c=void 0!==s&&s;if(r){var l,f=ht.range(t,r),d=Ft.edges(f),p=h(d,2),v=p[0],g=p[1],y=a?g:v,m=!1,b="",E=0,w=0,S=0,C=ft(ht.nodes(t,{at:r,reverse:a,voids:c}));try{for(C.s();!(l=C.n()).done;){var D=h(l.value,2),O=D[0],A=D[1];if(ut.isElement(O)){if(!c&&t.isVoid(O)){yield ht.start(t,A);continue}if(t.isInline(O))continue;if(ht.hasInlines(t,O)){var x=At.isAncestor(A,g.path)?g:ht.end(t,A),T=At.isAncestor(A,v.path)?v:ht.start(t,A);b=ht.string(t,{anchor:T,focus:x},{voids:c}),m=!0}}if(Gt.isText(O)){var N=At.equals(A,y.path);for(N?(w=a?y.offset:O.text.length-y.offset,S=y.offset):(w=O.text.length,S=a?w:0),(N||m||"offset"===i)&&(yield{path:A,offset:S},m=!1);;){if(0===E){if(""===b)break;E=P(b,i,a),b=j(b,E,a)[1]}if(S=a?S-E:S+E,(w-=E)<0){E=-w;break}E=0,yield{path:A,offset:S}}}}}catch(t){C.e(t)}finally{C.f()}}function P(t,e,n){return"character"===e?B(t,n):"word"===e?function(t){for(var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=0,r=!1;t.length>0;){var o=B(t,e),i=j(t,o,e),u=h(i,2),a=u[0],s=u[1];if(L(a,s,e))r=!0,n+=o;else{if(r)break;n+=o}t=s}return n}(t,n):"line"===e||"block"===e?t.length:1}},previous:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.mode,r=void 0===n?"lowest":n,o=e.voids,i=void 0!==o&&o,u=e.match,a=e.at,s=void 0===a?t.selection:a;if(s){var c=ht.before(t,s,{voids:i});if(c){var l=ht.first(t,[]),f=h(l,2)[1],d=[c.path,f];if(At.isPath(s)&&0===s.length)throw new Error("Cannot get the previous node from the root node!");if(null==u)if(At.isPath(s)){var p=ht.parent(t,s),v=h(p,1)[0];u=function(t){return v.children.includes(t)}}else u=function(){return!0};var g=ht.nodes(t,{reverse:!0,at:d,match:u,mode:r,voids:i}),y=h(g,1)[0];return y}}},range:function(t,e,n){return Ft.isRange(e)&&!n?e:{anchor:ht.start(t,e),focus:ht.end(t,n||e)}},rangeRef:function(t,e){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).affinity,r={current:e,affinity:void 0===n?"forward":n,unref:function(){var e=r.current;return ht.rangeRefs(t).delete(r),r.current=null,e}};return ht.rangeRefs(t).add(r),r},rangeRefs:function(t){var e=S.get(t);return e||(e=new Set,S.set(t,e)),e},removeMark:function(t,e){t.removeMark(e)},setNormalizing:function(t,e){b.set(t,e)},start:function(t,e){return ht.point(t,e,{edge:"start"})},string:function(t,e){var n,r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).voids,o=void 0!==r&&r,i=ht.range(t,e),u=Ft.edges(i),a=h(u,2),s=a[0],c=a[1],l="",f=ft(ht.nodes(t,{at:i,match:Gt.isText,voids:o}));try{for(f.s();!(n=f.n()).done;){var d=h(n.value,2),p=d[0],v=d[1],g=p.text;At.equals(v,c.path)&&(g=g.slice(0,c.offset)),At.equals(v,s.path)&&(g=g.slice(s.offset)),l+=g}}catch(t){f.e(t)}finally{f.f()}return l},unhangRange:function(t,e){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).voids,r=void 0!==n&&n,o=Ft.edges(e),i=h(o,2),u=i[0],a=i[1];if(0!==u.offset||0!==a.offset||Ft.isCollapsed(e))return e;var s,c=ht.above(t,{at:a,match:function(e){return ht.isBlock(t,e)}}),l=c?c[1]:[],f={anchor:ht.start(t,u),focus:a},d=!0,p=ft(ht.nodes(t,{at:f,match:Gt.isText,reverse:!0,voids:r}));try{for(p.s();!(s=p.n()).done;){var v=h(s.value,2),g=v[0],y=v[1];if(d)d=!1;else if(""!==g.text||At.isBefore(y,l)){a={path:y,offset:g.text.length};break}}}catch(t){p.e(t)}finally{p.f()}return{anchor:u,focus:a}},void:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return ht.above(t,lt(lt({},e),{},{match:function(e){return ht.isVoid(t,e)}}))},withoutNormalizing:function(t,e){var n=ht.isNormalizing(t);ht.setNormalizing(t,!1);try{e()}finally{ht.setNormalizing(t,n)}ht.normalize(t)}},vt={isLocation:function(t){return At.isPath(t)||Pt.isPoint(t)||Ft.isRange(t)}},gt={isSpan:function(t){return Array.isArray(t)&&2===t.length&&t.every(At.isPath)}},yt=["children"],mt=["text"];function bt(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return Et(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Et(t,e)}(t))||e){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return u=t.done,t},e:function(t){a=!0,i=t},f:function(){try{u||null==n.return||n.return()}finally{if(a)throw i}}}}function Et(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var wt=new WeakMap,St={ancestor:function(t,e){var n=St.get(t,e);if(Gt.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(e,"] because it refers to a text node instead: ").concat(jt.stringify(n)));return n},ancestors:function*(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=bt(At.ancestors(e,r));try{for(o.s();!(n=o.n()).done;){var i=n.value,u=[St.ancestor(t,i),i];yield u}}catch(t){o.e(t)}finally{o.f()}},child:function(t,e){if(Gt.isText(t))throw new Error("Cannot get the child of a text node: ".concat(jt.stringify(t)));var n=t.children[e];if(null==n)throw new Error("Cannot get child at index `".concat(e,"` in node: ").concat(jt.stringify(t)));return n},children:function*(t,e){for(var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).reverse,r=void 0!==n&&n,o=St.ancestor(t,e),i=o.children,u=r?i.length-1:0;r?u>=0:u<i.length;){var a=St.child(o,u),s=e.concat(u);yield[a,s],u=r?u-1:u+1}},common:function(t,e,n){var r=At.common(e,n);return[St.get(t,r),r]},descendant:function(t,e){var n=St.get(t,e);if(ht.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(e,"] because it refers to the root editor node instead: ").concat(jt.stringify(n)));return n},descendants:function*(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=bt(St.nodes(t,n));try{for(r.s();!(e=r.n()).done;){var o=h(e.value,2),i=o[0],u=o[1];0!==u.length&&(yield[i,u])}}catch(t){r.e(t)}finally{r.f()}},elements:function*(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=bt(St.nodes(t,n));try{for(r.s();!(e=r.n()).done;){var o=h(e.value,2),i=o[0],u=o[1];ut.isElement(i)&&(yield[i,u])}}catch(t){r.e(t)}finally{r.f()}},extractProps:function(t){return ut.isAncestor(t)?(t.children,N(t,yt)):(t.text,N(t,mt))},first:function(t,e){for(var n=e.slice(),r=St.get(t,n);r&&!Gt.isText(r)&&0!==r.children.length;)r=r.children[0],n.push(0);return[r,n]},fragment:function(t,n){if(Gt.isText(t))throw new Error("Cannot get a fragment starting from a root text node: ".concat(jt.stringify(t)));var r=e.produce({children:t.children},function(t){var e,r=Ft.edges(n),o=h(r,2),i=o[0],u=o[1],a=St.nodes(t,{reverse:!0,pass:function(t){var e=h(t,2)[1];return!Ft.includes(n,e)}}),s=bt(a);try{for(s.s();!(e=s.n()).done;){var c=h(e.value,2)[1];if(!Ft.includes(n,c)){var l=St.parent(t,c),f=c[c.length-1];l.children.splice(f,1)}if(At.equals(c,u.path)){var d=St.leaf(t,c);d.text=d.text.slice(0,u.offset)}if(At.equals(c,i.path)){var p=St.leaf(t,c);p.text=p.text.slice(i.offset)}}}catch(t){s.e(t)}finally{s.f()}ht.isEditor(t)&&(t.selection=null)});return r.children},get:function(t,e){for(var n=t,r=0;r<e.length;r++){var o=e[r];if(Gt.isText(n)||!n.children[o])throw new Error("Cannot find a descendant at path [".concat(e,"] in node: ").concat(jt.stringify(t)));n=n.children[o]}return n},has:function(t,e){for(var n=t,r=0;r<e.length;r++){var o=e[r];if(Gt.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode:function(t){return Gt.isText(t)||ut.isElement(t)||ht.isEditor(t)},isNodeList:function(t){if(!Array.isArray(t))return!1;var e=wt.get(t);if(void 0!==e)return e;var n=t.every(function(t){return St.isNode(t)});return wt.set(t,n),n},last:function(t,e){for(var n=e.slice(),r=St.get(t,n);r&&!Gt.isText(r)&&0!==r.children.length;){var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf:function(t,e){var n=St.get(t,e);if(!Gt.isText(n))throw new Error("Cannot get the leaf node at path [".concat(e,"] because it refers to a non-leaf node: ").concat(jt.stringify(n)));return n},levels:function*(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=bt(At.levels(e,r));try{for(o.s();!(n=o.n()).done;){var i=n.value,u=St.get(t,i);yield[u,i]}}catch(t){o.e(t)}finally{o.f()}},matches:function(t,e){return ut.isElement(t)&&ut.isElementProps(e)&&ut.matches(t,e)||Gt.isText(t)&&Gt.isTextProps(e)&&Gt.matches(t,e)},nodes:function*(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.pass,r=e.reverse,o=void 0!==r&&r,i=e.from,u=void 0===i?[]:i,a=e.to,s=new Set,c=[],l=t;!a||!(o?At.isBefore(c,a):At.isAfter(c,a));)if(s.has(l)||(yield[l,c]),s.has(l)||Gt.isText(l)||0===l.children.length||null!=n&&!1!==n([l,c])){if(0===c.length)break;if(!o){var f=At.next(c);if(St.has(t,f)){c=f,l=St.get(t,c);continue}}if(o&&0!==c[c.length-1])c=At.previous(c),l=St.get(t,c);else c=At.parent(c),l=St.get(t,c),s.add(l)}else{s.add(l);var d=o?l.children.length-1:0;At.isAncestor(c,u)&&(d=u[c.length]),c=c.concat(d),l=St.get(t,c)}},parent:function(t,e){var n=At.parent(e),r=St.get(t,n);if(Gt.isText(r))throw new Error("Cannot get the parent of path [".concat(e,"] because it does not exist in the root."));return r},string:function(t){return Gt.isText(t)?t.text:t.children.map(St.string).join("")},texts:function*(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=bt(St.nodes(t,n));try{for(r.s();!(e=r.n()).done;){var o=h(e.value,2),i=o[0],u=o[1];Gt.isText(i)&&(yield[i,u])}}catch(t){r.e(t)}finally{r.f()}}};function Ct(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function Dt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ct(Object(n),!0).forEach(function(e){v(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ct(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var Ot={isNodeOperation:function(t){return Ot.isOperation(t)&&t.type.endsWith("_node")},isOperation:function(e){if(!t.isPlainObject(e))return!1;switch(e.type){case"insert_node":case"remove_node":return At.isPath(e.path)&&St.isNode(e.node);case"insert_text":case"remove_text":return"number"==typeof e.offset&&"string"==typeof e.text&&At.isPath(e.path);case"merge_node":return"number"==typeof e.position&&At.isPath(e.path)&&t.isPlainObject(e.properties);case"move_node":return At.isPath(e.path)&&At.isPath(e.newPath);case"set_node":return At.isPath(e.path)&&t.isPlainObject(e.properties)&&t.isPlainObject(e.newProperties);case"set_selection":return null===e.properties&&Ft.isRange(e.newProperties)||null===e.newProperties&&Ft.isRange(e.properties)||t.isPlainObject(e.properties)&&t.isPlainObject(e.newProperties);case"split_node":return At.isPath(e.path)&&"number"==typeof e.position&&t.isPlainObject(e.properties);default:return!1}},isOperationList:function(t){return Array.isArray(t)&&t.every(function(t){return Ot.isOperation(t)})},isSelectionOperation:function(t){return Ot.isOperation(t)&&t.type.endsWith("_selection")},isTextOperation:function(t){return Ot.isOperation(t)&&t.type.endsWith("_text")},inverse:function(t){switch(t.type){case"insert_node":return Dt(Dt({},t),{},{type:"remove_node"});case"insert_text":return Dt(Dt({},t),{},{type:"remove_text"});case"merge_node":return Dt(Dt({},t),{},{type:"split_node",path:At.previous(t.path)});case"move_node":var e=t.newPath,n=t.path;if(At.equals(e,n))return t;if(At.isSibling(n,e))return Dt(Dt({},t),{},{path:e,newPath:n});var r=At.transform(n,t),o=At.transform(At.next(n),t);return Dt(Dt({},t),{},{path:r,newPath:o});case"remove_node":return Dt(Dt({},t),{},{type:"insert_node"});case"remove_text":return Dt(Dt({},t),{},{type:"insert_text"});case"set_node":var i=t.properties,u=t.newProperties;return Dt(Dt({},t),{},{properties:u,newProperties:i});case"set_selection":var a=t.properties,s=t.newProperties;return Dt(Dt({},t),{},null==a?{properties:s,newProperties:null}:null==s?{properties:null,newProperties:a}:{properties:s,newProperties:a});case"split_node":return Dt(Dt({},t),{},{type:"merge_node",path:At.next(t.path)})}}},At={ancestors:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.reverse,r=void 0!==n&&n,o=At.levels(t,e);return o=r?o.slice(1):o.slice(0,-1)},common:function(t,e){for(var n=[],r=0;r<t.length&&r<e.length;r++){var o=t[r];if(o!==e[r])break;n.push(o)}return n},compare:function(t,e){for(var n=Math.min(t.length,e.length),r=0;r<n;r++){if(t[r]<e[r])return-1;if(t[r]>e[r])return 1}return 0},endsAfter:function(t,e){var n=t.length-1,r=t.slice(0,n),o=e.slice(0,n),i=t[n],u=e[n];return At.equals(r,o)&&i>u},endsAt:function(t,e){var n=t.length,r=t.slice(0,n),o=e.slice(0,n);return At.equals(r,o)},endsBefore:function(t,e){var n=t.length-1,r=t.slice(0,n),o=e.slice(0,n),i=t[n],u=e[n];return At.equals(r,o)&&i<u},equals:function(t,e){return t.length===e.length&&t.every(function(t,n){return t===e[n]})},hasPrevious:function(t){return t[t.length-1]>0},isAfter:function(t,e){return 1===At.compare(t,e)},isAncestor:function(t,e){return t.length<e.length&&0===At.compare(t,e)},isBefore:function(t,e){return-1===At.compare(t,e)},isChild:function(t,e){return t.length===e.length+1&&0===At.compare(t,e)},isCommon:function(t,e){return t.length<=e.length&&0===At.compare(t,e)},isDescendant:function(t,e){return t.length>e.length&&0===At.compare(t,e)},isParent:function(t,e){return t.length+1===e.length&&0===At.compare(t,e)},isPath:function(t){return Array.isArray(t)&&(0===t.length||"number"==typeof t[0])},isSibling:function(t,e){if(t.length!==e.length)return!1;var n=t.slice(0,-1),r=e.slice(0,-1);return t[t.length-1]!==e[e.length-1]&&At.equals(n,r)},levels:function(t){for(var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).reverse,n=void 0!==e&&e,r=[],o=0;o<=t.length;o++)r.push(t.slice(0,o));return n&&r.reverse(),r},next:function(t){if(0===t.length)throw new Error("Cannot get the next path of a root path [".concat(t,"], because it has no next index."));var e=t[t.length-1];return t.slice(0,-1).concat(e+1)},operationCanTransformPath:function(t){switch(t.type){case"insert_node":case"remove_node":case"merge_node":case"split_node":case"move_node":return!0;default:return!1}},parent:function(t){if(0===t.length)throw new Error("Cannot get the parent path of the root path [".concat(t,"]."));return t.slice(0,-1)},previous:function(t){if(0===t.length)throw new Error("Cannot get the previous path of a root path [".concat(t,"], because it has no previous index."));var e=t[t.length-1];if(e<=0)throw new Error("Cannot get the previous path of a first child path [".concat(t,"] because it would result in a negative index."));return t.slice(0,-1).concat(e-1)},relative:function(t,e){if(!At.isAncestor(e,t)&&!At.equals(t,e))throw new Error("Cannot get the relative path of [".concat(t,"] inside ancestor [").concat(e,"], because it is not above or equal to the path."));return t.slice(e.length)},transform:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.produce(t,function(e){var o=r.affinity,i=void 0===o?"forward":o;if(t&&0!==(null==t?void 0:t.length)){if(null===e)return null;switch(n.type){case"insert_node":var u=n.path;(At.equals(u,e)||At.endsBefore(u,e)||At.isAncestor(u,e))&&(e[u.length-1]+=1);break;case"remove_node":var a=n.path;if(At.equals(a,e)||At.isAncestor(a,e))return null;At.endsBefore(a,e)&&(e[a.length-1]-=1);break;case"merge_node":var s=n.path,c=n.position;At.equals(s,e)||At.endsBefore(s,e)?e[s.length-1]-=1:At.isAncestor(s,e)&&(e[s.length-1]-=1,e[s.length]+=c);break;case"split_node":var l=n.path,f=n.position;if(At.equals(l,e)){if("forward"===i)e[e.length-1]+=1;else if("backward"!==i)return null}else At.endsBefore(l,e)?e[l.length-1]+=1:At.isAncestor(l,e)&&t[l.length]>=f&&(e[l.length-1]+=1,e[l.length]-=f);break;case"move_node":var d=n.path,p=n.newPath;if(At.equals(d,p))return;if(At.isAncestor(d,e)||At.equals(d,e)){var h=p.slice();return At.endsBefore(d,p)&&d.length<p.length&&(h[d.length-1]-=1),h.concat(e.slice(d.length))}At.isSibling(d,p)&&(At.isAncestor(p,e)||At.equals(p,e))?At.endsBefore(d,e)?e[d.length-1]-=1:e[d.length-1]+=1:At.endsBefore(p,e)||At.equals(p,e)||At.isAncestor(p,e)?(At.endsBefore(d,e)&&(e[d.length-1]-=1),e[p.length-1]+=1):At.endsBefore(d,e)&&(At.equals(p,e)&&(e[p.length-1]+=1),e[d.length-1]-=1)}}})}},xt={transform:function(t,e){var n=t.current,r=t.affinity;if(null!=n){var o=At.transform(n,e,{affinity:r});t.current=o,null==o&&t.unref()}}};function Tt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function Nt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Tt(Object(n),!0).forEach(function(e){v(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Tt(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var Pt={compare:function(t,e){var n=At.compare(t.path,e.path);return 0===n?t.offset<e.offset?-1:t.offset>e.offset?1:0:n},isAfter:function(t,e){return 1===Pt.compare(t,e)},isBefore:function(t,e){return-1===Pt.compare(t,e)},equals:function(t,e){return t.offset===e.offset&&At.equals(t.path,e.path)},isPoint:function(e){return t.isPlainObject(e)&&"number"==typeof e.offset&&At.isPath(e.path)},transform:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.produce(t,function(t){if(null===t)return null;var e=r.affinity,o=void 0===e?"forward":e,i=t.path,u=t.offset;switch(n.type){case"insert_node":case"move_node":t.path=At.transform(i,n,r);break;case"insert_text":At.equals(n.path,i)&&(n.offset<u||n.offset===u&&"forward"===o)&&(t.offset+=n.text.length);break;case"merge_node":At.equals(n.path,i)&&(t.offset+=n.position),t.path=At.transform(i,n,r);break;case"remove_text":At.equals(n.path,i)&&n.offset<=u&&(t.offset-=Math.min(u-n.offset,n.text.length));break;case"remove_node":if(At.equals(n.path,i)||At.isAncestor(n.path,i))return null;t.path=At.transform(i,n,r);break;case"split_node":if(At.equals(n.path,i)){if(n.position===u&&null==o)return null;(n.position<u||n.position===u&&"forward"===o)&&(t.offset-=n.position,t.path=At.transform(i,n,Nt(Nt({},r),{},{affinity:"forward"})))}else t.path=At.transform(i,n,r)}})}},kt={transform:function(t,e){var n=t.current,r=t.affinity;if(null!=n){var o=Pt.transform(n,e,{affinity:r});t.current=o,null==o&&t.unref()}}},It=["anchor","focus"];function Bt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}var Ft={edges:function(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).reverse,n=void 0!==e&&e,r=t.anchor,o=t.focus;return Ft.isBackward(t)===n?[r,o]:[o,r]},end:function(t){var e=Ft.edges(t),n=h(e,2)[1];return n},equals:function(t,e){return Pt.equals(t.anchor,e.anchor)&&Pt.equals(t.focus,e.focus)},includes:function(t,e){if(Ft.isRange(e)){if(Ft.includes(t,e.anchor)||Ft.includes(t,e.focus))return!0;var n=Ft.edges(t),r=h(n,2),o=r[0],i=r[1],u=Ft.edges(e),a=h(u,2),s=a[0],c=a[1];return Pt.isBefore(o,s)&&Pt.isAfter(i,c)}var l=Ft.edges(t),f=h(l,2),d=f[0],p=f[1],v=!1,g=!1;return Pt.isPoint(e)?(v=Pt.compare(e,d)>=0,g=Pt.compare(e,p)<=0):(v=At.compare(e,d.path)>=0,g=At.compare(e,p.path)<=0),v&&g},intersection:function(t,e){t.anchor,t.focus;var n=N(t,It),r=Ft.edges(t),o=h(r,2),i=o[0],u=o[1],a=Ft.edges(e),s=h(a,2),c=s[0],l=s[1],f=Pt.isBefore(i,c)?c:i,d=Pt.isBefore(u,l)?u:l;return Pt.isBefore(d,f)?null:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Bt(Object(n),!0).forEach(function(e){v(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Bt(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({anchor:f,focus:d},n)},isBackward:function(t){var e=t.anchor,n=t.focus;return Pt.isAfter(e,n)},isCollapsed:function(t){var e=t.anchor,n=t.focus;return Pt.equals(e,n)},isExpanded:function(t){return!Ft.isCollapsed(t)},isForward:function(t){return!Ft.isBackward(t)},isRange:function(e){return t.isPlainObject(e)&&Pt.isPoint(e.anchor)&&Pt.isPoint(e.focus)},points:function*(t){yield[t.anchor,"anchor"],yield[t.focus,"focus"]},start:function(t){var e=Ft.edges(t),n=h(e,1)[0];return n},transform:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.produce(t,function(t){if(null===t)return null;var e,o,i=r.affinity,u=void 0===i?"inward":i;if("inward"===u){var a=Ft.isCollapsed(t);Ft.isForward(t)?(e="forward",o=a?e:"backward"):(e="backward",o=a?e:"forward")}else"outward"===u?Ft.isForward(t)?(e="backward",o="forward"):(e="forward",o="backward"):(e=u,o=u);var s=Pt.transform(t.anchor,n,{affinity:e}),c=Pt.transform(t.focus,n,{affinity:o});if(!s||!c)return null;t.anchor=s,t.focus=c})}},Rt={transform:function(t,e){var n=t.current,r=t.affinity;if(null!=n){var o=Ft.transform(n,e,{affinity:r});t.current=o,null==o&&t.unref()}}},_t=void 0,jt={setScrubber:function(t){_t=t},stringify:function(t){return JSON.stringify(t,_t)}},Lt=function e(n,r){for(var o in n){var i=n[o],u=r[o];if(t.isPlainObject(i)&&t.isPlainObject(u)){if(!e(i,u))return!1}else if(Array.isArray(i)&&Array.isArray(u)){if(i.length!==u.length)return!1;for(var a=0;a<i.length;a++)if(i[a]!==u[a])return!1}else if(i!==u)return!1}for(var s in r)if(void 0===n[s]&&void 0!==r[s])return!1;return!0},Mt=["text"],zt=["anchor","focus"];function Ht(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return $t(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $t(t,e)}(t))||e){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return u=t.done,t},e:function(t){a=!0,i=t},f:function(){try{u||null==n.return||n.return()}finally{if(a)throw i}}}}function $t(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Ut(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function Vt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ut(Object(n),!0).forEach(function(e){v(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ut(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var Gt={equals:function(t,e){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).loose,r=void 0!==n&&n;function o(t){return t.text,N(t,Mt)}return Lt(r?o(t):t,r?o(e):e)},isText:function(e){return t.isPlainObject(e)&&"string"==typeof e.text},isTextList:function(t){return Array.isArray(t)&&t.every(function(t){return Gt.isText(t)})},isTextProps:function(t){return void 0!==t.text},matches:function(t,e){for(var n in e)if("text"!==n&&(!t.hasOwnProperty(n)||t[n]!==e[n]))return!1;return!0},decorations:function(t,e){var n,r=[Vt({},t)],o=Ht(e);try{for(o.s();!(n=o.n()).done;){var i,u=n.value,a=(u.anchor,u.focus,N(u,zt)),s=Ft.edges(u),c=h(s,2),l=c[0],f=c[1],d=[],p=0,v=l.offset,g=f.offset,y=Ht(r);try{for(y.s();!(i=y.n()).done;){var m=i.value,b=m.text.length,E=p;if(p+=b,v<=E&&p<=g)Object.assign(m,a),d.push(m);else if(v!==g&&(v===p||g===E)||v>p||g<E||g===E&&0!==E)d.push(m);else{var w=m,S=void 0,C=void 0;if(g<p){var D=g-E;C=Vt(Vt({},w),{},{text:w.text.slice(D)}),w=Vt(Vt({},w),{},{text:w.text.slice(0,D)})}if(v>E){var O=v-E;S=Vt(Vt({},w),{},{text:w.text.slice(0,O)}),w=Vt(Vt({},w),{},{text:w.text.slice(O)})}Object.assign(w,a),S&&d.push(S),d.push(w),C&&d.push(C)}}}catch(t){y.e(t)}finally{y.f()}r=d}}catch(t){o.e(t)}finally{o.f()}return r}};function Wt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function qt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Wt(Object(n),!0).forEach(function(e){v(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Wt(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Kt(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return Yt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Yt(t,e)}(t))||e){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return u=t.done,t},e:function(t){a=!0,i=t},f:function(){try{u||null==n.return||n.return()}finally{if(a)throw i}}}}function Yt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Xt={transform:function(t,n){t.children=e.createDraft(t.children);var r=t.selection&&e.createDraft(t.selection);try{r=function(t,e,n){switch(n.type){case"insert_node":var r=n.path,o=n.node,i=St.parent(t,r),u=r[r.length-1];if(u>i.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(r,"] because the destination is past the end of the node."));if(i.children.splice(u,0,o),e){var a,s=Kt(Ft.points(e));try{for(s.s();!(a=s.n()).done;){var l=h(a.value,2),f=l[0];e[l[1]]=Pt.transform(f,n)}}catch(t){s.e(t)}finally{s.f()}}break;case"insert_text":var d=n.path,p=n.offset,v=n.text;if(0===v.length)break;var g=St.leaf(t,d),y=g.text.slice(0,p),m=g.text.slice(p);if(g.text=y+v+m,e){var b,E=Kt(Ft.points(e));try{for(E.s();!(b=E.n()).done;){var w=h(b.value,2),S=w[0];e[w[1]]=Pt.transform(S,n)}}catch(t){E.e(t)}finally{E.f()}}break;case"merge_node":var C=n.path,D=St.get(t,C),O=At.previous(C),A=St.get(t,O),x=St.parent(t,C),T=C[C.length-1];if(Gt.isText(D)&&Gt.isText(A))A.text+=D.text;else{if(Gt.isText(D)||Gt.isText(A))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(C,"] to nodes of different interfaces: ").concat(jt.stringify(D)," ").concat(jt.stringify(A)));var N;(N=A.children).push.apply(N,c(D.children))}if(x.children.splice(T,1),e){var P,k=Kt(Ft.points(e));try{for(k.s();!(P=k.n()).done;){var I=h(P.value,2),B=I[0];e[I[1]]=Pt.transform(B,n)}}catch(t){k.e(t)}finally{k.f()}}break;case"move_node":var F=n.path,R=n.newPath;if(At.isAncestor(F,R))throw new Error("Cannot move a path [".concat(F,"] to new path [").concat(R,"] because the destination is inside itself."));var _=St.get(t,F),j=St.parent(t,F),L=F[F.length-1];j.children.splice(L,1);var M=At.transform(F,n),z=St.get(t,At.parent(M)),H=M[M.length-1];if(z.children.splice(H,0,_),e){var $,U=Kt(Ft.points(e));try{for(U.s();!($=U.n()).done;){var V=h($.value,2),G=V[0];e[V[1]]=Pt.transform(G,n)}}catch(t){U.e(t)}finally{U.f()}}break;case"remove_node":var W=n.path,q=W[W.length-1];if(St.parent(t,W).children.splice(q,1),e){var K,Y=Kt(Ft.points(e));try{for(Y.s();!(K=Y.n()).done;){var X=h(K.value,2),J=X[0],Z=X[1],Q=Pt.transform(J,n);if(null!=e&&null!=Q)e[Z]=Q;else{var tt,et=void 0,nt=void 0,rt=Kt(St.texts(t));try{for(rt.s();!(tt=rt.n()).done;){var ot=h(tt.value,2),it=ot[0],ut=ot[1];if(-1!==At.compare(ut,W)){nt=[it,ut];break}et=[it,ut]}}catch(t){rt.e(t)}finally{rt.f()}var at=!1;et&&nt&&(at=At.equals(nt[1],W)?!At.hasPrevious(nt[1]):At.common(et[1],W).length<At.common(nt[1],W).length),et&&!at?(J.path=et[1],J.offset=et[0].text.length):nt?(J.path=nt[1],J.offset=0):e=null}}}catch(t){Y.e(t)}finally{Y.f()}}break;case"remove_text":var st=n.path,ct=n.offset,lt=n.text;if(0===lt.length)break;var ft=St.leaf(t,st),dt=ft.text.slice(0,ct),pt=ft.text.slice(ct+lt.length);if(ft.text=dt+pt,e){var ht,vt=Kt(Ft.points(e));try{for(vt.s();!(ht=vt.n()).done;){var gt=h(ht.value,2),yt=gt[0];e[gt[1]]=Pt.transform(yt,n)}}catch(t){vt.e(t)}finally{vt.f()}}break;case"set_node":var mt=n.path,bt=n.properties,Et=n.newProperties;if(0===mt.length)throw new Error("Cannot set properties on the root node!");var wt=St.get(t,mt);for(var Ct in Et){if("children"===Ct||"text"===Ct)throw new Error('Cannot set the "'.concat(Ct,'" property of nodes!'));var Dt=Et[Ct];null==Dt?delete wt[Ct]:wt[Ct]=Dt}for(var Ot in bt)Et.hasOwnProperty(Ot)||delete wt[Ot];break;case"set_selection":var xt=n.newProperties;if(null==xt)e=xt;else{if(null==e){if(!Ft.isRange(xt))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(jt.stringify(xt)," when there is no current selection."));e=qt({},xt)}for(var Tt in xt){var Nt=xt[Tt];if(null==Nt){if("anchor"===Tt||"focus"===Tt)throw new Error('Cannot remove the "'.concat(Tt,'" selection property'));delete e[Tt]}else e[Tt]=Nt}}break;case"split_node":var kt=n.path,It=n.position,Bt=n.properties;if(0===kt.length)throw new Error('Cannot apply a "split_node" operation at path ['.concat(kt,"] because the root node cannot be split."));var Rt,_t=St.get(t,kt),Lt=St.parent(t,kt),Mt=kt[kt.length-1];if(Gt.isText(_t)){var zt=_t.text.slice(0,It),Ht=_t.text.slice(It);_t.text=zt,Rt=qt(qt({},Bt),{},{text:Ht})}else{var $t=_t.children.slice(0,It),Ut=_t.children.slice(It);_t.children=$t,Rt=qt(qt({},Bt),{},{children:Ut})}if(Lt.children.splice(Mt+1,0,Rt),e){var Vt,Wt=Kt(Ft.points(e));try{for(Wt.s();!(Vt=Wt.n()).done;){var Yt=h(Vt.value,2),Xt=Yt[0];e[Yt[1]]=Pt.transform(Xt,n)}}catch(t){Wt.e(t)}finally{Wt.f()}}}return e}(t,r,n)}finally{t.children=e.finishDraft(t.children),t.selection=r?e.isDraft(r)?e.finishDraft(r):r:null}}},Jt=["text"],Zt=["children"];function Qt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function te(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Qt(Object(n),!0).forEach(function(e){v(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Qt(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function ee(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return ne(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ne(t,e)}(t))||e){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return u=t.done,t},e:function(t){a=!0,i=t},f:function(){try{u||null==n.return||n.return()}finally{if(a)throw i}}}}function ne(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var re={insertNodes:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};ht.withoutNormalizing(t,function(){var r=n.hanging,o=void 0!==r&&r,i=n.voids,u=void 0!==i&&i,a=n.mode,s=void 0===a?"lowest":a,c=n.at,l=n.match,f=n.select;if(St.isNode(e)&&(e=[e]),0!==e.length){var d=h(e,1)[0];if(c||(c=t.selection?t.selection:t.children.length>0?ht.end(t,[]):[0],f=!0),null==f&&(f=!1),Ft.isRange(c))if(o||(c=ht.unhangRange(t,c)),Ft.isCollapsed(c))c=c.anchor;else{var p=Ft.edges(c),v=h(p,2)[1],g=ht.pointRef(t,v);ve.delete(t,{at:c}),c=g.unref()}if(Pt.isPoint(c)){null==l&&(l=Gt.isText(d)?function(t){return Gt.isText(t)}:t.isInline(d)?function(e){return Gt.isText(e)||ht.isInline(t,e)}:function(e){return ht.isBlock(t,e)});var y=ht.nodes(t,{at:c.path,match:l,mode:s,voids:u}),m=h(y,1)[0];if(!m)return;var b=h(m,2)[1],E=ht.pathRef(t,b),w=ht.isEnd(t,c,b);ve.splitNodes(t,{at:c,match:l,mode:s,voids:u});var S=E.unref();c=w?At.next(S):S}var C=At.parent(c),D=c[c.length-1];if(u||!ht.void(t,{at:C})){var O,A=ee(e);try{for(A.s();!(O=A.n()).done;){var x=O.value,T=C.concat(D);D++,t.apply({type:"insert_node",path:T,node:x}),c=At.next(c)}}catch(t){A.e(t)}finally{A.f()}if(c=At.previous(c),f){var N=ht.end(t,c);N&&ve.select(t,N)}}}})},liftNodes:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ht.withoutNormalizing(t,function(){var n=e.at,r=void 0===n?t.selection:n,o=e.mode,i=void 0===o?"lowest":o,u=e.voids,a=void 0!==u&&u,s=e.match;if(null==s&&(s=At.isPath(r)?ue(t,r):function(e){return ht.isBlock(t,e)}),r)for(var c=ht.nodes(t,{at:r,match:s,mode:i,voids:a}),l=Array.from(c,function(e){var n=h(e,2)[1];return ht.pathRef(t,n)}),f=0,d=l;f<d.length;f++){var p=d[f].unref();if(p.length<2)throw new Error("Cannot lift node at a path [".concat(p,"] because it has a depth of less than `2`."));var v=ht.node(t,At.parent(p)),g=h(v,2),y=g[0],m=g[1],b=p[p.length-1],E=y.children.length;if(1===E){var w=At.next(m);ve.moveNodes(t,{at:p,to:w,voids:a}),ve.removeNodes(t,{at:m,voids:a})}else if(0===b)ve.moveNodes(t,{at:p,to:m,voids:a});else if(b===E-1){var S=At.next(m);ve.moveNodes(t,{at:p,to:S,voids:a})}else{var C=At.next(p),D=At.next(m);ve.splitNodes(t,{at:C,voids:a}),ve.moveNodes(t,{at:p,to:D,voids:a})}}})},mergeNodes:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ht.withoutNormalizing(t,function(){var n=e.match,r=e.at,o=void 0===r?t.selection:r,i=e.hanging,u=void 0!==i&&i,a=e.voids,s=void 0!==a&&a,c=e.mode,l=void 0===c?"lowest":c;if(o){if(null==n)if(At.isPath(o)){var f=ht.parent(t,o),d=h(f,1)[0];n=function(t){return d.children.includes(t)}}else n=function(e){return ht.isBlock(t,e)};if(!u&&Ft.isRange(o)&&(o=ht.unhangRange(t,o)),Ft.isRange(o))if(Ft.isCollapsed(o))o=o.anchor;else{var p=Ft.edges(o),v=h(p,2)[1],g=ht.pointRef(t,v);ve.delete(t,{at:o}),o=g.unref(),null==e.at&&ve.select(t,o)}var y=ht.nodes(t,{at:o,match:n,voids:s,mode:l}),m=h(y,1)[0],b=ht.previous(t,{at:o,match:n,voids:s,mode:l});if(m&&b){var E=h(m,2),w=E[0],S=E[1],C=h(b,2),D=C[0],O=C[1];if(0!==S.length&&0!==O.length){var A,x,T=At.next(O),P=At.common(S,O),k=At.isSibling(S,O),I=Array.from(ht.levels(t,{at:S}),function(t){return h(t,1)[0]}).slice(P.length).slice(0,-1),B=ht.above(t,{at:S,mode:"highest",match:function(e){return I.includes(e)&&oe(t,e)}}),F=B&&ht.pathRef(t,B[1]);if(Gt.isText(w)&&Gt.isText(D)){w.text;var R=N(w,Jt);x=D.text.length,A=R}else{if(!ut.isElement(w)||!ut.isElement(D))throw new Error("Cannot merge the node at path [".concat(S,"] with the previous sibling because it is not the same kind: ").concat(jt.stringify(w)," ").concat(jt.stringify(D)));w.children;var _=N(w,Zt);x=D.children.length,A=_}k||ve.moveNodes(t,{at:S,to:T,voids:s}),F&&ve.removeNodes(t,{at:F.current,voids:s}),ut.isElement(D)&&ht.isEmpty(t,D)||Gt.isText(D)&&""===D.text&&0!==O[O.length-1]?ve.removeNodes(t,{at:O,voids:s}):t.apply({type:"merge_node",path:T,position:x,properties:A}),F&&F.unref()}}}})},moveNodes:function(t,e){ht.withoutNormalizing(t,function(){var n=e.to,r=e.at,o=void 0===r?t.selection:r,i=e.mode,u=void 0===i?"lowest":i,a=e.voids,s=void 0!==a&&a,c=e.match;if(o){null==c&&(c=At.isPath(o)?ue(t,o):function(e){return ht.isBlock(t,e)});for(var l=ht.pathRef(t,n),f=ht.nodes(t,{at:o,match:c,mode:u,voids:s}),d=Array.from(f,function(e){var n=h(e,2)[1];return ht.pathRef(t,n)}),p=0,v=d;p<v.length;p++){var g=v[p].unref(),y=l.current;0!==g.length&&t.apply({type:"move_node",path:g,newPath:y}),l.current&&At.isSibling(y,g)&&At.isAfter(y,g)&&(l.current=At.next(l.current))}l.unref()}})},removeNodes:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ht.withoutNormalizing(t,function(){var n=e.hanging,r=void 0!==n&&n,o=e.voids,i=void 0!==o&&o,u=e.mode,a=void 0===u?"lowest":u,s=e.at,c=void 0===s?t.selection:s,l=e.match;if(c){null==l&&(l=At.isPath(c)?ue(t,c):function(e){return ht.isBlock(t,e)}),!r&&Ft.isRange(c)&&(c=ht.unhangRange(t,c));for(var f=ht.nodes(t,{at:c,match:l,mode:a,voids:i}),d=Array.from(f,function(e){var n=h(e,2)[1];return ht.pathRef(t,n)}),p=0,v=d;p<v.length;p++){var g=v[p].unref();if(g){var y=ht.node(t,g),m=h(y,1)[0];t.apply({type:"remove_node",path:g,node:m})}}}})},setNodes:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};ht.withoutNormalizing(t,function(){var r=n.match,o=n.at,i=void 0===o?t.selection:o,u=n.compare,a=n.merge,s=n.hanging,c=void 0!==s&&s,l=n.mode,f=void 0===l?"lowest":l,d=n.split,p=void 0!==d&&d,v=n.voids,g=void 0!==v&&v;if(i){if(null==r&&(r=At.isPath(i)?ue(t,i):function(e){return ht.isBlock(t,e)}),!c&&Ft.isRange(i)&&(i=ht.unhangRange(t,i)),p&&Ft.isRange(i)){if(Ft.isCollapsed(i)&&ht.leaf(t,i.anchor)[0].text.length>0)return;var y=ht.rangeRef(t,i,{affinity:"inward"}),m=Ft.edges(i),b=h(m,2),E=b[0],w=b[1],S="lowest"===f?"lowest":"highest",C=ht.isEnd(t,w,w.path);ve.splitNodes(t,{at:w,match:r,mode:S,voids:g,always:!C});var D=ht.isStart(t,E,E.path);ve.splitNodes(t,{at:E,match:r,mode:S,voids:g,always:!D}),i=y.unref(),null==n.at&&ve.select(t,i)}u||(u=function(t,e){return t!==e});var O,A=ee(ht.nodes(t,{at:i,match:r,mode:f,voids:g}));try{for(A.s();!(O=A.n()).done;){var x=h(O.value,2),T=x[0],N=x[1],P={},k={};if(0!==N.length){var I=!1;for(var B in e)"children"!==B&&"text"!==B&&u(e[B],T[B])&&(I=!0,T.hasOwnProperty(B)&&(P[B]=T[B]),a?null!=e[B]&&(k[B]=a(T[B],e[B])):null!=e[B]&&(k[B]=e[B]));I&&t.apply({type:"set_node",path:N,properties:P,newProperties:k})}}}catch(t){A.e(t)}finally{A.f()}}})},splitNodes:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ht.withoutNormalizing(t,function(){var n=e.mode,r=void 0===n?"lowest":n,o=e.voids,i=void 0!==o&&o,u=e.match,a=e.at,s=void 0===a?t.selection:a,c=e.height,l=void 0===c?0:c,f=e.always,d=void 0!==f&&f;if(null==u&&(u=function(e){return ht.isBlock(t,e)}),Ft.isRange(s)&&(s=ie(t,s)),At.isPath(s)){var p=s,v=ht.point(t,p),g=ht.parent(t,p),y=h(g,1)[0];u=function(t){return t===y},l=v.path.length-p.length+1,s=v,d=!0}if(s){var m,b=ht.pointRef(t,s,{affinity:"backward"});try{var E=ht.nodes(t,{at:s,match:u,mode:r,voids:i}),w=h(E,1)[0];if(!w)return;var S=ht.void(t,{at:s,mode:"highest"});if(!i&&S){var C=h(S,2),D=C[0],O=C[1];if(ut.isElement(D)&&t.isInline(D)){var A=ht.after(t,O);if(!A){var x=At.next(O);ve.insertNodes(t,{text:""},{at:x,voids:i}),A=ht.point(t,x)}s=A,d=!0}l=s.path.length-O.length+1,d=!0}m=ht.pointRef(t,s);var T,N=s.path.length-l,P=h(w,2)[1],k=s.path.slice(0,N),I=0===l?s.offset:s.path[N]+0,B=ee(ht.levels(t,{at:k,reverse:!0,voids:i}));try{for(B.s();!(T=B.n()).done;){var F=h(T.value,2),R=F[0],_=F[1],j=!1;if(_.length<P.length||0===_.length||!i&&ht.isVoid(t,R))break;var L=b.current,M=ht.isEnd(t,L,_);if(d||!b||!ht.isEdge(t,L,_)){j=!0;var z=St.extractProps(R);t.apply({type:"split_node",path:_,position:I,properties:z})}I=_[_.length-1]+(j||M?1:0)}}catch(t){B.e(t)}finally{B.f()}if(null==e.at){var H=m.current||ht.end(t,[]);ve.select(t,H)}}finally{var $;b.unref(),null===($=m)||void 0===$||$.unref()}}})},unsetNodes:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Array.isArray(e)||(e=[e]);var r,o={},i=ee(e);try{for(i.s();!(r=i.n()).done;){o[r.value]=null}}catch(t){i.e(t)}finally{i.f()}ve.setNodes(t,o,n)},unwrapNodes:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ht.withoutNormalizing(t,function(){var n=e.mode,r=void 0===n?"lowest":n,o=e.split,i=void 0!==o&&o,u=e.voids,a=void 0!==u&&u,s=e.at,c=void 0===s?t.selection:s,l=e.match;if(c){null==l&&(l=At.isPath(c)?ue(t,c):function(e){return ht.isBlock(t,e)}),At.isPath(c)&&(c=ht.range(t,c));var f,d=Ft.isRange(c)?ht.rangeRef(t,c):null,p=ht.nodes(t,{at:c,match:l,mode:r,voids:a}),v=Array.from(p,function(e){var n=h(e,2)[1];return ht.pathRef(t,n)}).reverse(),g=ee(v);try{var y=function(){var e=f.value.unref(),n=ht.node(t,e),r=h(n,1)[0],o=ht.range(t,e);i&&d&&(o=Ft.intersection(d.current,o)),ve.liftNodes(t,{at:o,match:function(t){return ut.isAncestor(r)&&r.children.includes(t)},voids:a})};for(g.s();!(f=g.n()).done;)y()}catch(t){g.e(t)}finally{g.f()}d&&d.unref()}})},wrapNodes:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};ht.withoutNormalizing(t,function(){var r=n.mode,o=void 0===r?"lowest":r,i=n.split,u=void 0!==i&&i,a=n.voids,s=void 0!==a&&a,c=n.match,l=n.at,f=void 0===l?t.selection:l;if(f){if(null==c&&(c=At.isPath(f)?ue(t,f):t.isInline(e)?function(e){return ht.isInline(t,e)||Gt.isText(e)}:function(e){return ht.isBlock(t,e)}),u&&Ft.isRange(f)){var d=Ft.edges(f),p=h(d,2),v=p[0],g=p[1],y=ht.rangeRef(t,f,{affinity:"inward"});ve.splitNodes(t,{at:g,match:c,voids:s}),ve.splitNodes(t,{at:v,match:c,voids:s}),f=y.unref(),null==n.at&&ve.select(t,f)}for(var m=Array.from(ht.nodes(t,{at:f,match:t.isInline(e)?function(e){return ht.isBlock(t,e)}:function(t){return ht.isEditor(t)},mode:"lowest",voids:s})),b=0,E=m;b<E.length;b++){var w=h(E[b],2)[1],S=Ft.isRange(f)?Ft.intersection(f,ht.range(t,w)):f;if(S){var C=Array.from(ht.nodes(t,{at:S,match:c,mode:o,voids:s}));if(C.length>0){var D=function(){var n=h(C,1)[0],r=C[C.length-1],o=h(n,2)[1],i=h(r,2)[1];if(0===o.length&&0===i.length)return"continue";var u=At.equals(o,i)?At.parent(o):At.common(o,i),a=ht.range(t,o,i),c=ht.node(t,u),l=h(c,1)[0],f=u.length+1,d=At.next(i.slice(0,f)),p=te(te({},e),{},{children:[]});ve.insertNodes(t,p,{at:d,voids:s}),ve.moveNodes(t,{at:a,match:function(t){return ut.isAncestor(l)&&l.children.includes(t)},to:d.concat(0),voids:s})}();if("continue"===D)continue}}}}})}},oe=function t(e,n){if(ut.isElement(n)){var r=n;return!!ht.isVoid(e,n)||1===r.children.length&&t(e,r.children[0])}return!ht.isEditor(n)},ie=function(t,e){if(Ft.isCollapsed(e))return e.anchor;var n=Ft.edges(e),r=h(n,2)[1],o=ht.pointRef(t,r);return ve.delete(t,{at:e}),o.unref()},ue=function(t,e){var n=ht.node(t,e),r=h(n,1)[0];return function(t){return t===r}};function ae(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function se(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ae(Object(n),!0).forEach(function(e){v(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ae(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var ce={collapse:function(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).edge,n=void 0===e?"anchor":e,r=t.selection;if(r)if("anchor"===n)ve.select(t,r.anchor);else if("focus"===n)ve.select(t,r.focus);else if("start"===n){var o=Ft.edges(r),i=h(o,1)[0];ve.select(t,i)}else if("end"===n){var u=Ft.edges(r),a=h(u,2)[1];ve.select(t,a)}},deselect:function(t){var e=t.selection;e&&t.apply({type:"set_selection",properties:e,newProperties:null})},move:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.selection,r=e.distance,o=void 0===r?1:r,i=e.unit,u=void 0===i?"character":i,a=e.reverse,s=void 0!==a&&a,c=e.edge,l=void 0===c?null:c;if(n){"start"===l&&(l=Ft.isBackward(n)?"focus":"anchor"),"end"===l&&(l=Ft.isBackward(n)?"anchor":"focus");var f=n.anchor,d=n.focus,p={distance:o,unit:u},h={};if(null==l||"anchor"===l){var v=s?ht.before(t,f,p):ht.after(t,f,p);v&&(h.anchor=v)}if(null==l||"focus"===l){var g=s?ht.before(t,d,p):ht.after(t,d,p);g&&(h.focus=g)}ve.setSelection(t,h)}},select:function(t,e){var n=t.selection;if(e=ht.range(t,e),n)ve.setSelection(t,e);else{if(!Ft.isRange(e))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(jt.stringify(e)));t.apply({type:"set_selection",properties:n,newProperties:e})}},setPoint:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.selection,o=n.edge,i=void 0===o?"both":o;if(r){"start"===i&&(i=Ft.isBackward(r)?"focus":"anchor"),"end"===i&&(i=Ft.isBackward(r)?"anchor":"focus");var u=r.anchor,a=r.focus,s="anchor"===i?u:a;ve.setSelection(t,v({},"anchor"===i?"anchor":"focus",se(se({},s),e)))}},setSelection:function(t,e){var n=t.selection,r={},o={};if(n){for(var i in e)("anchor"===i&&null!=e.anchor&&!Pt.equals(e.anchor,n.anchor)||"focus"===i&&null!=e.focus&&!Pt.equals(e.focus,n.focus)||"anchor"!==i&&"focus"!==i&&e[i]!==n[i])&&(r[i]=n[i],o[i]=e[i]);Object.keys(r).length>0&&t.apply({type:"set_selection",properties:r,newProperties:o})}}};function le(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return fe(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fe(t,e)}(t))||e){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return u=t.done,t},e:function(t){a=!0,i=t},f:function(){try{u||null==n.return||n.return()}finally{if(a)throw i}}}}function fe(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var de={delete:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ht.withoutNormalizing(t,function(){var n=e.reverse,r=void 0!==n&&n,o=e.unit,i=void 0===o?"character":o,u=e.distance,a=void 0===u?1:u,s=e.voids,c=void 0!==s&&s,l=e.at,f=void 0===l?t.selection:l,d=e.hanging,p=void 0!==d&&d;if(f){var v=!1;if(Ft.isRange(f)&&Ft.isCollapsed(f)&&(v=!0,f=f.anchor),Pt.isPoint(f)){var g=ht.void(t,{at:f,mode:"highest"});if(!c&&g){f=h(g,2)[1]}else{var y={unit:i,distance:a};f={anchor:f,focus:r?ht.before(t,f,y)||ht.start(t,[]):ht.after(t,f,y)||ht.end(t,[])},p=!0}}if(At.isPath(f))ve.removeNodes(t,{at:f,voids:c});else if(!Ft.isCollapsed(f)){if(!p){var m=Ft.edges(f),b=h(m,2)[1],E=ht.end(t,[]);Pt.equals(b,E)||(f=ht.unhangRange(t,f,{voids:c}))}var w=Ft.edges(f),S=h(w,2),C=S[0],D=S[1],O=ht.above(t,{match:function(e){return ht.isBlock(t,e)},at:C,voids:c}),A=ht.above(t,{match:function(e){return ht.isBlock(t,e)},at:D,voids:c}),x=O&&A&&!At.equals(O[1],A[1]),T=At.equals(C.path,D.path),N=c?null:ht.void(t,{at:C,mode:"highest"}),P=c?null:ht.void(t,{at:D,mode:"highest"});if(N){var k=ht.before(t,C);k&&O&&At.isAncestor(O[1],k.path)&&(C=k)}if(P){var I=ht.after(t,D);I&&A&&At.isAncestor(A[1],I.path)&&(D=I)}var B,F,R=[],_=le(ht.nodes(t,{at:f,voids:c}));try{for(_.s();!(F=_.n()).done;){var j=F.value,L=h(j,2),M=L[0],z=L[1];B&&0===At.compare(z,B)||(!c&&ht.isVoid(t,M)||!At.isCommon(z,C.path)&&!At.isCommon(z,D.path))&&(R.push(j),B=z)}}catch(t){_.e(t)}finally{_.f()}var H=Array.from(R,function(e){var n=h(e,2)[1];return ht.pathRef(t,n)}),$=ht.pointRef(t,C),U=ht.pointRef(t,D),V="";if(!T&&!N){var G=$.current,W=ht.leaf(t,G),q=h(W,1)[0],K=G.path,Y=C.offset,X=q.text.slice(Y);X.length>0&&(t.apply({type:"remove_text",path:K,offset:Y,text:X}),V=X)}for(var J=0,Z=H;J<Z.length;J++){var Q=Z[J].unref();ve.removeNodes(t,{at:Q,voids:c})}if(!P){var tt=U.current,et=ht.leaf(t,tt),nt=h(et,1)[0],rt=tt.path,ot=T?C.offset:0,it=nt.text.slice(ot,D.offset);it.length>0&&(t.apply({type:"remove_text",path:rt,offset:ot,text:it}),V=it)}!T&&x&&U.current&&$.current&&ve.mergeNodes(t,{at:U.current,hanging:!0,voids:c}),v&&r&&"character"===i&&V.length>1&&V.match(/[\u0E00-\u0E7F]+/)&&ve.insertText(t,V.slice(0,V.length-a));var ut=$.unref(),at=U.unref(),st=r?ut||at:at||ut;null==e.at&&st&&ve.select(t,st)}}})},insertFragment:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};ht.withoutNormalizing(t,function(){var r=n.hanging,o=void 0!==r&&r,i=n.voids,u=void 0!==i&&i,a=n.at,s=void 0===a?t.selection:a;if(e.length&&s){if(Ft.isRange(s))if(o||(s=ht.unhangRange(t,s)),Ft.isCollapsed(s))s=s.anchor;else{var c=Ft.edges(s),l=h(c,2)[1];if(!u&&ht.void(t,{at:l}))return;var f=ht.pointRef(t,l);ve.delete(t,{at:s}),s=f.unref()}else At.isPath(s)&&(s=ht.start(t,s));if(u||!ht.void(t,{at:s})){var d=ht.above(t,{at:s,match:function(e){return ht.isInline(t,e)},mode:"highest",voids:u});if(d){var p=h(d,2)[1];if(ht.isEnd(t,s,p))s=ht.after(t,p);else if(ht.isStart(t,s,p)){s=ht.before(t,p)}}var v,g=ht.above(t,{match:function(e){return ht.isBlock(t,e)},at:s,voids:u}),y=h(g,2)[1],m=ht.isStart(t,s,y),b=ht.isEnd(t,s,y),E=m&&b,w=!m||m&&b,S=!b,C=St.first({children:e},[]),D=h(C,2)[1],O=St.last({children:e},[]),A=h(O,2)[1],x=[],T=function(e){var n=h(e,2),r=n[0],o=n[1];return!(0===o.length)&&(!!E||!(w&&At.isAncestor(o,D)&&ut.isElement(r)&&!t.isVoid(r)&&!t.isInline(r))&&!(S&&At.isAncestor(o,A)&&ut.isElement(r)&&!t.isVoid(r)&&!t.isInline(r)))},N=le(St.nodes({children:e},{pass:T}));try{for(N.s();!(v=N.n()).done;){var P=v.value;T(P)&&x.push(P)}}catch(t){N.e(t)}finally{N.f()}for(var k=[],I=[],B=[],F=!0,R=!1,_=0,j=x;_<j.length;_++){var L=h(j[_],1)[0];ut.isElement(L)&&!t.isInline(L)?(F=!1,R=!0,I.push(L)):F?k.push(L):B.push(L)}var M=ht.nodes(t,{at:s,match:function(e){return Gt.isText(e)||ht.isInline(t,e)},mode:"highest",voids:u}),z=h(M,1)[0],H=h(z,2)[1],$=ht.isStart(t,s,H),U=ht.isEnd(t,s,H),V=ht.pathRef(t,b&&!B.length?At.next(y):y),G=ht.pathRef(t,U?At.next(H):H);ve.splitNodes(t,{at:s,match:function(e){return R?ht.isBlock(t,e):Gt.isText(e)||ht.isInline(t,e)},mode:R?"lowest":"highest",always:R&&(!m||k.length>0)&&(!b||B.length>0),voids:u});var W,q=ht.pathRef(t,!$||$&&U?At.next(H):H);if(ve.insertNodes(t,k,{at:q.current,match:function(e){return Gt.isText(e)||ht.isInline(t,e)},mode:"highest",voids:u}),E&&!k.length&&I.length&&!B.length&&ve.delete(t,{at:y,voids:u}),ve.insertNodes(t,I,{at:V.current,match:function(e){return ht.isBlock(t,e)},mode:"lowest",voids:u}),ve.insertNodes(t,B,{at:G.current,match:function(e){return Gt.isText(e)||ht.isInline(t,e)},mode:"highest",voids:u}),!n.at)if(B.length>0&&G.current?W=At.previous(G.current):I.length>0&&V.current?W=At.previous(V.current):q.current&&(W=At.previous(q.current)),W){var K=ht.end(t,W);ve.select(t,K)}q.unref(),V.unref(),G.unref()}}})},insertText:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};ht.withoutNormalizing(t,function(){var r=n.voids,o=void 0!==r&&r,i=n.at,u=void 0===i?t.selection:i;if(u){if(At.isPath(u)&&(u=ht.range(t,u)),Ft.isRange(u))if(Ft.isCollapsed(u))u=u.anchor;else{var a=Ft.end(u);if(!o&&ht.void(t,{at:a}))return;var s=Ft.start(u),c=ht.pointRef(t,s),l=ht.pointRef(t,a);ve.delete(t,{at:u,voids:o});var f=c.unref(),d=l.unref();u=f||d,ve.setSelection(t,{anchor:u,focus:u})}if(o||!ht.void(t,{at:u})){var p=u,h=p.path,v=p.offset;e.length>0&&t.apply({type:"insert_text",path:h,offset:v,text:e})}}})}};function pe(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function he(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?pe(Object(n),!0).forEach(function(e){v(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):pe(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var ve=he(he(he(he({},Xt),re),ce),de);return ip.Editor=ht,ip.Element=ut,ip.Location=vt,ip.Node=St,ip.Operation=Ot,ip.Path=At,ip.PathRef=xt,ip.Point=Pt,ip.PointRef=kt,ip.Range=Ft,ip.RangeRef=Rt,ip.Scrubber=jt,ip.Span=gt,ip.Text=Gt,ip.Transforms=ve,ip.createEditor=function(){var t={children:[],operations:[],selection:null,marks:null,isInline:function(){return!1},isVoid:function(){return!1},onChange:function(){},apply:function(e){var n,r=O(ht.pathRefs(t));try{for(r.s();!(n=r.n()).done;){var o=n.value;xt.transform(o,e)}}catch(t){r.e(t)}finally{r.f()}var i,u=O(ht.pointRefs(t));try{for(u.s();!(i=u.n()).done;){var a=i.value;kt.transform(a,e)}}catch(t){u.e(t)}finally{u.f()}var s,c=O(ht.rangeRefs(t));try{for(c.s();!(s=c.n()).done;){var l=s.value;Rt.transform(l,e)}}catch(t){c.e(t)}finally{c.f()}var f,d,p=g.get(t)||[],h=y.get(t)||new Set,v=function(t){if(t){var e=t.join(",");d.has(e)||(d.add(e),f.push(t))}};if(At.operationCanTransformPath(e)){f=[],d=new Set;var b,E=O(p);try{for(E.s();!(b=E.n()).done;){var w=b.value;v(At.transform(w,e))}}catch(t){E.e(t)}finally{E.f()}}else f=p,d=h;var S,C=O(t.getDirtyPaths(e));try{for(C.s();!(S=C.n()).done;){v(S.value)}}catch(t){C.e(t)}finally{C.f()}g.set(t,f),y.set(t,d),ve.transform(t,e),t.operations.push(e),ht.normalize(t),"set_selection"===e.type&&(t.marks=null),m.get(t)||(m.set(t,!0),Promise.resolve().then(function(){m.set(t,!1),t.onChange(),t.operations=[]}))},addMark:function(e,n){var r=t.selection;if(r)if(Ft.isExpanded(r))ve.setNodes(t,v({},e,n),{match:Gt.isText,split:!0});else{var o=D(D({},ht.marks(t)||{}),{},v({},e,n));t.marks=o,m.get(t)||t.onChange()}},deleteBackward:function(e){var n=t.selection;n&&Ft.isCollapsed(n)&&ve.delete(t,{unit:e,reverse:!0})},deleteForward:function(e){var n=t.selection;n&&Ft.isCollapsed(n)&&ve.delete(t,{unit:e})},deleteFragment:function(e){var n=t.selection;n&&Ft.isExpanded(n)&&ve.delete(t,{reverse:"backward"===e})},getFragment:function(){var e=t.selection;return e?St.fragment(t,e):[]},insertBreak:function(){ve.splitNodes(t,{always:!0})},insertSoftBreak:function(){ve.splitNodes(t,{always:!0})},insertFragment:function(e){ve.insertFragment(t,e)},insertNode:function(e){ve.insertNodes(t,e)},insertText:function(e){var n=t.selection,r=t.marks;if(n){if(r){var o=D({text:e},r);ve.insertNodes(t,o)}else ve.insertText(t,e);t.marks=null}},normalizeNode:function(e){var n=h(e,2),r=n[0],o=n[1];if(!Gt.isText(r))if(ut.isElement(r)&&0===r.children.length){ve.insertNodes(t,{text:""},{at:o.concat(0),voids:!0})}else for(var i=!ht.isEditor(r)&&(ut.isElement(r)&&(t.isInline(r)||0===r.children.length||Gt.isText(r.children[0])||t.isInline(r.children[0]))),u=0,a=0;a<r.children.length;a++,u++){var s=St.get(t,o);if(!Gt.isText(s)){var c=r.children[a],l=s.children[u-1],f=a===r.children.length-1;if((Gt.isText(c)||ut.isElement(c)&&t.isInline(c))!==i)ve.removeNodes(t,{at:o.concat(u),voids:!0}),u--;else if(ut.isElement(c)){if(t.isInline(c))if(null!=l&&Gt.isText(l)){if(f){ve.insertNodes(t,{text:""},{at:o.concat(u+1),voids:!0}),u++}}else{ve.insertNodes(t,{text:""},{at:o.concat(u),voids:!0}),u++}}else null!=l&&Gt.isText(l)&&(Gt.equals(c,l,{loose:!0})?(ve.mergeNodes(t,{at:o.concat(u),voids:!0}),u--):""===l.text?(ve.removeNodes(t,{at:o.concat(u-1),voids:!0}),u--):""===c.text&&(ve.removeNodes(t,{at:o.concat(u),voids:!0}),u--))}}},removeMark:function(e){var n=t.selection;if(n)if(Ft.isExpanded(n))ve.unsetNodes(t,e,{match:Gt.isText,split:!0});else{var r=D({},ht.marks(t)||{});delete r[e],t.marks=r,m.get(t)||t.onChange()}},getDirtyPaths:function(t){switch(t.type){case"insert_text":case"remove_text":case"set_node":var e=t.path;return At.levels(e);case"insert_node":var n=t.node,r=t.path,o=At.levels(r),i=Gt.isText(n)?[]:Array.from(St.nodes(n),function(t){var e=h(t,2)[1];return r.concat(e)});return[].concat(c(o),c(i));case"merge_node":var u=t.path,a=At.ancestors(u),s=At.previous(u);return[].concat(c(a),[s]);case"move_node":var l=t.path,f=t.newPath;if(At.equals(l,f))return[];var d,p=[],v=[],g=O(At.ancestors(l));try{for(g.s();!(d=g.n()).done;){var y=d.value,m=At.transform(y,t);p.push(m)}}catch(t){g.e(t)}finally{g.f()}var b,E=O(At.ancestors(f));try{for(E.s();!(b=E.n()).done;){var w=b.value,S=At.transform(w,t);v.push(S)}}catch(t){E.e(t)}finally{E.f()}var C=v[v.length-1],D=f[f.length-1],A=C.concat(D);return[].concat(p,v,[A]);case"remove_node":var x=t.path,T=At.ancestors(x);return c(T);case"split_node":var N=t.path,P=At.levels(N),k=At.next(N);return[].concat(c(P),[k]);default:return[]}}};return t},ip}var gp,yp=vp(),mp={exports:{}};var bp,Ep,wp=(gp||(gp=1,function(t,e){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object Boolean]",u="[object Date]",a="[object Function]",s="[object GeneratorFunction]",c="[object Map]",l="[object Number]",f="[object Object]",d="[object Promise]",p="[object RegExp]",h="[object Set]",v="[object String]",g="[object Symbol]",y="[object WeakMap]",m="[object ArrayBuffer]",E="[object DataView]",w="[object Float32Array]",S="[object Float64Array]",C="[object Int8Array]",D="[object Int16Array]",O="[object Int32Array]",A="[object Uint8Array]",x="[object Uint8ClampedArray]",T="[object Uint16Array]",N="[object Uint32Array]",P=/\w*$/,k=/^\[object .+?Constructor\]$/,I=/^(?:0|[1-9]\d*)$/,B={};B[o]=B["[object Array]"]=B[m]=B[E]=B[i]=B[u]=B[w]=B[S]=B[C]=B[D]=B[O]=B[c]=B[l]=B[f]=B[p]=B[h]=B[v]=B[g]=B[A]=B[x]=B[T]=B[N]=!0,B["[object Error]"]=B[a]=B[y]=!1;var F="object"==typeof b&&b&&b.Object===Object&&b,R="object"==typeof self&&self&&self.Object===Object&&self,_=F||R||Function("return this")(),j=e&&!e.nodeType&&e,L=j&&t&&!t.nodeType&&t,M=L&&L.exports===j;function z(t,e){return t.set(e[0],e[1]),t}function H(t,e){return t.add(e),t}function $(t,e,n,r){for(var o=-1,i=t?t.length:0;++o<i;)n=e(n,t[o],o,t);return n}function U(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}function V(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}function G(t,e){return function(n){return t(e(n))}}function W(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}var q=Array.prototype,K=Function.prototype,Y=Object.prototype,X=_["__core-js_shared__"],J=function(){var t=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Z=K.toString,Q=Y.hasOwnProperty,tt=Y.toString,et=RegExp("^"+Z.call(Q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),nt=M?_.Buffer:void 0,rt=_.Symbol,ot=_.Uint8Array,it=G(Object.getPrototypeOf,Object),ut=Object.create,at=Y.propertyIsEnumerable,st=q.splice,ct=Object.getOwnPropertySymbols,lt=nt?nt.isBuffer:void 0,ft=G(Object.keys,Object),dt=jt(_,"DataView"),pt=jt(_,"Map"),ht=jt(_,"Promise"),vt=jt(_,"Set"),gt=jt(_,"WeakMap"),yt=jt(Object,"create"),mt=$t(dt),bt=$t(pt),Et=$t(ht),wt=$t(vt),St=$t(gt),Ct=rt?rt.prototype:void 0,Dt=Ct?Ct.valueOf:void 0;function Ot(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function At(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function xt(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Tt(t){this.__data__=new At(t)}function Nt(t,e){var n=Vt(t)||function(t){return function(t){return function(t){return!!t&&"object"==typeof t}(t)&&Gt(t)}(t)&&Q.call(t,"callee")&&(!at.call(t,"callee")||tt.call(t)==o)}(t)?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],r=n.length,i=!!r;for(var u in t)!Q.call(t,u)||i&&("length"==u||zt(u,r))||n.push(u);return n}function Pt(t,e,n){var r=t[e];Q.call(t,e)&&Ut(r,n)&&(void 0!==n||e in t)||(t[e]=n)}function kt(t,e){for(var n=t.length;n--;)if(Ut(t[n][0],e))return n;return-1}function It(t,e,n,r,d,y,b){var k;if(r&&(k=y?r(t,d,y,b):r(t)),void 0!==k)return k;if(!Kt(t))return t;var I=Vt(t);if(I){if(k=function(t){var e=t.length,n=t.constructor(e);return e&&"string"==typeof t[0]&&Q.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t),!e)return function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}(t,k)}else{var F=Mt(t),R=F==a||F==s;if(Wt(t))return function(t,e){if(e)return t.slice();var n=new t.constructor(t.length);return t.copy(n),n}(t,e);if(F==f||F==o||R&&!y){if(U(t))return y?t:{};if(k=function(t){return"function"!=typeof t.constructor||Ht(t)?{}:Kt(e=it(t))?ut(e):{};var e}(R?{}:t),!e)return function(t,e){return Rt(t,Lt(t),e)}(t,function(t,e){return t&&Rt(e,Yt(e),t)}(k,t))}else{if(!B[F])return y?t:{};k=function(t,e,n,r){var o=t.constructor;switch(e){case m:return Ft(t);case i:case u:return new o(+t);case E:return function(t,e){var n=e?Ft(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,r);case w:case S:case C:case D:case O:case A:case x:case T:case N:return function(t,e){var n=e?Ft(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}(t,r);case c:return function(t,e,n){var r=e?n(V(t),!0):V(t);return $(r,z,new t.constructor)}(t,r,n);case l:case v:return new o(t);case p:return function(t){var e=new t.constructor(t.source,P.exec(t));return e.lastIndex=t.lastIndex,e}(t);case h:return function(t,e,n){var r=e?n(W(t),!0):W(t);return $(r,H,new t.constructor)}(t,r,n);case g:return function(t){return Dt?Object(Dt.call(t)):{}}(t)}}(t,F,It,e)}}b||(b=new Tt);var _=b.get(t);if(_)return _;if(b.set(t,k),!I)var j=n?function(t){return function(t,e,n){var r=e(t);return Vt(t)?r:function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}(r,n(t))}(t,Yt,Lt)}(t):Yt(t);return function(t,e){for(var n=-1,r=t?t.length:0;++n<r&&!1!==e(t[n],n,t););}(j||t,function(o,i){j&&(o=t[i=o]),Pt(k,i,It(o,e,n,r,i,t,b))}),k}function Bt(t){return!(!Kt(t)||(e=t,J&&J in e))&&(qt(t)||U(t)?et:k).test($t(t));var e}function Ft(t){var e=new t.constructor(t.byteLength);return new ot(e).set(new ot(t)),e}function Rt(t,e,n,r){n||(n={});for(var o=-1,i=e.length;++o<i;){var u=e[o];Pt(n,u,t[u])}return n}function _t(t,e){var n,r,o=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof e?"string":"hash"]:o.map}function jt(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return Bt(n)?n:void 0}Ot.prototype.clear=function(){this.__data__=yt?yt(null):{}},Ot.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},Ot.prototype.get=function(t){var e=this.__data__;if(yt){var r=e[t];return r===n?void 0:r}return Q.call(e,t)?e[t]:void 0},Ot.prototype.has=function(t){var e=this.__data__;return yt?void 0!==e[t]:Q.call(e,t)},Ot.prototype.set=function(t,e){return this.__data__[t]=yt&&void 0===e?n:e,this},At.prototype.clear=function(){this.__data__=[]},At.prototype.delete=function(t){var e=this.__data__,n=kt(e,t);return!(n<0||(n==e.length-1?e.pop():st.call(e,n,1),0))},At.prototype.get=function(t){var e=this.__data__,n=kt(e,t);return n<0?void 0:e[n][1]},At.prototype.has=function(t){return kt(this.__data__,t)>-1},At.prototype.set=function(t,e){var n=this.__data__,r=kt(n,t);return r<0?n.push([t,e]):n[r][1]=e,this},xt.prototype.clear=function(){this.__data__={hash:new Ot,map:new(pt||At),string:new Ot}},xt.prototype.delete=function(t){return _t(this,t).delete(t)},xt.prototype.get=function(t){return _t(this,t).get(t)},xt.prototype.has=function(t){return _t(this,t).has(t)},xt.prototype.set=function(t,e){return _t(this,t).set(t,e),this},Tt.prototype.clear=function(){this.__data__=new At},Tt.prototype.delete=function(t){return this.__data__.delete(t)},Tt.prototype.get=function(t){return this.__data__.get(t)},Tt.prototype.has=function(t){return this.__data__.has(t)},Tt.prototype.set=function(t,e){var n=this.__data__;if(n instanceof At){var r=n.__data__;if(!pt||r.length<199)return r.push([t,e]),this;n=this.__data__=new xt(r)}return n.set(t,e),this};var Lt=ct?G(ct,Object):function(){return[]},Mt=function(t){return tt.call(t)};function zt(t,e){return!!(e=null==e?r:e)&&("number"==typeof t||I.test(t))&&t>-1&&t%1==0&&t<e}function Ht(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Y)}function $t(t){if(null!=t){try{return Z.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Ut(t,e){return t===e||t!=t&&e!=e}(dt&&Mt(new dt(new ArrayBuffer(1)))!=E||pt&&Mt(new pt)!=c||ht&&Mt(ht.resolve())!=d||vt&&Mt(new vt)!=h||gt&&Mt(new gt)!=y)&&(Mt=function(t){var e=tt.call(t),n=e==f?t.constructor:void 0,r=n?$t(n):void 0;if(r)switch(r){case mt:return E;case bt:return c;case Et:return d;case wt:return h;case St:return y}return e});var Vt=Array.isArray;function Gt(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=r}(t.length)&&!qt(t)}var Wt=lt||function(){return!1};function qt(t){var e=Kt(t)?tt.call(t):"";return e==a||e==s}function Kt(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function Yt(t){return Gt(t)?Nt(t):function(t){if(!Ht(t))return ft(t);var e=[];for(var n in Object(t))Q.call(t,n)&&"constructor"!=n&&e.push(n);return e}(t)}t.exports=function(t){return It(t,!0,!0)}}(mp,mp.exports)),mp.exports),Sp=E(wp);var Cp=function(){if(Ep)return bp;Ep=1;var t=9007199254740991,e="[object Arguments]",n="[object Function]",r="[object GeneratorFunction]",o=/^(?:0|[1-9]\d*)$/;function i(t,e){for(var n=-1,r=t?t.length:0;++n<r&&!1!==e(t[n],n,t););return t}var u,a,s=Object.prototype,c=s.hasOwnProperty,l=s.toString,f=s.propertyIsEnumerable,d=(u=Object.keys,a=Object,function(t){return u(a(t))});function p(t,n){var r=b(t)||function(t){return function(t){return function(t){return!!t&&"object"==typeof t}(t)&&E(t)}(t)&&c.call(t,"callee")&&(!f.call(t,"callee")||l.call(t)==e)}(t)?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],o=r.length,i=!!o;for(var u in t)!c.call(t,u)||i&&("length"==u||m(u,o))||r.push(u);return r}var h,v=(h=function(t,e){return t&&g(t,e,w)},function(t,e){if(null==t)return t;if(!E(t))return h(t,e);for(var n=t.length,r=-1,o=Object(t);++r<n&&!1!==e(o[r],r,o););return t}),g=function(t,e,n){for(var r=-1,o=Object(t),i=n(t),u=i.length;u--;){var a=i[++r];if(!1===e(o[a],a,o))break}return t};function y(t){if(n=(e=t)&&e.constructor,r="function"==typeof n&&n.prototype||s,e!==r)return d(t);var e,n,r,o=[];for(var i in Object(t))c.call(t,i)&&"constructor"!=i&&o.push(i);return o}function m(e,n){return!!(n=null==n?t:n)&&("number"==typeof e||o.test(e))&&e>-1&&e%1==0&&e<n}var b=Array.isArray;function E(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=t}(e.length)&&!function(t){var e=function(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}(t)?l.call(t):"";return e==n||e==r}(e)}function w(t){return E(t)?p(t):y(t)}function S(t){return t}return bp=function(t,e){return(b(t)?i:v)(t,"function"==typeof e?e:S)}}(),Dp=E(Cp);function Op(t){return null!==t&&"object"==typeof t&&"constructor"in t&&t.constructor===Object}function Ap(t={},e={}){Object.keys(e).forEach(n=>{void 0===t[n]?t[n]=e[n]:Op(e[n])&&Op(t[n])&&Object.keys(e[n]).length>0&&Ap(t[n],e[n])})}const xp={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Tp(){const t="undefined"!=typeof document?document:{};return Ap(t,xp),t}const Np={document:xp,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:t=>"undefined"==typeof setTimeout?(t(),null):setTimeout(t,0),cancelAnimationFrame(t){"undefined"!=typeof setTimeout&&clearTimeout(t)}};function Pp(){const t="undefined"!=typeof window?window:{};return Ap(t,Np),t}class kp extends Array{constructor(t){"number"==typeof t?super(t):(super(...t||[]),function(t){const e=t.__proto__;Object.defineProperty(t,"__proto__",{get:()=>e,set(t){e.__proto__=t}})}(this))}}function Ip(t=[]){const e=[];return t.forEach(t=>{Array.isArray(t)?e.push(...Ip(t)):e.push(t)}),e}function Bp(t,e){return Array.prototype.filter.call(t,e)}function Fp(t){return t.toLowerCase().replace(/-(.)/g,(t,e)=>e.toUpperCase())}function Rp(t,e){const n=Pp(),r=Tp();let o=[];if(!e&&t instanceof kp)return t;if(!t)return new kp(o);if("string"==typeof t){const n=t.trim();if(n.indexOf("<")>=0&&n.indexOf(">")>=0){let t="div";0===n.indexOf("<li")&&(t="ul"),0===n.indexOf("<tr")&&(t="tbody"),0!==n.indexOf("<td")&&0!==n.indexOf("<th")||(t="tr"),0===n.indexOf("<tbody")&&(t="table"),0===n.indexOf("<option")&&(t="select");const e=r.createElement(t);e.innerHTML=n;for(let t=0;t<e.childNodes.length;t+=1)o.push(e.childNodes[t])}else o=function(t,e){if("string"!=typeof t)return[t];const n=[],r=e.querySelectorAll(t);for(let t=0;t<r.length;t+=1)n.push(r[t]);return n}(t.trim(),e||r)}else if(t.nodeType||t===n||t===r)o.push(t);else if(Array.isArray(t)){if(t instanceof kp)return t;o=t}return new kp(function(t){const e=[];for(let n=0;n<t.length;n+=1)-1===e.indexOf(t[n])&&e.push(t[n]);return e}(o))}function _p(...t){const e=Ip(t.map(t=>t.split(" ")));return this.forEach(t=>{t.classList.add(...e)}),this}function jp(...t){const e=Ip(t.map(t=>t.split(" ")));return this.forEach(t=>{t.classList.remove(...e)}),this}function Lp(...t){const e=Ip(t.map(t=>t.split(" ")));return Bp(this,t=>e.filter(e=>t.classList.contains(e)).length>0).length>0}function Mp(t,e){if(1===arguments.length&&"string"==typeof t)return this[0]?this[0].getAttribute(t):void 0;for(let n=0;n<this.length;n+=1)if(2===arguments.length)this[n].setAttribute(t,e);else for(const e in t)this[n][e]=t[e],this[n].setAttribute(e,t[e]);return this}function zp(t){for(let e=0;e<this.length;e+=1)this[e].removeAttribute(t);return this}function Hp(t,e){let n;if(void 0===e){if(n=this[0],!n)return;if(n.dom7ElementDataStorage&&t in n.dom7ElementDataStorage)return n.dom7ElementDataStorage[t];const e=n.getAttribute(`data-${t}`);return e||void 0}for(let r=0;r<this.length;r+=1)n=this[r],n.dom7ElementDataStorage||(n.dom7ElementDataStorage={}),n.dom7ElementDataStorage[t]=e;return this}function $p(){const t=this[0];if(!t)return;const e={};if(t.dataset)for(const n in t.dataset)e[n]=t.dataset[n];else for(let n=0;n<t.attributes.length;n+=1){const r=t.attributes[n];r.name.indexOf("data-")>=0&&(e[Fp(r.name.split("data-")[1])]=r.value)}for(const t in e)"false"===e[t]?e[t]=!1:"true"===e[t]?e[t]=!0:parseFloat(e[t])===1*e[t]&&(e[t]*=1);return e}function Up(t){if(void 0===t){const t=this[0];if(!t)return;if(t.multiple&&"select"===t.nodeName.toLowerCase()){const e=[];for(let n=0;n<t.selectedOptions.length;n+=1)e.push(t.selectedOptions[n].value);return e}return t.value}for(let e=0;e<this.length;e+=1){const n=this[e];if(Array.isArray(t)&&n.multiple&&"select"===n.nodeName.toLowerCase())for(let e=0;e<n.options.length;e+=1)n.options[e].selected=t.indexOf(n.options[e].value)>=0;else n.value=t}return this}function Vp(...t){let[e,n,r,o]=t;function i(t){const e=t.target;if(!e)return;const o=t.target.dom7EventData||[];if(o.indexOf(t)<0&&o.unshift(t),Rp(e).is(n))r.apply(e,o);else{const t=Rp(e).parents();for(let e=0;e<t.length;e+=1)Rp(t[e]).is(n)&&r.apply(t[e],o)}}function u(t){const e=t&&t.target&&t.target.dom7EventData||[];e.indexOf(t)<0&&e.unshift(t),r.apply(this,e)}"function"==typeof t[1]&&([e,r,o]=t,n=void 0),o||(o=!1);const a=e.split(" ");let s;for(let t=0;t<this.length;t+=1){const e=this[t];if(n)for(s=0;s<a.length;s+=1){const t=a[s];e.dom7LiveListeners||(e.dom7LiveListeners={}),e.dom7LiveListeners[t]||(e.dom7LiveListeners[t]=[]),e.dom7LiveListeners[t].push({listener:r,proxyListener:i}),e.addEventListener(t,i,o)}else for(s=0;s<a.length;s+=1){const t=a[s];e.dom7Listeners||(e.dom7Listeners={}),e.dom7Listeners[t]||(e.dom7Listeners[t]=[]),e.dom7Listeners[t].push({listener:r,proxyListener:u}),e.addEventListener(t,u,o)}}return this}function Gp(...t){let[e,n,r,o]=t;"function"==typeof t[1]&&([e,r,o]=t,n=void 0),o||(o=!1);const i=e.split(" ");for(let t=0;t<i.length;t+=1){const e=i[t];for(let t=0;t<this.length;t+=1){const i=this[t];let u;if(!n&&i.dom7Listeners?u=i.dom7Listeners[e]:n&&i.dom7LiveListeners&&(u=i.dom7LiveListeners[e]),u&&u.length)for(let t=u.length-1;t>=0;t-=1){const n=u[t];r&&n.listener===r||r&&n.listener&&n.listener.dom7proxy&&n.listener.dom7proxy===r?(i.removeEventListener(e,n.proxyListener,o),u.splice(t,1)):r||(i.removeEventListener(e,n.proxyListener,o),u.splice(t,1))}}}return this}function Wp(){const t=Pp();return this[0]===t?t.innerWidth:this.length>0?parseFloat(this.css("width")):null}function qp(){const t=Pp();return this[0]===t?t.innerHeight:this.length>0?parseFloat(this.css("height")):null}function Kp(){if(this.length>0){const t=Pp(),e=Tp(),n=this[0],r=n.getBoundingClientRect(),o=e.body,i=n.clientTop||o.clientTop||0,u=n.clientLeft||o.clientLeft||0,a=n===t?t.scrollY:n.scrollTop,s=n===t?t.scrollX:n.scrollLeft;return{top:r.top+a-i,left:r.left+s-u}}return null}function Yp(){for(let t=0;t<this.length;t+=1)this[t].style.display="none";return this}function Xp(){const t=Pp();for(let e=0;e<this.length;e+=1){const n=this[e];"none"===n.style.display&&(n.style.display=""),"none"===t.getComputedStyle(n,null).getPropertyValue("display")&&(n.style.display="block")}return this}function Jp(t,e){const n=Pp();let r;if(1===arguments.length){if("string"!=typeof t){for(r=0;r<this.length;r+=1)for(const e in t)this[r].style[e]=t[e];return this}if(this[0])return n.getComputedStyle(this[0],null).getPropertyValue(t)}if(2===arguments.length&&"string"==typeof t){for(r=0;r<this.length;r+=1)this[r].style[t]=e;return this}return this}function Zp(t){return t?(this.forEach((e,n)=>{t.apply(e,[e,n])}),this):this}function Qp(t){return Rp(Bp(this,t))}function th(t){if(void 0===t)return this[0]?this[0].innerHTML:null;for(let e=0;e<this.length;e+=1)this[e].innerHTML=t;return this}function eh(t){if(void 0===t)return this[0]?this[0].textContent.trim():null;for(let e=0;e<this.length;e+=1)this[e].textContent=t;return this}function nh(t){const e=Pp(),n=Tp(),r=this[0];let o,i;if(!r||void 0===t)return!1;if("string"==typeof t){if(r.matches)return r.matches(t);if(r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(r.msMatchesSelector)return r.msMatchesSelector(t);for(o=Rp(t),i=0;i<o.length;i+=1)if(o[i]===r)return!0;return!1}if(t===n)return r===n;if(t===e)return r===e;if(t.nodeType||t instanceof kp){for(o=t.nodeType?[t]:t,i=0;i<o.length;i+=1)if(o[i]===r)return!0;return!1}return!1}function rh(...t){let e;const n=Tp();for(let r=0;r<t.length;r+=1){e=t[r];for(let t=0;t<this.length;t+=1)if("string"==typeof e){const r=n.createElement("div");for(r.innerHTML=e;r.firstChild;)this[t].appendChild(r.firstChild)}else if(e instanceof kp)for(let n=0;n<e.length;n+=1)this[t].appendChild(e[n]);else this[t].appendChild(e)}return this}function oh(t){const e=Tp();let n,r;for(n=0;n<this.length;n+=1)if("string"==typeof t){const o=e.createElement("div");for(o.innerHTML=t,r=o.childNodes.length-1;r>=0;r-=1)this[n].insertBefore(o.childNodes[r],this[n].childNodes[0])}else if(t instanceof kp)for(r=0;r<t.length;r+=1)this[n].insertBefore(t[r],this[n].childNodes[0]);else this[n].insertBefore(t,this[n].childNodes[0]);return this}function ih(t){const e=[];for(let n=0;n<this.length;n+=1)null!==this[n].parentNode&&(t?Rp(this[n].parentNode).is(t)&&e.push(this[n].parentNode):e.push(this[n].parentNode));return Rp(e)}function uh(t){const e=[];for(let n=0;n<this.length;n+=1){let r=this[n].parentNode;for(;r;)t?Rp(r).is(t)&&e.push(r):e.push(r),r=r.parentNode}return Rp(e)}function ah(t){const e=[];for(let n=0;n<this.length;n+=1){const r=this[n].querySelectorAll(t);for(let t=0;t<r.length;t+=1)e.push(r[t])}return Rp(e)}function sh(t){const e=[];for(let n=0;n<this.length;n+=1){const r=this[n].children;for(let n=0;n<r.length;n+=1)t&&!Rp(r[n]).is(t)||e.push(r[n])}return Rp(e)}function ch(){for(let t=0;t<this.length;t+=1)this[t].parentNode&&this[t].parentNode.removeChild(this[t]);return this}function lh(){for(let t=0;t<this.length;t+=1){const e=this[t];if(1===e.nodeType){for(let t=0;t<e.childNodes.length;t+=1)e.childNodes[t].parentNode&&e.childNodes[t].parentNode.removeChild(e.childNodes[t]);e.textContent=""}}return this}Rp.fn=kp.prototype;const fh="resize scroll".split(" ");function dh(t){return function(...e){if(void 0===e[0]){for(let e=0;e<this.length;e+=1)fh.indexOf(t)<0&&(t in this[e]?this[e][t]():Rp(this[e]).trigger(t));return this}return this.on(t,...e)}}const ph=dh("click"),hh=dh("focus");let vh=(t=21)=>{let e="",n=crypto.getRandomValues(new Uint8Array(t|=0));for(;t--;)e+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&n[t]];return e};var gh,yh;var mh,bh,Eh=function(){if(yh)return gh;yh=1;var t=9007199254740991,e="[object Arguments]",n="[object Map]",r="[object Promise]",o="[object Set]",i="[object WeakMap]",u="[object DataView]",a=/^\[object .+?Constructor\]$/,s=/^(?:0|[1-9]\d*)$/,c="\\ud800-\\udfff",l="\\u0300-\\u036f\\ufe20-\\ufe23",f="\\u20d0-\\u20f0",d="\\ufe0e\\ufe0f",p="["+c+"]",h="["+l+f+"]",v="\\ud83c[\\udffb-\\udfff]",g="[^"+c+"]",y="(?:\\ud83c[\\udde6-\\uddff]){2}",m="[\\ud800-\\udbff][\\udc00-\\udfff]",E="\\u200d",w="(?:"+h+"|"+v+")"+"?",S="["+d+"]?",C=S+w+("(?:"+E+"(?:"+[g,y,m].join("|")+")"+S+w+")*"),D="(?:"+[g+h+"?",h,y,m,p].join("|")+")",O=RegExp(v+"(?="+v+")|"+D+C,"g"),A=RegExp("["+E+c+l+f+d+"]"),x="object"==typeof b&&b&&b.Object===Object&&b,T="object"==typeof self&&self&&self.Object===Object&&self,N=x||T||Function("return this")();function P(t,e){return function(t,e){for(var n=-1,r=t?t.length:0,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}(e,function(e){return t[e]})}function k(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}function I(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}function B(t){return function(t){return A.test(t)}(t)?function(t){return t.match(O)||[]}(t):function(t){return t.split("")}(t)}var F,R,_=Function.prototype,j=Object.prototype,L=N["__core-js_shared__"],M=function(){var t=/[^.]+$/.exec(L&&L.keys&&L.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),z=_.toString,H=j.hasOwnProperty,$=j.toString,U=RegExp("^"+z.call(H).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),V=N.Symbol,G=V?V.iterator:void 0,W=j.propertyIsEnumerable,q=(F=Object.keys,R=Object,function(t){return F(R(t))}),K=at(N,"DataView"),Y=at(N,"Map"),X=at(N,"Promise"),J=at(N,"Set"),Z=at(N,"WeakMap"),Q=lt(K),tt=lt(Y),et=lt(X),nt=lt(J),rt=lt(Z);function ot(t,n){var r=ft(t)||function(t){return function(t){return vt(t)&&dt(t)}(t)&&H.call(t,"callee")&&(!W.call(t,"callee")||$.call(t)==e)}(t)?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],o=r.length,i=!!o;for(var u in t)!H.call(t,u)||i&&("length"==u||ct(u,o))||r.push(u);return r}function it(t){if(!ht(t)||function(t){return!!M&&M in t}(t))return!1;var e=pt(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t)?U:a;return e.test(lt(t))}function ut(t){if(n=(e=t)&&e.constructor,r="function"==typeof n&&n.prototype||j,e!==r)return q(t);var e,n,r,o=[];for(var i in Object(t))H.call(t,i)&&"constructor"!=i&&o.push(i);return o}function at(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return it(n)?n:void 0}var st=function(t){return $.call(t)};function ct(e,n){return!!(n=null==n?t:n)&&("number"==typeof e||s.test(e))&&e>-1&&e%1==0&&e<n}function lt(t){if(null!=t){try{return z.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(K&&st(new K(new ArrayBuffer(1)))!=u||Y&&st(new Y)!=n||X&&st(X.resolve())!=r||J&&st(new J)!=o||Z&&st(new Z)!=i)&&(st=function(t){var e=$.call(t),a="[object Object]"==e?t.constructor:void 0,s=a?lt(a):void 0;if(s)switch(s){case Q:return u;case tt:return n;case et:return r;case nt:return o;case rt:return i}return e});var ft=Array.isArray;function dt(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=t}(e.length)&&!pt(e)}function pt(t){var e=ht(t)?$.call(t):"";return"[object Function]"==e||"[object GeneratorFunction]"==e}function ht(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function vt(t){return!!t&&"object"==typeof t}function gt(t){return t?P(t,function(t){return dt(t)?ot(t):ut(t)}(t)):[]}return gh=function(t){if(!t)return[];if(dt(t))return function(t){return"string"==typeof t||!ft(t)&&vt(t)&&"[object String]"==$.call(t)}(t)?B(t):function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}(t);if(G&&t[G])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[G]());var e=st(t);return(e==n?k:e==o?I:gt)(t)},gh}(),wh=E(Eh);var Sh,Ch,Dh=function(){if(bh)return mh;bh=1;var t=/^\s+|\s+$/g,e=/^[-+]0x[0-9a-f]+$/i,n=/^0b[01]+$/i,r=/^0o[0-7]+$/i,o=parseInt,i="object"==typeof b&&b&&b.Object===Object&&b,u="object"==typeof self&&self&&self.Object===Object&&self,a=i||u||Function("return this")(),s=Object.prototype.toString,c=Math.max,l=Math.min,f=function(){return a.Date.now()};function d(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function p(i){if("number"==typeof i)return i;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==s.call(t)}(i))return NaN;if(d(i)){var u="function"==typeof i.valueOf?i.valueOf():i;i=d(u)?u+"":u}if("string"!=typeof i)return 0===i?i:+i;i=i.replace(t,"");var a=n.test(i);return a||r.test(i)?o(i.slice(2),a?2:8):e.test(i)?NaN:+i}return mh=function(t,e,n){var r,o,i,u,a,s,h=0,v=!1,g=!1,y=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function m(e){var n=r,i=o;return r=o=void 0,h=e,u=t.apply(i,n)}function b(t){var n=t-s;return void 0===s||n>=e||n<0||g&&t-h>=i}function E(){var t=f();if(b(t))return w(t);a=setTimeout(E,function(t){var n=e-(t-s);return g?l(n,i-(t-h)):n}(t))}function w(t){return a=void 0,y&&r?m(t):(r=o=void 0,u)}function S(){var t=f(),n=b(t);if(r=arguments,o=this,s=t,n){if(void 0===a)return function(t){return h=t,a=setTimeout(E,e),v?m(t):u}(s);if(g)return a=setTimeout(E,e),m(s)}return void 0===a&&(a=setTimeout(E,e)),u}return e=p(e)||0,d(n)&&(v=!!n.leading,i=(g="maxWait"in n)?c(p(n.maxWait)||0,e):i,y="trailing"in n?!!n.trailing:y),S.cancel=function(){void 0!==a&&clearTimeout(a),h=0,r=s=o=a=void 0},S.flush=function(){return void 0===a?u:w(f())},S},mh}(),Oh=E(Dh);function Ah(){if(Ch)return Sh;Ch=1;var t="Expected a function",e=/^\s+|\s+$/g,n=/^[-+]0x[0-9a-f]+$/i,r=/^0b[01]+$/i,o=/^0o[0-7]+$/i,i=parseInt,u="object"==typeof b&&b&&b.Object===Object&&b,a="object"==typeof self&&self&&self.Object===Object&&self,s=u||a||Function("return this")(),c=Object.prototype.toString,l=Math.max,f=Math.min,d=function(){return s.Date.now()};function p(e,n,r){var o,i,u,a,s,c,p=0,g=!1,y=!1,m=!0;if("function"!=typeof e)throw new TypeError(t);function b(t){var n=o,r=i;return o=i=void 0,p=t,a=e.apply(r,n)}function E(t){var e=t-c;return void 0===c||e>=n||e<0||y&&t-p>=u}function w(){var t=d();if(E(t))return S(t);s=setTimeout(w,function(t){var e=n-(t-c);return y?f(e,u-(t-p)):e}(t))}function S(t){return s=void 0,m&&o?b(t):(o=i=void 0,a)}function C(){var t=d(),e=E(t);if(o=arguments,i=this,c=t,e){if(void 0===s)return function(t){return p=t,s=setTimeout(w,n),g?b(t):a}(c);if(y)return s=setTimeout(w,n),b(c)}return void 0===s&&(s=setTimeout(w,n)),a}return n=v(n)||0,h(r)&&(g=!!r.leading,u=(y="maxWait"in r)?l(v(r.maxWait)||0,n):u,m="trailing"in r?!!r.trailing:m),C.cancel=function(){void 0!==s&&clearTimeout(s),p=0,o=c=i=s=void 0},C.flush=function(){return void 0===s?a:S(d())},C}function h(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function v(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==c.call(t)}(t))return NaN;if(h(t)){var u="function"==typeof t.valueOf?t.valueOf():t;t=h(u)?u+"":u}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(e,"");var a=r.test(t);return a||o.test(t)?i(t.slice(2),a?2:8):n.test(t)?NaN:+t}return Sh=function(e,n,r){var o=!0,i=!0;if("function"!=typeof e)throw new TypeError(t);return h(r)&&(o="leading"in r?!!r.leading:o,i="trailing"in r?!!r.trailing:i),p(e,n,{leading:o,maxWait:n,trailing:i})}}var xh,Th=E(Ah()),Nh={};var Ph=function(){if(xh)return Nh;xh=1,Object.defineProperty(Nh,"__esModule",{value:!0});for(var t="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),e={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},n={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:t?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},r={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},o=1;o<20;o++)r["f"+o]=111+o;function i(t,e,n){e&&!("byKey"in e)&&(n=e,e=null),Array.isArray(t)||(t=[t]);var r=t.map(function(t){return u(t,e)}),o=function(t){return r.some(function(e){return a(e,t)})};return null==n?o:o(n)}function u(t,o){var i=o&&o.byKey,u={},a=(t=t.replace("++","+add")).split("+"),l=a.length;for(var f in e)u[e[f]]=!1;var d=!0,p=!1,h=void 0;try{for(var v,g=a[Symbol.iterator]();!(d=(v=g.next()).done);d=!0){var y=v.value,m=y.endsWith("?")&&y.length>1;m&&(y=y.slice(0,-1));var b=c(y),E=e[b];if(y.length>1&&!E&&!n[y]&&!r[b])throw new TypeError('Unknown modifier: "'+y+'"');1!==l&&E||(i?u.key=b:u.which=s(y)),E&&(u[E]=!m||null)}}catch(t){p=!0,h=t}finally{try{!d&&g.return&&g.return()}finally{if(p)throw h}}return u}function a(t,e){for(var n in t){var r=t[n],o=void 0;if(null!=r&&((null!=(o="key"===n&&null!=e.key?e.key.toLowerCase():"which"===n?91===r&&93===e.which?91:e.which:e[n])||!1!==r)&&o!==r))return!1}return!0}function s(t){return t=c(t),r[t]||t.toUpperCase().charCodeAt(0)}function c(t){return t=t.toLowerCase(),t=n[t]||t}return Nh.default=i,Nh.isHotkey=i,Nh.isCodeHotkey=function(t,e){return i(t,e)},Nh.isKeyHotkey=function(t,e){return i(t,{byKey:!0},e)},Nh.parseHotkey=u,Nh.compareHotkey=a,Nh.toKeyCode=s,Nh.toKeyName=c,Nh}();function kh(t){if(Ih(t)){for(;t&&Ih(t);){t=Bh(t).parent}return null!=t?t:null}return t.parentNode}function Ih(t){return 11===t.nodeType}function Bh(t,e){var n,r,o;const i=t;return null!==(n=i.parent)&&void 0!==n||(i.parent=null!=e?e:null),null!==(r=i.firstChildNode)&&void 0!==r||(i.firstChildNode=t.firstChild),null!==(o=i.lastChildNode)&&void 0!==o||(i.lastChildNode=t.lastChild),i}const Fh={createElement:function(t,e){return document.createElement(t,e)},createElementNS:function(t,e,n){return document.createElementNS(t,e,n)},createTextNode:function(t){return document.createTextNode(t)},createDocumentFragment:function(){return Bh(document.createDocumentFragment())},createComment:function(t){return document.createComment(t)},insertBefore:function(t,e,n){if(Ih(t)){let e=t;for(;e&&Ih(e);){e=Bh(e).parent}t=null!=e?e:t}Ih(e)&&(e=Bh(e,t)),n&&Ih(n)&&(n=Bh(n).firstChildNode),t.insertBefore(e,n)},removeChild:function(t,e){t.removeChild(e)},appendChild:function(t,e){Ih(e)&&(e=Bh(e,t)),t.appendChild(e)},parentNode:kh,nextSibling:function(t){var e;if(Ih(t)){const n=Bh(t),r=kh(n);if(r&&n.lastChildNode){const t=Array.from(r.childNodes),o=t.indexOf(n.lastChildNode);return null!==(e=t[o+1])&&void 0!==e?e:null}return null}return t.nextSibling},tagName:function(t){return t.tagName},setTextContent:function(t,e){t.textContent=e},getTextContent:function(t){return t.textContent},isElement:function(t){return 1===t.nodeType},isText:function(t){return 3===t.nodeType},isComment:function(t){return 8===t.nodeType},isDocumentFragment:Ih};function Rh(t,e,n,r,o){return{sel:t,data:e,children:n,text:r,elm:o,key:void 0===e?void 0:e.key}}const _h=Array.isArray;function jh(t){return"string"==typeof t||"number"==typeof t||t instanceof String||t instanceof Number}function Lh(t){return void 0===t}function Mh(t){return void 0!==t}const zh=Rh("",{},[],void 0,void 0);function Hh(t,e){var n,r;const o=t.key===e.key,i=(null===(n=t.data)||void 0===n?void 0:n.is)===(null===(r=e.data)||void 0===r?void 0:r.is),u=t.sel===e.sel,a=!(!t.sel&&t.sel===e.sel)||typeof t.text==typeof e.text;return u&&o&&i&&a}function $h(t,e,n){var r;const o={};for(let i=e;i<=n;++i){const e=null===(r=t[i])||void 0===r?void 0:r.key;void 0!==e&&(o[e]=i)}return o}const Uh=["create","update","remove","destroy","pre","post"];function Vh(t,e,n){const r={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},o=Fh;for(const e of Uh)for(const n of t){const t=n[e];void 0!==t&&r[e].push(t)}function i(t){const e=t.id?"#"+t.id:"",n=t.getAttribute("class"),r=n?"."+n.split(" ").join("."):"";return Rh(o.tagName(t).toLowerCase()+e+r,{},[],void 0,t)}function u(t){return Rh(void 0,{},[],void 0,t)}function a(t,e){return function(){if(0===--e){const e=o.parentNode(t);null!==e&&o.removeChild(e,t)}}}function s(t,e){var n,i;let u,a=t.data;if(void 0!==a){const e=null===(n=a.hook)||void 0===n?void 0:n.init;Mh(e)&&(e(t),a=t.data)}const c=t.children,l=t.sel;if("!"===l)Lh(t.text)&&(t.text=""),t.elm=o.createComment(t.text);else if(""===l)t.elm=o.createTextNode(t.text);else if(void 0!==l){const n=l.indexOf("#"),f=l.indexOf(".",n),d=n>0?n:l.length,p=f>0?f:l.length,h=-1!==n||-1!==f?l.slice(0,Math.min(d,p)):l,v=t.elm=Mh(a)&&Mh(u=a.ns)?o.createElementNS(u,h,a):o.createElement(h,a);for(d<p&&v.setAttribute("id",l.slice(d+1,p)),f>0&&v.setAttribute("class",l.slice(p+1).replace(/\./g," ")),u=0;u<r.create.length;++u)r.create[u](zh,t);if(!jh(t.text)||_h(c)&&0!==c.length||o.appendChild(v,o.createTextNode(t.text)),_h(c))for(u=0;u<c.length;++u){const t=c[u];null!=t&&o.appendChild(v,s(t,e))}const g=t.data.hook;Mh(g)&&(null===(i=g.create)||void 0===i||i.call(g,zh,t),g.insert&&e.push(t))}else t.elm=o.createTextNode(t.text);return t.elm}function c(t,e,n,r,i,u){for(;r<=i;++r){const i=n[r];null!=i&&o.insertBefore(t,s(i,u),e)}}function l(t){var e,n;const o=t.data;if(void 0!==o){null===(n=null===(e=null==o?void 0:o.hook)||void 0===e?void 0:e.destroy)||void 0===n||n.call(e,t);for(let e=0;e<r.destroy.length;++e)r.destroy[e](t);if(void 0!==t.children)for(let e=0;e<t.children.length;++e){const n=t.children[e];null!=n&&"string"!=typeof n&&l(n)}}}function f(t,e,n,i){for(var u,s;n<=i;++n){let i,c;const d=e[n];if(null!=d)if(Mh(d.sel)){l(d),i=r.remove.length+1,c=a(d.elm,i);for(let t=0;t<r.remove.length;++t)r.remove[t](d,c);const t=null===(s=null===(u=null==d?void 0:d.data)||void 0===u?void 0:u.hook)||void 0===s?void 0:s.remove;Mh(t)?t(d,c):c()}else d.children?(l(d),f(t,d.children,0,d.children.length-1)):o.removeChild(t,d.elm)}}function d(t,e,n){var i,u,a,l,p,h,v,g;const y=null===(i=e.data)||void 0===i?void 0:i.hook;null===(u=null==y?void 0:y.prepatch)||void 0===u||u.call(y,t,e);const m=e.elm=t.elm;if(t===e)return;if(void 0!==e.data||Mh(e.text)&&e.text!==t.text){null!==(a=e.data)&&void 0!==a||(e.data={}),null!==(l=t.data)&&void 0!==l||(t.data={});for(let n=0;n<r.update.length;++n)r.update[n](t,e);null===(v=null===(h=null===(p=e.data)||void 0===p?void 0:p.hook)||void 0===h?void 0:h.update)||void 0===v||v.call(h,t,e)}const b=t.children,E=e.children;Lh(e.text)?Mh(b)&&Mh(E)?b!==E&&function(t,e,n,r){let i,u,a,l,p=0,h=0,v=e.length-1,g=e[0],y=e[v],m=n.length-1,b=n[0],E=n[m];for(;p<=v&&h<=m;)null==g?g=e[++p]:null==y?y=e[--v]:null==b?b=n[++h]:null==E?E=n[--m]:Hh(g,b)?(d(g,b,r),g=e[++p],b=n[++h]):Hh(y,E)?(d(y,E,r),y=e[--v],E=n[--m]):Hh(g,E)?(d(g,E,r),o.insertBefore(t,g.elm,o.nextSibling(y.elm)),g=e[++p],E=n[--m]):Hh(y,b)?(d(y,b,r),o.insertBefore(t,y.elm,g.elm),y=e[--v],b=n[++h]):(void 0===i&&(i=$h(e,p,v)),u=i[b.key],Lh(u)?(o.insertBefore(t,s(b,r),g.elm),b=n[++h]):Lh(i[E.key])?(o.insertBefore(t,s(E,r),o.nextSibling(y.elm)),E=n[--m]):(a=e[u],a.sel!==b.sel?o.insertBefore(t,s(b,r),g.elm):(d(a,b,r),e[u]=void 0,o.insertBefore(t,a.elm,g.elm)),b=n[++h]));h<=m&&(l=null==n[m+1]?null:n[m+1].elm,c(t,l,n,h,m,r)),p<=v&&f(t,e,p,v)}(m,b,E,n):Mh(E)?(Mh(t.text)&&o.setTextContent(m,""),c(m,null,E,0,E.length-1,n)):Mh(b)?f(m,b,0,b.length-1):Mh(t.text)&&o.setTextContent(m,""):t.text!==e.text&&(Mh(b)&&f(m,b,0,b.length-1),o.setTextContent(m,e.text)),null===(g=null==y?void 0:y.postpatch)||void 0===g||g.call(y,t,e)}return function(t,e){let n,a,c;const l=[];for(n=0;n<r.pre.length;++n)r.pre[n]();for(!function(t,e){return t.isElement(e)}(o,t)?function(t,e){return t.isDocumentFragment(e)}(o,t)&&(t=u(t)):t=i(t),Hh(t,e)?d(t,e,l):(a=t.elm,c=o.parentNode(a),s(e,l),null!==c&&(o.insertBefore(c,e.elm,o.nextSibling(a)),f(c,[t],0,0))),n=0;n<l.length;++n)l[n].data.hook.insert(l[n]);for(n=0;n<r.post.length;++n)r.post[n]();return e}}function Gh(t,e,n){if(t.ns="http://www.w3.org/2000/svg","foreignObject"!==n&&void 0!==e)for(let t=0;t<e.length;++t){const n=e[t];if("string"==typeof n)continue;const r=n.data;void 0!==r&&Gh(r,n.children,n.sel)}}function Wh(t,e,n){let r,o,i,u={};if(void 0!==n?(null!==e&&(u=e),_h(n)?r=n:jh(n)?o=n.toString():n&&n.sel&&(r=[n])):null!=e&&(_h(e)?r=e:jh(e)?o=e.toString():e&&e.sel?r=[e]:u=e),void 0!==r)for(i=0;i<r.length;++i)jh(r[i])&&(r[i]=Rh(void 0,void 0,void 0,r[i],void 0));return!t.startsWith("svg")||3!==t.length&&"."!==t[3]&&"#"!==t[3]||Gh(u,r,t),Rh(t,u,r,o,void 0)}function qh(t,e){let n;const r=e.elm;let o=t.data.attrs,i=e.data.attrs;if((o||i)&&o!==i){for(n in o=o||{},i=i||{},i){const t=i[n];o[n]!==t&&(!0===t?r.setAttribute(n,""):!1===t?r.removeAttribute(n):120!==n.charCodeAt(0)?r.setAttribute(n,t):58===n.charCodeAt(3)?r.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,t):58===n.charCodeAt(5)?109===n.charCodeAt(1)?r.setAttributeNS("http://www.w3.org/2000/xmlns/",n,t):r.setAttributeNS("http://www.w3.org/1999/xlink",n,t):r.setAttribute(n,t))}for(n in o)n in i||r.removeAttribute(n)}}const Kh={create:qh,update:qh};function Yh(t,e){let n,r;const o=e.elm;let i=t.data.class,u=e.data.class;if((i||u)&&i!==u){for(r in i=i||{},u=u||{},i)i[r]&&!Object.prototype.hasOwnProperty.call(u,r)&&o.classList.remove(r);for(r in u)n=u[r],n!==i[r]&&o.classList[n?"add":"remove"](r)}}const Xh={create:Yh,update:Yh},Jh=/[A-Z]/g;function Zh(t,e){const n=e.elm;let r,o=t.data.dataset,i=e.data.dataset;if(!o&&!i)return;if(o===i)return;o=o||{},i=i||{};const u=n.dataset;for(r in o)r in i||(u?r in u&&delete u[r]:n.removeAttribute("data-"+r.replace(Jh,"-$&").toLowerCase()));for(r in i)o[r]!==i[r]&&(u?u[r]=i[r]:n.setAttribute("data-"+r.replace(Jh,"-$&").toLowerCase(),i[r]))}const Qh={create:Zh,update:Zh};function tv(t,e,n){if("function"==typeof t)t.call(e,n,e);else if("object"==typeof t)for(let r=0;r<t.length;r++)tv(t[r],e,n)}function ev(t,e){const n=t.type,r=e.data.on;r&&r[n]&&tv(r[n],e,t)}function nv(t,e){const n=t.data.on,r=t.listener,o=t.elm,i=e&&e.data.on,u=e&&e.elm;let a;if(n!==i){if(n&&r)if(i)for(a in n)i[a]||o.removeEventListener(a,r,!1);else for(a in n)o.removeEventListener(a,r,!1);if(i){const r=e.listener=t.listener||function t(e){ev(e,t.vnode)};if(r.vnode=e,n)for(a in i)n[a]||u.addEventListener(a,r,!1);else for(a in i)u.addEventListener(a,r,!1)}}}const rv={create:nv,update:nv,destroy:nv};function ov(t,e){let n,r,o;const i=e.elm;let u=t.data.props,a=e.data.props;if((u||a)&&u!==a)for(n in u=u||{},a=a||{},a)r=a[n],o=u[n],o===r||"value"===n&&i[n]===r||(i[n]=r)}const iv={create:ov,update:ov},uv="function"==typeof(null===window||void 0===window?void 0:window.requestAnimationFrame)?window.requestAnimationFrame.bind(window):setTimeout;let av=!1;function sv(t,e,n){!function(t){uv(function(){uv(t)})}(function(){t[e]=n})}function cv(t,e){let n,r;const o=e.elm;let i=t.data.style,u=e.data.style;if(!i&&!u)return;if(i===u)return;i=i||{},u=u||{};const a="delayed"in i;for(r in i)r in u||("-"===r[0]&&"-"===r[1]?o.style.removeProperty(r):o.style[r]="");for(r in u)if(n=u[r],"delayed"===r&&u.delayed)for(const t in u.delayed)n=u.delayed[t],a&&n===i.delayed[t]||sv(o.style,t,n);else"remove"!==r&&n!==i[r]&&("-"===r[0]&&"-"===r[1]?o.style.setProperty(r,n):o.style[r]=n)}const lv={pre:function(){av=!1},create:cv,update:cv,destroy:function(t){let e,n;const r=t.elm,o=t.data.style;if(o&&(e=o.destroy))for(n in e)r.style[n]=e[n]},remove:function(t,e){const n=t.data.style;if(!n||!n.remove)return void e();let r;av||(t.elm.offsetLeft,av=!0);const o=t.elm;let i=0;const u=n.remove;let a=0;const s=[];for(r in u)s.push(r),o.style[r]=u[r];const c=getComputedStyle(o)["transition-property"].split(", ");for(;i<c.length;++i)-1!==s.indexOf(c[i])&&a++;o.addEventListener("transitionend",function(t){t.target===o&&--a,0===a&&e()})}};function fv(t,e){for(const n of t)null!=n&&!1!==n&&""!==n&&(Array.isArray(n)?fv(n,e):"string"==typeof n||"number"==typeof n||"boolean"==typeof n?e.push(Rh(void 0,void 0,void 0,String(n),void 0)):e.push(n));return e}function dv(t,e,...n){const r=fv(n,[]);return"function"==typeof t?t(e,r):1===r.length&&!r[0].sel&&r[0].text?Wh(t,e,r[0].text):Wh(t,e,r)}var pv,hv;var vv,gv,yv,mv,bv,Ev=function(){if(hv)return pv;hv=1;var t,e="[object Symbol]",n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,r=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,o="\\ud800-\\udfff",i="\\u0300-\\u036f\\ufe20-\\ufe23",u="\\u20d0-\\u20f0",a="\\u2700-\\u27bf",s="a-z\\xdf-\\xf6\\xf8-\\xff",c="A-Z\\xc0-\\xd6\\xd8-\\xde",l="\\ufe0e\\ufe0f",f="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",d="['’]",p="["+o+"]",h="["+f+"]",v="["+i+u+"]",g="\\d+",y="["+a+"]",m="["+s+"]",E="[^"+o+f+g+a+s+c+"]",w="\\ud83c[\\udffb-\\udfff]",S="[^"+o+"]",C="(?:\\ud83c[\\udde6-\\uddff]){2}",D="[\\ud800-\\udbff][\\udc00-\\udfff]",O="["+c+"]",A="\\u200d",x="(?:"+m+"|"+E+")",T="(?:"+O+"|"+E+")",N="(?:['’](?:d|ll|m|re|s|t|ve))?",P="(?:['’](?:D|LL|M|RE|S|T|VE))?",k="(?:"+v+"|"+w+")"+"?",I="["+l+"]?",B=I+k+("(?:"+A+"(?:"+[S,C,D].join("|")+")"+I+k+")*"),F="(?:"+[y,C,D].join("|")+")"+B,R="(?:"+[S+v+"?",v,C,D,p].join("|")+")",_=RegExp(d,"g"),j=RegExp(v,"g"),L=RegExp(w+"(?="+w+")|"+R+B,"g"),M=RegExp([O+"?"+m+"+"+N+"(?="+[h,O,"$"].join("|")+")",T+"+"+P+"(?="+[h,O+x,"$"].join("|")+")",O+"?"+x+"+"+N,O+"+"+P,g,F].join("|"),"g"),z=RegExp("["+A+o+i+u+l+"]"),H=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,$="object"==typeof b&&b&&b.Object===Object&&b,U="object"==typeof self&&self&&self.Object===Object&&self,V=$||U||Function("return this")(),G=(t={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"ss"},function(e){return null==t?void 0:t[e]});function W(t){return z.test(t)}function q(t){return W(t)?function(t){return t.match(L)||[]}(t):function(t){return t.split("")}(t)}var K=Object.prototype.toString,Y=V.Symbol,X=Y?Y.prototype:void 0,J=X?X.toString:void 0;function Z(t){if("string"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&K.call(t)==e}(t))return J?J.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}function Q(t,e,n){var r=t.length;return n=void 0===n?r:n,!e&&n>=r?t:function(t,e,n){var r=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var i=Array(o);++r<o;)i[r]=t[r+e];return i}(t,e,n)}function tt(t){return null==t?"":Z(t)}var et,nt,rt=(et=function(t,e,n){return e=e.toLowerCase(),t+(n?ot(tt(e).toLowerCase()):e)},function(t){return function(t,e,n){for(var r=-1,o=t?t.length:0;++r<o;)n=e(n,t[r],r,t);return n}(function(t,e){return t=tt(t),void 0===e?function(t){return H.test(t)}(t)?function(t){return t.match(M)||[]}(t):function(t){return t.match(n)||[]}(t):t.match(e)||[]}(function(t){return(t=tt(t))&&t.replace(r,G).replace(j,"")}(t).replace(_,"")),et,"")}),ot=(nt="toUpperCase",function(t){var e=W(t=tt(t))?q(t):void 0,n=e?e[0]:t.charAt(0),r=e?Q(e,1).join(""):t.slice(1);return n[nt]()+r});return pv=rt}(),wv=E(Ev),Sv={exports:{}},Cv={};function Dv(){if(yv)return Cv;yv=1,Object.defineProperty(Cv,"__esModule",{value:!0}),Cv.justErrorsLogger=Cv.debugLogger=void 0;const t=function(){if(gv)return vv;function t(t){return t<10?`0${t}`:t.toString()}return gv=1,vv=function(){const e=new Date;return`${t(e.getHours())}:${t(e.getMinutes())}:${t(e.getSeconds())}`}}(),e={debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return console.error(`[Uppy] [${t()}]`,...n)}};Cv.justErrorsLogger=e;const n={debug:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return console.debug(`[Uppy] [${t()}]`,...n)},warn:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return console.warn(`[Uppy] [${t()}]`,...n)},error:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return console.error(`[Uppy] [${t()}]`,...n)}};return Cv.debugLogger=n,Cv}function Ov(){if(bv)return mv;bv=1;return mv={nanoid:(t=21)=>{let e="",n=0|t;for(;n--;)e+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return e},customAlphabet:(t,e=21)=>(n=e)=>{let r="",o=0|n;for(;o--;)r+=t[Math.random()*t.length|0];return r}},mv}var Av,xv,Tv,Nv,Pv,kv,Iv,Bv,Fv,Rv,_v,jv,Lv,Mv,zv,Hv,$v,Uv,Vv,Gv,Wv,qv,Kv,Yv,Xv,Jv,Zv,Qv,tg,eg,ng,rg={};function og(){return xv?Av:(xv=1,Av=function(t){if("number"!=typeof t||isNaN(t))throw new TypeError("Expected a number, got "+typeof t);var e=t<0,n=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(e&&(t=-t),t<1)return(e?"-":"")+t+" B";var r=Math.min(Math.floor(Math.log(t)/Math.log(1024)),n.length-1);t=Number(t/Math.pow(1024,r));var o=n[r];return t>=10||t%1==0?(e?"-":"")+t.toFixed(0)+" "+o:(e?"-":"")+t.toFixed(1)+" "+o})}function ig(){if(Nv)return Tv;function t(t,e){this.text=t=t||"",this.hasWild=~t.indexOf("*"),this.separator=e,this.parts=t.split(e)}return Nv=1,t.prototype.match=function(t){var e,n,r=!0,o=this.parts,i=o.length;if("string"==typeof t||t instanceof String)if(this.hasWild||this.text==t){for(n=(t||"").split(this.separator),e=0;r&&e<i;e++)"*"!==o[e]&&(r=e<n.length&&o[e]===n[e]);r=r&&n}else r=!1;else if("function"==typeof t.splice)for(r=[],e=t.length;e--;)this.match(t[e])&&(r[r.length]=t[e]);else if("object"==typeof t)for(var u in r={},t)this.match(u)&&(r[u]=t[u]);return r},Tv=function(e,n,r){var o=new t(e,r||/[\/\.]/);return void 0!==n?o.match(n):o},Tv}function ug(){if(Iv)return rg;Iv=1,Object.defineProperty(rg,"__esModule",{value:!0}),rg.defaultOptions=rg.RestrictionError=rg.Restricter=void 0;const t=og(),e=function(){if(kv)return Pv;kv=1;var t=ig(),e=/[\/\+\.]/;return Pv=function(n,r){function o(r){var o=t(r,n,e);return o&&o.length>=2}return r?o(r.split(";")[0]):o}}();rg.defaultOptions={maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]};class n extends Error{constructor(){super(...arguments),this.isRestriction=!0}}rg.RestrictionError=n,"undefined"==typeof AggregateError&&(globalThis.AggregateError=class extends Error{constructor(t,e){super(e),this.errors=t}});return rg.Restricter=class{constructor(t,e){this.i18n=e,this.getOpts=()=>{const e=t();if(null!=e.restrictions.allowedFileTypes&&!Array.isArray(e.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");return e}}validate(r,o){const{maxFileSize:i,minFileSize:u,maxTotalFileSize:a,maxNumberOfFiles:s,allowedFileTypes:c}=this.getOpts().restrictions;if(s){const t=o.filter(t=>!t.isGhost);if(t.length+1>s)throw new n(`${this.i18n("youCanOnlyUploadX",{smart_count:s})}`)}if(c){if(!c.some(t=>t.includes("/")?!!r.type&&e(r.type.replace(/;.*?$/,""),t):!("."!==t[0]||!r.extension)&&r.extension.toLowerCase()===t.slice(1).toLowerCase())){const t=c.join(", ");throw new n(this.i18n("youCanOnlyUploadFileTypes",{types:t}))}}if(a&&null!=r.size){const e=o.reduce((t,e)=>t+e.size,r.size);if(e>a)throw new n(this.i18n("exceedsSize",{size:t(a),file:r.name}))}if(i&&null!=r.size&&r.size>i)throw new n(this.i18n("exceedsSize",{size:t(i),file:r.name}));if(u&&null!=r.size&&r.size<u)throw new n(this.i18n("inferiorSize",{size:t(u)}))}validateMinNumberOfFiles(t){const{minNumberOfFiles:e}=this.getOpts().restrictions;if(Object.keys(t).length<e)throw new n(this.i18n("youHaveToAtLeastSelectX",{smart_count:e}))}getMissingRequiredMetaFields(t){const e=new n(this.i18n("missingRequiredMetaFieldOnFile",{fileName:t.name})),{requiredMetaFields:r}=this.getOpts().restrictions,o=Object.prototype.hasOwnProperty,i=[];for(const e of r)o.call(t.meta,e)&&""!==t.meta[e]||i.push(e);return{missingFields:i,error:e}}},rg}function ag(){if(Fv)return Bv;return Fv=1,Bv=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}function sg(){if(_v)return Rv;function t(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}_v=1;var e=0;function n(t){return"__private_"+e+++"_"+t}const r=ag();function o(t,e,n){const r=[];return t.forEach(t=>"string"!=typeof t?r.push(t):e[Symbol.split](t).forEach((t,e,o)=>{""!==t&&r.push(t),e<o.length-1&&r.push(n)})),r}
8
+ function e(e){return"[object Object]"===Object.prototype.toString.call(e)}return op=1,Object.defineProperty(ap,"__esModule",{value:!0}),ap.isPlainObject=function(t){var n,r;return!1!==e(t)&&(void 0===(n=t.constructor)||!1!==e(r=n.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))},ap}var up,lp,cp,dp={exports:{}},fp={};function pp(){if(up)return fp;function e(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map(function(e){return"'"+e+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function t(e){return!!e&&!!e[G]}function n(e){var t;return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===K}(e)||Array.isArray(e)||!!e[W]||!!(null===(t=e.constructor)||void 0===t?void 0:t[W])||l(e)||c(e))}function r(e,t,n){void 0===n&&(n=!1),0===o(e)?(n?Object.keys:Y)(e).forEach(function(r){n&&"symbol"==typeof r||t(r,e[r],e)}):e.forEach(function(n,r){return t(r,n,e)})}function o(e){var t=e[G];return t?t.t>3?t.t-4:t.t:Array.isArray(e)?1:l(e)?2:c(e)?3:0}function i(e,t){return 2===o(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function a(e,t){return 2===o(e)?e.get(t):e[t]}function s(e,t,n){var r=o(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function u(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function l(e){return z&&e instanceof Map}function c(e){return $&&e instanceof Set}function d(e){return e.i||e.u}function f(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=X(e);delete t[G];for(var n=Y(t),r=0;r<n.length;r++){var o=n[r],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function p(e,i){return void 0===i&&(i=!1),g(e)||t(e)||!n(e)||(o(e)>1&&(e.set=e.add=e.clear=e.delete=h),Object.freeze(e),i&&r(e,function(e,t){return p(t,!0)},!0)),e}function h(){e(2)}function g(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function v(t){var n=Z[t];return n||e(18,t),n}function m(e,t){Z[e]||(Z[e]=t)}function y(){return j}function b(e,t){t&&(v("Patches"),e.o=[],e.v=[],e.s=t)}function E(e){C(e),e.p.forEach(D),e.p=null}function C(e){e===j&&(j=e.l)}function w(e){return j={p:[],l:j,h:e,_:!0,m:0}}function D(e){var t=e[G];0===t.t||1===t.t?t.j():t.O=!0}function A(t,r){r.m=r.p.length;var o=r.p[0],i=void 0!==t&&t!==o;return r.h.S||v("ES5").P(r,t,i),i?(o[G].g&&(E(r),e(4)),n(t)&&(t=S(r,t),r.l||T(r,t)),r.o&&v("Patches").M(o[G].u,t,r.o,r.v)):t=S(r,o,[]),E(r),r.o&&r.s(r.o,r.v),t!==V?t:void 0}function S(e,t,n){if(g(t))return t;var o=t[G];if(!o)return r(t,function(r,i){return x(e,o,t,r,i,n)},!0),t;if(o.A!==e)return t;if(!o.g)return T(e,o.u,!0),o.u;if(!o.R){o.R=!0,o.A.m--;var i=4===o.t||5===o.t?o.i=f(o.k):o.i,a=i,s=!1;3===o.t&&(a=new Set(i),i.clear(),s=!0),r(a,function(t,r){return x(e,o,i,t,r,n,s)}),T(e,i,!1),n&&e.o&&v("Patches").F(o,n,e.o,e.v)}return o.i}function x(e,r,o,a,u,l,c){if(t(u)){var d=S(e,u,l&&r&&3!==r.t&&!i(r.N,a)?l.concat(a):void 0);if(s(o,a,d),!t(d))return;e._=!1}else c&&o.add(u);if(n(u)&&!g(u)){if(!e.h.D&&e.m<1)return;S(e,u),r&&r.A.l||T(e,u)}}function T(e,t,n){void 0===n&&(n=!1),!e.l&&e.h.D&&e._&&p(t,n)}function O(e,t){var n=e[G];return(n?d(n):e)[t]}function N(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function B(e){e.g||(e.g=!0,e.l&&B(e.l))}function k(e){e.i||(e.i=f(e.u))}function F(e,t,n){var r=l(t)?v("MapSet").K(t,n):c(t)?v("MapSet").$(t,n):e.S?function(e,t){var n=Array.isArray(e),r={t:n?1:0,A:t?t.A:y(),g:!1,R:!1,N:{},l:t,u:e,k:null,i:null,j:null,C:!1},o=r,i=J;n&&(o=[r],i=Q);var a=Proxy.revocable(o,i),s=a.revoke,u=a.proxy;return r.k=u,r.j=s,u}(t,n):v("ES5").I(t,n);return(n?n.A:y()).p.push(r),r}function P(i){return t(i)||e(22,i),function e(t){if(!n(t))return t;var i,u=t[G],l=o(t);if(u){if(!u.g&&(u.t<4||!v("ES5").J(u)))return u.u;u.R=!0,i=I(t,l),u.R=!1}else i=I(t,l);return r(i,function(t,n){u&&a(u.u,t)===n||s(i,t,e(n))}),3===l?new Set(i):i}(i)}function I(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return f(e)}function _(){function e(e,t){var n=s[e];return n?n.enumerable=t:s[e]=n={configurable:!0,enumerable:t,get:function(){return J.get(this[G],e)},set:function(t){J.set(this[G],e,t)}},n}function n(e){for(var t=e.length-1;t>=0;t--){var n=e[t][G];if(!n.g)switch(n.t){case 5:a(n)&&B(n);break;case 4:o(n)&&B(n)}}}function o(e){for(var t=e.u,n=e.k,r=Y(n),o=r.length-1;o>=0;o--){var a=r[o];if(a!==G){var s=t[a];if(void 0===s&&!i(t,a))return!0;var l=n[a],c=l&&l[G];if(c?c.u!==s:!u(l,s))return!0}}var d=!!t[G];return r.length!==Y(t).length+(d?0:1)}function a(e){var t=e.k;if(t.length!==e.u.length)return!0;var n=Object.getOwnPropertyDescriptor(t,t.length-1);if(n&&!n.get)return!0;for(var r=0;r<t.length;r++)if(!t.hasOwnProperty(r))return!0;return!1}var s={};m("ES5",{I:function(t,n){var r=Array.isArray(t),o=function(t,n){if(t){for(var r=Array(n.length),o=0;o<n.length;o++)Object.defineProperty(r,""+o,e(o,!0));return r}var i=X(n);delete i[G];for(var a=Y(i),s=0;s<a.length;s++){var u=a[s];i[u]=e(u,t||!!i[u].enumerable)}return Object.create(Object.getPrototypeOf(n),i)}(r,t),i={t:r?5:4,A:n?n.A:y(),g:!1,R:!1,N:{},l:n,u:t,k:o,i:null,O:!1,C:!1};return Object.defineProperty(o,G,{value:i,writable:!0}),o},P:function(e,o,s){s?t(o)&&o[G].A===e&&n(e.p):(e.o&&function e(t){if(t&&"object"==typeof t){var n=t[G];if(n){var o=n.u,s=n.k,u=n.N,l=n.t;if(4===l)r(s,function(t){t!==G&&(void 0!==o[t]||i(o,t)?u[t]||e(s[t]):(u[t]=!0,B(n)))}),r(o,function(e){void 0!==s[e]||i(s,e)||(u[e]=!1,B(n))});else if(5===l){if(a(n)&&(B(n),u.length=!0),s.length<o.length)for(var c=s.length;c<o.length;c++)u[c]=!1;else for(var d=o.length;d<s.length;d++)u[d]=!0;for(var f=Math.min(s.length,o.length),p=0;p<f;p++)s.hasOwnProperty(p)||(u[p]=!0),void 0===u[p]&&e(s[p])}}}}(e.p[0]),n(e.p))},J:function(e){return 4===e.t?o(e):a(e)}})}function R(){function s(e){if(!n(e))return e;if(Array.isArray(e))return e.map(s);if(l(e))return new Map(Array.from(e.entries()).map(function(e){return[e[0],s(e[1])]}));if(c(e))return new Set(Array.from(e).map(s));var t=Object.create(Object.getPrototypeOf(e));for(var r in e)t[r]=s(e[r]);return i(e,W)&&(t[W]=e[W]),t}function u(e){return t(e)?s(e):e}var d="add";m("Patches",{W:function(t,n){return n.forEach(function(n){for(var r=n.path,i=n.op,u=t,l=0;l<r.length-1;l++){var c=o(u),f=r[l];"string"!=typeof f&&"number"!=typeof f&&(f=""+f),0!==c&&1!==c||"__proto__"!==f&&"constructor"!==f||e(24),"function"==typeof u&&"prototype"===f&&e(24),"object"!=typeof(u=a(u,f))&&e(15,r.join("/"))}var p=o(u),h=s(n.value),g=r[r.length-1];switch(i){case"replace":switch(p){case 2:return u.set(g,h);case 3:e(16);default:return u[g]=h}case d:switch(p){case 1:return"-"===g?u.push(h):u.splice(g,0,h);case 2:return u.set(g,h);case 3:return u.add(h);default:return u[g]=h}case"remove":switch(p){case 1:return u.splice(g,1);case 2:return u.delete(g);case 3:return u.delete(n.value);default:return delete u[g]}default:e(17,i)}}),t},F:function(e,t,n,o){switch(e.t){case 0:case 4:case 2:return function(e,t,n,o){var s=e.u,l=e.i;r(e.N,function(e,r){var c=a(s,e),f=a(l,e),p=r?i(s,e)?"replace":d:"remove";if(c!==f||"replace"!==p){var h=t.concat(e);n.push("remove"===p?{op:p,path:h}:{op:p,path:h,value:f}),o.push(p===d?{op:"remove",path:h}:"remove"===p?{op:d,path:h,value:u(c)}:{op:"replace",path:h,value:u(c)})}})}(e,t,n,o);case 5:case 1:return function(e,t,n,r){var o=e.u,i=e.N,a=e.i;if(a.length<o.length){var s=[a,o];o=s[0],a=s[1];var l=[r,n];n=l[0],r=l[1]}for(var c=0;c<o.length;c++)if(i[c]&&a[c]!==o[c]){var f=t.concat([c]);n.push({op:"replace",path:f,value:u(a[c])}),r.push({op:"replace",path:f,value:u(o[c])})}for(var p=o.length;p<a.length;p++){var h=t.concat([p]);n.push({op:d,path:h,value:u(a[p])})}o.length<a.length&&r.push({op:"replace",path:t.concat(["length"]),value:o.length})}(e,t,n,o);case 3:return function(e,t,n,r){var o=e.u,i=e.i,a=0;o.forEach(function(e){if(!i.has(e)){var o=t.concat([a]);n.push({op:"remove",path:o,value:e}),r.unshift({op:d,path:o,value:e})}a++}),a=0,i.forEach(function(e){if(!o.has(e)){var i=t.concat([a]);n.push({op:d,path:i,value:e}),r.unshift({op:"remove",path:i,value:e})}a++})}(e,t,n,o)}},M:function(e,t,n,r){n.push({op:"replace",path:[],value:t===V?void 0:t}),r.push({op:"replace",path:[],value:e})}})}function L(){function t(e,t){function n(){this.constructor=e}s(e,t),e.prototype=(n.prototype=t.prototype,new n)}function o(e){e.i||(e.N=new Map,e.i=new Map(e.u))}function i(e){e.i||(e.i=new Set,e.u.forEach(function(t){if(n(t)){var r=F(e.A.h,t,e);e.p.set(t,r),e.i.add(r)}else e.i.add(t)}))}function a(t){t.O&&e(3,JSON.stringify(d(t)))}var s=function(e,t){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},u=function(){function e(e,t){return this[G]={t:2,l:t,A:t?t.A:y(),g:!1,R:!1,i:void 0,N:void 0,u:e,k:this,C:!1,O:!1},this}t(e,Map);var i=e.prototype;return Object.defineProperty(i,"size",{get:function(){return d(this[G]).size}}),i.has=function(e){return d(this[G]).has(e)},i.set=function(e,t){var n=this[G];return a(n),d(n).has(e)&&d(n).get(e)===t||(o(n),B(n),n.N.set(e,!0),n.i.set(e,t),n.N.set(e,!0)),this},i.delete=function(e){if(!this.has(e))return!1;var t=this[G];return a(t),o(t),B(t),t.u.has(e)?t.N.set(e,!1):t.N.delete(e),t.i.delete(e),!0},i.clear=function(){var e=this[G];a(e),d(e).size&&(o(e),B(e),e.N=new Map,r(e.u,function(t){e.N.set(t,!1)}),e.i.clear())},i.forEach=function(e,t){var n=this;d(this[G]).forEach(function(r,o){e.call(t,n.get(o),o,n)})},i.get=function(e){var t=this[G];a(t);var r=d(t).get(e);if(t.R||!n(r))return r;if(r!==t.u.get(e))return r;var i=F(t.A.h,r,t);return o(t),t.i.set(e,i),i},i.keys=function(){return d(this[G]).keys()},i.values=function(){var e,t=this,n=this.keys();return(e={})[q]=function(){return t.values()},e.next=function(){var e=n.next();return e.done?e:{done:!1,value:t.get(e.value)}},e},i.entries=function(){var e,t=this,n=this.keys();return(e={})[q]=function(){return t.entries()},e.next=function(){var e=n.next();if(e.done)return e;var r=t.get(e.value);return{done:!1,value:[e.value,r]}},e},i[q]=function(){return this.entries()},e}(),l=function(){function e(e,t){return this[G]={t:3,l:t,A:t?t.A:y(),g:!1,R:!1,i:void 0,u:e,k:this,p:new Map,O:!1,C:!1},this}t(e,Set);var n=e.prototype;return Object.defineProperty(n,"size",{get:function(){return d(this[G]).size}}),n.has=function(e){var t=this[G];return a(t),t.i?!!t.i.has(e)||!(!t.p.has(e)||!t.i.has(t.p.get(e))):t.u.has(e)},n.add=function(e){var t=this[G];return a(t),this.has(e)||(i(t),B(t),t.i.add(e)),this},n.delete=function(e){if(!this.has(e))return!1;var t=this[G];return a(t),i(t),B(t),t.i.delete(e)||!!t.p.has(e)&&t.i.delete(t.p.get(e))},n.clear=function(){var e=this[G];a(e),d(e).size&&(i(e),B(e),e.i.clear())},n.values=function(){var e=this[G];return a(e),i(e),e.i.values()},n.entries=function(){var e=this[G];return a(e),i(e),e.i.entries()},n.keys=function(){return this.values()},n[q]=function(){return this.values()},n.forEach=function(e,t){for(var n=this.values(),r=n.next();!r.done;)e.call(t,r.value,r.value,this),r=n.next()},e}();m("MapSet",{K:function(e,t){return new u(e,t)},$:function(e,t){return new l(e,t)}})}var M;up=1,Object.defineProperty(fp,"__esModule",{value:!0});var j,H="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),z="undefined"!=typeof Map,$="undefined"!=typeof Set,U="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,V=H?Symbol.for("immer-nothing"):((M={})["immer-nothing"]=!0,M),W=H?Symbol.for("immer-draftable"):"__$immer_draftable",G=H?Symbol.for("immer-state"):"__$immer_state",q="undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator",K=""+Object.prototype.constructor,Y="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,X=Object.getOwnPropertyDescriptors||function(e){var t={};return Y(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},Z={},J={get:function(e,t){if(t===G)return e;var r=d(e);if(!i(r,t))return function(e,t,n){var r,o=N(t,n);return o?"value"in o?o.value:null===(r=o.get)||void 0===r?void 0:r.call(e.k):void 0}(e,r,t);var o=r[t];return e.R||!n(o)?o:o===O(e.u,t)?(k(e),e.i[t]=F(e.A.h,o,e)):o},has:function(e,t){return t in d(e)},ownKeys:function(e){return Reflect.ownKeys(d(e))},set:function(e,t,n){var r=N(d(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.g){var o=O(d(e),t),a=null==o?void 0:o[G];if(a&&a.u===n)return e.i[t]=n,e.N[t]=!1,!0;if(u(n,o)&&(void 0!==n||i(e.u,t)))return!0;k(e),B(e)}return e.i[t]===n&&(void 0!==n||t in e.i)||Number.isNaN(n)&&Number.isNaN(e.i[t])||(e.i[t]=n,e.N[t]=!0),!0},deleteProperty:function(e,t){return void 0!==O(e.u,t)||t in e.u?(e.N[t]=!1,k(e),B(e)):delete e.N[t],e.i&&delete e.i[t],!0},getOwnPropertyDescriptor:function(e,t){var n=d(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.t||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){e(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.u)},setPrototypeOf:function(){e(12)}},Q={};r(J,function(e,t){Q[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Q.deleteProperty=function(e,t){return Q.set.call(this,e,t,void 0)},Q.set=function(e,t,n){return J.set.call(this,e[0],t,n,e[0])};var ee=function(){function r(t){var r=this;this.S=U,this.D=!0,this.produce=function(t,o,i){if("function"==typeof t&&"function"!=typeof o){var a=o;o=t;var s=r;return function(e){var t=this;void 0===e&&(e=a);for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return s.produce(e,function(e){var n;return(n=o).call.apply(n,[t,e].concat(r))})}}var u;if("function"!=typeof o&&e(6),void 0!==i&&"function"!=typeof i&&e(7),n(t)){var l=w(r),c=F(r,t,void 0),d=!0;try{u=o(c),d=!1}finally{d?E(l):C(l)}return"undefined"!=typeof Promise&&u instanceof Promise?u.then(function(e){return b(l,i),A(e,l)},function(e){throw E(l),e}):(b(l,i),A(u,l))}if(!t||"object"!=typeof t){if(void 0===(u=o(t))&&(u=t),u===V&&(u=void 0),r.D&&p(u,!0),i){var f=[],h=[];v("Patches").M(t,u,f,h),i(f,h)}return u}e(21,t)},this.produceWithPatches=function(e,t){if("function"==typeof e)return function(t){for(var n=arguments.length,o=Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return r.produceWithPatches(t,function(t){return e.apply(void 0,[t].concat(o))})};var n,o,i=r.produce(e,t,function(e,t){n=e,o=t});return"undefined"!=typeof Promise&&i instanceof Promise?i.then(function(e){return[e,n,o]}):[i,n,o]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var o=r.prototype;return o.createDraft=function(r){n(r)||e(8),t(r)&&(r=P(r));var o=w(this),i=F(this,r,void 0);return i[G].C=!0,C(o),i},o.finishDraft=function(e,t){var n=(e&&e[G]).A;return b(n,t),A(void 0,n)},o.setAutoFreeze=function(e){this.D=e},o.setUseProxies=function(t){t&&!U&&e(20),this.S=t},o.applyPatches=function(e,n){var r;for(r=n.length-1;r>=0;r--){var o=n[r];if(0===o.path.length&&"replace"===o.op){e=o.value;break}}r>-1&&(n=n.slice(r+1));var i=v("Patches").W;return t(e)?i(e,n):this.produce(e,function(e){return i(e,n)})},r}(),te=new ee,ne=te.produce,re=te.produceWithPatches.bind(te),oe=te.setAutoFreeze.bind(te),ie=te.setUseProxies.bind(te),ae=te.applyPatches.bind(te),se=te.createDraft.bind(te),ue=te.finishDraft.bind(te);return fp.Immer=ee,fp.applyPatches=ae,fp.castDraft=function(e){return e},fp.castImmutable=function(e){return e},fp.createDraft=se,fp.current=P,fp.default=ne,fp.enableAllPlugins=function(){_(),L(),R()},fp.enableES5=_,fp.enableMapSet=L,fp.enablePatches=R,fp.finishDraft=ue,fp.freeze=p,fp.immerable=W,fp.isDraft=t,fp.isDraftable=n,fp.nothing=V,fp.original=function(n){return t(n)||e(23,n),n[G].u},fp.produce=ne,fp.produceWithPatches=re,fp.setAutoFreeze=oe,fp.setUseProxies=ie,fp}function hp(){return lp||(lp=1,dp.exports=pp()),dp.exports}function gp(){if(cp)return ip;cp=1,Object.defineProperty(ip,"__esModule",{value:!0});var e=sp(),t=hp();function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function r(e,t){return e(t={exports:{}},t.exports),t.exports}var o=r(function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.default=e.exports,e.exports.__esModule=!0});n(o);var i=r(function(e){e.exports=function(e){if(Array.isArray(e))return o(e)},e.exports.default=e.exports,e.exports.__esModule=!0});n(i);var a=r(function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.default=e.exports,e.exports.__esModule=!0});n(a);var s=r(function(e){e.exports=function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}},e.exports.default=e.exports,e.exports.__esModule=!0});n(s);var u=r(function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.default=e.exports,e.exports.__esModule=!0});n(u);var l=n(r(function(e){e.exports=function(e){return i(e)||a(e)||s(e)||u()},e.exports.default=e.exports,e.exports.__esModule=!0})),c=r(function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.default=e.exports,e.exports.__esModule=!0});n(c);var d=r(function(e){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}},e.exports.default=e.exports,e.exports.__esModule=!0});n(d);var f=r(function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.default=e.exports,e.exports.__esModule=!0});n(f);var p=r(function(e){e.exports=function(e,t){return c(e)||d(e,t)||s(e,t)||f()},e.exports.default=e.exports,e.exports.__esModule=!0}),h=n(p),g=n(r(function(e){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.default=e.exports,e.exports.__esModule=!0})),v=new WeakMap,m=new WeakMap,y=new WeakMap,b=new WeakMap,E=new WeakMap,C=new WeakMap,w=new WeakMap;function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?D(Object(n),!0).forEach(function(t){g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function S(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return x(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return x(e,t)}(e))||t){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var T=r(function(e){e.exports=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o},e.exports.default=e.exports,e.exports.__esModule=!0});n(T);var O=r(function(e){e.exports=function(e,t){if(null==e)return{};var n,r,o=T(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o},e.exports.default=e.exports,e.exports.__esModule=!0}),N=n(O);function B(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return k(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return k(e,t)}(e))||t){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var F,P=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=!n,o=n?j(e):e,i=F.None,a=F.None,s=0,u=null,l=B(o);try{for(l.s();!(t=l.n()).done;){var c=t.value,d=c.codePointAt(0);if(!d)break;var f=Z(c,d),p=h(r?[a,f]:[f,i],2);if(i=p[0],a=p[1],J(i,F.ZWJ)&&J(a,F.ExtPict)&&!ne(r?e.substring(0,s):e.substring(0,e.length-s)))break;if(J(i,F.RI)&&J(a,F.RI)&&!(u=null!==u?!u:!!r||oe(e.substring(0,e.length-s))))break;if(i!==F.None&&a!==F.None&&ee(i,a))break;s+=c.length}}catch(e){l.e(e)}finally{l.f()}return s||1},I=/\s/,_=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,R=/['\u2018\u2019]/,L=function(e,t,n){if(n){var r=e.length-t;return[e.slice(r,e.length),e.slice(0,r)]}return[e.slice(0,t),e.slice(t)]},M=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(I.test(t))return!1;if(R.test(t)){var o=P(n,r),i=L(n,o,r),a=h(i,2);if(e(a[0],a[1],r))return!0}return!_.test(t)},j=function*(e){for(var t=e.length-1,n=0;n<e.length;n++){var r=e.charAt(t-n);if(z(r.charCodeAt(0))){var o=e.charAt(t-n-1);if(H(o.charCodeAt(0))){yield o+r,n++;continue}}yield r}},H=function(e){return e>=55296&&e<=56319},z=function(e){return e>=56320&&e<=57343};!function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"}(F||(F={}));var $=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,U=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,V=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,W=/^[\u1100-\u115F\uA960-\uA97C]$/,G=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,q=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,K=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,Y=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,X=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,Z=function(e,t){var n=F.Any;return-1!==e.search($)&&(n|=F.Extend),8205===t&&(n|=F.ZWJ),t>=127462&&t<=127487&&(n|=F.RI),-1!==e.search(U)&&(n|=F.Prepend),-1!==e.search(V)&&(n|=F.SpacingMark),-1!==e.search(W)&&(n|=F.L),-1!==e.search(G)&&(n|=F.V),-1!==e.search(q)&&(n|=F.T),-1!==e.search(K)&&(n|=F.LV),-1!==e.search(Y)&&(n|=F.LVT),-1!==e.search(X)&&(n|=F.ExtPict),n};function J(e,t){return 0!==(e&t)}var Q=[[F.L,F.L|F.V|F.LV|F.LVT],[F.LV|F.V,F.V|F.T],[F.LVT|F.T,F.T],[F.Any,F.Extend|F.ZWJ],[F.Any,F.SpacingMark],[F.Prepend,F.Any],[F.ZWJ,F.ExtPict],[F.RI,F.RI]];function ee(e,t){return-1===Q.findIndex(function(n){return J(e,n[0])&&J(t,n[1])})}var te=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,ne=function(e){return-1!==e.search(te)},re=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,oe=function(e){var t=e.match(re);return null!==t&&t[0].length/2%2==1},ie=function(t){return e.isPlainObject(t)&&we.isNodeList(t.children)&&!he.isEditor(t)},ae={isAncestor:function(t){return e.isPlainObject(t)&&we.isNodeList(t.children)},isElement:ie,isElementList:function(e){return Array.isArray(e)&&e.every(function(e){return ae.isElement(e)})},isElementProps:function(e){return void 0!==e.children},isElementType:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"type";return ie(e)&&e[n]===t},matches:function(e,t){for(var n in t)if("children"!==n&&e[n]!==t[n])return!1;return!0}},se=["text"],ue=["text"];function le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?le(Object(n),!0).forEach(function(t){g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):le(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function de(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return fe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fe(e,t)}(e))||t){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function fe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var pe=new WeakMap,he={above:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.voids,r=void 0!==n&&n,o=t.mode,i=void 0===o?"lowest":o,a=t.at,s=void 0===a?e.selection:a,u=t.match;if(s){var l,c=he.path(e,s),d="lowest"===i,f=de(he.levels(e,{at:c,voids:r,match:u,reverse:d}));try{for(f.s();!(l=f.n()).done;){var p=h(l.value,2),g=p[0],v=p[1];if(!We.isText(g)&&!xe.equals(c,v))return[g,v]}}catch(e){f.e(e)}finally{f.f()}}},addMark:function(e,t,n){e.addMark(t,n)},after:function(e,t){var n,r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i={anchor:he.point(e,t,{edge:"end"}),focus:he.end(e,[])},a=o.distance,s=void 0===a?1:a,u=0,l=de(he.positions(e,ce(ce({},o),{},{at:i})));try{for(l.s();!(r=l.n()).done;){var c=r.value;if(u>s)break;0!==u&&(n=c),u++}}catch(e){l.e(e)}finally{l.f()}return n},before:function(e,t){var n,r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i={anchor:he.start(e,[]),focus:he.point(e,t,{edge:"start"})},a=o.distance,s=void 0===a?1:a,u=0,l=de(he.positions(e,ce(ce({},o),{},{at:i,reverse:!0})));try{for(l.s();!(r=l.n()).done;){var c=r.value;if(u>s)break;0!==u&&(n=c),u++}}catch(e){l.e(e)}finally{l.f()}return n},deleteBackward:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).unit,n=void 0===t?"character":t;e.deleteBackward(n)},deleteForward:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).unit,n=void 0===t?"character":t;e.deleteForward(n)},deleteFragment:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).direction,n=void 0===t?"forward":t;e.deleteFragment(n)},edges:function(e,t){return[he.start(e,t),he.end(e,t)]},end:function(e,t){return he.point(e,t,{edge:"end"})},first:function(e,t){var n=he.path(e,t,{edge:"start"});return he.node(e,n)},fragment:function(e,t){var n=he.range(e,t),r=we.fragment(e,n);return r},hasBlocks:function(e,t){return t.children.some(function(t){return he.isBlock(e,t)})},hasInlines:function(e,t){return t.children.some(function(t){return We.isText(t)||he.isInline(e,t)})},hasTexts:function(e,t){return t.children.every(function(e){return We.isText(e)})},insertBreak:function(e){e.insertBreak()},insertSoftBreak:function(e){e.insertSoftBreak()},insertFragment:function(e,t){e.insertFragment(t)},insertNode:function(e,t){e.insertNode(t)},insertText:function(e,t){e.insertText(t)},isBlock:function(e,t){return ae.isElement(t)&&!e.isInline(t)},isEditor:function(t){var n=pe.get(t);if(void 0!==n)return n;if(!e.isPlainObject(t))return!1;var r="function"==typeof t.addMark&&"function"==typeof t.apply&&"function"==typeof t.deleteBackward&&"function"==typeof t.deleteForward&&"function"==typeof t.deleteFragment&&"function"==typeof t.insertBreak&&"function"==typeof t.insertSoftBreak&&"function"==typeof t.insertFragment&&"function"==typeof t.insertNode&&"function"==typeof t.insertText&&"function"==typeof t.isInline&&"function"==typeof t.isVoid&&"function"==typeof t.normalizeNode&&"function"==typeof t.onChange&&"function"==typeof t.removeMark&&"function"==typeof t.getDirtyPaths&&(null===t.marks||e.isPlainObject(t.marks))&&(null===t.selection||Ie.isRange(t.selection))&&we.isNodeList(t.children)&&Se.isOperationList(t.operations);return pe.set(t,r),r},isEnd:function(e,t,n){var r=he.end(e,n);return Be.equals(t,r)},isEdge:function(e,t,n){return he.isStart(e,t,n)||he.isEnd(e,t,n)},isEmpty:function(e,t){var n=t.children,r=h(n,1)[0];return 0===n.length||1===n.length&&We.isText(r)&&""===r.text&&!e.isVoid(t)},isInline:function(e,t){return ae.isElement(t)&&e.isInline(t)},isNormalizing:function(e){var t=b.get(e);return void 0===t||t},isStart:function(e,t,n){if(0!==t.offset)return!1;var r=he.start(e,n);return Be.equals(t,r)},isVoid:function(e,t){return ae.isElement(t)&&e.isVoid(t)},last:function(e,t){var n=he.path(e,t,{edge:"end"});return he.node(e,n)},leaf:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=he.path(e,t,n);return[we.leaf(e,r),r]},levels:function*(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.at,r=void 0===n?e.selection:n,o=t.reverse,i=void 0!==o&&o,a=t.voids,s=void 0!==a&&a,u=t.match;if(null==u&&(u=function(){return!0}),r){var l,c=[],d=he.path(e,r),f=de(we.levels(e,d));try{for(f.s();!(l=f.n()).done;){var p=h(l.value,2),g=p[0],v=p[1];if(u(g,v)&&(c.push([g,v]),!s&&he.isVoid(e,g)))break}}catch(e){f.e(e)}finally{f.f()}i&&c.reverse(),yield*c}},marks:function(e){var t=e.marks,n=e.selection;if(!n)return null;if(t)return t;if(Ie.isExpanded(n)){var r=he.nodes(e,{match:We.isText}),o=h(r,1)[0];if(o){var i=h(o,1)[0];return i.text,N(i,se)}return{}}var a=n.anchor,s=a.path,u=he.leaf(e,s),l=h(u,1)[0];if(0===a.offset){var c=he.previous(e,{at:s,match:We.isText}),d=he.above(e,{match:function(t){return he.isBlock(e,t)}});if(c&&d){var f=h(c,2),p=f[0],g=f[1],v=h(d,2)[1];xe.isAncestor(v,g)&&(l=p)}}var m=l;return m.text,N(m,ue)},next:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.mode,r=void 0===n?"lowest":n,o=t.voids,i=void 0!==o&&o,a=t.match,s=t.at,u=void 0===s?e.selection:s;if(u){var l=he.after(e,u,{voids:i});if(l){var c=he.last(e,[]),d=h(c,2)[1],f=[l.path,d];if(xe.isPath(u)&&0===u.length)throw new Error("Cannot get the next node from the root node!");if(null==a)if(xe.isPath(u)){var p=he.parent(e,u),g=h(p,1)[0];a=function(e){return g.children.includes(e)}}else a=function(){return!0};var v=he.nodes(e,{at:f,match:a,mode:r,voids:i}),m=h(v,1)[0];return m}}},node:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=he.path(e,t,n),o=we.get(e,r);return[o,r]},nodes:function*(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.at,r=void 0===n?e.selection:n,o=t.mode,i=void 0===o?"all":o,a=t.universal,s=void 0!==a&&a,u=t.reverse,l=void 0!==u&&u,c=t.voids,d=void 0!==c&&c,f=t.match;if(f||(f=function(){return!0}),r){var p,g;if(ve.isSpan(r))p=r[0],g=r[1];else{var v=he.path(e,r,{edge:"start"}),m=he.path(e,r,{edge:"end"});p=l?m:v,g=l?v:m}var y,b,E=we.nodes(e,{reverse:l,from:p,to:g,pass:function(t){var n=h(t,1)[0];return!d&&he.isVoid(e,n)}}),C=[],w=de(E);try{for(w.s();!(b=w.n()).done;){var D=h(b.value,2),A=D[0],S=D[1],x=y&&0===xe.compare(S,y[1]);if("highest"!==i||!x)if(f(A,S))if("lowest"===i&&x)y=[A,S];else{var T="lowest"===i?y:[A,S];T&&(s?C.push(T):yield T),y=[A,S]}else if(s&&!x&&We.isText(A))return}}catch(e){w.e(e)}finally{w.f()}"lowest"===i&&y&&(s?C.push(y):yield y),s&&(yield*C)}},normalize:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).force,n=void 0!==t&&t,r=function(e){return v.get(e)||[]},o=function(e){var t=r(e).pop(),n=t.join(",");return function(e){return m.get(e)||new Set}(e).delete(n),t};if(he.isNormalizing(e)){if(n){var i=Array.from(we.nodes(e),function(e){return h(e,2)[1]}),a=new Set(i.map(function(e){return e.join(",")}));v.set(e,i),m.set(e,a)}0!==r(e).length&&he.withoutNormalizing(e,function(){var t,n=de(r(e));try{for(n.s();!(t=n.n()).done;){var i=t.value;if(we.has(e,i)){var a=he.node(e,i),s=h(a,2),u=s[0];s[1];ae.isElement(u)&&0===u.children.length&&e.normalizeNode(a)}}}catch(e){n.e(e)}finally{n.f()}for(var l=42*r(e).length,c=0;0!==r(e).length;){if(c>l)throw new Error("\n Could not completely normalize the editor after ".concat(l," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.\n "));var d=o(e);if(we.has(e,d)){var f=he.node(e,d);e.normalizeNode(f)}c++}})}},parent:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=he.path(e,t,n),o=xe.parent(r);return he.node(e,o)},path:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.depth,o=n.edge;if(xe.isPath(t))if("start"===o){var i=we.first(e,t);t=h(i,2)[1]}else if("end"===o){var a=we.last(e,t);t=h(a,2)[1]}return Ie.isRange(t)&&(t="start"===o?Ie.start(t):"end"===o?Ie.end(t):xe.common(t.anchor.path,t.focus.path)),Be.isPoint(t)&&(t=t.path),null!=r&&(t=t.slice(0,r)),t},hasPath:function(e,t){return we.has(e,t)},pathRef:function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).affinity,r={current:t,affinity:void 0===n?"forward":n,unref:function(){var t=r.current;return he.pathRefs(e).delete(r),r.current=null,t}};return he.pathRefs(e).add(r),r},pathRefs:function(e){var t=E.get(e);return t||(t=new Set,E.set(e,t)),t},point:function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).edge,r=void 0===n?"start":n;if(xe.isPath(t)){var o;if("end"===r){var i=we.last(e,t);o=h(i,2)[1]}else{var a=we.first(e,t);o=h(a,2)[1]}var s=we.get(e,o);if(!We.isText(s))throw new Error("Cannot get the ".concat(r," point in the node at path [").concat(t,"] because it has no ").concat(r," text node."));return{path:o,offset:"end"===r?s.text.length:0}}if(Ie.isRange(t)){var u=Ie.edges(t),l=h(u,2),c=l[0],d=l[1];return"start"===r?c:d}return t},pointRef:function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).affinity,r={current:t,affinity:void 0===n?"forward":n,unref:function(){var t=r.current;return he.pointRefs(e).delete(r),r.current=null,t}};return he.pointRefs(e).add(r),r},pointRefs:function(e){var t=C.get(e);return t||(t=new Set,C.set(e,t)),t},positions:function*(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.at,r=void 0===n?e.selection:n,o=t.unit,i=void 0===o?"offset":o,a=t.reverse,s=void 0!==a&&a,u=t.voids,l=void 0!==u&&u;if(r){var c,d=he.range(e,r),f=Ie.edges(d),p=h(f,2),g=p[0],v=p[1],m=s?v:g,y=!1,b="",E=0,C=0,w=0,D=de(he.nodes(e,{at:r,reverse:s,voids:l}));try{for(D.s();!(c=D.n()).done;){var A=h(c.value,2),S=A[0],x=A[1];if(ae.isElement(S)){if(!l&&e.isVoid(S)){yield he.start(e,x);continue}if(e.isInline(S))continue;if(he.hasInlines(e,S)){var T=xe.isAncestor(x,v.path)?v:he.end(e,x),O=xe.isAncestor(x,g.path)?g:he.start(e,x);b=he.string(e,{anchor:O,focus:T},{voids:l}),y=!0}}if(We.isText(S)){var N=xe.equals(x,m.path);for(N?(C=s?m.offset:S.text.length-m.offset,w=m.offset):(C=S.text.length,w=s?C:0),(N||y||"offset"===i)&&(yield{path:x,offset:w},y=!1);;){if(0===E){if(""===b)break;E=B(b,i,s),b=L(b,E,s)[1]}if(w=s?w-E:w+E,(C-=E)<0){E=-C;break}E=0,yield{path:x,offset:w}}}}}catch(e){D.e(e)}finally{D.f()}}function B(e,t,n){return"character"===t?P(e,n):"word"===t?function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=0,r=!1;e.length>0;){var o=P(e,t),i=L(e,o,t),a=h(i,2),s=a[0],u=a[1];if(M(s,u,t))r=!0,n+=o;else{if(r)break;n+=o}e=u}return n}(e,n):"line"===t||"block"===t?e.length:1}},previous:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.mode,r=void 0===n?"lowest":n,o=t.voids,i=void 0!==o&&o,a=t.match,s=t.at,u=void 0===s?e.selection:s;if(u){var l=he.before(e,u,{voids:i});if(l){var c=he.first(e,[]),d=h(c,2)[1],f=[l.path,d];if(xe.isPath(u)&&0===u.length)throw new Error("Cannot get the previous node from the root node!");if(null==a)if(xe.isPath(u)){var p=he.parent(e,u),g=h(p,1)[0];a=function(e){return g.children.includes(e)}}else a=function(){return!0};var v=he.nodes(e,{reverse:!0,at:f,match:a,mode:r,voids:i}),m=h(v,1)[0];return m}}},range:function(e,t,n){return Ie.isRange(t)&&!n?t:{anchor:he.start(e,t),focus:he.end(e,n||t)}},rangeRef:function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).affinity,r={current:t,affinity:void 0===n?"forward":n,unref:function(){var t=r.current;return he.rangeRefs(e).delete(r),r.current=null,t}};return he.rangeRefs(e).add(r),r},rangeRefs:function(e){var t=w.get(e);return t||(t=new Set,w.set(e,t)),t},removeMark:function(e,t){e.removeMark(t)},setNormalizing:function(e,t){b.set(e,t)},start:function(e,t){return he.point(e,t,{edge:"start"})},string:function(e,t){var n,r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).voids,o=void 0!==r&&r,i=he.range(e,t),a=Ie.edges(i),s=h(a,2),u=s[0],l=s[1],c="",d=de(he.nodes(e,{at:i,match:We.isText,voids:o}));try{for(d.s();!(n=d.n()).done;){var f=h(n.value,2),p=f[0],g=f[1],v=p.text;xe.equals(g,l.path)&&(v=v.slice(0,l.offset)),xe.equals(g,u.path)&&(v=v.slice(u.offset)),c+=v}}catch(e){d.e(e)}finally{d.f()}return c},unhangRange:function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).voids,r=void 0!==n&&n,o=Ie.edges(t),i=h(o,2),a=i[0],s=i[1];if(0!==a.offset||0!==s.offset||Ie.isCollapsed(t))return t;var u,l=he.above(e,{at:s,match:function(t){return he.isBlock(e,t)}}),c=l?l[1]:[],d={anchor:he.start(e,a),focus:s},f=!0,p=de(he.nodes(e,{at:d,match:We.isText,reverse:!0,voids:r}));try{for(p.s();!(u=p.n()).done;){var g=h(u.value,2),v=g[0],m=g[1];if(f)f=!1;else if(""!==v.text||xe.isBefore(m,c)){s={path:m,offset:v.text.length};break}}}catch(e){p.e(e)}finally{p.f()}return{anchor:a,focus:s}},void:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return he.above(e,ce(ce({},t),{},{match:function(t){return he.isVoid(e,t)}}))},withoutNormalizing:function(e,t){var n=he.isNormalizing(e);he.setNormalizing(e,!1);try{t()}finally{he.setNormalizing(e,n)}he.normalize(e)}},ge={isLocation:function(e){return xe.isPath(e)||Be.isPoint(e)||Ie.isRange(e)}},ve={isSpan:function(e){return Array.isArray(e)&&2===e.length&&e.every(xe.isPath)}},me=["children"],ye=["text"];function be(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Ee(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ee(e,t)}(e))||t){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function Ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ce=new WeakMap,we={ancestor:function(e,t){var n=we.get(e,t);if(We.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(Le.stringify(n)));return n},ancestors:function*(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=be(xe.ancestors(t,r));try{for(o.s();!(n=o.n()).done;){var i=n.value,a=[we.ancestor(e,i),i];yield a}}catch(e){o.e(e)}finally{o.f()}},child:function(e,t){if(We.isText(e))throw new Error("Cannot get the child of a text node: ".concat(Le.stringify(e)));var n=e.children[t];if(null==n)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(Le.stringify(e)));return n},children:function*(e,t){for(var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).reverse,r=void 0!==n&&n,o=we.ancestor(e,t),i=o.children,a=r?i.length-1:0;r?a>=0:a<i.length;){var s=we.child(o,a),u=t.concat(a);yield[s,u],a=r?a-1:a+1}},common:function(e,t,n){var r=xe.common(t,n);return[we.get(e,r),r]},descendant:function(e,t){var n=we.get(e,t);if(he.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(Le.stringify(n)));return n},descendants:function*(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=be(we.nodes(e,n));try{for(r.s();!(t=r.n()).done;){var o=h(t.value,2),i=o[0],a=o[1];0!==a.length&&(yield[i,a])}}catch(e){r.e(e)}finally{r.f()}},elements:function*(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=be(we.nodes(e,n));try{for(r.s();!(t=r.n()).done;){var o=h(t.value,2),i=o[0],a=o[1];ae.isElement(i)&&(yield[i,a])}}catch(e){r.e(e)}finally{r.f()}},extractProps:function(e){return ae.isAncestor(e)?(e.children,N(e,me)):(e.text,N(e,ye))},first:function(e,t){for(var n=t.slice(),r=we.get(e,n);r&&!We.isText(r)&&0!==r.children.length;)r=r.children[0],n.push(0);return[r,n]},fragment:function(e,n){if(We.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(Le.stringify(e)));var r=t.produce({children:e.children},function(e){var t,r=Ie.edges(n),o=h(r,2),i=o[0],a=o[1],s=we.nodes(e,{reverse:!0,pass:function(e){var t=h(e,2)[1];return!Ie.includes(n,t)}}),u=be(s);try{for(u.s();!(t=u.n()).done;){var l=h(t.value,2)[1];if(!Ie.includes(n,l)){var c=we.parent(e,l),d=l[l.length-1];c.children.splice(d,1)}if(xe.equals(l,a.path)){var f=we.leaf(e,l);f.text=f.text.slice(0,a.offset)}if(xe.equals(l,i.path)){var p=we.leaf(e,l);p.text=p.text.slice(i.offset)}}}catch(e){u.e(e)}finally{u.f()}he.isEditor(e)&&(e.selection=null)});return r.children},get:function(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(We.isText(n)||!n.children[o])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(Le.stringify(e)));n=n.children[o]}return n},has:function(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(We.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode:function(e){return We.isText(e)||ae.isElement(e)||he.isEditor(e)},isNodeList:function(e){if(!Array.isArray(e))return!1;var t=Ce.get(e);if(void 0!==t)return t;var n=e.every(function(e){return we.isNode(e)});return Ce.set(e,n),n},last:function(e,t){for(var n=t.slice(),r=we.get(e,n);r&&!We.isText(r)&&0!==r.children.length;){var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf:function(e,t){var n=we.get(e,t);if(!We.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(Le.stringify(n)));return n},levels:function*(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=be(xe.levels(t,r));try{for(o.s();!(n=o.n()).done;){var i=n.value,a=we.get(e,i);yield[a,i]}}catch(e){o.e(e)}finally{o.f()}},matches:function(e,t){return ae.isElement(e)&&ae.isElementProps(t)&&ae.matches(e,t)||We.isText(e)&&We.isTextProps(t)&&We.matches(e,t)},nodes:function*(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.pass,r=t.reverse,o=void 0!==r&&r,i=t.from,a=void 0===i?[]:i,s=t.to,u=new Set,l=[],c=e;!s||!(o?xe.isBefore(l,s):xe.isAfter(l,s));)if(u.has(c)||(yield[c,l]),u.has(c)||We.isText(c)||0===c.children.length||null!=n&&!1!==n([c,l])){if(0===l.length)break;if(!o){var d=xe.next(l);if(we.has(e,d)){l=d,c=we.get(e,l);continue}}if(o&&0!==l[l.length-1])l=xe.previous(l),c=we.get(e,l);else l=xe.parent(l),c=we.get(e,l),u.add(c)}else{u.add(c);var f=o?c.children.length-1:0;xe.isAncestor(l,a)&&(f=a[l.length]),l=l.concat(f),c=we.get(e,l)}},parent:function(e,t){var n=xe.parent(t),r=we.get(e,n);if(We.isText(r))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return r},string:function(e){return We.isText(e)?e.text:e.children.map(we.string).join("")},texts:function*(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=be(we.nodes(e,n));try{for(r.s();!(t=r.n()).done;){var o=h(t.value,2),i=o[0],a=o[1];We.isText(i)&&(yield[i,a])}}catch(e){r.e(e)}finally{r.f()}}};function De(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?De(Object(n),!0).forEach(function(t){g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):De(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Se={isNodeOperation:function(e){return Se.isOperation(e)&&e.type.endsWith("_node")},isOperation:function(t){if(!e.isPlainObject(t))return!1;switch(t.type){case"insert_node":case"remove_node":return xe.isPath(t.path)&&we.isNode(t.node);case"insert_text":case"remove_text":return"number"==typeof t.offset&&"string"==typeof t.text&&xe.isPath(t.path);case"merge_node":return"number"==typeof t.position&&xe.isPath(t.path)&&e.isPlainObject(t.properties);case"move_node":return xe.isPath(t.path)&&xe.isPath(t.newPath);case"set_node":return xe.isPath(t.path)&&e.isPlainObject(t.properties)&&e.isPlainObject(t.newProperties);case"set_selection":return null===t.properties&&Ie.isRange(t.newProperties)||null===t.newProperties&&Ie.isRange(t.properties)||e.isPlainObject(t.properties)&&e.isPlainObject(t.newProperties);case"split_node":return xe.isPath(t.path)&&"number"==typeof t.position&&e.isPlainObject(t.properties);default:return!1}},isOperationList:function(e){return Array.isArray(e)&&e.every(function(e){return Se.isOperation(e)})},isSelectionOperation:function(e){return Se.isOperation(e)&&e.type.endsWith("_selection")},isTextOperation:function(e){return Se.isOperation(e)&&e.type.endsWith("_text")},inverse:function(e){switch(e.type){case"insert_node":return Ae(Ae({},e),{},{type:"remove_node"});case"insert_text":return Ae(Ae({},e),{},{type:"remove_text"});case"merge_node":return Ae(Ae({},e),{},{type:"split_node",path:xe.previous(e.path)});case"move_node":var t=e.newPath,n=e.path;if(xe.equals(t,n))return e;if(xe.isSibling(n,t))return Ae(Ae({},e),{},{path:t,newPath:n});var r=xe.transform(n,e),o=xe.transform(xe.next(n),e);return Ae(Ae({},e),{},{path:r,newPath:o});case"remove_node":return Ae(Ae({},e),{},{type:"insert_node"});case"remove_text":return Ae(Ae({},e),{},{type:"insert_text"});case"set_node":var i=e.properties,a=e.newProperties;return Ae(Ae({},e),{},{properties:a,newProperties:i});case"set_selection":var s=e.properties,u=e.newProperties;return Ae(Ae({},e),{},null==s?{properties:u,newProperties:null}:null==u?{properties:null,newProperties:s}:{properties:u,newProperties:s});case"split_node":return Ae(Ae({},e),{},{type:"merge_node",path:xe.next(e.path)})}}},xe={ancestors:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.reverse,r=void 0!==n&&n,o=xe.levels(e,t);return o=r?o.slice(1):o.slice(0,-1)},common:function(e,t){for(var n=[],r=0;r<e.length&&r<t.length;r++){var o=e[r];if(o!==t[r])break;n.push(o)}return n},compare:function(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return 0},endsAfter:function(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return xe.equals(r,o)&&i>a},endsAt:function(e,t){var n=e.length,r=e.slice(0,n),o=t.slice(0,n);return xe.equals(r,o)},endsBefore:function(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return xe.equals(r,o)&&i<a},equals:function(e,t){return e.length===t.length&&e.every(function(e,n){return e===t[n]})},hasPrevious:function(e){return e[e.length-1]>0},isAfter:function(e,t){return 1===xe.compare(e,t)},isAncestor:function(e,t){return e.length<t.length&&0===xe.compare(e,t)},isBefore:function(e,t){return-1===xe.compare(e,t)},isChild:function(e,t){return e.length===t.length+1&&0===xe.compare(e,t)},isCommon:function(e,t){return e.length<=t.length&&0===xe.compare(e,t)},isDescendant:function(e,t){return e.length>t.length&&0===xe.compare(e,t)},isParent:function(e,t){return e.length+1===t.length&&0===xe.compare(e,t)},isPath:function(e){return Array.isArray(e)&&(0===e.length||"number"==typeof e[0])},isSibling:function(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),r=t.slice(0,-1);return e[e.length-1]!==t[t.length-1]&&xe.equals(n,r)},levels:function(e){for(var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).reverse,n=void 0!==t&&t,r=[],o=0;o<=e.length;o++)r.push(e.slice(0,o));return n&&r.reverse(),r},next:function(e){if(0===e.length)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},operationCanTransformPath:function(e){switch(e.type){case"insert_node":case"remove_node":case"merge_node":case"split_node":case"move_node":return!0;default:return!1}},parent:function(e){if(0===e.length)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous:function(e){if(0===e.length)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative:function(e,t){if(!xe.isAncestor(t,e)&&!xe.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.produce(e,function(t){var o=r.affinity,i=void 0===o?"forward":o;if(e&&0!==(null==e?void 0:e.length)){if(null===t)return null;switch(n.type){case"insert_node":var a=n.path;(xe.equals(a,t)||xe.endsBefore(a,t)||xe.isAncestor(a,t))&&(t[a.length-1]+=1);break;case"remove_node":var s=n.path;if(xe.equals(s,t)||xe.isAncestor(s,t))return null;xe.endsBefore(s,t)&&(t[s.length-1]-=1);break;case"merge_node":var u=n.path,l=n.position;xe.equals(u,t)||xe.endsBefore(u,t)?t[u.length-1]-=1:xe.isAncestor(u,t)&&(t[u.length-1]-=1,t[u.length]+=l);break;case"split_node":var c=n.path,d=n.position;if(xe.equals(c,t)){if("forward"===i)t[t.length-1]+=1;else if("backward"!==i)return null}else xe.endsBefore(c,t)?t[c.length-1]+=1:xe.isAncestor(c,t)&&e[c.length]>=d&&(t[c.length-1]+=1,t[c.length]-=d);break;case"move_node":var f=n.path,p=n.newPath;if(xe.equals(f,p))return;if(xe.isAncestor(f,t)||xe.equals(f,t)){var h=p.slice();return xe.endsBefore(f,p)&&f.length<p.length&&(h[f.length-1]-=1),h.concat(t.slice(f.length))}xe.isSibling(f,p)&&(xe.isAncestor(p,t)||xe.equals(p,t))?xe.endsBefore(f,t)?t[f.length-1]-=1:t[f.length-1]+=1:xe.endsBefore(p,t)||xe.equals(p,t)||xe.isAncestor(p,t)?(xe.endsBefore(f,t)&&(t[f.length-1]-=1),t[p.length-1]+=1):xe.endsBefore(f,t)&&(xe.equals(p,t)&&(t[p.length-1]+=1),t[f.length-1]-=1)}}})}},Te={transform:function(e,t){var n=e.current,r=e.affinity;if(null!=n){var o=xe.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}};function Oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oe(Object(n),!0).forEach(function(t){g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Be={compare:function(e,t){var n=xe.compare(e.path,t.path);return 0===n?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter:function(e,t){return 1===Be.compare(e,t)},isBefore:function(e,t){return-1===Be.compare(e,t)},equals:function(e,t){return e.offset===t.offset&&xe.equals(e.path,t.path)},isPoint:function(t){return e.isPlainObject(t)&&"number"==typeof t.offset&&xe.isPath(t.path)},transform:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.produce(e,function(e){if(null===e)return null;var t=r.affinity,o=void 0===t?"forward":t,i=e.path,a=e.offset;switch(n.type){case"insert_node":case"move_node":e.path=xe.transform(i,n,r);break;case"insert_text":xe.equals(n.path,i)&&(n.offset<a||n.offset===a&&"forward"===o)&&(e.offset+=n.text.length);break;case"merge_node":xe.equals(n.path,i)&&(e.offset+=n.position),e.path=xe.transform(i,n,r);break;case"remove_text":xe.equals(n.path,i)&&n.offset<=a&&(e.offset-=Math.min(a-n.offset,n.text.length));break;case"remove_node":if(xe.equals(n.path,i)||xe.isAncestor(n.path,i))return null;e.path=xe.transform(i,n,r);break;case"split_node":if(xe.equals(n.path,i)){if(n.position===a&&null==o)return null;(n.position<a||n.position===a&&"forward"===o)&&(e.offset-=n.position,e.path=xe.transform(i,n,Ne(Ne({},r),{},{affinity:"forward"})))}else e.path=xe.transform(i,n,r)}})}},ke={transform:function(e,t){var n=e.current,r=e.affinity;if(null!=n){var o=Be.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},Fe=["anchor","focus"];function Pe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var Ie={edges:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).reverse,n=void 0!==t&&t,r=e.anchor,o=e.focus;return Ie.isBackward(e)===n?[r,o]:[o,r]},end:function(e){var t=Ie.edges(e),n=h(t,2)[1];return n},equals:function(e,t){return Be.equals(e.anchor,t.anchor)&&Be.equals(e.focus,t.focus)},includes:function(e,t){if(Ie.isRange(t)){if(Ie.includes(e,t.anchor)||Ie.includes(e,t.focus))return!0;var n=Ie.edges(e),r=h(n,2),o=r[0],i=r[1],a=Ie.edges(t),s=h(a,2),u=s[0],l=s[1];return Be.isBefore(o,u)&&Be.isAfter(i,l)}var c=Ie.edges(e),d=h(c,2),f=d[0],p=d[1],g=!1,v=!1;return Be.isPoint(t)?(g=Be.compare(t,f)>=0,v=Be.compare(t,p)<=0):(g=xe.compare(t,f.path)>=0,v=xe.compare(t,p.path)<=0),g&&v},intersection:function(e,t){e.anchor,e.focus;var n=N(e,Fe),r=Ie.edges(e),o=h(r,2),i=o[0],a=o[1],s=Ie.edges(t),u=h(s,2),l=u[0],c=u[1],d=Be.isBefore(i,l)?l:i,f=Be.isBefore(a,c)?a:c;return Be.isBefore(f,d)?null:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pe(Object(n),!0).forEach(function(t){g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({anchor:d,focus:f},n)},isBackward:function(e){var t=e.anchor,n=e.focus;return Be.isAfter(t,n)},isCollapsed:function(e){var t=e.anchor,n=e.focus;return Be.equals(t,n)},isExpanded:function(e){return!Ie.isCollapsed(e)},isForward:function(e){return!Ie.isBackward(e)},isRange:function(t){return e.isPlainObject(t)&&Be.isPoint(t.anchor)&&Be.isPoint(t.focus)},points:function*(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start:function(e){var t=Ie.edges(e),n=h(t,1)[0];return n},transform:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.produce(e,function(e){if(null===e)return null;var t,o,i=r.affinity,a=void 0===i?"inward":i;if("inward"===a){var s=Ie.isCollapsed(e);Ie.isForward(e)?(t="forward",o=s?t:"backward"):(t="backward",o=s?t:"forward")}else"outward"===a?Ie.isForward(e)?(t="backward",o="forward"):(t="forward",o="backward"):(t=a,o=a);var u=Be.transform(e.anchor,n,{affinity:t}),l=Be.transform(e.focus,n,{affinity:o});if(!u||!l)return null;e.anchor=u,e.focus=l})}},_e={transform:function(e,t){var n=e.current,r=e.affinity;if(null!=n){var o=Ie.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},Re=void 0,Le={setScrubber:function(e){Re=e},stringify:function(e){return JSON.stringify(e,Re)}},Me=function t(n,r){for(var o in n){var i=n[o],a=r[o];if(e.isPlainObject(i)&&e.isPlainObject(a)){if(!t(i,a))return!1}else if(Array.isArray(i)&&Array.isArray(a)){if(i.length!==a.length)return!1;for(var s=0;s<i.length;s++)if(i[s]!==a[s])return!1}else if(i!==a)return!1}for(var u in r)if(void 0===n[u]&&void 0!==r[u])return!1;return!0},je=["text"],He=["anchor","focus"];function ze(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return $e(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $e(e,t)}(e))||t){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function $e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ue(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ue(Object(n),!0).forEach(function(t){g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ue(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var We={equals:function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).loose,r=void 0!==n&&n;function o(e){return e.text,N(e,je)}return Me(r?o(e):e,r?o(t):t)},isText:function(t){return e.isPlainObject(t)&&"string"==typeof t.text},isTextList:function(e){return Array.isArray(e)&&e.every(function(e){return We.isText(e)})},isTextProps:function(e){return void 0!==e.text},matches:function(e,t){for(var n in t)if("text"!==n&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations:function(e,t){var n,r=[Ve({},e)],o=ze(t);try{for(o.s();!(n=o.n()).done;){var i,a=n.value,s=(a.anchor,a.focus,N(a,He)),u=Ie.edges(a),l=h(u,2),c=l[0],d=l[1],f=[],p=0,g=c.offset,v=d.offset,m=ze(r);try{for(m.s();!(i=m.n()).done;){var y=i.value,b=y.text.length,E=p;if(p+=b,g<=E&&p<=v)Object.assign(y,s),f.push(y);else if(g!==v&&(g===p||v===E)||g>p||v<E||v===E&&0!==E)f.push(y);else{var C=y,w=void 0,D=void 0;if(v<p){var A=v-E;D=Ve(Ve({},C),{},{text:C.text.slice(A)}),C=Ve(Ve({},C),{},{text:C.text.slice(0,A)})}if(g>E){var S=g-E;w=Ve(Ve({},C),{},{text:C.text.slice(0,S)}),C=Ve(Ve({},C),{},{text:C.text.slice(S)})}Object.assign(C,s),w&&f.push(w),f.push(C),D&&f.push(D)}}}catch(e){m.e(e)}finally{m.f()}r=f}}catch(e){o.e(e)}finally{o.f()}return r}};function Ge(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function qe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ge(Object(n),!0).forEach(function(t){g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ge(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ke(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Ye(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ye(e,t)}(e))||t){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function Ye(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Xe={transform:function(e,n){e.children=t.createDraft(e.children);var r=e.selection&&t.createDraft(e.selection);try{r=function(e,t,n){switch(n.type){case"insert_node":var r=n.path,o=n.node,i=we.parent(e,r),a=r[r.length-1];if(a>i.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(r,"] because the destination is past the end of the node."));if(i.children.splice(a,0,o),t){var s,u=Ke(Ie.points(t));try{for(u.s();!(s=u.n()).done;){var c=h(s.value,2),d=c[0];t[c[1]]=Be.transform(d,n)}}catch(e){u.e(e)}finally{u.f()}}break;case"insert_text":var f=n.path,p=n.offset,g=n.text;if(0===g.length)break;var v=we.leaf(e,f),m=v.text.slice(0,p),y=v.text.slice(p);if(v.text=m+g+y,t){var b,E=Ke(Ie.points(t));try{for(E.s();!(b=E.n()).done;){var C=h(b.value,2),w=C[0];t[C[1]]=Be.transform(w,n)}}catch(e){E.e(e)}finally{E.f()}}break;case"merge_node":var D=n.path,A=we.get(e,D),S=xe.previous(D),x=we.get(e,S),T=we.parent(e,D),O=D[D.length-1];if(We.isText(A)&&We.isText(x))x.text+=A.text;else{if(We.isText(A)||We.isText(x))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(D,"] to nodes of different interfaces: ").concat(Le.stringify(A)," ").concat(Le.stringify(x)));var N;(N=x.children).push.apply(N,l(A.children))}if(T.children.splice(O,1),t){var B,k=Ke(Ie.points(t));try{for(k.s();!(B=k.n()).done;){var F=h(B.value,2),P=F[0];t[F[1]]=Be.transform(P,n)}}catch(e){k.e(e)}finally{k.f()}}break;case"move_node":var I=n.path,_=n.newPath;if(xe.isAncestor(I,_))throw new Error("Cannot move a path [".concat(I,"] to new path [").concat(_,"] because the destination is inside itself."));var R=we.get(e,I),L=we.parent(e,I),M=I[I.length-1];L.children.splice(M,1);var j=xe.transform(I,n),H=we.get(e,xe.parent(j)),z=j[j.length-1];if(H.children.splice(z,0,R),t){var $,U=Ke(Ie.points(t));try{for(U.s();!($=U.n()).done;){var V=h($.value,2),W=V[0];t[V[1]]=Be.transform(W,n)}}catch(e){U.e(e)}finally{U.f()}}break;case"remove_node":var G=n.path,q=G[G.length-1];if(we.parent(e,G).children.splice(q,1),t){var K,Y=Ke(Ie.points(t));try{for(Y.s();!(K=Y.n()).done;){var X=h(K.value,2),Z=X[0],J=X[1],Q=Be.transform(Z,n);if(null!=t&&null!=Q)t[J]=Q;else{var ee,te=void 0,ne=void 0,re=Ke(we.texts(e));try{for(re.s();!(ee=re.n()).done;){var oe=h(ee.value,2),ie=oe[0],ae=oe[1];if(-1!==xe.compare(ae,G)){ne=[ie,ae];break}te=[ie,ae]}}catch(e){re.e(e)}finally{re.f()}var se=!1;te&&ne&&(se=xe.equals(ne[1],G)?!xe.hasPrevious(ne[1]):xe.common(te[1],G).length<xe.common(ne[1],G).length),te&&!se?(Z.path=te[1],Z.offset=te[0].text.length):ne?(Z.path=ne[1],Z.offset=0):t=null}}}catch(e){Y.e(e)}finally{Y.f()}}break;case"remove_text":var ue=n.path,le=n.offset,ce=n.text;if(0===ce.length)break;var de=we.leaf(e,ue),fe=de.text.slice(0,le),pe=de.text.slice(le+ce.length);if(de.text=fe+pe,t){var he,ge=Ke(Ie.points(t));try{for(ge.s();!(he=ge.n()).done;){var ve=h(he.value,2),me=ve[0];t[ve[1]]=Be.transform(me,n)}}catch(e){ge.e(e)}finally{ge.f()}}break;case"set_node":var ye=n.path,be=n.properties,Ee=n.newProperties;if(0===ye.length)throw new Error("Cannot set properties on the root node!");var Ce=we.get(e,ye);for(var De in Ee){if("children"===De||"text"===De)throw new Error('Cannot set the "'.concat(De,'" property of nodes!'));var Ae=Ee[De];null==Ae?delete Ce[De]:Ce[De]=Ae}for(var Se in be)Ee.hasOwnProperty(Se)||delete Ce[Se];break;case"set_selection":var Te=n.newProperties;if(null==Te)t=Te;else{if(null==t){if(!Ie.isRange(Te))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(Le.stringify(Te)," when there is no current selection."));t=qe({},Te)}for(var Oe in Te){var Ne=Te[Oe];if(null==Ne){if("anchor"===Oe||"focus"===Oe)throw new Error('Cannot remove the "'.concat(Oe,'" selection property'));delete t[Oe]}else t[Oe]=Ne}}break;case"split_node":var ke=n.path,Fe=n.position,Pe=n.properties;if(0===ke.length)throw new Error('Cannot apply a "split_node" operation at path ['.concat(ke,"] because the root node cannot be split."));var _e,Re=we.get(e,ke),Me=we.parent(e,ke),je=ke[ke.length-1];if(We.isText(Re)){var He=Re.text.slice(0,Fe),ze=Re.text.slice(Fe);Re.text=He,_e=qe(qe({},Pe),{},{text:ze})}else{var $e=Re.children.slice(0,Fe),Ue=Re.children.slice(Fe);Re.children=$e,_e=qe(qe({},Pe),{},{children:Ue})}if(Me.children.splice(je+1,0,_e),t){var Ve,Ge=Ke(Ie.points(t));try{for(Ge.s();!(Ve=Ge.n()).done;){var Ye=h(Ve.value,2),Xe=Ye[0];t[Ye[1]]=Be.transform(Xe,n)}}catch(e){Ge.e(e)}finally{Ge.f()}}}return t}(e,r,n)}finally{e.children=t.finishDraft(e.children),e.selection=r?t.isDraft(r)?t.finishDraft(r):r:null}}},Ze=["text"],Je=["children"];function Qe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function et(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qe(Object(n),!0).forEach(function(t){g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function tt(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return nt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nt(e,t)}(e))||t){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function nt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var rt={insertNodes:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};he.withoutNormalizing(e,function(){var r=n.hanging,o=void 0!==r&&r,i=n.voids,a=void 0!==i&&i,s=n.mode,u=void 0===s?"lowest":s,l=n.at,c=n.match,d=n.select;if(we.isNode(t)&&(t=[t]),0!==t.length){var f=h(t,1)[0];if(l||(l=e.selection?e.selection:e.children.length>0?he.end(e,[]):[0],d=!0),null==d&&(d=!1),Ie.isRange(l))if(o||(l=he.unhangRange(e,l)),Ie.isCollapsed(l))l=l.anchor;else{var p=Ie.edges(l),g=h(p,2)[1],v=he.pointRef(e,g);gt.delete(e,{at:l}),l=v.unref()}if(Be.isPoint(l)){null==c&&(c=We.isText(f)?function(e){return We.isText(e)}:e.isInline(f)?function(t){return We.isText(t)||he.isInline(e,t)}:function(t){return he.isBlock(e,t)});var m=he.nodes(e,{at:l.path,match:c,mode:u,voids:a}),y=h(m,1)[0];if(!y)return;var b=h(y,2)[1],E=he.pathRef(e,b),C=he.isEnd(e,l,b);gt.splitNodes(e,{at:l,match:c,mode:u,voids:a});var w=E.unref();l=C?xe.next(w):w}var D=xe.parent(l),A=l[l.length-1];if(a||!he.void(e,{at:D})){var S,x=tt(t);try{for(x.s();!(S=x.n()).done;){var T=S.value,O=D.concat(A);A++,e.apply({type:"insert_node",path:O,node:T}),l=xe.next(l)}}catch(e){x.e(e)}finally{x.f()}if(l=xe.previous(l),d){var N=he.end(e,l);N&&gt.select(e,N)}}}})},liftNodes:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};he.withoutNormalizing(e,function(){var n=t.at,r=void 0===n?e.selection:n,o=t.mode,i=void 0===o?"lowest":o,a=t.voids,s=void 0!==a&&a,u=t.match;if(null==u&&(u=xe.isPath(r)?at(e,r):function(t){return he.isBlock(e,t)}),r)for(var l=he.nodes(e,{at:r,match:u,mode:i,voids:s}),c=Array.from(l,function(t){var n=h(t,2)[1];return he.pathRef(e,n)}),d=0,f=c;d<f.length;d++){var p=f[d].unref();if(p.length<2)throw new Error("Cannot lift node at a path [".concat(p,"] because it has a depth of less than `2`."));var g=he.node(e,xe.parent(p)),v=h(g,2),m=v[0],y=v[1],b=p[p.length-1],E=m.children.length;if(1===E){var C=xe.next(y);gt.moveNodes(e,{at:p,to:C,voids:s}),gt.removeNodes(e,{at:y,voids:s})}else if(0===b)gt.moveNodes(e,{at:p,to:y,voids:s});else if(b===E-1){var w=xe.next(y);gt.moveNodes(e,{at:p,to:w,voids:s})}else{var D=xe.next(p),A=xe.next(y);gt.splitNodes(e,{at:D,voids:s}),gt.moveNodes(e,{at:p,to:A,voids:s})}}})},mergeNodes:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};he.withoutNormalizing(e,function(){var n=t.match,r=t.at,o=void 0===r?e.selection:r,i=t.hanging,a=void 0!==i&&i,s=t.voids,u=void 0!==s&&s,l=t.mode,c=void 0===l?"lowest":l;if(o){if(null==n)if(xe.isPath(o)){var d=he.parent(e,o),f=h(d,1)[0];n=function(e){return f.children.includes(e)}}else n=function(t){return he.isBlock(e,t)};if(!a&&Ie.isRange(o)&&(o=he.unhangRange(e,o)),Ie.isRange(o))if(Ie.isCollapsed(o))o=o.anchor;else{var p=Ie.edges(o),g=h(p,2)[1],v=he.pointRef(e,g);gt.delete(e,{at:o}),o=v.unref(),null==t.at&&gt.select(e,o)}var m=he.nodes(e,{at:o,match:n,voids:u,mode:c}),y=h(m,1)[0],b=he.previous(e,{at:o,match:n,voids:u,mode:c});if(y&&b){var E=h(y,2),C=E[0],w=E[1],D=h(b,2),A=D[0],S=D[1];if(0!==w.length&&0!==S.length){var x,T,O=xe.next(S),B=xe.common(w,S),k=xe.isSibling(w,S),F=Array.from(he.levels(e,{at:w}),function(e){return h(e,1)[0]}).slice(B.length).slice(0,-1),P=he.above(e,{at:w,mode:"highest",match:function(t){return F.includes(t)&&ot(e,t)}}),I=P&&he.pathRef(e,P[1]);if(We.isText(C)&&We.isText(A)){C.text;var _=N(C,Ze);T=A.text.length,x=_}else{if(!ae.isElement(C)||!ae.isElement(A))throw new Error("Cannot merge the node at path [".concat(w,"] with the previous sibling because it is not the same kind: ").concat(Le.stringify(C)," ").concat(Le.stringify(A)));C.children;var R=N(C,Je);T=A.children.length,x=R}k||gt.moveNodes(e,{at:w,to:O,voids:u}),I&&gt.removeNodes(e,{at:I.current,voids:u}),ae.isElement(A)&&he.isEmpty(e,A)||We.isText(A)&&""===A.text&&0!==S[S.length-1]?gt.removeNodes(e,{at:S,voids:u}):e.apply({type:"merge_node",path:O,position:T,properties:x}),I&&I.unref()}}}})},moveNodes:function(e,t){he.withoutNormalizing(e,function(){var n=t.to,r=t.at,o=void 0===r?e.selection:r,i=t.mode,a=void 0===i?"lowest":i,s=t.voids,u=void 0!==s&&s,l=t.match;if(o){null==l&&(l=xe.isPath(o)?at(e,o):function(t){return he.isBlock(e,t)});for(var c=he.pathRef(e,n),d=he.nodes(e,{at:o,match:l,mode:a,voids:u}),f=Array.from(d,function(t){var n=h(t,2)[1];return he.pathRef(e,n)}),p=0,g=f;p<g.length;p++){var v=g[p].unref(),m=c.current;0!==v.length&&e.apply({type:"move_node",path:v,newPath:m}),c.current&&xe.isSibling(m,v)&&xe.isAfter(m,v)&&(c.current=xe.next(c.current))}c.unref()}})},removeNodes:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};he.withoutNormalizing(e,function(){var n=t.hanging,r=void 0!==n&&n,o=t.voids,i=void 0!==o&&o,a=t.mode,s=void 0===a?"lowest":a,u=t.at,l=void 0===u?e.selection:u,c=t.match;if(l){null==c&&(c=xe.isPath(l)?at(e,l):function(t){return he.isBlock(e,t)}),!r&&Ie.isRange(l)&&(l=he.unhangRange(e,l));for(var d=he.nodes(e,{at:l,match:c,mode:s,voids:i}),f=Array.from(d,function(t){var n=h(t,2)[1];return he.pathRef(e,n)}),p=0,g=f;p<g.length;p++){var v=g[p].unref();if(v){var m=he.node(e,v),y=h(m,1)[0];e.apply({type:"remove_node",path:v,node:y})}}}})},setNodes:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};he.withoutNormalizing(e,function(){var r=n.match,o=n.at,i=void 0===o?e.selection:o,a=n.compare,s=n.merge,u=n.hanging,l=void 0!==u&&u,c=n.mode,d=void 0===c?"lowest":c,f=n.split,p=void 0!==f&&f,g=n.voids,v=void 0!==g&&g;if(i){if(null==r&&(r=xe.isPath(i)?at(e,i):function(t){return he.isBlock(e,t)}),!l&&Ie.isRange(i)&&(i=he.unhangRange(e,i)),p&&Ie.isRange(i)){if(Ie.isCollapsed(i)&&he.leaf(e,i.anchor)[0].text.length>0)return;var m=he.rangeRef(e,i,{affinity:"inward"}),y=Ie.edges(i),b=h(y,2),E=b[0],C=b[1],w="lowest"===d?"lowest":"highest",D=he.isEnd(e,C,C.path);gt.splitNodes(e,{at:C,match:r,mode:w,voids:v,always:!D});var A=he.isStart(e,E,E.path);gt.splitNodes(e,{at:E,match:r,mode:w,voids:v,always:!A}),i=m.unref(),null==n.at&&gt.select(e,i)}a||(a=function(e,t){return e!==t});var S,x=tt(he.nodes(e,{at:i,match:r,mode:d,voids:v}));try{for(x.s();!(S=x.n()).done;){var T=h(S.value,2),O=T[0],N=T[1],B={},k={};if(0!==N.length){var F=!1;for(var P in t)"children"!==P&&"text"!==P&&a(t[P],O[P])&&(F=!0,O.hasOwnProperty(P)&&(B[P]=O[P]),s?null!=t[P]&&(k[P]=s(O[P],t[P])):null!=t[P]&&(k[P]=t[P]));F&&e.apply({type:"set_node",path:N,properties:B,newProperties:k})}}}catch(e){x.e(e)}finally{x.f()}}})},splitNodes:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};he.withoutNormalizing(e,function(){var n=t.mode,r=void 0===n?"lowest":n,o=t.voids,i=void 0!==o&&o,a=t.match,s=t.at,u=void 0===s?e.selection:s,l=t.height,c=void 0===l?0:l,d=t.always,f=void 0!==d&&d;if(null==a&&(a=function(t){return he.isBlock(e,t)}),Ie.isRange(u)&&(u=it(e,u)),xe.isPath(u)){var p=u,g=he.point(e,p),v=he.parent(e,p),m=h(v,1)[0];a=function(e){return e===m},c=g.path.length-p.length+1,u=g,f=!0}if(u){var y,b=he.pointRef(e,u,{affinity:"backward"});try{var E=he.nodes(e,{at:u,match:a,mode:r,voids:i}),C=h(E,1)[0];if(!C)return;var w=he.void(e,{at:u,mode:"highest"});if(!i&&w){var D=h(w,2),A=D[0],S=D[1];if(ae.isElement(A)&&e.isInline(A)){var x=he.after(e,S);if(!x){var T=xe.next(S);gt.insertNodes(e,{text:""},{at:T,voids:i}),x=he.point(e,T)}u=x,f=!0}c=u.path.length-S.length+1,f=!0}y=he.pointRef(e,u);var O,N=u.path.length-c,B=h(C,2)[1],k=u.path.slice(0,N),F=0===c?u.offset:u.path[N]+0,P=tt(he.levels(e,{at:k,reverse:!0,voids:i}));try{for(P.s();!(O=P.n()).done;){var I=h(O.value,2),_=I[0],R=I[1],L=!1;if(R.length<B.length||0===R.length||!i&&he.isVoid(e,_))break;var M=b.current,j=he.isEnd(e,M,R);if(f||!b||!he.isEdge(e,M,R)){L=!0;var H=we.extractProps(_);e.apply({type:"split_node",path:R,position:F,properties:H})}F=R[R.length-1]+(L||j?1:0)}}catch(e){P.e(e)}finally{P.f()}if(null==t.at){var z=y.current||he.end(e,[]);gt.select(e,z)}}finally{var $;b.unref(),null===($=y)||void 0===$||$.unref()}}})},unsetNodes:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Array.isArray(t)||(t=[t]);var r,o={},i=tt(t);try{for(i.s();!(r=i.n()).done;){o[r.value]=null}}catch(e){i.e(e)}finally{i.f()}gt.setNodes(e,o,n)},unwrapNodes:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};he.withoutNormalizing(e,function(){var n=t.mode,r=void 0===n?"lowest":n,o=t.split,i=void 0!==o&&o,a=t.voids,s=void 0!==a&&a,u=t.at,l=void 0===u?e.selection:u,c=t.match;if(l){null==c&&(c=xe.isPath(l)?at(e,l):function(t){return he.isBlock(e,t)}),xe.isPath(l)&&(l=he.range(e,l));var d,f=Ie.isRange(l)?he.rangeRef(e,l):null,p=he.nodes(e,{at:l,match:c,mode:r,voids:s}),g=Array.from(p,function(t){var n=h(t,2)[1];return he.pathRef(e,n)}).reverse(),v=tt(g);try{var m=function(){var t=d.value.unref(),n=he.node(e,t),r=h(n,1)[0],o=he.range(e,t);i&&f&&(o=Ie.intersection(f.current,o)),gt.liftNodes(e,{at:o,match:function(e){return ae.isAncestor(r)&&r.children.includes(e)},voids:s})};for(v.s();!(d=v.n()).done;)m()}catch(e){v.e(e)}finally{v.f()}f&&f.unref()}})},wrapNodes:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};he.withoutNormalizing(e,function(){var r=n.mode,o=void 0===r?"lowest":r,i=n.split,a=void 0!==i&&i,s=n.voids,u=void 0!==s&&s,l=n.match,c=n.at,d=void 0===c?e.selection:c;if(d){if(null==l&&(l=xe.isPath(d)?at(e,d):e.isInline(t)?function(t){return he.isInline(e,t)||We.isText(t)}:function(t){return he.isBlock(e,t)}),a&&Ie.isRange(d)){var f=Ie.edges(d),p=h(f,2),g=p[0],v=p[1],m=he.rangeRef(e,d,{affinity:"inward"});gt.splitNodes(e,{at:v,match:l,voids:u}),gt.splitNodes(e,{at:g,match:l,voids:u}),d=m.unref(),null==n.at&&gt.select(e,d)}for(var y=Array.from(he.nodes(e,{at:d,match:e.isInline(t)?function(t){return he.isBlock(e,t)}:function(e){return he.isEditor(e)},mode:"lowest",voids:u})),b=0,E=y;b<E.length;b++){var C=h(E[b],2)[1],w=Ie.isRange(d)?Ie.intersection(d,he.range(e,C)):d;if(w){var D=Array.from(he.nodes(e,{at:w,match:l,mode:o,voids:u}));if(D.length>0){var A=function(){var n=h(D,1)[0],r=D[D.length-1],o=h(n,2)[1],i=h(r,2)[1];if(0===o.length&&0===i.length)return"continue";var a=xe.equals(o,i)?xe.parent(o):xe.common(o,i),s=he.range(e,o,i),l=he.node(e,a),c=h(l,1)[0],d=a.length+1,f=xe.next(i.slice(0,d)),p=et(et({},t),{},{children:[]});gt.insertNodes(e,p,{at:f,voids:u}),gt.moveNodes(e,{at:s,match:function(e){return ae.isAncestor(c)&&c.children.includes(e)},to:f.concat(0),voids:u})}();if("continue"===A)continue}}}}})}},ot=function e(t,n){if(ae.isElement(n)){var r=n;return!!he.isVoid(t,n)||1===r.children.length&&e(t,r.children[0])}return!he.isEditor(n)},it=function(e,t){if(Ie.isCollapsed(t))return t.anchor;var n=Ie.edges(t),r=h(n,2)[1],o=he.pointRef(e,r);return gt.delete(e,{at:t}),o.unref()},at=function(e,t){var n=he.node(e,t),r=h(n,1)[0];return function(e){return e===r}};function st(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ut(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?st(Object(n),!0).forEach(function(t){g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):st(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var lt={collapse:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).edge,n=void 0===t?"anchor":t,r=e.selection;if(r)if("anchor"===n)gt.select(e,r.anchor);else if("focus"===n)gt.select(e,r.focus);else if("start"===n){var o=Ie.edges(r),i=h(o,1)[0];gt.select(e,i)}else if("end"===n){var a=Ie.edges(r),s=h(a,2)[1];gt.select(e,s)}},deselect:function(e){var t=e.selection;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},move:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.selection,r=t.distance,o=void 0===r?1:r,i=t.unit,a=void 0===i?"character":i,s=t.reverse,u=void 0!==s&&s,l=t.edge,c=void 0===l?null:l;if(n){"start"===c&&(c=Ie.isBackward(n)?"focus":"anchor"),"end"===c&&(c=Ie.isBackward(n)?"anchor":"focus");var d=n.anchor,f=n.focus,p={distance:o,unit:a},h={};if(null==c||"anchor"===c){var g=u?he.before(e,d,p):he.after(e,d,p);g&&(h.anchor=g)}if(null==c||"focus"===c){var v=u?he.before(e,f,p):he.after(e,f,p);v&&(h.focus=v)}gt.setSelection(e,h)}},select:function(e,t){var n=e.selection;if(t=he.range(e,t),n)gt.setSelection(e,t);else{if(!Ie.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(Le.stringify(t)));e.apply({type:"set_selection",properties:n,newProperties:t})}},setPoint:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.selection,o=n.edge,i=void 0===o?"both":o;if(r){"start"===i&&(i=Ie.isBackward(r)?"focus":"anchor"),"end"===i&&(i=Ie.isBackward(r)?"anchor":"focus");var a=r.anchor,s=r.focus,u="anchor"===i?a:s;gt.setSelection(e,g({},"anchor"===i?"anchor":"focus",ut(ut({},u),t)))}},setSelection:function(e,t){var n=e.selection,r={},o={};if(n){for(var i in t)("anchor"===i&&null!=t.anchor&&!Be.equals(t.anchor,n.anchor)||"focus"===i&&null!=t.focus&&!Be.equals(t.focus,n.focus)||"anchor"!==i&&"focus"!==i&&t[i]!==n[i])&&(r[i]=n[i],o[i]=t[i]);Object.keys(r).length>0&&e.apply({type:"set_selection",properties:r,newProperties:o})}}};function ct(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return dt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dt(e,t)}(e))||t){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function dt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ft={delete:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};he.withoutNormalizing(e,function(){var n=t.reverse,r=void 0!==n&&n,o=t.unit,i=void 0===o?"character":o,a=t.distance,s=void 0===a?1:a,u=t.voids,l=void 0!==u&&u,c=t.at,d=void 0===c?e.selection:c,f=t.hanging,p=void 0!==f&&f;if(d){var g=!1;if(Ie.isRange(d)&&Ie.isCollapsed(d)&&(g=!0,d=d.anchor),Be.isPoint(d)){var v=he.void(e,{at:d,mode:"highest"});if(!l&&v){d=h(v,2)[1]}else{var m={unit:i,distance:s};d={anchor:d,focus:r?he.before(e,d,m)||he.start(e,[]):he.after(e,d,m)||he.end(e,[])},p=!0}}if(xe.isPath(d))gt.removeNodes(e,{at:d,voids:l});else if(!Ie.isCollapsed(d)){if(!p){var y=Ie.edges(d),b=h(y,2)[1],E=he.end(e,[]);Be.equals(b,E)||(d=he.unhangRange(e,d,{voids:l}))}var C=Ie.edges(d),w=h(C,2),D=w[0],A=w[1],S=he.above(e,{match:function(t){return he.isBlock(e,t)},at:D,voids:l}),x=he.above(e,{match:function(t){return he.isBlock(e,t)},at:A,voids:l}),T=S&&x&&!xe.equals(S[1],x[1]),O=xe.equals(D.path,A.path),N=l?null:he.void(e,{at:D,mode:"highest"}),B=l?null:he.void(e,{at:A,mode:"highest"});if(N){var k=he.before(e,D);k&&S&&xe.isAncestor(S[1],k.path)&&(D=k)}if(B){var F=he.after(e,A);F&&x&&xe.isAncestor(x[1],F.path)&&(A=F)}var P,I,_=[],R=ct(he.nodes(e,{at:d,voids:l}));try{for(R.s();!(I=R.n()).done;){var L=I.value,M=h(L,2),j=M[0],H=M[1];P&&0===xe.compare(H,P)||(!l&&he.isVoid(e,j)||!xe.isCommon(H,D.path)&&!xe.isCommon(H,A.path))&&(_.push(L),P=H)}}catch(e){R.e(e)}finally{R.f()}var z=Array.from(_,function(t){var n=h(t,2)[1];return he.pathRef(e,n)}),$=he.pointRef(e,D),U=he.pointRef(e,A),V="";if(!O&&!N){var W=$.current,G=he.leaf(e,W),q=h(G,1)[0],K=W.path,Y=D.offset,X=q.text.slice(Y);X.length>0&&(e.apply({type:"remove_text",path:K,offset:Y,text:X}),V=X)}for(var Z=0,J=z;Z<J.length;Z++){var Q=J[Z].unref();gt.removeNodes(e,{at:Q,voids:l})}if(!B){var ee=U.current,te=he.leaf(e,ee),ne=h(te,1)[0],re=ee.path,oe=O?D.offset:0,ie=ne.text.slice(oe,A.offset);ie.length>0&&(e.apply({type:"remove_text",path:re,offset:oe,text:ie}),V=ie)}!O&&T&&U.current&&$.current&&gt.mergeNodes(e,{at:U.current,hanging:!0,voids:l}),g&&r&&"character"===i&&V.length>1&&V.match(/[\u0E00-\u0E7F]+/)&&gt.insertText(e,V.slice(0,V.length-s));var ae=$.unref(),se=U.unref(),ue=r?ae||se:se||ae;null==t.at&&ue&&gt.select(e,ue)}}})},insertFragment:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};he.withoutNormalizing(e,function(){var r=n.hanging,o=void 0!==r&&r,i=n.voids,a=void 0!==i&&i,s=n.at,u=void 0===s?e.selection:s;if(t.length&&u){if(Ie.isRange(u))if(o||(u=he.unhangRange(e,u)),Ie.isCollapsed(u))u=u.anchor;else{var l=Ie.edges(u),c=h(l,2)[1];if(!a&&he.void(e,{at:c}))return;var d=he.pointRef(e,c);gt.delete(e,{at:u}),u=d.unref()}else xe.isPath(u)&&(u=he.start(e,u));if(a||!he.void(e,{at:u})){var f=he.above(e,{at:u,match:function(t){return he.isInline(e,t)},mode:"highest",voids:a});if(f){var p=h(f,2)[1];if(he.isEnd(e,u,p))u=he.after(e,p);else if(he.isStart(e,u,p)){u=he.before(e,p)}}var g,v=he.above(e,{match:function(t){return he.isBlock(e,t)},at:u,voids:a}),m=h(v,2)[1],y=he.isStart(e,u,m),b=he.isEnd(e,u,m),E=y&&b,C=!y||y&&b,w=!b,D=we.first({children:t},[]),A=h(D,2)[1],S=we.last({children:t},[]),x=h(S,2)[1],T=[],O=function(t){var n=h(t,2),r=n[0],o=n[1];return!(0===o.length)&&(!!E||!(C&&xe.isAncestor(o,A)&&ae.isElement(r)&&!e.isVoid(r)&&!e.isInline(r))&&!(w&&xe.isAncestor(o,x)&&ae.isElement(r)&&!e.isVoid(r)&&!e.isInline(r)))},N=ct(we.nodes({children:t},{pass:O}));try{for(N.s();!(g=N.n()).done;){var B=g.value;O(B)&&T.push(B)}}catch(e){N.e(e)}finally{N.f()}for(var k=[],F=[],P=[],I=!0,_=!1,R=0,L=T;R<L.length;R++){var M=h(L[R],1)[0];ae.isElement(M)&&!e.isInline(M)?(I=!1,_=!0,F.push(M)):I?k.push(M):P.push(M)}var j=he.nodes(e,{at:u,match:function(t){return We.isText(t)||he.isInline(e,t)},mode:"highest",voids:a}),H=h(j,1)[0],z=h(H,2)[1],$=he.isStart(e,u,z),U=he.isEnd(e,u,z),V=he.pathRef(e,b&&!P.length?xe.next(m):m),W=he.pathRef(e,U?xe.next(z):z);gt.splitNodes(e,{at:u,match:function(t){return _?he.isBlock(e,t):We.isText(t)||he.isInline(e,t)},mode:_?"lowest":"highest",always:_&&(!y||k.length>0)&&(!b||P.length>0),voids:a});var G,q=he.pathRef(e,!$||$&&U?xe.next(z):z);if(gt.insertNodes(e,k,{at:q.current,match:function(t){return We.isText(t)||he.isInline(e,t)},mode:"highest",voids:a}),E&&!k.length&&F.length&&!P.length&&gt.delete(e,{at:m,voids:a}),gt.insertNodes(e,F,{at:V.current,match:function(t){return he.isBlock(e,t)},mode:"lowest",voids:a}),gt.insertNodes(e,P,{at:W.current,match:function(t){return We.isText(t)||he.isInline(e,t)},mode:"highest",voids:a}),!n.at)if(P.length>0&&W.current?G=xe.previous(W.current):F.length>0&&V.current?G=xe.previous(V.current):q.current&&(G=xe.previous(q.current)),G){var K=he.end(e,G);gt.select(e,K)}q.unref(),V.unref(),W.unref()}}})},insertText:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};he.withoutNormalizing(e,function(){var r=n.voids,o=void 0!==r&&r,i=n.at,a=void 0===i?e.selection:i;if(a){if(xe.isPath(a)&&(a=he.range(e,a)),Ie.isRange(a))if(Ie.isCollapsed(a))a=a.anchor;else{var s=Ie.end(a);if(!o&&he.void(e,{at:s}))return;var u=Ie.start(a),l=he.pointRef(e,u),c=he.pointRef(e,s);gt.delete(e,{at:a,voids:o});var d=l.unref(),f=c.unref();a=d||f,gt.setSelection(e,{anchor:a,focus:a})}if(o||!he.void(e,{at:a})){var p=a,h=p.path,g=p.offset;t.length>0&&e.apply({type:"insert_text",path:h,offset:g,text:t})}}})}};function pt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ht(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pt(Object(n),!0).forEach(function(t){g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var gt=ht(ht(ht(ht({},Xe),rt),lt),ft);return ip.Editor=he,ip.Element=ae,ip.Location=ge,ip.Node=we,ip.Operation=Se,ip.Path=xe,ip.PathRef=Te,ip.Point=Be,ip.PointRef=ke,ip.Range=Ie,ip.RangeRef=_e,ip.Scrubber=Le,ip.Span=ve,ip.Text=We,ip.Transforms=gt,ip.createEditor=function(){var e={children:[],operations:[],selection:null,marks:null,isInline:function(){return!1},isVoid:function(){return!1},onChange:function(){},apply:function(t){var n,r=S(he.pathRefs(e));try{for(r.s();!(n=r.n()).done;){var o=n.value;Te.transform(o,t)}}catch(e){r.e(e)}finally{r.f()}var i,a=S(he.pointRefs(e));try{for(a.s();!(i=a.n()).done;){var s=i.value;ke.transform(s,t)}}catch(e){a.e(e)}finally{a.f()}var u,l=S(he.rangeRefs(e));try{for(l.s();!(u=l.n()).done;){var c=u.value;_e.transform(c,t)}}catch(e){l.e(e)}finally{l.f()}var d,f,p=v.get(e)||[],h=m.get(e)||new Set,g=function(e){if(e){var t=e.join(",");f.has(t)||(f.add(t),d.push(e))}};if(xe.operationCanTransformPath(t)){d=[],f=new Set;var b,E=S(p);try{for(E.s();!(b=E.n()).done;){var C=b.value;g(xe.transform(C,t))}}catch(e){E.e(e)}finally{E.f()}}else d=p,f=h;var w,D=S(e.getDirtyPaths(t));try{for(D.s();!(w=D.n()).done;){g(w.value)}}catch(e){D.e(e)}finally{D.f()}v.set(e,d),m.set(e,f),gt.transform(e,t),e.operations.push(t),he.normalize(e),"set_selection"===t.type&&(e.marks=null),y.get(e)||(y.set(e,!0),Promise.resolve().then(function(){y.set(e,!1),e.onChange(),e.operations=[]}))},addMark:function(t,n){var r=e.selection;if(r)if(Ie.isExpanded(r))gt.setNodes(e,g({},t,n),{match:We.isText,split:!0});else{var o=A(A({},he.marks(e)||{}),{},g({},t,n));e.marks=o,y.get(e)||e.onChange()}},deleteBackward:function(t){var n=e.selection;n&&Ie.isCollapsed(n)&&gt.delete(e,{unit:t,reverse:!0})},deleteForward:function(t){var n=e.selection;n&&Ie.isCollapsed(n)&&gt.delete(e,{unit:t})},deleteFragment:function(t){var n=e.selection;n&&Ie.isExpanded(n)&&gt.delete(e,{reverse:"backward"===t})},getFragment:function(){var t=e.selection;return t?we.fragment(e,t):[]},insertBreak:function(){gt.splitNodes(e,{always:!0})},insertSoftBreak:function(){gt.splitNodes(e,{always:!0})},insertFragment:function(t){gt.insertFragment(e,t)},insertNode:function(t){gt.insertNodes(e,t)},insertText:function(t){var n=e.selection,r=e.marks;if(n){if(r){var o=A({text:t},r);gt.insertNodes(e,o)}else gt.insertText(e,t);e.marks=null}},normalizeNode:function(t){var n=h(t,2),r=n[0],o=n[1];if(!We.isText(r))if(ae.isElement(r)&&0===r.children.length){gt.insertNodes(e,{text:""},{at:o.concat(0),voids:!0})}else for(var i=!he.isEditor(r)&&(ae.isElement(r)&&(e.isInline(r)||0===r.children.length||We.isText(r.children[0])||e.isInline(r.children[0]))),a=0,s=0;s<r.children.length;s++,a++){var u=we.get(e,o);if(!We.isText(u)){var l=r.children[s],c=u.children[a-1],d=s===r.children.length-1;if((We.isText(l)||ae.isElement(l)&&e.isInline(l))!==i)gt.removeNodes(e,{at:o.concat(a),voids:!0}),a--;else if(ae.isElement(l)){if(e.isInline(l))if(null!=c&&We.isText(c)){if(d){gt.insertNodes(e,{text:""},{at:o.concat(a+1),voids:!0}),a++}}else{gt.insertNodes(e,{text:""},{at:o.concat(a),voids:!0}),a++}}else null!=c&&We.isText(c)&&(We.equals(l,c,{loose:!0})?(gt.mergeNodes(e,{at:o.concat(a),voids:!0}),a--):""===c.text?(gt.removeNodes(e,{at:o.concat(a-1),voids:!0}),a--):""===l.text&&(gt.removeNodes(e,{at:o.concat(a),voids:!0}),a--))}}},removeMark:function(t){var n=e.selection;if(n)if(Ie.isExpanded(n))gt.unsetNodes(e,t,{match:We.isText,split:!0});else{var r=A({},he.marks(e)||{});delete r[t],e.marks=r,y.get(e)||e.onChange()}},getDirtyPaths:function(e){switch(e.type){case"insert_text":case"remove_text":case"set_node":var t=e.path;return xe.levels(t);case"insert_node":var n=e.node,r=e.path,o=xe.levels(r),i=We.isText(n)?[]:Array.from(we.nodes(n),function(e){var t=h(e,2)[1];return r.concat(t)});return[].concat(l(o),l(i));case"merge_node":var a=e.path,s=xe.ancestors(a),u=xe.previous(a);return[].concat(l(s),[u]);case"move_node":var c=e.path,d=e.newPath;if(xe.equals(c,d))return[];var f,p=[],g=[],v=S(xe.ancestors(c));try{for(v.s();!(f=v.n()).done;){var m=f.value,y=xe.transform(m,e);p.push(y)}}catch(e){v.e(e)}finally{v.f()}var b,E=S(xe.ancestors(d));try{for(E.s();!(b=E.n()).done;){var C=b.value,w=xe.transform(C,e);g.push(w)}}catch(e){E.e(e)}finally{E.f()}var D=g[g.length-1],A=d[d.length-1],x=D.concat(A);return[].concat(p,g,[x]);case"remove_node":var T=e.path,O=xe.ancestors(T);return l(O);case"split_node":var N=e.path,B=xe.levels(N),k=xe.next(N);return[].concat(l(B),[k]);default:return[]}}};return e},ip}var vp,mp=gp(),yp={};function bp(){if(vp)return yp;vp=1;var e=sp(),t=gp(),n={isHistory:function(n){return e.isPlainObject(n)&&Array.isArray(n.redos)&&Array.isArray(n.undos)&&(0===n.redos.length||t.Operation.isOperationList(n.redos[0].operations))&&(0===n.undos.length||t.Operation.isOperationList(n.undos[0].operations))}},r=new WeakMap,o=new WeakMap,i=new WeakMap,a={isHistoryEditor:function(e){return n.isHistory(e.history)&&t.Editor.isEditor(e)},isMerging:function(e){return i.get(e)},isSaving:function(e){return o.get(e)},redo:function(e){e.redo()},undo:function(e){e.undo()},withMerging:function(e,t){var n=a.isMerging(e);i.set(e,!0),t(),i.set(e,n)},withoutMerging:function(e,t){var n=a.isMerging(e);i.set(e,!1),t(),i.set(e,n)},withoutSaving:function(e,t){var n=a.isSaving(e);o.set(e,!1),t(),o.set(e,n)}};function s(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(e,t)}(e))||t){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var l=function(e,n){return!(!n||"insert_text"!==e.type||"insert_text"!==n.type||e.offset!==n.offset+n.text.length||!t.Path.equals(e.path,n.path))||!(!n||"remove_text"!==e.type||"remove_text"!==n.type||e.offset+e.text.length!==n.offset||!t.Path.equals(e.path,n.path))},c=function(e,t){return"set_selection"!==e.type};return yp.HISTORY=r,yp.History=n,yp.HistoryEditor=a,yp.MERGING=i,yp.SAVING=o,yp.withHistory=function(e){var n=e,r=n.apply;return n.history={undos:[],redos:[]},n.redo=function(){var e=n.history,r=e.redos;if(r.length>0){var o=r[r.length-1];o.selectionBefore&&t.Transforms.setSelection(n,o.selectionBefore),a.withoutSaving(n,function(){t.Editor.withoutNormalizing(n,function(){var e,t=s(o.operations);try{for(t.s();!(e=t.n()).done;){var r=e.value;n.apply(r)}}catch(e){t.e(e)}finally{t.f()}})}),e.redos.pop(),n.writeHistory("undos",o)}},n.undo=function(){var e=n.history,r=e.undos;if(r.length>0){var o=r[r.length-1];a.withoutSaving(n,function(){t.Editor.withoutNormalizing(n,function(){var e,r=s(o.operations.map(t.Operation.inverse).reverse());try{for(r.s();!(e=r.n()).done;){var i=e.value;n.apply(i)}}catch(e){r.e(e)}finally{r.f()}o.selectionBefore&&t.Transforms.setSelection(n,o.selectionBefore)})}),n.writeHistory("redos",o),e.undos.pop()}},n.apply=function(e){var t=n.operations,o=n.history,i=o.undos,s=i[i.length-1],u=s&&s.operations[s.operations.length-1],d=a.isSaving(n),f=a.isMerging(n);if(null==d&&(d=c(e)),d){if(null==f&&(f=null!=s&&(0!==t.length||l(e,u))),s&&f)s.operations.push(e);else{var p={operations:[e],selectionBefore:n.selection};n.writeHistory("undos",p)}for(;i.length>100;)i.shift();o.redos=[]}r(e)},n.writeHistory=function(e,t){n.history[e].push(t)},n},yp}var Ep=bp(),Cp=function(e,t){return Cp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Cp(e,t)};function wp(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Cp(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Dp=function(){return Dp=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Dp.apply(this,arguments)};function Ap(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function Sp(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})}function xp(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}function Tp(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Op(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function Np(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function Bp(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=Tp(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,o){(function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)})(r,o,(t=e[n](t)).done,t.value)})}}}"function"==typeof SuppressedError&&SuppressedError;var kp,Fp={exports:{}};var Pp,Ip,_p=(kp||(kp=1,function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object Boolean]",a="[object Date]",s="[object Function]",u="[object GeneratorFunction]",l="[object Map]",c="[object Number]",d="[object Object]",f="[object Promise]",p="[object RegExp]",h="[object Set]",g="[object String]",v="[object Symbol]",m="[object WeakMap]",y="[object ArrayBuffer]",E="[object DataView]",C="[object Float32Array]",w="[object Float64Array]",D="[object Int8Array]",A="[object Int16Array]",S="[object Int32Array]",x="[object Uint8Array]",T="[object Uint8ClampedArray]",O="[object Uint16Array]",N="[object Uint32Array]",B=/\w*$/,k=/^\[object .+?Constructor\]$/,F=/^(?:0|[1-9]\d*)$/,P={};P[o]=P["[object Array]"]=P[y]=P[E]=P[i]=P[a]=P[C]=P[w]=P[D]=P[A]=P[S]=P[l]=P[c]=P[d]=P[p]=P[h]=P[g]=P[v]=P[x]=P[T]=P[O]=P[N]=!0,P["[object Error]"]=P[s]=P[m]=!1;var I="object"==typeof b&&b&&b.Object===Object&&b,_="object"==typeof self&&self&&self.Object===Object&&self,R=I||_||Function("return this")(),L=t&&!t.nodeType&&t,M=L&&e&&!e.nodeType&&e,j=M&&M.exports===L;function H(e,t){return e.set(t[0],t[1]),e}function z(e,t){return e.add(t),e}function $(e,t,n,r){for(var o=-1,i=e?e.length:0;++o<i;)n=t(n,e[o],o,e);return n}function U(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function V(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function W(e,t){return function(n){return e(t(n))}}function G(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var q=Array.prototype,K=Function.prototype,Y=Object.prototype,X=R["__core-js_shared__"],Z=function(){var e=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),J=K.toString,Q=Y.hasOwnProperty,ee=Y.toString,te=RegExp("^"+J.call(Q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ne=j?R.Buffer:void 0,re=R.Symbol,oe=R.Uint8Array,ie=W(Object.getPrototypeOf,Object),ae=Object.create,se=Y.propertyIsEnumerable,ue=q.splice,le=Object.getOwnPropertySymbols,ce=ne?ne.isBuffer:void 0,de=W(Object.keys,Object),fe=Le(R,"DataView"),pe=Le(R,"Map"),he=Le(R,"Promise"),ge=Le(R,"Set"),ve=Le(R,"WeakMap"),me=Le(Object,"create"),ye=$e(fe),be=$e(pe),Ee=$e(he),Ce=$e(ge),we=$e(ve),De=re?re.prototype:void 0,Ae=De?De.valueOf:void 0;function Se(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function xe(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Te(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Oe(e){this.__data__=new xe(e)}function Ne(e,t){var n=Ve(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&We(e)}(e)&&Q.call(e,"callee")&&(!se.call(e,"callee")||ee.call(e)==o)}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,i=!!r;for(var a in e)!Q.call(e,a)||i&&("length"==a||He(a,r))||n.push(a);return n}function Be(e,t,n){var r=e[t];Q.call(e,t)&&Ue(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function ke(e,t){for(var n=e.length;n--;)if(Ue(e[n][0],t))return n;return-1}function Fe(e,t,n,r,f,m,b){var k;if(r&&(k=m?r(e,f,m,b):r(e)),void 0!==k)return k;if(!Ke(e))return e;var F=Ve(e);if(F){if(k=function(e){var t=e.length,n=e.constructor(t);return t&&"string"==typeof e[0]&&Q.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!t)return function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(e,k)}else{var I=je(e),_=I==s||I==u;if(Ge(e))return function(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}(e,t);if(I==d||I==o||_&&!m){if(U(e))return m?e:{};if(k=function(e){return"function"!=typeof e.constructor||ze(e)?{}:Ke(t=ie(e))?ae(t):{};var t}(_?{}:e),!t)return function(e,t){return _e(e,Me(e),t)}(e,function(e,t){return e&&_e(t,Ye(t),e)}(k,e))}else{if(!P[I])return m?e:{};k=function(e,t,n,r){var o=e.constructor;switch(t){case y:return Ie(e);case i:case a:return new o(+e);case E:return function(e,t){var n=t?Ie(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,r);case C:case w:case D:case A:case S:case x:case T:case O:case N:return function(e,t){var n=t?Ie(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,r);case l:return function(e,t,n){var r=t?n(V(e),!0):V(e);return $(r,H,new e.constructor)}(e,r,n);case c:case g:return new o(e);case p:return function(e){var t=new e.constructor(e.source,B.exec(e));return t.lastIndex=e.lastIndex,t}(e);case h:return function(e,t,n){var r=t?n(G(e),!0):G(e);return $(r,z,new e.constructor)}(e,r,n);case v:return function(e){return Ae?Object(Ae.call(e)):{}}(e)}}(e,I,Fe,t)}}b||(b=new Oe);var R=b.get(e);if(R)return R;if(b.set(e,k),!F)var L=n?function(e){return function(e,t,n){var r=t(e);return Ve(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,Ye,Me)}(e):Ye(e);return function(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););}(L||e,function(o,i){L&&(o=e[i=o]),Be(k,i,Fe(o,t,n,r,i,e,b))}),k}function Pe(e){return!(!Ke(e)||(t=e,Z&&Z in t))&&(qe(e)||U(e)?te:k).test($e(e));var t}function Ie(e){var t=new e.constructor(e.byteLength);return new oe(t).set(new oe(e)),t}function _e(e,t,n,r){n||(n={});for(var o=-1,i=t.length;++o<i;){var a=t[o];Be(n,a,e[a])}return n}function Re(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Le(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Pe(n)?n:void 0}Se.prototype.clear=function(){this.__data__=me?me(null):{}},Se.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Se.prototype.get=function(e){var t=this.__data__;if(me){var r=t[e];return r===n?void 0:r}return Q.call(t,e)?t[e]:void 0},Se.prototype.has=function(e){var t=this.__data__;return me?void 0!==t[e]:Q.call(t,e)},Se.prototype.set=function(e,t){return this.__data__[e]=me&&void 0===t?n:t,this},xe.prototype.clear=function(){this.__data__=[]},xe.prototype.delete=function(e){var t=this.__data__,n=ke(t,e);return!(n<0||(n==t.length-1?t.pop():ue.call(t,n,1),0))},xe.prototype.get=function(e){var t=this.__data__,n=ke(t,e);return n<0?void 0:t[n][1]},xe.prototype.has=function(e){return ke(this.__data__,e)>-1},xe.prototype.set=function(e,t){var n=this.__data__,r=ke(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Te.prototype.clear=function(){this.__data__={hash:new Se,map:new(pe||xe),string:new Se}},Te.prototype.delete=function(e){return Re(this,e).delete(e)},Te.prototype.get=function(e){return Re(this,e).get(e)},Te.prototype.has=function(e){return Re(this,e).has(e)},Te.prototype.set=function(e,t){return Re(this,e).set(e,t),this},Oe.prototype.clear=function(){this.__data__=new xe},Oe.prototype.delete=function(e){return this.__data__.delete(e)},Oe.prototype.get=function(e){return this.__data__.get(e)},Oe.prototype.has=function(e){return this.__data__.has(e)},Oe.prototype.set=function(e,t){var n=this.__data__;if(n instanceof xe){var r=n.__data__;if(!pe||r.length<199)return r.push([e,t]),this;n=this.__data__=new Te(r)}return n.set(e,t),this};var Me=le?W(le,Object):function(){return[]},je=function(e){return ee.call(e)};function He(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||F.test(e))&&e>-1&&e%1==0&&e<t}function ze(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Y)}function $e(e){if(null!=e){try{return J.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ue(e,t){return e===t||e!=e&&t!=t}(fe&&je(new fe(new ArrayBuffer(1)))!=E||pe&&je(new pe)!=l||he&&je(he.resolve())!=f||ge&&je(new ge)!=h||ve&&je(new ve)!=m)&&(je=function(e){var t=ee.call(e),n=t==d?e.constructor:void 0,r=n?$e(n):void 0;if(r)switch(r){case ye:return E;case be:return l;case Ee:return f;case Ce:return h;case we:return m}return t});var Ve=Array.isArray;function We(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}(e.length)&&!qe(e)}var Ge=ce||function(){return!1};function qe(e){var t=Ke(e)?ee.call(e):"";return t==s||t==u}function Ke(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ye(e){return We(e)?Ne(e):function(e){if(!ze(e))return de(e);var t=[];for(var n in Object(e))Q.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}e.exports=function(e){return Fe(e,!0,!0)}}(Fp,Fp.exports)),Fp.exports),Rp=E(_p);var Lp=function(){if(Ip)return Pp;Ip=1;var e=9007199254740991,t="[object Arguments]",n="[object Function]",r="[object GeneratorFunction]",o=/^(?:0|[1-9]\d*)$/;function i(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););return e}var a,s,u=Object.prototype,l=u.hasOwnProperty,c=u.toString,d=u.propertyIsEnumerable,f=(a=Object.keys,s=Object,function(e){return a(s(e))});function p(e,n){var r=b(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&E(e)}(e)&&l.call(e,"callee")&&(!d.call(e,"callee")||c.call(e)==t)}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],o=r.length,i=!!o;for(var a in e)!l.call(e,a)||i&&("length"==a||y(a,o))||r.push(a);return r}var h,g=(h=function(e,t){return e&&v(e,t,C)},function(e,t){if(null==e)return e;if(!E(e))return h(e,t);for(var n=e.length,r=-1,o=Object(e);++r<n&&!1!==t(o[r],r,o););return e}),v=function(e,t,n){for(var r=-1,o=Object(e),i=n(e),a=i.length;a--;){var s=i[++r];if(!1===t(o[s],s,o))break}return e};function m(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||u,t!==r)return f(e);var t,n,r,o=[];for(var i in Object(e))l.call(e,i)&&"constructor"!=i&&o.push(i);return o}function y(t,n){return!!(n=null==n?e:n)&&("number"==typeof t||o.test(t))&&t>-1&&t%1==0&&t<n}var b=Array.isArray;function E(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=e}(t.length)&&!function(e){var t=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}(e)?c.call(e):"";return t==n||t==r}(t)}function C(e){return E(e)?p(e):m(e)}function w(e){return e}return Pp=function(e,t){return(b(e)?i:g)(e,"function"==typeof t?t:w)}}(),Mp=E(Lp),jp={};var Hp="created",zp="destroyed",$p="change",Up="scroll",Vp="fullscreen",Wp="unFullScreen",Gp={};function qp(e,t){var n=e.key,r=e.factory,o=e.config,i=Dp(Dp({},o),t||{});if(null!=Gp[n])throw new Error("Duplicated key '".concat(n,"' in menu items"));Gp[n]=r,function(e,t){null!=t&&(jp[e]=t)}(n,i)}var Kp=new WeakMap,Yp=new WeakMap,Xp=new WeakMap,Zp=new WeakMap,Jp=new WeakMap,Qp=new WeakMap,eh=new WeakMap,th=new WeakMap,nh=new WeakMap,rh=new WeakMap,oh=new WeakMap,ih=new WeakMap,ah=new WeakMap,sh=new WeakMap,uh=new WeakMap,lh=new WeakMap,ch=new WeakMap,dh=new WeakMap,fh=new WeakMap,ph=new WeakMap,hh=new WeakMap,gh=new WeakMap,vh=new WeakMap,mh=new WeakMap,yh=new WeakMap,bh=new WeakMap,Eh=new WeakMap,Ch=function(e){var t=e;return t.getAllMenuKeys=function(){var e=[];for(var t in Gp)e.push(t);return e},t.getConfig=function(){var e=rh.get(t);if(null==e)throw new Error("Can not get editor config");return e},t.getMenuConfig=function(e){var n=t.getConfig().MENU_CONF;return(void 0===n?{}:n)[e]||{}},t.alert=function(e,n){void 0===n&&(n="info");var r=t.getConfig().customAlert;r&&r(e,n)},t},wh=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function Dh(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function Ah(e={},t={}){Object.keys(t).forEach(n=>{void 0===e[n]?e[n]=t[n]:Dh(t[n])&&Dh(e[n])&&Object.keys(t[n]).length>0&&Ah(e[n],t[n])})}const Sh={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function xh(){const e="undefined"!=typeof document?document:{};return Ah(e,Sh),e}const Th={document:Sh,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function Oh(){const e="undefined"!=typeof window?window:{};return Ah(e,Th),e}class Nh extends Array{constructor(e){"number"==typeof e?super(e):(super(...e||[]),function(e){const t=e.__proto__;Object.defineProperty(e,"__proto__",{get:()=>t,set(e){t.__proto__=e}})}(this))}}function Bh(e=[]){const t=[];return e.forEach(e=>{Array.isArray(e)?t.push(...Bh(e)):t.push(e)}),t}function kh(e,t){return Array.prototype.filter.call(e,t)}function Fh(e){return e.toLowerCase().replace(/-(.)/g,(e,t)=>t.toUpperCase())}function Ph(e,t){const n=Oh(),r=xh();let o=[];if(!t&&e instanceof Nh)return e;if(!e)return new Nh(o);if("string"==typeof e){const n=e.trim();if(n.indexOf("<")>=0&&n.indexOf(">")>=0){let e="div";0===n.indexOf("<li")&&(e="ul"),0===n.indexOf("<tr")&&(e="tbody"),0!==n.indexOf("<td")&&0!==n.indexOf("<th")||(e="tr"),0===n.indexOf("<tbody")&&(e="table"),0===n.indexOf("<option")&&(e="select");const t=r.createElement(e);t.innerHTML=n;for(let e=0;e<t.childNodes.length;e+=1)o.push(t.childNodes[e])}else o=function(e,t){if("string"!=typeof e)return[e];const n=[],r=t.querySelectorAll(e);for(let e=0;e<r.length;e+=1)n.push(r[e]);return n}(e.trim(),t||r)}else if(e.nodeType||e===n||e===r)o.push(e);else if(Array.isArray(e)){if(e instanceof Nh)return e;o=e}return new Nh(function(e){const t=[];for(let n=0;n<e.length;n+=1)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(o))}function Ih(...e){const t=Bh(e.map(e=>e.split(" ")));return this.forEach(e=>{e.classList.add(...t)}),this}function _h(...e){const t=Bh(e.map(e=>e.split(" ")));return this.forEach(e=>{e.classList.remove(...t)}),this}function Rh(...e){const t=Bh(e.map(e=>e.split(" ")));return kh(this,e=>t.filter(t=>e.classList.contains(t)).length>0).length>0}function Lh(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(let n=0;n<this.length;n+=1)if(2===arguments.length)this[n].setAttribute(e,t);else for(const t in e)this[n][t]=e[t],this[n].setAttribute(t,e[t]);return this}function Mh(e){for(let t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function jh(e,t){let n;if(void 0===t){if(n=this[0],!n)return;if(n.dom7ElementDataStorage&&e in n.dom7ElementDataStorage)return n.dom7ElementDataStorage[e];const t=n.getAttribute(`data-${e}`);return t||void 0}for(let r=0;r<this.length;r+=1)n=this[r],n.dom7ElementDataStorage||(n.dom7ElementDataStorage={}),n.dom7ElementDataStorage[e]=t;return this}function Hh(){const e=this[0];if(!e)return;const t={};if(e.dataset)for(const n in e.dataset)t[n]=e.dataset[n];else for(let n=0;n<e.attributes.length;n+=1){const r=e.attributes[n];r.name.indexOf("data-")>=0&&(t[Fh(r.name.split("data-")[1])]=r.value)}for(const e in t)"false"===t[e]?t[e]=!1:"true"===t[e]?t[e]=!0:parseFloat(t[e])===1*t[e]&&(t[e]*=1);return t}function zh(e){if(void 0===e){const e=this[0];if(!e)return;if(e.multiple&&"select"===e.nodeName.toLowerCase()){const t=[];for(let n=0;n<e.selectedOptions.length;n+=1)t.push(e.selectedOptions[n].value);return t}return e.value}for(let t=0;t<this.length;t+=1){const n=this[t];if(Array.isArray(e)&&n.multiple&&"select"===n.nodeName.toLowerCase())for(let t=0;t<n.options.length;t+=1)n.options[t].selected=e.indexOf(n.options[t].value)>=0;else n.value=e}return this}function $h(...e){let[t,n,r,o]=e;function i(e){const t=e.target;if(!t)return;const o=e.target.dom7EventData||[];if(o.indexOf(e)<0&&o.unshift(e),Ph(t).is(n))r.apply(t,o);else{const e=Ph(t).parents();for(let t=0;t<e.length;t+=1)Ph(e[t]).is(n)&&r.apply(e[t],o)}}function a(e){const t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),r.apply(this,t)}"function"==typeof e[1]&&([t,r,o]=e,n=void 0),o||(o=!1);const s=t.split(" ");let u;for(let e=0;e<this.length;e+=1){const t=this[e];if(n)for(u=0;u<s.length;u+=1){const e=s[u];t.dom7LiveListeners||(t.dom7LiveListeners={}),t.dom7LiveListeners[e]||(t.dom7LiveListeners[e]=[]),t.dom7LiveListeners[e].push({listener:r,proxyListener:i}),t.addEventListener(e,i,o)}else for(u=0;u<s.length;u+=1){const e=s[u];t.dom7Listeners||(t.dom7Listeners={}),t.dom7Listeners[e]||(t.dom7Listeners[e]=[]),t.dom7Listeners[e].push({listener:r,proxyListener:a}),t.addEventListener(e,a,o)}}return this}function Uh(...e){let[t,n,r,o]=e;"function"==typeof e[1]&&([t,r,o]=e,n=void 0),o||(o=!1);const i=t.split(" ");for(let e=0;e<i.length;e+=1){const t=i[e];for(let e=0;e<this.length;e+=1){const i=this[e];let a;if(!n&&i.dom7Listeners?a=i.dom7Listeners[t]:n&&i.dom7LiveListeners&&(a=i.dom7LiveListeners[t]),a&&a.length)for(let e=a.length-1;e>=0;e-=1){const n=a[e];r&&n.listener===r||r&&n.listener&&n.listener.dom7proxy&&n.listener.dom7proxy===r?(i.removeEventListener(t,n.proxyListener,o),a.splice(e,1)):r||(i.removeEventListener(t,n.proxyListener,o),a.splice(e,1))}}}return this}function Vh(){const e=Oh();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css("width")):null}function Wh(){const e=Oh();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css("height")):null}function Gh(){if(this.length>0){const e=Oh(),t=xh(),n=this[0],r=n.getBoundingClientRect(),o=t.body,i=n.clientTop||o.clientTop||0,a=n.clientLeft||o.clientLeft||0,s=n===e?e.scrollY:n.scrollTop,u=n===e?e.scrollX:n.scrollLeft;return{top:r.top+s-i,left:r.left+u-a}}return null}function qh(){for(let e=0;e<this.length;e+=1)this[e].style.display="none";return this}function Kh(){const e=Oh();for(let t=0;t<this.length;t+=1){const n=this[t];"none"===n.style.display&&(n.style.display=""),"none"===e.getComputedStyle(n,null).getPropertyValue("display")&&(n.style.display="block")}return this}function Yh(e,t){const n=Oh();let r;if(1===arguments.length){if("string"!=typeof e){for(r=0;r<this.length;r+=1)for(const t in e)this[r].style[t]=e[t];return this}if(this[0])return n.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(r=0;r<this.length;r+=1)this[r].style[e]=t;return this}return this}function Xh(e){return e?(this.forEach((t,n)=>{e.apply(t,[t,n])}),this):this}function Zh(e){return Ph(kh(this,e))}function Jh(e){if(void 0===e)return this[0]?this[0].innerHTML:null;for(let t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}function Qh(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(let t=0;t<this.length;t+=1)this[t].textContent=e;return this}function eg(e){const t=Oh(),n=xh(),r=this[0];let o,i;if(!r||void 0===e)return!1;if("string"==typeof e){if(r.matches)return r.matches(e);if(r.webkitMatchesSelector)return r.webkitMatchesSelector(e);if(r.msMatchesSelector)return r.msMatchesSelector(e);for(o=Ph(e),i=0;i<o.length;i+=1)if(o[i]===r)return!0;return!1}if(e===n)return r===n;if(e===t)return r===t;if(e.nodeType||e instanceof Nh){for(o=e.nodeType?[e]:e,i=0;i<o.length;i+=1)if(o[i]===r)return!0;return!1}return!1}function tg(...e){let t;const n=xh();for(let r=0;r<e.length;r+=1){t=e[r];for(let e=0;e<this.length;e+=1)if("string"==typeof t){const r=n.createElement("div");for(r.innerHTML=t;r.firstChild;)this[e].appendChild(r.firstChild)}else if(t instanceof Nh)for(let n=0;n<t.length;n+=1)this[e].appendChild(t[n]);else this[e].appendChild(t)}return this}function ng(e){const t=xh();let n,r;for(n=0;n<this.length;n+=1)if("string"==typeof e){const o=t.createElement("div");for(o.innerHTML=e,r=o.childNodes.length-1;r>=0;r-=1)this[n].insertBefore(o.childNodes[r],this[n].childNodes[0])}else if(e instanceof Nh)for(r=0;r<e.length;r+=1)this[n].insertBefore(e[r],this[n].childNodes[0]);else this[n].insertBefore(e,this[n].childNodes[0]);return this}function rg(e){const t=[];for(let n=0;n<this.length;n+=1)null!==this[n].parentNode&&(e?Ph(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return Ph(t)}function og(e){const t=[];for(let n=0;n<this.length;n+=1){let r=this[n].parentNode;for(;r;)e?Ph(r).is(e)&&t.push(r):t.push(r),r=r.parentNode}return Ph(t)}function ig(e){const t=[];for(let n=0;n<this.length;n+=1){const r=this[n].querySelectorAll(e);for(let e=0;e<r.length;e+=1)t.push(r[e])}return Ph(t)}function ag(e){const t=[];for(let n=0;n<this.length;n+=1){const r=this[n].children;for(let n=0;n<r.length;n+=1)e&&!Ph(r[n]).is(e)||t.push(r[n])}return Ph(t)}function sg(){for(let e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function ug(){for(let e=0;e<this.length;e+=1){const t=this[e];if(1===t.nodeType){for(let e=0;e<t.childNodes.length;e+=1)t.childNodes[e].parentNode&&t.childNodes[e].parentNode.removeChild(t.childNodes[e]);t.textContent=""}}return this}Ph.fn=Nh.prototype;const lg="resize scroll".split(" ");function cg(e){return function(...t){if(void 0===t[0]){for(let t=0;t<this.length;t+=1)lg.indexOf(e)<0&&(e in this[t]?this[t][e]():Ph(this[t]).trigger(e));return this}return this.on(e,...t)}}const dg=cg("click"),fg=cg("focus"),pg=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];let hg=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&n[e]];return t};function gg(e){Promise.resolve().then(e)}var vg,mg=function(e){return Object.prototype.toString.call(e)};Yh&&(Ph.fn.css=Yh),tg&&(Ph.fn.append=tg),Ih&&(Ph.fn.addClass=Ih),_h&&(Ph.fn.removeClass=_h),Rh&&(Ph.fn.hasClass=Rh),$h&&(Ph.fn.on=$h),fg&&(Ph.fn.focus=fg),Lh&&(Ph.fn.attr=Lh),Mh&&(Ph.fn.removeAttr=Mh),qh&&(Ph.fn.hide=qh),Kh&&(Ph.fn.show=Kh),Gh&&(Ph.fn.offset=Gh),Vh&&(Ph.fn.width=Vh),Wh&&(Ph.fn.height=Wh),rg&&(Ph.fn.parent=rg),og&&(Ph.fn.parents=og),eg&&(Ph.fn.is=eg),Hh&&(Ph.fn.dataset=Hh),zh&&(Ph.fn.val=zh),Qh&&(Ph.fn.text=Qh),Jh&&(Ph.fn.html=Jh),ag&&(Ph.fn.children=ag),sg&&(Ph.fn.remove=sg),ig&&(Ph.fn.find=ig),Xh&&(Ph.fn.each=Xh),ug&&(Ph.fn.empty=ug),function(e){e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",e[e.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE",e[e.DOCUMENT_NODE=9]="DOCUMENT_NODE",e[e.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",e[e.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE"}(vg||(vg={}));var yg=/\[object HTML([A-Z][a-z]*)*Element\]/,bg=function(e){return yg.test(mg(e))},Eg=function(e){return null!=e&&"number"==typeof e.nodeType},Cg=function(e){return Eg(e)&&e.nodeType===vg.COMMENT_NODE},wg=function(e){return Eg(e)&&e.nodeType===vg.ELEMENT_NODE},Dg=function(e){return"[object Selection]"===mg(e)},Ag=function(e){return Eg(e)&&e.nodeType===vg.TEXT_NODE},Sg=function(e){var t,n,r;return null!==(t=window&&window.document.getElementById(e))&&void 0!==t?t:window&&(null===(r=null===(n=window.document.activeElement)||void 0===n?void 0:n.shadowRoot)||void 0===r?void 0:r.getElementById(e))||null},xg=function(e,t,n){for(var r=e.childNodes,o=r[t],i=t,a=!1,s=!1;(Cg(o)||wg(o)&&0===o.childNodes.length||wg(o)&&"false"===o.getAttribute("contenteditable"))&&(!a||!s);)i>=r.length?(a=!0,i=t-1,n="backward"):i<0?(s=!0,i=t+1,n="forward"):(o=r[i],t=i,i+="forward"===n?1:-1);return[o,t]},Tg=function(e,t,n){return Op(xg(e,t,n),1)[0]},Og=function(e){var t,n,r="";if(Ag(e)&&e.nodeValue)return e.nodeValue;if(wg(e)){try{for(var o=Tp(Array.from(e.childNodes)),i=o.next();!i.done;i=o.next()){var a=i.value;r+=Og(a)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}var s=getComputedStyle(e).getPropertyValue("display");"block"!==s&&"list"!==s&&"table-row"!==s&&"BR"!==e.tagName||(r+="\n")}return r};function Ng(e,t){if(!bg(e)||"true"!==e.dataset.slateVoid)for(var n=e.childNodes,r=n.length;r-=1;){var o=n[r],i=o.nodeType;Ag(o)?t(o,e):[vg.ELEMENT_NODE,vg.DOCUMENT_NODE,vg.DOCUMENT_FRAGMENT_NODE].includes(i)&&Ng(o,t)}}function Bg(e){if(0===e.length)return"";var t=e[0];return t.nodeType!==vg.ELEMENT_NODE?"":t.tagName.toLowerCase()}var kg=new RegExp(String.fromCharCode(160),"g");function Fg(e){return e.replace(kg," ")}var Pg=["span","b","strong","i","em","s","strike","u","font","sub","sup"],Ig=[];var _g=[];var Rg={};function Lg(e,t){var n=e.length;if(n){var r=e[n-1];if(mp.Text.isText(r)){var o=Object.keys(r);if(1===o.length&&"text"===o[0])return r.text+=t,!0}}return!1}function Mg(e,t,n){return{type:"paragraph",children:[{text:Ph(e).text().replace(/\s+/gm," ")}]}}function jg(e,t){var n=function(e,t){var n=[];if(null!=e.attr("data-w-e-is-void"))return n;var r=e[0].childNodes;return 1===r.length&&"BR"===r[0].nodeName?(n.push({text:""}),n):(r.forEach(function(e){if(wg(e)){if("BR"===e.nodeName)return void(Lg(n,"\n")||n.push({text:"\n"}));var r=zg(Ph(e),t);Array.isArray(r)?r.forEach(function(e){return n.push(e)}):n.push(r)}else if(Ag(e)){var o=e.textContent||"";if(""===o.trim()&&o.indexOf("\n")>=0)return;o&&(o=Fg(o),Lg(n,o)||n.push({text:o}))}}),n)}(e,t),r=function(e){for(var t in Rg)if(e[0].matches(t))return Rg[t];return Mg}(e),o=r(e[0],n,t);return Array.isArray(o)||(o=[o]),o.forEach(function(r){mp.Editor.isVoid(t,r)||(0===n.length&&(r.children=[{text:e.text().replace(/\s+/gm," ")}]),_g.forEach(function(n){r=n(e[0],r,t)}))}),o}function Hg(e,t){0===e.parents("pre").length&&(e[0].innerHTML=e[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,"\n"));var n=e[0].textContent||"";n=function(e){return e.replace(/&nbsp;/g," ").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&reg;/g,"®").replace(/&copy;/g,"©").replace(/&trade;/g,"™").replace(/&quot;/g,'"')}(n);var r={text:n=Fg(n)};return _g.forEach(function(n){r=n(e[0],r,t)}),r}function zg(e,t){Ig.forEach(function(t){var n=t.selector,r=t.preParseHtml;e[0].matches(n)&&(e=Ph(r(e[0])))});var n=Bg(e);if("span"===n){if(e.attr("data-w-e-type"))return jg(e,t);if(e[0].childNodes.length>1){var r=e[0].childNodes,o=function(e,t){var n={text:""};return _g.forEach(function(r){n=r(e[0],n,t)}),n}(Ph(e[0]),t),i=o;i.bold,i.italic,i.underline,i.through,i.sub,i.sup,i.code;var a=Ap(i,["bold","italic","underline","through","sub","sup","code"]);return Array.from(r).flatMap(function(e){var n=function(e,t,n){var r=e[0];if(wg(r)){var o=zg(e,n);return Array.isArray(o)?o.map(function(e){return Dp(Dp({},t),e)}):[Dp(Dp({},t),o)]}if(Cg(r))return null;var i=Ag(r)?{text:r.textContent||""}:Hg(e,n);return[Dp(Dp({},t),i)]}(Ph(e),a,t);return n||[]})}return 1===e[0].childNodes.length&&"span"===Bg(Ph(e[0].childNodes[0]))?zg(Ph(e[0].childNodes[0]),t):Hg(e,t)}if("code"===n)return"pre"===Bg(e.parent())?jg(e,t):Hg(e,t);if(Pg.includes(n)){if(e[0].childNodes.length>0&&3!==e[0].childNodes[0].nodeType){var s=zg(Ph((r=e[0].childNodes)[0]),t),u=Hg(e,t),l=void 0;if(Array.isArray(s)){var c=u;c.text;var d=c.bold,f=c.italic,p=c.underline,h=c.through;c.sub,c.sup;var g=c.code,v=Ap(c,["text","bold","italic","underline","through","sub","sup","code"]);l=s.map(function(e){return Dp(Dp({},v),e)}),(d||f||p||h||g)&&(l=l.map(function(e){var t=Dp({},e),n=e;return d&&!n.bold&&(t.bold=!0),f&&!n.italic&&(t.italic=!0),p&&!n.underline&&(t.underline=!0),h&&!n.through&&(t.through=!0),g&&!n.code&&(t.code=!0),t}))}else l=Dp(Dp({},s),u);return l}return Hg(e,t)}return jg(e,t)}function $g(e,t,n){var r=Ph(n);return!!r.attr(t)||(r.attr(t,"true"),e.on(zp,function(){r.removeAttr(t)}),!1)}function Ug(e,t){void 0===t&&(t="");var n=[];""===t&&(t="<p><br></p>"),0!==t.indexOf("<")&&(t=t.split(/\n/).map(function(e){return"<p>".concat(e,"</p>")}).join(""));var r=Ph("<div>".concat(t,"</div>"));return Array.from(r.children()).forEach(function(t){var r=zg(Ph(t),e);Array.isArray(r)?r.forEach(function(e){return n.push(e)}):n.push(r)}),n}function Vg(e,t){return"w-e-element-".concat(e,"-").concat(t)}var Wg=[];var Gg,qg,Kg={};function Yg(e,t,n){var r=n.isInline(e)?"span":"div";return"<".concat(r,">").concat(t,"</").concat(r,">")}function Xg(e,t){var n=e.type,r=void 0===n?"":n,o=e.children,i=void 0===o?[]:o,a=mp.Editor.isVoid(t,e),s="";a||(s=i.map(function(e){return lv(e,t)}).join(""));var u=function(e){return Kg[e]||Yg}(r),l=u(e,s,t),c="";if(c="string"==typeof l?l:l.html||"",a||Wg.forEach(function(t){return c=t(e,c)}),"string"==typeof l)return c;var d=l.prefix,f=void 0===d?"":d,p=l.suffix,h=void 0===p?"":p;return f&&(c=f+c),h&&(c+=h),c}var Zg=function(){if(qg)return Gg;qg=1;var e=9007199254740991,t="[object Arguments]",n="[object Map]",r="[object Promise]",o="[object Set]",i="[object WeakMap]",a="[object DataView]",s=/^\[object .+?Constructor\]$/,u=/^(?:0|[1-9]\d*)$/,l="\\ud800-\\udfff",c="\\u0300-\\u036f\\ufe20-\\ufe23",d="\\u20d0-\\u20f0",f="\\ufe0e\\ufe0f",p="["+l+"]",h="["+c+d+"]",g="\\ud83c[\\udffb-\\udfff]",v="[^"+l+"]",m="(?:\\ud83c[\\udde6-\\uddff]){2}",y="[\\ud800-\\udbff][\\udc00-\\udfff]",E="\\u200d",C="(?:"+h+"|"+g+")"+"?",w="["+f+"]?",D=w+C+("(?:"+E+"(?:"+[v,m,y].join("|")+")"+w+C+")*"),A="(?:"+[v+h+"?",h,m,y,p].join("|")+")",S=RegExp(g+"(?="+g+")|"+A+D,"g"),x=RegExp("["+E+l+c+d+f+"]"),T="object"==typeof b&&b&&b.Object===Object&&b,O="object"==typeof self&&self&&self.Object===Object&&self,N=T||O||Function("return this")();function B(e,t){return function(e,t){for(var n=-1,r=e?e.length:0,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}(t,function(t){return e[t]})}function k(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function F(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function P(e){return function(e){return x.test(e)}(e)?function(e){return e.match(S)||[]}(e):function(e){return e.split("")}(e)}var I,_,R=Function.prototype,L=Object.prototype,M=N["__core-js_shared__"],j=function(){var e=/[^.]+$/.exec(M&&M.keys&&M.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),H=R.toString,z=L.hasOwnProperty,$=L.toString,U=RegExp("^"+H.call(z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),V=N.Symbol,W=V?V.iterator:void 0,G=L.propertyIsEnumerable,q=(I=Object.keys,_=Object,function(e){return I(_(e))}),K=se(N,"DataView"),Y=se(N,"Map"),X=se(N,"Promise"),Z=se(N,"Set"),J=se(N,"WeakMap"),Q=ce(K),ee=ce(Y),te=ce(X),ne=ce(Z),re=ce(J);function oe(e,n){var r=de(e)||function(e){return function(e){return ge(e)&&fe(e)}(e)&&z.call(e,"callee")&&(!G.call(e,"callee")||$.call(e)==t)}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],o=r.length,i=!!o;for(var a in e)!z.call(e,a)||i&&("length"==a||le(a,o))||r.push(a);return r}function ie(e){if(!he(e)||function(e){return!!j&&j in e}(e))return!1;var t=pe(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?U:s;return t.test(ce(e))}function ae(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||L,t!==r)return q(e);var t,n,r,o=[];for(var i in Object(e))z.call(e,i)&&"constructor"!=i&&o.push(i);return o}function se(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return ie(n)?n:void 0}var ue=function(e){return $.call(e)};function le(t,n){return!!(n=null==n?e:n)&&("number"==typeof t||u.test(t))&&t>-1&&t%1==0&&t<n}function ce(e){if(null!=e){try{return H.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(K&&ue(new K(new ArrayBuffer(1)))!=a||Y&&ue(new Y)!=n||X&&ue(X.resolve())!=r||Z&&ue(new Z)!=o||J&&ue(new J)!=i)&&(ue=function(e){var t=$.call(e),s="[object Object]"==t?e.constructor:void 0,u=s?ce(s):void 0;if(u)switch(u){case Q:return a;case ee:return n;case te:return r;case ne:return o;case re:return i}return t});var de=Array.isArray;function fe(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=e}(t.length)&&!pe(t)}function pe(e){var t=he(e)?$.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function he(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ge(e){return!!e&&"object"==typeof e}function ve(e){return e?B(e,function(e){return fe(e)?oe(e):ae(e)}(e)):[]}return Gg=function(e){if(!e)return[];if(fe(e))return function(e){return"string"==typeof e||!de(e)&&ge(e)&&"[object String]"==$.call(e)}(e)?P(e):function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(e);if(W&&e[W])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[W]());var t=ue(e);return(t==n?k:t==o?F:ve)(e)},Gg}(),Jg=E(Zg),Qg=0,ev=function(){this.id="".concat(Qg++)},tv="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),nv="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),rv="undefined"!=typeof navigator&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent),ov="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),iv="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),av="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent),sv=!iv&&!ov&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges,uv={getWindow:function(e){var t=vh.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},findKey:function(e,t){var n=gh.get(t);return n||(n=new ev,gh.set(t,n)),n},setNewKey:function(e){var t=new ev;gh.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var o=ch.get(r);if(null==o){if(mp.Editor.isEditor(r))return n;break}var i=lh.get(r);if(null==i)break;n.unshift(i),r=o}throw new Error("Unable to find the path for Slate node: ".concat(JSON.stringify(t)))},findDocumentOrShadowRoot:function(e){if(e.isDestroyed)return window.document;var t=uv.toDOMNode(e,e),n=t.getRootNode();return"[object HTMLDocument]"!==mg(n)&&!function(e){return"[object ShadowRoot]"===mg(e)}(n)||null==Reflect.get(n,"getSelection")?t.ownerDocument:n},getParentNode:function(e,t){return ch.get(t)||null},getParentsNodes:function(e,t){for(var n=[],r=t;r!==e&&null!=r;){var o=uv.getParentNode(e,r);if(null==o)break;n.push(o),r=o}return n},getTopNode:function(e,t){var n=[uv.findPath(e,t)[0]];return mp.Node.get(e,n)},toDOMNode:function(e,t){var n;if(mp.Editor.isEditor(t))n=dh.get(e);else{var r=uv.findKey(e,t);n=ph.get(r)}if(!n)throw new Error("Cannot resolve a DOM node from Slate node: ".concat(JSON.stringify(t)));return n},hasDOMNode:function(e,t,n){void 0===n&&(n={});var r,o=n.editable,i=void 0!==o&&o,a=uv.toDOMNode(e,e);try{r=wg(t)?t:t.parentElement}catch(e){if(e instanceof Error&&!e.message.includes('Permission denied to access property "nodeType"'))throw e}return!!r&&(r.closest("[data-slate-editor]")===a&&(!i||r.isContentEditable||!!r.getAttribute("data-slate-zero-width"))||!!r.getAttribute("data-slate-string"))},toDOMRange:function(e,t){var n=t.anchor,r=t.focus,o=mp.Range.isBackward(t),i=uv.toDOMPoint(e,n),a=mp.Range.isCollapsed(t)?i:uv.toDOMPoint(e,r),s=uv.getWindow(e).document.createRange(),u=Op(o?a:i,2),l=u[0],c=u[1],d=Op(o?i:a,2),f=d[0],p=d[1],h=!!(wg(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),g=!!(wg(f)?f:f.parentElement).getAttribute("data-slate-zero-width");return s.setStart(l,h?1:c),s.setEnd(f,g?1:p),s},toDOMPoint:function(e,t){var n,r,o,i=Op(mp.Editor.node(e,t.path),1)[0],a=uv.toDOMNode(e,i);mp.Editor.void(e,{at:t})&&(t={path:t.path,offset:0});var s=Array.from(a.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),u=0;try{for(var l=Tp(s),c=l.next();!c.done;c=l.next()){var d=c.value,f=d.childNodes[0];if(null!=f&&null!=f.textContent){var p=f.textContent.length,h=d.getAttribute("data-slate-length"),g=u+(null==h?p:parseInt(h,10));if(t.offset<=g){o=[f,Math.min(p,Math.max(0,t.offset-u))];break}u=g}}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}if(!o)throw new Error("Cannot resolve a DOM point from Slate point: ".concat(JSON.stringify(t)));return o},toSlateNode:function(e,t){var n=wg(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?fh.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: ".concat(n));return r},findEventRange:function(e,t){"nativeEvent"in t&&(t=t.nativeEvent);var n=t.clientX,r=t.clientY,o=t.target;if(null==n||null==r)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));var i,a=uv.toSlateNode(e,t.target),s=uv.findPath(e,a);if(mp.Editor.isVoid(e,a)){var u=o.getBoundingClientRect(),l=e.isInline(a)?n-u.left<u.left+u.width-n:r-u.top<u.top+u.height-r,c=mp.Editor.point(e,s,{edge:l?"start":"end"}),d=l?mp.Editor.before(e,c):mp.Editor.after(e,c);if(d)return mp.Editor.range(e,d)}var f=this.getWindow(e).document;if(f.caretRangeFromPoint)i=f.caretRangeFromPoint(n,r);else{var p=f.caretPositionFromPoint(n,r);p&&((i=f.createRange()).setStart(p.offsetNode,p.offset),i.setEnd(p.offsetNode,p.offset))}if(!i)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));return uv.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(e,t,n){var r,o,i,a,s,u=n.exactMatch,l=n.suppressThrow;if((Dg(t)?t.anchorNode:t.startContainer)&&(Dg(t)?(r=t.anchorNode,o=t.anchorOffset,i=t.focusNode,a=t.focusOffset,s=av&&window.document.activeElement&&window.document.activeElement.shadowRoot?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed):(r=t.startContainer,o=t.startOffset,i=t.endContainer,a=t.endOffset,s=t.collapsed)),null==r||null==i||null==o||null==a)throw new Error("Cannot resolve a Slate range from DOM range: ".concat(t));var c=uv.toSlatePoint(e,[r,o],{exactMatch:u,suppressThrow:l});if(!c)return null;var d=s?c:uv.toSlatePoint(e,[i,a],{exactMatch:u,suppressThrow:l});if(!d)return null;var f={anchor:c,focus:d};return mp.Range.isExpanded(f)&&mp.Range.isForward(f)&&wg(i)&&mp.Editor.void(e,{at:f.focus,mode:"highest"})&&(f=mp.Editor.unhangRange(e,f,{voids:!0})),f},toSlatePoint:function(e,t,n){var r,o=n.exactMatch,i=n.suppressThrow,a=Op(o?t:function(e){var t,n=Op(e,2),r=n[0],o=n[1];if(wg(r)&&r.childNodes.length){var i=o===r.childNodes.length,a=i?o-1:o;for(r=(t=Op(xg(r,a,i?"backward":"forward"),2))[0],i=(a=t[1])<o;wg(r)&&r.childNodes.length;){var s=i?r.childNodes.length-1:0;r=Tg(r,s,i?"backward":"forward")}o=i&&null!=r.textContent?r.textContent.length:0}return[r,o]}(t),2),s=a[0],u=a[1],l=s.parentNode,c=null,d=0;if(l){var f=l.closest('[data-slate-void="true"]'),p=l.closest("[data-slate-leaf]"),h=null,g=uv.getWindow(e);if(p&&g.document.createRange){c=p.closest('[data-slate-node="text"]');var v=g.document.createRange();v.setStart(c,0),v.setEnd(s,u);var m=v.cloneContents();Np(Np([],Op(Jg(m.querySelectorAll("[data-slate-zero-width]"))),!1),Op(Jg(m.querySelectorAll("[contenteditable=false]"))),!1).forEach(function(e){e.parentNode.removeChild(e)}),d=m.textContent.length,h=c}else f&&((p=f.querySelector("[data-slate-leaf]"))?(c=p.closest('[data-slate-node="text"]'),d=(h=p).textContent.length,h.querySelectorAll("[data-slate-zero-width]").forEach(function(e){d-=e.textContent.length})):d=1);h&&d===h.textContent.length&&(l.hasAttribute("data-slate-zero-width")||nv&&(null===(r=h.textContent)||void 0===r?void 0:r.endsWith("\n")))&&(d-=1)}if(!c){if(i)return null;throw new Error("Cannot resolve a Slate point from DOM point: ".concat(t))}var y=uv.toSlateNode(e,c);return{path:uv.findPath(e,y),offset:d}},hasRange:function(e,t){var n=t.anchor,r=t.focus;return mp.Editor.hasPath(e,n.path)&&mp.Editor.hasPath(e,r.path)},getNodeType:function(e){return mp.Element.isElement(e)?e.type:""},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map(function(e){return mp.Node.string(e)}).join("")},getSelectedElems:function(e){var t,n,r=[],o=mp.Editor.nodes(e,{universal:!0});try{for(var i=Tp(o),a=i.next();!a.done;a=i.next()){var s=Op(a.value,1)[0];mp.Element.isElement(s)&&r.push(s)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r},getSelectedNodeByType:function(e,t){var n=this,r=Op(mp.Editor.nodes(e,{match:function(e){return n.checkNodeType(e,t)},universal:!0}),1),o=r[0];return null==o?null:o[0]},getSelectedTextNode:function(e){var t=Op(mp.Editor.nodes(e,{match:function(e){return mp.Text.isText(e)},universal:!0}),1),n=t[0];return null==n?null:n[0]},isNodeSelected:function(e,t){var n=Op(mp.Editor.nodes(e,{match:function(e){return e===t},universal:!0}),1),r=n[0];return null!=r&&Op(r,1)[0]===t},isSelectionAtLineEnd:function(e,t){var n=e.selection;return!!n&&(mp.Editor.isEnd(e,n.anchor,t)||mp.Editor.isEnd(e,n.focus,t))},getTextarea:function(e){var t=Kp.get(e);if(null==t)throw new Error("Cannot find textarea instance by editor");return t},getToolbar:function(e){return Zp.get(e)||null},getHoverbar:function(e){return Qp.get(e)||null},normalizeContent:function(e){e.children.forEach(function(t,n){e.normalizeNode([t,[n]])})},getLeftLengthOfMaxLength:function(e){var t=e.getConfig(),n=t.maxLength,r=t.onMaxLength;if("number"!=typeof n||n<=0)return 1/0;var o=n-e.getText().replace(/\r|\n|(\r\n)|(\n\r)/g,"").length;return o<=0&&r&&r(e),o},cleanExposedTexNodeInSelectionBlock:function(e){var t,n,r,o,i=uv.getTextarea(e).$textArea,a=null==i?void 0:i[0].childNodes;if(a)try{for(var s=Tp(Array.from(a)),u=s.next();!u.done;u=s.next()){var l=u.value;if(!Ag(l))break;l.remove()}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}var c=mp.Editor.nodes(e,{match:function(t){return!(!mp.Element.isElement(t)||e.isInline(t))},universal:!0});try{for(var d=Tp(c),f=d.next();!f.done;f=d.next()){var p=f.value;if(null!=p){var h=p[0];Ng(uv.toDOMNode(e,h),function(e,t){var n=Ph(t);n.attr("data-slate-string")||n.attr("data-slate-zero-width")||n.attr("data-w-e-reserve")||t.removeChild(e)})}}}catch(e){r={error:e}}finally{try{f&&!f.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}},isLastNode:function(e,t){var n=e.children||[];return n[n.length-1]===t},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}},isSelectedVoidNode:function(e){var t,n,r=mp.Editor.nodes(e,{match:function(t){return e.isVoid(t)}}),o=0;try{for(var i=Tp(r),a=i.next();!a.done;a=i.next()){a.value&&(o+=1)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return o>0},isSelectedEmptyParagraph:function(e){var t=e.selection;if(null==t)return!1;if(mp.Range.isExpanded(t))return!1;var n=uv.getSelectedNodeByType(e,"paragraph");if(null===n)return!1;var r=n.children;return 1===r.length&&(""===r[0].text||void 0)},isEmptyPath:function(e,t){var n=mp.Editor.node(e,t);if(null==n)return!1;var r=Op(n,1)[0].children;if(1===r.length&&""===r[0].text)return!0;return!1}};function lv(e,t){return mp.Element.isElement(e)?Xg(e,t):function(e,t){var n=e.text;if(null==n)throw new Error("Current node is not slate Text ".concat(JSON.stringify(e)));var r=n;r=function(e){return e.replace(/ {2}/g," &nbsp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/®/g,"&reg;").replace(/©/g,"&copy;").replace(/™/g,"&trade;")}(r);var o=uv.getParentsNodes(t,e).some(function(e){return"pre"===uv.getNodeType(e)});if(o||(r=r.replace(/\n\r|\r\n|\r|\n/g,"<br>")),o&&(r=r.replace(/&nbsp;/g," ")),""===r){var i=uv.getParentNode(null,e);if(!i||0!==i.children.length)return r;r="<br>"}return Wg.forEach(function(t){return r=t(e,r)}),r}(e,t)}var cv=function(e,t){var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},dv=function(e,t,n){var r=uv.toDOMRange(e,t).getBoundingClientRect(),o=uv.toDOMRange(e,n).getBoundingClientRect();return cv(r,o)&&cv(o,r)},fv=function(e,t){var n,r,o=[];try{for(var i=Tp(mp.Editor.levels(e,{at:t})),a=i.next();!a.done;a=i.next()){var s=Op(a.value,2),u=s[0],l=s[1],c=uv.findKey(e,u);o.push([l,c])}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return o};function pv(e,t){e.isInline(t)?(e.insertNode(t),"link"===t.type&&e.insertFragment([{text:""}])):mp.Transforms.insertNodes(e,t,{mode:"highest"})}var hv,gv,vv,mv,yv,bv,Ev,Cv,wv,Dv,Av,Sv,xv,Tv,Ov,Nv,Bv,kv,Fv,Pv,Iv,_v,Rv,Lv,Mv,jv,Hv,zv,$v,Uv,Vv,Wv,Gv,qv,Kv,Yv,Xv,Zv,Jv,Qv,em=function(e){var t=e,n=t.onChange,r=t.insertText,o=t.apply,i=t.deleteBackward;return t.insertText=function(e){t.getConfig().readOnly||r(e)},t.apply=function(e){var n,r,i,a,s,u,l,c,d=[];switch(e.type){case"insert_text":case"remove_text":case"set_node":case"split_node":d.push.apply(d,Np([],Op(fv(t,e.path)),!1));break;case"insert_node":case"remove_node":d.push.apply(d,Np([],Op(fv(t,mp.Path.parent(e.path))),!1));break;case"merge_node":var f=mp.Path.previous(e.path);d.push.apply(d,Np([],Op(fv(t,f)),!1));break;case"move_node":var p=mp.Path.common(mp.Path.parent(e.path),mp.Path.parent(e.newPath));d.push.apply(d,Np([],Op(fv(t,p)),!1));break;case"set_selection":(null===(a=null===(i=e.newProperties)||void 0===i?void 0:i.focus)||void 0===a?void 0:a.path)&&(d.push.apply(d,Np([],Op(fv(t,null===(u=null===(s=e.newProperties)||void 0===s?void 0:s.focus)||void 0===u?void 0:u.path)),!1)),d.push.apply(d,Np([],Op(fv(t,null===(c=null===(l=e.properties)||void 0===l?void 0:l.focus)||void 0===c?void 0:c.path)),!1)))}o(e);try{for(var h=Tp(d),g=h.next();!g.done;g=h.next()){var v=Op(g.value,2),m=v[0],y=v[1],b=Op(mp.Editor.node(t,m),1)[0];gh.set(b,y),"type"in b&&(sh.has(b)&&sh.delete(b),uh.has(b)&&uh.delete(b))}}catch(e){n={error:e}}finally{try{g&&!g.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}},t.deleteBackward=function(n){if("line"!==n)return i(n);if(e.selection&&mp.Range.isCollapsed(e.selection)){var r=mp.Editor.above(e,{match:function(t){return mp.Editor.isBlock(e,t)},at:e.selection});if(r){var o=Op(r,2)[1],a=mp.Editor.range(e,o,e.selection.anchor),s=function(e,t){var n=mp.Editor.range(e,mp.Range.end(t)),r=Array.from(mp.Editor.positions(e,{at:t})),o=0,i=r.length,a=Math.floor(i/2);if(dv(e,mp.Editor.range(e,r[o]),n))return mp.Editor.range(e,r[o],n);if(r.length<2)return mp.Editor.range(e,r[r.length-1],n);for(;a!==r.length&&a!==o;)dv(e,mp.Editor.range(e,r[a]),n)?i=a:o=a,a=Math.floor((o+i)/2);return mp.Editor.range(e,r[i],n)}(t,a);mp.Range.isCollapsed(s)||mp.Transforms.delete(e,{at:s})}}},t.onChange=function(){var e=t.selection;null!=e&&yh.set(t,e),t.emit("change"),n()},t.handleTab=function(){t.insertText(" ")},t.getHtml=function(){var e=t.children,n=void 0===e?[]:e,r=t.getConfig().skipCacheTypes,o=void 0===r?["list-item"]:r;return n.map(function(e){var n=uv.getNodeType(e);if(o.includes(n))return lv(e,t);var r=uh.get(e);if(r)return r;var i=lv(e,t);return uh.set(e,i),i}).join("")},t.getText=function(){var e=t.children;return(void 0===e?[]:e).map(function(e){return mp.Node.string(e)}).join("\n")},t.getSelectionText=function(){var n=t.selection;return null==n?"":mp.Editor.string(e,n)},t.getElemsByType=function(e,n){var r,o;void 0===n&&(n=!1);var i=[],a=mp.Editor.nodes(t,{at:[],universal:!0});try{for(var s=Tp(a),u=s.next();!u.done;u=s.next()){var l=Op(u.value,1)[0];if(mp.Element.isElement(l))if(n?l.type.indexOf(e)>=0:l.type===e){var c=uv.findKey(t,l),d=Vg(l.type,c.id);i.push(Dp(Dp({},l),{id:d}))}}}catch(e){r={error:e}}finally{try{u&&!u.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}return i},t.getElemsByTypePrefix=function(e){return t.getElemsByType(e,!0)},t.isEmpty=function(){var e=t.children,n=void 0===e?[]:e;if(n.length>1)return!1;var r=n[0];if(null==r)return!0;if(!mp.Element.isElement(r)||"paragraph"!==r.type)return!1;var o=r.children,i=void 0===o?[]:o;if(i.length>1)return!1;var a=i[0];return null==a||mp.Text.isText(a)&&""===a.text},t.clear=function(){mp.Transforms.delete(t,{at:{anchor:mp.Editor.start(t,[]),focus:mp.Editor.end(t,[])}}),0===t.children.length&&mp.Transforms.insertNodes(t,[{type:"paragraph",children:[{text:""}]}])},t.getParentNode=function(e){return uv.getParentNode(t,e)},t.dangerouslyInsertHtml=function(e,n){if(void 0===e&&(e=""),void 0===n&&(n=!1),e){var r=document.createElement("div");r.innerHTML=e;var o=Array.from(r.childNodes);if(o=o.filter(function(e){var t=e.nodeName;return!!Ag(e)||!!wg(e)&&!wh.has(t.toLowerCase())}),0!==o.length){var i=t.selection;if(null!=i){var a=null;if(uv.isSelectedEmptyParagraph(t)&&!n)a=[i.focus.path[0]];r.setAttribute("hidden","true"),document.body.appendChild(r);var s=0;o.forEach(function(e,n){var r=e.nodeName,i=e.textContent,a=void 0===i?"":i;if(Ag(e)){if(!a||!a.trim())return;t.insertNode({text:a})}else if("BR"!==r){var u=e,l=!1;if(Pg.includes(r.toLowerCase()))l=!0;else for(var c in Rg)if(u.matches(c)){l=!0;break}if(l){var d=zg(Ph(u),t);return Array.isArray(d)?(d.forEach(function(e){return pv(t,e)}),s+=1):(pv(t,d),s+=1),void(uv.isSelectedVoidNode(t)&&t.move(1))}var f=window.getComputedStyle(u).display;if(!uv.isSelectedEmptyParagraph(t)&&f.indexOf("inline")<0){if(n>=1)(function(e){return"matches"in e&&/^[ou]l$/i.test(e.tagName)&&!e.hasAttribute("data-w-e-type")})(o[n-1])&&t.insertBreak();t.insertBreak()}t.dangerouslyInsertHtml(u.innerHTML,!0)}else t.insertText("\n")}),s&&a&&uv.isEmptyPath(t,a)&&mp.Transforms.removeNodes(t,{at:a}),r.remove()}}}},t.setHtml=function(e){void 0===e&&(e="");var n=t.isDisabled(),r=t.isFocused(),o=JSON.stringify(t.selection);t.enable(),t.focus(),t.clear();var i=Ug(t,null==e?"":e);if(mp.Transforms.insertFragment(t,i),r||(t.deselect(),t.blur()),n&&(t.deselect(),t.disable()),t.isFocused())try{t.select(JSON.parse(o))}catch(e){t.select(mp.Editor.start(t,[]))}},t},tm=1,nm=function(e){var t=e;return t.id="wangEditor-".concat(tm++),t.isDestroyed=!1,t.isFullScreen=!1,t.focus=function(e){if(uv.toDOMNode(t,t).focus({preventScroll:!0}),mh.set(t,!0),e){var n=mp.Editor.end(t,[]);mp.Transforms.select(t,n)}else{var r=yh.get(t);r?mp.Transforms.select(t,r):mp.Transforms.select(t,mp.Editor.start(t,[]))}},t.isFocused=function(){return!!mh.get(t)},t.blur=function(){uv.toDOMNode(t,t).blur(),mp.Transforms.deselect(t),mh.set(t,!1)},t.updateView=function(){uv.getTextarea(t).changeViewState();var e=uv.getToolbar(t);e&&e.changeToolbarState();var n=uv.getHoverbar(t);n&&n.changeHoverbarState()},t.destroy=function(){if(!t.isDestroyed){var e=uv.getTextarea(t);e.destroy(),Kp.delete(t),Yp.delete(e);var n=uv.getToolbar(t);n&&(n.destroy(),Zp.delete(t),Xp.delete(n));var r=uv.getHoverbar(t);r&&(r.destroy(),Qp.delete(t),Jp.delete(r)),t.isDestroyed=!0,t.emit("destroyed")}},t.scrollToElem=function(e){if(!t.getConfig().scroll){var n="编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能";return n+="\nYou has disabled editor scroll, please do this yourself",void console.warn(n)}var r=Ph("#".concat(e));if(0!==r.length){var o=r[0];if(!uv.hasDOMNode(t,o)){n="Element (found by id is '".concat(e,"') is not in editor DOM");return n+="\n 通过 id '".concat(e,"' 找到的 element 不在 editor DOM 之内"),void console.error(n,o)}var i=uv.getTextarea(t),a=i.$textAreaContainer,s=i.$scroll,u=r.offset().top,l=a.offset().top;s[0].scrollBy({top:u-l,behavior:"smooth"})}},t.showProgressBar=function(e){e<1||uv.getTextarea(t).changeProgress(e)},t.hidePanelOrModal=function(){var e=th.get(t);null!=e&&e.forEach(function(e){return e.hide()})},t.enable=function(){t.getConfig().readOnly=!1,t.updateView()},t.disable=function(){t.getConfig().readOnly=!0,t.updateView()},t.isDisabled=function(){return t.getConfig().readOnly},t.toDOMNode=function(e){return uv.toDOMNode(t,e)},t.fullScreen=function(){if(!t.isFullScreen){var e=null,n=uv.getToolbar(t);n&&(e=n.$box);var r=uv.getTextarea(t).$box.parent();if(e&&e.parent()[0]!==r[0]){throw new Error("Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent\n不能设置全屏,因为 toolbar DOM 父节点和 textarea DOM 父节点不一致")}r.addClass("w-e-full-screen-container");var o=r.css("z-index");r.attr("data-z-index",o.toString()),t.isFullScreen=!0,t.emit("fullScreen")}},t.unFullScreen=function(){if(t.isFullScreen){var e=uv.getTextarea(t).$box.parent();setTimeout(function(){e.removeClass("w-e-full-screen-container"),t.isFullScreen=!1,t.emit("unFullScreen")},200)}},t.getEditableContainer=function(){return uv.getTextarea(t).$textAreaContainer[0]},t},rm={exports:{}},om={exports:{}};function im(){if(gv)return hv;gv=1;return hv=function(e){return null!=e}}function am(){if(bv)return yv;bv=1;var e=function(){if(mv)return vv;mv=1;var e=im(),t={object:!0,function:!0,undefined:!0};return vv=function(n){return!!e(n)&&hasOwnProperty.call(t,typeof n)}}();return yv=function(t){if(!e(t))return!1;try{return!!t.constructor&&t.constructor.prototype===t}catch(e){return!1}}}function sm(){if(Dv)return wv;Dv=1;var e=function(){if(Cv)return Ev;Cv=1;var e=am();return Ev=function(t){if("function"!=typeof t)return!1;if(!hasOwnProperty.call(t,"length"))return!1;try{if("number"!=typeof t.length)return!1;if("function"!=typeof t.call)return!1;if("function"!=typeof t.apply)return!1}catch(e){return!1}return!e(t)}}(),t=/^\s*class[\s{/}]/,n=Function.prototype.toString;return wv=function(r){return!!e(r)&&!t.test(n.call(r))}}function um(){if(kv)return Bv;kv=1;var e=(Nv?Ov:(Nv=1,Ov=function(){}))();return Bv=function(t){return t!==e&&null!==t},Bv}function lm(){return _v||(_v=1,Iv=(Tv?xv:(Tv=1,xv=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}))()?Object.keys:function(){if(Pv)return Fv;Pv=1;var e=um(),t=Object.keys;return Fv=function(n){return t(e(n)?Object(n):n)}}()),Iv}function cm(){if(jv)return Mv;jv=1;var e=lm(),t=function(){if(Lv)return Rv;Lv=1;var e=um();return Rv=function(t){if(!e(t))throw new TypeError("Cannot use null or undefined");return t}}(),n=Math.max;return Mv=function(r,o){var i,a,s,u=n(arguments.length,2);for(r=Object(t(r)),s=function(e){try{r[e]=o[e]}catch(e){i||(i=e)}},a=1;a<u;++a)e(o=arguments[a]).forEach(s);if(void 0!==i)throw i;return r},Mv}function dm(){return zv?Hv:(zv=1,Hv=(Sv||(Sv=1,Av=function(){var e,t=Object.assign;return"function"==typeof t&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}),Av)()?Object.assign:cm())}function fm(){return Yv||(Yv=1,Kv=function(){if(Wv)return Vv;Wv=1;var e="razdwatrzy";return Vv=function(){return"function"==typeof e.contains&&!0===e.contains("dwa")&&!1===e.contains("foo")}}()()?String.prototype.contains:function(){if(qv)return Gv;qv=1;var e=String.prototype.indexOf;return Gv=function(t){return e.call(this,t,arguments[1])>-1},Gv}()),Kv}function pm(){if(Xv)return om.exports;Xv=1;var e=im(),t=sm(),n=dm(),r=function(){if(Uv)return $v;Uv=1;var e=um(),t=Array.prototype.forEach,n=Object.create;return $v=function(r){var o=n(null);return t.call(arguments,function(t){e(t)&&function(e,t){var n;for(n in e)t[n]=e[n]}(Object(t),o)}),o},$v}(),o=fm(),i=om.exports=function(t,i){var a,s,u,l,c;return arguments.length<2||"string"!=typeof t?(l=i,i=t,t=null):l=arguments[2],e(t)?(a=o.call(t,"c"),s=o.call(t,"e"),u=o.call(t,"w")):(a=u=!0,s=!1),c={value:i,configurable:a,enumerable:s,writable:u},l?n(r(l),c):c};return i.gs=function(i,a,s){var u,l,c,d;return"string"!=typeof i?(c=s,s=a,a=i,i=null):c=arguments[3],e(a)?t(a)?e(s)?t(s)||(c=s,s=void 0):s=void 0:(c=a,a=s=void 0):a=void 0,e(i)?(u=o.call(i,"c"),l=o.call(i,"e")):(u=!0,l=!1),d={get:a,set:s,configurable:u,enumerable:l},c?n(r(c),d):d},om.exports}var hm=(Qv||(Qv=1,function(e,t){var n,r,o,i,a,s,u,l=pm(),c=Jv?Zv:(Jv=1,Zv=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e}),d=Function.prototype.apply,f=Function.prototype.call,p=Object.create,h=Object.defineProperty,g=Object.defineProperties,v=Object.prototype.hasOwnProperty,m={configurable:!0,enumerable:!1,writable:!0};n=function(e,t){var n;return c(t),v.call(this,"__ee__")?n=this.__ee__:(n=m.value=p(null),h(this,"__ee__",m),m.value=null),n[e]?"object"==typeof n[e]?n[e].push(t):n[e]=[n[e],t]:n[e]=t,this},r=function(e,t){var r,i;return c(t),i=this,n.call(this,e,r=function(){o.call(i,e,r),d.call(t,this,arguments)}),r.__eeOnceListener__=t,this},o=function(e,t){var n,r,o,i;if(c(t),!v.call(this,"__ee__"))return this;if(!(n=this.__ee__)[e])return this;if("object"==typeof(r=n[e]))for(i=0;o=r[i];++i)o!==t&&o.__eeOnceListener__!==t||(2===r.length?n[e]=r[i?0:1]:r.splice(i,1));else r!==t&&r.__eeOnceListener__!==t||delete n[e];return this},i=function(e){var t,n,r,o,i;if(v.call(this,"__ee__")&&(o=this.__ee__[e]))if("object"==typeof o){for(n=arguments.length,i=new Array(n-1),t=1;t<n;++t)i[t-1]=arguments[t];for(o=o.slice(),t=0;r=o[t];++t)d.call(r,this,i)}else switch(arguments.length){case 1:f.call(o,this);break;case 2:f.call(o,this,arguments[1]);break;case 3:f.call(o,this,arguments[1],arguments[2]);break;default:for(n=arguments.length,i=new Array(n-1),t=1;t<n;++t)i[t-1]=arguments[t];d.call(o,this,i)}},a={on:n,once:r,off:o,emit:i},s={on:l(n),once:l(r),off:l(o),emit:l(i)},u=g({},s),e.exports=t=function(e){return null==e?p(u):g(Object(e),s)},t.methods=a}(rm,rm.exports)),rm.exports),gm=E(hm);function vm(e){var t=bh.get(e);return null==t&&(t=gm(),bh.set(e,t)),t}var mm=new WeakMap;function ym(e,t){var n=mm.get(e);null==n&&(n=new Set,mm.set(e,n)),n.add(t)}var bm=function(e){var t=e;return t.on=function(e,n){var r=vm(t);if(r.on(e,n),"destroyed"===e&&ym(t,n),"destroyed"!==e){var o=function(){return r.off(e,n)};r.on("destroyed",o),ym(t,o)}},t.once=function(e,n){vm(t).once(e,n)},t.off=function(e,n){vm(t).off(e,n)},t.emit=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=vm(t);if(o.emit.apply(o,Np([e],Op(n),!1)),"destroyed"===e){var i=function(e){return mm.get(e)||new Set}(t);i.forEach(function(e){return o.off("destroyed",e)}),function(e){mm.set(e,new Set)}(t)}},t},Em=function(e){var t=e;return t.setFragmentData=function(e){var n=t.selection;if(n){var r=Op(mp.Range.edges(n),2),o=r[0],i=r[1],a=mp.Editor.void(t,{at:o.path}),s=mp.Editor.void(t,{at:i.path});if(!mp.Range.isCollapsed(n)||a){var u=uv.toDOMRange(t,n),l=u.cloneContents(),c=l.childNodes[0];if(l.childNodes.forEach(function(e){e.textContent&&""!==e.textContent.trim()&&(c=e)}),s){var d=Op(s,1)[0],f=u.cloneRange(),p=uv.toDOMNode(t,d);f.setEndAfter(p),l=f.cloneContents()}if(a&&(c=l.querySelector("[data-slate-spacer]")),Array.from(l.querySelectorAll("[data-slate-zero-width]")).forEach(function(e){var t="n"===e.getAttribute("data-slate-zero-width");e.textContent=t?"\n":""}),Ag(c)){var h=c.ownerDocument.createElement("span");h.style.whiteSpace="pre",h.appendChild(c),l.appendChild(h),c=h}var g=t.getFragment(),v=JSON.stringify(g),m=window.btoa(encodeURIComponent(v));c.setAttribute("data-slate-fragment",m),e.setData("application/x-slate-fragment",m);var y=l.ownerDocument.createElement("div");return y.appendChild(l),y.setAttribute("hidden","true"),l.ownerDocument.body.appendChild(y),e.setData("text/html",y.innerHTML),e.setData("text/plain",Og(y)),l.ownerDocument.body.removeChild(y),e}}},t.insertData=function(e){var n,r,o=e.getData("application/x-slate-fragment");if(o){var i=decodeURIComponent(window.atob(o)),a=JSON.parse(i);t.insertFragment(a)}else{var s=e.getData("text/plain"),u=e.getData("text/html");if(u)t.dangerouslyInsertHtml(u);else if(s){var l=s.split(/\n\r|\r\n|\r|\n/),c=!1;try{for(var d=Tp(l),f=d.next();!f.done;f=d.next()){var p=f.value,h=uv.getLeftLengthOfMaxLength(t);c&&h>0&&mp.Transforms.splitNodes(t,{always:!0}),t.insertText(p),c=!0}}catch(e){n={error:e}}finally{try{f&&!f.done&&(r=d.return)&&r.call(d)}finally{if(n)throw n.error}}}}},t},Cm=function(e){var t=e,n=t.insertText,r=t.insertNode,o=t.insertFragment,i=t.dangerouslyInsertHtml;return t.insertText=function(e){if(t.getConfig().maxLength){var r=uv.getLeftLengthOfMaxLength(t);r<=0||(r<e.length?n(e.slice(0,r)):n(e))}else n(e)},t.insertNode=function(e){if(t.getConfig().maxLength){var n=uv.getLeftLengthOfMaxLength(t);if(!(n<=0))n<mp.Node.string(e).length||r(e)}else r(e)},t.insertFragment=function(e){if(t.getConfig().maxLength){if(e.length>0){var n=e[0];if(uv.getLeftLengthOfMaxLength(t)<mp.Node.string(n).length)return;o([n]);for(var r=1;r<e.length;r+=1)t.insertNode(e[r])}}else o(e)},t.dangerouslyInsertHtml=function(e,n){if(void 0===e&&(e=""),void 0===n&&(n=!1),e)if(t.getConfig().maxLength){var r=uv.getLeftLengthOfMaxLength(t);if(!(r<=0)){var o=document.createElement("div");o.innerHTML=e,r<Array.from(o.childNodes).reduce(function(e,t){var n=t.nodeName;return t?Ag(t)?e+(t.textContent||""):wg(t)?wh.has(n.toLowerCase())?e:e+(t.textContent||""):e:e},"").length||i(e,n)}}else i(e,n)},t};function wm(e){var t=uv.getTextarea(e).$textAreaContainer,n=t.width(),r=t.height(),o=t.offset();return{top:o.top,left:o.left,width:n,height:r}}function Dm(e){var t={top:"0",left:"0"},n=e.selection;if(null==n)return t;var r=wm(e);if(null==r)return t;var o=r.top,i=r.left,a=r.width,s=r.height,u=uv.toDOMRange(e,n).getClientRects(),l=u?u[0]:null;if(null==l)return t;var c={},d=l.top-o,f=l.left-i;if(f>a/2){var p=a-f;c.right="".concat(p+5,"px")}else c.left="".concat(f+5,"px");if(d>s/2){var h=s-d;c.bottom="".concat(h+5,"px")}else{var g=u[u.length-1],v=g.top-o+g.height;v<0&&(v=0),c.top="".concat(v+5,"px")}return c}function Am(e,t,n){void 0===n&&(n="modal");var r={top:"0",left:"0"};if(null==e.selection)return r;var o=mp.Element.isElement(t)&&e.isVoid(t),i=mp.Element.isElement(t)&&e.isInline(t),a=hh.get(t);if(null==a)return r;var s=a.getBoundingClientRect(),u=s.top,l=s.left,c=s.height,d=s.width;if(o){var f=function(e){var t=[];t.push(e);for(var n=0;t.length>0;){var r=t.pop();if(null==r)break;if((n+=1)>1e4)break;var o=r.nodeName;if(r.nodeType===vg.ELEMENT_NODE){var i=o.toLowerCase();if(pg.includes(i)||"iframe"===i||"video"===i)return r;var a=r.children||[],s=a.length;if(s)for(var u=s-1;u>=0;u-=1)t.push(a[u])}}return null}(a);if(null!=f){var p=f.getBoundingClientRect();u=p.top,c=p.height}}var h=wm(e);if(null==h)return r;var g=h.top,v=h.left,m=h.width,y=h.height,b={},E=u-g,C=l-v;if("bar"===n)return b.left="".concat(C,"px"),E>40?b.bottom="".concat(y-E+5,"px"):b.top="".concat(E+c+5,"px"),b;if("modal"===n){if(o?i?C>(m-d)/2?b.right="".concat(m-C+5,"px"):b.left="".concat(C+d+5,"px"):b.left="20px":b.left="".concat(C,"px"),o)(w=E)<0&&(w=0),b.top="".concat(w,"px");else if(E>(y-c)/2)b.bottom="".concat(y-E+5,"px");else{var w;(w=E+c)<0&&(w=0),b.top="".concat(w+5,"px")}return b}throw new Error("type '".concat(n,"' is invalid"))}function Sm(e,t){gg(function(){var n=wm(e);if(null!=n){var r,o=n.top,i=n.left,a=n.width,s=n.height,u=t.offset(),l=u.top,c=u.left,d=t.width(),f=t.height(),p=l-o,h=c-i,g=t.attr("style");if(g.indexOf("top")>=0)if((r=p+f-s)>0){var v=t.css("top"),m=parseInt(v.toString(),10)-r;m<0&&(m=0),t.css("top","".concat(m,"px"))}if(g.indexOf("bottom")>=0&&l<0){var y=t.css("bottom"),b=parseInt(y.toString(),10)-Math.abs(l);t.css("bottom","".concat(b,"px"))}if(g.indexOf("left")>=0)if((r=h+d-a)>0){var E=t.css("left"),C=parseInt(E.toString(),10)-r;C<0&&(C=0),t.css("left","".concat(C,"px"))}if(g.indexOf("right")>=0&&c<0){var w=t.css("right"),D=parseInt(w.toString(),10)-Math.abs(c);t.css("right","".concat(D,"px"))}}})}var xm,Tm,Om=function(e){var t=e;return t.select=function(e){mp.Transforms.select(t,e)},t.deselect=function(){var n=t.selection,r=uv.findDocumentOrShadowRoot(t).getSelection();r&&r.rangeCount>0&&r.removeAllRanges(),n&&mp.Transforms.deselect(e)},t.move=function(t,n){void 0===n&&(n=!1),t&&(t<0||mp.Transforms.move(e,{distance:t,unit:"character",reverse:n}))},t.moveReverse=function(e){t.move(e,!0)},t.restoreSelection=function(){var e=yh.get(t);null!=e&&(t.focus(),mp.Transforms.select(t,e))},t.getSelectionPosition=function(){return Dm(t)},t.getNodePosition=function(e){return Am(t,e)},t.isSelectedAll=function(){var e=t.selection;if(null==e)return!1;var n=Op(mp.Range.edges(e),2),r=n[0],o=n[1],i=Op(mp.Editor.edges(t,[]),2),a=i[0],s=i[1];return!(!mp.Point.equals(r,a)||!mp.Point.equals(o,s))},t.selectAll=function(){var e=mp.Editor.start(t,[]),n=mp.Editor.end(t,[]);mp.Transforms.select(t,{anchor:e,focus:n})},t};var Nm=function(){if(Tm)return xm;Tm=1;var e=/^\s+|\s+$/g,t=/^[-+]0x[0-9a-f]+$/i,n=/^0b[01]+$/i,r=/^0o[0-7]+$/i,o=parseInt,i="object"==typeof b&&b&&b.Object===Object&&b,a="object"==typeof self&&self&&self.Object===Object&&self,s=i||a||Function("return this")(),u=Object.prototype.toString,l=Math.max,c=Math.min,d=function(){return s.Date.now()};function f(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function p(i){if("number"==typeof i)return i;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==u.call(e)}(i))return NaN;if(f(i)){var a="function"==typeof i.valueOf?i.valueOf():i;i=f(a)?a+"":a}if("string"!=typeof i)return 0===i?i:+i;i=i.replace(e,"");var s=n.test(i);return s||r.test(i)?o(i.slice(2),s?2:8):t.test(i)?NaN:+i}return xm=function(e,t,n){var r,o,i,a,s,u,h=0,g=!1,v=!1,m=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=r,i=o;return r=o=void 0,h=t,a=e.apply(i,n)}function b(e){var n=e-u;return void 0===u||n>=t||n<0||v&&e-h>=i}function E(){var e=d();if(b(e))return C(e);s=setTimeout(E,function(e){var n=t-(e-u);return v?c(n,i-(e-h)):n}(e))}function C(e){return s=void 0,m&&r?y(e):(r=o=void 0,a)}function w(){var e=d(),n=b(e);if(r=arguments,o=this,u=e,n){if(void 0===s)return function(e){return h=e,s=setTimeout(E,t),g?y(e):a}(u);if(v)return s=setTimeout(E,t),y(u)}return void 0===s&&(s=setTimeout(E,t)),a}return t=p(t)||0,f(n)&&(g=!!n.leading,i=(v="maxWait"in n)?l(p(n.maxWait)||0,t):i,m="trailing"in n?!!n.trailing:m),w.cancel=function(){void 0!==s&&clearTimeout(s),h=0,r=u=o=s=void 0},w.flush=function(){return void 0===s?a:C(d())},w},xm}(),Bm=E(Nm);const km=e=>"string"==typeof e,Fm=()=>{let e,t;const n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},Pm=e=>null==e?"":""+e,Im=/###/g,_m=e=>e&&e.indexOf("###")>-1?e.replace(Im,"."):e,Rm=e=>!e||km(e),Lm=(e,t,n)=>{const r=km(t)?t.split("."):t;let o=0;for(;o<r.length-1;){if(Rm(e))return{};const t=_m(r[o]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++o}return Rm(e)?{}:{obj:e,k:_m(r[o])}},Mm=(e,t,n)=>{const{obj:r,k:o}=Lm(e,t,Object);if(void 0!==r||1===t.length)return void(r[o]=n);let i=t[t.length-1],a=t.slice(0,t.length-1),s=Lm(e,a,Object);for(;void 0===s.obj&&a.length;)i=`${a[a.length-1]}.${i}`,a=a.slice(0,a.length-1),s=Lm(e,a,Object),s&&s.obj&&void 0!==s.obj[`${s.k}.${i}`]&&(s.obj=void 0);s.obj[`${s.k}.${i}`]=n},jm=(e,t)=>{const{obj:n,k:r}=Lm(e,t);if(n)return n[r]},Hm=(e,t,n)=>{for(const r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?km(e[r])||e[r]instanceof String||km(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):Hm(e[r],t[r],n):e[r]=t[r]);return e},zm=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var $m={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const Um=e=>km(e)?e.replace(/[&<>"'\/]/g,e=>$m[e]):e;const Vm=[" ",",","?","!",";"],Wm=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(void 0!==t)return t;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}(20),Gm=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let o=e;for(let e=0;e<r.length;){if(!o||"object"!=typeof o)return;let t,i="";for(let a=e;a<r.length;++a)if(a!==e&&(i+=n),i+=r[a],t=o[i],void 0!==t){if(["string","number","boolean"].indexOf(typeof t)>-1&&a<r.length-1)continue;e+=a-e+1;break}o=t}return o},qm=e=>e&&e.replace("_","-"),Km={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class Ym{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||Km,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,r){return r&&!this.debug?null:(km(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new Ym(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new Ym(this.logger,e)}}var Xm=new Ym;class Zm{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);const n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(this.observers[e]){Array.from(this.observers[e].entries()).forEach(e=>{let[t,r]=e;for(let e=0;e<r;e++)t(...n)})}if(this.observers["*"]){Array.from(this.observers["*"].entries()).forEach(t=>{let[r,o]=t;for(let t=0;t<o;t++)r.apply(r,[e,...n])})}}}class Jm extends Zm{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;e.indexOf(".")>-1?a=e.split("."):(a=[e,t],n&&(Array.isArray(n)?a.push(...n):km(n)&&o?a.push(...n.split(o)):a.push(n)));const s=jm(this.data,a);return!s&&!t&&!n&&e.indexOf(".")>-1&&(e=a[0],t=a[1],n=a.slice(2).join(".")),!s&&i&&km(n)?Gm(this.data&&this.data[e]&&this.data[e][t],n,o):s}addResource(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1};const i=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator;let a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(a=e.split("."),r=t,t=a[1]),this.addNamespaces(t),Mm(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}addResources(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(const r in n)(km(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),r=n,n=t,t=a[1]),this.addNamespaces(t);let s=jm(this.data,a)||{};i.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?Hm(s,n,o):s={...s,...n},Mm(this.data,a,s),i.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var Qm={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach(e=>{this.processors[e]&&(t=this.processors[e].process(t,n,r,o))}),t}};const ey={};class ty extends Zm{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),((e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})})(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=Xm.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;const n=this.resolve(e,t);return n&&void 0!==n.res}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");const r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let o=t.ns||this.options.defaultNS||[];const i=n&&e.indexOf(n)>-1,a=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||((e,t,n)=>{t=t||"",n=n||"";const r=Vm.filter(e=>t.indexOf(e)<0&&n.indexOf(e)<0);if(0===r.length)return!0;const o=Wm.getRegExp(`(${r.map(e=>"?"===e?"\\?":e).join("|")})`);let i=!o.test(e);if(!i){const t=e.indexOf(n);t>0&&!o.test(e.substring(0,t))&&(i=!0)}return i})(e,n,r));if(i&&!a){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:km(o)?[o]:o};const i=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(i[0])>-1)&&(o=i.shift()),e=i.join(r)}return{key:e,namespaces:km(o)?[o]:o}}translate(e,t,n){if("object"!=typeof t&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof t&&(t={...t}),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);const r=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,o=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,{key:i,namespaces:a}=this.extractFromKey(e[e.length-1],t),s=a[a.length-1],u=t.lng||this.language,l=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&"cimode"===u.toLowerCase()){if(l){const e=t.nsSeparator||this.options.nsSeparator;return r?{res:`${s}${e}${i}`,usedKey:i,exactUsedKey:i,usedLng:u,usedNS:s,usedParams:this.getUsedParamsDetails(t)}:`${s}${e}${i}`}return r?{res:i,usedKey:i,exactUsedKey:i,usedLng:u,usedNS:s,usedParams:this.getUsedParamsDetails(t)}:i}const c=this.resolve(e,t);let d=c&&c.res;const f=c&&c.usedKey||i,p=c&&c.exactUsedKey||i,h=Object.prototype.toString.apply(d),g=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject,m=!km(d)&&"boolean"!=typeof d&&"number"!=typeof d;if(!(v&&d&&m&&["[object Number]","[object Function]","[object RegExp]"].indexOf(h)<0)||km(g)&&Array.isArray(d))if(v&&km(g)&&Array.isArray(d))d=d.join(g),d&&(d=this.extendTranslation(d,e,t,n));else{let r=!1,a=!1;const l=void 0!==t.count&&!km(t.count),f=ty.hasDefaultValue(t),p=l?this.pluralResolver.getSuffix(u,t.count,t):"",h=t.ordinal&&l?this.pluralResolver.getSuffix(u,t.count,{ordinal:!1}):"",g=l&&!t.ordinal&&0===t.count&&this.pluralResolver.shouldUseIntlApi(),v=g&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${p}`]||t[`defaultValue${h}`]||t.defaultValue;!this.isValidLookup(d)&&f&&(r=!0,d=v),this.isValidLookup(d)||(a=!0,d=i);const m=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&a?void 0:d,y=f&&v!==d&&this.options.updateMissing;if(a||r||y){if(this.logger.log(y?"updateKey":"missingKey",u,s,i,y?v:d),o){const e=this.resolve(i,{...t,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const n=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&n&&n[0])for(let t=0;t<n.length;t++)e.push(n[t]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(t.lng||this.language):e.push(t.lng||this.language);const r=(e,n,r)=>{const o=f&&r!==d?r:m;this.options.missingKeyHandler?this.options.missingKeyHandler(e,s,n,o,y,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,s,n,o,y,t),this.emit("missingKey",e,s,n,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&l?e.forEach(e=>{const n=this.pluralResolver.getSuffixes(e,t);g&&t[`defaultValue${this.options.pluralSeparator}zero`]&&n.indexOf(`${this.options.pluralSeparator}zero`)<0&&n.push(`${this.options.pluralSeparator}zero`),n.forEach(n=>{r([e],i+n,t[`defaultValue${n}`]||v)})}):r(e,i,v))}d=this.extendTranslation(d,e,t,c,n),a&&d===i&&this.options.appendNamespaceToMissingKey&&(d=`${s}:${i}`),(a||r)&&this.options.parseMissingKeyHandler&&(d="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${s}:${i}`:i,r?d:void 0):this.options.parseMissingKeyHandler(d))}else{if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,d,{...t,ns:a}):`key '${i} (${this.language})' returned an object instead of string.`;return r?(c.res=e,c.usedParams=this.getUsedParamsDetails(t),c):e}if(o){const e=Array.isArray(d),n=e?[]:{},r=e?p:f;for(const e in d)if(Object.prototype.hasOwnProperty.call(d,e)){const i=`${r}${o}${e}`;n[e]=this.translate(i,{...t,joinArrays:!1,ns:a}),n[e]===i&&(n[e]=d[e])}d=n}}return r?(c.res=d,c.usedParams=this.getUsedParamsDetails(t),c):d}extendTranslation(e,t,n,r,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const a=km(e)&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let s;if(a){const t=e.match(this.interpolator.nestingRegexp);s=t&&t.length}let u=n.replace&&!km(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(u={...this.options.interpolation.defaultVariables,...u}),e=this.interpolator.interpolate(e,u,n.lng||this.language||r.usedLng,n),a){const t=e.match(this.interpolator.nestingRegexp);s<(t&&t.length)&&(n.nest=!1)}!n.lng&&"v1"!==this.options.compatibilityAPI&&r&&r.res&&(n.lng=this.language||r.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return o&&o[0]===r[0]&&!n.context?(i.logger.warn(`It seems you are nesting recursively key: ${r[0]} in key: ${t[0]}`),null):i.translate(...r,t)},n)),n.interpolation&&this.interpolator.reset()}const a=n.postProcess||this.options.postProcess,s=km(a)?[a]:a;return null!=e&&s&&s.length&&!1!==n.applyPostProcessor&&(e=Qm.handle(s,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e){let t,n,r,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return km(e)&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(t))return;const s=this.extractFromKey(e,a),u=s.key;n=u;let l=s.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));const c=void 0!==a.count&&!km(a.count),d=c&&!a.ordinal&&0===a.count&&this.pluralResolver.shouldUseIntlApi(),f=void 0!==a.context&&(km(a.context)||"number"==typeof a.context)&&""!==a.context,p=a.lngs?a.lngs:this.languageUtils.toResolveHierarchy(a.lng||this.language,a.fallbackLng);l.forEach(e=>{this.isValidLookup(t)||(i=e,!ey[`${p[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(i)&&(ey[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${n}" for languages "${p.join(", ")}" won't get resolved as namespace "${i}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach(n=>{if(this.isValidLookup(t))return;o=n;const i=[u];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(i,u,n,e,a);else{let e;c&&(e=this.pluralResolver.getSuffix(n,a.count,a));const t=`${this.options.pluralSeparator}zero`,r=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(c&&(i.push(u+e),a.ordinal&&0===e.indexOf(r)&&i.push(u+e.replace(r,this.options.pluralSeparator)),d&&i.push(u+t)),f){const n=`${u}${this.options.contextSeparator}${a.context}`;i.push(n),c&&(i.push(n+e),a.ordinal&&0===e.indexOf(r)&&i.push(n+e.replace(r,this.options.pluralSeparator)),d&&i.push(n+t))}}let s;for(;s=i.pop();)this.isValidLookup(t)||(r=s,t=this.getResource(n,e,s,a))}))})}),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&!km(e.replace);let r=n?e.replace:e;if(n&&void 0!==e.count&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(const e of t)delete r[e]}return r}static hasDefaultValue(e){const t="defaultValue";for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,12)&&void 0!==e[n])return!0;return!1}}const ny=e=>e.charAt(0).toUpperCase()+e.slice(1);class ry{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Xm.create("languageUtils")}getScriptPartFromCode(e){if(!(e=qm(e))||e.indexOf("-")<0)return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=qm(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(km(e)&&e.indexOf("-")>-1){if("undefined"!=typeof Intl&&void 0!==Intl.getCanonicalLocales)try{let t=Intl.getCanonicalLocales(e)[0];if(t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t)return t}catch(e){}const t=["hans","hant","latn","cyrl","cans","mong","arab"];let n=e.split("-");return this.options.lowerCaseLng?n=n.map(e=>e.toLowerCase()):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=ny(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=ny(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=ny(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;const n=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(n)||(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;const n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find(e=>e===n?e:e.indexOf("-")<0&&n.indexOf("-")<0?void 0:e.indexOf("-")>0&&n.indexOf("-")<0&&e.substring(0,e.indexOf("-"))===n||0===e.indexOf(n)&&n.length>1?e:void 0)}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),km(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){const n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],o=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return km(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):km(e)&&o(this.formatLanguageCode(e)),n.forEach(e=>{r.indexOf(e)<0&&o(this.formatLanguageCode(e))}),r}}let oy=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],iy={1:e=>Number(e>1),2:e=>Number(1!=e),3:e=>0,4:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),5:e=>Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5),6:e=>Number(1==e?0:e>=2&&e<=4?1:2),7:e=>Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),8:e=>Number(1==e?0:2==e?1:8!=e&&11!=e?2:3),9:e=>Number(e>=2),10:e=>Number(1==e?0:2==e?1:e<7?2:e<11?3:4),11:e=>Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3),12:e=>Number(e%10!=1||e%100==11),13:e=>Number(0!==e),14:e=>Number(1==e?0:2==e?1:3==e?2:3),15:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2),16:e=>Number(e%10==1&&e%100!=11?0:0!==e?1:2),17:e=>Number(1==e||e%10==1&&e%100!=11?0:1),18:e=>Number(0==e?0:1==e?1:2),19:e=>Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3),20:e=>Number(1==e?0:0==e||e%100>0&&e%100<20?1:2),21:e=>Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0),22:e=>Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)};const ay=["v1","v2","v3"],sy=["v4"],uy={zero:0,one:1,two:2,few:3,many:4,other:5};class ly{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=Xm.create("pluralResolver"),this.options.compatibilityJSON&&!sy.includes(this.options.compatibilityJSON)||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(()=>{const e={};return oy.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:iy[t.fc]}})}),e})(),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi()){const n=qm("dev"===e?"en":e),r=t.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:n,type:r});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];let i;try{i=new Intl.PluralRules(n,{type:r})}catch(n){if(!e.match(/-|_/))return;const r=this.languageUtils.getLanguagePartFromCode(e);i=this.getRule(r,t)}return this.pluralRulesCache[o]=i,i}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((e,t)=>uy[e]-uy[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):n.numbers.map(n=>this.getSuffix(e,n,t)):[]}getSuffix(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=this.getRule(e,n);return r?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r.select(t)}`:this.getSuffixRetroCompatible(r,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){const n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t));let r=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===r?r="plural":1===r&&(r=""));const o=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return"v1"===this.options.compatibilityJSON?1===r?"":"number"==typeof r?`_plural_${r.toString()}`:o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?o():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!ay.includes(this.options.compatibilityJSON)}}const cy=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=((e,t,n)=>{const r=jm(e,n);return void 0!==r?r:jm(t,n)})(e,t,n);return!i&&o&&km(n)&&(i=Gm(e,n,r),void 0===i&&(i=Gm(t,n,r))),i},dy=e=>e.replace(/\$/g,"$$$$");class fy{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=Xm.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:o,prefixEscaped:i,suffix:a,suffixEscaped:s,formatSeparator:u,unescapeSuffix:l,unescapePrefix:c,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:h,nestingOptionsSeparator:g,maxReplaces:v,alwaysFormat:m}=e.interpolation;this.escape=void 0!==t?t:Um,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==r&&r,this.prefix=o?zm(o):i||"{{",this.suffix=a?zm(a):s||"}}",this.formatSeparator=u||",",this.unescapePrefix=l?"":c||"-",this.unescapeSuffix=this.unescapePrefix?"":l||"",this.nestingPrefix=d?zm(d):f||zm("$t("),this.nestingSuffix=p?zm(p):h||zm(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=v||1e3,this.alwaysFormat=void 0!==m&&m,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,t)=>e&&e.source===t?(e.lastIndex=0,e):new RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let o,i,a;const s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=e=>{if(e.indexOf(this.formatSeparator)<0){const o=cy(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(o,void 0,n,{...r,...t,interpolationkey:e}):o}const o=e.split(this.formatSeparator),i=o.shift().trim(),a=o.join(this.formatSeparator).trim();return this.format(cy(t,s,i,this.options.keySeparator,this.options.ignoreJSONStructure),a,n,{...r,...t,interpolationkey:i})};this.resetRegExp();const l=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,c=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,d=[{regex:this.regexpUnescape,safeValue:e=>dy(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?dy(this.escape(e)):dy(e)}];return d.forEach(t=>{for(a=0;o=t.regex.exec(e);){const n=o[1].trim();if(i=u(n),void 0===i)if("function"==typeof l){const t=l(e,o,r);i=km(t)?t:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))i="";else{if(c){i=o[0];continue}this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),i=""}else km(i)||this.useRawValueToEscape||(i=Pm(i));const s=t.safeValue(i);if(e=e.replace(o[0],s),c?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),e}nest(e,t){let n,r,o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const a=(e,t)=>{const n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;const r=e.split(new RegExp(`${n}[ ]*{`));let i=`{${r[1]}`;e=r[0],i=this.interpolate(i,o);const a=i.match(/'/g),s=i.match(/"/g);(a&&a.length%2==0&&!s||s.length%2!=0)&&(i=i.replace(/'/g,'"'));try{o=JSON.parse(i),t&&(o={...t,...o})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,e};for(;n=this.nestingRegexp.exec(e);){let s=[];o={...i},o=o.replace&&!km(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let u=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){const e=n[1].split(this.formatSeparator).map(e=>e.trim());n[1]=e.shift(),s=e,u=!0}if(r=t(a.call(this,n[1].trim(),o),o),r&&n[0]===e&&!km(r))return r;km(r)||(r=Pm(r)),r||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`),r=""),u&&(r=s.reduce((e,t)=>this.format(e,t,i.lng,{...i,interpolationkey:n[1].trim()}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}const py=e=>{const t={};return(n,r,o)=>{let i=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(i={...i,[o.interpolationkey]:void 0});const a=r+JSON.stringify(i);let s=t[a];return s||(s=e(qm(r),o),t[a]=s),s(n)}};class hy{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=Xm.create("formatter"),this.options=e,this.formats={number:py((e,t)=>{const n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:py((e,t)=>{const n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)}),datetime:py((e,t)=>{const n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:py((e,t)=>{const n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")}),list:py((e,t)=>{const n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})},this.init(e)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=py(t)}format(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=t.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find(e=>e.indexOf(")")>-1)){const e=o.findIndex(e=>e.indexOf(")")>-1);o[0]=[o[0],...o.splice(1,e)].join(this.formatSeparator)}const i=o.reduce((e,t)=>{const{formatName:o,formatOptions:i}=(e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const o=r[1].substring(0,r[1].length-1);"currency"===t&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):"relativetime"===t&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach(e=>{if(e){const[t,...r]=e.split(":"),o=r.join(":").trim().replace(/^'+|'+$/g,""),i=t.trim();n[i]||(n[i]=o),"false"===o&&(n[i]=!1),"true"===o&&(n[i]=!0),isNaN(o)||(n[i]=parseInt(o,10))}})}return{formatName:t,formatOptions:n}})(t);if(this.formats[o]){let t=e;try{const a=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},s=a.locale||a.lng||r.locale||r.lng||n;t=this.formats[o](e,s,{...i,...r,...a})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${o}`),e},e);return i}}class gy extends Zm{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=Xm.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,r.backend,r)}queueLoad(e,t,n,r){const o={},i={},a={},s={};return e.forEach(e=>{let r=!0;t.forEach(t=>{const a=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===i[a]&&(i[a]=!0):(this.state[a]=1,r=!1,void 0===i[a]&&(i[a]=!0),void 0===o[a]&&(o[a]=!0),void 0===s[t]&&(s[t]=!0)))}),r||(a[e]=!0)}),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){const r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),!t&&n&&this.store.addResourceBundle(o,i,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);const a={};this.queue.forEach(n=>{((e,t,n)=>{const{obj:r,k:o}=Lm(e,t,Object);r[o]=r[o]||[],r[o].push(n)})(n.loaded,[o],i),((e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)})(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(e=>{a[e]||(a[e]={});const t=n.loaded[e];t.length&&t.forEach(t=>{void 0===a[e][t]&&(a[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:o,callback:i});this.readingCalls++;const a=(a,s)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}a&&s&&r<this.maxRetries?setTimeout(()=>{this.read.call(this,e,t,n,r+1,2*o,i)},o):i(a,s)},s=this.backend[n].bind(this.backend);if(2!==s.length)return s(e,t,a);try{const n=s(e,t);n&&"function"==typeof n.then?n.then(e=>a(null,e)).catch(a):a(null,n)}catch(e){a(e)}}prepareLoading(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();km(e)&&(e=this.languageUtils.toResolveHierarchy(e)),km(t)&&(t=[t]);const o=this.queueLoad(e,t,n,r);if(!o.toLoad.length)return o.pending.length||r(),null;o.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=e.split("|"),r=n[0],o=n[1];this.read(r,o,"read",void 0,void 0,(n,i)=>{n&&this.logger.warn(`${t}loading namespace ${o} for language ${r} failed`,n),!n&&i&&this.logger.log(`${t}loaded namespace ${o} for language ${r}`,i),this.loaded(e,n,i)})}saveMissing(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t))this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(null!=n&&""!==n){if(this.backend&&this.backend.create){const s={...i,isUpdate:o},u=this.backend.create.bind(this.backend);if(u.length<6)try{let o;o=5===u.length?u(e,t,n,r,s):u(e,t,n,r),o&&"function"==typeof o.then?o.then(e=>a(null,e)).catch(a):a(null,o)}catch(e){a(e)}else u(e,t,n,r,a,s)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}}const vy=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),km(e[1])&&(t.defaultValue=e[1]),km(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),my=e=>(km(e.ns)&&(e.ns=[e.ns]),km(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),km(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),yy=()=>{};class by extends Zm{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;var n;if(super(),this.options=my(e),this.services={},this.logger=Xm,this.modules={external:[]},n=this,Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach(e=>{"function"==typeof n[e]&&(n[e]=n[e].bind(n))}),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"==typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&(km(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=vy();this.options={...r,...this.options,...my(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator);const o=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let t;this.modules.logger?Xm.init(o(this.modules.logger),this.options):Xm.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=hy);const n=new ry(this.options);this.store=new Jm(this.options.resources,this.options);const i=this.services;i.logger=Xm,i.resourceStore=this.store,i.languageUtils=n,i.pluralResolver=new ly(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!t||this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format||(i.formatter=o(t),i.formatter.init(i,this.options),this.options.interpolation.format=i.formatter.format.bind(i.formatter)),i.interpolator=new fy(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new gy(o(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit(t,...r)}),this.modules.languageDetector&&(i.languageDetector=o(this.modules.languageDetector),i.languageDetector.init&&i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=o(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new ty(this.services,this.options),this.translator.on("*",function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit(t,...r)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,n||(n=yy),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(t=>{this[t]=function(){return e.store[t](...arguments)}});["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(t=>{this[t]=function(){return e.store[t](...arguments),e}});const i=Fm(),a=()=>{const e=(e,t)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),i.resolve(t),n(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?a():setTimeout(a,0),i}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yy;const n=km(e)?e:this.language;if("function"==typeof e&&(t=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return t();const e=[],r=t=>{if(!t)return;if("cimode"===t)return;this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&e.indexOf(t)<0&&e.push(t)})};if(n)r(n);else{this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>r(e))}this.options.preload&&this.options.preload.forEach(e=>r(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),t(e)})}else t(null)}reloadResources(e,t,n){const r=Fm();return"function"==typeof e&&(n=e,e=void 0),"function"==typeof t&&(n=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),n||(n=yy),this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&Qm.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(let e=0;e<this.languages.length;e++){const t=this.languages[e];if(!(["cimode","dev"].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;const r=Fm();this.emit("languageChanging",e);const o=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(e,i)=>{i?(o(i),this.translator.changeLanguage(i),this.isLanguageChangingTo=void 0,this.emit("languageChanged",i),this.logger.log("languageChanged",i)):this.isLanguageChangingTo=void 0,r.resolve(function(){return n.t(...arguments)}),t&&t(e,function(){return n.t(...arguments)})},a=t=>{e||t||!this.services.languageDetector||(t=[]);const n=km(t)?t:this.services.languageUtils.getBestMatchFromCodes(t);n&&(this.language||o(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(n)),this.loadResources(n,e=>{i(e,n)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),r}getFixedT(e,t,n){var r=this;const o=function(e,t){let i;if("object"!=typeof t){for(var a=arguments.length,s=new Array(a>2?a-2:0),u=2;u<a;u++)s[u-2]=arguments[u];i=r.options.overloadTranslationOptionHandler([e,t].concat(s))}else i={...t};i.lng=i.lng||o.lng,i.lngs=i.lngs||o.lngs,i.ns=i.ns||o.ns,""!==i.keyPrefix&&(i.keyPrefix=i.keyPrefix||n||o.keyPrefix);const l=r.options.keySeparator||".";let c;return c=i.keyPrefix&&Array.isArray(e)?e.map(e=>`${i.keyPrefix}${l}${e}`):i.keyPrefix?`${i.keyPrefix}${l}${e}`:e,r.t(c,i)};return km(e)?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=n,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=t.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;const i=(e,t)=>{const n=this.services.backendConnector.state[`${e}|${t}`];return-1===n||0===n||2===n};if(t.precheck){const e=t.precheck(this,i);if(void 0!==e)return e}return!!this.hasResourceBundle(n,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!i(n,e)||r&&!i(o,e)))}loadNamespaces(e,t){const n=Fm();return this.options.ns?(km(e)&&(e=[e]),e.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){const n=Fm();km(e)&&(e=[e]);const r=this.options.preload||[],o=e.filter(e=>r.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return o.length?(this.options.preload=r.concat(o),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const t=this.services&&this.services.languageUtils||new ry(vy());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){return new by(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yy;const n=e.forkResourceStore;n&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},o=new by(r);void 0===e.debug&&void 0===e.prefix||(o.logger=o.logger.clone(e));return["store","services","language"].forEach(e=>{o[e]=this[e]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},n&&(o.store=new Jm(this.store.data,r),o.services.resourceStore=o.store),o.translator=new ty(o.services,r),o.translator.on("*",function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];o.emit(e,...n)}),o.init(r,t),o.translator.options=r,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Ey=by.createInstance();Ey.createInstance=by.createInstance,Ey.createInstance,Ey.dir,Ey.init,Ey.loadResources,Ey.reloadResources,Ey.use,Ey.changeLanguage,Ey.getFixedT,Ey.t,Ey.exists,Ey.setDefaultNamespace,Ey.hasLoadedNamespace,Ey.loadNamespaces,Ey.loadLanguages;var Cy="translation";function wy(e,t){Ey.addResourceBundle(e,Cy,t,!0,!0)}function Dy(e){return Ey.on("languageChanged",e),function(){return Ey.off("languageChanged",e)}}Ey.init({lng:"zh-CN",resources:{}});var Ay=Ey.t.bind(Ey);function Sy(e){if(e.removeAttr){e.removeAttr("width"),e.removeAttr("height"),e.removeAttr("fill"),e.removeAttr("class"),e.removeAttr("t"),e.removeAttr("p-id");var t=e.children();t.length&&Sy(t)}}function xy(){return Ph('<svg viewBox="0 0 1024 1024"><path d="M498.7 655.8l-197.6-268c-8.1-10.9-0.3-26.4 13.3-26.4h395.2c13.6 0 21.4 15.4 13.3 26.4l-197.6 268c-6.6 9-20 9-26.6 0z"></path></svg>')}function Ty(){return Ph('<div class="w-e-bar-divider"></div>')}function Oy(e,t,n,r,o){if(void 0===r&&(r=""),void 0===o&&(o=!1),t){if(r){var i=tv?"cmd":"ctrl";r=r.replace("mod",i)}if(o)r&&(e.attr("data-tooltip",r),e.addClass("w-e-menu-tooltip-v5"),e.addClass("tooltip-right"));else{var a=r?"".concat(n,"\n").concat(r):n;e.attr("data-tooltip",a),e.addClass("w-e-menu-tooltip-v5")}}}var Ny=function(){function e(e,t,n){void 0===n&&(n=!1);var r=this;this.$elem=Ph('<div class="w-e-bar-item"></div>'),this.$button=Ph('<button type="button"></button>'),this.disabled=!1,this.menu=t;var o=t.tag,i=t.width;if("button"!==o)throw new Error("Invalid tag '".concat(o,"', expected 'button'"));var a=t.title,s=t.hotkey,u=void 0===s?"":s,l=t.iconSvg,c=void 0===l?"":l,d=this.$button;if(c){var f=Ph(c);Sy(f),d.append(f)}else d.text(a);Oy(d,c,a,u,n),n&&c&&d.append(Ph('<span class="title">'.concat(a,"</span>"))),i&&d.css("width","".concat(i,"px")),d.attr("data-menu-key",e),this.$elem.append(d),gg(function(){return r.init()})}return e.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on("click",function(t){t.preventDefault(),$y(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())})},e.prototype.exec=function(){var e=$y(this),t=this.menu,n=t.getValue(e);this.setIcon(),this.setTooltip(),t.exec(e,n)},e.prototype.setActive=function(){var e=$y(this),t=this.$button,n="active";this.menu.isActive(e)?t.addClass(n):t.removeClass(n)},e.prototype.setDisabled=function(){var e=$y(this),t=this.$button,n=this.menu.isDisabled(e);(null==e.selection||e.isDisabled())&&(n=!0),this.menu.alwaysEnable&&(n=!1);var r="disabled";n?t.addClass(r):t.removeClass(r),this.disabled=n},e.prototype.setIcon=function(){var e=$y(this),t=this.$button;if(this.menu.getIcon){var n=this.menu.getIcon(e);if(n){t.find("svg").remove();var r=Ph(n);Sy(r),t.append(r)}}},e.prototype.setTooltip=function(){var e=$y(this),t=this.$button;if(this.menu.getTitle){var n=this.menu.getTitle(e),r=this.menu.iconSvg;n&&r&&Oy(t,r,n)}},e.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},e}(),By=function(e){function t(t,n,r){return void 0===r&&(r=!1),e.call(this,t,n,r)||this}return wp(t,e),t.prototype.onButtonClick=function(){},t}(Ny),ky=function(){function e(e){this.isShow=!1,this.showTime=0,this.record(e)}return e.prototype.record=function(e){var t=th.get(e);null==t&&(t=new Set,th.set(e,t)),t.add(this),nh.set(this,e)},e.prototype.renderContent=function(e){var t=this.$elem;t.empty(),t.append(e);var n=this.genSelfElem();n&&t.append(n)},e.prototype.appendTo=function(e){var t=this.$elem;e.append(t)},e.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var e=nh.get(this);e&&e.emit("modalOrPanelShow",this)}},e.prototype.hide=function(){if(this.isShow&&!(Date.now()-this.showTime<200)){this.$elem.hide(),this.isShow=!1;var e=nh.get(this);e&&e.emit("modalOrPanelHide")}},e}(),Fy=function(e){function t(t){var n=e.call(this,t)||this;return n.type="dropPanel",n.$elem=Ph('<div class="w-e-drop-panel"></div>'),n}return wp(t,e),t.prototype.genSelfElem=function(){return null},t}(ky),Py=function(e){function t(t,n,r){void 0===r&&(r=!1);var o=e.call(this,t,n,r)||this;if(o.dropPanel=null,o.menu=n,n.showDropPanel){var i=xy();o.$button.append(i)}return o}return wp(t,e),t.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},t.prototype.handleDropPanel=function(){var e=this.menu;if(null!=e.getPanelContentElem){var t=$y(this);if(null==this.dropPanel){var n=new Fy(t),r=e.getPanelContentElem(t);n.renderContent(r),n.appendTo(this.$elem),n.show(),this.dropPanel=n}else{var o=this.dropPanel;if(o.isShow)o.hide();else{r=e.getPanelContentElem(t);o.renderContent(r),o.show()}}var i=this.dropPanel;if(i.isShow){var a=this.$elem,s=a.offset().left,u=a.parents(".w-e-bar");s-u.offset().left>=u.width()/2?i.$elem.css({left:"none",right:"0"}):i.$elem.css({left:"0",right:"none"})}}},t}(Ny),Iy=function(e){function t(t,n){void 0===n&&(n=0);var r=e.call(this,t)||this;r.type="modal",r.$elem=Ph('<div class="w-e-modal"></div>'),r.width=0,n&&(r.width=n);var o=r.$elem;return o.on("click",function(e){return e.stopPropagation()}),o.on("keyup",function(e){"Escape"===e.code&&(r.hide(),t.restoreSelection())}),r}return wp(t,e),t.prototype.genSelfElem=function(){var e=this,t=Ph('<span class="btn-close">'.concat('<svg viewBox="0 0 1024 1024"><path d="M1024 896.1024l-128 128L512 640 128 1024 0 896 384 512 0 128 128 0 512 384 896.1024 0l128 128L640 512z"></path></svg>',"</span>")),n=nh.get(this);return t.on("click",function(){e.hide(),null==n||n.restoreSelection()}),t},t.prototype.setStyle=function(e){var t=this.width,n=this.$elem;n.attr("style",""),t&&n.css("width","".concat(t,"px")),n.css(e)},t}(ky);function _y(e,t,n){var r=Ph('<label class="babel-container"></label>');r.append("<span>".concat(e,"</span>"));var o=Ph('<input type="text" id="'.concat(t,'" placeholder="').concat(n||"",'">'));return r.append(o),[r[0],o[0]]}function Ry(e,t){var n=Ph('<div class="button-container"></div>'),r=Ph('<button type="button" id="'.concat(e,'">').concat(t,"</button>"));return n.append(r),[n[0],r[0]]}var Ly=function(e){function t(t,n,r){void 0===r&&(r=!1);var o=e.call(this,t,n,r)||this;return o.$body=Ph("body"),o.modal=null,o.menu=n,o}return wp(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var e=$y(this),t=this.menu.getModalPositionNode(e);return mp.Element.isElement(t)?Am(e,t,"modal"):Dm(e)},t.prototype.handleModal=function(){var e=$y(this),t=this.menu;if(null==this.modal){var n=new Iy(e,t.modalWidth);this.renderAndShowModal(n,!0),this.modal=n}else{(n=this.modal).isShow?n.hide():this.renderAndShowModal(n,!1)}},t.prototype.renderAndShowModal=function(e,t){void 0===t&&(t=!1);var n=$y(this),r=this.menu;if(null!=r.getModalContentElem){var o=uv.getTextarea(n),i=uv.getToolbar(n),a=((null==i?void 0:i.getConfig())||{}).modalAppendToBody,s=r.getModalContentElem(n);if(e.renderContent(s),a)e.setStyle({left:"0",right:"0"});else{var u=this.getPosition();e.setStyle(u)}t&&(a?e.appendTo(this.$body):e.appendTo(o.$textAreaContainer)),e.show(),a||Sm(n,e.$elem),setTimeout(function(){n.blur()})}},t}(Ny);var My=function(e){function t(t,n){var r=e.call(this,t)||this;return r.type="selectList",r.$elem=Ph('<div class="w-e-select-list"></div>'),n&&r.$elem.css("width","".concat(n,"px")),r.$elem.on("click",function(e){e.stopPropagation()}),r}return wp(t,e),t.prototype.renderList=function(e){var t=this.$elem;t.empty();var n=Ph("<ul></ul>");e.forEach(function(e){var t=e.value,r=e.text,o=e.selected,i=e.styleForRenderMenuList,a=Ph('<li data-value="'.concat(t,'"></li>'));if(i&&a.css(i),o){var s=Ph('<svg viewBox="0 0 1446 1024"><path d="M574.116299 786.736392 1238.811249 48.517862C1272.390222 11.224635 1329.414799 7.827718 1366.75664 41.450462 1403.840015 74.840484 1406.731043 132.084741 1373.10189 169.433699L655.118888 966.834607C653.072421 969.716875 650.835807 972.514337 648.407938 975.210759 615.017957 1012.29409 558.292155 1015.652019 521.195664 982.250188L72.778218 578.493306C35.910826 545.297758 32.859041 488.584019 66.481825 451.242134 99.871807 414.158803 156.597563 410.800834 193.694055 444.202665L574.116299 786.736392Z"></path></svg>');a.append(s),a.addClass("selected")}a.append(Ph('<span data-value="'.concat(t,'">').concat(r,"</span>"))),a.attr("title",r),n.append(a)}),t.append(n)},t.prototype.genSelfElem=function(){return null},t}(ky);var jy=function(){function e(e,t,n){void 0===n&&(n=!1);var r=this;this.$elem=Ph('<div class="w-e-bar-item"></div>'),this.$button=Ph('<button type="button" class="select-button"></button>'),this.disabled=!1,this.selectList=null;var o=t.tag,i=t.title,a=t.width,s=t.iconSvg,u=void 0===s?"":s,l=t.hotkey,c=void 0===l?"":l;if("select"!==o)throw new Error("Invalid tag '".concat(o,"', expected 'select'"));var d=this.$button;a&&d.css("width","".concat(a,"px")),d.attr("data-menu-key",e),Oy(d,u,i,c,n),this.$elem.append(d),this.menu=t,gg(function(){return r.init()})}return e.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on("click",function(t){t.preventDefault(),$y(e).hidePanelOrModal(),e.trigger()})},e.prototype.trigger=function(){var e=this,t=$y(this);if(!t.isDisabled()&&!this.disabled){var n=this.menu;if(null==this.selectList){this.selectList=new My(t,n.selectPanelWidth);var r=this.selectList,o=n.getOptions(t);r.renderList(o),r.appendTo(this.$elem),r.show(),r.$elem.on("click","li",function(t){var n=t.target;if(null!=n){t.preventDefault();var r=Ph(n).attr("data-value");e.onChange(r)}})}else{if((r=this.selectList).isShow)r.hide();else{o=n.getOptions(t);r.renderList(o),r.show()}}}},e.prototype.onChange=function(e){var t=$y(this),n=this.menu;n.exec&&n.exec(t,e)},e.prototype.setSelectedValue=function(){var e=$y(this),t=this.menu,n=t.getValue(e),r=function(e,t){for(var n=e.length,r="",o=0;o<n;o++){var i=e[o];if(i.value===t){r=i.text;break}}return r}(t.getOptions(e),n.toString()),o=this.$button,i=xy();o.empty(),o.text(r),o.append(i)},e.prototype.setDisabled=function(){var e=$y(this),t=this.menu.isDisabled(e),n=this.$button;(null==e.selection||e.isDisabled())&&(t=!0);var r="disabled";t?n.addClass(r):n.removeClass(r),this.disabled=t},e.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},e}(),Hy=function(){function e(e){this.$elem=Ph('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=Ph('<div class="w-e-bar-item-menus-container"></div>'),this.$button=Ph('<button type="button"></button>');var t=e.key,n=e.iconSvg,r=e.title,o=this.$elem,i=this.$button;if(n){var a=Ph(n);Sy(a),i.append(a)}else i.text(r);i.attr("data-menu-key",t);var s=xy();i.append(s),o.append(i);var u=this.$container;o.append(u);var l=this.createObserver();this.observe(l)}return e.prototype.appendBarItem=function(e){var t=e.$elem;this.$container.append(t)},e.prototype.observe=function(e){var t=this.$container;e.observe(t[0],{childList:!0,subtree:!0,attributes:!0})},e.prototype.createObserver=function(){var e=this,t=this.$container,n=this.$button,r=new MutationObserver(function(){var o=t.find("button"),i=o.length;if(0!==i){var a=0;o.each(function(e){Ph(e).hasClass("disabled")&&a++}),r.disconnect(),a===i?n.addClass("disabled"):n.removeClass("disabled"),e.observe(r)}});return r},e}(),zy=new WeakMap;function $y(e){var t=eh.get(e);if(null==t)throw new Error("Can not get editor instance");return t}function Uy(e,t,n){void 0===n&&(n=!1);var r=zy.get(t);if(r)return r;var o=t.tag;if("button"===o){var i=t.showDropPanel,a=t.showModal;r=i?new Py(e,t,n):a?new Ly(e,t,n):new By(e,t,n)}if("select"===o&&(r=new jy(e,t,n)),null==r)throw new Error("Invalid tag in menu ".concat(JSON.stringify(t)));return zy.set(t,r),r}function Vy(e,t){var n=e.selection;return null!=n&&(!mp.Range.isCollapsed(n)&&(!uv.getSelectedElems(e).some(function(t){if(e.isVoid(t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)})&&!!mp.Text.isText(t)))}var Wy,Gy,qy=function(){function e(){var e=this;this.$elem=Ph('<div class="w-e-bar w-e-bar-hidden w-e-hover-bar"></div>'),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null,this.isShow=!1,this.lngListen=function(){},this.changeHoverbarState=Bm(function(){var t=e.isShow,n=e.getSelectedNodeAndMenuKeys()||{},r=n.node,o=void 0===r?null:r,i=n.menuKeys,a=void 0===i?[]:i,s=e.getEditorInstance();if(null!=o&&e.changeItemsState(),o&&mp.Element.isElement(o)&&t){var u=e.isSamePath(o,e.prevSelectedNode);if(!mp.Editor.isBlock(s,o)&&u)return}e.hideAndClean(),null!=o&&(e.registerItems(a),e.setPosition(o),e.show()),e.prevSelectedNode=o},200),gg(function(){var t=e.getEditorInstance(),n=e.$elem;n.on("mousedown",function(e){return e.preventDefault()},{passive:!1}),uv.getTextarea(t).$textAreaContainer.append(n),t.on($p,e.changeHoverbarState);var r=e.hideAndClean.bind(e);t.on(Up,r),t.on(Vp,r),t.on(Wp,r)}),this.lngListen=Dy(function(){e.menus={},e.hideAndClean(),e.getEditorInstance().deselect()})}return e.prototype.getMenus=function(){return this.menus},e.prototype.hideAndClean=function(){var e=this.$elem;e.removeClass("w-e-bar-show").addClass("w-e-bar-hidden"),this.hoverbarItems=[],e.empty(),this.isShow=!1},e.prototype.checkPositionBottom=function(){var e=this.$elem,t=!1,n="undefined"!=typeof window?window.innerHeight:null;n&&n>=360&&(n-e[0].getBoundingClientRect().bottom<360&&(t=!0));t?e.addClass("w-e-bar-bottom"):e.removeClass("w-e-bar-bottom")},e.prototype.show=function(){this.$elem.removeClass("w-e-bar-hidden").addClass("w-e-bar-show"),this.isShow=!0,this.checkPositionBottom()},e.prototype.changeItemsState=function(){var e=this;gg(function(){e.hoverbarItems.forEach(function(e){e.changeMenuState()})})},e.prototype.registerItems=function(e){var t=this,n=this.$elem;e.forEach(function(e){if("|"!==e)t.registerSingleItem(e);else{var r=Ty();n.append(r)}})},e.prototype.registerSingleItem=function(e){var t=this.getEditorInstance(),n=this.menus,r=n[e];if(null==r){var o=Gp[e];if(null==o)throw new Error("Not found menu item factory by key '".concat(e,"'"));if("function"!=typeof o)throw new Error("Menu item factory (key='".concat(e,"') is not a function"));r=o(),n[e]=r}var i=t.getMenuConfig(e);i&&void 0!==i.iconSvg&&(r.iconSvg=i.iconSvg);var a=Uy(e,r);this.hoverbarItems.push(a),eh.set(a,t),this.$elem.append(a.$elem)},e.prototype.setPosition=function(e){var t=this.getEditorInstance(),n=this.$elem;if(n.attr("style",""),mp.Element.isElement(e)){var r=Am(t,e,"bar");return n.css(r),void Sm(t,n)}if(mp.Text.isText(e)){r=Dm(t);return n.css(r),void Sm(t,n)}throw new Error("hoverbar.setPosition error, current selected node is not elem nor text")},e.prototype.getSelectedNodeAndMenuKeys=function(){var e=this.getEditorInstance();if(null==e.selection)return null;var t=this.getHoverbarKeysConf(),n=null,r=[],o=function(o){var i=t[o],a=i.match,s=i.menuKeys,u=void 0===s?[]:s,l=a||function(e,t){return uv.checkNodeType(t,o)},c=Op(mp.Editor.nodes(e,{match:function(t){return l(e,t)},universal:!0}),1),d=c[0];if(null!=d)return n=d[0],r=u,"break"};for(var i in t){if("break"===o(i))break}return null==n||0===r.length?null:{node:n,menuKeys:r}},e.prototype.getEditorInstance=function(){var e=Jp.get(this);if(null==e)throw new Error("Can not get editor instance");return e},e.prototype.getHoverbarKeysConf=function(){var e=this.getEditorInstance().getConfig().hoverbarKeys,t=void 0===e?{}:e,n=t.text;return n&&null==n.match&&(n.match=Vy),t},e.prototype.isSamePath=function(e,t){if(null==e||null==t)return!1;var n=uv.findPath(null,e),r=uv.findPath(null,t);return mp.Path.equals(n,r)},e.prototype.destroy=function(){var e;this.changeHoverbarState.cancel(),this.$elem.remove(),null===(e=this.lngListen)||void 0===e||e.call(this),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},e}();function Ky(){if(Gy)return Wy;Gy=1;var e="Expected a function",t=/^\s+|\s+$/g,n=/^[-+]0x[0-9a-f]+$/i,r=/^0b[01]+$/i,o=/^0o[0-7]+$/i,i=parseInt,a="object"==typeof b&&b&&b.Object===Object&&b,s="object"==typeof self&&self&&self.Object===Object&&self,u=a||s||Function("return this")(),l=Object.prototype.toString,c=Math.max,d=Math.min,f=function(){return u.Date.now()};function p(t,n,r){var o,i,a,s,u,l,p=0,v=!1,m=!1,y=!0;if("function"!=typeof t)throw new TypeError(e);function b(e){var n=o,r=i;return o=i=void 0,p=e,s=t.apply(r,n)}function E(e){var t=e-l;return void 0===l||t>=n||t<0||m&&e-p>=a}function C(){var e=f();if(E(e))return w(e);u=setTimeout(C,function(e){var t=n-(e-l);return m?d(t,a-(e-p)):t}(e))}function w(e){return u=void 0,y&&o?b(e):(o=i=void 0,s)}function D(){var e=f(),t=E(e);if(o=arguments,i=this,l=e,t){if(void 0===u)return function(e){return p=e,u=setTimeout(C,n),v?b(e):s}(l);if(m)return u=setTimeout(C,n),b(l)}return void 0===u&&(u=setTimeout(C,n)),s}return n=g(n)||0,h(r)&&(v=!!r.leading,a=(m="maxWait"in r)?c(g(r.maxWait)||0,n):a,y="trailing"in r?!!r.trailing:y),D.cancel=function(){void 0!==u&&clearTimeout(u),p=0,o=l=i=u=void 0},D.flush=function(){return void 0===u?s:w(f())},D}function h(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==l.call(e)}(e))return NaN;if(h(e)){var a="function"==typeof e.valueOf?e.valueOf():e;e=h(a)?a+"":a}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(t,"");var s=r.test(e);return s||o.test(e)?i(e.slice(2),s?2:8):n.test(e)?NaN:+e}return Wy=function(t,n,r){var o=!0,i=!0;if("function"!=typeof t)throw new TypeError(e);return h(r)&&(o="leading"in r?!!r.leading:o,i="trailing"in r?!!r.trailing:i),p(t,n,{leading:o,maxWait:n,trailing:i})}}var Yy=E(Ky());function Xy(e,t){return Eg(t)&&uv.hasDOMNode(e,t,{editable:!0})}function Zy(e,t){if(e.getConfig().readOnly)return!1;var n=Jy(e,t)&&uv.toSlateNode(e,t);return mp.Editor.isVoid(e,n)}function Jy(e,t){return Eg(t)&&uv.hasDOMNode(e,t)}const Qy=e=>"object"==typeof e&&null!=e&&1===e.nodeType,eb=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,tb=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return eb(n.overflowY,t)||eb(n.overflowX,t)||(e=>{const t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},nb=(e,t,n,r,o,i,a,s)=>i<e&&a>t||i>e&&a<t?0:i<=e&&s<=n||a>=t&&s>=n?i-e-r:a>t&&s<n||i<e&&s>n?a-t+o:0,rb=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t},ob=(e,t)=>{var n,r,o,i;if("undefined"==typeof document)return[];const{scrollMode:a,block:s,inline:u,boundary:l,skipOverflowHiddenElements:c}=t,d="function"==typeof l?l:e=>e!==l;if(!Qy(e))throw new TypeError("Invalid target");const f=document.scrollingElement||document.documentElement,p=[];let h=e;for(;Qy(h)&&d(h);){if(h=rb(h),h===f){p.push(h);break}null!=h&&h===document.body&&tb(h)&&!tb(document.documentElement)||null!=h&&tb(h,c)&&p.push(h)}const g=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,v=null!=(i=null==(o=window.visualViewport)?void 0:o.height)?i:innerHeight,{scrollX:m,scrollY:y}=window,{height:b,width:E,top:C,right:w,bottom:D,left:A}=e.getBoundingClientRect(),{top:S,right:x,bottom:T,left:O}=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);let N="start"===s||"nearest"===s?C-S:"end"===s?D+T:C+b/2-S+T,B="center"===u?A+E/2-O+x:"end"===u?w+x:A-O;const k=[];for(let e=0;e<p.length;e++){const t=p[e],{height:n,width:r,top:o,right:i,bottom:l,left:c}=t.getBoundingClientRect();if("if-needed"===a&&C>=0&&A>=0&&D<=v&&w<=g&&(t===f&&!tb(t)||C>=o&&D<=l&&A>=c&&w<=i))return k;const d=getComputedStyle(t),h=parseInt(d.borderLeftWidth,10),S=parseInt(d.borderTopWidth,10),x=parseInt(d.borderRightWidth,10),T=parseInt(d.borderBottomWidth,10);let O=0,F=0;const P="offsetWidth"in t?t.offsetWidth-t.clientWidth-h-x:0,I="offsetHeight"in t?t.offsetHeight-t.clientHeight-S-T:0,_="offsetWidth"in t?0===t.offsetWidth?0:r/t.offsetWidth:0,R="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(f===t)O="start"===s?N:"end"===s?N-v:"nearest"===s?nb(y,y+v,v,S,T,y+N,y+N+b,b):N-v/2,F="start"===u?B:"center"===u?B-g/2:"end"===u?B-g:nb(m,m+g,g,h,x,m+B,m+B+E,E),O=Math.max(0,O+y),F=Math.max(0,F+m);else{O="start"===s?N-o-S:"end"===s?N-l+T+I:"nearest"===s?nb(o,l,n,S,T+I,N,N+b,b):N-(o+n/2)+I/2,F="start"===u?B-c-h:"center"===u?B-(c+r/2)+P/2:"end"===u?B-i+x+P:nb(c,i,r,h,x+P,B,B+E,E);const{scrollLeft:e,scrollTop:a}=t;O=0===R?0:Math.max(0,Math.min(a+O/R,t.scrollHeight-n/R+I)),F=0===_?0:Math.max(0,Math.min(e+F/_,t.scrollWidth-r/_+P)),N+=a-O,B+=e-F}k.push({el:t,top:O,left:F})}return k};function ib(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;const n=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if((e=>"object"==typeof e&&"function"==typeof e.behavior)(t))return t.behavior(ob(e,t));const r="boolean"==typeof t||null==t?void 0:t.behavior;for(const{el:o,top:i,left:a}of ob(e,(e=>!1===e?{block:"end",inline:"nearest"}:(e=>e===Object(e)&&0!==Object.keys(e).length)(e)?e:{block:"start",inline:"nearest"})(t))){const e=i-n.top+n.bottom,t=a-n.left+n.right;o.scroll({top:e,left:t,behavior:r})}}function ab(e,t,n){void 0===n&&(n=!1);var r=t.selection,o=t.getConfig(),i=uv.findDocumentOrShadowRoot(t).getSelection();if(i&&(!e.isComposing||n)&&t.isFocused()){var a="None"!==i.type;if(r||a){var s=dh.get(t),u=!1;if(s.contains(i.anchorNode)&&s.contains(i.focusNode)&&(u=!0),a&&u&&r){var l=uv.toSlateRange(t,i,{exactMatch:!0,suppressThrow:!0});if(l&&mp.Range.equals(l,r)){var c=!0;if(mp.Range.isCollapsed(r)){var d=i.anchorNode,f=i.anchorOffset;if(d===s){var p=s.childNodes,h=void 0;(h=p[f])&&h.matches("table")&&(c=!1),(h=p[f-1])&&h.matches("table")&&(c=!1)}}if(c)return}}if(!r||uv.hasRange(t,r)){e.isUpdatingSelection=!0;var g=r&&uv.toDOMRange(t,r);if(g){mp.Range.isBackward(r)?i.setBaseAndExtent(g.endContainer,g.endOffset,g.startContainer,g.startOffset):i.setBaseAndExtent(g.startContainer,g.startOffset,g.endContainer,g.endOffset);var v=g.startContainer.parentElement;if(!v.closest("[data-slate-spacer]")&&g.getBoundingClientRect){v.getBoundingClientRect=g.getBoundingClientRect.bind(g);var m=document.body;ib(v,{scrollMode:"if-needed",boundary:o.scroll?s.parentElement:m,block:"end",behavior:"smooth"}),delete v.getBoundingClientRect}}else i.removeAllRanges();setTimeout(function(){g&&nv&&s.focus(),e.isUpdatingSelection=!1})}else t.selection=uv.toSlateRange(t,i,{exactMatch:!1,suppressThrow:!1})}}}var sb=new WeakMap,ub=new WeakMap;var lb,cb={};var db=function(){if(lb)return cb;lb=1,Object.defineProperty(cb,"__esModule",{value:!0});for(var e="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),t={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},n={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:e?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},r={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},o=1;o<20;o++)r["f"+o]=111+o;function i(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map(function(e){return a(e,t)}),o=function(e){return r.some(function(t){return s(t,e)})};return null==n?o:o(n)}function a(e,o){var i=o&&o.byKey,a={},s=(e=e.replace("++","+add")).split("+"),c=s.length;for(var d in t)a[t[d]]=!1;var f=!0,p=!1,h=void 0;try{for(var g,v=s[Symbol.iterator]();!(f=(g=v.next()).done);f=!0){var m=g.value,y=m.endsWith("?")&&m.length>1;y&&(m=m.slice(0,-1));var b=l(m),E=t[b];if(m.length>1&&!E&&!n[m]&&!r[b])throw new TypeError('Unknown modifier: "'+m+'"');1!==c&&E||(i?a.key=b:a.which=u(m)),E&&(a[E]=!y||null)}}catch(e){p=!0,h=e}finally{try{!f&&v.return&&v.return()}finally{if(p)throw h}}return a}function s(e,t){for(var n in e){var r=e[n],o=void 0;if(null!=r&&((null!=(o="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n])||!1!==r)&&o!==r))return!1}return!0}function u(e){return e=l(e),r[e]||e.toUpperCase().charCodeAt(0)}function l(e){return e=e.toLowerCase(),e=n[e]||e}return cb.default=i,cb.isHotkey=i,cb.isCodeHotkey=function(e,t){return i(e,t)},cb.isKeyHotkey=function(e,t){return i(e,{byKey:!0},t)},cb.parseHotkey=a,cb.compareHotkey=s,cb.toKeyCode=u,cb.toKeyName=l,cb}(),fb={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",splitBlock:"shift?+enter",undo:"mod+z",tab:"tab",selectAll:"mod+a"},pb={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},hb={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},gb=function(e){var t=fb[e],n=pb[e],r=hb[e],o=t&&db.isKeyHotkey(t),i=n&&db.isKeyHotkey(n),a=r&&db.isKeyHotkey(r);return function(e){return!(!o||!o(e))||(!!(tv&&i&&i(e))||!(tv||!a||!a(e)))}},vb={isBold:gb("bold"),isCompose:gb("compose"),isMoveBackward:gb("moveBackward"),isMoveForward:gb("moveForward"),isDeleteBackward:gb("deleteBackward"),isDeleteForward:gb("deleteForward"),isDeleteLineBackward:gb("deleteLineBackward"),isDeleteLineForward:gb("deleteLineForward"),isDeleteWordBackward:gb("deleteWordBackward"),isDeleteWordForward:gb("deleteWordForward"),isExtendBackward:gb("extendBackward"),isExtendForward:gb("extendForward"),isExtendLineBackward:gb("extendLineBackward"),isExtendLineForward:gb("extendLineForward"),isItalic:gb("italic"),isMoveLineBackward:gb("moveLineBackward"),isMoveLineForward:gb("moveLineForward"),isMoveWordBackward:gb("moveWordBackward"),isMoveWordForward:gb("moveWordForward"),isRedo:gb("redo"),isSplitBlock:gb("splitBlock"),isTransposeCharacter:gb("transposeCharacter"),isUndo:gb("undo"),isTab:gb("tab"),isSelectAll:gb("selectAll")};function mb(e){e.preventDefault()}var yb={beforeinput:function(e,t,n){var r=e,o=n.getConfig().readOnly;if(sv&&!o&&Xy(n,r.target)){var i=n.selection,a=r.inputType,s=r.dataTransfer||r.data||void 0;if("insertCompositionText"!==a&&"deleteCompositionText"!==a){if(r.preventDefault(),!a.startsWith("delete")||a.startsWith("deleteBy")){var u=Op(r.getTargetRanges(),1)[0];if(u){var l=uv.toSlateRange(n,u,{exactMatch:!1,suppressThrow:!1});i&&mp.Range.equals(i,l)||mp.Transforms.select(n,l)}}if(i&&mp.Range.isExpanded(i)){var c=uv.getSelectedElems(n),d="table"===c[0].type,f="table-cell"!==c[c.length-1].type;if(d&&f)return;if(a.startsWith("delete")){var p=a.endsWith("Backward")?"backward":"forward";return void mp.Editor.deleteFragment(n,{direction:p})}}switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":mp.Editor.deleteFragment(n);break;case"deleteContent":case"deleteContentForward":mp.Editor.deleteForward(n);break;case"deleteContentBackward":mp.Editor.deleteBackward(n);break;case"deleteEntireSoftLine":mp.Editor.deleteBackward(n,{unit:"line"}),mp.Editor.deleteForward(n,{unit:"line"});break;case"deleteHardLineBackward":mp.Editor.deleteBackward(n,{unit:"block"});break;case"deleteSoftLineBackward":mp.Editor.deleteBackward(n,{unit:"line"});break;case"deleteHardLineForward":mp.Editor.deleteForward(n,{unit:"block"});break;case"deleteSoftLineForward":mp.Editor.deleteForward(n,{unit:"line"});break;case"deleteWordBackward":mp.Editor.deleteBackward(n,{unit:"word"});break;case"deleteWordForward":mp.Editor.deleteForward(n,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":mp.Editor.insertBreak(n);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if("insertFromPaste"===a&&!Eh.get(n))break;"[object DataTransfer]"===mg(s)?n.insertData(s):"string"==typeof s&&mp.Editor.insertText(n,s)}}}},blur:function(e,t,n){var r=e,o=t.isUpdatingSelection,i=t.latestElement;if(!n.getConfig().readOnly&&!o&&Xy(n,r.target)){var a=uv.findDocumentOrShadowRoot(n);if(i!==a.activeElement){var s=r.relatedTarget;if(!(s===uv.toDOMNode(n,n)||wg(s)&&s.hasAttribute("data-slate-spacer"))){if(null!=s&&Eg(s)&&uv.hasDOMNode(n,s)){var u=uv.toSlateNode(n,s);if(mp.Element.isElement(u)&&!n.isVoid(u))return}if(rv){var l=a.getSelection();null==l||l.removeAllRanges()}mh.delete(n)}}}},focus:function(e,t,n){var r=uv.toDOMNode(n,n),o=uv.findDocumentOrShadowRoot(n);t.latestElement=o.activeElement,nv&&e.target!==r?r.focus():mh.set(n,!0)},click:function(e,t,n){if(!n.getConfig().readOnly&&Jy(n,e.target)&&Eg(e.target)){var r=uv.toSlateNode(n,e.target),o=uv.findPath(n,r);if(mp.Editor.hasPath(n,o))if(mp.Node.get(n,o)===r){var i=mp.Editor.start(n,o),a=mp.Editor.end(n,o),s=mp.Editor.void(n,{at:i}),u=mp.Editor.void(n,{at:a});if(s&&u&&mp.Path.equals(s[1],u[1])){var l=mp.Editor.range(n,i);mp.Transforms.select(n,l)}}}},compositionstart:function(e,t,n){if(Xy(n,e.target)){var r=n.selection;if(r&&mp.Range.isExpanded(r)&&(mp.Editor.deleteFragment(n),Promise.resolve().then(function(){ab(t,n,!0)})),n.selection){var o=uv.toDOMRange(n,n.selection).startContainer,i=o.textContent||"";sb.set(n,i),ub.set(n,o)}t.isComposing=!0,function(e,t){var n;t.getConfig().placeholder&&t.isEmpty()&&e.showPlaceholder&&(null===(n=e.$placeholder)||void 0===n||n.hide(),e.showPlaceholder=!1)}(t,n)}},compositionend:function(e,t,n){var r=e;if(Xy(n,r.target)){t.isComposing=!1;var o=n.selection;if(null!=o){(av||nv)&&uv.cleanExposedTexNodeInSelectionBlock(n);for(var i=mp.Range.isBackward(o)?o.focus:o.anchor,a=Op(mp.Editor.node(n,[i.path[0]]),1)[0],s=0;s<i.path.length;s+=1){var u=Op(mp.Editor.node(n,i.path.slice(0,s+1)),1)[0];if(mp.Element.isElement(u)&&((rv||nv)&&"link"===u.type||"code"===u.type)){uv.setNewKey(a);break}}var l=r.data;if(l){if(n.getConfig().maxLength){var c=uv.getLeftLengthOfMaxLength(n);if(c<l.length){var d=uv.toDOMRange(n,o);d.startContainer.nodeType===Node.TEXT_NODE&&(d.startContainer.textContent=sb.get(n)||""),c>0&&mp.Editor.insertText(n,l.slice(0,c)),t.changeViewState()}else mp.Editor.insertText(n,l)}else{var f=uv.findDocumentOrShadowRoot(n).getSelection();f&&function(e,t){if(mp.Range.isCollapsed(t)){var n=t.anchor,r=t.focus;if([2,3].includes(n.path.length)&&[2,3].includes(r.path.length)&&(0===n.offset||0===r.offset)){var o=mp.Editor.node(e,n.path),i=0===n.offset?n.path:r.path,a=[i[0],i[1]-1];if(0===i[1])return!1;var s=mp.Editor.node(e,a);if(mp.Text.isText(s[0])&&mp.Text.isText(o[0]))return!0}}}(n,o)&&(n.selection=uv.toSlateRange(n,f,{exactMatch:!1,suppressThrow:!1})),mp.Editor.insertText(n,l)}rv||setTimeout(function(){var e=n.selection;if(null!=e){var t=ub.get(n);if(null!=t)uv.toDOMRange(n,e).startContainer!==t&&(t.textContent=sb.get(n)||"")}})}}}},compositionupdate:function(e,t,n){Xy(n,e.target)&&(t.isComposing=!0)},keydown:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&!t.isComposing&&Xy(n,r.target)){if(function(e,t){var n=Zp.get(e),r=n&&n.getMenus(),o=Qp.get(e),i=o&&o.getMenus(),a=Dp(Dp({},r),i);for(var s in a){var u=a[s],l=u.hotkey;if(l&&db.isHotkey(l,t)&&!u.isDisabled(e)){var c=u.getValue(e);u.exec(e,c)}}}(n,r),vb.isTab(r))return mb(r),void n.handleTab();if(vb.isRedo(r))return mb(r),void("function"==typeof n.redo&&n.redo());if(vb.isUndo(r))return mb(r),void("function"==typeof n.undo&&n.undo());if(vb.isMoveLineBackward(r))return mb(r),void mp.Transforms.move(n,{unit:"line",reverse:!0});if(vb.isMoveLineForward(r))return mb(r),void mp.Transforms.move(n,{unit:"line"});if(vb.isExtendLineBackward(r))return mb(r),void mp.Transforms.move(n,{unit:"line",edge:"focus",reverse:!0});if(vb.isExtendLineForward(r))return mb(r),void mp.Transforms.move(n,{unit:"line",edge:"focus"});if(vb.isMoveBackward(r))return mb(r),void(o&&mp.Range.isCollapsed(o)?mp.Transforms.move(n,{reverse:!0}):mp.Transforms.collapse(n,{edge:"start"}));if(vb.isMoveForward(r))return mb(r),void(o&&mp.Range.isCollapsed(o)?mp.Transforms.move(n):mp.Transforms.collapse(n,{edge:"end"}));if(vb.isMoveWordBackward(r))return mb(r),o&&mp.Range.isExpanded(o)&&mp.Transforms.collapse(n,{edge:"focus"}),void mp.Transforms.move(n,{unit:"word",reverse:!0});if(vb.isMoveWordForward(r))return mb(r),o&&mp.Range.isExpanded(o)&&mp.Transforms.collapse(n,{edge:"focus"}),void mp.Transforms.move(n,{unit:"word"});if(vb.isSelectAll(r))return mb(r),void n.selectAll();if(sv){if((av||rv)&&o&&(vb.isDeleteBackward(r)||vb.isDeleteForward(r))&&mp.Range.isCollapsed(o)){var i=mp.Node.parent(n,o.anchor.path);if(mp.Element.isElement(i)&&mp.Editor.isVoid(n,i)&&mp.Editor.isInline(n,i))return r.preventDefault(),void mp.Transforms.delete(n,{unit:"block"})}}else{if(vb.isBold(r)||vb.isItalic(r)||vb.isTransposeCharacter(r))return void mb(r);if(vb.isSplitBlock(r))return mb(r),void mp.Editor.insertBreak(n);if(vb.isDeleteBackward(r))return mb(r),void(o&&mp.Range.isExpanded(o)?mp.Editor.deleteFragment(n,{direction:"backward"}):mp.Editor.deleteBackward(n));if(vb.isDeleteForward(r))return mb(r),void(o&&mp.Range.isExpanded(o)?mp.Editor.deleteFragment(n,{direction:"forward"}):mp.Editor.deleteForward(n));if(vb.isDeleteLineBackward(r))return mb(r),void(o&&mp.Range.isExpanded(o)?mp.Editor.deleteFragment(n,{direction:"backward"}):mp.Editor.deleteBackward(n,{unit:"line"}));if(vb.isDeleteLineForward(r))return mb(r),void(o&&mp.Range.isExpanded(o)?mp.Editor.deleteFragment(n,{direction:"forward"}):mp.Editor.deleteForward(n,{unit:"line"}));if(vb.isDeleteWordBackward(r))return mb(r),void(o&&mp.Range.isExpanded(o)?mp.Editor.deleteFragment(n,{direction:"backward"}):mp.Editor.deleteBackward(n,{unit:"word"}));if(vb.isDeleteWordForward(r))return mb(r),void(o&&mp.Range.isExpanded(o)?mp.Editor.deleteFragment(n,{direction:"forward"}):mp.Editor.deleteForward(n,{unit:"word"}))}}},keypress:function(e,t,n){if(!sv&&!n.getConfig().readOnly&&Xy(n,e.target)){e.preventDefault();var r=e.key;mp.Editor.insertText(n,r)}},copy:function(e,t,n){var r=e;if(Xy(n,r.target)){n.getConfig().readOnly||r.preventDefault();var o=r.clipboardData;if(null!=o){n.setFragmentData(o);var i=n.getConfig().customCopy;i&&i(n,r)}}},cut:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&(r.preventDefault(),Xy(n,r.target))){var i=r.clipboardData;if(null!=i&&(n.setFragmentData(i),o))if(mp.Range.isExpanded(o))mp.Editor.deleteFragment(n);else{var a=mp.Node.parent(n,o.anchor.path);mp.Editor.isVoid(n,a)&&mp.Transforms.delete(n)}}},paste:function(e,t,n){Eh.set(n,!0);var r=e;if(!n.getConfig().readOnly&&Xy(n,r.target)){var o=n.getConfig().customPaste;if(o)if(!1===o(n,r))return void Eh.set(n,!1);if(rv||!sv||function(e){return e.clipboardData&&""!==e.clipboardData.getData("text/plain")&&1===e.clipboardData.types.length}(r)){r.preventDefault();var i=r.clipboardData;null!=i&&n.insertData(i)}}},dragover:function(e,t,n){if(Jy(n,e.target)){var r=uv.toSlateNode(n,e.target);mp.Editor.isVoid(n,r)&&e.preventDefault()}},dragstart:function(e,t,n){var r=e;if(Jy(n,r.target)&&!n.getConfig().readOnly){var o=uv.toSlateNode(n,r.target),i=uv.findPath(n,o);if(mp.Editor.isVoid(n,o)||mp.Editor.void(n,{at:i,voids:!0})){var a=mp.Editor.range(n,i);mp.Transforms.select(n,a)}var s=r.dataTransfer;if(null!=s)uv.getSelectedNodeByType(n,"table")||(t.isDraggingInternally=!0,n.setFragmentData(s))}},dragend:function(e,t,n){var r=e;n.getConfig().readOnly||t.isDraggingInternally&&Jy(n,r.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,n){var r=e,o=r.dataTransfer;if(!n.getConfig().readOnly&&Jy(n,r.target)&&null!=o&&!(sv&&rv&&o.files.length>0)){r.preventDefault();var i=n.selection,a=uv.findEventRange(n,r);mp.Transforms.select(n,a),t.isDraggingInternally&&(i&&mp.Transforms.delete(n,{at:i}),t.isDraggingInternally=!1),n.insertData(o),n.isFocused()||n.focus()}}};function bb(e){if(Eb(e)){for(;e&&Eb(e);){e=Cb(e).parent}return null!=e?e:null}return e.parentNode}function Eb(e){return 11===e.nodeType}function Cb(e,t){var n,r,o;const i=e;return null!==(n=i.parent)&&void 0!==n||(i.parent=null!=t?t:null),null!==(r=i.firstChildNode)&&void 0!==r||(i.firstChildNode=e.firstChild),null!==(o=i.lastChildNode)&&void 0!==o||(i.lastChildNode=e.lastChild),i}const wb={createElement:function(e,t){return document.createElement(e,t)},createElementNS:function(e,t,n){return document.createElementNS(e,t,n)},createTextNode:function(e){return document.createTextNode(e)},createDocumentFragment:function(){return Cb(document.createDocumentFragment())},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){if(Eb(e)){let t=e;for(;t&&Eb(t);){t=Cb(t).parent}e=null!=t?t:e}Eb(t)&&(t=Cb(t,e)),n&&Eb(n)&&(n=Cb(n).firstChildNode),e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){Eb(t)&&(t=Cb(t,e)),e.appendChild(t)},parentNode:bb,nextSibling:function(e){var t;if(Eb(e)){const n=Cb(e),r=bb(n);if(r&&n.lastChildNode){const e=Array.from(r.childNodes),o=e.indexOf(n.lastChildNode);return null!==(t=e[o+1])&&void 0!==t?t:null}return null}return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},getTextContent:function(e){return e.textContent},isElement:function(e){return 1===e.nodeType},isText:function(e){return 3===e.nodeType},isComment:function(e){return 8===e.nodeType},isDocumentFragment:Eb};function Db(e,t,n,r,o){return{sel:e,data:t,children:n,text:r,elm:o,key:void 0===t?void 0:t.key}}const Ab=Array.isArray;function Sb(e){return"string"==typeof e||"number"==typeof e||e instanceof String||e instanceof Number}function xb(e){return void 0===e}function Tb(e){return void 0!==e}const Ob=Db("",{},[],void 0,void 0);function Nb(e,t){var n,r;const o=e.key===t.key,i=(null===(n=e.data)||void 0===n?void 0:n.is)===(null===(r=t.data)||void 0===r?void 0:r.is),a=e.sel===t.sel,s=!(!e.sel&&e.sel===t.sel)||typeof e.text==typeof t.text;return a&&o&&i&&s}function Bb(e,t,n){var r;const o={};for(let i=t;i<=n;++i){const t=null===(r=e[i])||void 0===r?void 0:r.key;void 0!==t&&(o[t]=i)}return o}const kb=["create","update","remove","destroy","pre","post"];function Fb(e,t,n){const r={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},o=wb;for(const t of kb)for(const n of e){const e=n[t];void 0!==e&&r[t].push(e)}function i(e){const t=e.id?"#"+e.id:"",n=e.getAttribute("class"),r=n?"."+n.split(" ").join("."):"";return Db(o.tagName(e).toLowerCase()+t+r,{},[],void 0,e)}function a(e){return Db(void 0,{},[],void 0,e)}function s(e,t){return function(){if(0===--t){const t=o.parentNode(e);null!==t&&o.removeChild(t,e)}}}function u(e,t){var n,i;let a,s=e.data;if(void 0!==s){const t=null===(n=s.hook)||void 0===n?void 0:n.init;Tb(t)&&(t(e),s=e.data)}const l=e.children,c=e.sel;if("!"===c)xb(e.text)&&(e.text=""),e.elm=o.createComment(e.text);else if(""===c)e.elm=o.createTextNode(e.text);else if(void 0!==c){const n=c.indexOf("#"),d=c.indexOf(".",n),f=n>0?n:c.length,p=d>0?d:c.length,h=-1!==n||-1!==d?c.slice(0,Math.min(f,p)):c,g=e.elm=Tb(s)&&Tb(a=s.ns)?o.createElementNS(a,h,s):o.createElement(h,s);for(f<p&&g.setAttribute("id",c.slice(f+1,p)),d>0&&g.setAttribute("class",c.slice(p+1).replace(/\./g," ")),a=0;a<r.create.length;++a)r.create[a](Ob,e);if(!Sb(e.text)||Ab(l)&&0!==l.length||o.appendChild(g,o.createTextNode(e.text)),Ab(l))for(a=0;a<l.length;++a){const e=l[a];null!=e&&o.appendChild(g,u(e,t))}const v=e.data.hook;Tb(v)&&(null===(i=v.create)||void 0===i||i.call(v,Ob,e),v.insert&&t.push(e))}else e.elm=o.createTextNode(e.text);return e.elm}function l(e,t,n,r,i,a){for(;r<=i;++r){const i=n[r];null!=i&&o.insertBefore(e,u(i,a),t)}}function c(e){var t,n;const o=e.data;if(void 0!==o){null===(n=null===(t=null==o?void 0:o.hook)||void 0===t?void 0:t.destroy)||void 0===n||n.call(t,e);for(let t=0;t<r.destroy.length;++t)r.destroy[t](e);if(void 0!==e.children)for(let t=0;t<e.children.length;++t){const n=e.children[t];null!=n&&"string"!=typeof n&&c(n)}}}function d(e,t,n,i){for(var a,u;n<=i;++n){let i,l;const f=t[n];if(null!=f)if(Tb(f.sel)){c(f),i=r.remove.length+1,l=s(f.elm,i);for(let e=0;e<r.remove.length;++e)r.remove[e](f,l);const e=null===(u=null===(a=null==f?void 0:f.data)||void 0===a?void 0:a.hook)||void 0===u?void 0:u.remove;Tb(e)?e(f,l):l()}else f.children?(c(f),d(e,f.children,0,f.children.length-1)):o.removeChild(e,f.elm)}}function f(e,t,n){var i,a,s,c,p,h,g,v;const m=null===(i=t.data)||void 0===i?void 0:i.hook;null===(a=null==m?void 0:m.prepatch)||void 0===a||a.call(m,e,t);const y=t.elm=e.elm;if(e===t)return;if(void 0!==t.data||Tb(t.text)&&t.text!==e.text){null!==(s=t.data)&&void 0!==s||(t.data={}),null!==(c=e.data)&&void 0!==c||(e.data={});for(let n=0;n<r.update.length;++n)r.update[n](e,t);null===(g=null===(h=null===(p=t.data)||void 0===p?void 0:p.hook)||void 0===h?void 0:h.update)||void 0===g||g.call(h,e,t)}const b=e.children,E=t.children;xb(t.text)?Tb(b)&&Tb(E)?b!==E&&function(e,t,n,r){let i,a,s,c,p=0,h=0,g=t.length-1,v=t[0],m=t[g],y=n.length-1,b=n[0],E=n[y];for(;p<=g&&h<=y;)null==v?v=t[++p]:null==m?m=t[--g]:null==b?b=n[++h]:null==E?E=n[--y]:Nb(v,b)?(f(v,b,r),v=t[++p],b=n[++h]):Nb(m,E)?(f(m,E,r),m=t[--g],E=n[--y]):Nb(v,E)?(f(v,E,r),o.insertBefore(e,v.elm,o.nextSibling(m.elm)),v=t[++p],E=n[--y]):Nb(m,b)?(f(m,b,r),o.insertBefore(e,m.elm,v.elm),m=t[--g],b=n[++h]):(void 0===i&&(i=Bb(t,p,g)),a=i[b.key],xb(a)?(o.insertBefore(e,u(b,r),v.elm),b=n[++h]):xb(i[E.key])?(o.insertBefore(e,u(E,r),o.nextSibling(m.elm)),E=n[--y]):(s=t[a],s.sel!==b.sel?o.insertBefore(e,u(b,r),v.elm):(f(s,b,r),t[a]=void 0,o.insertBefore(e,s.elm,v.elm)),b=n[++h]));h<=y&&(c=null==n[y+1]?null:n[y+1].elm,l(e,c,n,h,y,r)),p<=g&&d(e,t,p,g)}(y,b,E,n):Tb(E)?(Tb(e.text)&&o.setTextContent(y,""),l(y,null,E,0,E.length-1,n)):Tb(b)?d(y,b,0,b.length-1):Tb(e.text)&&o.setTextContent(y,""):e.text!==t.text&&(Tb(b)&&d(y,b,0,b.length-1),o.setTextContent(y,t.text)),null===(v=null==m?void 0:m.postpatch)||void 0===v||v.call(m,e,t)}return function(e,t){let n,s,l;const c=[];for(n=0;n<r.pre.length;++n)r.pre[n]();for(!function(e,t){return e.isElement(t)}(o,e)?function(e,t){return e.isDocumentFragment(t)}(o,e)&&(e=a(e)):e=i(e),Nb(e,t)?f(e,t,c):(s=e.elm,l=o.parentNode(s),u(t,c),null!==l&&(o.insertBefore(l,t.elm,o.nextSibling(s)),d(l,[e],0,0))),n=0;n<c.length;++n)c[n].data.hook.insert(c[n]);for(n=0;n<r.post.length;++n)r.post[n]();return t}}function Pb(e,t,n){if(e.ns="http://www.w3.org/2000/svg","foreignObject"!==n&&void 0!==t)for(let e=0;e<t.length;++e){const n=t[e];if("string"==typeof n)continue;const r=n.data;void 0!==r&&Pb(r,n.children,n.sel)}}function Ib(e,t,n){let r,o,i,a={};if(void 0!==n?(null!==t&&(a=t),Ab(n)?r=n:Sb(n)?o=n.toString():n&&n.sel&&(r=[n])):null!=t&&(Ab(t)?r=t:Sb(t)?o=t.toString():t&&t.sel?r=[t]:a=t),void 0!==r)for(i=0;i<r.length;++i)Sb(r[i])&&(r[i]=Db(void 0,void 0,void 0,r[i],void 0));return!e.startsWith("svg")||3!==e.length&&"."!==e[3]&&"#"!==e[3]||Pb(a,r,e),Db(e,a,r,o,void 0)}function _b(e,t){let n;const r=t.elm;let o=e.data.attrs,i=t.data.attrs;if((o||i)&&o!==i){for(n in o=o||{},i=i||{},i){const e=i[n];o[n]!==e&&(!0===e?r.setAttribute(n,""):!1===e?r.removeAttribute(n):120!==n.charCodeAt(0)?r.setAttribute(n,e):58===n.charCodeAt(3)?r.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,e):58===n.charCodeAt(5)?109===n.charCodeAt(1)?r.setAttributeNS("http://www.w3.org/2000/xmlns/",n,e):r.setAttributeNS("http://www.w3.org/1999/xlink",n,e):r.setAttribute(n,e))}for(n in o)n in i||r.removeAttribute(n)}}const Rb={create:_b,update:_b};function Lb(e,t){let n,r;const o=t.elm;let i=e.data.class,a=t.data.class;if((i||a)&&i!==a){for(r in i=i||{},a=a||{},i)i[r]&&!Object.prototype.hasOwnProperty.call(a,r)&&o.classList.remove(r);for(r in a)n=a[r],n!==i[r]&&o.classList[n?"add":"remove"](r)}}const Mb={create:Lb,update:Lb},jb=/[A-Z]/g;function Hb(e,t){const n=t.elm;let r,o=e.data.dataset,i=t.data.dataset;if(!o&&!i)return;if(o===i)return;o=o||{},i=i||{};const a=n.dataset;for(r in o)r in i||(a?r in a&&delete a[r]:n.removeAttribute("data-"+r.replace(jb,"-$&").toLowerCase()));for(r in i)o[r]!==i[r]&&(a?a[r]=i[r]:n.setAttribute("data-"+r.replace(jb,"-$&").toLowerCase(),i[r]))}const zb={create:Hb,update:Hb};function $b(e,t,n){if("function"==typeof e)e.call(t,n,t);else if("object"==typeof e)for(let r=0;r<e.length;r++)$b(e[r],t,n)}function Ub(e,t){const n=e.type,r=t.data.on;r&&r[n]&&$b(r[n],t,e)}function Vb(e,t){const n=e.data.on,r=e.listener,o=e.elm,i=t&&t.data.on,a=t&&t.elm;let s;if(n!==i){if(n&&r)if(i)for(s in n)i[s]||o.removeEventListener(s,r,!1);else for(s in n)o.removeEventListener(s,r,!1);if(i){const r=t.listener=e.listener||function e(t){Ub(t,e.vnode)};if(r.vnode=t,n)for(s in i)n[s]||a.addEventListener(s,r,!1);else for(s in i)a.addEventListener(s,r,!1)}}}const Wb={create:Vb,update:Vb,destroy:Vb};function Gb(e,t){let n,r,o;const i=t.elm;let a=e.data.props,s=t.data.props;if((a||s)&&a!==s)for(n in a=a||{},s=s||{},s)r=s[n],o=a[n],o===r||"value"===n&&i[n]===r||(i[n]=r)}const qb={create:Gb,update:Gb},Kb="function"==typeof(null===window||void 0===window?void 0:window.requestAnimationFrame)?window.requestAnimationFrame.bind(window):setTimeout;let Yb=!1;function Xb(e,t,n){var r;r=function(){e[t]=n},Kb(function(){Kb(r)})}function Zb(e,t){let n,r;const o=t.elm;let i=e.data.style,a=t.data.style;if(!i&&!a)return;if(i===a)return;i=i||{},a=a||{};const s="delayed"in i;for(r in i)r in a||("-"===r[0]&&"-"===r[1]?o.style.removeProperty(r):o.style[r]="");for(r in a)if(n=a[r],"delayed"===r&&a.delayed)for(const e in a.delayed)n=a.delayed[e],s&&n===i.delayed[e]||Xb(o.style,e,n);else"remove"!==r&&n!==i[r]&&("-"===r[0]&&"-"===r[1]?o.style.setProperty(r,n):o.style[r]=n)}const Jb={pre:function(){Yb=!1},create:Zb,update:Zb,destroy:function(e){let t,n;const r=e.elm,o=e.data.style;if(o&&(t=o.destroy))for(n in t)r.style[n]=t[n]},remove:function(e,t){const n=e.data.style;if(!n||!n.remove)return void t();let r;Yb||(e.elm.offsetLeft,Yb=!0);const o=e.elm;let i=0;const a=n.remove;let s=0;const u=[];for(r in a)u.push(r),o.style[r]=a[r];const l=getComputedStyle(o)["transition-property"].split(", ");for(;i<l.length;++i)-1!==u.indexOf(l[i])&&s++;o.addEventListener("transitionend",function(e){e.target===o&&--s,0===s&&t()})}};function Qb(e,t){for(const n of e)null!=n&&!1!==n&&""!==n&&(Array.isArray(n)?Qb(n,t):"string"==typeof n||"number"==typeof n||"boolean"==typeof n?t.push(Db(void 0,void 0,void 0,String(n),void 0)):t.push(n));return t}function eE(e,t,...n){const r=Qb(n,[]);return"function"==typeof e?e(t,r):1===r.length&&!r[0].sel&&r[0].text?Ib(e,t,r[0].text):Ib(e,t,r)}var tE=[];var nE,rE,oE={};function iE(e,t,n){return eE(n.isInline(e)?"span":"div",null,t)}function aE(e,t){var n,r=uv.findKey(t,e),o=t.isInline(e),i=mp.Editor.isVoid(t,e),a=Vg(e.type,r.id),s={id:a,key:r.id,"data-slate-node":"element","data-slate-inline":o},u=e.type,l=e.children,c=void 0===l?[]:l,d=function(e){return oE[e]||iE}(u);n=i?null:c.map(function(n,r){return cE(n,r,e,t)});var f=d(e,n,t);if(i){s["data-slate-void"]=!0;var p=o?"span":"div",h=Op(mp.Node.texts(e),1),g=Op(h[0],1)[0],v=eE(p,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},cE(g,0,e,t));f=eE(p,{style:{position:"relative"}},f,v),lh.set(g,0),ch.set(g,e)}return null==f.data&&(f.data={}),Object.assign(f.data,s),i||o||(f=function(e,t){var n=t;return tE.forEach(function(r){n=r(e,t)}),n}(e,f)),gg(function(){var t=Sg(a);null!=t&&(ph.set(r,t),hh.set(e,t),fh.set(t,e))}),f}function sE(e,t){return void 0===t&&(t=!1),eE("span",{"data-slate-string":!0},t?e+"\n":e)}function uE(e,t){return void 0===e&&(e=0),void 0===t&&(t=!1),eE("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e},"\ufeff",t?eE("br",null):null)}function lE(e,t,n){if(null==e.text)throw new Error("Current node is not slate Text ".concat(JSON.stringify(e)));var r=uv.findKey(n,e),o=n.getConfig().decorate;if(null==o)throw new Error("Can not get config.decorate");var i,a=uv.findPath(n,e),s=o([e,a]),u=mp.Text.decorations(e,s),l=u.map(function(r,o){var i=function(e,t,n,r,o){void 0===t&&(t=!1);var i=e.text,a=uv.findPath(o,n),s=mp.Path.parent(a);if(mp.Editor.isEditor(r))throw new Error("Text node ".concat(JSON.stringify(n)," parent is Editor"));return o.isVoid(r)?uE(mp.Node.string(r).length):""!==i||r.children[r.children.length-1]!==n||o.isInline(r)||""!==mp.Editor.string(o,s)?""===i?uE():t&&"\n"===i.slice(-1)?sE(i,!0):sE(i):uE(0,!0)}(r,o===u.length-1,e,t,n);return i=function(e,t){var n=t;return tE.forEach(function(t){n=t(e,n)}),n}(r,i),eE("span",{"data-slate-leaf":!0},i)}),c=(i=r.id,"w-e-text-".concat(i)),d=eE("span",{"data-slate-node":"text",id:c,key:r.id},l);return gg(function(){var t=Sg(c);null!=t&&(ph.set(r,t),hh.set(e,t),fh.set(t,e))}),d}function cE(e,t,n,r){return lh.set(e,t),ch.set(e,n),mp.Element.isElement(e)?aE(e,r):lE(e,n,r)}var dE=function(){if(rE)return nE;rE=1;var e,t="[object Symbol]",n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,r=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,o="\\ud800-\\udfff",i="\\u0300-\\u036f\\ufe20-\\ufe23",a="\\u20d0-\\u20f0",s="\\u2700-\\u27bf",u="a-z\\xdf-\\xf6\\xf8-\\xff",l="A-Z\\xc0-\\xd6\\xd8-\\xde",c="\\ufe0e\\ufe0f",d="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",f="['’]",p="["+o+"]",h="["+d+"]",g="["+i+a+"]",v="\\d+",m="["+s+"]",y="["+u+"]",E="[^"+o+d+v+s+u+l+"]",C="\\ud83c[\\udffb-\\udfff]",w="[^"+o+"]",D="(?:\\ud83c[\\udde6-\\uddff]){2}",A="[\\ud800-\\udbff][\\udc00-\\udfff]",S="["+l+"]",x="\\u200d",T="(?:"+y+"|"+E+")",O="(?:"+S+"|"+E+")",N="(?:['’](?:d|ll|m|re|s|t|ve))?",B="(?:['’](?:D|LL|M|RE|S|T|VE))?",k="(?:"+g+"|"+C+")"+"?",F="["+c+"]?",P=F+k+("(?:"+x+"(?:"+[w,D,A].join("|")+")"+F+k+")*"),I="(?:"+[m,D,A].join("|")+")"+P,_="(?:"+[w+g+"?",g,D,A,p].join("|")+")",R=RegExp(f,"g"),L=RegExp(g,"g"),M=RegExp(C+"(?="+C+")|"+_+P,"g"),j=RegExp([S+"?"+y+"+"+N+"(?="+[h,S,"$"].join("|")+")",O+"+"+B+"(?="+[h,S+T,"$"].join("|")+")",S+"?"+T+"+"+N,S+"+"+B,v,I].join("|"),"g"),H=RegExp("["+x+o+i+a+c+"]"),z=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,$="object"==typeof b&&b&&b.Object===Object&&b,U="object"==typeof self&&self&&self.Object===Object&&self,V=$||U||Function("return this")(),W=(e={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"ss"},function(t){return null==e?void 0:e[t]});function G(e){return H.test(e)}function q(e){return G(e)?function(e){return e.match(M)||[]}(e):function(e){return e.split("")}(e)}var K=Object.prototype.toString,Y=V.Symbol,X=Y?Y.prototype:void 0,Z=X?X.toString:void 0;function J(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&K.call(e)==t}(e))return Z?Z.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}function Q(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}(e,t,n)}function ee(e){return null==e?"":J(e)}var te,ne,re=(te=function(e,t,n){return t=t.toLowerCase(),e+(n?oe(ee(t).toLowerCase()):t)},function(e){return function(e,t,n){for(var r=-1,o=e?e.length:0;++r<o;)n=t(n,e[r],r,e);return n}(function(e,t){return e=ee(e),void 0===t?function(e){return z.test(e)}(e)?function(e){return e.match(j)||[]}(e):function(e){return e.match(n)||[]}(e):e.match(t)||[]}(function(e){return(e=ee(e))&&e.replace(r,W).replace(L,"")}(e).replace(R,"")),te,"")}),oe=(ne="toUpperCase",function(e){var t=G(e=ee(e))?q(e):void 0,n=t?t[0]:e.charAt(0),r=t?Q(t,1).join(""):e.slice(1);return n[ne]()+r});return nE=re}(),fE=E(dE);var pE=["props","attrs","style","dataset","on","hook"];function hE(e){var t=e.data,n=void 0===t?{}:t,r=e.children,o=void 0===r?[]:r;Object.keys(n).forEach(function(t){var r,o,i=n[t];if("key"!==t){if(!pE.includes(t)){if(t.startsWith("data-")){var a=t.slice(5);return a=fE(a),function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.dataset&&(n.dataset={});Object.assign(n.dataset,t)}(e,((r={})[a]=i,r)),void delete n[t]}!function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.props&&(n.props={});Object.assign(n.props,t)}(e,(o={},o[t]=i,o)),delete n[t]}}else e.key=i}),o.length>0&&o.forEach(function(e){"string"!=typeof e&&hE(e)})}function gE(e,t){var n,r,o=e.$scroll,i=(n=e.id,"w-e-textarea-".concat(n)),a=t.getConfig(),s=a.readOnly,u=a.autoFocus,l=function(e,t){return void 0===t&&(t=!1),Ib("div#".concat(e),{props:{contentEditable:!t}})}(i,s),c=t.children||[];l.children=c.map(function(e,n){if(sh.has(e)){var r=sh.get(e);if(r){var o=Op(r,2),i=o[0],a=o[1];if(a)return i!==n&&(lh.set(e,n),sh.set(e,[n,a])),a}}var s=cE(e,n,t,t);hE(s);var u=t.getConfig().skipCacheTypes,l=void 0===u?["list-item"]:u;return mp.Element.isElement(e)&&l.includes(e.type)||sh.set(e,[n,s]),s});var d=oh.get(e);if(null==d&&(d=!0),d){var f=function(e){return Ph('<div\n id="'.concat(e,'"\n data-slate-editor\n data-slate-node="value"\n suppressContentEditableWarning\n role="textarea"\n spellCheck="true"\n autoCorrect="true"\n autoCapitalize="true"\n ></div>'))}(i);o.append(f),e.$textArea=f,r=f[0],(h=Fb([Mb,qb,Jb,zb,Wb,Rb]))(r,l),oh.set(e,!1),ih.set(e,h)}else{var p=ah.get(e),h=ih.get(e);if(null==p||null==h)return;r=p.elm,h(p,l)}if(null!=r||null!=(r=Sg(i))){var g;if((d?u:t.isFocused())&&r.focus({preventScroll:!0}),d){var v=(g=r)&&g.ownerDocument&&g.ownerDocument.defaultView||null;v&&vh.set(t,v)}dh.set(t,r),hh.set(t,r),fh.set(r,t),ah.set(e,l)}}var vE=1,mE=function(){function e(e){var t=this;this.id=vE++,this.$textArea=null,this.$progressBar=Ph('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=Ph('<div class="w-e-max-length-info"></div>'),this.isComposing=!1,this.isUpdatingSelection=!1,this.isDraggingInternally=!1,this.latestElement=null,this.showPlaceholder=!1,this.$placeholder=null,this.latestEditorSelection=null,this.onDOMSelectionChange=Yy(function(){var e=t.editorInstance;!function(e,t){var n=e.isComposing,r=e.isUpdatingSelection,o=e.isDraggingInternally;if(!(t.getConfig().readOnly||n||r||o)){var i=uv.findDocumentOrShadowRoot(t),a=i.activeElement,s=uv.toDOMNode(t,t),u=i.getSelection();if(a!==s)return mh.delete(t),void mp.Transforms.deselect(t);if(e.latestElement=a,mh.set(t,!0),!u)return mp.Transforms.deselect(t);var l=u.anchorNode,c=u.focusNode,d=Xy(t,l)||Zy(t,l),f=Xy(t,c)||Zy(t,c);if(d&&f){var p=uv.toSlateRange(t,u,{exactMatch:!1,suppressThrow:!1});mp.Transforms.select(t,p)}}}(t,e)},100);var n=Ph(e);if(0===n.length)throw new Error("Cannot find textarea DOM by selector '".concat(e,"'"));this.$box=n;var r=Ph('<div class="w-e-text-container"></div>');r.append(this.$progressBar),r.append(this.$maxLengthInfo),n.append(r);var o=Ph('<div class="w-e-scroll"></div>');r.append(o),this.$scroll=o,this.$textAreaContainer=r,gg(function(){var e=t.editorInstance,o=uv.getWindow(e);o.document.addEventListener("selectionchange",t.onDOMSelectionChange),e.on(zp,function(){o.document.removeEventListener("selectionchange",t.onDOMSelectionChange)}),r.on("click",function(){return e.hidePanelOrModal()}),e.on($p,t.changeViewState.bind(t));var i=e.getConfig(),a=i.onChange,s=i.scroll;a&&e.on($p,function(){return a(e)}),s||(n.css("position","relative"),r.addClass("no-scroll")),t.onFocusAndOnBlur(),e.on($p,t.changeMaxLengthInfo.bind(t)),t.bindEvent()})}return Object.defineProperty(e.prototype,"editorInstance",{get:function(){var e=Yp.get(this);if(null==e)throw new Error("Can not get editor instance");return e},enumerable:!1,configurable:!0}),e.prototype.bindEvent=function(){var e=this,t=this.$textArea,n=this.$scroll,r=this.editorInstance;null!=t&&(Mp(yb,function(n,o){t.on(o,function(t){n(t,e,r)})}),r.getConfig().scroll&&(n.css("overflow-y","auto"),n.on("scroll",Yy(function(){r.emit("scroll")},100))))},e.prototype.onFocusAndOnBlur=function(){var e=this,t=this.editorInstance,n=t.getConfig(),r=n.onBlur,o=n.onFocus;this.latestEditorSelection=t.selection,t.on($p,function(){null==e.latestEditorSelection&&null!=t.selection?setTimeout(function(){return o&&o(t)}):null!=e.latestEditorSelection&&null==t.selection&&setTimeout(function(){return r&&r(t)}),e.latestEditorSelection=t.selection})},e.prototype.changeMaxLengthInfo=function(){var e=this.editorInstance,t=e.getConfig().maxLength;if(t){var n=t-uv.getLeftLengthOfMaxLength(e);this.$maxLengthInfo[0].innerHTML="".concat(n,"/").concat(t)}},e.prototype.changeProgress=function(e){var t=this.$progressBar;t.css("width","".concat(e,"%")),e>=100&&setTimeout(function(){t.hide(),t.css("width","0"),t.show()},1e3)},e.prototype.changeViewState=function(){var e=this,t=this.editorInstance;gE(this,t),function(e,t){var n,r=t.getConfig().placeholder;if(r){var o=t.isEmpty();if(o&&!e.showPlaceholder&&!e.isComposing){if(null==e.$placeholder){var i=Ph('<div class="w-e-text-placeholder">'.concat(r,"</div>"));e.$textAreaContainer.append(i),e.$placeholder=i}return e.$placeholder.show(),void(e.showPlaceholder=!0)}!o&&e.showPlaceholder&&(null===(n=e.$placeholder)||void 0===n||n.hide(),e.showPlaceholder=!1)}}(this,t),gg(function(){ab(e,t)})},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e}();function yE(e,t,n,r){if(lh.set(e,t),ch.set(e,n),mp.Element.isElement(e)){var o=e.children;if((void 0===o?[]:o).forEach(function(t,n){return yE(t,n,e,r)}),mp.Editor.isVoid(r,e)){var i=Op(mp.Node.texts(e),1),a=Op(i[0],1)[0];lh.set(a,0),ch.set(a,e)}}}var bE={en:"Textarea height < 300px. This may cause modal and hoverbar position error",zh:"编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常"};function EE(e){var t=e.selector,n=void 0===t?"":t,r=e.config,o=void 0===r?{}:r,i=e.content,a=e.html,s=e.plugins,u=void 0===s?[]:s,l=function(e){return[Em,nm,Ch,em,Om,bm,Cm,Ep.withHistory].reduce(function(e,t){return t(e)},e)}(mp.createEditor());if(n&&function(e,t){return $g(e,"data-w-e-textarea",t)}(l,n))throw new Error("Repeated create editor by selector '".concat(n,"'"));var c=function(e){void 0===e&&(e={});var t=Rp(jp),n={},r=e.MENU_CONF,o=void 0===r?{}:r;return Mp(t,function(e,t){n[t]=Dp(Dp({},e),o[t]||{})}),delete e.MENU_CONF,Dp({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:n,hoverbarKeys:{},customAlert:function(e,t){window.alert("".concat(t,":\n").concat(e))}},e)}(o);rh.set(l,c);var d=c.hoverbarKeys,f=void 0===d?{}:d;if(u.forEach(function(e){l=e(l)}),function(e,t){var n=t.html,r=t.content;null!=n?e.children=Ug(e,n):r&&r.length&&(e.children=r),0===e.children.length&&(e.children=[{type:"paragraph",children:[{text:""}]}])}(l,{html:a,content:i}),n){var p=new mE(n);Kp.set(l,p),Yp.set(p,l),p.changeViewState(),gg(function(){var e=p.$scroll;null!=e&&e.height()<300&&console.warn("".concat(bE.zh,"\n").concat(bE.en),{element:e,height:e.height()})});var h=void 0;Object.keys(f).length>0&&(h=new qy,Jp.set(h,l),Qp.set(l,h)),l.on($p,function(){l.hidePanelOrModal()}),l.on(Up,function(){l.hidePanelOrModal()})}else l.children.forEach(function(e,t){return yE(e,t,l,l)});var g=c.onCreated,v=c.onDestroyed;return g&&l.on(Hp,function(){return g(l)}),v&&l.on(zp,function(){return v(l)}),gg(function(){return l.emit("created")}),l}var CE=function(){function e(e,t){var n=this;this.$toolbar=Ph('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.lngListen=function(){},this.changeToolbarState=Bm(function(){n.toolbarItems.forEach(function(e){e.changeMenuState()})},200),this.config=t;var r=Ph(e);if(0===r.length)throw new Error("Cannot find toolbar DOM by selector '".concat(e,"'"));this.$box=r;var o=this.$toolbar;o.on("mousedown",function(e){return e.preventDefault()},{passive:!1}),r.append(o),gg(function(){n.initToolbar(),n.lngListen=Dy(function(){return n.initToolbar()}),n.getEditorInstance().on($p,n.changeToolbarState)})}return e.prototype.getMenus=function(){return this.menus},e.prototype.getConfig=function(){return this.config},e.prototype.initToolbar=function(){this.menus={};var e=this.$toolbar;null==e||e.empty(),this.registerItems(),this.changeToolbarState()},e.prototype.registerItems=function(){var e=this,t="",n=this.$toolbar,r=this.config,o=r.toolbarKeys,i=void 0===o?[]:o,a=r.insertKeys,s=void 0===a?{index:0,keys:[]}:a,u=r.excludeKeys,l=void 0===u?[]:u,c=Rp(i);s.keys.length>0&&("string"==typeof s.keys&&(s.keys=[s.keys]),s.keys.forEach(function(e,t){c.splice(s.index+t,0,e)}));var d=c.filter(function(e){var t="string"==typeof e?e:e.key;return!l.includes(t)}),f=d.length;d.forEach(function(r,o){if("|"===r){if(0===o)return;if(o+1===f)return;if("|"===t)return;var i=Ty();return n.append(i),void(t=r)}if("string"==typeof r)return e.registerSingleItem(r,e),void(t=r);e.registerGroup(r),t="group"})},e.prototype.registerGroup=function(e){var t=this,n=this.$toolbar,r=function(e){return new Hy(e)}(e),o=e.menuKeys,i=void 0===o?[]:o,a=this.config.excludeKeys,s=void 0===a?[]:a;i.forEach(function(e){s.includes(e)||t.registerSingleItem(e,r)}),n.append(r.$elem)},e.prototype.registerSingleItem=function(e,t){var n=this.getEditorInstance(),r=t instanceof Hy,o=this.menus,i=o[e];if(null==i){var a=Gp[e];if(null==a)throw new Error("Not found menu item factory by key '".concat(e,"'"));if("function"!=typeof a)throw new Error("Menu item factory (key='".concat(e,"') is not a function"));i=a(),o[e]=i}else console.warn("Duplicated toolbar menu key '".concat(e,"'\n重复注册了菜单栏 menu '").concat(e,"'"));var s=n.getMenuConfig(e);s&&void 0!==s.iconSvg&&(i.iconSvg=s.iconSvg);var u=Uy(e,i,r);(this.toolbarItems.push(u),eh.set(u,n),r)?t.appendBarItem(u):t.$toolbar.append(u.$elem)},e.prototype.getEditorInstance=function(){var e=Xp.get(this);if(null==e)throw new Error("Can not get editor instance");return e},e.prototype.destroy=function(){var e;this.$toolbar.remove(),null===(e=this.lngListen)||void 0===e||e.call(this),this.menus={},this.toolbarItems=[]},e}();function wE(e,t){if(null==e)throw new Error("Cannot create toolbar, because editor is null");var n=t.selector,r=t.config,o=void 0===r?{}:r;if(function(e,t){return $g(e,"data-w-e-toolbar",t)}(e,n))throw new Error("Repeated create toolbar by selector '".concat(n,"'"));var i=Dp({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},o||{}),a=new CE(n,i);return Xp.set(a,e),Zp.set(e,a),a}var DE,AE,SE,xE,TE,OE={exports:{}},NE={};function BE(){if(SE)return NE;SE=1,Object.defineProperty(NE,"__esModule",{value:!0}),NE.justErrorsLogger=NE.debugLogger=void 0;const e=function(){if(AE)return DE;function e(e){return e<10?`0${e}`:e.toString()}return AE=1,DE=function(){const t=new Date;return`${e(t.getHours())}:${e(t.getMinutes())}:${e(t.getSeconds())}`}}(),t={debug:()=>{},warn:()=>{},error:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return console.error(`[Uppy] [${e()}]`,...n)}};NE.justErrorsLogger=t;const n={debug:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return console.debug(`[Uppy] [${e()}]`,...n)},warn:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return console.warn(`[Uppy] [${e()}]`,...n)},error:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return console.error(`[Uppy] [${e()}]`,...n)}};return NE.debugLogger=n,NE}function kE(){if(TE)return xE;TE=1;return xE={nanoid:(e=21)=>{let t="",n=0|e;for(;n--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(n=t)=>{let r="",o=0|n;for(;o--;)r+=e[Math.random()*e.length|0];return r}},xE}var FE,PE,IE,_E,RE,LE,ME,jE,HE,zE,$E,UE,VE,WE,GE,qE,KE,YE,XE,ZE,JE,QE,eC,tC,nC,rC,oC,iC,aC,sC,uC,lC={};function cC(){return PE?FE:(PE=1,FE=function(e){if("number"!=typeof e||isNaN(e))throw new TypeError("Expected a number, got "+typeof e);var t=e<0,n=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";var r=Math.min(Math.floor(Math.log(e)/Math.log(1024)),n.length-1);e=Number(e/Math.pow(1024,r));var o=n[r];return e>=10||e%1==0?(t?"-":"")+e.toFixed(0)+" "+o:(t?"-":"")+e.toFixed(1)+" "+o})}function dC(){if(_E)return IE;function e(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}return _E=1,e.prototype.match=function(e){var t,n,r=!0,o=this.parts,i=o.length;if("string"==typeof e||e instanceof String)if(this.hasWild||this.text==e){for(n=(e||"").split(this.separator),t=0;r&&t<i;t++)"*"!==o[t]&&(r=t<n.length&&o[t]===n[t]);r=r&&n}else r=!1;else if("function"==typeof e.splice)for(r=[],t=e.length;t--;)this.match(e[t])&&(r[r.length]=e[t]);else if("object"==typeof e)for(var a in r={},e)this.match(a)&&(r[a]=e[a]);return r},IE=function(t,n,r){var o=new e(t,r||/[\/\.]/);return void 0!==n?o.match(n):o},IE}function fC(){if(ME)return lC;ME=1,Object.defineProperty(lC,"__esModule",{value:!0}),lC.defaultOptions=lC.RestrictionError=lC.Restricter=void 0;const e=cC(),t=function(){if(LE)return RE;LE=1;var e=dC(),t=/[\/\+\.]/;return RE=function(n,r){function o(r){var o=e(r,n,t);return o&&o.length>=2}return r?o(r.split(";")[0]):o}}();lC.defaultOptions={maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]};class n extends Error{constructor(){super(...arguments),this.isRestriction=!0}}lC.RestrictionError=n,"undefined"==typeof AggregateError&&(globalThis.AggregateError=class extends Error{constructor(e,t){super(t),this.errors=e}});return lC.Restricter=class{constructor(e,t){this.i18n=t,this.getOpts=()=>{const t=e();if(null!=t.restrictions.allowedFileTypes&&!Array.isArray(t.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");return t}}validate(r,o){const{maxFileSize:i,minFileSize:a,maxTotalFileSize:s,maxNumberOfFiles:u,allowedFileTypes:l}=this.getOpts().restrictions;if(u){const e=o.filter(e=>!e.isGhost);if(e.length+1>u)throw new n(`${this.i18n("youCanOnlyUploadX",{smart_count:u})}`)}if(l){if(!l.some(e=>e.includes("/")?!!r.type&&t(r.type.replace(/;.*?$/,""),e):!("."!==e[0]||!r.extension)&&r.extension.toLowerCase()===e.slice(1).toLowerCase())){const e=l.join(", ");throw new n(this.i18n("youCanOnlyUploadFileTypes",{types:e}))}}if(s&&null!=r.size){const t=o.reduce((e,t)=>e+t.size,r.size);if(t>s)throw new n(this.i18n("exceedsSize",{size:e(s),file:r.name}))}if(i&&null!=r.size&&r.size>i)throw new n(this.i18n("exceedsSize",{size:e(i),file:r.name}));if(a&&null!=r.size&&r.size<a)throw new n(this.i18n("inferiorSize",{size:e(a)}))}validateMinNumberOfFiles(e){const{minNumberOfFiles:t}=this.getOpts().restrictions;if(Object.keys(e).length<t)throw new n(this.i18n("youHaveToAtLeastSelectX",{smart_count:t}))}getMissingRequiredMetaFields(e){const t=new n(this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})),{requiredMetaFields:r}=this.getOpts().restrictions,o=Object.prototype.hasOwnProperty,i=[];for(const t of r)o.call(e.meta,t)&&""!==e.meta[t]||i.push(t);return{missingFields:i,error:t}}},lC}function pC(){if(HE)return jE;return HE=1,jE=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}function hC(){if($E)return zE;function e(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}$E=1;var t=0;function n(e){return"__private_"+t+++"_"+e}const r=pC();function o(e,t,n){const r=[];return e.forEach(e=>"string"!=typeof e?r.push(e):t[Symbol.split](e).forEach((e,t,o)=>{""!==e&&r.push(e),t<o.length-1&&r.push(n)})),r}
9
9
  /**
10
10
  * Takes a string with placeholder variables like `%{smart_count} file selected`
11
11
  * and replaces it with values from options `{smart_count: 5}`
@@ -16,13 +16,7 @@ function t(t){return"[object Object]"===Object.prototype.toString.call(t)}return
16
16
  * @param {string} phrase that needs interpolation, with placeholders
17
17
  * @param {object} options with values that will be used to replace placeholders
18
18
  * @returns {any[]} interpolated
19
- */function i(t,e){const n=/\$/g;let r=[t];if(null==e)return r;for(const t of Object.keys(e))if("_"!==t){let i=e[t];"string"==typeof i&&(i=n[Symbol.replace](i,"$$$$")),r=o(r,new RegExp(`%\\{${t}\\}`,"g"),i)}return r}var u=n("apply");function a(t){if(null==t||!t.strings)return;const e=this.locale;this.locale={...e,strings:{...e.strings,...t.strings}},this.locale.pluralize=t.pluralize||e.pluralize}return Rv=class{constructor(e){Object.defineProperty(this,u,{value:a}),this.locale={strings:{},pluralize:t=>1===t?0:1},Array.isArray(e)?e.forEach(t(this,u)[u],this):t(this,u)[u](e)}translate(t,e){return this.translateArray(t,e).join("")}translateArray(t,e){if(!r(this.locale.strings,t))throw new Error(`missing string: ${t}`);const n=this.locale.strings[t];if("object"==typeof n){if(e&&void 0!==e.smart_count){return i(n[this.locale.pluralize(e.smart_count)],e)}throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return i(n,e)}},Rv}function cg(){return Lv||(Lv=1,jv=function(){var t={},e=t._fns={};return t.emit=function(t,n,r,o,i,u,a){var s=function(t){var n=e[t]?e[t]:[],r=t.indexOf(":"),o=-1===r?[t]:[t.substring(0,r),t.substring(r+1)],i=Object.keys(e),u=0,a=i.length;for(;u<a;u++){var s=i[u];if("*"===s&&(n=n.concat(e[s])),2===o.length&&o[0]===s){n=n.concat(e[s]);break}}return n}(t);s.length&&function(t,e,n){var r=0,o=e.length;for(;r<o&&e[r];r++)e[r].event=t,e[r].apply(e[r],n)}(t,s,[n,r,o,i,u,a])},t.on=function(t,n){e[t]||(e[t]=[]),e[t].push(n)},t.once=function(e,n){this.on(e,function r(){n.apply(this,arguments),t.off(e,r)})},t.off=function(t,e){var n=[];if(t&&e)for(var r=this._fns[t],o=0,i=r?r.length:0;o<i;o++)r[o]!==e&&n.push(r[o]);n.length?this._fns[t]=n:delete this._fns[t]},t}),jv}function lg(){if(zv)return Mv;zv=1;var t=0;function e(e){return"__private_"+t+++"_"+e}var n=e("publish");class r{constructor(){Object.defineProperty(this,n,{value:o}),this.state={},this.callbacks=[]}getState(){return this.state}setState(t){const e={...this.state},r={...this.state,...t};this.state=r,function(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}(this,n)[n](e,r,t)}subscribe(t){return this.callbacks.push(t),()=>{this.callbacks.splice(this.callbacks.indexOf(t),1)}}}function o(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this.callbacks.forEach(t=>{t(...e)})}return r.VERSION="2.1.1",Mv=function(){return new r}}function fg(){if($v)return Hv;return $v=1,Hv=function(t){const e=t.lastIndexOf(".");return-1===e||e===t.length-1?{name:t,extension:void 0}:{name:t.slice(0,e),extension:t.slice(e+1)}}}function dg(){return Vv?Uv:(Vv=1,Uv={md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",gif:"image/gif",heic:"image/heic",heif:"image/heif",yaml:"text/yaml",yml:"text/yaml",csv:"text/csv",tsv:"text/tab-separated-values",tab:"text/tab-separated-values",avi:"video/x-msvideo",mks:"video/x-matroska",mkv:"video/x-matroska",mov:"video/quicktime",dicom:"application/dicom",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroenabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlc:"application/vnd.ms-excel",xlf:"application/x-xliff+xml",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroenabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",txt:"text/plain",text:"text/plain",conf:"text/plain",log:"text/plain",pdf:"application/pdf",zip:"application/zip","7z":"application/x-7z-compressed",rar:"application/x-rar-compressed",tar:"application/x-tar",gz:"application/gzip",dmg:"application/x-apple-diskimage"})}function pg(){if(ng)return eg;ng=1;var t=Ov(),e=Dv(),n=ug();let r,o;function i(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var u=0;function a(t){return"__private_"+u+++"_"+t}const s=sg(),c=cg(),l=Ah(),f=lg(),d=function(){if(Wv)return Gv;Wv=1;const t=fg(),e=dg();return Gv=function(n){var r;if(n.type)return n.type;const o=n.name?null==(r=t(n.name).extension)?void 0:r.toLowerCase():null;return o&&o in e?e[o]:"application/octet-stream"}}(),p=fg(),h=function(){if(Kv)return qv;function t(t){let e="";return t.replace(/[^A-Z0-9]/gi,t=>(e+=`-${function(t){return t.charCodeAt(0).toString(32)}(t)}`,"/"))+e}return Kv=1,qv=function(e){let n="uppy";return"string"==typeof e.name&&(n+=`-${t(e.name.toLowerCase())}`),void 0!==e.type&&(n+=`-${e.type}`),e.meta&&"string"==typeof e.meta.relativePath&&(n+=`-${t(e.meta.relativePath.toLowerCase())}`),void 0!==e.data.size&&(n+=`-${e.data.size}`),void 0!==e.data.lastModified&&(n+=`-${e.data.lastModified}`),n},qv}(),v=(Xv||(Xv=1,Yv=function(t){if(null==t&&"undefined"!=typeof navigator&&(t=navigator.userAgent),!t)return!0;const e=/Edge\/(\d+\.\d+)/.exec(t);if(!e)return!0;const n=e[1];let[r,o]=n.split(".");return r=parseInt(r,10),o=parseInt(o,10),r<15||15===r&&o<15063||r>18||18===r&&o>=18218}),Yv),g=Zv?Jv:(Zv=1,Jv=function(t,e){return e.name?e.name:"image"===t.split("/")[0]?`${t.split("/")[0]}.${t.split("/")[1]}`:"noname"}),y=tg?Qv:(tg=1,Qv={strings:{addBulkFilesFailed:{0:"Failed to add %{smart_count} file due to an internal error",1:"Failed to add %{smart_count} files due to internal errors"},youCanOnlyUploadX:{0:"You can only upload %{smart_count} file",1:"You can only upload %{smart_count} files"},youHaveToAtLeastSelectX:{0:"You have to select at least %{smart_count} file",1:"You have to select at least %{smart_count} files"},exceedsSize:"%{file} exceeds maximum allowed size of %{size}",missingRequiredMetaField:"Missing required meta fields",missingRequiredMetaFieldOnFile:"Missing required meta fields in %{fileName}",inferiorSize:"This file is smaller than the allowed size of %{size}",youCanOnlyUploadFileTypes:"You can only upload: %{types}",noMoreFilesAllowed:"Cannot add more files",noDuplicates:"Cannot add the duplicate file '%{fileName}', it already exists",companionError:"Connection with Companion failed",authAborted:"Authentication aborted",companionUnauthorizeHint:"To unauthorize to your %{provider} account, please go to %{url}",failedToUpload:"Failed to upload %{file}",noInternetConnection:"No Internet connection",connectedToInternet:"Connected to the Internet",noFilesFound:"You have no files or folders here",selectX:{0:"Select %{smart_count}",1:"Select %{smart_count}"},allFilesFromFolderNamed:"All files from folder %{name}",openFolderNamed:"Open folder %{name}",cancel:"Cancel",logOut:"Log out",filter:"Filter",resetFilter:"Reset filter",loading:"Loading...",authenticateWithTitle:"Please authenticate with %{pluginName} to select files",authenticateWith:"Connect to %{pluginName}",signInWithGoogle:"Sign in with Google",searchImages:"Search for images",enterTextToSearch:"Enter text to search for images",search:"Search",emptyFolderAdded:"No files were added from empty folder",folderAlreadyAdded:'The folder "%{folder}" was already added',folderAdded:{0:"Added %{smart_count} file from %{folder}",1:"Added %{smart_count} files from %{folder}"}}});var m=a("plugins"),b=a("restricter"),E=a("storeUnsubscribe"),w=a("emitter"),S=a("preProcessors"),C=a("uploaders"),D=a("postProcessors"),O=a("informAndEmit"),A=a("checkRequiredMetaFieldsOnFile"),x=a("checkRequiredMetaFields"),T=a("assertNewUploadAllowed"),N=a("checkAndCreateFileStateObject"),P=a("startIfAutoProceed"),k=a("addListeners"),I=a("updateOnlineStatus"),B=a("createUpload"),F=a("getUpload"),R=a("removeUpload"),_=a("runUpload");r=Symbol.for("uppy test: getPlugins"),o=Symbol.for("uppy test: createUpload");class j{constructor(t){Object.defineProperty(this,_,{value:K}),Object.defineProperty(this,R,{value:q}),Object.defineProperty(this,F,{value:W}),Object.defineProperty(this,B,{value:G}),Object.defineProperty(this,k,{value:V}),Object.defineProperty(this,P,{value:U}),Object.defineProperty(this,N,{value:$}),Object.defineProperty(this,T,{value:H}),Object.defineProperty(this,x,{value:z}),Object.defineProperty(this,A,{value:M}),Object.defineProperty(this,O,{value:L}),Object.defineProperty(this,m,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,b,{writable:!0,value:void 0}),Object.defineProperty(this,E,{writable:!0,value:void 0}),Object.defineProperty(this,w,{writable:!0,value:c()}),Object.defineProperty(this,S,{writable:!0,value:new Set}),Object.defineProperty(this,C,{writable:!0,value:new Set}),Object.defineProperty(this,D,{writable:!0,value:new Set}),Object.defineProperty(this,I,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=y;const r={id:"uppy",autoProceed:!1,allowMultipleUploads:!0,allowMultipleUploadBatches:!0,debug:!1,restrictions:n.defaultOptions,meta:{},onBeforeFileAdded:t=>t,onBeforeUpload:t=>t,store:f(),logger:e.justErrorsLogger,infoTimeout:5e3};this.opts={...r,...t,restrictions:{...r.restrictions,...t&&t.restrictions}},t&&t.logger&&t.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):t&&t.debug&&(this.opts.logger=e.debugLogger),this.log(`Using Core v${this.constructor.VERSION}`),this.i18nInit(),this.calculateProgress=l(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:v(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),i(this,b)[b]=new n.Restricter(()=>this.opts,this.i18n),i(this,E)[E]=this.store.subscribe((t,e,n)=>{this.emit("state-update",t,e,n),this.updateAll(e)}),this.opts.debug&&"undefined"!=typeof window&&(window[this.opts.id]=this),i(this,k)[k]()}emit(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];i(this,w)[w].emit(t,...n)}on(t,e){return i(this,w)[w].on(t,e),this}once(t,e){return i(this,w)[w].once(t,e),this}off(t,e){return i(this,w)[w].off(t,e),this}updateAll(t){this.iteratePlugins(e=>{e.update(t)})}setState(t){this.store.setState(t)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(t,e){if(!this.getState().files[t])throw new Error(`Can’t set state for ${t} (the file could have been removed)`);this.setState({files:{...this.getState().files,[t]:{...this.getState().files[t],...e}}})}i18nInit(){const t=new s([this.defaultLocale,this.opts.locale]);this.i18n=t.translate.bind(t),this.i18nArray=t.translateArray.bind(t),this.locale=t.locale}setOptions(t){this.opts={...this.opts,...t,restrictions:{...this.opts.restrictions,...t&&t.restrictions}},t.meta&&this.setMeta(t.meta),this.i18nInit(),t.locale&&this.iteratePlugins(t=>{t.setOptions()}),this.setState()}resetProgress(){const t={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},e={...this.getState().files},n={};Object.keys(e).forEach(r=>{const o={...e[r]};o.progress={...o.progress,...t},n[r]=o}),this.setState({files:n,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(t){i(this,S)[S].add(t)}removePreProcessor(t){return i(this,S)[S].delete(t)}addPostProcessor(t){i(this,D)[D].add(t)}removePostProcessor(t){return i(this,D)[D].delete(t)}addUploader(t){i(this,C)[C].add(t)}removeUploader(t){return i(this,C)[C].delete(t)}setMeta(t){const e={...this.getState().meta,...t},n={...this.getState().files};Object.keys(n).forEach(e=>{n[e]={...n[e],meta:{...n[e].meta,...t}}}),this.log("Adding metadata:"),this.log(t),this.setState({meta:e,files:n})}setFileMeta(t,e){const n={...this.getState().files};if(!n[t])return void this.log("Was trying to set metadata for a file that has been removed: ",t);const r={...n[t].meta,...e};n[t]={...n[t],meta:r},this.setState({files:n})}getFile(t){return this.getState().files[t]}getFiles(){const{files:t}=this.getState();return Object.values(t)}getObjectOfFilesPerState(){const{files:t,totalProgress:e,error:n}=this.getState(),r=Object.values(t),o=r.filter(t=>{let{progress:e}=t;return!e.uploadComplete&&e.uploadStarted}),i=r.filter(t=>!t.progress.uploadStarted),u=r.filter(t=>t.progress.uploadStarted||t.progress.preprocess||t.progress.postprocess),a=r.filter(t=>t.progress.uploadStarted),s=r.filter(t=>t.isPaused),c=r.filter(t=>t.progress.uploadComplete),l=r.filter(t=>t.error),f=o.filter(t=>!t.isPaused),d=r.filter(t=>t.progress.preprocess||t.progress.postprocess);return{newFiles:i,startedFiles:u,uploadStartedFiles:a,pausedFiles:s,completeFiles:c,erroredFiles:l,inProgressFiles:o,inProgressNotPausedFiles:f,processingFiles:d,isUploadStarted:a.length>0,isAllComplete:100===e&&c.length===r.length&&0===d.length,isAllErrored:!!n&&l.length===r.length,isAllPaused:0!==o.length&&s.length===o.length,isUploadInProgress:o.length>0,isSomeGhost:r.some(t=>t.isGhost)}}validateRestrictions(t,e){void 0===e&&(e=this.getFiles());try{return i(this,b)[b].validate(t,e),{result:!0}}catch(t){return{result:!1,reason:t.message}}}checkIfFileAlreadyExists(t){const{files:e}=this.getState();return!(!e[t]||e[t].isGhost)}addFile(t){i(this,T)[T](t);const{files:e}=this.getState();let n=i(this,N)[N](e,t);return e[n.id]&&e[n.id].isGhost&&(n={...e[n.id],data:t.data,isGhost:!1},this.log(`Replaced the blob in the restored ghost file: ${n.name}, ${n.id}`)),this.setState({files:{...e,[n.id]:n}}),this.emit("file-added",n),this.emit("files-added",[n]),this.log(`Added file: ${n.name}, ${n.id}, mime type: ${n.type}`),i(this,P)[P](),n.id}addFiles(t){i(this,T)[T]();const e={...this.getState().files},n=[],r=[];for(let o=0;o<t.length;o++)try{let r=i(this,N)[N](e,t[o]);e[r.id]&&e[r.id].isGhost&&(r={...e[r.id],data:t[o].data,isGhost:!1},this.log(`Replaced blob in a ghost file: ${r.name}, ${r.id}`)),e[r.id]=r,n.push(r)}catch(t){t.isRestriction||r.push(t)}if(this.setState({files:e}),n.forEach(t=>{this.emit("file-added",t)}),this.emit("files-added",n),n.length>5?this.log(`Added batch of ${n.length} files`):Object.keys(n).forEach(t=>{this.log(`Added file: ${n[t].name}\n id: ${n[t].id}\n type: ${n[t].type}`)}),n.length>0&&i(this,P)[P](),r.length>0){let t="Multiple errors occurred while adding files:\n";if(r.forEach(e=>{t+=`\n * ${e.message}`}),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:r.length}),details:t},"error",this.opts.infoTimeout),"function"==typeof AggregateError)throw new AggregateError(r,t);{const e=new Error(t);throw e.errors=r,e}}}removeFiles(t,e){const{files:n,currentUploads:r}=this.getState(),o={...n},i={...r},u=Object.create(null);function a(t){return void 0===u[t]}t.forEach(t=>{n[t]&&(u[t]=n[t],delete o[t])}),Object.keys(i).forEach(t=>{const e=r[t].fileIDs.filter(a);if(0===e.length)return void delete i[t];const{capabilities:n}=this.getState();if(e.length!==r[t].fileIDs.length&&!n.individualCancellation)throw new Error("individualCancellation is disabled");i[t]={...r[t],fileIDs:e}});const s={currentUploads:i,files:o};0===Object.keys(o).length&&(s.allowNewUpload=!0,s.error=null,s.recoveredState=null),this.setState(s),this.calculateTotalProgress();const c=Object.keys(u);c.forEach(t=>{this.emit("file-removed",u[t],e)}),c.length>5?this.log(`Removed ${c.length} files`):this.log(`Removed files: ${c.join(", ")}`)}removeFile(t,e){void 0===e&&(e=null),this.removeFiles([t],e)}pauseResume(t){if(!this.getState().capabilities.resumableUploads||this.getFile(t).uploadComplete)return;const e=!(this.getFile(t).isPaused||!1);return this.setFileState(t,{isPaused:e}),this.emit("upload-pause",t,e),e}pauseAll(){const t={...this.getState().files};Object.keys(t).filter(e=>!t[e].progress.uploadComplete&&t[e].progress.uploadStarted).forEach(e=>{const n={...t[e],isPaused:!0};t[e]=n}),this.setState({files:t}),this.emit("pause-all")}resumeAll(){const t={...this.getState().files};Object.keys(t).filter(e=>!t[e].progress.uploadComplete&&t[e].progress.uploadStarted).forEach(e=>{const n={...t[e],isPaused:!1,error:null};t[e]=n}),this.setState({files:t}),this.emit("resume-all")}retryAll(){const t={...this.getState().files},e=Object.keys(t).filter(e=>t[e].error);if(e.forEach(e=>{const n={...t[e],isPaused:!1,error:null};t[e]=n}),this.setState({files:t,error:null}),this.emit("retry-all",e),0===e.length)return Promise.resolve({successful:[],failed:[]});const n=i(this,B)[B](e,{forceAllowNewUpload:!0});return i(this,_)[_](n)}cancelAll(t){let{reason:e="user"}=void 0===t?{}:t;if(this.emit("cancel-all",{reason:e}),"user"===e){const{files:t}=this.getState(),e=Object.keys(t);e.length&&this.removeFiles(e,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}}retryUpload(t){this.setFileState(t,{error:null,isPaused:!1}),this.emit("upload-retry",t);const e=i(this,B)[B]([t],{forceAllowNewUpload:!0});return i(this,_)[_](e)}reset(){this.cancelAll(...arguments)}logout(){this.iteratePlugins(t=>{t.provider&&t.provider.logout&&t.provider.logout()})}calculateProgress(t,e){if(null==t||!this.getFile(t.id))return void this.log(`Not setting progress for a file that has been removed: ${null==t?void 0:t.id}`);const n=Number.isFinite(e.bytesTotal)&&e.bytesTotal>0;this.setFileState(t.id,{progress:{...this.getFile(t.id).progress,bytesUploaded:e.bytesUploaded,bytesTotal:e.bytesTotal,percentage:n?Math.round(e.bytesUploaded/e.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){const t=this.getFiles().filter(t=>t.progress.uploadStarted||t.progress.preprocess||t.progress.postprocess);if(0===t.length)return this.emit("progress",0),void this.setState({totalProgress:0});const e=t.filter(t=>null!=t.progress.bytesTotal),n=t.filter(t=>null==t.progress.bytesTotal);if(0===e.length){const e=100*t.length,r=n.reduce((t,e)=>t+e.progress.percentage,0),o=Math.round(r/e*100);return void this.setState({totalProgress:o})}let r=e.reduce((t,e)=>t+e.progress.bytesTotal,0);const o=r/e.length;r+=o*n.length;let i=0;e.forEach(t=>{i+=t.progress.bytesUploaded}),n.forEach(t=>{i+=o*(t.progress.percentage||0)/100});let u=0===r?0:Math.round(i/r*100);u>100&&(u=100),this.setState({totalProgress:u}),this.emit("progress",u)}updateOnlineStatus(){void 0===window.navigator.onLine||window.navigator.onLine?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(t,e){if("function"!=typeof t){throw new TypeError(`Expected a plugin class, but got ${null===t?"null":typeof t}. Please verify that the plugin was imported and spelled correctly.`)}const n=new t(this,e),r=n.id;if(!r)throw new Error("Your plugin must have an id");if(!n.type)throw new Error("Your plugin must have a type");const o=this.getPlugin(r);if(o){const t=`Already found a plugin named '${o.id}'. Tried to use: '${r}'.\nUppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(t)}return t.VERSION&&this.log(`Using ${r} v${t.VERSION}`),n.type in i(this,m)[m]?i(this,m)[m][n.type].push(n):i(this,m)[m][n.type]=[n],n.install(),this}getPlugin(t){for(const e of Object.values(i(this,m)[m])){const n=e.find(e=>e.id===t);if(null!=n)return n}}[r](t){return i(this,m)[m][t]}iteratePlugins(t){Object.values(i(this,m)[m]).flat(1).forEach(t)}removePlugin(t){this.log(`Removing plugin ${t.id}`),this.emit("plugin-remove",t),t.uninstall&&t.uninstall();const e=i(this,m)[m][t.type],n=e.findIndex(e=>e.id===t.id);-1!==n&&e.splice(n,1);const r={plugins:{...this.getState().plugins,[t.id]:void 0}};this.setState(r)}close(t){let{reason:e}=void 0===t?{}:t;this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.cancelAll({reason:e}),i(this,E)[E](),this.iteratePlugins(t=>{this.removePlugin(t)}),"undefined"!=typeof window&&window.removeEventListener&&(window.removeEventListener("online",i(this,I)[I]),window.removeEventListener("offline",i(this,I)[I]))}hideInfo(){const{info:t}=this.getState();this.setState({info:t.slice(1)}),this.emit("info-hidden")}info(t,e,n){void 0===e&&(e="info"),void 0===n&&(n=3e3);const r="object"==typeof t;this.setState({info:[...this.getState().info,{type:e,message:r?t.message:t,details:r?t.details:null}]}),setTimeout(()=>this.hideInfo(),n),this.emit("info-visible")}log(t,e){const{logger:n}=this.opts;switch(e){case"error":n.error(t);break;case"warning":n.warn(t);break;default:n.debug(t)}}restore(t){return this.log(`Core: attempting to restore upload "${t}"`),this.getState().currentUploads[t]?i(this,_)[_](t):(i(this,R)[R](t),Promise.reject(new Error("Nonexistent upload")))}[o](){return i(this,B)[B](...arguments)}addResultData(t,e){if(!i(this,F)[F](t))return void this.log(`Not setting result for an upload that has been removed: ${t}`);const{currentUploads:n}=this.getState(),r={...n[t],result:{...n[t].result,...e}};this.setState({currentUploads:{...n,[t]:r}})}upload(){var t;null!=(t=i(this,m)[m].uploader)&&t.length||this.log("No uploader type plugins are used","warning");let{files:e}=this.getState();const r=this.opts.onBeforeUpload(e);return!1===r?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(r&&"object"==typeof r&&(e=r,this.setState({files:e})),Promise.resolve().then(()=>i(this,b)[b].validateMinNumberOfFiles(e)).catch(t=>{throw i(this,O)[O](t),t}).then(()=>{if(!i(this,x)[x](e))throw new n.RestrictionError(this.i18n("missingRequiredMetaField"))}).catch(t=>{throw t}).then(()=>{const{currentUploads:t}=this.getState(),n=Object.values(t).flatMap(t=>t.fileIDs),r=[];Object.keys(e).forEach(t=>{const e=this.getFile(t);e.progress.uploadStarted||-1!==n.indexOf(t)||r.push(e.id)});const o=i(this,B)[B](r);return i(this,_)[_](o)}).catch(t=>{throw this.emit("error",t),this.log(t,"error"),t}))}}function L(t,e){const{message:n,details:r=""}=t;t.isRestriction?this.emit("restriction-failed",e,t):this.emit("error",t),this.info({message:n,details:r},"error",this.opts.infoTimeout),this.log(`${n} ${r}`.trim(),"error")}function M(t){const{missingFields:e,error:n}=i(this,b)[b].getMissingRequiredMetaFields(t);return!(e.length>0)||(this.setFileState(t.id,{missingRequiredMetaFields:e}),this.log(n.message),this.emit("restriction-failed",t,n),!1)}function z(t){let e=!0;for(const n of Object.values(t))i(this,A)[A](n)||(e=!1);return e}function H(t){const{allowNewUpload:e}=this.getState();if(!1===e){const e=new n.RestrictionError(this.i18n("noMoreFilesAllowed"));throw i(this,O)[O](e,t),e}}function $(t,e){const r=d(e),o=g(r,e),u=p(o).extension,a=Boolean(e.isRemote),s=h({...e,type:r});if(this.checkIfFileAlreadyExists(s)){const t=new n.RestrictionError(this.i18n("noDuplicates",{fileName:o}));throw i(this,O)[O](t,e),t}const c=e.meta||{};c.name=o,c.type=r;const l=Number.isFinite(e.data.size)?e.data.size:null;let f={source:e.source||"",id:s,name:o,extension:u||"",meta:{...this.getState().meta,...c},type:r,data:e.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:l,uploadComplete:!1,uploadStarted:null},size:l,isRemote:a,remote:e.remote||"",preview:e.preview};const v=this.opts.onBeforeFileAdded(f,t);if(!1===v){const t=new n.RestrictionError("Cannot add the file because onBeforeFileAdded returned false.");throw this.emit("restriction-failed",e,t),t}"object"==typeof v&&null!==v&&(f=v);try{const e=Object.keys(t).map(e=>t[e]);i(this,b)[b].validate(f,e)}catch(t){throw i(this,O)[O](t,f),t}return f}function U(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout(()=>{this.scheduledAutoProceed=null,this.upload().catch(t=>{t.isRestriction||this.log(t.stack||t.message||t)})},4))}function V(){const t=(t,e,n)=>{let r=t.message||"Unknown error";t.details&&(r+=` ${t.details}`),this.setState({error:r}),null!=e&&e.id in this.getState().files&&this.setFileState(e.id,{error:r,response:n})};this.on("error",t),this.on("upload-error",(e,n,r)=>{if(t(n,e,r),"object"==typeof n&&n.message){const t=new Error(n.message);t.details=n.message,n.details&&(t.details+=` ${n.details}`),t.message=this.i18n("failedToUpload",{file:null==e?void 0:e.name}),i(this,O)[O](t)}else i(this,O)[O](n)}),this.on("upload",()=>{this.setState({error:null})}),this.on("upload-started",t=>{null!=t&&this.getFile(t.id)?this.setFileState(t.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:t.size}}):this.log(`Not setting progress for a file that has been removed: ${null==t?void 0:t.id}`)}),this.on("upload-progress",this.calculateProgress),this.on("upload-success",(t,e)=>{if(null==t||!this.getFile(t.id))return void this.log(`Not setting progress for a file that has been removed: ${null==t?void 0:t.id}`);const n=this.getFile(t.id).progress;this.setFileState(t.id,{progress:{...n,postprocess:i(this,D)[D].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:n.bytesTotal},response:e,uploadURL:e.uploadURL,isPaused:!1}),null==t.size&&this.setFileState(t.id,{size:e.bytesUploaded||n.bytesTotal}),this.calculateTotalProgress()}),this.on("preprocess-progress",(t,e)=>{null!=t&&this.getFile(t.id)?this.setFileState(t.id,{progress:{...this.getFile(t.id).progress,preprocess:e}}):this.log(`Not setting progress for a file that has been removed: ${null==t?void 0:t.id}`)}),this.on("preprocess-complete",t=>{if(null==t||!this.getFile(t.id))return void this.log(`Not setting progress for a file that has been removed: ${null==t?void 0:t.id}`);const e={...this.getState().files};e[t.id]={...e[t.id],progress:{...e[t.id].progress}},delete e[t.id].progress.preprocess,this.setState({files:e})}),this.on("postprocess-progress",(t,e)=>{null!=t&&this.getFile(t.id)?this.setFileState(t.id,{progress:{...this.getState().files[t.id].progress,postprocess:e}}):this.log(`Not setting progress for a file that has been removed: ${null==t?void 0:t.id}`)}),this.on("postprocess-complete",t=>{if(null==t||!this.getFile(t.id))return void this.log(`Not setting progress for a file that has been removed: ${null==t?void 0:t.id}`);const e={...this.getState().files};e[t.id]={...e[t.id],progress:{...e[t.id].progress}},delete e[t.id].progress.postprocess,this.setState({files:e})}),this.on("restored",()=>{this.calculateTotalProgress()}),this.on("dashboard:file-edit-complete",t=>{t&&i(this,A)[A](t)}),"undefined"!=typeof window&&window.addEventListener&&(window.addEventListener("online",i(this,I)[I]),window.addEventListener("offline",i(this,I)[I]),setTimeout(i(this,I)[I],3e3))}function G(e,n){void 0===n&&(n={});const{forceAllowNewUpload:r=!1}=n,{allowNewUpload:o,currentUploads:i}=this.getState();if(!o&&!r)throw new Error("Cannot create a new upload: already uploading.");const u=(0,t.nanoid)();return this.emit("upload",{id:u,fileIDs:e}),this.setState({allowNewUpload:!1!==this.opts.allowMultipleUploadBatches&&!1!==this.opts.allowMultipleUploads,currentUploads:{...i,[u]:{fileIDs:e,step:0,result:{}}}}),u}function W(t){const{currentUploads:e}=this.getState();return e[t]}function q(t){const e={...this.getState().currentUploads};delete e[t],this.setState({currentUploads:e})}async function K(t){let{currentUploads:e}=this.getState(),n=e[t];const r=n.step||0,o=[...i(this,S)[S],...i(this,C)[C],...i(this,D)[D]];try{for(let i=r;i<o.length&&n;i++){const r=o[i],u={...n,step:i};this.setState({currentUploads:{...e,[t]:u}}),await r(u.fileIDs,t),e=this.getState().currentUploads,n=e[t]}}catch(e){throw i(this,R)[R](t),e}if(n){n.fileIDs.forEach(t=>{const e=this.getFile(t);e&&e.progress.postprocess&&this.emit("postprocess-complete",e)});const r=n.fileIDs.map(t=>this.getFile(t)),o=r.filter(t=>!t.error),i=r.filter(t=>t.error);await this.addResultData(t,{successful:o,failed:i,uploadID:t}),e=this.getState().currentUploads,n=e[t]}let u;return n&&(u=n.result,this.emit("complete",u),i(this,R)[R](t)),null==u&&this.log(`Not setting result for an upload that has been removed: ${t}`),u}return j.VERSION="2.3.4",eg=j}var hg,vg,gg,yg,mg,bg,Eg,wg,Sg,Cg,Dg,Og,Ag,xg={},Tg=[],Ng=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Pg=Array.isArray;function kg(t,e){for(var n in e)t[n]=e[n];return t}function Ig(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function Bg(t,e,n){var r,o,i,u={};for(i in e)"key"==i?r=e[i]:"ref"==i?o=e[i]:u[i]=e[i];if(arguments.length>2&&(u.children=arguments.length>3?hg.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(i in t.defaultProps)void 0===u[i]&&(u[i]=t.defaultProps[i]);return Fg(t,u,r,o,null)}function Fg(t,e,n,r,o){var i={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==o?++gg:o,__i:-1,__u:0};return null==o&&null!=vg.vnode&&vg.vnode(i),i}function Rg(t){return t.children}function _g(t,e){this.props=t,this.context=e}function jg(t,e){if(null==e)return t.__?jg(t.__,t.__i+1):null;for(var n;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof t.type?jg(t):null}function Lg(t){var e,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return Lg(t)}}function Mg(t){(!t.__d&&(t.__d=!0)&&mg.push(t)&&!zg.__r++||bg!=vg.debounceRendering)&&((bg=vg.debounceRendering)||Eg)(zg)}function zg(){for(var t,e,n,r,o,i,u,a=1;mg.length;)mg.length>a&&mg.sort(wg),t=mg.shift(),a=mg.length,t.__d&&(n=void 0,o=(r=(e=t).__v).__e,i=[],u=[],e.__P&&((n=kg({},r)).__v=r.__v+1,vg.vnode&&vg.vnode(n),qg(e.__P,n,r,e.__n,e.__P.namespaceURI,32&r.__u?[o]:null,i,null==o?jg(r):o,!!(32&r.__u),u),n.__v=r.__v,n.__.__k[n.__i]=n,Kg(i,n,u),n.__e!=o&&Lg(n)));zg.__r=0}function Hg(t,e,n,r,o,i,u,a,s,c,l){var f,d,p,h,v,g,y=r&&r.__k||Tg,m=e.length;for(s=function(t,e,n,r,o){var i,u,a,s,c,l=n.length,f=l,d=0;for(t.__k=new Array(o),i=0;i<o;i++)null!=(u=e[i])&&"boolean"!=typeof u&&"function"!=typeof u?(s=i+d,(u=t.__k[i]="string"==typeof u||"number"==typeof u||"bigint"==typeof u||u.constructor==String?Fg(null,u,null,null,null):Pg(u)?Fg(Rg,{children:u},null,null,null):null==u.constructor&&u.__b>0?Fg(u.type,u.props,u.key,u.ref?u.ref:null,u.__v):u).__=t,u.__b=t.__b+1,a=null,-1!=(c=u.__i=Ug(u,n,s,f))&&(f--,(a=n[c])&&(a.__u|=2)),null==a||null==a.__v?(-1==c&&(o>l?d--:o<l&&d++),"function"!=typeof u.type&&(u.__u|=4)):c!=s&&(c==s-1?d--:c==s+1?d++:(c>s?d--:d++,u.__u|=4))):t.__k[i]=null;if(f)for(i=0;i<l;i++)null!=(a=n[i])&&!(2&a.__u)&&(a.__e==r&&(r=jg(a)),Zg(a,a));return r}(n,e,y,s,m),f=0;f<m;f++)null!=(p=n.__k[f])&&(d=-1==p.__i?xg:y[p.__i]||xg,p.__i=f,g=qg(t,p,d,o,i,u,a,s,c,l),h=p.__e,p.ref&&d.ref!=p.ref&&(d.ref&&Jg(d.ref,null,p),l.push(p.ref,p.__c||h,p)),null==v&&null!=h&&(v=h),4&p.__u||d.__k===p.__k?s=$g(p,s,t):"function"==typeof p.type&&void 0!==g?s=g:h&&(s=h.nextSibling),p.__u&=-7);return n.__e=v,s}function $g(t,e,n){var r,o;if("function"==typeof t.type){for(r=t.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=t,e=$g(r[o],e,n));return e}t.__e!=e&&(e&&t.type&&!n.contains(e)&&(e=jg(t)),n.insertBefore(t.__e,e||null),e=t.__e);do{e=e&&e.nextSibling}while(null!=e&&8==e.nodeType);return e}function Ug(t,e,n,r){var o,i,u=t.key,a=t.type,s=e[n];if(null===s&&null==t.key||s&&u==s.key&&a==s.type&&!(2&s.__u))return n;if(r>(null==s||2&s.__u?0:1))for(o=n-1,i=n+1;o>=0||i<e.length;){if(o>=0){if((s=e[o])&&!(2&s.__u)&&u==s.key&&a==s.type)return o;o--}if(i<e.length){if((s=e[i])&&!(2&s.__u)&&u==s.key&&a==s.type)return i;i++}}return-1}function Vg(t,e,n){"-"==e[0]?t.setProperty(e,null==n?"":n):t[e]=null==n?"":"number"!=typeof n||Ng.test(e)?n:n+"px"}function Gg(t,e,n,r,o){var i,u;t:if("style"==e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof r&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||Vg(t.style,e,"");if(n)for(e in n)r&&n[e]==r[e]||Vg(t.style,e,n[e])}else if("o"==e[0]&&"n"==e[1])i=e!=(e=e.replace(Sg,"$1")),u=e.toLowerCase(),e=u in t||"onFocusOut"==e||"onFocusIn"==e?u.slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=n,n?r?n.u=r.u:(n.u=Cg,t.addEventListener(e,i?Og:Dg,i)):t.removeEventListener(e,i?Og:Dg,i);else{if("http://www.w3.org/2000/svg"==o)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=e&&"height"!=e&&"href"!=e&&"list"!=e&&"form"!=e&&"tabIndex"!=e&&"download"!=e&&"rowSpan"!=e&&"colSpan"!=e&&"role"!=e&&"popover"!=e&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null==n||!1===n&&"-"!=e[4]?t.removeAttribute(e):t.setAttribute(e,"popover"==e&&1==n?"":n))}}function Wg(t){return function(e){if(this.l){var n=this.l[e.type+t];if(null==e.t)e.t=Cg++;else if(e.t<n.u)return;return n(vg.event?vg.event(e):e)}}}function qg(t,e,n,r,o,i,u,a,s,c){var l,f,d,p,h,v,g,y,m,b,E,w,S,C,D,O,A,x=e.type;if(null!=e.constructor)return null;128&n.__u&&(s=!!(32&n.__u),i=[a=e.__e=n.__e]),(l=vg.__b)&&l(e);t:if("function"==typeof x)try{if(y=e.props,m="prototype"in x&&x.prototype.render,b=(l=x.contextType)&&r[l.__c],E=l?b?b.props.value:l.__:r,n.__c?g=(f=e.__c=n.__c).__=f.__E:(m?e.__c=f=new x(y,E):(e.__c=f=new _g(y,E),f.constructor=x,f.render=Qg),b&&b.sub(f),f.props=y,f.state||(f.state={}),f.context=E,f.__n=r,d=f.__d=!0,f.__h=[],f._sb=[]),m&&null==f.__s&&(f.__s=f.state),m&&null!=x.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=kg({},f.__s)),kg(f.__s,x.getDerivedStateFromProps(y,f.__s))),p=f.props,h=f.state,f.__v=e,d)m&&null==x.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),m&&null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(m&&null==x.getDerivedStateFromProps&&y!==p&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(y,E),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(y,f.__s,E)||e.__v==n.__v){for(e.__v!=n.__v&&(f.props=y,f.state=f.__s,f.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.some(function(t){t&&(t.__=e)}),w=0;w<f._sb.length;w++)f.__h.push(f._sb[w]);f._sb=[],f.__h.length&&u.push(f);break t}null!=f.componentWillUpdate&&f.componentWillUpdate(y,f.__s,E),m&&null!=f.componentDidUpdate&&f.__h.push(function(){f.componentDidUpdate(p,h,v)})}if(f.context=E,f.props=y,f.__P=t,f.__e=!1,S=vg.__r,C=0,m){for(f.state=f.__s,f.__d=!1,S&&S(e),l=f.render(f.props,f.state,f.context),D=0;D<f._sb.length;D++)f.__h.push(f._sb[D]);f._sb=[]}else do{f.__d=!1,S&&S(e),l=f.render(f.props,f.state,f.context),f.state=f.__s}while(f.__d&&++C<25);f.state=f.__s,null!=f.getChildContext&&(r=kg(kg({},r),f.getChildContext())),m&&!d&&null!=f.getSnapshotBeforeUpdate&&(v=f.getSnapshotBeforeUpdate(p,h)),O=l,null!=l&&l.type===Rg&&null==l.key&&(O=Yg(l.props.children)),a=Hg(t,Pg(O)?O:[O],e,n,r,o,i,u,a,s,c),f.base=e.__e,e.__u&=-161,f.__h.length&&u.push(f),g&&(f.__E=f.__=null)}catch(t){if(e.__v=null,s||null!=i)if(t.then){for(e.__u|=s?160:128;a&&8==a.nodeType&&a.nextSibling;)a=a.nextSibling;i[i.indexOf(a)]=null,e.__e=a}else for(A=i.length;A--;)Ig(i[A]);else e.__e=n.__e,e.__k=n.__k;vg.__e(t,e,n)}else null==i&&e.__v==n.__v?(e.__k=n.__k,e.__e=n.__e):a=e.__e=Xg(n.__e,e,n,r,o,i,u,s,c);return(l=vg.diffed)&&l(e),128&e.__u?void 0:a}function Kg(t,e,n){for(var r=0;r<n.length;r++)Jg(n[r],n[++r],n[++r]);vg.__c&&vg.__c(e,t),t.some(function(e){try{t=e.__h,e.__h=[],t.some(function(t){t.call(e)})}catch(t){vg.__e(t,e.__v)}})}function Yg(t){return"object"!=typeof t||null==t||t.__b&&t.__b>0?t:Pg(t)?t.map(Yg):kg({},t)}function Xg(t,e,n,r,o,i,u,a,s){var c,l,f,d,p,h,v,g=n.props,y=e.props,m=e.type;if("svg"==m?o="http://www.w3.org/2000/svg":"math"==m?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),null!=i)for(c=0;c<i.length;c++)if((p=i[c])&&"setAttribute"in p==!!m&&(m?p.localName==m:3==p.nodeType)){t=p,i[c]=null;break}if(null==t){if(null==m)return document.createTextNode(y);t=document.createElementNS(o,m,y.is&&y),a&&(vg.__m&&vg.__m(e,i),a=!1),i=null}if(null==m)g===y||a&&t.data==y||(t.data=y);else{if(i=i&&hg.call(t.childNodes),g=n.props||xg,!a&&null!=i)for(g={},c=0;c<t.attributes.length;c++)g[(p=t.attributes[c]).name]=p.value;for(c in g)if(p=g[c],"children"==c);else if("dangerouslySetInnerHTML"==c)f=p;else if(!(c in y)){if("value"==c&&"defaultValue"in y||"checked"==c&&"defaultChecked"in y)continue;Gg(t,c,null,p,o)}for(c in y)p=y[c],"children"==c?d=p:"dangerouslySetInnerHTML"==c?l=p:"value"==c?h=p:"checked"==c?v=p:a&&"function"!=typeof p||g[c]===p||Gg(t,c,p,g[c],o);if(l)a||f&&(l.__html==f.__html||l.__html==t.innerHTML)||(t.innerHTML=l.__html),e.__k=[];else if(f&&(t.innerHTML=""),Hg("template"==e.type?t.content:t,Pg(d)?d:[d],e,n,r,"foreignObject"==m?"http://www.w3.org/1999/xhtml":o,i,u,i?i[0]:n.__k&&jg(n,0),a,s),null!=i)for(c=i.length;c--;)Ig(i[c]);a||(c="value","progress"==m&&null==h?t.removeAttribute("value"):null!=h&&(h!==t[c]||"progress"==m&&!h||"option"==m&&h!=g[c])&&Gg(t,c,h,g[c],o),c="checked",null!=v&&v!=t[c]&&Gg(t,c,v,g[c],o))}return t}function Jg(t,e,n){try{if("function"==typeof t){var r="function"==typeof t.__u;r&&t.__u(),r&&null==e||(t.__u=t(e))}else t.current=e}catch(t){vg.__e(t,n)}}function Zg(t,e,n){var r,o;if(vg.unmount&&vg.unmount(t),(r=t.ref)&&(r.current&&r.current!=t.__e||Jg(r,null,e)),null!=(r=t.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(t){vg.__e(t,e)}r.base=r.__P=null}if(r=t.__k)for(o=0;o<r.length;o++)r[o]&&Zg(r[o],e,n||"function"!=typeof t.type);n||Ig(t.__e),t.__c=t.__=t.__e=void 0}function Qg(t,e,n){return this.constructor(t,n)}function ty(t,e,n){var r,o,i,u;e==document&&(e=document.documentElement),vg.__&&vg.__(t,e),o=(r="function"==typeof n)?null:n&&n.__k||e.__k,i=[],u=[],qg(e,t=(!r&&n||e).__k=Bg(Rg,null,[t]),o||xg,xg,e.namespaceURI,!r&&n?[n]:o?null:e.firstChild?hg.call(e.childNodes):null,i,!r&&n?n:o?o.__e:e.firstChild,r,u),Kg(i,t,u)}hg=Tg.slice,vg={__e:function(t,e,n,r){for(var o,i,u;e=e.__;)if((o=e.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(t)),u=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(t,r||{}),u=o.__d),u)return o.__E=o}catch(e){t=e}throw t}},gg=0,yg=function(t){return null!=t&&null==t.constructor},_g.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=kg({},this.state),"function"==typeof t&&(t=t(kg({},n),this.props)),t&&kg(n,t),null!=t&&this.__v&&(e&&this._sb.push(e),Mg(this))},_g.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),Mg(this))},_g.prototype.render=Rg,mg=[],Eg="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,wg=function(t,e){return t.__v.__b-e.__v.__b},zg.__r=0,Sg=/(PointerCapture)$|Capture$/i,Cg=0,Dg=Wg(!1),Og=Wg(!0),Ag=0;var ey,ny,ry,oy,iy,uy,ay,sy,cy,ly,fy,dy=Object.freeze({__proto__:null,Component:_g,Fragment:Rg,cloneElement:function(t,e,n){var r,o,i,u,a=kg({},t.props);for(i in t.type&&t.type.defaultProps&&(u=t.type.defaultProps),e)"key"==i?r=e[i]:"ref"==i?o=e[i]:a[i]=void 0===e[i]&&null!=u?u[i]:e[i];return arguments.length>2&&(a.children=arguments.length>3?hg.call(arguments,2):n),Fg(t.type,a,r||t.key,o||t.ref,null)},createContext:function(t){function e(t){var n,r;return this.getChildContext||(n=new Set,(r={})[e.__c]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(t){this.props.value!=t.value&&n.forEach(function(t){t.__e=!0,Mg(t)})},this.sub=function(t){n.add(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){n&&n.delete(t),e&&e.call(t)}}),t.children}return e.__c="__cC"+Ag++,e.__=t,e.Provider=e.__l=(e.Consumer=function(t,e){return t.children(e)}).contextType=e,e},createElement:Bg,createRef:function(){return{current:null}},h:Bg,hydrate:function t(e,n){ty(e,n,t)},get isValidElement(){return yg},get options(){return vg},render:ty,toChildArray:function t(e,n){return n=n||[],null==e||"boolean"==typeof e||(Pg(e)?e.some(function(e){t(e,n)}):n.push(e)),n}}),py=w(dy);function hy(){if(oy)return ry;oy=1;const t=ny?ey:(ny=1,ey=function(t){return(null==t?void 0:t.nodeType)===Node.ELEMENT_NODE});return ry=function(e,n){return void 0===n&&(n=document),"string"==typeof e?n.querySelector(e):t(e)?e:null}}function vy(){if(sy)return ay;sy=1;const t=sg();return ay=class{constructor(t,e){void 0===e&&(e={}),this.uppy=t,this.opts=e}getPluginState(){const{plugins:t}=this.uppy.getState();return t[this.id]||{}}setPluginState(t){const{plugins:e}=this.uppy.getState();this.uppy.setState({plugins:{...e,[this.id]:{...e[this.id],...t}}})}setOptions(t){this.opts={...this.opts,...t},this.setPluginState(),this.i18nInit()}i18nInit(){const e=new t([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.setPluginState()}addTarget(){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}render(){throw new Error("Extend the render method to add your plugin to a DOM element")}update(){}afterUpdate(){}}}function gy(){if(ly)return cy;ly=1;var t=py;function e(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var n=0;function r(t){return"__private_"+n+++"_"+t}const o=hy(),i=uy?iy:(uy=1,iy=function(t){for(var e;t&&!t.dir;)t=t.parentNode;return null==(e=t)?void 0:e.dir}),u=vy();var a=r("updateUI");class s extends u{constructor(){super(...arguments),Object.defineProperty(this,a,{writable:!0,value:void 0})}mount(n,r){const u=r.id,c=o(n);if(c){this.isTargetDOMEl=!0;const r=document.createElement("div");return r.classList.add("uppy-Root"),e(this,a)[a]=function(t){let e=null,n=null;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=o,e||(e=Promise.resolve().then(()=>(e=null,t(...n)))),e}}(e=>{this.uppy.getPlugin(this.id)&&((0,t.render)(this.render(e),r),this.afterUpdate())}),this.uppy.log(`Installing ${u} to a DOM element '${n}'`),this.opts.replaceTargetContent&&(c.innerHTML=""),(0,t.render)(this.render(this.uppy.getState()),r),this.el=r,c.appendChild(r),r.dir=this.opts.direction||i(r)||"ltr",this.onMount(),this.el}let l;if("object"==typeof n&&n instanceof s)l=n;else if("function"==typeof n){const t=n;this.uppy.iteratePlugins(e=>{e instanceof t&&(l=e)})}if(l)return this.uppy.log(`Installing ${u} to ${l.id}`),this.parent=l,this.el=l.addTarget(r),this.onMount(),this.el;this.uppy.log(`Not installing ${u}`);let f=`Invalid target option given to ${u}.`;throw f+="function"==typeof n?" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":"If you meant to target an HTML element, please make sure that the element exists. Check that the <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. (see https://github.com/transloadit/uppy/issues/1042)\n\nIf you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.",new Error(f)}update(t){var n,r;null!=this.el&&(null==(n=(r=e(this,a))[a])||n.call(r,t))}unmount(){var t;this.isTargetDOMEl&&(null==(t=this.el)||t.remove());this.onUnmount()}onMount(){}onUnmount(){}}return cy=s}var yy,my,by,Ey,wy,Sy,Cy,Dy,Oy,Ay,xy=(fy||(fy=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.Uppy=e.UIPlugin=e.BasePlugin=void 0,Object.defineProperty(e,"debugLogger",{enumerable:!0,get:function(){return n.debugLogger}});var n=Dv();t.exports=pg();const r=gy();e.UIPlugin=r;const o=vy();e.BasePlugin=o;const i=pg();e.Uppy=i;const u=gy(),a=vy();i.Uppy=i,i.UIPlugin=u,i.BasePlugin=a,i.debugLogger=n.debugLogger}(Sv,Sv.exports)),Sv.exports),Ty=E(xy),Ny={};function Py(){if(my)return yy;my=1;class t extends Error{constructor(t,e){void 0===e&&(e=null),super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."),this.cause=t,this.isNetworkError=!0,this.request=e}}return yy=t}function ky(){if(Ay)return Oy;let t;function e(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}Ay=1;var n=0;function r(t){return"__private_"+n+++"_"+t}const o=function(){if(Ey)return by;Ey=1;const t=Py();return by=function(){return fetch(...arguments).catch(e=>{throw"AbortError"===e.name?e:new t(e)})},by}(),i=function(){if(Sy)return wy;Sy=1;const t=ag();class e extends Error{constructor(e,n){void 0===n&&(n={}),super(e),this.cause=n.cause,this.cause&&t(this.cause,"isNetworkError")&&(this.isNetworkError=this.cause.isNetworkError)}}return wy=e}(),u=function(){if(Dy)return Cy;Dy=1;class t extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}return Cy=t}();async function a(t){if(401===t.status)throw new u;const e=t.json();if(t.status<200||t.status>300){let n=`Failed request with status: ${t.status}. ${t.statusText}`;try{const t=await e;n=t.message?`${n} message: ${t.message}`:n,n=t.requestId?`${n} request-Id: ${t.requestId}`:n}finally{throw new Error(n)}}return e}var s=r("companionHeaders"),c=r("getPostResponseFunc"),l=r("getUrl"),f=r("errorHandler");t=Symbol.for("uppy test: getCompanionHeaders");class d{constructor(t,n){Object.defineProperty(this,f,{value:h}),Object.defineProperty(this,l,{value:p}),Object.defineProperty(this,s,{writable:!0,value:void 0}),Object.defineProperty(this,c,{writable:!0,value:t=>e=>t?e:this.onReceiveResponse(e)}),this.uppy=t,this.opts=n,this.onReceiveResponse=this.onReceiveResponse.bind(this),this.allowedHeaders=["accept","content-type","uppy-auth-token"],this.preflightDone=!1,e(this,s)[s]=null==n?void 0:n.companionHeaders}setCompanionHeaders(t){e(this,s)[s]=t}[t](){return e(this,s)[s]}get hostname(){const{companion:t}=this.uppy.getState(),e=this.opts.companionUrl;return(t&&t[e]?t[e]:e).replace(/\/$/,"")}headers(){return Promise.resolve({...d.defaultHeaders,...e(this,s)[s]})}onReceiveResponse(t){const e=this.uppy.getState().companion||{},n=this.opts.companionUrl,{headers:r}=t;return r.has("i-am")&&r.get("i-am")!==e[n]&&this.uppy.setState({companion:{...e,[n]:r.get("i-am")}}),t}preflight(t){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(e(this,l)[l](t),{method:"OPTIONS"}).then(t=>(t.headers.has("access-control-allow-headers")&&(this.allowedHeaders=t.headers.get("access-control-allow-headers").split(",").map(t=>t.trim().toLowerCase())),this.preflightDone=!0,this.allowedHeaders.slice())).catch(t=>(this.uppy.log(`[CompanionClient] unable to make preflight request ${t}`,"warning"),this.preflightDone=!0,this.allowedHeaders.slice()))}preflightAndHeaders(t){return Promise.all([this.preflight(t),this.headers()]).then(t=>{let[e,n]=t;return Object.keys(n).forEach(t=>{e.includes(t.toLowerCase())||(this.uppy.log(`[CompanionClient] excluding disallowed header ${t}`),delete n[t])}),n})}get(t,n){return this.preflightAndHeaders(t).then(n=>o(e(this,l)[l](t),{method:"get",headers:n,credentials:this.opts.companionCookiesRule||"same-origin"})).then(e(this,c)[c](n)).then(a).catch(e(this,f)[f]("get",t))}post(t,n,r){const i="post";return this.preflightAndHeaders(t).then(r=>o(e(this,l)[l](t),{method:i,headers:r,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(n)})).then(e(this,c)[c](r)).then(a).catch(e(this,f)[f](i,t))}delete(t,n,r){const i="delete";return this.preflightAndHeaders(t).then(e=>o(`${this.hostname}/${t}`,{method:i,headers:e,credentials:this.opts.companionCookiesRule||"same-origin",body:n?JSON.stringify(n):null})).then(e(this,c)[c](r)).then(a).catch(e(this,f)[f](i,t))}}function p(t){return/^(https?:|)\/\//.test(t)?t:`${this.hostname}/${t}`}function h(t,n){return r=>{var o;return null!=(o=r)&&o.isAuthError||(r=new i(`Could not ${t} ${e(this,l)[l](n)}`,{cause:r})),Promise.reject(r)}}return d.VERSION="2.2.2",d.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${d.VERSION}`},Oy=d}var Iy,By,Fy,Ry,_y,jy,Ly,My,zy={};function Hy(){if(Iy)return zy;return Iy=1,Object.defineProperty(zy,"__esModule",{value:!0}),zy.getItem=function(t){return Promise.resolve(localStorage.getItem(t))},zy.removeItem=function(t){return new Promise(e=>{localStorage.removeItem(t),e()})},zy.setItem=function(t,e){return new Promise(n=>{localStorage.setItem(t,e),n()})},zy}function $y(){if(My)return Ny;My=1,Object.defineProperty(Ny,"__esModule",{value:!0}),Ny.Socket=Ny.SearchProvider=Ny.RequestClient=Ny.Provider=void 0;const t=ky();Ny.RequestClient=t;const e=function(){if(Fy)return By;Fy=1;var t=Hy();const e=ky();return By=class extends e{constructor(t,e){super(t,e),this.provider=e.provider,this.id=this.provider,this.name=this.opts.name||(()=>this.id.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" "))(),this.pluginId=this.opts.pluginId,this.tokenKey=`companion-${this.pluginId}-auth-token`,this.companionKeysParams=this.opts.companionKeysParams,this.preAuthToken=null}headers(){return Promise.all([super.headers(),this.getAuthToken()]).then(t=>{let[e,n]=t;const r={};return n&&(r["uppy-auth-token"]=n),this.companionKeysParams&&(r["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...e,...r}})}onReceiveResponse(t){t=super.onReceiveResponse(t);const e=this.uppy.getPlugin(this.pluginId),n=e.getPluginState().authenticated?401!==t.status:t.status<400;return e.setPluginState({authenticated:n}),t}setAuthToken(t){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,t)}getAuthToken(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)}async ensurePreAuth(){if(this.companionKeysParams&&!this.preAuthToken&&(await this.fetchPreAuthToken(),!this.preAuthToken))throw new Error("Could not load authentication data required for third-party login. Please try again later.")}authUrl(t){void 0===t&&(t={});const e=new URLSearchParams(t);return this.preAuthToken&&e.set("uppyPreAuthToken",this.preAuthToken),`${this.hostname}/${this.id}/connect?${e}`}fileUrl(t){return`${this.hostname}/${this.id}/get/${t}`}async fetchPreAuthToken(){if(this.companionKeysParams)try{const t=await this.post(`${this.id}/preauth/`,{params:this.companionKeysParams});this.preAuthToken=t.token}catch(t){this.uppy.log(`[CompanionClient] unable to fetch preAuthToken ${t}`,"warning")}}list(t){return this.get(`${this.id}/list/${t||""}`)}logout(){return this.get(`${this.id}/logout`).then(t=>Promise.all([t,this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)])).then(t=>{let[e]=t;return e})}static initPlugin(e,n,r){if(e.type="acquirer",e.files=[],r&&(e.opts={...r,...n}),n.serverUrl||n.serverPattern)throw new Error("`serverUrl` and `serverPattern` have been renamed to `companionUrl` and `companionAllowedHosts` respectively in the 0.30.5 release. Please consult the docs (for example, https://uppy.io/docs/instagram/ for the Instagram plugin) and use the updated options.`");if(n.companionAllowedHosts){const t=n.companionAllowedHosts;if(!("string"==typeof t||Array.isArray(t)||t instanceof RegExp))throw new TypeError(`${e.id}: the option "companionAllowedHosts" must be one of string, Array, RegExp`);e.opts.companionAllowedHosts=t}else/^(?!https?:\/\/).*$/i.test(n.companionUrl)?e.opts.companionAllowedHosts=`https://${n.companionUrl.replace(/^\/\//,"")}`:e.opts.companionAllowedHosts=new URL(n.companionUrl).origin;e.storage=e.opts.storage||t}},By}();Ny.Provider=e;const n=function(){if(_y)return Ry;_y=1;const t=ky();return Ry=class extends t{constructor(t,e){super(t,e),this.provider=e.provider,this.id=this.provider,this.name=this.opts.name||(()=>this.id.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" "))(),this.pluginId=this.opts.pluginId}fileUrl(t){return`${this.hostname}/search/${this.id}/get/${t}`}search(t,e){return this.get(`search/${this.id}/list?q=${encodeURIComponent(t)}${e?`&${e}`:""}`)}},Ry}();Ny.SearchProvider=n;const r=function(){if(Ly)return jy;let t,e;function n(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}Ly=1;var r=0;function o(t){return"__private_"+r+++"_"+t}const i=cg();var u=o("queued"),a=o("emitter"),s=o("isOpen"),c=o("socket"),l=o("handleMessage");return t=Symbol.for("uppy test: getSocket"),e=Symbol.for("uppy test: getQueued"),jy=class{constructor(t){Object.defineProperty(this,u,{writable:!0,value:[]}),Object.defineProperty(this,a,{writable:!0,value:i()}),Object.defineProperty(this,s,{writable:!0,value:!1}),Object.defineProperty(this,c,{writable:!0,value:void 0}),Object.defineProperty(this,l,{writable:!0,value:t=>{try{const e=JSON.parse(t.data);this.emit(e.action,e.payload)}catch(t){console.log(t)}}}),this.opts=t,t&&!1===t.autoOpen||this.open()}get isOpen(){return n(this,s)[s]}[t](){return n(this,c)[c]}[e](){return n(this,u)[u]}open(){n(this,c)[c]=new WebSocket(this.opts.target),n(this,c)[c].onopen=()=>{for(n(this,s)[s]=!0;n(this,u)[u].length>0&&n(this,s)[s];){const t=n(this,u)[u].shift();this.send(t.action,t.payload)}},n(this,c)[c].onclose=()=>{n(this,s)[s]=!1},n(this,c)[c].onmessage=n(this,l)[l]}close(){var t;null==(t=n(this,c)[c])||t.close()}send(t,e){n(this,s)[s]?n(this,c)[c].send(JSON.stringify({action:t,payload:e})):n(this,u)[u].push({action:t,payload:e})}on(t,e){n(this,a)[a].on(t,e)}emit(t,e){n(this,a)[a].emit(t,e)}once(t,e){n(this,a)[a].once(t,e)}},jy}();return Ny.Socket=r,Ny}var Uy,Vy,Gy,Wy,qy,Ky,Yy,Xy,Jy,Zy,Qy,tm,em,nm,rm,om,im,um={};function am(){if(Uy)return um;function t(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}Uy=1,Object.defineProperty(um,"__esModule",{value:!0}),um.internalRateLimitedQueue=um.RateLimitedQueue=void 0;var e=0;function n(t){return"__private_"+e+++"_"+t}var r=n("activeRequests"),o=n("queuedHandlers"),i=n("paused"),u=n("pauseTimer"),a=n("downLimit"),s=n("upperLimit"),c=n("rateLimitingTimer"),l=n("call"),f=n("queueNext"),d=n("next"),p=n("queue"),h=n("dequeue"),v=n("resume"),g=n("increaseLimit");function y(e){t(this,r)[r]+=1;let n,o=!1;try{n=e()}catch(e){throw t(this,r)[r]-=1,e}return{abort:()=>{o||(o=!0,t(this,r)[r]-=1,n(),t(this,f)[f]())},done:()=>{o||(o=!0,t(this,r)[r]-=1,t(this,f)[f]())}}}function m(){queueMicrotask(()=>t(this,d)[d]())}function b(){if(t(this,i)[i]||t(this,r)[r]>=this.limit)return;if(0===t(this,o)[o].length)return;const e=t(this,o)[o].shift(),n=t(this,l)[l](e.fn);e.abort=n.abort,e.done=n.done}function E(e,n){void 0===n&&(n={});const r={fn:e,priority:n.priority||0,abort:()=>{t(this,h)[h](r)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},i=t(this,o)[o].findIndex(t=>r.priority>t.priority);return-1===i?t(this,o)[o].push(r):t(this,o)[o].splice(i,0,r),r}function w(e){const n=t(this,o)[o].indexOf(e);-1!==n&&t(this,o)[o].splice(n,1)}um.RateLimitedQueue=class{constructor(e){Object.defineProperty(this,h,{value:w}),Object.defineProperty(this,p,{value:E}),Object.defineProperty(this,d,{value:b}),Object.defineProperty(this,f,{value:m}),Object.defineProperty(this,l,{value:y}),Object.defineProperty(this,r,{writable:!0,value:0}),Object.defineProperty(this,o,{writable:!0,value:[]}),Object.defineProperty(this,i,{writable:!0,value:!1}),Object.defineProperty(this,u,{writable:!0,value:void 0}),Object.defineProperty(this,a,{writable:!0,value:1}),Object.defineProperty(this,s,{writable:!0,value:void 0}),Object.defineProperty(this,c,{writable:!0,value:void 0}),Object.defineProperty(this,v,{writable:!0,value:()=>this.resume()}),Object.defineProperty(this,g,{writable:!0,value:()=>{if(t(this,i)[i])t(this,c)[c]=setTimeout(t(this,g)[g],0);else{t(this,a)[a]=this.limit,this.limit=Math.ceil((t(this,s)[s]+t(this,a)[a])/2);for(let e=t(this,a)[a];e<=this.limit;e++)t(this,f)[f]();t(this,s)[s]-t(this,a)[a]>3?t(this,c)[c]=setTimeout(t(this,g)[g],2e3):t(this,a)[a]=Math.floor(t(this,a)[a]/2)}}}),this.limit="number"!=typeof e||0===e?1/0:e}run(e,n){return!t(this,i)[i]&&t(this,r)[r]<this.limit?t(this,l)[l](e):t(this,p)[p](e,n)}wrapPromiseFunction(t,e){var n=this;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];let u;const a=new Promise((r,i)=>{u=n.run(()=>{let e,n;try{n=Promise.resolve(t(...o))}catch(t){n=Promise.reject(t)}return n.then(t=>{e?i(e):(u.done(),r(t))},t=>{e?i(e):(u.done(),i(t))}),()=>{e=new Error("Cancelled")}},e)});return a.abort=()=>{u.abort()},a}}resume(){t(this,i)[i]=!1,clearTimeout(t(this,u)[u]);for(let e=0;e<this.limit;e++)t(this,f)[f]()}pause(e){void 0===e&&(e=null),t(this,i)[i]=!0,clearTimeout(t(this,u)[u]),null!=e&&(t(this,u)[u]=setTimeout(t(this,v)[v],e))}rateLimit(e){clearTimeout(t(this,c)[c]),this.pause(e),this.limit>1&&Number.isFinite(this.limit)&&(t(this,s)[s]=this.limit-1,this.limit=t(this,a)[a],t(this,c)[c]=setTimeout(t(this,g)[g],e))}get isPaused(){return t(this,i)[i]}};const S=Symbol("__queue");return um.internalRateLimitedQueue=S,um}function sm(){return rm?nm:(rm=1,nm={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}})}var cm=function(){if(im)return om;im=1;var t=Ov(),e=$y(),n=am();const r=vy(),o=function(){if(Gy)return Vy;Gy=1;const t=Ah();return Vy=t(function(t,e,n){const{progress:r,bytesUploaded:o,bytesTotal:i}=e;r&&(t.uppy.log(`Upload progress: ${r}`),t.uppy.emit("upload-progress",n,{uploader:t,bytesUploaded:o,bytesTotal:i}))},300,{leading:!0,trailing:!0})}(),i=qy?Wy:(qy=1,Wy=function(t){const e=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(t)[1];return`${/^http:\/\//i.test(t)?"ws":"wss"}://${e}`}),u=Yy?Ky:(Yy=1,Ky=function(t){const e=[],n=[];function r(t){e.push(t)}function o(t){n.push(t)}return Promise.all(t.map(t=>t.then(r,o))).then(()=>({successful:e,failed:n}))}),a=function(){if(Jy)return Xy;function t(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}Jy=1;var e=0;function n(t){return"__private_"+e+++"_"+t}var r=n("emitter"),o=n("events");return Xy=class{constructor(e){Object.defineProperty(this,r,{writable:!0,value:void 0}),Object.defineProperty(this,o,{writable:!0,value:[]}),t(this,r)[r]=e}on(e,n){return t(this,o)[o].push([e,n]),t(this,r)[r].on(e,n)}remove(){for(const[e,n]of t(this,o)[o].splice(0))t(this,r)[r].off(e,n)}},Xy}(),s=function(){if(Qy)return Zy;function t(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}Qy=1;var e=0;function n(t){return"__private_"+e+++"_"+t}var r=n("aliveTimer"),o=n("isDone"),i=n("onTimedOut"),u=n("timeout");return Zy=class{constructor(e,n){Object.defineProperty(this,r,{writable:!0,value:void 0}),Object.defineProperty(this,o,{writable:!0,value:!1}),Object.defineProperty(this,i,{writable:!0,value:void 0}),Object.defineProperty(this,u,{writable:!0,value:void 0}),t(this,u)[u]=e,t(this,i)[i]=n}progress(){t(this,o)[o]||t(this,u)[u]>0&&(clearTimeout(t(this,r)[r]),t(this,r)[r]=setTimeout(t(this,i)[i],t(this,u)[u]))}done(){t(this,o)[o]||(clearTimeout(t(this,r)[r]),t(this,r)[r]=null,t(this,o)[o]=!0)}}}(),c=Py(),l=em?tm:(em=1,tm=function(t){return!!t&&(0!==t.readyState&&4!==t.readyState||0===t.status)}),f=sm();function d(t,e){let n=e;return n||(n=new Error("Upload error")),"string"==typeof n&&(n=new Error(n)),n instanceof Error||(n=Object.assign(new Error("Upload error"),{data:n})),l(t)?(n=new c(n,t),n):(n.request=t,n)}function p(t){return t.data.slice(0,t.data.size,t.meta.type)}class h extends r{constructor(t,e){super(t,e),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=f;const r={formData:!0,fieldName:e.bundle?"files[]":"file",method:"post",metaFields:null,responseUrlFieldName:"url",bundle:!1,headers:{},timeout:3e4,limit:5,withCredentials:!1,responseType:"",getResponseData(e){let n={};try{n=JSON.parse(e)}catch(e){t.log(e)}return n},getResponseError(t,e){let n=new Error("Upload error");return l(e)&&(n=new c(n,e)),n},validateStatus:t=>t>=200&&t<300};if(this.opts={...r,...e},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),n.internalRateLimitedQueue in this.opts?this.requests=this.opts[n.internalRateLimitedQueue]:this.requests=new n.RateLimitedQueue(this.opts.limit),this.opts.bundle&&!this.opts.formData)throw new Error("`opts.formData` must be true when `opts.bundle` is enabled.");this.uploaderEvents=Object.create(null)}getOptions(t){const e=this.uppy.getState().xhrUpload,{headers:n}=this.opts,r={...this.opts,...e||{},...t.xhrUpload||{},headers:{}};return"function"==typeof n?r.headers=n(t):Object.assign(r.headers,this.opts.headers),e&&Object.assign(r.headers,e.headers),t.xhrUpload&&Object.assign(r.headers,t.xhrUpload.headers),r}addMetadata(t,e,n){(Array.isArray(n.metaFields)?n.metaFields:Object.keys(e)).forEach(n=>{t.append(n,e[n])})}createFormDataUpload(t,e){const n=new FormData;this.addMetadata(n,t.meta,e);const r=p(t);return t.name?n.append(e.fieldName,r,t.meta.name):n.append(e.fieldName,r),n}createBundledUpload(t,e){const n=new FormData,{meta:r}=this.uppy.getState();return this.addMetadata(n,r,e),t.forEach(t=>{const e=this.getOptions(t),r=p(t);t.name?n.append(e.fieldName,r,t.name):n.append(e.fieldName,r)}),n}upload(e,n,r){const o=this.getOptions(e);return this.uppy.log(`uploading ${n} of ${r}`),new Promise((n,r)=>{this.uppy.emit("upload-started",e);const i=o.formData?this.createFormDataUpload(e,o):e.data,u=new XMLHttpRequest;let c;this.uploaderEvents[e.id]=new a(this.uppy);const l=new s(o.timeout,()=>{u.abort(),c.done();const t=new Error(this.i18n("timedOut",{seconds:Math.ceil(o.timeout/1e3)}));this.uppy.emit("upload-error",e,t),r(t)}),f=(0,t.nanoid)();u.upload.addEventListener("loadstart",()=>{this.uppy.log(`[XHRUpload] ${f} started`)}),u.upload.addEventListener("progress",t=>{this.uppy.log(`[XHRUpload] ${f} progress: ${t.loaded} / ${t.total}`),l.progress(),t.lengthComputable&&this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:t.loaded,bytesTotal:t.total})}),u.addEventListener("load",()=>{if(this.uppy.log(`[XHRUpload] ${f} finished`),l.done(),c.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),o.validateStatus(u.status,u.responseText,u)){const t=o.getResponseData(u.responseText,u),r=t[o.responseUrlFieldName],i={status:u.status,body:t,uploadURL:r};return this.uppy.emit("upload-success",e,i),r&&this.uppy.log(`Download ${e.name} from ${r}`),n(e)}const t=o.getResponseData(u.responseText,u),i=d(u,o.getResponseError(u.responseText,u)),a={status:u.status,body:t};return this.uppy.emit("upload-error",e,i,a),r(i)}),u.addEventListener("error",()=>{this.uppy.log(`[XHRUpload] ${f} errored`),l.done(),c.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null);const t=d(u,o.getResponseError(u.responseText,u));return this.uppy.emit("upload-error",e,t),r(t)}),u.open(o.method.toUpperCase(),o.endpoint,!0),u.withCredentials=o.withCredentials,""!==o.responseType&&(u.responseType=o.responseType),c=this.requests.run(()=>{this.uppy.emit("upload-started",e);const t=this.getOptions(e);return Object.keys(t.headers).forEach(e=>{u.setRequestHeader(e,t.headers[e])}),u.send(i),()=>{l.done(),u.abort()}}),this.onFileRemove(e.id,()=>{c.abort(),r(new Error("File removed"))}),this.onCancelAll(e.id,t=>{let{reason:e}=t;"user"===e&&c.abort(),r(new Error("Upload cancelled"))})})}uploadRemote(t){const n=this.getOptions(t);return new Promise((r,u)=>{this.uppy.emit("upload-started",t);const s={};(Array.isArray(n.metaFields)?n.metaFields:Object.keys(t.meta)).forEach(e=>{s[e]=t.meta[e]});new(t.remote.providerOptions.provider?e.Provider:e.RequestClient)(this.uppy,t.remote.providerOptions).post(t.remote.url,{...t.remote.body,endpoint:n.endpoint,size:t.data.size,fieldname:n.fieldName,metadata:s,httpMethod:n.method,useFormData:n.formData,headers:n.headers}).then(s=>{const{token:c}=s,l=i(t.remote.companionUrl),f=new e.Socket({target:`${l}/api/${c}`,autoOpen:!1});let d;this.uploaderEvents[t.id]=new a(this.uppy),this.onFileRemove(t.id,()=>{f.send("cancel",{}),d.abort(),r(`upload ${t.id} was removed`)}),this.onCancelAll(t.id,function(e){let{reason:n}=void 0===e?{}:e;"user"===n&&(f.send("cancel",{}),d.abort()),r(`upload ${t.id} was canceled`)}),this.onRetry(t.id,()=>{f.send("pause",{}),f.send("resume",{})}),this.onRetryAll(t.id,()=>{f.send("pause",{}),f.send("resume",{})}),f.on("progress",e=>o(this,e,t)),f.on("success",e=>{const o=n.getResponseData(e.response.responseText,e.response),i=o[n.responseUrlFieldName],u={status:e.response.status,body:o,uploadURL:i};return this.uppy.emit("upload-success",t,u),d.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null),r()}),f.on("error",e=>{const r=e.response,o=r?n.getResponseError(r.responseText,r):Object.assign(new Error(e.error.message),{cause:e.error});this.uppy.emit("upload-error",t,o),d.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null),u(o)}),d=this.requests.run(()=>(f.open(),t.isPaused&&f.send("pause",{}),()=>f.close()))}).catch(e=>{this.uppy.emit("upload-error",t,e),u(e)})})}uploadBundle(t){return new Promise((e,n)=>{const{endpoint:r}=this.opts,{method:o}=this.opts,i=this.uppy.getState().xhrUpload,u=this.createBundledUpload(t,{...this.opts,...i||{}}),a=new XMLHttpRequest,c=e=>{t.forEach(t=>{this.uppy.emit("upload-error",t,e)})},l=new s(this.opts.timeout,()=>{a.abort();const t=new Error(this.i18n("timedOut",{seconds:Math.ceil(this.opts.timeout/1e3)}));c(t),n(t)});a.upload.addEventListener("loadstart",()=>{this.uppy.log("[XHRUpload] started uploading bundle"),l.progress()}),a.upload.addEventListener("progress",e=>{l.progress(),e.lengthComputable&&t.forEach(t=>{this.uppy.emit("upload-progress",t,{uploader:this,bytesUploaded:e.loaded/e.total*t.size,bytesTotal:t.size})})}),a.addEventListener("load",r=>{if(l.done(),this.opts.validateStatus(r.target.status,a.responseText,a)){const n=this.opts.getResponseData(a.responseText,a),o={status:r.target.status,body:n};return t.forEach(t=>{this.uppy.emit("upload-success",t,o)}),e()}const o=this.opts.getResponseError(a.responseText,a)||new Error("Upload error");return o.request=a,c(o),n(o)}),a.addEventListener("error",()=>{l.done();const t=this.opts.getResponseError(a.responseText,a)||new Error("Upload error");return c(t),n(t)}),this.uppy.on("cancel-all",function(t){let{reason:e}=void 0===t?{}:t;"user"===e&&(l.done(),a.abort())}),a.open(o.toUpperCase(),r,!0),a.withCredentials=this.opts.withCredentials,""!==this.opts.responseType&&(a.responseType=this.opts.responseType),Object.keys(this.opts.headers).forEach(t=>{a.setRequestHeader(t,this.opts.headers[t])}),a.send(u),t.forEach(t=>{this.uppy.emit("upload-started",t)})})}uploadFiles(t){const e=t.map((e,n)=>{const r=parseInt(n,10)+1,o=t.length;return e.error?Promise.reject(new Error(e.error)):e.isRemote?this.uploadRemote(e,r,o):this.upload(e,r,o)});return u(e)}onFileRemove(t,e){this.uploaderEvents[t].on("file-removed",n=>{t===n.id&&e(n.id)})}onRetry(t,e){this.uploaderEvents[t].on("upload-retry",n=>{t===n&&e()})}onRetryAll(t,e){this.uploaderEvents[t].on("retry-all",()=>{this.uppy.getFile(t)&&e()})}onCancelAll(t,e){var n=this;this.uploaderEvents[t].on("cancel-all",function(){n.uppy.getFile(t)&&e(...arguments)})}handleUpload(t){if(0===t.length)return this.uppy.log("[XHRUpload] No files to upload!"),Promise.resolve();0!==this.opts.limit||this.opts[n.internalRateLimitedQueue]||this.uppy.log("[XHRUpload] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/xhr-upload/#limit-0","warning"),this.uppy.log("[XHRUpload] Uploading...");const e=t.map(t=>this.uppy.getFile(t));if(this.opts.bundle){if(e.some(t=>t.isRemote))throw new Error("Can’t upload remote files when the `bundle: true` option is set");if("function"==typeof this.opts.headers)throw new TypeError("`headers` may not be a function when the `bundle: true` option is set");return this.uploadBundle(e)}return this.uploadFiles(e).then(()=>null)}install(){if(this.opts.bundle){const{capabilities:t}=this.uppy.getState();this.uppy.setState({capabilities:{...t,individualCancellation:!1}})}this.uppy.addUploader(this.handleUpload)}uninstall(){if(this.opts.bundle){const{capabilities:t}=this.uppy.getState();this.uppy.setState({capabilities:{...t,individualCancellation:!0}})}this.uppy.removeUploader(this.handleUpload)}}return h.VERSION="2.1.3",om=h}(),lm=E(cm),fm="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var dm,pm,hm={};function vm(){if(pm)return dm;pm=1;var t=function(t){return t&&t.Math===Math&&t};return dm=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof fm&&fm)||t("object"==typeof dm&&dm)||function(){return this}()||Function("return this")()}var gm,ym,mm,bm,Em,wm,Sm,Cm,Dm={};function Om(){return ym?gm:(ym=1,gm=function(t){try{return!!t()}catch(t){return!0}})}function Am(){if(bm)return mm;bm=1;var t=Om();return mm=!t(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function xm(){if(wm)return Em;wm=1;var t=Om();return Em=!t(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})}function Tm(){if(Cm)return Sm;Cm=1;var t=xm(),e=Function.prototype.call;return Sm=t?e.bind(e):function(){return e.apply(e,arguments)},Sm}var Nm,Pm,km,Im,Bm,Fm,Rm,_m,jm,Lm,Mm,zm,Hm,$m,Um,Vm,Gm,Wm,qm,Km,Ym,Xm,Jm,Zm,Qm,tb,eb,nb,rb,ob,ib,ub,ab,sb,cb,lb,fb,db,pb,hb,vb,gb={};function yb(){if(Nm)return gb;Nm=1;var t={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,n=e&&!t.call({1:2},1);return gb.f=n?function(t){var n=e(this,t);return!!n&&n.enumerable}:t,gb}function mb(){return km?Pm:(km=1,Pm=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}})}function bb(){if(Bm)return Im;Bm=1;var t=xm(),e=Function.prototype,n=e.call,r=t&&e.bind.bind(n,n);return Im=t?r:function(t){return function(){return n.apply(t,arguments)}},Im}function Eb(){if(Rm)return Fm;Rm=1;var t=bb(),e=t({}.toString),n=t("".slice);return Fm=function(t){return n(e(t),8,-1)}}function wb(){if(jm)return _m;jm=1;var t=bb(),e=Om(),n=Eb(),r=Object,o=t("".split);return _m=e(function(){return!r("z").propertyIsEnumerable(0)})?function(t){return"String"===n(t)?o(t,""):r(t)}:r}function Sb(){return Mm?Lm:(Mm=1,Lm=function(t){return null==t})}function Cb(){if(Hm)return zm;Hm=1;var t=Sb(),e=TypeError;return zm=function(n){if(t(n))throw new e("Can't call method on "+n);return n}}function Db(){if(Um)return $m;Um=1;var t=wb(),e=Cb();return $m=function(n){return t(e(n))}}function Ob(){if(Gm)return Vm;Gm=1;var t="object"==typeof document&&document.all;return Vm=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(t){return"function"==typeof t}}function Ab(){if(qm)return Wm;qm=1;var t=Ob();return Wm=function(e){return"object"==typeof e?null!==e:t(e)}}function xb(){if(Ym)return Km;Ym=1;var t=vm(),e=Ob();return Km=function(n,r){return arguments.length<2?(o=t[n],e(o)?o:void 0):t[n]&&t[n][r];var o},Km}function Tb(){if(Jm)return Xm;Jm=1;var t=bb();return Xm=t({}.isPrototypeOf)}function Nb(){if(Qm)return Zm;Qm=1;var t=vm().navigator,e=t&&t.userAgent;return Zm=e?String(e):""}function Pb(){if(eb)return tb;eb=1;var t,e,n=vm(),r=Nb(),o=n.process,i=n.Deno,u=o&&o.versions||i&&i.version,a=u&&u.v8;return a&&(e=(t=a.split("."))[0]>0&&t[0]<4?1:+(t[0]+t[1])),!e&&r&&(!(t=r.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=r.match(/Chrome\/(\d+)/))&&(e=+t[1]),tb=e}function kb(){if(rb)return nb;rb=1;var t=Pb(),e=Om(),n=vm().String;return nb=!!Object.getOwnPropertySymbols&&!e(function(){var e=Symbol("symbol detection");return!n(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&t&&t<41})}function Ib(){if(ib)return ob;ib=1;var t=kb();return ob=t&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function Bb(){if(ab)return ub;ab=1;var t=xb(),e=Ob(),n=Tb(),r=Ib(),o=Object;return ub=r?function(t){return"symbol"==typeof t}:function(r){var i=t("Symbol");return e(i)&&n(i.prototype,o(r))}}function Fb(){if(cb)return sb;cb=1;var t=String;return sb=function(e){try{return t(e)}catch(t){return"Object"}}}function Rb(){if(fb)return lb;fb=1;var t=Ob(),e=Fb(),n=TypeError;return lb=function(r){if(t(r))return r;throw new n(e(r)+" is not a function")}}function _b(){if(pb)return db;pb=1;var t=Rb(),e=Sb();return db=function(n,r){var o=n[r];return e(o)?void 0:t(o)}}var jb,Lb,Mb,zb,Hb,$b,Ub,Vb,Gb,Wb,qb,Kb,Yb,Xb,Jb,Zb,Qb,tE,eE,nE,rE,oE,iE,uE,aE={exports:{}};function sE(){return Lb?jb:(Lb=1,jb=!1)}function cE(){if(zb)return Mb;zb=1;var t=vm(),e=Object.defineProperty;return Mb=function(n,r){try{e(t,n,{value:r,configurable:!0,writable:!0})}catch(e){t[n]=r}return r}}function lE(){if(Hb)return aE.exports;Hb=1;var t=sE(),e=vm(),n=cE(),r="__core-js_shared__",o=aE.exports=e[r]||n(r,{});return(o.versions||(o.versions=[])).push({version:"3.44.0",mode:t?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.44.0/LICENSE",source:"https://github.com/zloirock/core-js"}),aE.exports}function fE(){if(Ub)return $b;Ub=1;var t=lE();return $b=function(e,n){return t[e]||(t[e]=n||{})}}function dE(){if(Gb)return Vb;Gb=1;var t=Cb(),e=Object;return Vb=function(n){return e(t(n))}}function pE(){if(qb)return Wb;qb=1;var t=bb(),e=dE(),n=t({}.hasOwnProperty);return Wb=Object.hasOwn||function(t,r){return n(e(t),r)}}function hE(){if(Yb)return Kb;Yb=1;var t=bb(),e=0,n=Math.random(),r=t(1.1.toString);return Kb=function(t){return"Symbol("+(void 0===t?"":t)+")_"+r(++e+n,36)}}function vE(){if(Jb)return Xb;Jb=1;var t=vm(),e=fE(),n=pE(),r=hE(),o=kb(),i=Ib(),u=t.Symbol,a=e("wks"),s=i?u.for||u:u&&u.withoutSetter||r;return Xb=function(t){return n(a,t)||(a[t]=o&&n(u,t)?u[t]:s("Symbol."+t)),a[t]}}function gE(){if(Qb)return Zb;Qb=1;var t=Tm(),e=Ab(),n=Bb(),r=_b(),o=function(){if(vb)return hb;vb=1;var t=Tm(),e=Ob(),n=Ab(),r=TypeError;return hb=function(o,i){var u,a;if("string"===i&&e(u=o.toString)&&!n(a=t(u,o)))return a;if(e(u=o.valueOf)&&!n(a=t(u,o)))return a;if("string"!==i&&e(u=o.toString)&&!n(a=t(u,o)))return a;throw new r("Can't convert object to primitive value")},hb}(),i=vE(),u=TypeError,a=i("toPrimitive");return Zb=function(i,s){if(!e(i)||n(i))return i;var c,l=r(i,a);if(l){if(void 0===s&&(s="default"),c=t(l,i,s),!e(c)||n(c))return c;throw new u("Can't convert object to primitive value")}return void 0===s&&(s="number"),o(i,s)}}function yE(){if(eE)return tE;eE=1;var t=gE(),e=Bb();return tE=function(n){var r=t(n,"string");return e(r)?r:r+""}}function mE(){if(rE)return nE;rE=1;var t=vm(),e=Ab(),n=t.document,r=e(n)&&e(n.createElement);return nE=function(t){return r?n.createElement(t):{}}}function bE(){if(iE)return oE;iE=1;var t=Am(),e=Om(),n=mE();return oE=!t&&!e(function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a})}function EE(){if(uE)return Dm;uE=1;var t=Am(),e=Tm(),n=yb(),r=mb(),o=Db(),i=yE(),u=pE(),a=bE(),s=Object.getOwnPropertyDescriptor;return Dm.f=t?s:function(t,c){if(t=o(t),c=i(c),a)try{return s(t,c)}catch(t){}if(u(t,c))return r(!e(n.f,t,c),t[c])},Dm}var wE,SE,CE,DE,OE,AE,xE,TE={};function NE(){if(SE)return wE;SE=1;var t=Am(),e=Om();return wE=t&&e(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}function PE(){if(DE)return CE;DE=1;var t=Ab(),e=String,n=TypeError;return CE=function(r){if(t(r))return r;throw new n(e(r)+" is not an object")}}function kE(){if(OE)return TE;OE=1;var t=Am(),e=bE(),n=NE(),r=PE(),o=yE(),i=TypeError,u=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s="enumerable",c="configurable",l="writable";return TE.f=t?n?function(t,e,n){if(r(t),e=o(e),r(n),"function"==typeof t&&"prototype"===e&&"value"in n&&l in n&&!n[l]){var i=a(t,e);i&&i[l]&&(t[e]=n.value,n={configurable:c in n?n[c]:i[c],enumerable:s in n?n[s]:i[s],writable:!1})}return u(t,e,n)}:u:function(t,n,a){if(r(t),n=o(n),r(a),e)try{return u(t,n,a)}catch(t){}if("get"in a||"set"in a)throw new i("Accessors not supported");return"value"in a&&(t[n]=a.value),t},TE}function IE(){if(xE)return AE;xE=1;var t=Am(),e=kE(),n=mb();return AE=t?function(t,r,o){return e.f(t,r,n(1,o))}:function(t,e,n){return t[e]=n,t}}var BE,FE,RE,_E,jE,LE,ME,zE,HE,$E,UE,VE,GE,WE,qE,KE={exports:{}};function YE(){if(FE)return BE;FE=1;var t=Am(),e=pE(),n=Function.prototype,r=t&&Object.getOwnPropertyDescriptor,o=e(n,"name"),i=o&&"something"===function(){}.name,u=o&&(!t||t&&r(n,"name").configurable);return BE={EXISTS:o,PROPER:i,CONFIGURABLE:u}}function XE(){if(_E)return RE;_E=1;var t=bb(),e=Ob(),n=lE(),r=t(Function.toString);return e(n.inspectSource)||(n.inspectSource=function(t){return r(t)}),RE=n.inspectSource}function JE(){if(LE)return jE;LE=1;var t=vm(),e=Ob(),n=t.WeakMap;return jE=e(n)&&/native code/.test(String(n))}function ZE(){if(zE)return ME;zE=1;var t=fE(),e=hE(),n=t("keys");return ME=function(t){return n[t]||(n[t]=e(t))}}function QE(){return $E?HE:($E=1,HE={})}function tw(){if(VE)return UE;VE=1;var t,e,n,r=JE(),o=vm(),i=Ab(),u=IE(),a=pE(),s=lE(),c=ZE(),l=QE(),f="Object already initialized",d=o.TypeError,p=o.WeakMap;if(r||s.state){var h=s.state||(s.state=new p);h.get=h.get,h.has=h.has,h.set=h.set,t=function(t,e){if(h.has(t))throw new d(f);return e.facade=t,h.set(t,e),e},e=function(t){return h.get(t)||{}},n=function(t){return h.has(t)}}else{var v=c("state");l[v]=!0,t=function(t,e){if(a(t,v))throw new d(f);return e.facade=t,u(t,v,e),e},e=function(t){return a(t,v)?t[v]:{}},n=function(t){return a(t,v)}}return UE={set:t,get:e,has:n,enforce:function(r){return n(r)?e(r):t(r,{})},getterFor:function(t){return function(n){var r;if(!i(n)||(r=e(n)).type!==t)throw new d("Incompatible receiver, "+t+" required");return r}}}}function ew(){if(GE)return KE.exports;GE=1;var t=bb(),e=Om(),n=Ob(),r=pE(),o=Am(),i=YE().CONFIGURABLE,u=XE(),a=tw(),s=a.enforce,c=a.get,l=String,f=Object.defineProperty,d=t("".slice),p=t("".replace),h=t([].join),v=o&&!e(function(){return 8!==f(function(){},"length",{value:8}).length}),g=String(String).split("String"),y=KE.exports=function(t,e,n){"Symbol("===d(l(e),0,7)&&(e="["+p(l(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!r(t,"name")||i&&t.name!==e)&&(o?f(t,"name",{value:e,configurable:!0}):t.name=e),v&&n&&r(n,"arity")&&t.length!==n.arity&&f(t,"length",{value:n.arity});try{n&&r(n,"constructor")&&n.constructor?o&&f(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var u=s(t);return r(u,"source")||(u.source=h(g,"string"==typeof e?e:"")),t};return Function.prototype.toString=y(function(){return n(this)&&c(this).source||u(this)},"toString"),KE.exports}function nw(){if(qE)return WE;qE=1;var t=Ob(),e=kE(),n=ew(),r=cE();return WE=function(o,i,u,a){a||(a={});var s=a.enumerable,c=void 0!==a.name?a.name:i;if(t(u)&&n(u,c,a),a.global)s?o[i]=u:r(i,u);else{try{a.unsafe?o[i]&&(s=!0):delete o[i]}catch(t){}s?o[i]=u:e.f(o,i,{value:u,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return o}}var rw,ow,iw,uw,aw,sw,cw,lw,fw,dw,pw,hw,vw,gw,yw,mw,bw,Ew={};function ww(){if(uw)return iw;uw=1;var t=function(){if(ow)return rw;ow=1;var t=Math.ceil,e=Math.floor;return rw=Math.trunc||function(n){var r=+n;return(r>0?e:t)(r)},rw}();return iw=function(e){var n=+e;return n!=n||0===n?0:t(n)}}function Sw(){if(sw)return aw;sw=1;var t=ww(),e=Math.max,n=Math.min;return aw=function(r,o){var i=t(r);return i<0?e(i+o,0):n(i,o)}}function Cw(){if(lw)return cw;lw=1;var t=ww(),e=Math.min;return cw=function(n){var r=t(n);return r>0?e(r,9007199254740991):0}}function Dw(){if(dw)return fw;dw=1;var t=Cw();return fw=function(e){return t(e.length)}}function Ow(){if(hw)return pw;hw=1;var t=Db(),e=Sw(),n=Dw(),r=function(r){return function(o,i,u){var a=t(o),s=n(a);if(0===s)return!r&&-1;var c,l=e(u,s);if(r&&i!=i){for(;s>l;)if((c=a[l++])!=c)return!0}else for(;s>l;l++)if((r||l in a)&&a[l]===i)return r||l||0;return!r&&-1}};return pw={includes:r(!0),indexOf:r(!1)}}function Aw(){if(gw)return vw;gw=1;var t=bb(),e=pE(),n=Db(),r=Ow().indexOf,o=QE(),i=t([].push);return vw=function(t,u){var a,s=n(t),c=0,l=[];for(a in s)!e(o,a)&&e(s,a)&&i(l,a);for(;u.length>c;)e(s,a=u[c++])&&(~r(l,a)||i(l,a));return l}}function xw(){return mw?yw:(mw=1,yw=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function Tw(){if(bw)return Ew;bw=1;var t=Aw(),e=xw().concat("length","prototype");return Ew.f=Object.getOwnPropertyNames||function(n){return t(n,e)},Ew}var Nw,Pw,kw,Iw,Bw,Fw,Rw,_w,jw,Lw,Mw,zw,Hw,$w,Uw,Vw,Gw,Ww,qw,Kw,Yw,Xw,Jw,Zw,Qw,tS,eS,nS,rS={};function oS(){return Nw||(Nw=1,rS.f=Object.getOwnPropertySymbols),rS}function iS(){if(Bw)return Iw;Bw=1;var t=pE(),e=function(){if(kw)return Pw;kw=1;var t=xb(),e=bb(),n=Tw(),r=oS(),o=PE(),i=e([].concat);return Pw=t("Reflect","ownKeys")||function(t){var e=n.f(o(t)),u=r.f;return u?i(e,u(t)):e},Pw}(),n=EE(),r=kE();return Iw=function(o,i,u){for(var a=e(i),s=r.f,c=n.f,l=0;l<a.length;l++){var f=a[l];t(o,f)||u&&t(u,f)||s(o,f,c(i,f))}},Iw}function uS(){if(Rw)return Fw;Rw=1;var t=Om(),e=Ob(),n=/#|\.prototype\./,r=function(n,r){var s=i[o(n)];return s===a||s!==u&&(e(r)?t(r):!!r)},o=r.normalize=function(t){return String(t).replace(n,".").toLowerCase()},i=r.data={},u=r.NATIVE="N",a=r.POLYFILL="P";return Fw=r}function aS(){if(jw)return _w;jw=1;var t=vm(),e=EE().f,n=IE(),r=nw(),o=cE(),i=iS(),u=uS();return _w=function(a,s){var c,l,f,d,p,h=a.target,v=a.global,g=a.stat;if(c=v?t:g?t[h]||o(h,{}):t[h]&&t[h].prototype)for(l in s){if(d=s[l],f=a.dontCallGetSet?(p=e(c,l))&&p.value:c[l],!u(v?l:h+(g?".":"#")+l,a.forced)&&void 0!==f){if(typeof d==typeof f)continue;i(d,f)}(a.sham||f&&f.sham)&&n(d,"sham",!0),r(c,l,d,a)}}}function sS(){if(Mw)return Lw;Mw=1;var t=Eb();return Lw=Array.isArray||function(e){return"Array"===t(e)}}function cS(){if(Hw)return zw;Hw=1;var t=TypeError;return zw=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}}function lS(){if(Uw)return $w;Uw=1;var t=Am(),e=kE(),n=mb();return $w=function(r,o,i){t?e.f(r,o,n(0,i)):r[o]=i}}function fS(){if(Gw)return Vw;Gw=1;var t={};return t[vE()("toStringTag")]="z",Vw="[object z]"===String(t)}function dS(){if(qw)return Ww;qw=1;var t=fS(),e=Ob(),n=Eb(),r=vE()("toStringTag"),o=Object,i="Arguments"===n(function(){return arguments}());return Ww=t?n:function(t){var u,a,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(a=function(t,e){try{return t[e]}catch(t){}}(u=o(t),r))?a:i?n(u):"Object"===(s=n(u))&&e(u.callee)?"Arguments":s}}function pS(){if(Yw)return Kw;Yw=1;var t=bb(),e=Om(),n=Ob(),r=dS(),o=xb(),i=XE(),u=function(){},a=o("Reflect","construct"),s=/^\s*(?:class|function)\b/,c=t(s.exec),l=!s.test(u),f=function(t){if(!n(t))return!1;try{return a(u,[],t),!0}catch(t){return!1}},d=function(t){if(!n(t))return!1;switch(r(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return l||!!c(s,i(t))}catch(t){return!0}};return d.sham=!0,Kw=!a||e(function(){var t;return f(f.call)||!f(Object)||!f(function(){t=!0})||t})?d:f}function hS(){if(Qw)return Zw;Qw=1;var t=function(){if(Jw)return Xw;Jw=1;var t=sS(),e=pS(),n=Ab(),r=vE()("species"),o=Array;return Xw=function(i){var u;return t(i)&&(u=i.constructor,(e(u)&&(u===o||t(u.prototype))||n(u)&&null===(u=u[r]))&&(u=void 0)),void 0===u?o:u}}();return Zw=function(e,n){return new(t(e))(0===n?0:n)}}function vS(){if(eS)return tS;eS=1;var t=Om(),e=vE(),n=Pb(),r=e("species");return tS=function(e){return n>=51||!t(function(){var t=[];return(t.constructor={})[r]=function(){return{foo:1}},1!==t[e](Boolean).foo})}}!function(){if(nS)return hm;nS=1;var t=aS(),e=Om(),n=sS(),r=Ab(),o=dE(),i=Dw(),u=cS(),a=lS(),s=hS(),c=vS(),l=vE(),f=Pb(),d=l("isConcatSpreadable"),p=f>=51||!e(function(){var t=[];return t[d]=!1,t.concat()[0]!==t}),h=function(t){if(!r(t))return!1;var e=t[d];return void 0!==e?!!e:n(t)};t({target:"Array",proto:!0,arity:1,forced:!p||!c("concat")},{concat:function(t){var e,n,r,c,l,f=o(this),d=s(f,0),p=0;for(e=-1,r=arguments.length;e<r;e++)if(h(l=-1===e?f:arguments[e]))for(c=i(l),u(p+c),n=0;n<c;n++,p++)n in l&&a(d,p,l[n]);else u(p+1),a(d,p++,l);return d.length=p,d}})}();var gS,yS,mS,bS={};function ES(){if(yS)return gS;yS=1;var t=Aw(),e=xw();return gS=Object.keys||function(n){return t(n,e)}}!function(){if(mS)return bS;mS=1;var t=aS(),e=dE(),n=ES();t({target:"Object",stat:!0,forced:Om()(function(){n(1)})},{keys:function(t){return n(e(t))}})}();var wS,SS,CS,DS={};!function(){if(CS)return DS;CS=1;var t=fS(),e=nw(),n=function(){if(SS)return wS;SS=1;var t=fS(),e=dS();return wS=t?{}.toString:function(){return"[object "+e(this)+"]"}}();t||e(Object.prototype,"toString",n,{unsafe:!0})}();var OS,AS,xS,TS,NS,PS,kS,IS,BS,FS,RS,_S,jS,LS,MS,zS={};function HS(){return AS?OS:(AS=1,OS={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 $S(){if(TS)return xS;TS=1;var t=mE()("span").classList,e=t&&t.constructor&&t.constructor.prototype;return xS=e===Object.prototype?void 0:e}function US(){if(PS)return NS;PS=1;var t=Eb(),e=bb();return NS=function(n){if("Function"===t(n))return e(n)}}function VS(){if(IS)return kS;IS=1;var t=US(),e=Rb(),n=xm(),r=t(t.bind);return kS=function(t,o){return e(t),void 0===o?t:n?r(t,o):function(){return t.apply(o,arguments)}},kS}function GS(){if(FS)return BS;FS=1;var t=VS(),e=bb(),n=wb(),r=dE(),o=Dw(),i=hS(),u=e([].push),a=function(e){var a=1===e,s=2===e,c=3===e,l=4===e,f=6===e,d=7===e,p=5===e||f;return function(h,v,g,y){for(var m,b,E=r(h),w=n(E),S=o(w),C=t(v,g),D=0,O=y||i,A=a?O(h,S):s||d?O(h,0):void 0;S>D;D++)if((p||D in w)&&(b=C(m=w[D],D,E),e))if(a)A[D]=b;else if(b)switch(e){case 3:return!0;case 5:return m;case 6:return D;case 2:u(A,m)}else switch(e){case 4:return!1;case 7:u(A,m)}return f?-1:c||l?l:A}};return BS={forEach:a(0),map:a(1),filter:a(2),some:a(3),every:a(4),find:a(5),findIndex:a(6),filterReject:a(7)}}function WS(){if(_S)return RS;_S=1;var t=Om();return RS=function(e,n){var r=[][e];return!!r&&t(function(){r.call(null,n||function(){return 1},1)})}}
20
- /*!
21
- * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
22
- *
23
- * Copyright (c) 2014-2017, Jon Schlinkert.
24
- * Released under the MIT License.
25
- */function qS(t){return"[object Object]"===Object.prototype.toString.call(t)}!function(){if(MS)return zS;MS=1;var t=vm(),e=HS(),n=$S(),r=function(){if(LS)return jS;LS=1;var t=GS().forEach,e=WS()("forEach");return jS=e?[].forEach:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)},jS}(),o=IE(),i=function(t){if(t&&t.forEach!==r)try{o(t,"forEach",r)}catch(e){t.forEach=r}};for(var u in e)e[u]&&i(t[u]&&t[u].prototype);i(n)}();var KS=t=>function(t){var e,n;return!1!==qS(t)&&(void 0===(e=t.constructor)||!1!==qS(n=e.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}(t)&&Array.isArray(t.redos)&&Array.isArray(t.undos)&&(0===t.redos.length||yp.Operation.isOperationList(t.redos[0].operations))&&(0===t.undos.length||yp.Operation.isOperationList(t.undos[0].operations)),YS=new WeakMap,XS=new WeakMap,JS={isHistoryEditor:t=>KS(t.history)&&yp.Editor.isEditor(t),isMerging:t=>XS.get(t),isSaving:t=>YS.get(t),redo(t){t.redo()},undo(t){t.undo()},withMerging(t,e){var n=JS.isMerging(t);XS.set(t,!0),e(),XS.set(t,n)},withoutMerging(t,e){var n=JS.isMerging(t);XS.set(t,!1),e(),XS.set(t,n)},withoutSaving(t,e){var n=JS.isSaving(t);YS.set(t,!1),e(),YS.set(t,n)}},ZS=t=>{var e=t,{apply:n}=e;return e.history={undos:[],redos:[]},e.redo=()=>{var{history:t}=e,{redos:n}=t;if(n.length>0){var r=n[n.length-1];r.selectionBefore&&yp.Transforms.setSelection(e,r.selectionBefore),JS.withoutSaving(e,()=>{yp.Editor.withoutNormalizing(e,()=>{for(var t of r.operations)e.apply(t)})}),t.redos.pop(),e.writeHistory("undos",r)}},e.undo=()=>{var{history:t}=e,{undos:n}=t;if(n.length>0){var r=n[n.length-1];JS.withoutSaving(e,()=>{yp.Editor.withoutNormalizing(e,()=>{var t=r.operations.map(yp.Operation.inverse).reverse();for(var n of t)e.apply(n);r.selectionBefore&&yp.Transforms.setSelection(e,r.selectionBefore)})}),e.writeHistory("redos",r),t.undos.pop()}},e.apply=t=>{var{operations:r,history:o}=e,{undos:i}=o,u=i[i.length-1],a=u&&u.operations[u.operations.length-1],s=JS.isSaving(e),c=JS.isMerging(e);if(null==s&&(s=tC(t)),s){if(null==c&&(c=null!=u&&(0!==r.length||QS(t,a))),u&&c)u.operations.push(t);else{var l={operations:[t],selectionBefore:e.selection};e.writeHistory("undos",l)}for(;i.length>100;)i.shift();o.redos=[]}n(t)},e.writeHistory=(t,n)=>{e.history[t].push(n)},e},QS=(t,e)=>!(!e||"insert_text"!==t.type||"insert_text"!==e.type||t.offset!==e.offset+e.text.length||!yp.Path.equals(t.path,e.path))||!(!e||"remove_text"!==t.type||"remove_text"!==e.type||t.offset+t.text.length!==e.offset||!yp.Path.equals(t.path,e.path)),tC=(t,e)=>"set_selection"!==t.type,eC=function(t,e){return eC=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},eC(t,e)};function nC(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}eC(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var rC=function(){return rC=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},rC.apply(this,arguments)};function oC(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}function iC(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 uC(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 aC(t,e,n){if(2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError;var sC={},cC="destroyed",lC="change",fC="scroll",dC={};var pC,hC,vC,gC,yC,mC,bC,EC,wC,SC,CC,DC,OC,AC,xC,TC,NC,PC,kC,IC,BC,FC,RC,_C,jC,LC,MC,zC,HC,$C,UC,VC,GC,WC={};function qC(){if(vC)return hC;vC=1;var t=xb();return hC=t("document","documentElement")}function KC(){if(yC)return gC;yC=1;var t,e=PE(),n=function(){if(pC)return WC;pC=1;var t=Am(),e=NE(),n=kE(),r=PE(),o=Db(),i=ES();return WC.f=t&&!e?Object.defineProperties:function(t,e){r(t);for(var u,a=o(e),s=i(e),c=s.length,l=0;c>l;)n.f(t,u=s[l++],a[u]);return t},WC}(),r=xw(),o=QE(),i=qC(),u=mE(),a=ZE(),s="prototype",c="script",l=a("IE_PROTO"),f=function(){},d=function(t){return"<"+c+">"+t+"</"+c+">"},p=function(t){t.write(d("")),t.close();var e=t.parentWindow.Object;return t=null,e},h=function(){try{t=new ActiveXObject("htmlfile")}catch(t){}var e,n,o;h="undefined"!=typeof document?document.domain&&t?p(t):(n=u("iframe"),o="java"+c+":",n.style.display="none",i.appendChild(n),n.src=String(o),(e=n.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F):p(t);for(var a=r.length;a--;)delete h[s][r[a]];return h()};return o[l]=!0,gC=Object.create||function(t,r){var o;return null!==t?(f[s]=e(t),o=new f,f[s]=null,o[l]=t):o=h(),void 0===r?o:n.f(o,r)}}function YC(){if(bC)return mC;bC=1;var t=vE(),e=KC(),n=kE().f,r=t("unscopables"),o=Array.prototype;return void 0===o[r]&&n(o,r,{configurable:!0,value:e(null)}),mC=function(t){o[r][t]=!0}}function XC(){return wC?EC:(wC=1,EC={})}function JC(){if(OC)return DC;OC=1;var t=pE(),e=Ob(),n=dE(),r=ZE(),o=function(){if(CC)return SC;CC=1;var t=Om();return SC=!t(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})}(),i=r("IE_PROTO"),u=Object,a=u.prototype;return DC=o?u.getPrototypeOf:function(r){var o=n(r);if(t(o,i))return o[i];var s=o.constructor;return e(s)&&o instanceof s?s.prototype:o instanceof u?a:null}}function ZC(){if(xC)return AC;xC=1;var t,e,n,r=Om(),o=Ob(),i=Ab(),u=KC(),a=JC(),s=nw(),c=vE(),l=sE(),f=c("iterator"),d=!1;return[].keys&&("next"in(n=[].keys())?(e=a(a(n)))!==Object.prototype&&(t=e):d=!0),!i(t)||r(function(){var e={};return t[f].call(e)!==e})?t={}:l&&(t=u(t)),o(t[f])||s(t,f,function(){return this}),AC={IteratorPrototype:t,BUGGY_SAFARI_ITERATORS:d}}function QC(){if(NC)return TC;NC=1;var t=kE().f,e=pE(),n=vE()("toStringTag");return TC=function(r,o,i){r&&!i&&(r=r.prototype),r&&!e(r,n)&&t(r,n,{configurable:!0,value:o})}}function tD(){if(jC)return _C;jC=1;var t=function(){if(RC)return FC;RC=1;var t=Ab();return FC=function(e){return t(e)||null===e}}(),e=String,n=TypeError;return _C=function(r){if(t(r))return r;throw new n("Can't set "+e(r)+" as a prototype")}}function eD(){if(MC)return LC;MC=1;var t=function(){if(BC)return IC;BC=1;var t=bb(),e=Rb();return IC=function(n,r,o){try{return t(e(Object.getOwnPropertyDescriptor(n,r)[o]))}catch(t){}}}(),e=Ab(),n=Cb(),r=tD();return LC=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 n(t),r(u),e(t)?(i?o(t,u):t.__proto__=u,t):t}}():void 0)}function nD(){if(HC)return zC;HC=1;var t=aS(),e=Tm(),n=sE(),r=YE(),o=Ob(),i=function(){if(kC)return PC;kC=1;var t=ZC().IteratorPrototype,e=KC(),n=mb(),r=QC(),o=XC(),i=function(){return this};return PC=function(u,a,s,c){var l=a+" Iterator";return u.prototype=e(t,{next:n(+!c,s)}),r(u,l,!1,!0),o[l]=i,u}}(),u=JC(),a=eD(),s=QC(),c=IE(),l=nw(),f=vE(),d=XC(),p=ZC(),h=r.PROPER,v=r.CONFIGURABLE,g=p.IteratorPrototype,y=p.BUGGY_SAFARI_ITERATORS,m=f("iterator"),b="keys",E="values",w="entries",S=function(){return this};return zC=function(r,f,p,C,D,O,A){i(p,f,C);var x,T,N,P=function(t){if(t===D&&R)return R;if(!y&&t&&t in B)return B[t];switch(t){case b:case E:case w:return function(){return new p(this,t)}}return function(){return new p(this)}},k=f+" Iterator",I=!1,B=r.prototype,F=B[m]||B["@@iterator"]||D&&B[D],R=!y&&F||P(D),_="Array"===f&&B.entries||F;if(_&&(x=u(_.call(new r)))!==Object.prototype&&x.next&&(n||u(x)===g||(a?a(x,g):o(x[m])||l(x,m,S)),s(x,k,!0,!0),n&&(d[k]=S)),h&&D===E&&F&&F.name!==E&&(!n&&v?c(B,"name",E):(I=!0,R=function(){return e(F,this)})),D)if(T={values:P(E),keys:O?R:P(b),entries:P(w)},A)for(N in T)(y||I||!(N in B))&&l(B,N,T[N]);else t({target:f,proto:!0,forced:y||I},T);return n&&!A||B[m]===R||l(B,m,R,{name:D}),d[f]=R,T}}function rD(){return UC?$C:(UC=1,$C=function(t,e){return{value:t,done:e}})}function oD(){if(GC)return VC;GC=1;var t=Db(),e=YC(),n=XC(),r=tw(),o=kE().f,i=nD(),u=rD(),a=sE(),s=Am(),c="Array Iterator",l=r.set,f=r.getterFor(c);VC=i(Array,"Array",function(e,n){l(this,{type:c,target:t(e),index:0,kind:n})},function(){var t=f(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=null,u(void 0,!0);switch(t.kind){case"keys":return u(n,!1);case"values":return u(e[n],!1)}return u([n,e[n]],!1)},"values");var d=n.Arguments=n.Array;if(e("keys"),e("values"),e("entries"),!a&&s&&"values"!==d.name)try{o(d,"name",{value:"values"})}catch(t){}return VC}oD();var iD,uD,aD,sD,cD,lD={};function fD(){if(uD)return iD;uD=1;var t=dS(),e=String;return iD=function(n){if("Symbol"===t(n))throw new TypeError("Cannot convert a Symbol value to a string");return e(n)}}function dD(){if(sD)return aD;sD=1;var t=bb(),e=ww(),n=fD(),r=Cb(),o=t("".charAt),i=t("".charCodeAt),u=t("".slice),a=function(t){return function(a,s){var c,l,f=n(r(a)),d=e(s),p=f.length;return d<0||d>=p?t?"":void 0:(c=i(f,d))<55296||c>56319||d+1===p||(l=i(f,d+1))<56320||l>57343?t?o(f,d):c:t?u(f,d,d+2):l-56320+(c-55296<<10)+65536}};return aD={codeAt:a(!1),charAt:a(!0)}}!function(){if(cD)return lD;cD=1;var t=dD().charAt,e=fD(),n=tw(),r=nD(),o=rD(),i="String Iterator",u=n.set,a=n.getterFor(i);r(String,"String",function(t){u(this,{type:i,string:e(t),index:0})},function(){var e,n=a(this),r=n.string,i=n.index;return i>=r.length?o(void 0,!0):(e=t(r,i),n.index+=e.length,o(e,!1))})}();var pD,hD,vD,gD,yD={};function mD(){if(hD)return pD;hD=1;var t=Om();return pD=!t(function(){return Object.isExtensible(Object.preventExtensions({}))})}function bD(){if(gD)return vD;gD=1;var t=nw();return vD=function(e,n,r){for(var o in n)t(e,o,n[o],r);return e}}var ED,wD,SD,CD,DD,OD,AD,xD,TD,ND,PD,kD,ID,BD,FD,RD,_D,jD,LD,MD,zD,HD,$D,UD,VD,GD,WD,qD,KD,YD,XD={exports:{}},JD={};function ZD(){if(wD)return ED;wD=1;var t=bb();return ED=t([].slice)}function QD(){if(xD)return XD.exports;xD=1;var t=aS(),e=bb(),n=QE(),r=Ab(),o=pE(),i=kE().f,u=Tw(),a=function(){if(SD)return JD;SD=1;var t=Eb(),e=Db(),n=Tw().f,r=ZD(),o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];return JD.f=function(i){return o&&"Window"===t(i)?function(t){try{return n(t)}catch(t){return r(o)}}(i):n(e(i))},JD}(),s=function(){if(AD)return OD;AD=1;var t=Om(),e=Ab(),n=Eb(),r=function(){if(DD)return CD;DD=1;var t=Om();return CD=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 OD=i||r?function(t){return!!e(t)&&(!r||"ArrayBuffer"!==n(t))&&(!o||o(t))}:o}(),c=hE(),l=mD(),f=!1,d=c("meta"),p=0,h=function(t){i(t,d,{value:{objectID:"O"+p++,weakData:{}}})},v=XD.exports={enable:function(){v.enable=function(){},f=!0;var n=u.f,r=e([].splice),o={};o[d]=1,n(o).length&&(u.f=function(t){for(var e=n(t),o=0,i=e.length;o<i;o++)if(e[o]===d){r(e,o,1);break}return e},t({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:a.f}))},fastKey:function(t,e){if(!r(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,d)){if(!s(t))return"F";if(!e)return"E";h(t)}return t[d].objectID},getWeakData:function(t,e){if(!o(t,d)){if(!s(t))return!0;if(!e)return!1;h(t)}return t[d].weakData},onFreeze:function(t){return l&&f&&s(t)&&!o(t,d)&&h(t),t}};return n[d]=!0,XD.exports}function tO(){if(ND)return TD;ND=1;var t=vE(),e=XC(),n=t("iterator"),r=Array.prototype;return TD=function(t){return void 0!==t&&(e.Array===t||r[n]===t)}}function eO(){if(kD)return PD;kD=1;var t=dS(),e=_b(),n=Sb(),r=XC(),o=vE()("iterator");return PD=function(i){if(!n(i))return e(i,o)||e(i,"@@iterator")||r[t(i)]}}function nO(){if(BD)return ID;BD=1;var t=Tm(),e=Rb(),n=PE(),r=Fb(),o=eO(),i=TypeError;return ID=function(u,a){var s=arguments.length<2?o(u):a;if(e(s))return n(t(s,u));throw new i(r(u)+" is not iterable")},ID}function rO(){if(RD)return FD;RD=1;var t=Tm(),e=PE(),n=_b();return FD=function(r,o,i){var u,a;e(r);try{if(!(u=n(r,"return"))){if("throw"===o)throw i;return i}u=t(u,r)}catch(t){a=!0,u=t}if("throw"===o)throw i;if(a)throw u;return e(u),i}}function oO(){if(jD)return _D;jD=1;var t=VS(),e=Tm(),n=PE(),r=Fb(),o=tO(),i=Dw(),u=Tb(),a=nO(),s=eO(),c=rO(),l=TypeError,f=function(t,e){this.stopped=t,this.result=e},d=f.prototype;return _D=function(p,h,v){var g,y,m,b,E,w,S,C=v&&v.that,D=!(!v||!v.AS_ENTRIES),O=!(!v||!v.IS_RECORD),A=!(!v||!v.IS_ITERATOR),x=!(!v||!v.INTERRUPTED),T=t(h,C),N=function(t){return g&&c(g,"normal"),new f(!0,t)},P=function(t){return D?(n(t),x?T(t[0],t[1],N):T(t[0],t[1])):x?T(t,N):T(t)};if(O)g=p.iterator;else if(A)g=p;else{if(!(y=s(p)))throw new l(r(p)+" is not iterable");if(o(y)){for(m=0,b=i(p);b>m;m++)if((E=P(p[m]))&&u(d,E))return E;return new f(!1)}g=a(p,y)}for(w=O?p.next:g.next;!(S=e(w,g)).done;){try{E=P(S.value)}catch(t){c(g,"throw",t)}if("object"==typeof E&&E&&u(d,E))return E}return new f(!1)}}function iO(){if(MD)return LD;MD=1;var t=Tb(),e=TypeError;return LD=function(n,r){if(t(r,n))return n;throw new e("Incorrect invocation")}}function uO(){if(HD)return zD;HD=1;var t=vE()("iterator"),e=!1;try{var n=0,r={next:function(){return{done:!!n++}},return:function(){e=!0}};r[t]=function(){return this},Array.from(r,function(){throw 2})}catch(t){}return zD=function(n,r){try{if(!r&&!e)return!1}catch(t){return!1}var o=!1;try{var i={};i[t]=function(){return{next:function(){return{done:o=!0}}}},n(i)}catch(t){}return o}}function aO(){if(UD)return $D;UD=1;var t=Ob(),e=Ab(),n=eD();return $D=function(r,o,i){var u,a;return n&&t(u=o.constructor)&&u!==i&&e(a=u.prototype)&&a!==i.prototype&&n(r,a),r}}function sO(){if(GD)return VD;GD=1;var t=aS(),e=vm(),n=bb(),r=uS(),o=nw(),i=QD(),u=oO(),a=iO(),s=Ob(),c=Sb(),l=Ab(),f=Om(),d=uO(),p=QC(),h=aO();return VD=function(v,g,y){var m=-1!==v.indexOf("Map"),b=-1!==v.indexOf("Weak"),E=m?"set":"add",w=e[v],S=w&&w.prototype,C=w,D={},O=function(t){var e=n(S[t]);o(S,t,"add"===t?function(t){return e(this,0===t?0:t),this}:"delete"===t?function(t){return!(b&&!l(t))&&e(this,0===t?0:t)}:"get"===t?function(t){return b&&!l(t)?void 0:e(this,0===t?0:t)}:"has"===t?function(t){return!(b&&!l(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this})};if(r(v,!s(w)||!(b||S.forEach&&!f(function(){(new w).entries().next()}))))C=y.getConstructor(g,v,m,E),i.enable();else if(r(v,!0)){var A=new C,x=A[E](b?{}:-0,1)!==A,T=f(function(){A.has(1)}),N=d(function(t){new w(t)}),P=!b&&f(function(){for(var t=new w,e=5;e--;)t[E](e,e);return!t.has(-0)});N||((C=g(function(t,e){a(t,S);var n=h(new w,t,C);return c(e)||u(e,n[E],{that:n,AS_ENTRIES:m}),n})).prototype=S,S.constructor=C),(T||P)&&(O("delete"),O("has"),m&&O("get")),(P||x)&&O(E),b&&S.clear&&delete S.clear}return D[v]=C,t({global:!0,constructor:!0,forced:C!==w},D),p(C,v),b||y.setStrong(C,v,m),C},VD}YD||(YD=1,function(){if(KD)return yD;KD=1;var t,e=mD(),n=vm(),r=bb(),o=bD(),i=QD(),u=sO(),a=function(){if(qD)return WD;qD=1;var t=bb(),e=bD(),n=QD().getWeakData,r=iO(),o=PE(),i=Sb(),u=Ab(),a=oO(),s=GS(),c=pE(),l=tw(),f=l.set,d=l.getterFor,p=s.find,h=s.findIndex,v=t([].splice),g=0,y=function(t){return t.frozen||(t.frozen=new m)},m=function(){this.entries=[]},b=function(t,e){return p(t.entries,function(t){return t[0]===e})};return m.prototype={get:function(t){var e=b(this,t);if(e)return e[1]},has:function(t){return!!b(this,t)},set:function(t,e){var n=b(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=h(this.entries,function(e){return e[0]===t});return~e&&v(this.entries,e,1),!!~e}},WD={getConstructor:function(t,s,l,p){var h=t(function(t,e){r(t,v),f(t,{type:s,id:g++,frozen:null}),i(e)||a(e,t[p],{that:t,AS_ENTRIES:l})}),v=h.prototype,m=d(s),b=function(t,e,r){var i=m(t),u=n(o(e),!0);return!0===u?y(i).set(e,r):u[i.id]=r,t};return e(v,{delete:function(t){var e=m(this);if(!u(t))return!1;var r=n(t);return!0===r?y(e).delete(t):r&&c(r,e.id)&&delete r[e.id]},has:function(t){var e=m(this);if(!u(t))return!1;var r=n(t);return!0===r?y(e).has(t):r&&c(r,e.id)}}),e(v,l?{get:function(t){var e=m(this);if(u(t)){var r=n(t);if(!0===r)return y(e).get(t);if(r)return r[e.id]}},set:function(t,e){return b(this,t,e)}}:{add:function(t){return b(this,t,!0)}}),h}}}(),s=Ab(),c=tw().enforce,l=Om(),f=JE(),d=Object,p=Array.isArray,h=d.isExtensible,v=d.isFrozen,g=d.isSealed,y=d.freeze,m=d.seal,b=!n.ActiveXObject&&"ActiveXObject"in n,E=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},w=u("WeakMap",E,a),S=w.prototype,C=r(S.set);if(f)if(b){t=a.getConstructor(E,"WeakMap",!0),i.enable();var D=r(S.delete),O=r(S.has),A=r(S.get);o(S,{delete:function(e){if(s(e)&&!h(e)){var n=c(this);return n.frozen||(n.frozen=new t),D(this,e)||n.frozen.delete(e)}return D(this,e)},has:function(e){if(s(e)&&!h(e)){var n=c(this);return n.frozen||(n.frozen=new t),O(this,e)||n.frozen.has(e)}return O(this,e)},get:function(e){if(s(e)&&!h(e)){var n=c(this);return n.frozen||(n.frozen=new t),O(this,e)?A(this,e):n.frozen.get(e)}return A(this,e)},set:function(e,n){if(s(e)&&!h(e)){var r=c(this);r.frozen||(r.frozen=new t),O(this,e)?C(this,e,n):r.frozen.set(e,n)}else C(this,e,n);return this}})}else e&&l(function(){var t=y([]);return C(new w,t,1),!v(t)})&&o(S,{set:function(t,e){var n;return p(t)&&(v(t)?n=y:g(t)&&(n=m)),C(this,t,e),n&&n(t),this}})}());var cO,lO={};!function(){if(cO)return lO;cO=1;var t=vm(),e=HS(),n=$S(),r=oD(),o=IE(),i=QC(),u=vE()("iterator"),a=r.values,s=function(t,n){if(t){if(t[u]!==a)try{o(t,u,a)}catch(e){t[u]=a}if(i(t,n,!0),e[n])for(var s in r)if(t[s]!==r[s])try{o(t,s,r[s])}catch(e){t[s]=r[s]}}};for(var c in e)s(t[c]&&t[c].prototype,c);s(n,"DOMTokenList")}();var fO,dO=new WeakMap,pO=new WeakMap,hO=new WeakMap,vO=new WeakMap,gO=new WeakMap,yO=new WeakMap,mO=new WeakMap,bO=new WeakMap,EO=new WeakMap,wO=new WeakMap,SO=new WeakMap,CO=new WeakMap,DO=new WeakMap,OO=new WeakMap,AO=new WeakMap,xO=new WeakMap,TO=new WeakMap,NO=new WeakMap,PO=new WeakMap,kO=new WeakMap,IO=new WeakMap,BO=new WeakMap,FO=new WeakMap,RO=new WeakMap,_O=new WeakMap,jO=new WeakMap,LO=new WeakMap,MO=function(t){var e=t;return e.getAllMenuKeys=function(){var t=[];for(var e in dC)t.push(e);return t},e.getConfig=function(){var t=wO.get(e);if(null==t)throw new Error("Can not get editor config");return t},e.getMenuConfig=function(t){var n=e.getConfig().MENU_CONF;return(void 0===n?{}:n)[t]||{}},e.alert=function(t,n){void 0===n&&(n="info");var r=e.getConfig().customAlert;r&&r(t,n)},e},zO={};!function(){if(fO)return zO;fO=1;var t=aS(),e=GS().filter;t({target:"Array",proto:!0,forced:!vS()("filter")},{filter:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}})}();var HO,$O,UO,VO,GO,WO={};!function(){if(GO)return WO;GO=1;var t=aS(),e=function(){if(VO)return UO;VO=1;var t=VS(),e=Tm(),n=dE(),r=function(){if($O)return HO;$O=1;var t=PE(),e=rO();return HO=function(n,r,o,i){try{return i?r(t(o)[0],o[1]):r(o)}catch(t){e(n,"throw",t)}}}(),o=tO(),i=pS(),u=Dw(),a=lS(),s=nO(),c=eO(),l=Array;return UO=function(f){var d=n(f),p=i(this),h=arguments.length,v=h>1?arguments[1]:void 0,g=void 0!==v;g&&(v=t(v,h>2?arguments[2]:void 0));var y,m,b,E,w,S,C=c(d),D=0;if(!C||this===l&&o(C))for(y=u(d),m=p?new this(y):l(y);y>D;D++)S=g?v(d[D],D):d[D],a(m,D,S);else for(m=p?new this:[],w=(E=s(d,C)).next;!(b=e(w,E)).done;D++)S=g?r(E,v,[b.value,D],!0):b.value,a(m,D,S);return m.length=D,m},UO}();t({target:"Array",stat:!0,forced:!uO()(function(t){Array.from(t)})},{from:e})}();var qO,KO={};!function(){if(qO)return KO;qO=1;var t=aS(),e=Ow().includes,n=Om(),r=YC();t({target:"Array",proto:!0,forced:n(function(){return!Array(1).includes()})},{includes:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}}),r("includes")}();var YO,XO={};!function(){if(YO)return XO;YO=1;var t=aS(),e=bb(),n=wb(),r=Db(),o=WS(),i=e([].join);t({target:"Array",proto:!0,forced:n!==Object||!o("join",",")},{join:function(t){return i(r(this),void 0===t?",":t)}})}();var JO,ZO={};!function(){if(JO)return ZO;JO=1;var t=aS(),e=GS().map;t({target:"Array",proto:!0,forced:!vS()("map")},{map:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}})}();var QO,tA,eA,nA,rA,oA,iA,uA={};function aA(){if(tA)return QO;tA=1;var t=Ab(),e=Eb(),n=vE()("match");return QO=function(r){var o;return t(r)&&(void 0!==(o=r[n])?!!o:"RegExp"===e(r))}}function sA(){if(nA)return eA;nA=1;var t=aA(),e=TypeError;return eA=function(n){if(t(n))throw new e("The method doesn't accept regular expressions");return n}}function cA(){if(oA)return rA;oA=1;var t=vE()("match");return rA=function(e){var n=/./;try{"/./"[e](n)}catch(r){try{return n[t]=!1,"/./"[e](n)}catch(t){}}return!1}}!function(){if(iA)return uA;iA=1;var t=aS(),e=bb(),n=sA(),r=Cb(),o=fD(),i=cA(),u=e("".indexOf);t({target:"String",proto:!0,forced:!i("includes")},{includes:function(t){return!!~u(o(r(this)),o(n(t)),arguments.length>1?arguments[1]:void 0)}})}();var lA,fA,dA,pA,hA,vA,gA,yA={};function mA(){return fA?lA:(fA=1,lA="\t\n\v\f\r                 \u2028\u2029\ufeff")}!function(){if(gA)return yA;gA=1;var t=aS(),e=function(){if(pA)return dA;pA=1;var t=bb(),e=Cb(),n=fD(),r=mA(),o=t("".replace),i=RegExp("^["+r+"]+"),u=RegExp("(^|[^"+r+"])["+r+"]+$"),a=function(t){return function(r){var a=n(e(r));return 1&t&&(a=o(a,i,"")),2&t&&(a=o(a,u,"$1")),a}};return dA={start:a(1),end:a(2),trim:a(3)}}().trim,n=function(){if(vA)return hA;vA=1;var t=YE().PROPER,e=Om(),n=mA();return hA=function(r){return e(function(){return!!n[r]()||"​…᠎"!=="​…᠎"[r]()||t&&n[r].name!==r})}}();t({target:"String",proto:!0,forced:n("trim")},{trim:function(){return e(this)}})}();var bA,EA,wA,SA,CA,DA,OA,AA,xA,TA,NA,PA,kA,IA={};function BA(){if(EA)return bA;EA=1;var t=bb(),e=Cb(),n=fD(),r=/"/g,o=t("".replace);return bA=function(t,i,u,a){var s=n(e(t)),c="<"+i;return""!==u&&(c+=" "+u+'="'+o(n(a),r,"&quot;")+'"'),c+">"+s+"</"+i+">"}}function FA(){if(SA)return wA;SA=1;var t=Om();return wA=function(e){return t(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})}}function RA(){if(OA)return DA;OA=1;var t=ew(),e=kE();return DA=function(n,r,o){return o.get&&t(o.get,r,{getter:!0}),o.set&&t(o.set,r,{setter:!0}),e.f(n,r,o)}}function _A(){if(xA)return AA;xA=1;var t=xb(),e=RA(),n=vE(),r=Am(),o=n("species");return AA=function(n){var i=t(n);r&&i&&!i[o]&&e(i,o,{configurable:!0,get:function(){return this}})}}!function(){if(CA)return IA;CA=1;var t=aS(),e=BA();t({target:"String",proto:!0,forced:FA()("anchor")},{anchor:function(t){return e(this,"a","name",t)}})}(),kA||(kA=1,PA||(PA=1,sO()("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},function(){if(NA)return TA;NA=1;var t=KC(),e=RA(),n=bD(),r=VS(),o=iO(),i=Sb(),u=oO(),a=nD(),s=rD(),c=_A(),l=Am(),f=QD().fastKey,d=tw(),p=d.set,h=d.getterFor;return TA={getConstructor:function(a,s,c,d){var v=a(function(e,n){o(e,g),p(e,{type:s,index:t(null),first:null,last:null,size:0}),l||(e.size=0),i(n)||u(n,e[d],{that:e,AS_ENTRIES:c})}),g=v.prototype,y=h(s),m=function(t,e,n){var r,o,i=y(t),u=b(t,e);return u?u.value=n:(i.last=u={index:o=f(e,!0),key:e,value:n,previous:r=i.last,next:null,removed:!1},i.first||(i.first=u),r&&(r.next=u),l?i.size++:t.size++,"F"!==o&&(i.index[o]=u)),t},b=function(t,e){var n,r=y(t),o=f(e);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key===e)return n};return n(g,{clear:function(){for(var e=y(this),n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=null),n=n.next;e.first=e.last=null,e.index=t(null),l?e.size=0:this.size=0},delete:function(t){var e=this,n=y(e),r=b(e,t);if(r){var o=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),n.first===r&&(n.first=o),n.last===r&&(n.last=i),l?n.size--:e.size--}return!!r},forEach:function(t){for(var e,n=y(this),o=r(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:n.first;)for(o(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!b(this,t)}}),n(g,c?{get:function(t){var e=b(this,t);return e&&e.value},set:function(t,e){return m(this,0===t?0:t,e)}}:{add:function(t){return m(this,t=0===t?0:t,t)}}),l&&e(g,"size",{configurable:!0,get:function(){return y(this).size}}),v},setStrong:function(t,e,n){var r=e+" Iterator",o=h(e),i=h(r);a(t,e,function(t,e){p(this,{type:r,target:t,state:o(t),kind:e,last:null})},function(){for(var t=i(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?s("keys"===e?n.key:"values"===e?n.value:[n.key,n.value],!1):(t.target=null,s(void 0,!0))},n?"entries":"values",!n,!0),c(e)}},TA}())));var jA,LA,MA,zA,HA,$A,UA,VA,GA,WA,qA,KA=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]),YA={};function XA(){if(LA)return jA;LA=1;var t=PE();return jA=function(){var e=t(this),n="";return e.hasIndices&&(n+="d"),e.global&&(n+="g"),e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.dotAll&&(n+="s"),e.unicode&&(n+="u"),e.unicodeSets&&(n+="v"),e.sticky&&(n+="y"),n}}function JA(){if(zA)return MA;zA=1;var t=Om(),e=vm().RegExp,n=t(function(){var t=e("a","y");return t.lastIndex=2,null!==t.exec("abcd")}),r=n||t(function(){return!e("a","y").sticky}),o=n||t(function(){var t=e("^r","gy");return t.lastIndex=2,null!==t.exec("str")});return MA={BROKEN_CARET:o,MISSED_STICKY:r,UNSUPPORTED_Y:n}}function ZA(){if($A)return HA;$A=1;var t=Om(),e=vm().RegExp;return HA=t(function(){var t=e(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})}function QA(){if(VA)return UA;VA=1;var t=Om(),e=vm().RegExp;return UA=t(function(){var t=e("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})}function tx(){if(WA)return GA;WA=1;var t,e,n=Tm(),r=bb(),o=fD(),i=XA(),u=JA(),a=fE(),s=KC(),c=tw().get,l=ZA(),f=QA(),d=a("native-string-replace",String.prototype.replace),p=RegExp.prototype.exec,h=p,v=r("".charAt),g=r("".indexOf),y=r("".replace),m=r("".slice),b=(e=/b*/g,n(p,t=/a/,"a"),n(p,e,"a"),0!==t.lastIndex||0!==e.lastIndex),E=u.BROKEN_CARET,w=void 0!==/()??/.exec("")[1];return(b||w||E||l||f)&&(h=function(t){var e,r,u,a,l,f,S,C=this,D=c(C),O=o(t),A=D.raw;if(A)return A.lastIndex=C.lastIndex,e=n(h,A,O),C.lastIndex=A.lastIndex,e;var x=D.groups,T=E&&C.sticky,N=n(i,C),P=C.source,k=0,I=O;if(T&&(N=y(N,"y",""),-1===g(N,"g")&&(N+="g"),I=m(O,C.lastIndex),C.lastIndex>0&&(!C.multiline||C.multiline&&"\n"!==v(O,C.lastIndex-1))&&(P="(?: "+P+")",I=" "+I,k++),r=new RegExp("^(?:"+P+")",N)),w&&(r=new RegExp("^"+P+"$(?!\\s)",N)),b&&(u=C.lastIndex),a=n(p,T?r:C,I),T?a?(a.input=m(a.input,k),a[0]=m(a[0],k),a.index=C.lastIndex,C.lastIndex+=a[0].length):C.lastIndex=0:b&&a&&(C.lastIndex=C.global?a.index+a[0].length:u),w&&a&&a.length>1&&n(d,a[0],r,function(){for(l=1;l<arguments.length-2;l++)void 0===arguments[l]&&(a[l]=void 0)}),a&&x)for(a.groups=f=s(null),l=0;l<x.length;l++)f[(S=x[l])[0]]=a[S[1]];return a}),GA=h}function ex(){if(qA)return YA;qA=1;var t=aS(),e=tx();return t({target:"RegExp",proto:!0,forced:/./.exec!==e},{exec:e}),YA}ex();var nx,rx,ox,ix,ux,ax,sx,cx,lx,fx,dx,px={};function hx(){if(rx)return nx;rx=1,ex();var t=Tm(),e=nw(),n=tx(),r=Om(),o=vE(),i=IE(),u=o("species"),a=RegExp.prototype;return nx=function(s,c,l,f){var d=o(s),p=!r(function(){var t={};return t[d]=function(){return 7},7!==""[s](t)}),h=p&&!r(function(){var t=!1,e=/a/;return"split"===s&&((e={}).constructor={},e.constructor[u]=function(){return e},e.flags="",e[d]=/./[d]),e.exec=function(){return t=!0,null},e[d](""),!t});if(!p||!h||l){var v=/./[d],g=c(d,""[s],function(e,r,o,i,u){var s=r.exec;return s===n||s===a.exec?p&&!u?{done:!0,value:t(v,r,o,i)}:{done:!0,value:t(e,o,r,i)}:{done:!1}});e(String.prototype,s,g[0]),e(a,d,g[1])}f&&i(a[d],"sham",!0)},nx}function vx(){if(ax)return ux;ax=1;var t=PE(),e=function(){if(ix)return ox;ix=1;var t=pS(),e=Fb(),n=TypeError;return ox=function(r){if(t(r))return r;throw new n(e(r)+" is not a constructor")}}(),n=Sb(),r=vE()("species");return ux=function(o,i){var u,a=t(o).constructor;return void 0===a||n(u=t(a)[r])?i:e(u)}}function gx(){if(cx)return sx;cx=1;var t=dD().charAt;return sx=function(e,n,r){return n+(r?t(e,n).length:1)}}function yx(){if(fx)return lx;fx=1;var t=Tm(),e=PE(),n=Ob(),r=Eb(),o=tx(),i=TypeError;return lx=function(u,a){var s=u.exec;if(n(s)){var c=t(s,u,a);return null!==c&&e(c),c}if("RegExp"===r(u))return t(o,u,a);throw new i("RegExp#exec called on incompatible receiver")}}!function(){if(dx)return px;dx=1;var t=Tm(),e=bb(),n=hx(),r=PE(),o=Ab(),i=Cb(),u=vx(),a=gx(),s=Cw(),c=fD(),l=_b(),f=yx(),d=JA(),p=Om(),h=d.UNSUPPORTED_Y,v=Math.min,g=e([].push),y=e("".slice),m=!p(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}),b="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;n("split",function(e,n,d){var p="0".split(void 0,0).length?function(e,r){return void 0===e&&0===r?[]:t(n,this,e,r)}:n;return[function(n,r){var u=i(this),a=o(n)?l(n,e):void 0;return a?t(a,n,u,r):t(p,c(u),n,r)},function(t,e){var o=r(this),i=c(t);if(!b){var l=d(p,o,i,e,p!==n);if(l.done)return l.value}var m=u(o,RegExp),E=o.unicode,w=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(h?"g":"y"),S=new m(h?"^(?:"+o.source+")":o,w),C=void 0===e?4294967295:e>>>0;if(0===C)return[];if(0===i.length)return null===f(S,i)?[i]:[];for(var D=0,O=0,A=[];O<i.length;){S.lastIndex=h?0:O;var x,T=f(S,h?y(i,O):i);if(null===T||(x=v(s(S.lastIndex+(h?O:0)),i.length))===D)O=a(i,O,E);else{if(g(A,y(i,D,O)),A.length===C)return A;for(var N=1;N<=T.length-1;N++)if(g(A,T[N]),A.length===C)return A;O=D=x}}return g(A,y(i,D)),A}]},b||!m,h)}();var mx,bx,Ex,wx,Sx={};!function(){if(Ex)return Sx;Ex=1;var t=aS(),e=function(){if(bx)return mx;bx=1;var t=sS(),e=Dw(),n=cS(),r=VS(),o=function(i,u,a,s,c,l,f,d){for(var p,h,v=c,g=0,y=!!f&&r(f,d);g<s;)g in a&&(p=y?y(a[g],g,u):a[g],l>0&&t(p)?(h=e(p),v=o(i,u,p,h,v,l-1)-1):(n(v+1),i[v]=p),v++),g++;return v};return mx=o}(),n=Rb(),r=dE(),o=Dw(),i=hS();t({target:"Array",proto:!0},{flatMap:function(t){var u,a=r(this),s=o(a);return n(t),(u=i(a,0)).length=e(u,a,a,s,0,1,t,arguments.length>1?arguments[1]:void 0),u}})}(),wx||(wx=1,YC()("flatMap"));var Cx,Dx={};!function(){if(Cx)return Dx;Cx=1;var t=aS(),e=BA();t({target:"String",proto:!0,forced:FA()("bold")},{bold:function(){return e(this,"b","","")}})}();var Ox,Ax={};!function(){if(Ox)return Ax;Ox=1;var t=aS(),e=BA();t({target:"String",proto:!0,forced:FA()("italics")},{italics:function(){return e(this,"i","","")}})}();var xx,Tx={};!function(){if(xx)return Tx;xx=1;var t=aS(),e=BA();t({target:"String",proto:!0,forced:FA()("sub")},{sub:function(){return e(this,"sub","","")}})}();var Nx,Px={};!function(){if(Nx)return Px;Nx=1;var t=aS(),e=BA();t({target:"String",proto:!0,forced:FA()("sup")},{sup:function(){return e(this,"sup","","")}})}();var kx,Ix={};!function(){if(kx)return Ix;kx=1;var t=aS(),e=GS().find,n=YC(),r="find",o=!0;r in[]&&Array(1)[r](function(){o=!1}),t({target:"Array",proto:!0,forced:o},{find:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}}),n(r)}();var Bx,Fx,Rx={};Fx||(Fx=1,function(){if(Bx)return Rx;Bx=1;var t=aS(),e=vm();t({global:!0,forced:e.globalThis!==e},{globalThis:e})}());const _x=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];var jx,Lx,Mx,zx,Hx,$x,Ux,Vx,Gx,Wx,qx,Kx,Yx,Xx,Jx,Zx,Qx,tT,eT,nT,rT,oT,iT,uT,aT,sT,cT,lT,fT,dT,pT,hT,vT={};function gT(){if(Lx)return jx;Lx=1;var t=vm(),e=Nb(),n=Eb(),r=function(t){return e.slice(0,t.length)===t};return jx=r("Bun/")?"BUN":r("Cloudflare-Workers")?"CLOUDFLARE":r("Deno/")?"DENO":r("Node.js/")?"NODE":t.Bun&&"string"==typeof Bun.version?"BUN":t.Deno&&"object"==typeof Deno.version?"DENO":"process"===n(t.process)?"NODE":t.window&&t.document?"BROWSER":"REST"}function yT(){if(zx)return Mx;zx=1;var t=gT();return Mx="NODE"===t}function mT(){if(Vx)return Ux;Vx=1;var t=xm(),e=Function.prototype,n=e.apply,r=e.call;return Ux="object"==typeof Reflect&&Reflect.apply||(t?r.bind(n):function(){return r.apply(n,arguments)}),Ux}function bT(){if(Kx)return qx;Kx=1;var t=Nb();return qx=/(?:ipad|iphone|ipod).*applewebkit/i.test(t)}function ET(){if(Xx)return Yx;Xx=1;var t,e,n,r,o=vm(),i=mT(),u=VS(),a=Ob(),s=pE(),c=Om(),l=qC(),f=ZD(),d=mE(),p=function(){if(Wx)return Gx;Wx=1;var t=TypeError;return Gx=function(e,n){if(e<n)throw new t("Not enough arguments");return e}}(),h=bT(),v=yT(),g=o.setImmediate,y=o.clearImmediate,m=o.process,b=o.Dispatch,E=o.Function,w=o.MessageChannel,S=o.String,C=0,D={},O="onreadystatechange";c(function(){t=o.location});var A=function(t){if(s(D,t)){var e=D[t];delete D[t],e()}},x=function(t){return function(){A(t)}},T=function(t){A(t.data)},N=function(e){o.postMessage(S(e),t.protocol+"//"+t.host)};return g&&y||(g=function(t){p(arguments.length,1);var n=a(t)?t:E(t),r=f(arguments,1);return D[++C]=function(){i(n,void 0,r)},e(C),C},y=function(t){delete D[t]},v?e=function(t){m.nextTick(x(t))}:b&&b.now?e=function(t){b.now(x(t))}:w&&!h?(r=(n=new w).port2,n.port1.onmessage=T,e=u(r.postMessage,r)):o.addEventListener&&a(o.postMessage)&&!o.importScripts&&t&&"file:"!==t.protocol&&!c(N)?(e=N,o.addEventListener("message",T,!1)):e=O in d("script")?function(t){l.appendChild(d("script"))[O]=function(){l.removeChild(this),A(t)}}:function(t){setTimeout(x(t),0)}),Yx={set:g,clear:y}}function wT(){if(tT)return Qx;tT=1;var t=function(){this.head=null,this.tail=null};return t.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}},Qx=t}function ST(){if(uT)return iT;uT=1;var t,e,n,r,o,i=vm(),u=function(){if(Zx)return Jx;Zx=1;var t=vm(),e=Am(),n=Object.getOwnPropertyDescriptor;return Jx=function(r){if(!e)return t[r];var o=n(t,r);return o&&o.value}}(),a=VS(),s=ET().set,c=wT(),l=bT(),f=function(){if(nT)return eT;nT=1;var t=Nb();return eT=/ipad|iphone|ipod/i.test(t)&&"undefined"!=typeof Pebble}(),d=function(){if(oT)return rT;oT=1;var t=Nb();return rT=/web0s(?!.*chrome)/i.test(t)}(),p=yT(),h=i.MutationObserver||i.WebKitMutationObserver,v=i.document,g=i.process,y=i.Promise,m=u("queueMicrotask");if(!m){var b=new c,E=function(){var e,n;for(p&&(e=g.domain)&&e.exit();n=b.get();)try{n()}catch(e){throw b.head&&t(),e}e&&e.enter()};l||p||d||!h||!v?!f&&y&&y.resolve?((r=y.resolve(void 0)).constructor=y,o=a(r.then,r),t=function(){o(E)}):p?t=function(){g.nextTick(E)}:(s=a(s,i),t=function(){s(E)}):(e=!0,n=v.createTextNode(""),new h(E).observe(n,{characterData:!0}),t=function(){n.data=e=!e}),m=function(e){b.head||t(),b.add(e)}}return iT=m}function CT(){return lT?cT:(lT=1,cT=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}})}function DT(){if(dT)return fT;dT=1;var t=vm();return fT=t.Promise}function OT(){if(hT)return pT;hT=1;var t=vm(),e=DT(),n=Ob(),r=uS(),o=XE(),i=vE(),u=gT(),a=sE(),s=Pb(),c=e&&e.prototype,l=i("species"),f=!1,d=n(t.PromiseRejectionEvent),p=r("Promise",function(){var t=o(e),n=t!==String(e);if(!n&&66===s)return!0;if(a&&(!c.catch||!c.finally))return!0;if(!s||s<51||!/native code/.test(t)){var r=new e(function(t){t(1)}),i=function(t){t(function(){},function(){})};if((r.constructor={})[l]=i,!(f=r.then(function(){})instanceof i))return!0}return!(n||"BROWSER"!==u&&"DENO"!==u||d)});return pT={CONSTRUCTOR:p,REJECTION_EVENT:d,SUBCLASSING:f}}var AT,xT,TT={};function NT(){if(AT)return TT;AT=1;var t=Rb(),e=TypeError,n=function(n){var r,o;this.promise=new n(function(t,n){if(void 0!==r||void 0!==o)throw new e("Bad Promise constructor");r=t,o=n}),this.resolve=t(r),this.reject=t(o)};return TT.f=function(t){return new n(t)},TT}var PT,kT,IT,BT={};function FT(){if(kT)return PT;kT=1;var t=DT(),e=uO(),n=OT().CONSTRUCTOR;return PT=n||!e(function(e){t.all(e).then(void 0,function(){})})}var RT,_T,jT,LT,MT,zT,HT,$T={},UT={},VT={},GT={};HT||(HT=1,function(){if(xT)return vT;xT=1;var t,e,n,r,o=aS(),i=sE(),u=yT(),a=vm(),s=function(){if($x)return Hx;$x=1;var t=vm();return Hx=t}(),c=Tm(),l=nw(),f=eD(),d=QC(),p=_A(),h=Rb(),v=Ob(),g=Ab(),y=iO(),m=vx(),b=ET().set,E=ST(),w=(sT||(sT=1,aT=function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}}),aT),S=CT(),C=wT(),D=tw(),O=DT(),A=OT(),x=NT(),T="Promise",N=A.CONSTRUCTOR,P=A.REJECTION_EVENT,k=A.SUBCLASSING,I=D.getterFor(T),B=D.set,F=O&&O.prototype,R=O,_=F,j=a.TypeError,L=a.document,M=a.process,z=x.f,H=z,$=!!(L&&L.createEvent&&a.dispatchEvent),U="unhandledrejection",V=function(t){var e;return!(!g(t)||!v(e=t.then))&&e},G=function(t,e){var n,r,o,i=e.value,u=1===e.state,a=u?t.ok:t.fail,s=t.resolve,l=t.reject,f=t.domain;try{a?(u||(2===e.rejection&&X(e),e.rejection=1),!0===a?n=i:(f&&f.enter(),n=a(i),f&&(f.exit(),o=!0)),n===t.promise?l(new j("Promise-chain cycle")):(r=V(n))?c(r,n,s,l):s(n)):l(i)}catch(t){f&&!o&&f.exit(),l(t)}},W=function(t,e){t.notified||(t.notified=!0,E(function(){for(var n,r=t.reactions;n=r.get();)G(n,t);t.notified=!1,e&&!t.rejection&&K(t)}))},q=function(t,e,n){var r,o;$?((r=L.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),a.dispatchEvent(r)):r={promise:e,reason:n},!P&&(o=a["on"+t])?o(r):t===U&&w("Unhandled promise rejection",n)},K=function(t){c(b,a,function(){var e,n=t.facade,r=t.value;if(Y(t)&&(e=S(function(){u?M.emit("unhandledRejection",r,n):q(U,n,r)}),t.rejection=u||Y(t)?2:1,e.error))throw e.value})},Y=function(t){return 1!==t.rejection&&!t.parent},X=function(t){c(b,a,function(){var e=t.facade;u?M.emit("rejectionHandled",e):q("rejectionhandled",e,t.value)})},J=function(t,e,n){return function(r){t(e,r,n)}},Z=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,W(t,!0))},Q=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw new j("Promise can't be resolved itself");var r=V(e);r?E(function(){var n={done:!1};try{c(r,e,J(Q,n,t),J(Z,n,t))}catch(e){Z(n,e,t)}}):(t.value=e,t.state=1,W(t,!1))}catch(e){Z({done:!1},e,t)}}};if(N&&(_=(R=function(e){y(this,_),h(e),c(t,this);var n=I(this);try{e(J(Q,n),J(Z,n))}catch(t){Z(n,t)}}).prototype,(t=function(t){B(this,{type:T,done:!1,notified:!1,parent:!1,reactions:new C,rejection:!1,state:0,value:null})}).prototype=l(_,"then",function(t,e){var n=I(this),r=z(m(this,R));return n.parent=!0,r.ok=!v(t)||t,r.fail=v(e)&&e,r.domain=u?M.domain:void 0,0===n.state?n.reactions.add(r):E(function(){G(r,n)}),r.promise}),e=function(){var e=new t,n=I(e);this.promise=e,this.resolve=J(Q,n),this.reject=J(Z,n)},x.f=z=function(t){return t===R||t===n?new e(t):H(t)},!i&&v(O)&&F!==Object.prototype)){r=F.then,k||l(F,"then",function(t,e){var n=this;return new R(function(t,e){c(r,n,t,e)}).then(t,e)},{unsafe:!0});try{delete F.constructor}catch(t){}f&&f(F,_)}o({global:!0,constructor:!0,wrap:!0,forced:N},{Promise:R}),n=s.Promise,d(R,T,!1,!0),p(T)}(),function(){if(IT)return BT;IT=1;var t=aS(),e=Tm(),n=Rb(),r=NT(),o=CT(),i=oO();t({target:"Promise",stat:!0,forced:FT()},{all:function(t){var u=this,a=r.f(u),s=a.resolve,c=a.reject,l=o(function(){var r=n(u.resolve),o=[],a=0,l=1;i(t,function(t){var n=a++,i=!1;l++,e(r,u,t).then(function(t){i||(i=!0,o[n]=t,--l||s(o))},c)}),--l||s(o)});return l.error&&c(l.value),a.promise}})}(),function(){if(RT)return $T;RT=1;var t=aS(),e=sE(),n=OT().CONSTRUCTOR,r=DT(),o=xb(),i=Ob(),u=nw(),a=r&&r.prototype;if(t({target:"Promise",proto:!0,forced:n,real:!0},{catch:function(t){return this.then(void 0,t)}}),!e&&i(r)){var s=o("Promise").prototype.catch;a.catch!==s&&u(a,"catch",s,{unsafe:!0})}}(),function(){if(_T)return UT;_T=1;var t=aS(),e=Tm(),n=Rb(),r=NT(),o=CT(),i=oO();t({target:"Promise",stat:!0,forced:FT()},{race:function(t){var u=this,a=r.f(u),s=a.reject,c=o(function(){var r=n(u.resolve);i(t,function(t){e(r,u,t).then(a.resolve,s)})});return c.error&&s(c.value),a.promise}})}(),function(){if(jT)return VT;jT=1;var t=aS(),e=NT();t({target:"Promise",stat:!0,forced:OT().CONSTRUCTOR},{reject:function(t){var n=e.f(this);return(0,n.reject)(t),n.promise}})}(),function(){if(zT)return GT;zT=1;var t=aS(),e=xb(),n=sE(),r=DT(),o=OT().CONSTRUCTOR,i=function(){if(MT)return LT;MT=1;var t=PE(),e=Ab(),n=NT();return LT=function(r,o){if(t(r),e(o)&&o.constructor===r)return o;var i=n.f(r);return(0,i.resolve)(o),i.promise}}(),u=e("Promise"),a=n&&!o;t({target:"Promise",stat:!0,forced:n||o},{resolve:function(t){return i(a&&this===u?r:this,t)}})}());var WT,qT,KT,YT,XT,JT={};function ZT(){if(YT)return KT;YT=1;var t=Tm(),e=pE(),n=Tb(),r=function(){if(qT)return WT;qT=1;var t=vm(),e=Om(),n=t.RegExp,r=!e(function(){var t=!0;try{n(".","d")}catch(e){t=!1}var e={},r="",o=t?"dgimsy":"gimsy",i=function(t,n){Object.defineProperty(e,t,{get:function(){return r+=n,!0}})},u={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in t&&(u.hasIndices="d"),u)i(a,u[a]);return Object.getOwnPropertyDescriptor(n.prototype,"flags").get.call(e)!==o||r!==o});return WT={correct:r}}(),o=XA(),i=RegExp.prototype;return KT=r.correct?function(t){return t.flags}:function(u){return r.correct||!n(i,u)||e(u,"flags")?u.flags:t(o,u)}}!function(){if(XT)return JT;XT=1;var t=YE().PROPER,e=nw(),n=PE(),r=fD(),o=Om(),i=ZT(),u="toString",a=RegExp.prototype,s=a[u],c=o(function(){return"/a/b"!==s.call({source:"a",flags:"b"})}),l=t&&s.name!==u;(c||l)&&e(a,u,function(){var t=n(this);return"/"+r(t.source)+"/"+r(i(t))},{unsafe:!0})}();var QT,tN,eN,nN={};function rN(t){Promise.resolve().then(t)}!function(){if(eN)return nN;eN=1;var t=mT(),e=Tm(),n=bb(),r=hx(),o=Om(),i=PE(),u=Ob(),a=Ab(),s=ww(),c=Cw(),l=fD(),f=Cb(),d=gx(),p=_b(),h=function(){if(tN)return QT;tN=1;var t=bb(),e=dE(),n=Math.floor,r=t("".charAt),o=t("".replace),i=t("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,a=/\$([$&'`]|\d{1,2})/g;return QT=function(t,s,c,l,f,d){var p=c+t.length,h=l.length,v=a;return void 0!==f&&(f=e(f),v=u),o(d,v,function(e,o){var u;switch(r(o,0)){case"$":return"$";case"&":return t;case"`":return i(s,0,c);case"'":return i(s,p);case"<":u=f[i(o,1,-1)];break;default:var a=+o;if(0===a)return e;if(a>h){var d=n(a/10);return 0===d?e:d<=h?void 0===l[d-1]?r(o,1):l[d-1]+r(o,1):e}u=l[a-1]}return void 0===u?"":u})},QT}(),v=ZT(),g=yx(),y=vE()("replace"),m=Math.max,b=Math.min,E=n([].concat),w=n([].push),S=n("".indexOf),C=n("".slice),D=function(t){return void 0===t?t:String(t)},O="$0"==="a".replace(/./,"$0"),A=!!/./[y]&&""===/./[y]("a","$0");r("replace",function(n,r,o){var O=A?"$":"$0";return[function(t,n){var o=f(this),i=a(t)?p(t,y):void 0;return i?e(i,t,o,n):e(r,l(o),t,n)},function(e,n){var a=i(this),f=l(e);if("string"==typeof n&&-1===S(n,O)&&-1===S(n,"$<")){var p=o(r,a,f,n);if(p.done)return p.value}var y=u(n);y||(n=l(n));var A,x=l(v(a)),T=-1!==S(x,"g");T&&(A=-1!==S(x,"u"),a.lastIndex=0);for(var N,P=[];null!==(N=g(a,f))&&(w(P,N),T);)""===l(N[0])&&(a.lastIndex=d(f,c(a.lastIndex),A));for(var k="",I=0,B=0;B<P.length;B++){for(var F,R=l((N=P[B])[0]),_=m(b(s(N.index),f.length),0),j=[],L=1;L<N.length;L++)w(j,D(N[L]));var M=N.groups;if(y){var z=E([R],j,_,f);void 0!==M&&w(z,M),F=l(t(n,void 0,z))}else F=h(R,f,_,j,M,n);_>=I&&(k+=C(f,I,_)+F,I=_+R.length)}return k+C(f,I)}]},!!o(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})||!O||A)}();var oN,iN=function(t){return Object.prototype.toString.call(t)};Jp&&(Rp.fn.css=Jp),rh&&(Rp.fn.append=rh),_p&&(Rp.fn.addClass=_p),jp&&(Rp.fn.removeClass=jp),Lp&&(Rp.fn.hasClass=Lp),Vp&&(Rp.fn.on=Vp),hh&&(Rp.fn.focus=hh),Mp&&(Rp.fn.attr=Mp),zp&&(Rp.fn.removeAttr=zp),Yp&&(Rp.fn.hide=Yp),Xp&&(Rp.fn.show=Xp),Kp&&(Rp.fn.offset=Kp),Wp&&(Rp.fn.width=Wp),qp&&(Rp.fn.height=qp),ih&&(Rp.fn.parent=ih),uh&&(Rp.fn.parents=uh),nh&&(Rp.fn.is=nh),$p&&(Rp.fn.dataset=$p),Up&&(Rp.fn.val=Up),eh&&(Rp.fn.text=eh),th&&(Rp.fn.html=th),sh&&(Rp.fn.children=sh),ch&&(Rp.fn.remove=ch),ah&&(Rp.fn.find=ah),Zp&&(Rp.fn.each=Zp),lh&&(Rp.fn.empty=lh),function(t){t[t.ELEMENT_NODE=1]="ELEMENT_NODE",t[t.TEXT_NODE=3]="TEXT_NODE",t[t.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",t[t.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",t[t.COMMENT_NODE=8]="COMMENT_NODE",t[t.DOCUMENT_NODE=9]="DOCUMENT_NODE",t[t.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",t[t.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE"}(oN||(oN={}));var uN=/\[object HTML([A-Z][a-z]*)*Element\]/,aN=function(t){return uN.test(iN(t))},sN=function(t){return null!=t&&"number"==typeof t.nodeType},cN=function(t){return sN(t)&&t.nodeType===oN.COMMENT_NODE},lN=function(t){return sN(t)&&t.nodeType===oN.ELEMENT_NODE},fN=function(t){return"[object Selection]"===iN(t)},dN=function(t){return sN(t)&&t.nodeType===oN.TEXT_NODE},pN=function(t){var e,n,r;return null!==(e=window&&window.document.getElementById(t))&&void 0!==e?e:window&&(null===(r=null===(n=window.document.activeElement)||void 0===n?void 0:n.shadowRoot)||void 0===r?void 0:r.getElementById(t))||null},hN=function(t,e,n){for(var r=t.childNodes,o=r[e],i=e,u=!1,a=!1;(cN(o)||lN(o)&&0===o.childNodes.length||lN(o)&&"false"===o.getAttribute("contenteditable"))&&(!u||!a);)i>=r.length?(u=!0,i=e-1,n="backward"):i<0?(a=!0,i=e+1,n="forward"):(o=r[i],e=i,i+="forward"===n?1:-1);return[o,e]},vN=function(t,e,n){return uC(hN(t,e,n),1)[0]},gN=function(t){var e,n,r="";if(dN(t)&&t.nodeValue)return t.nodeValue;if(lN(t)){try{for(var o=iC(Array.from(t.childNodes)),i=o.next();!i.done;i=o.next()){var u=i.value;r+=gN(u)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}var a=getComputedStyle(t).getPropertyValue("display");"block"!==a&&"list"!==a&&"table-row"!==a&&"BR"!==t.tagName||(r+="\n")}return r};function yN(t,e){if(!aN(t)||"true"!==t.dataset.slateVoid)for(var n=t.childNodes,r=n.length;r-=1;){var o=n[r],i=o.nodeType;dN(o)?e(o,t):[oN.ELEMENT_NODE,oN.DOCUMENT_NODE,oN.DOCUMENT_FRAGMENT_NODE].includes(i)&&yN(o,e)}}function mN(t){if(0===t.length)return"";var e=t[0];return e.nodeType!==oN.ELEMENT_NODE?"":e.tagName.toLowerCase()}var bN,EN,wN,SN={};!function(){if(wN)return SN;wN=1;var t=Am(),e=vm(),n=bb(),r=uS(),o=aO(),i=IE(),u=KC(),a=Tw().f,s=Tb(),c=aA(),l=fD(),f=ZT(),d=JA(),p=function(){if(EN)return bN;EN=1;var t=kE().f;return bN=function(e,n,r){r in e||t(e,r,{configurable:!0,get:function(){return n[r]},set:function(t){n[r]=t}})}}(),h=nw(),v=Om(),g=pE(),y=tw().enforce,m=_A(),b=vE(),E=ZA(),w=QA(),S=b("match"),C=e.RegExp,D=C.prototype,O=e.SyntaxError,A=n(D.exec),x=n("".charAt),T=n("".replace),N=n("".indexOf),P=n("".slice),k=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,I=/a/g,B=/a/g,F=new C(I)!==I,R=d.MISSED_STICKY,_=d.UNSUPPORTED_Y;if(r("RegExp",t&&(!F||R||E||w||v(function(){return B[S]=!1,C(I)!==I||C(B)===B||"/a/i"!==String(C(I,"i"))})))){for(var j=function(t,e){var n,r,a,d,p,h,v=s(D,this),m=c(t),b=void 0===e,S=[],B=t;if(!v&&m&&b&&t.constructor===j)return t;if((m||s(D,t))&&(t=t.source,b&&(e=f(B))),t=void 0===t?"":l(t),e=void 0===e?"":l(e),B=t,E&&"dotAll"in I&&(r=!!e&&N(e,"s")>-1)&&(e=T(e,/s/g,"")),n=e,R&&"sticky"in I&&(a=!!e&&N(e,"y")>-1)&&_&&(e=T(e,/y/g,"")),w&&(d=function(t){for(var e,n=t.length,r=0,o="",i=[],a=u(null),s=!1,c=!1,l=0,f="";r<=n;r++){if("\\"===(e=x(t,r)))e+=x(t,++r);else if("]"===e)s=!1;else if(!s)switch(!0){case"["===e:s=!0;break;case"("===e:if(o+=e,"?:"===P(t,r+1,r+3))continue;A(k,P(t,r+1))&&(r+=2,c=!0),l++;continue;case">"===e&&c:if(""===f||g(a,f))throw new O("Invalid capture group name");a[f]=!0,i[i.length]=[f,l],c=!1,f="";continue}c?f+=e:o+=e}return[o,i]}(t),t=d[0],S=d[1]),p=o(C(t,e),v?this:D,j),(r||a||S.length)&&(h=y(p),r&&(h.dotAll=!0,h.raw=j(function(t){for(var e,n=t.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(e=x(t,r))?i||"."!==e?("["===e?i=!0:"]"===e&&(i=!1),o+=e):o+="[\\s\\S]":o+=e+x(t,++r);return o}(t),n)),a&&(h.sticky=!0),S.length&&(h.groups=S)),t!==B)try{i(p,"source",""===B?"(?:)":B)}catch(t){}return p},L=a(C),M=0;L.length>M;)p(j,C,L[M++]);D.constructor=j,j.prototype=D,h(e,"RegExp",j,{constructor:!0})}m("RegExp")}();var CN=new RegExp(String.fromCharCode(160),"g");function DN(t){return t.replace(CN," ")}var ON=["span","b","strong","i","em","s","strike","u","font","sub","sup"],AN=[];var xN=[];var TN={};function NN(t,e){var n=t.length;if(n){var r=t[n-1];if(yp.Text.isText(r)){var o=Object.keys(r);if(1===o.length&&"text"===o[0])return r.text+=e,!0}}return!1}function PN(t,e,n){return{type:"paragraph",children:[{text:Rp(t).text().replace(/\s+/gm," ")}]}}function kN(t,e){var n=function(t,e){var n=[];if(null!=t.attr("data-w-e-is-void"))return n;var r=t[0].childNodes;return 1===r.length&&"BR"===r[0].nodeName?(n.push({text:""}),n):(r.forEach(function(t){if(lN(t)){if("BR"===t.nodeName)return void(NN(n,"\n")||n.push({text:"\n"}));var r=BN(Rp(t),e);Array.isArray(r)?r.forEach(function(t){return n.push(t)}):n.push(r)}else if(dN(t)){var o=t.textContent||"";if(""===o.trim()&&o.indexOf("\n")>=0)return;o&&(o=DN(o),NN(n,o)||n.push({text:o}))}}),n)}(t,e),r=function(t){for(var e in TN)if(t[0].matches(e))return TN[e];return PN}(t),o=r(t[0],n,e);return Array.isArray(o)||(o=[o]),o.forEach(function(r){yp.Editor.isVoid(e,r)||(0===n.length&&(r.children=[{text:t.text().replace(/\s+/gm," ")}]),xN.forEach(function(n){r=n(t[0],r,e)}))}),o}function IN(t,e){0===t.parents("pre").length&&(t[0].innerHTML=t[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,"\n"));var n=t[0].textContent||"";n=function(t){return t.replace(/&nbsp;/g," ").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&reg;/g,"®").replace(/&copy;/g,"©").replace(/&trade;/g,"™").replace(/&quot;/g,'"')}(n);var r={text:n=DN(n)};return xN.forEach(function(n){r=n(t[0],r,e)}),r}function BN(t,e){AN.forEach(function(e){var n=e.selector,r=e.preParseHtml;t[0].matches(n)&&(t=Rp(r(t[0])))});var n=mN(t);if("span"===n){if(t.attr("data-w-e-type"))return kN(t,e);if(t[0].childNodes.length>1){var r=t[0].childNodes,o=function(t,e){var n={text:""};return xN.forEach(function(r){n=r(t[0],n,e)}),n}(Rp(t[0]),e),i=o;i.bold,i.italic,i.underline,i.through,i.sub,i.sup,i.code;var u=oC(i,["bold","italic","underline","through","sub","sup","code"]);return Array.from(r).flatMap(function(t){var n=function(t,e,n){var r=t[0];if(lN(r)){var o=BN(t,n);return Array.isArray(o)?o.map(function(t){return rC(rC({},e),t)}):[rC(rC({},e),o)]}if(cN(r))return null;var i=dN(r)?{text:r.textContent||""}:IN(t,n);return[rC(rC({},e),i)]}(Rp(t),u,e);return n||[]})}return 1===t[0].childNodes.length&&"span"===mN(Rp(t[0].childNodes[0]))?BN(Rp(t[0].childNodes[0]),e):IN(t,e)}if("code"===n)return"pre"===mN(t.parent())?kN(t,e):IN(t,e);if(ON.includes(n)){if(t[0].childNodes.length>0&&3!==t[0].childNodes[0].nodeType){var a=BN(Rp((r=t[0].childNodes)[0]),e),s=IN(t,e),c=void 0;if(Array.isArray(a)){var l=s;l.text;var f=l.bold,d=l.italic,p=l.underline,h=l.through;l.sub,l.sup;var v=l.code,g=oC(l,["text","bold","italic","underline","through","sub","sup","code"]);c=a.map(function(t){return rC(rC({},g),t)}),(f||d||p||h||v)&&(c=c.map(function(t){var e=rC({},t),n=t;return f&&!n.bold&&(e.bold=!0),d&&!n.italic&&(e.italic=!0),p&&!n.underline&&(e.underline=!0),h&&!n.through&&(e.through=!0),v&&!n.code&&(e.code=!0),e}))}else c=rC(rC({},a),s);return c}return IN(t,e)}return kN(t,e)}function FN(t,e,n){var r=Rp(n);return!!r.attr(e)||(r.attr(e,"true"),t.on(cC,function(){r.removeAttr(e)}),!1)}function RN(t,e){void 0===e&&(e="");var n=[];""===e&&(e="<p><br></p>"),0!==e.indexOf("<")&&(e=e.split(/\n/).map(function(t){return"<p>".concat(t,"</p>")}).join(""));var r=Rp("<div>".concat(e,"</div>"));return Array.from(r.children()).forEach(function(e){var r=BN(Rp(e),t);Array.isArray(r)?r.forEach(function(t){return n.push(t)}):n.push(r)}),n}function _N(t,e){return"w-e-element-".concat(t,"-").concat(e)}var jN=[];var LN={};function MN(t,e,n){var r=n.isInline(t)?"span":"div";return"<".concat(r,">").concat(e,"</").concat(r,">")}var zN,HN,$N,UN={};!function(){if($N)return UN;$N=1;var t=aS(),e=Tm(),n=Ab(),r=PE(),o=function(){if(HN)return zN;HN=1;var t=pE();return zN=function(e){return void 0!==e&&(t(e,"value")||t(e,"writable"))}}(),i=EE(),u=JC();t({target:"Reflect",stat:!0},{get:function t(a,s){var c,l,f=arguments.length<3?a:arguments[2];return r(a)===f?a[s]:(c=i.f(a,s))?o(c)?c.value:void 0===c.get?void 0:e(c.get,f):n(l=u(a))?t(l,s,f):void 0}})}();var VN,GN={};!function(){if(VN)return GN;VN=1;var t,e=aS(),n=US(),r=EE().f,o=Cw(),i=fD(),u=sA(),a=Cb(),s=cA(),c=sE(),l=n("".slice),f=Math.min,d=s("endsWith");e({target:"String",proto:!0,forced:!(!c&&!d&&(t=r(String.prototype,"endsWith"),t&&!t.writable)||d)},{endsWith:function(t){var e=i(a(this));u(t);var n=arguments.length>1?arguments[1]:void 0,r=e.length,s=void 0===n?r:f(o(n),r),c=i(t);return l(e,s-c.length,s)===c}})}();var WN=0,qN=function(){this.id="".concat(WN++)},KN="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),YN="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),XN="undefined"!=typeof navigator&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent),JN="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),ZN="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),QN="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent),tP=!ZN&&!JN&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges,eP={getWindow:function(t){var e=FO.get(t);if(!e)throw new Error("Unable to find a host window element for this editor");return e},findKey:function(t,e){var n=BO.get(e);return n||(n=new qN,BO.set(e,n)),n},setNewKey:function(t){var e=new qN;BO.set(t,e)},findPath:function(t,e){for(var n=[],r=e;;){var o=TO.get(r);if(null==o){if(yp.Editor.isEditor(r))return n;break}var i=xO.get(r);if(null==i)break;n.unshift(i),r=o}throw new Error("Unable to find the path for Slate node: ".concat(JSON.stringify(e)))},findDocumentOrShadowRoot:function(t){if(t.isDestroyed)return window.document;var e=eP.toDOMNode(t,t),n=e.getRootNode();return(function(t){return"[object HTMLDocument]"===iN(t)}(n)||function(t){return"[object ShadowRoot]"===iN(t)}(n))&&null!=Reflect.get(n,"getSelection")?n:e.ownerDocument},getParentNode:function(t,e){return TO.get(e)||null},getParentsNodes:function(t,e){for(var n=[],r=e;r!==t&&null!=r;){var o=eP.getParentNode(t,r);if(null==o)break;n.push(o),r=o}return n},getTopNode:function(t,e){var n=[eP.findPath(t,e)[0]];return yp.Node.get(t,n)},toDOMNode:function(t,e){var n;if(yp.Editor.isEditor(e))n=NO.get(t);else{var r=eP.findKey(t,e);n=kO.get(r)}if(!n)throw new Error("Cannot resolve a DOM node from Slate node: ".concat(JSON.stringify(e)));return n},hasDOMNode:function(t,e,n){void 0===n&&(n={});var r,o=n.editable,i=void 0!==o&&o,u=eP.toDOMNode(t,t);try{r=lN(e)?e:e.parentElement}catch(t){if(t instanceof Error&&!t.message.includes('Permission denied to access property "nodeType"'))throw t}return!!r&&(r.closest("[data-slate-editor]")===u&&(!i||r.isContentEditable||!!r.getAttribute("data-slate-zero-width"))||!!r.getAttribute("data-slate-string"))},toDOMRange:function(t,e){var n=e.anchor,r=e.focus,o=yp.Range.isBackward(e),i=eP.toDOMPoint(t,n),u=yp.Range.isCollapsed(e)?i:eP.toDOMPoint(t,r),a=eP.getWindow(t).document.createRange(),s=uC(o?u:i,2),c=s[0],l=s[1],f=uC(o?i:u,2),d=f[0],p=f[1],h=!!(lN(c)?c:c.parentElement).getAttribute("data-slate-zero-width"),v=!!(lN(d)?d:d.parentElement).getAttribute("data-slate-zero-width");return a.setStart(c,h?1:l),a.setEnd(d,v?1:p),a},toDOMPoint:function(t,e){var n,r,o,i=uC(yp.Editor.node(t,e.path),1)[0],u=eP.toDOMNode(t,i);yp.Editor.void(t,{at:e})&&(e={path:e.path,offset:0});var a=Array.from(u.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),s=0;try{for(var c=iC(a),l=c.next();!l.done;l=c.next()){var f=l.value,d=f.childNodes[0];if(null!=d&&null!=d.textContent){var p=d.textContent.length,h=f.getAttribute("data-slate-length"),v=s+(null==h?p:parseInt(h,10));if(e.offset<=v){o=[d,Math.min(p,Math.max(0,e.offset-s))];break}s=v}}}catch(t){n={error:t}}finally{try{l&&!l.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}if(!o)throw new Error("Cannot resolve a DOM point from Slate point: ".concat(JSON.stringify(e)));return o},toSlateNode:function(t,e){var n=lN(e)?e:e.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?PO.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: ".concat(n));return r},findEventRange:function(t,e){"nativeEvent"in e&&(e=e.nativeEvent);var n=e.clientX,r=e.clientY,o=e.target;if(null==n||null==r)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(e));var i,u=eP.toSlateNode(t,e.target),a=eP.findPath(t,u);if(yp.Editor.isVoid(t,u)){var s=o.getBoundingClientRect(),c=t.isInline(u)?n-s.left<s.left+s.width-n:r-s.top<s.top+s.height-r,l=yp.Editor.point(t,a,{edge:c?"start":"end"}),f=c?yp.Editor.before(t,l):yp.Editor.after(t,l);if(f)return yp.Editor.range(t,f)}var d=this.getWindow(t).document;if(d.caretRangeFromPoint)i=d.caretRangeFromPoint(n,r);else{var p=d.caretPositionFromPoint(n,r);p&&((i=d.createRange()).setStart(p.offsetNode,p.offset),i.setEnd(p.offsetNode,p.offset))}if(!i)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(e));return eP.toSlateRange(t,i,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(t,e,n){var r,o,i,u,a,s=n.exactMatch,c=n.suppressThrow;if((fN(e)?e.anchorNode:e.startContainer)&&(fN(e)?(r=e.anchorNode,o=e.anchorOffset,i=e.focusNode,u=e.focusOffset,a=QN&&window.document.activeElement&&window.document.activeElement.shadowRoot?e.anchorNode===e.focusNode&&e.anchorOffset===e.focusOffset:e.isCollapsed):(r=e.startContainer,o=e.startOffset,i=e.endContainer,u=e.endOffset,a=e.collapsed)),null==r||null==i||null==o||null==u)throw new Error("Cannot resolve a Slate range from DOM range: ".concat(e));var l=eP.toSlatePoint(t,[r,o],{exactMatch:s,suppressThrow:c});if(!l)return null;var f=a?l:eP.toSlatePoint(t,[i,u],{exactMatch:s,suppressThrow:c});if(!f)return null;var d={anchor:l,focus:f};return yp.Range.isExpanded(d)&&yp.Range.isForward(d)&&lN(i)&&yp.Editor.void(t,{at:d.focus,mode:"highest"})&&(d=yp.Editor.unhangRange(t,d,{voids:!0})),d},toSlatePoint:function(t,e,n){var r,o=n.exactMatch,i=n.suppressThrow,u=uC(o?e:function(t){var e,n=uC(t,2),r=n[0],o=n[1];if(lN(r)&&r.childNodes.length){var i=o===r.childNodes.length,u=i?o-1:o;for(r=(e=uC(hN(r,u,i?"backward":"forward"),2))[0],i=(u=e[1])<o;lN(r)&&r.childNodes.length;){var a=i?r.childNodes.length-1:0;r=vN(r,a,i?"backward":"forward")}o=i&&null!=r.textContent?r.textContent.length:0}return[r,o]}(e),2),a=u[0],s=u[1],c=a.parentNode,l=null,f=0;if(c){var d=c.closest('[data-slate-void="true"]'),p=c.closest("[data-slate-leaf]"),h=null,v=eP.getWindow(t);if(p&&v.document.createRange){l=p.closest('[data-slate-node="text"]');var g=v.document.createRange();g.setStart(l,0),g.setEnd(a,s);var y=g.cloneContents();aC(aC([],uC(wh(y.querySelectorAll("[data-slate-zero-width]"))),!1),uC(wh(y.querySelectorAll("[contenteditable=false]"))),!1).forEach(function(t){t.parentNode.removeChild(t)}),f=y.textContent.length,h=l}else d&&((p=d.querySelector("[data-slate-leaf]"))?(l=p.closest('[data-slate-node="text"]'),f=(h=p).textContent.length,h.querySelectorAll("[data-slate-zero-width]").forEach(function(t){f-=t.textContent.length})):f=1);h&&f===h.textContent.length&&(c.hasAttribute("data-slate-zero-width")||YN&&(null===(r=h.textContent)||void 0===r?void 0:r.endsWith("\n")))&&(f-=1)}if(!l){if(i)return null;throw new Error("Cannot resolve a Slate point from DOM point: ".concat(e))}var m=eP.toSlateNode(t,l);return{path:eP.findPath(t,m),offset:f}},hasRange:function(t,e){var n=e.anchor,r=e.focus;return yp.Editor.hasPath(t,n.path)&&yp.Editor.hasPath(t,r.path)},getNodeType:function(t){return yp.Element.isElement(t)?t.type:""},checkNodeType:function(t,e){return this.getNodeType(t)===e},getNodesStr:function(t){return t.map(function(t){return yp.Node.string(t)}).join("")},getSelectedElems:function(t){var e,n,r=[],o=yp.Editor.nodes(t,{universal:!0});try{for(var i=iC(o),u=i.next();!u.done;u=i.next()){var a=uC(u.value,1)[0];yp.Element.isElement(a)&&r.push(a)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return r},getSelectedNodeByType:function(t,e){var n=this,r=uC(yp.Editor.nodes(t,{match:function(t){return n.checkNodeType(t,e)},universal:!0}),1),o=r[0];return null==o?null:o[0]},getSelectedTextNode:function(t){var e=uC(yp.Editor.nodes(t,{match:function(t){return yp.Text.isText(t)},universal:!0}),1),n=e[0];return null==n?null:n[0]},isNodeSelected:function(t,e){var n=uC(yp.Editor.nodes(t,{match:function(t){return t===e},universal:!0}),1),r=n[0];return null!=r&&uC(r,1)[0]===e},isSelectionAtLineEnd:function(t,e){var n=t.selection;return!!n&&(yp.Editor.isEnd(t,n.anchor,e)||yp.Editor.isEnd(t,n.focus,e))},getTextarea:function(t){var e=dO.get(t);if(null==e)throw new Error("Cannot find textarea instance by editor");return e},getToolbar:function(t){return vO.get(t)||null},getHoverbar:function(t){return yO.get(t)||null},normalizeContent:function(t){t.children.forEach(function(e,n){t.normalizeNode([e,[n]])})},getLeftLengthOfMaxLength:function(t){var e=t.getConfig(),n=e.maxLength,r=e.onMaxLength;if("number"!=typeof n||n<=0)return 1/0;var o=n-t.getText().replace(/\r|\n|(\r\n)|(\n\r)/g,"").length;return o<=0&&r&&r(t),o},cleanExposedTexNodeInSelectionBlock:function(t){var e,n,r,o,i=eP.getTextarea(t).$textArea,u=null==i?void 0:i[0].childNodes;if(u)try{for(var a=iC(Array.from(u)),s=a.next();!s.done;s=a.next()){var c=s.value;if(!dN(c))break;c.remove()}}catch(t){e={error:t}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}var l=yp.Editor.nodes(t,{match:function(e){return!(!yp.Element.isElement(e)||t.isInline(e))},universal:!0});try{for(var f=iC(l),d=f.next();!d.done;d=f.next()){var p=d.value;if(null!=p){var h=p[0];yN(eP.toDOMNode(t,h),function(t,e){var n=Rp(e);n.attr("data-slate-string")||n.attr("data-slate-zero-width")||n.attr("data-w-e-reserve")||e.removeChild(t)})}}}catch(t){r={error:t}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}},isLastNode:function(t,e){var n=t.children||[];return n[n.length-1]===e},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}},isSelectedVoidNode:function(t){var e,n,r=yp.Editor.nodes(t,{match:function(e){return t.isVoid(e)}}),o=0;try{for(var i=iC(r),u=i.next();!u.done;u=i.next())u.value&&(o+=1)}catch(t){e={error:t}}finally{try{u&&!u.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return o>0},isSelectedEmptyParagraph:function(t){var e=t.selection;if(null==e)return!1;if(yp.Range.isExpanded(e))return!1;var n=eP.getSelectedNodeByType(t,"paragraph");if(null===n)return!1;var r=n.children;return 1===r.length&&(""===r[0].text||void 0)},isEmptyPath:function(t,e){var n=yp.Editor.node(t,e);if(null==n)return!1;var r=uC(n,1)[0].children;return 1===r.length&&""===r[0].text}};function nP(t,e){return yp.Element.isElement(t)?function(t,e){var n=t.type,r=void 0===n?"":n,o=t.children,i=void 0===o?[]:o,u=yp.Editor.isVoid(e,t),a="";u||(a=i.map(function(t){return nP(t,e)}).join(""));var s=function(t){return LN[t]||MN}(r),c=s(t,a,e),l="";if(l="string"==typeof c?c:c.html||"",u||jN.forEach(function(e){return l=e(t,l)}),"string"==typeof c)return l;var f=c.prefix,d=void 0===f?"":f,p=c.suffix,h=void 0===p?"":p;return d&&(l=d+l),h&&(l+=h),l}(t,e):function(t,e){var n=t.text;if(null==n)throw new Error("Current node is not slate Text ".concat(JSON.stringify(t)));var r=n;r=function(t){return t.replace(/ {2}/g," &nbsp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/®/g,"&reg;").replace(/©/g,"&copy;").replace(/™/g,"&trade;")}(r);var o=eP.getParentsNodes(e,t).some(function(t){return"pre"===eP.getNodeType(t)});if(o||(r=r.replace(/\n\r|\r\n|\r|\n/g,"<br>")),o&&(r=r.replace(/&nbsp;/g," ")),""===r){var i=eP.getParentNode(null,t);if(!i||0!==i.children.length)return r;r="<br>"}return jN.forEach(function(e){return r=e(t,r)}),r}(t,e)}var rP=function(t,e){var n=(e.top+e.bottom)/2;return t.top<=n&&t.bottom>=n},oP=function(t,e,n){var r=eP.toDOMRange(t,e).getBoundingClientRect(),o=eP.toDOMRange(t,n).getBoundingClientRect();return rP(r,o)&&rP(o,r)},iP=function(t,e){var n,r,o=[];try{for(var i=iC(yp.Editor.levels(t,{at:e})),u=i.next();!u.done;u=i.next()){var a=uC(u.value,2),s=a[0],c=a[1],l=eP.findKey(t,s);o.push([c,l])}}catch(t){n={error:t}}finally{try{u&&!u.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return o};function uP(t,e){t.isInline(e)?(t.insertNode(e),"link"===e.type&&t.insertFragment([{text:""}])):yp.Transforms.insertNodes(t,e,{mode:"highest"})}var aP,sP,cP,lP,fP,dP,pP,hP,vP,gP,yP,mP,bP,EP,wP,SP,CP,DP,OP,AP,xP,TP,NP,PP,kP,IP,BP,FP,RP,_P,jP,LP,MP,zP,HP,$P,UP,VP,GP,WP,qP=function(t){var e=t,n=e.onChange,r=e.insertText,o=e.apply,i=e.deleteBackward;return e.insertText=function(t){e.getConfig().readOnly||r(t)},e.apply=function(t){var n,r,i,u,a,s,c,l,f=[];switch(t.type){case"insert_text":case"remove_text":case"set_node":case"split_node":f.push.apply(f,aC([],uC(iP(e,t.path)),!1));break;case"insert_node":case"remove_node":f.push.apply(f,aC([],uC(iP(e,yp.Path.parent(t.path))),!1));break;case"merge_node":var d=yp.Path.previous(t.path);f.push.apply(f,aC([],uC(iP(e,d)),!1));break;case"move_node":var p=yp.Path.common(yp.Path.parent(t.path),yp.Path.parent(t.newPath));f.push.apply(f,aC([],uC(iP(e,p)),!1));break;case"set_selection":(null===(u=null===(i=t.newProperties)||void 0===i?void 0:i.focus)||void 0===u?void 0:u.path)&&(f.push.apply(f,aC([],uC(iP(e,null===(s=null===(a=t.newProperties)||void 0===a?void 0:a.focus)||void 0===s?void 0:s.path)),!1)),f.push.apply(f,aC([],uC(iP(e,null===(l=null===(c=t.properties)||void 0===c?void 0:c.focus)||void 0===l?void 0:l.path)),!1)))}o(t);try{for(var h=iC(f),v=h.next();!v.done;v=h.next()){var g=uC(v.value,2),y=g[0],m=g[1],b=uC(yp.Editor.node(e,y),1)[0];BO.set(b,m),"type"in b&&(OO.has(b)&&OO.delete(b),AO.has(b)&&AO.delete(b))}}catch(t){n={error:t}}finally{try{v&&!v.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}},e.deleteBackward=function(n){if("line"!==n)return i(n);if(t.selection&&yp.Range.isCollapsed(t.selection)){var r=yp.Editor.above(t,{match:function(e){return yp.Editor.isBlock(t,e)},at:t.selection});if(r){var o=uC(r,2)[1],u=yp.Editor.range(t,o,t.selection.anchor),a=function(t,e){var n=yp.Editor.range(t,yp.Range.end(e)),r=Array.from(yp.Editor.positions(t,{at:e})),o=0,i=r.length,u=Math.floor(i/2);if(oP(t,yp.Editor.range(t,r[o]),n))return yp.Editor.range(t,r[o],n);if(r.length<2)return yp.Editor.range(t,r[r.length-1],n);for(;u!==r.length&&u!==o;)oP(t,yp.Editor.range(t,r[u]),n)?i=u:o=u,u=Math.floor((o+i)/2);return yp.Editor.range(t,r[i],n)}(e,u);yp.Range.isCollapsed(a)||yp.Transforms.delete(t,{at:a})}}},e.onChange=function(){var t=e.selection;null!=t&&_O.set(e,t),e.emit("change"),n()},e.handleTab=function(){e.insertText(" ")},e.getHtml=function(){var t=e.children,n=void 0===t?[]:t,r=e.getConfig().skipCacheTypes,o=void 0===r?["list-item"]:r;return n.map(function(t){var n=eP.getNodeType(t);if(o.includes(n))return nP(t,e);var r=AO.get(t);if(r)return r;var i=nP(t,e);return AO.set(t,i),i}).join("")},e.getText=function(){var t=e.children;return(void 0===t?[]:t).map(function(t){return yp.Node.string(t)}).join("\n")},e.getSelectionText=function(){var n=e.selection;return null==n?"":yp.Editor.string(t,n)},e.getElemsByType=function(t,n){var r,o;void 0===n&&(n=!1);var i=[],u=yp.Editor.nodes(e,{at:[],universal:!0});try{for(var a=iC(u),s=a.next();!s.done;s=a.next()){var c=uC(s.value,1)[0];if(yp.Element.isElement(c)&&(n?c.type.indexOf(t)>=0:c.type===t)){var l=eP.findKey(e,c),f=_N(c.type,l.id);i.push(rC(rC({},c),{id:f}))}}}catch(t){r={error:t}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}return i},e.getElemsByTypePrefix=function(t){return e.getElemsByType(t,!0)},e.isEmpty=function(){var t=e.children,n=void 0===t?[]:t;if(n.length>1)return!1;var r=n[0];if(null==r)return!0;if(!yp.Element.isElement(r)||"paragraph"!==r.type)return!1;var o=r.children,i=void 0===o?[]:o;if(i.length>1)return!1;var u=i[0];return null==u||yp.Text.isText(u)&&""===u.text},e.clear=function(){yp.Transforms.delete(e,{at:{anchor:yp.Editor.start(e,[]),focus:yp.Editor.end(e,[])}}),0===e.children.length&&yp.Transforms.insertNodes(e,[{type:"paragraph",children:[{text:""}]}])},e.getParentNode=function(t){return eP.getParentNode(e,t)},e.dangerouslyInsertHtml=function(t,n){if(void 0===t&&(t=""),void 0===n&&(n=!1),t){var r=document.createElement("div");r.innerHTML=t;var o=Array.from(r.childNodes);if(o=o.filter(function(t){var e=t.nodeName;return!!dN(t)||!!lN(t)&&!KA.has(e.toLowerCase())}),0!==o.length){var i=e.selection;if(null!=i){var u=null;eP.isSelectedEmptyParagraph(e)&&!n&&(u=[i.focus.path[0]]),r.setAttribute("hidden","true"),document.body.appendChild(r);var a=0;o.forEach(function(t,n){var r=t.nodeName,i=t.textContent,u=void 0===i?"":i;if(dN(t)){if(!u||!u.trim())return;e.insertNode({text:u})}else if("BR"!==r){var s=t,c=!1;if(ON.includes(r.toLowerCase()))c=!0;else for(var l in TN)if(s.matches(l)){c=!0;break}if(c){var f=BN(Rp(s),e);return Array.isArray(f)?(f.forEach(function(t){return uP(e,t)}),a+=1):(uP(e,f),a+=1),void(eP.isSelectedVoidNode(e)&&e.move(1))}var d=window.getComputedStyle(s).display;if(!eP.isSelectedEmptyParagraph(e)&&d.indexOf("inline")<0){if(n>=1)(function(t){return"matches"in t&&/^[ou]l$/i.test(t.tagName)&&!t.hasAttribute("data-w-e-type")})(o[n-1])&&e.insertBreak();e.insertBreak()}e.dangerouslyInsertHtml(s.innerHTML,!0)}else e.insertText("\n")}),a&&u&&eP.isEmptyPath(e,u)&&yp.Transforms.removeNodes(e,{at:u}),r.remove()}}}},e.setHtml=function(t){void 0===t&&(t="");var n=e.isDisabled(),r=e.isFocused(),o=JSON.stringify(e.selection);e.enable(),e.focus(),e.clear();var i=RN(e,null==t?"":t);if(yp.Transforms.insertFragment(e,i),r||(e.deselect(),e.blur()),n&&(e.deselect(),e.disable()),e.isFocused())try{e.select(JSON.parse(o))}catch(t){e.select(yp.Editor.start(e,[]))}},e},KP=1,YP=function(t){var e=t;return e.id="wangEditor-".concat(KP++),e.isDestroyed=!1,e.isFullScreen=!1,e.focus=function(t){if(eP.toDOMNode(e,e).focus({preventScroll:!0}),RO.set(e,!0),t){var n=yp.Editor.end(e,[]);yp.Transforms.select(e,n)}else{var r=_O.get(e);r?yp.Transforms.select(e,r):yp.Transforms.select(e,yp.Editor.start(e,[]))}},e.isFocused=function(){return!!RO.get(e)},e.blur=function(){eP.toDOMNode(e,e).blur(),yp.Transforms.deselect(e),RO.set(e,!1)},e.updateView=function(){eP.getTextarea(e).changeViewState();var t=eP.getToolbar(e);t&&t.changeToolbarState();var n=eP.getHoverbar(e);n&&n.changeHoverbarState()},e.destroy=function(){if(!e.isDestroyed){var t=eP.getTextarea(e);t.destroy(),dO.delete(e),pO.delete(t);var n=eP.getToolbar(e);n&&(n.destroy(),vO.delete(e),hO.delete(n));var r=eP.getHoverbar(e);r&&(r.destroy(),yO.delete(e),gO.delete(r)),e.isDestroyed=!0,e.emit("destroyed")}},e.scrollToElem=function(t){if(!e.getConfig().scroll){var n="编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能";return n+="\nYou has disabled editor scroll, please do this yourself",void console.warn(n)}var r=Rp("#".concat(t));if(0!==r.length){var o=r[0];if(!eP.hasDOMNode(e,o))return n="Element (found by id is '".concat(t,"') is not in editor DOM"),n+="\n 通过 id '".concat(t,"' 找到的 element 不在 editor DOM 之内"),void console.error(n,o);var i=eP.getTextarea(e),u=i.$textAreaContainer,a=i.$scroll,s=r.offset().top,c=u.offset().top;a[0].scrollBy({top:s-c,behavior:"smooth"})}},e.showProgressBar=function(t){t<1||eP.getTextarea(e).changeProgress(t)},e.hidePanelOrModal=function(){var t=bO.get(e);null!=t&&t.forEach(function(t){return t.hide()})},e.enable=function(){e.getConfig().readOnly=!1,e.updateView()},e.disable=function(){e.getConfig().readOnly=!0,e.updateView()},e.isDisabled=function(){return e.getConfig().readOnly},e.toDOMNode=function(t){return eP.toDOMNode(e,t)},e.fullScreen=function(){if(!e.isFullScreen){var t=null,n=eP.getToolbar(e);n&&(t=n.$box);var r=eP.getTextarea(e).$box.parent();if(t&&t.parent()[0]!==r[0])throw new Error("Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent\n不能设置全屏,因为 toolbar DOM 父节点和 textarea DOM 父节点不一致");r.addClass("w-e-full-screen-container");var o=r.css("z-index");r.attr("data-z-index",o.toString()),e.isFullScreen=!0,e.emit("fullScreen")}},e.unFullScreen=function(){if(e.isFullScreen){var t=eP.getTextarea(e).$box.parent();setTimeout(function(){t.removeClass("w-e-full-screen-container"),e.isFullScreen=!1,e.emit("unFullScreen")},200)}},e.getEditableContainer=function(){return eP.getTextarea(e).$textAreaContainer[0]},e},XP={exports:{}},JP={exports:{}};function ZP(){return sP?aP:(sP=1,aP=function(t){return null!=t})}function QP(){if(gP)return vP;gP=1;var t=function(){if(hP)return pP;hP=1;var t=function(){if(dP)return fP;dP=1;var t=function(){if(lP)return cP;lP=1;var t=ZP(),e={object:!0,function:!0,undefined:!0};return cP=function(n){return!!t(n)&&hasOwnProperty.call(e,typeof n)}}();return fP=function(e){if(!t(e))return!1;try{return!!e.constructor&&e.constructor.prototype===e}catch(t){return!1}}}();return pP=function(e){if("function"!=typeof e)return!1;if(!hasOwnProperty.call(e,"length"))return!1;try{if("number"!=typeof e.length)return!1;if("function"!=typeof e.call)return!1;if("function"!=typeof e.apply)return!1}catch(t){return!1}return!t(e)}}(),e=/^\s*class[\s{/}]/,n=Function.prototype.toString;return vP=function(r){return!!t(r)&&!e.test(n.call(r))}}function tk(){if(DP)return CP;DP=1;var t=(SP?wP:(SP=1,wP=function(){}))();return CP=function(e){return e!==t&&null!==e},CP}function ek(){if(IP)return kP;IP=1;var t=(TP||(TP=1,xP=(EP?bP:(EP=1,bP=function(){try{return Object.keys("primitive"),!0}catch(t){return!1}}))()?Object.keys:function(){if(AP)return OP;AP=1;var t=tk(),e=Object.keys;return OP=function(n){return e(t(n)?Object(n):n)}}()),xP),e=function(){if(PP)return NP;PP=1;var t=tk();return NP=function(e){if(!t(e))throw new TypeError("Cannot use null or undefined");return e}}(),n=Math.max;return kP=function(r,o){var i,u,a,s=n(arguments.length,2);for(r=Object(e(r)),a=function(t){try{r[t]=o[t]}catch(t){i||(i=t)}},u=1;u<s;++u)t(o=arguments[u]).forEach(a);if(void 0!==i)throw i;return r},kP}function nk(){if(UP)return JP.exports;UP=1;var t=ZP(),e=QP(),n=FP?BP:(FP=1,BP=(mP||(mP=1,yP=function(){var t,e=Object.assign;return"function"==typeof e&&(e(t={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")}),yP)()?Object.assign:ek()),r=function(){if(_P)return RP;_P=1;var t=tk(),e=Array.prototype.forEach,n=Object.create;return RP=function(r){var o=n(null);return e.call(arguments,function(e){t(e)&&function(t,e){var n;for(n in t)e[n]=t[n]}(Object(e),o)}),o},RP}(),o=($P||($P=1,HP=function(){if(LP)return jP;LP=1;var t="razdwatrzy";return jP=function(){return"function"==typeof t.contains&&!0===t.contains("dwa")&&!1===t.contains("foo")}}()()?String.prototype.contains:function(){if(zP)return MP;zP=1;var t=String.prototype.indexOf;return MP=function(e){return t.call(this,e,arguments[1])>-1},MP}()),HP),i=JP.exports=function(e,i){var u,a,s,c,l;return arguments.length<2||"string"!=typeof e?(c=i,i=e,e=null):c=arguments[2],t(e)?(u=o.call(e,"c"),a=o.call(e,"e"),s=o.call(e,"w")):(u=s=!0,a=!1),l={value:i,configurable:u,enumerable:a,writable:s},c?n(r(c),l):l};return i.gs=function(i,u,a){var s,c,l,f;return"string"!=typeof i?(l=a,a=u,u=i,i=null):l=arguments[3],t(u)?e(u)?t(a)?e(a)||(l=a,a=void 0):a=void 0:(l=u,u=a=void 0):u=void 0,t(i)?(s=o.call(i,"c"),c=o.call(i,"e")):(s=!0,c=!1),f={get:u,set:a,configurable:s,enumerable:c},l?n(r(l),f):f},JP.exports}var rk=(WP||(WP=1,function(t,e){var n,r,o,i,u,a,s,c=nk(),l=GP?VP:(GP=1,VP=function(t){if("function"!=typeof t)throw new TypeError(t+" is not a function");return t}),f=Function.prototype.apply,d=Function.prototype.call,p=Object.create,h=Object.defineProperty,v=Object.defineProperties,g=Object.prototype.hasOwnProperty,y={configurable:!0,enumerable:!1,writable:!0};r=function(t,e){var r,i;return l(e),i=this,n.call(this,t,r=function(){o.call(i,t,r),f.call(e,this,arguments)}),r.__eeOnceListener__=e,this},i=function(t){var e,n,r,o,i;if(g.call(this,"__ee__")&&(o=this.__ee__[t]))if("object"==typeof o){for(n=arguments.length,i=new Array(n-1),e=1;e<n;++e)i[e-1]=arguments[e];for(o=o.slice(),e=0;r=o[e];++e)f.call(r,this,i)}else switch(arguments.length){case 1:d.call(o,this);break;case 2:d.call(o,this,arguments[1]);break;case 3:d.call(o,this,arguments[1],arguments[2]);break;default:for(n=arguments.length,i=new Array(n-1),e=1;e<n;++e)i[e-1]=arguments[e];f.call(o,this,i)}},u={on:n=function(t,e){var n;return l(e),g.call(this,"__ee__")?n=this.__ee__:(n=y.value=p(null),h(this,"__ee__",y),y.value=null),n[t]?"object"==typeof n[t]?n[t].push(e):n[t]=[n[t],e]:n[t]=e,this},once:r,off:o=function(t,e){var n,r,o,i;if(l(e),!g.call(this,"__ee__"))return this;if(!(n=this.__ee__)[t])return this;if("object"==typeof(r=n[t]))for(i=0;o=r[i];++i)o!==e&&o.__eeOnceListener__!==e||(2===r.length?n[t]=r[i?0:1]:r.splice(i,1));else r!==e&&r.__eeOnceListener__!==e||delete n[t];return this},emit:i},a={on:c(n),once:c(r),off:c(o),emit:c(i)},s=v({},a),t.exports=e=function(t){return null==t?p(s):v(Object(t),a)},e.methods=u}(XP,XP.exports)),XP.exports),ok=function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}(rk);function ik(t){var e=jO.get(t);return null==e&&(e=ok(),jO.set(t,e)),e}var uk=new WeakMap;function ak(t,e){var n=uk.get(t);null==n&&(n=new Set,uk.set(t,n)),n.add(e)}var sk,ck=function(t){var e=t;return e.on=function(t,n){var r=ik(e);if(r.on(t,n),"destroyed"===t&&ak(e,n),"destroyed"!==t){var o=function(){return r.off(t,n)};r.on("destroyed",o),ak(e,o)}},e.once=function(t,n){ik(e).once(t,n)},e.off=function(t,n){ik(e).off(t,n)},e.emit=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=ik(e);if(o.emit.apply(o,aC([t],uC(n),!1)),"destroyed"===t){var i=function(t){return uk.get(t)||new Set}(e);i.forEach(function(t){return o.off("destroyed",t)}),function(t){uk.set(t,new Set)}(e)}},e},lk=function(t){var e=t;return e.setFragmentData=function(t){var n=e.selection;if(n){var r=uC(yp.Range.edges(n),2),o=r[0],i=r[1],u=yp.Editor.void(e,{at:o.path}),a=yp.Editor.void(e,{at:i.path});if(!yp.Range.isCollapsed(n)||u){var s=eP.toDOMRange(e,n),c=s.cloneContents(),l=c.childNodes[0];if(c.childNodes.forEach(function(t){t.textContent&&""!==t.textContent.trim()&&(l=t)}),a){var f=uC(a,1)[0],d=s.cloneRange(),p=eP.toDOMNode(e,f);d.setEndAfter(p),c=d.cloneContents()}if(u&&(l=c.querySelector("[data-slate-spacer]")),Array.from(c.querySelectorAll("[data-slate-zero-width]")).forEach(function(t){var e="n"===t.getAttribute("data-slate-zero-width");t.textContent=e?"\n":""}),dN(l)){var h=l.ownerDocument.createElement("span");h.style.whiteSpace="pre",h.appendChild(l),c.appendChild(h),l=h}var v=e.getFragment(),g=JSON.stringify(v),y=window.btoa(encodeURIComponent(g));l.setAttribute("data-slate-fragment",y),t.setData("application/x-slate-fragment",y);var m=c.ownerDocument.createElement("div");return m.appendChild(c),m.setAttribute("hidden","true"),c.ownerDocument.body.appendChild(m),t.setData("text/html",m.innerHTML),t.setData("text/plain",gN(m)),c.ownerDocument.body.removeChild(m),t}}},e.insertData=function(t){var n,r,o=t.getData("application/x-slate-fragment");if(o){var i=decodeURIComponent(window.atob(o)),u=JSON.parse(i);e.insertFragment(u)}else{var a=t.getData("text/plain"),s=t.getData("text/html");if(s)e.dangerouslyInsertHtml(s);else if(a){var c=a.split(/\n\r|\r\n|\r|\n/),l=!1;try{for(var f=iC(c),d=f.next();!d.done;d=f.next()){var p=d.value,h=eP.getLeftLengthOfMaxLength(e);l&&h>0&&yp.Transforms.splitNodes(e,{always:!0}),e.insertText(p),l=!0}}catch(t){n={error:t}}finally{try{d&&!d.done&&(r=f.return)&&r.call(f)}finally{if(n)throw n.error}}}}},e},fk={};!function(){if(sk)return fk;sk=1;var t=aS(),e=sS(),n=pS(),r=Ab(),o=Sw(),i=Dw(),u=Db(),a=lS(),s=vE(),c=vS(),l=ZD(),f=c("slice"),d=s("species"),p=Array,h=Math.max;t({target:"Array",proto:!0,forced:!f},{slice:function(t,s){var c,f,v,g=u(this),y=i(g),m=o(t,y),b=o(void 0===s?y:s,y);if(e(g)&&(c=g.constructor,(n(c)&&(c===p||e(c.prototype))||r(c)&&null===(c=c[d]))&&(c=void 0),c===p||void 0===c))return l(g,m,b);for(f=new(void 0===c?p:c)(h(b-m,0)),v=0;m<b;m++,v++)m in g&&a(f,v,g[m]);return f.length=v,f}})}();var dk=function(t){var e=t,n=e.insertText,r=e.insertNode,o=e.insertFragment,i=e.dangerouslyInsertHtml;return e.insertText=function(t){if(e.getConfig().maxLength){var r=eP.getLeftLengthOfMaxLength(e);r<=0||(r<t.length?n(t.slice(0,r)):n(t))}else n(t)},e.insertNode=function(t){if(e.getConfig().maxLength){var n=eP.getLeftLengthOfMaxLength(e);n<=0||n<yp.Node.string(t).length||r(t)}else r(t)},e.insertFragment=function(t){if(e.getConfig().maxLength){if(t.length>0){var n=t[0];if(eP.getLeftLengthOfMaxLength(e)<yp.Node.string(n).length)return;o([n]);for(var r=1;r<t.length;r+=1)e.insertNode(t[r])}}else o(t)},e.dangerouslyInsertHtml=function(t,n){if(void 0===t&&(t=""),void 0===n&&(n=!1),t)if(e.getConfig().maxLength){var r=eP.getLeftLengthOfMaxLength(e);if(!(r<=0)){var o=document.createElement("div");o.innerHTML=t,r<Array.from(o.childNodes).reduce(function(t,e){var n=e.nodeName;return e?dN(e)?t+(e.textContent||""):lN(e)?KA.has(n.toLowerCase())?t:t+(e.textContent||""):t:t},"").length||i(t,n)}}else i(t,n)},e};function pk(t){var e=eP.getTextarea(t).$textAreaContainer,n=e.width(),r=e.height(),o=e.offset();return{top:o.top,left:o.left,width:n,height:r}}function hk(t){var e={top:"0",left:"0"},n=t.selection;if(null==n)return e;var r=pk(t);if(null==r)return e;var o=r.top,i=r.left,u=r.width,a=r.height,s=eP.toDOMRange(t,n).getClientRects(),c=s?s[0]:null;if(null==c)return e;var l={},f=c.top-o,d=c.left-i;if(d>u/2){var p=u-d;l.right="".concat(p+5,"px")}else l.left="".concat(d+5,"px");if(f>a/2){var h=a-f;l.bottom="".concat(h+5,"px")}else{var v=s[s.length-1],g=v.top-o+v.height;g<0&&(g=0),l.top="".concat(g+5,"px")}return l}function vk(t,e,n){void 0===n&&(n="modal");var r={top:"0",left:"0"};if(null==t.selection)return r;var o=yp.Element.isElement(e)&&t.isVoid(e),i=yp.Element.isElement(e)&&t.isInline(e),u=IO.get(e);if(null==u)return r;var a=u.getBoundingClientRect(),s=a.top,c=a.left,l=a.height,f=a.width;if(o){var d=function(t){var e=[];e.push(t);for(var n=0;e.length>0;){var r=e.pop();if(null==r)break;if((n+=1)>1e4)break;var o=r.nodeName;if(r.nodeType===oN.ELEMENT_NODE){var i=o.toLowerCase();if(_x.includes(i)||"iframe"===i||"video"===i)return r;var u=r.children||[],a=u.length;if(a)for(var s=a-1;s>=0;s-=1)e.push(u[s])}}return null}(u);if(null!=d){var p=d.getBoundingClientRect();s=p.top,l=p.height}}var h=pk(t);if(null==h)return r;var v=h.top,g=h.left,y=h.width,m=h.height,b={},E=s-v,w=c-g;if("bar"===n)return b.left="".concat(w,"px"),E>40?b.bottom="".concat(m-E+5,"px"):b.top="".concat(E+l+5,"px"),b;if("modal"===n){if(o?i?w>(y-f)/2?b.right="".concat(y-w+5,"px"):b.left="".concat(w+f+5,"px"):b.left="20px":b.left="".concat(w,"px"),o)(S=E)<0&&(S=0),b.top="".concat(S,"px");else if(E>(m-l)/2)b.bottom="".concat(m-E+5,"px");else{var S;(S=E+l)<0&&(S=0),b.top="".concat(S+5,"px")}return b}throw new Error("type '".concat(n,"' is invalid"))}function gk(t,e){rN(function(){var n=pk(t);if(null!=n){var r,o=n.top,i=n.left,u=n.width,a=n.height,s=e.offset(),c=s.top,l=s.left,f=e.width(),d=e.height(),p=c-o,h=l-i,v=e.attr("style");if(v.indexOf("top")>=0&&(r=p+d-a)>0){var g=e.css("top"),y=parseInt(g.toString(),10)-r;y<0&&(y=0),e.css("top","".concat(y,"px"))}if(v.indexOf("bottom")>=0&&c<0){var m=e.css("bottom"),b=parseInt(m.toString(),10)-Math.abs(c);e.css("bottom","".concat(b,"px"))}if(v.indexOf("left")>=0&&(r=h+f-u)>0){var E=e.css("left"),w=parseInt(E.toString(),10)-r;w<0&&(w=0),e.css("left","".concat(w,"px"))}if(v.indexOf("right")>=0&&l<0){var S=e.css("right"),C=parseInt(S.toString(),10)-Math.abs(l);e.css("right","".concat(C,"px"))}}})}var yk,mk=function(t){var e=t;return e.select=function(t){yp.Transforms.select(e,t)},e.deselect=function(){var n=e.selection,r=eP.findDocumentOrShadowRoot(e).getSelection();r&&r.rangeCount>0&&r.removeAllRanges(),n&&yp.Transforms.deselect(t)},e.move=function(e,n){void 0===n&&(n=!1),e&&(e<0||yp.Transforms.move(t,{distance:e,unit:"character",reverse:n}))},e.moveReverse=function(t){e.move(t,!0)},e.restoreSelection=function(){var t=_O.get(e);null!=t&&(e.focus(),yp.Transforms.select(e,t))},e.getSelectionPosition=function(){return hk(e)},e.getNodePosition=function(t){return vk(e,t)},e.isSelectedAll=function(){var t=e.selection;if(null==t)return!1;var n=uC(yp.Range.edges(t),2),r=n[0],o=n[1],i=uC(yp.Editor.edges(e,[]),2),u=i[0],a=i[1];return!(!yp.Point.equals(r,u)||!yp.Point.equals(o,a))},e.selectAll=function(){var t=yp.Editor.start(e,[]),n=yp.Editor.end(e,[]);yp.Transforms.select(e,{anchor:t,focus:n})},e},bk={};!function(){if(yk)return bk;yk=1;var t=Tm(),e=bb(),n=hx(),r=PE(),o=Ab(),i=Cw(),u=fD(),a=Cb(),s=_b(),c=gx(),l=ZT(),f=yx(),d=e("".indexOf);n("match",function(e,n,p){return[function(n){var r=a(this),i=o(n)?s(n,e):void 0;return i?t(i,n,r):new RegExp(n)[e](u(r))},function(t){var e=r(this),o=u(t),a=p(n,e,o);if(a.done)return a.value;var s=u(l(e));if(-1===d(s,"g"))return f(e,o);var h=-1!==d(s,"u");e.lastIndex=0;for(var v,g=[],y=0;null!==(v=f(e,o));){var m=u(v[0]);g[y]=m,""===m&&(e.lastIndex=c(o,i(e.lastIndex),h)),y++}return 0===y?null:g}]})}();const Ek=t=>"string"==typeof t,wk=()=>{let t,e;const n=new Promise((n,r)=>{t=n,e=r});return n.resolve=t,n.reject=e,n},Sk=t=>null==t?"":""+t,Ck=/###/g,Dk=t=>t&&t.indexOf("###")>-1?t.replace(Ck,"."):t,Ok=t=>!t||Ek(t),Ak=(t,e,n)=>{const r=Ek(e)?e.split("."):e;let o=0;for(;o<r.length-1;){if(Ok(t))return{};const e=Dk(r[o]);!t[e]&&n&&(t[e]=new n),t=Object.prototype.hasOwnProperty.call(t,e)?t[e]:{},++o}return Ok(t)?{}:{obj:t,k:Dk(r[o])}},xk=(t,e,n)=>{const{obj:r,k:o}=Ak(t,e,Object);if(void 0!==r||1===e.length)return void(r[o]=n);let i=e[e.length-1],u=e.slice(0,e.length-1),a=Ak(t,u,Object);for(;void 0===a.obj&&u.length;)i=`${u[u.length-1]}.${i}`,u=u.slice(0,u.length-1),a=Ak(t,u,Object),a&&a.obj&&void 0!==a.obj[`${a.k}.${i}`]&&(a.obj=void 0);a.obj[`${a.k}.${i}`]=n},Tk=(t,e)=>{const{obj:n,k:r}=Ak(t,e);if(n)return n[r]},Nk=(t,e,n)=>{for(const r in e)"__proto__"!==r&&"constructor"!==r&&(r in t?Ek(t[r])||t[r]instanceof String||Ek(e[r])||e[r]instanceof String?n&&(t[r]=e[r]):Nk(t[r],e[r],n):t[r]=e[r]);return t},Pk=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var kk={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const Ik=t=>Ek(t)?t.replace(/[&<>"'\/]/g,t=>kk[t]):t,Bk=[" ",",","?","!",";"],Fk=new class{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const e=this.regExpMap.get(t);if(void 0!==e)return e;const n=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,n),this.regExpQueue.push(t),n}}(20),Rk=function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!t)return;if(t[e])return t[e];const r=e.split(n);let o=t;for(let t=0;t<r.length;){if(!o||"object"!=typeof o)return;let e,i="";for(let u=t;u<r.length;++u)if(u!==t&&(i+=n),i+=r[u],e=o[i],void 0!==e){if(["string","number","boolean"].indexOf(typeof e)>-1&&u<r.length-1)continue;t+=u-t+1;break}o=e}return o},_k=t=>t&&t.replace("_","-"),jk={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){console&&console[t]&&console[t].apply(console,e)}};var Lk=new class t{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(t,e)}init(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=e.prefix||"i18next:",this.logger=t||jk,this.options=e,this.debug=e.debug}log(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"log","",!0)}warn(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"warn","",!0)}error(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"error","")}deprecate(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(t,e,n,r){return r&&!this.debug?null:(Ek(t[0])&&(t[0]=`${n}${this.prefix} ${t[0]}`),this.logger[e](t))}create(e){return new t(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new t(this.logger,e)}};let Mk=class{constructor(){this.observers={}}on(t,e){return t.split(" ").forEach(t=>{this.observers[t]||(this.observers[t]=new Map);const n=this.observers[t].get(e)||0;this.observers[t].set(e,n+1)}),this}off(t,e){this.observers[t]&&(e?this.observers[t].delete(e):delete this.observers[t])}emit(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(t=>{let[e,r]=t;for(let t=0;t<r;t++)e(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(e=>{let[r,o]=e;for(let e=0;e<o;e++)r.apply(r,[t,...n])})}},zk=class extends Mk{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=e,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const e=this.options.ns.indexOf(t);e>-1&&this.options.ns.splice(e,1)}getResource(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let u;t.indexOf(".")>-1?u=t.split("."):(u=[t,e],n&&(Array.isArray(n)?u.push(...n):Ek(n)&&o?u.push(...n.split(o)):u.push(n)));const a=Tk(this.data,u);return!a&&!e&&!n&&t.indexOf(".")>-1&&(t=u[0],e=u[1],n=u.slice(2).join(".")),!a&&i&&Ek(n)?Rk(this.data&&this.data[t]&&this.data[t][e],n,o):a}addResource(t,e,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1};const i=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator;let u=[t,e];n&&(u=u.concat(i?n.split(i):n)),t.indexOf(".")>-1&&(u=t.split("."),r=e,e=u[1]),this.addNamespaces(e),xk(this.data,u,r),o.silent||this.emit("added",t,e,n,r)}addResources(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(const r in n)(Ek(n[r])||Array.isArray(n[r]))&&this.addResource(t,e,r,n[r],{silent:!0});r.silent||this.emit("added",t,e,n)}addResourceBundle(t,e,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},u=[t,e];t.indexOf(".")>-1&&(u=t.split("."),r=n,n=e,e=u[1]),this.addNamespaces(e);let a=Tk(this.data,u)||{};i.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?Nk(a,n,o):a={...a,...n},xk(this.data,u,a),i.silent||this.emit("added",t,e,n)}removeResourceBundle(t,e){this.hasResourceBundle(t,e)&&delete this.data[t][e],this.removeNamespaces(e),this.emit("removed",t,e)}hasResourceBundle(t,e){return void 0!==this.getResource(t,e)}getResourceBundle(t,e){return e||(e=this.options.defaultNS),"v1"===this.options.compatibilityAPI?{...this.getResource(t,e)}:this.getResource(t,e)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const e=this.getDataByLanguage(t);return!!(e&&Object.keys(e)||[]).find(t=>e[t]&&Object.keys(e[t]).length>0)}toJSON(){return this.data}};var Hk={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,n,r,o){return t.forEach(t=>{this.processors[t]&&(e=this.processors[t].process(e,n,r,o))}),e}};const $k={};let Uk=class t extends Mk{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),((t,e,n)=>{["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach(t=>{e[t]&&(n[t]=e[t])})})(0,t,this),this.options=e,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=Lk.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==t)return!1;const n=this.resolve(t,e);return n&&void 0!==n.res}extractFromKey(t,e){let n=void 0!==e.nsSeparator?e.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");const r=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator;let o=e.ns||this.options.defaultNS||[];const i=n&&t.indexOf(n)>-1,u=!(this.options.userDefinedKeySeparator||e.keySeparator||this.options.userDefinedNsSeparator||e.nsSeparator||((t,e,n)=>{e=e||"",n=n||"";const r=Bk.filter(t=>e.indexOf(t)<0&&n.indexOf(t)<0);if(0===r.length)return!0;const o=Fk.getRegExp(`(${r.map(t=>"?"===t?"\\?":t).join("|")})`);let i=!o.test(t);if(!i){const e=t.indexOf(n);e>0&&!o.test(t.substring(0,e))&&(i=!0)}return i})(t,n,r));if(i&&!u){const e=t.match(this.interpolator.nestingRegexp);if(e&&e.length>0)return{key:t,namespaces:Ek(o)?[o]:o};const i=t.split(n);(n!==r||n===r&&this.options.ns.indexOf(i[0])>-1)&&(o=i.shift()),t=i.join(r)}return{key:t,namespaces:Ek(o)?[o]:o}}translate(e,n,r){if("object"!=typeof n&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof n&&(n={...n}),n||(n={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);const o=void 0!==n.returnDetails?n.returnDetails:this.options.returnDetails,i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,{key:u,namespaces:a}=this.extractFromKey(e[e.length-1],n),s=a[a.length-1],c=n.lng||this.language,l=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&"cimode"===c.toLowerCase()){if(l){const t=n.nsSeparator||this.options.nsSeparator;return o?{res:`${s}${t}${u}`,usedKey:u,exactUsedKey:u,usedLng:c,usedNS:s,usedParams:this.getUsedParamsDetails(n)}:`${s}${t}${u}`}return o?{res:u,usedKey:u,exactUsedKey:u,usedLng:c,usedNS:s,usedParams:this.getUsedParamsDetails(n)}:u}const f=this.resolve(e,n);let d=f&&f.res;const p=f&&f.usedKey||u,h=f&&f.exactUsedKey||u,v=Object.prototype.toString.apply(d),g=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,m=!Ek(d)&&"boolean"!=typeof d&&"number"!=typeof d;if(!(y&&d&&m&&["[object Number]","[object Function]","[object RegExp]"].indexOf(v)<0)||Ek(g)&&Array.isArray(d))if(y&&Ek(g)&&Array.isArray(d))d=d.join(g),d&&(d=this.extendTranslation(d,e,n,r));else{let o=!1,a=!1;const l=void 0!==n.count&&!Ek(n.count),p=t.hasDefaultValue(n),h=l?this.pluralResolver.getSuffix(c,n.count,n):"",v=n.ordinal&&l?this.pluralResolver.getSuffix(c,n.count,{ordinal:!1}):"",g=l&&!n.ordinal&&0===n.count&&this.pluralResolver.shouldUseIntlApi(),y=g&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${h}`]||n[`defaultValue${v}`]||n.defaultValue;!this.isValidLookup(d)&&p&&(o=!0,d=y),this.isValidLookup(d)||(a=!0,d=u);const m=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&a?void 0:d,b=p&&y!==d&&this.options.updateMissing;if(a||o||b){if(this.logger.log(b?"updateKey":"missingKey",c,s,u,b?y:d),i){const t=this.resolve(u,{...n,keySeparator:!1});t&&t.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let t=[];const e=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&e&&e[0])for(let n=0;n<e.length;n++)t.push(e[n]);else"all"===this.options.saveMissingTo?t=this.languageUtils.toResolveHierarchy(n.lng||this.language):t.push(n.lng||this.language);const r=(t,e,r)=>{const o=p&&r!==d?r:m;this.options.missingKeyHandler?this.options.missingKeyHandler(t,s,e,o,b,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(t,s,e,o,b,n),this.emit("missingKey",t,s,e,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&l?t.forEach(t=>{const e=this.pluralResolver.getSuffixes(t,n);g&&n[`defaultValue${this.options.pluralSeparator}zero`]&&e.indexOf(`${this.options.pluralSeparator}zero`)<0&&e.push(`${this.options.pluralSeparator}zero`),e.forEach(e=>{r([t],u+e,n[`defaultValue${e}`]||y)})}):r(t,u,y))}d=this.extendTranslation(d,e,n,f,r),a&&d===u&&this.options.appendNamespaceToMissingKey&&(d=`${s}:${u}`),(a||o)&&this.options.parseMissingKeyHandler&&(d="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${s}:${u}`:u,o?d:void 0):this.options.parseMissingKeyHandler(d))}else{if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const t=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,d,{...n,ns:a}):`key '${u} (${this.language})' returned an object instead of string.`;return o?(f.res=t,f.usedParams=this.getUsedParamsDetails(n),f):t}if(i){const t=Array.isArray(d),e=t?[]:{},r=t?h:p;for(const t in d)if(Object.prototype.hasOwnProperty.call(d,t)){const o=`${r}${i}${t}`;e[t]=this.translate(o,{...n,joinArrays:!1,ns:a}),e[t]===o&&(e[t]=d[t])}d=e}}return o?(f.res=d,f.usedParams=this.getUsedParamsDetails(n),f):d}extendTranslation(t,e,n,r,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const u=Ek(t)&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let a;if(u){const e=t.match(this.interpolator.nestingRegexp);a=e&&e.length}let s=n.replace&&!Ek(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),t=this.interpolator.interpolate(t,s,n.lng||this.language||r.usedLng,n),u){const e=t.match(this.interpolator.nestingRegexp);a<(e&&e.length)&&(n.nest=!1)}!n.lng&&"v1"!==this.options.compatibilityAPI&&r&&r.res&&(n.lng=this.language||r.usedLng),!1!==n.nest&&(t=this.interpolator.nest(t,function(){for(var t=arguments.length,r=new Array(t),u=0;u<t;u++)r[u]=arguments[u];return o&&o[0]===r[0]&&!n.context?(i.logger.warn(`It seems you are nesting recursively key: ${r[0]} in key: ${e[0]}`),null):i.translate(...r,e)},n)),n.interpolation&&this.interpolator.reset()}const u=n.postProcess||this.options.postProcess,a=Ek(u)?[u]:u;return null!=t&&a&&a.length&&!1!==n.applyPostProcessor&&(t=Hk.handle(a,t,e,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),t}resolve(t){let e,n,r,o,i,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Ek(t)&&(t=[t]),t.forEach(t=>{if(this.isValidLookup(e))return;const a=this.extractFromKey(t,u),s=a.key;n=s;let c=a.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));const l=void 0!==u.count&&!Ek(u.count),f=l&&!u.ordinal&&0===u.count&&this.pluralResolver.shouldUseIntlApi(),d=void 0!==u.context&&(Ek(u.context)||"number"==typeof u.context)&&""!==u.context,p=u.lngs?u.lngs:this.languageUtils.toResolveHierarchy(u.lng||this.language,u.fallbackLng);c.forEach(t=>{this.isValidLookup(e)||(i=t,!$k[`${p[0]}-${t}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(i)&&($k[`${p[0]}-${t}`]=!0,this.logger.warn(`key "${n}" for languages "${p.join(", ")}" won't get resolved as namespace "${i}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach(n=>{if(this.isValidLookup(e))return;o=n;const i=[s];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(i,s,n,t,u);else{let t;l&&(t=this.pluralResolver.getSuffix(n,u.count,u));const e=`${this.options.pluralSeparator}zero`,r=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(l&&(i.push(s+t),u.ordinal&&0===t.indexOf(r)&&i.push(s+t.replace(r,this.options.pluralSeparator)),f&&i.push(s+e)),d){const n=`${s}${this.options.contextSeparator}${u.context}`;i.push(n),l&&(i.push(n+t),u.ordinal&&0===t.indexOf(r)&&i.push(n+t.replace(r,this.options.pluralSeparator)),f&&i.push(n+e))}}let a;for(;a=i.pop();)this.isValidLookup(e)||(r=a,e=this.getResource(n,t,a,u))}))})}),{res:e,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}isValidLookup(t){return!(void 0===t||!this.options.returnNull&&null===t||!this.options.returnEmptyString&&""===t)}getResource(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,e,n,r):this.resourceStore.getResource(t,e,n,r)}getUsedParamsDetails(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=t.replace&&!Ek(t.replace);let r=n?t.replace:t;if(n&&void 0!==t.count&&(r.count=t.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(const t of e)delete r[t]}return r}static hasDefaultValue(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&"defaultValue"===e.substring(0,12)&&void 0!==t[e])return!0;return!1}};const Vk=t=>t.charAt(0).toUpperCase()+t.slice(1);let Gk=class{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Lk.create("languageUtils")}getScriptPartFromCode(t){if(!(t=_k(t))||t.indexOf("-")<0)return null;const e=t.split("-");return 2===e.length?null:(e.pop(),"x"===e[e.length-1].toLowerCase()?null:this.formatLanguageCode(e.join("-")))}getLanguagePartFromCode(t){if(!(t=_k(t))||t.indexOf("-")<0)return t;const e=t.split("-");return this.formatLanguageCode(e[0])}formatLanguageCode(t){if(Ek(t)&&t.indexOf("-")>-1){if("undefined"!=typeof Intl&&void 0!==Intl.getCanonicalLocales)try{let e=Intl.getCanonicalLocales(t)[0];if(e&&this.options.lowerCaseLng&&(e=e.toLowerCase()),e)return e}catch(t){}const e=["hans","hant","latn","cyrl","cans","mong","arab"];let n=t.split("-");return this.options.lowerCaseLng?n=n.map(t=>t.toLowerCase()):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),e.indexOf(n[1].toLowerCase())>-1&&(n[1]=Vk(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),e.indexOf(n[1].toLowerCase())>-1&&(n[1]=Vk(n[1].toLowerCase())),e.indexOf(n[2].toLowerCase())>-1&&(n[2]=Vk(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let e;return t.forEach(t=>{if(e)return;const n=this.formatLanguageCode(t);this.options.supportedLngs&&!this.isSupportedCode(n)||(e=n)}),!e&&this.options.supportedLngs&&t.forEach(t=>{if(e)return;const n=this.getLanguagePartFromCode(t);if(this.isSupportedCode(n))return e=n;e=this.options.supportedLngs.find(t=>t===n?t:t.indexOf("-")<0&&n.indexOf("-")<0?void 0:t.indexOf("-")>0&&n.indexOf("-")<0&&t.substring(0,t.indexOf("-"))===n||0===t.indexOf(n)&&n.length>1?t:void 0)}),e||(e=this.getFallbackCodes(this.options.fallbackLng)[0]),e}getFallbackCodes(t,e){if(!t)return[];if("function"==typeof t&&(t=t(e)),Ek(t)&&(t=[t]),Array.isArray(t))return t;if(!e)return t.default||[];let n=t[e];return n||(n=t[this.getScriptPartFromCode(e)]),n||(n=t[this.formatLanguageCode(e)]),n||(n=t[this.getLanguagePartFromCode(e)]),n||(n=t.default),n||[]}toResolveHierarchy(t,e){const n=this.getFallbackCodes(e||this.options.fallbackLng||[],t),r=[],o=t=>{t&&(this.isSupportedCode(t)?r.push(t):this.logger.warn(`rejecting language code not found in supportedLngs: ${t}`))};return Ek(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(t)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(t)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(t))):Ek(t)&&o(this.formatLanguageCode(t)),n.forEach(t=>{r.indexOf(t)<0&&o(this.formatLanguageCode(t))}),r}},Wk=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],qk={1:t=>Number(t>1),2:t=>Number(1!=t),3:t=>0,4:t=>Number(t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2),5:t=>Number(0==t?0:1==t?1:2==t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5),6:t=>Number(1==t?0:t>=2&&t<=4?1:2),7:t=>Number(1==t?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2),8:t=>Number(1==t?0:2==t?1:8!=t&&11!=t?2:3),9:t=>Number(t>=2),10:t=>Number(1==t?0:2==t?1:t<7?2:t<11?3:4),11:t=>Number(1==t||11==t?0:2==t||12==t?1:t>2&&t<20?2:3),12:t=>Number(t%10!=1||t%100==11),13:t=>Number(0!==t),14:t=>Number(1==t?0:2==t?1:3==t?2:3),15:t=>Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2),16:t=>Number(t%10==1&&t%100!=11?0:0!==t?1:2),17:t=>Number(1==t||t%10==1&&t%100!=11?0:1),18:t=>Number(0==t?0:1==t?1:2),19:t=>Number(1==t?0:0==t||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3),20:t=>Number(1==t?0:0==t||t%100>0&&t%100<20?1:2),21:t=>Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0),22:t=>Number(1==t?0:2==t?1:(t<0||t>10)&&t%10==0?2:3)};const Kk=["v1","v2","v3"],Yk=["v4"],Xk={zero:0,one:1,two:2,few:3,many:4,other:5};let Jk=class{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=t,this.options=e,this.logger=Lk.create("pluralResolver"),this.options.compatibilityJSON&&!Yk.includes(this.options.compatibilityJSON)||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(()=>{const t={};return Wk.forEach(e=>{e.lngs.forEach(n=>{t[n]={numbers:e.nr,plurals:qk[e.fc]}})}),t})(),this.pluralRulesCache={}}addRule(t,e){this.rules[t]=e}clearCache(){this.pluralRulesCache={}}getRule(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi()){const n=_k("dev"===t?"en":t),r=e.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:n,type:r});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];let i;try{i=new Intl.PluralRules(n,{type:r})}catch(n){if(!t.match(/-|_/))return;const r=this.languageUtils.getLanguagePartFromCode(t);i=this.getRule(r,e)}return this.pluralRulesCache[o]=i,i}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(t,e);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(t,n).map(t=>`${e}${t}`)}getSuffixes(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(t,e);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((t,e)=>Xk[t]-Xk[e]).map(t=>`${this.options.prepend}${e.ordinal?`ordinal${this.options.prepend}`:""}${t}`):n.numbers.map(n=>this.getSuffix(t,n,e)):[]}getSuffix(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r.select(e)}`:this.getSuffixRetroCompatible(r,e):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,e){const n=t.noAbs?t.plurals(e):t.plurals(Math.abs(e));let r=t.numbers[n];this.options.simplifyPluralSuffix&&2===t.numbers.length&&1===t.numbers[0]&&(2===r?r="plural":1===r&&(r=""));const o=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return"v1"===this.options.compatibilityJSON?1===r?"":"number"==typeof r?`_plural_${r.toString()}`:o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===t.numbers.length&&1===t.numbers[0]?o():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!Kk.includes(this.options.compatibilityJSON)}};const Zk=function(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=((t,e,n)=>{const r=Tk(t,n);return void 0!==r?r:Tk(e,n)})(t,e,n);return!i&&o&&Ek(n)&&(i=Rk(t,n,r),void 0===i&&(i=Rk(e,n,r))),i},Qk=t=>t.replace(/\$/g,"$$$$");let tI=class{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=Lk.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(t=>t),this.init(t)}init(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:e,escapeValue:n,useRawValueToEscape:r,prefix:o,prefixEscaped:i,suffix:u,suffixEscaped:a,formatSeparator:s,unescapeSuffix:c,unescapePrefix:l,nestingPrefix:f,nestingPrefixEscaped:d,nestingSuffix:p,nestingSuffixEscaped:h,nestingOptionsSeparator:v,maxReplaces:g,alwaysFormat:y}=t.interpolation;this.escape=void 0!==e?e:Ik,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==r&&r,this.prefix=o?Pk(o):i||"{{",this.suffix=u?Pk(u):a||"}}",this.formatSeparator=s||",",this.unescapePrefix=c?"":l||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=f?Pk(f):d||Pk("$t("),this.nestingSuffix=p?Pk(p):h||Pk(")"),this.nestingOptionsSeparator=v||",",this.maxReplaces=g||1e3,this.alwaysFormat=void 0!==y&&y,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(t,e)=>t&&t.source===e?(t.lastIndex=0,t):new RegExp(e,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,e,n,r){let o,i,u;const a=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},s=t=>{if(t.indexOf(this.formatSeparator)<0){const o=Zk(e,a,t,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(o,void 0,n,{...r,...e,interpolationkey:t}):o}const o=t.split(this.formatSeparator),i=o.shift().trim(),u=o.join(this.formatSeparator).trim();return this.format(Zk(e,a,i,this.options.keySeparator,this.options.ignoreJSONStructure),u,n,{...r,...e,interpolationkey:i})};this.resetRegExp();const c=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,l=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,f=[{regex:this.regexpUnescape,safeValue:t=>Qk(t)},{regex:this.regexp,safeValue:t=>this.escapeValue?Qk(this.escape(t)):Qk(t)}];return f.forEach(e=>{for(u=0;o=e.regex.exec(t);){const n=o[1].trim();if(i=s(n),void 0===i)if("function"==typeof c){const e=c(t,o,r);i=Ek(e)?e:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))i="";else{if(l){i=o[0];continue}this.logger.warn(`missed to pass in variable ${n} for interpolating ${t}`),i=""}else Ek(i)||this.useRawValueToEscape||(i=Sk(i));const a=e.safeValue(i);if(t=t.replace(o[0],a),l?(e.regex.lastIndex+=i.length,e.regex.lastIndex-=o[0].length):e.regex.lastIndex=0,u++,u>=this.maxReplaces)break}}),t}nest(t,e){let n,r,o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const u=(t,e)=>{const n=this.nestingOptionsSeparator;if(t.indexOf(n)<0)return t;const r=t.split(new RegExp(`${n}[ ]*{`));let i=`{${r[1]}`;t=r[0],i=this.interpolate(i,o);const u=i.match(/'/g),a=i.match(/"/g);(u&&u.length%2==0&&!a||a.length%2!=0)&&(i=i.replace(/'/g,'"'));try{o=JSON.parse(i),e&&(o={...e,...o})}catch(e){return this.logger.warn(`failed parsing options string in nesting for key ${t}`,e),`${t}${n}${i}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,t};for(;n=this.nestingRegexp.exec(t);){let a=[];o={...i},o=o.replace&&!Ek(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let s=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){const t=n[1].split(this.formatSeparator).map(t=>t.trim());n[1]=t.shift(),a=t,s=!0}if(r=e(u.call(this,n[1].trim(),o),o),r&&n[0]===t&&!Ek(r))return r;Ek(r)||(r=Sk(r)),r||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${t}`),r=""),s&&(r=a.reduce((t,e)=>this.format(t,e,i.lng,{...i,interpolationkey:n[1].trim()}),r.trim())),t=t.replace(n[0],r),this.regexp.lastIndex=0}return t}};const eI=t=>{const e={};return(n,r,o)=>{let i=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(i={...i,[o.interpolationkey]:void 0});const u=r+JSON.stringify(i);let a=e[u];return a||(a=t(_k(r),o),e[u]=a),a(n)}};let nI=class{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=Lk.create("formatter"),this.options=t,this.formats={number:eI((t,e)=>{const n=new Intl.NumberFormat(t,{...e});return t=>n.format(t)}),currency:eI((t,e)=>{const n=new Intl.NumberFormat(t,{...e,style:"currency"});return t=>n.format(t)}),datetime:eI((t,e)=>{const n=new Intl.DateTimeFormat(t,{...e});return t=>n.format(t)}),relativetime:eI((t,e)=>{const n=new Intl.RelativeTimeFormat(t,{...e});return t=>n.format(t,e.range||"day")}),list:eI((t,e)=>{const n=new Intl.ListFormat(t,{...e});return t=>n.format(t)})},this.init(t)}init(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};this.formatSeparator=e.interpolation.formatSeparator||","}add(t,e){this.formats[t.toLowerCase().trim()]=e}addCached(t,e){this.formats[t.toLowerCase().trim()]=eI(e)}format(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=e.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find(t=>t.indexOf(")")>-1)){const t=o.findIndex(t=>t.indexOf(")")>-1);o[0]=[o[0],...o.splice(1,t)].join(this.formatSeparator)}const i=o.reduce((t,e)=>{const{formatName:o,formatOptions:i}=(t=>{let e=t.toLowerCase().trim();const n={};if(t.indexOf("(")>-1){const r=t.split("(");e=r[0].toLowerCase().trim();const o=r[1].substring(0,r[1].length-1);"currency"===e&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):"relativetime"===e&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach(t=>{if(t){const[e,...r]=t.split(":"),o=r.join(":").trim().replace(/^'+|'+$/g,""),i=e.trim();n[i]||(n[i]=o),"false"===o&&(n[i]=!1),"true"===o&&(n[i]=!0),isNaN(o)||(n[i]=parseInt(o,10))}})}return{formatName:e,formatOptions:n}})(e);if(this.formats[o]){let e=t;try{const u=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},a=u.locale||u.lng||r.locale||r.lng||n;e=this.formats[o](t,a,{...i,...r,...u})}catch(t){this.logger.warn(t)}return e}return this.logger.warn(`there was no format function for ${o}`),t},t);return i}},rI=class extends Mk{constructor(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=t,this.store=e,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=Lk.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,r.backend,r)}queueLoad(t,e,n,r){const o={},i={},u={},a={};return t.forEach(t=>{let r=!0;e.forEach(e=>{const u=`${t}|${e}`;!n.reload&&this.store.hasResourceBundle(t,e)?this.state[u]=2:this.state[u]<0||(1===this.state[u]?void 0===i[u]&&(i[u]=!0):(this.state[u]=1,r=!1,void 0===i[u]&&(i[u]=!0),void 0===o[u]&&(o[u]=!0),void 0===a[e]&&(a[e]=!0)))}),r||(u[t]=!0)}),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(u),toLoadNamespaces:Object.keys(a)}}loaded(t,e,n){const r=t.split("|"),o=r[0],i=r[1];e&&this.emit("failedLoading",o,i,e),!e&&n&&this.store.addResourceBundle(o,i,n,void 0,void 0,{skipCopy:!0}),this.state[t]=e?-1:2,e&&n&&(this.state[t]=0);const u={};this.queue.forEach(n=>{((t,e,n)=>{const{obj:r,k:o}=Ak(t,e,Object);r[o]=r[o]||[],r[o].push(n)})(n.loaded,[o],i),((t,e)=>{void 0!==t.pending[e]&&(delete t.pending[e],t.pendingCount--)})(n,t),e&&n.errors.push(e),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(t=>{u[t]||(u[t]={});const e=n.loaded[t];e.length&&e.forEach(e=>{void 0===u[t][e]&&(u[t][e]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",u),this.queue=this.queue.filter(t=>!t.done)}read(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!t.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:t,ns:e,fcName:n,tried:r,wait:o,callback:i});this.readingCalls++;const u=(u,a)=>{if(this.readingCalls--,this.waitingReads.length>0){const t=this.waitingReads.shift();this.read(t.lng,t.ns,t.fcName,t.tried,t.wait,t.callback)}u&&a&&r<this.maxRetries?setTimeout(()=>{this.read.call(this,t,e,n,r+1,2*o,i)},o):i(u,a)},a=this.backend[n].bind(this.backend);if(2!==a.length)return a(t,e,u);try{const n=a(t,e);n&&"function"==typeof n.then?n.then(t=>u(null,t)).catch(u):u(null,n)}catch(t){u(t)}}prepareLoading(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();Ek(t)&&(t=this.languageUtils.toResolveHierarchy(t)),Ek(e)&&(e=[e]);const o=this.queueLoad(t,e,n,r);if(!o.toLoad.length)return o.pending.length||r(),null;o.toLoad.forEach(t=>{this.loadOne(t)})}load(t,e,n){this.prepareLoading(t,e,{},n)}reload(t,e,n){this.prepareLoading(t,e,{reload:!0},n)}loadOne(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=t.split("|"),r=n[0],o=n[1];this.read(r,o,"read",void 0,void 0,(n,i)=>{n&&this.logger.warn(`${e}loading namespace ${o} for language ${r} failed`,n),!n&&i&&this.logger.log(`${e}loaded namespace ${o} for language ${r}`,i),this.loaded(t,n,i)})}saveMissing(t,e,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},u=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(e))this.logger.warn(`did not save key "${n}" as the namespace "${e}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(null!=n&&""!==n){if(this.backend&&this.backend.create){const a={...i,isUpdate:o},s=this.backend.create.bind(this.backend);if(s.length<6)try{let o;o=5===s.length?s(t,e,n,r,a):s(t,e,n,r),o&&"function"==typeof o.then?o.then(t=>u(null,t)).catch(u):u(null,o)}catch(t){u(t)}else s(t,e,n,r,u,a)}t&&t[0]&&this.store.addResource(t[0],e,n,r)}}};const oI=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:t=>{let e={};if("object"==typeof t[1]&&(e=t[1]),Ek(t[1])&&(e.defaultValue=t[1]),Ek(t[2])&&(e.tDescription=t[2]),"object"==typeof t[2]||"object"==typeof t[3]){const n=t[3]||t[2];Object.keys(n).forEach(t=>{e[t]=n[t]})}return e},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),iI=t=>(Ek(t.ns)&&(t.ns=[t.ns]),Ek(t.fallbackLng)&&(t.fallbackLng=[t.fallbackLng]),Ek(t.fallbackNS)&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t),uI=()=>{};let aI=class t extends Mk{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;var n;if(super(),this.options=iI(t),this.services={},this.logger=Lk,this.modules={external:[]},n=this,Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach(t=>{"function"==typeof n[t]&&(n[t]=n[t].bind(n))}),e&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,e),this;setTimeout(()=>{this.init(t,e)},0)}}init(){var t=this;let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"==typeof e&&(n=e,e={}),!e.defaultNS&&!1!==e.defaultNS&&e.ns&&(Ek(e.ns)?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const r=oI();this.options={...r,...this.options,...iI(e)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator);const o=t=>t?"function"==typeof t?new t:t:null;if(!this.options.isClone){let e;this.modules.logger?Lk.init(o(this.modules.logger),this.options):Lk.init(null,this.options),this.modules.formatter?e=this.modules.formatter:"undefined"!=typeof Intl&&(e=nI);const n=new Gk(this.options);this.store=new zk(this.options.resources,this.options);const i=this.services;i.logger=Lk,i.resourceStore=this.store,i.languageUtils=n,i.pluralResolver=new Jk(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!e||this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format||(i.formatter=o(e),i.formatter.init(i,this.options),this.options.interpolation.format=i.formatter.format.bind(i.formatter)),i.interpolator=new tI(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new rI(o(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];t.emit(e,...r)}),this.modules.languageDetector&&(i.languageDetector=o(this.modules.languageDetector),i.languageDetector.init&&i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=o(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new Uk(this.services,this.options),this.translator.on("*",function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];t.emit(e,...r)}),this.modules.external.forEach(t=>{t.init&&t.init(this)})}if(this.format=this.options.interpolation.format,n||(n=uI),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const t=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);t.length>0&&"dev"!==t[0]&&(this.options.lng=t[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(e=>{this[e]=function(){return t.store[e](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(e=>{this[e]=function(){return t.store[e](...arguments),t}});const i=wk(),u=()=>{const t=(t,e)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),i.resolve(e),n(t,e)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return t(null,this.t.bind(this));this.changeLanguage(this.options.lng,t)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),i}loadResources(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:uI;const n=Ek(t)?t:this.language;if("function"==typeof t&&(e=t),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return e();const t=[],r=e=>{e&&"cimode"!==e&&this.services.languageUtils.toResolveHierarchy(e).forEach(e=>{"cimode"!==e&&t.indexOf(e)<0&&t.push(e)})};n?r(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(t=>r(t)),this.options.preload&&this.options.preload.forEach(t=>r(t)),this.services.backendConnector.load(t,this.options.ns,t=>{t||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),e(t)})}else e(null)}reloadResources(t,e,n){const r=wk();return"function"==typeof t&&(n=t,t=void 0),"function"==typeof e&&(n=e,e=void 0),t||(t=this.languages),e||(e=this.options.ns),n||(n=uI),this.services.backendConnector.reload(t,e,t=>{r.resolve(),n(t)}),r}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===t.type&&(this.modules.backend=t),("logger"===t.type||t.log&&t.warn&&t.error)&&(this.modules.logger=t),"languageDetector"===t.type&&(this.modules.languageDetector=t),"i18nFormat"===t.type&&(this.modules.i18nFormat=t),"postProcessor"===t.type&&Hk.addPostProcessor(t),"formatter"===t.type&&(this.modules.formatter=t),"3rdParty"===t.type&&this.modules.external.push(t),this}setResolvedLanguage(t){if(t&&this.languages&&!(["cimode","dev"].indexOf(t)>-1))for(let t=0;t<this.languages.length;t++){const e=this.languages[t];if(!(["cimode","dev"].indexOf(e)>-1)&&this.store.hasLanguageSomeTranslations(e)){this.resolvedLanguage=e;break}}}changeLanguage(t,e){var n=this;this.isLanguageChangingTo=t;const r=wk();this.emit("languageChanging",t);const o=t=>{this.language=t,this.languages=this.services.languageUtils.toResolveHierarchy(t),this.resolvedLanguage=void 0,this.setResolvedLanguage(t)},i=(t,i)=>{i?(o(i),this.translator.changeLanguage(i),this.isLanguageChangingTo=void 0,this.emit("languageChanged",i),this.logger.log("languageChanged",i)):this.isLanguageChangingTo=void 0,r.resolve(function(){return n.t(...arguments)}),e&&e(t,function(){return n.t(...arguments)})},u=e=>{t||e||!this.services.languageDetector||(e=[]);const n=Ek(e)?e:this.services.languageUtils.getBestMatchFromCodes(e);n&&(this.language||o(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(n)),this.loadResources(n,t=>{i(t,n)})};return t||!this.services.languageDetector||this.services.languageDetector.async?!t&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(u):this.services.languageDetector.detect(u):u(t):u(this.services.languageDetector.detect()),r}getFixedT(t,e,n){var r=this;const o=function(t,e){let i;if("object"!=typeof e){for(var u=arguments.length,a=new Array(u>2?u-2:0),s=2;s<u;s++)a[s-2]=arguments[s];i=r.options.overloadTranslationOptionHandler([t,e].concat(a))}else i={...e};i.lng=i.lng||o.lng,i.lngs=i.lngs||o.lngs,i.ns=i.ns||o.ns,""!==i.keyPrefix&&(i.keyPrefix=i.keyPrefix||n||o.keyPrefix);const c=r.options.keySeparator||".";let l;return l=i.keyPrefix&&Array.isArray(t)?t.map(t=>`${i.keyPrefix}${c}${t}`):i.keyPrefix?`${i.keyPrefix}${c}${t}`:t,r.t(l,i)};return Ek(t)?o.lng=t:o.lngs=t,o.ns=e,o.keyPrefix=n,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=e.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;const i=(t,e)=>{const n=this.services.backendConnector.state[`${t}|${e}`];return-1===n||0===n||2===n};if(e.precheck){const t=e.precheck(this,i);if(void 0!==t)return t}return!(!this.hasResourceBundle(n,t)&&this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages)&&(!i(n,t)||r&&!i(o,t)))}loadNamespaces(t,e){const n=wk();return this.options.ns?(Ek(t)&&(t=[t]),t.forEach(t=>{this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}),this.loadResources(t=>{n.resolve(),e&&e(t)}),n):(e&&e(),Promise.resolve())}loadLanguages(t,e){const n=wk();Ek(t)&&(t=[t]);const r=this.options.preload||[],o=t.filter(t=>r.indexOf(t)<0&&this.services.languageUtils.isSupportedCode(t));return o.length?(this.options.preload=r.concat(o),this.loadResources(t=>{n.resolve(),e&&e(t)}),n):(e&&e(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const e=this.services&&this.services.languageUtils||new Gk(oI());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(e.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){return new t(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:uI;const r=e.forkResourceStore;r&&delete e.forkResourceStore;const o={...this.options,...e,isClone:!0},i=new t(o);return void 0===e.debug&&void 0===e.prefix||(i.logger=i.logger.clone(e)),["store","services","language"].forEach(t=>{i[t]=this[t]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},r&&(i.store=new zk(this.store.data,o),i.services.resourceStore=i.store),i.translator=new Uk(i.services,o),i.translator.on("*",function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];i.emit(t,...n)}),i.init(o,n),i.translator.options=o,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}};const sI=aI.createInstance();sI.createInstance=aI.createInstance,sI.createInstance,sI.dir,sI.init,sI.loadResources,sI.reloadResources,sI.use,sI.changeLanguage,sI.getFixedT,sI.t,sI.exists,sI.setDefaultNamespace,sI.hasLoadedNamespace,sI.loadNamespaces,sI.loadLanguages;var cI="translation";function lI(t,e){sI.addResourceBundle(t,cI,e,!0,!0)}function fI(t){return sI.on("languageChanged",t),function(){return sI.off("languageChanged",t)}}sI.init({lng:"zh-CN",resources:{}});var dI=sI.t.bind(sI);function pI(t){if(t.removeAttr){t.removeAttr("width"),t.removeAttr("height"),t.removeAttr("fill"),t.removeAttr("class"),t.removeAttr("t"),t.removeAttr("p-id");var e=t.children();e.length&&pI(e)}}function hI(){return Rp('<svg viewBox="0 0 1024 1024"><path d="M498.7 655.8l-197.6-268c-8.1-10.9-0.3-26.4 13.3-26.4h395.2c13.6 0 21.4 15.4 13.3 26.4l-197.6 268c-6.6 9-20 9-26.6 0z"></path></svg>')}function vI(){return Rp('<div class="w-e-bar-divider"></div>')}function gI(t,e,n,r,o){if(void 0===r&&(r=""),void 0===o&&(o=!1),e){if(r){var i=KN?"cmd":"ctrl";r=r.replace("mod",i)}if(o)r&&(t.attr("data-tooltip",r),t.addClass("w-e-menu-tooltip-v5"),t.addClass("tooltip-right"));else{var u=r?"".concat(n,"\n").concat(r):n;t.attr("data-tooltip",u),t.addClass("w-e-menu-tooltip-v5")}}}var yI=function(){function t(t,e,n){void 0===n&&(n=!1);var r=this;this.$elem=Rp('<div class="w-e-bar-item"></div>'),this.$button=Rp('<button type="button"></button>'),this.disabled=!1,this.menu=e;var o=e.tag,i=e.width;if("button"!==o)throw new Error("Invalid tag '".concat(o,"', expected 'button'"));var u=e.title,a=e.hotkey,s=void 0===a?"":a,c=e.iconSvg,l=void 0===c?"":c,f=this.$button;if(l){var d=Rp(l);pI(d),f.append(d)}else f.text(u);gI(f,l,u,s,n),n&&l&&f.append(Rp('<span class="title">'.concat(u,"</span>"))),i&&f.css("width","".concat(i,"px")),f.attr("data-menu-key",t),this.$elem.append(f),rN(function(){return r.init()})}return t.prototype.init=function(){var t=this;this.setActive(),this.setDisabled(),this.$button.on("click",function(e){e.preventDefault(),PI(t).hidePanelOrModal(),t.disabled||(t.exec(),t.onButtonClick())})},t.prototype.exec=function(){var t=PI(this),e=this.menu,n=e.getValue(t);this.setIcon(),this.setTooltip(),e.exec(t,n)},t.prototype.setActive=function(){var t=PI(this),e=this.$button,n="active";this.menu.isActive(t)?e.addClass(n):e.removeClass(n)},t.prototype.setDisabled=function(){var t=PI(this),e=this.$button,n=this.menu.isDisabled(t);(null==t.selection||t.isDisabled())&&(n=!0),this.menu.alwaysEnable&&(n=!1);var r="disabled";n?e.addClass(r):e.removeClass(r),this.disabled=n},t.prototype.setIcon=function(){var t=PI(this),e=this.$button;if(this.menu.getIcon){var n=this.menu.getIcon(t);if(n){e.find("svg").remove();var r=Rp(n);pI(r),e.append(r)}}},t.prototype.setTooltip=function(){var t=PI(this),e=this.$button;if(this.menu.getTitle){var n=this.menu.getTitle(t),r=this.menu.iconSvg;n&&r&&gI(e,r,n)}},t.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},t}(),mI=function(t){function e(e,n,r){return void 0===r&&(r=!1),t.call(this,e,n,r)||this}return nC(e,t),e.prototype.onButtonClick=function(){},e}(yI),bI=function(){function t(t){this.isShow=!1,this.showTime=0,this.record(t)}return t.prototype.record=function(t){var e=bO.get(t);null==e&&(e=new Set,bO.set(t,e)),e.add(this),EO.set(this,t)},t.prototype.renderContent=function(t){var e=this.$elem;e.empty(),e.append(t);var n=this.genSelfElem();n&&e.append(n)},t.prototype.appendTo=function(t){var e=this.$elem;t.append(e)},t.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var t=EO.get(this);t&&t.emit("modalOrPanelShow",this)}},t.prototype.hide=function(){if(this.isShow&&!(Date.now()-this.showTime<200)){this.$elem.hide(),this.isShow=!1;var t=EO.get(this);t&&t.emit("modalOrPanelHide")}},t}(),EI=function(t){function e(e){var n=t.call(this,e)||this;return n.type="dropPanel",n.$elem=Rp('<div class="w-e-drop-panel"></div>'),n}return nC(e,t),e.prototype.genSelfElem=function(){return null},e}(bI),wI=function(t){function e(e,n,r){void 0===r&&(r=!1);var o=t.call(this,e,n,r)||this;if(o.dropPanel=null,o.menu=n,n.showDropPanel){var i=hI();o.$button.append(i)}return o}return nC(e,t),e.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},e.prototype.handleDropPanel=function(){var t=this.menu;if(null!=t.getPanelContentElem){var e=PI(this);if(null==this.dropPanel){var n=new EI(e),r=t.getPanelContentElem(e);n.renderContent(r),n.appendTo(this.$elem),n.show(),this.dropPanel=n}else{var o=this.dropPanel;o.isShow?o.hide():(r=t.getPanelContentElem(e),o.renderContent(r),o.show())}var i=this.dropPanel;if(i.isShow){var u=this.$elem,a=u.offset().left,s=u.parents(".w-e-bar");a-s.offset().left>=s.width()/2?i.$elem.css({left:"none",right:"0"}):i.$elem.css({left:"0",right:"none"})}}},e}(yI),SI=function(t){function e(e,n){void 0===n&&(n=0);var r=t.call(this,e)||this;r.type="modal",r.$elem=Rp('<div class="w-e-modal"></div>'),r.width=0,n&&(r.width=n);var o=r.$elem;return o.on("click",function(t){return t.stopPropagation()}),o.on("keyup",function(t){"Escape"===t.code&&(r.hide(),e.restoreSelection())}),r}return nC(e,t),e.prototype.genSelfElem=function(){var t=this,e=Rp('<span class="btn-close">'.concat('<svg viewBox="0 0 1024 1024"><path d="M1024 896.1024l-128 128L512 640 128 1024 0 896 384 512 0 128 128 0 512 384 896.1024 0l128 128L640 512z"></path></svg>',"</span>")),n=EO.get(this);return e.on("click",function(){t.hide(),null==n||n.restoreSelection()}),e},e.prototype.setStyle=function(t){var e=this.width,n=this.$elem;n.attr("style",""),e&&n.css("width","".concat(e,"px")),n.css(t)},e}(bI);function CI(t,e,n){var r=Rp('<label class="babel-container"></label>');r.append("<span>".concat(t,"</span>"));var o=Rp('<input type="text" id="'.concat(e,'" placeholder="').concat(n||"",'">'));return r.append(o),[r[0],o[0]]}function DI(t,e){var n=Rp('<div class="button-container"></div>'),r=Rp('<button type="button" id="'.concat(t,'">').concat(e,"</button>"));return n.append(r),[n[0],r[0]]}var OI=function(t){function e(e,n,r){void 0===r&&(r=!1);var o=t.call(this,e,n,r)||this;return o.$body=Rp("body"),o.modal=null,o.menu=n,o}return nC(e,t),e.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},e.prototype.getPosition=function(){var t=PI(this),e=this.menu.getModalPositionNode(t);return yp.Element.isElement(e)?vk(t,e,"modal"):hk(t)},e.prototype.handleModal=function(){var t=PI(this),e=this.menu;if(null==this.modal){var n=new SI(t,e.modalWidth);this.renderAndShowModal(n,!0),this.modal=n}else(n=this.modal).isShow?n.hide():this.renderAndShowModal(n,!1)},e.prototype.renderAndShowModal=function(t,e){void 0===e&&(e=!1);var n=PI(this),r=this.menu;if(null!=r.getModalContentElem){var o=eP.getTextarea(n),i=eP.getToolbar(n),u=((null==i?void 0:i.getConfig())||{}).modalAppendToBody,a=r.getModalContentElem(n);if(t.renderContent(a),u)t.setStyle({left:"0",right:"0"});else{var s=this.getPosition();t.setStyle(s)}e&&(u?t.appendTo(this.$body):t.appendTo(o.$textAreaContainer)),t.show(),u||gk(n,t.$elem),setTimeout(function(){n.blur()})}},e}(yI),AI=function(t){function e(e,n){var r=t.call(this,e)||this;return r.type="selectList",r.$elem=Rp('<div class="w-e-select-list"></div>'),n&&r.$elem.css("width","".concat(n,"px")),r.$elem.on("click",function(t){t.stopPropagation()}),r}return nC(e,t),e.prototype.renderList=function(t){var e=this.$elem;e.empty();var n=Rp("<ul></ul>");t.forEach(function(t){var e=t.value,r=t.text,o=t.selected,i=t.styleForRenderMenuList,u=Rp('<li data-value="'.concat(e,'"></li>'));if(i&&u.css(i),o){var a=Rp('<svg viewBox="0 0 1446 1024"><path d="M574.116299 786.736392 1238.811249 48.517862C1272.390222 11.224635 1329.414799 7.827718 1366.75664 41.450462 1403.840015 74.840484 1406.731043 132.084741 1373.10189 169.433699L655.118888 966.834607C653.072421 969.716875 650.835807 972.514337 648.407938 975.210759 615.017957 1012.29409 558.292155 1015.652019 521.195664 982.250188L72.778218 578.493306C35.910826 545.297758 32.859041 488.584019 66.481825 451.242134 99.871807 414.158803 156.597563 410.800834 193.694055 444.202665L574.116299 786.736392Z"></path></svg>');u.append(a),u.addClass("selected")}u.append(Rp('<span data-value="'.concat(e,'">').concat(r,"</span>"))),u.attr("title",r),n.append(u)}),e.append(n)},e.prototype.genSelfElem=function(){return null},e}(bI),xI=function(){function t(t,e,n){void 0===n&&(n=!1);var r=this;this.$elem=Rp('<div class="w-e-bar-item"></div>'),this.$button=Rp('<button type="button" class="select-button"></button>'),this.disabled=!1,this.selectList=null;var o=e.tag,i=e.title,u=e.width,a=e.iconSvg,s=void 0===a?"":a,c=e.hotkey,l=void 0===c?"":c;if("select"!==o)throw new Error("Invalid tag '".concat(o,"', expected 'select'"));var f=this.$button;u&&f.css("width","".concat(u,"px")),f.attr("data-menu-key",t),gI(f,s,i,l,n),this.$elem.append(f),this.menu=e,rN(function(){return r.init()})}return t.prototype.init=function(){var t=this;this.setSelectedValue(),this.$button.on("click",function(e){e.preventDefault(),PI(t).hidePanelOrModal(),t.trigger()})},t.prototype.trigger=function(){var t=this,e=PI(this);if(!e.isDisabled()&&!this.disabled){var n=this.menu;if(null==this.selectList){this.selectList=new AI(e,n.selectPanelWidth);var r=this.selectList,o=n.getOptions(e);r.renderList(o),r.appendTo(this.$elem),r.show(),r.$elem.on("click","li",function(e){var n=e.target;if(null!=n){e.preventDefault();var r=Rp(n).attr("data-value");t.onChange(r)}})}else(r=this.selectList).isShow?r.hide():(o=n.getOptions(e),r.renderList(o),r.show())}},t.prototype.onChange=function(t){var e=PI(this),n=this.menu;n.exec&&n.exec(e,t)},t.prototype.setSelectedValue=function(){var t=PI(this),e=this.menu,n=e.getValue(t),r=function(t,e){for(var n=t.length,r="",o=0;o<n;o++){var i=t[o];if(i.value===e){r=i.text;break}}return r}(e.getOptions(t),n.toString()),o=this.$button,i=hI();o.empty(),o.text(r),o.append(i)},t.prototype.setDisabled=function(){var t=PI(this),e=this.menu.isDisabled(t),n=this.$button;(null==t.selection||t.isDisabled())&&(e=!0);var r="disabled";e?n.addClass(r):n.removeClass(r),this.disabled=e},t.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},t}(),TI=function(){function t(t){this.$elem=Rp('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=Rp('<div class="w-e-bar-item-menus-container"></div>'),this.$button=Rp('<button type="button"></button>');var e=t.key,n=t.iconSvg,r=t.title,o=this.$elem,i=this.$button;if(n){var u=Rp(n);pI(u),i.append(u)}else i.text(r);i.attr("data-menu-key",e);var a=hI();i.append(a),o.append(i);var s=this.$container;o.append(s);var c=this.createObserver();this.observe(c)}return t.prototype.appendBarItem=function(t){var e=t.$elem;this.$container.append(e)},t.prototype.observe=function(t){var e=this.$container;t.observe(e[0],{childList:!0,subtree:!0,attributes:!0})},t.prototype.createObserver=function(){var t=this,e=this.$container,n=this.$button,r=new MutationObserver(function(){var o=e.find("button"),i=o.length;if(0!==i){var u=0;o.each(function(t){Rp(t).hasClass("disabled")&&u++}),r.disconnect(),u===i?n.addClass("disabled"):n.removeClass("disabled"),t.observe(r)}});return r},t}(),NI=new WeakMap;function PI(t){var e=mO.get(t);if(null==e)throw new Error("Can not get editor instance");return e}function kI(t,e,n){void 0===n&&(n=!1);var r=NI.get(e);if(r)return r;var o=e.tag;if("button"===o){var i=e.showDropPanel,u=e.showModal;r=i?new wI(t,e,n):u?new OI(t,e,n):new mI(t,e,n)}if("select"===o&&(r=new xI(t,e,n)),null==r)throw new Error("Invalid tag in menu ".concat(JSON.stringify(e)));return NI.set(e,r),r}function II(t,e){var n=t.selection;return null!=n&&!yp.Range.isCollapsed(n)&&!eP.getSelectedElems(t).some(function(e){if(t.isVoid(e))return!0;var n=e.type;return!!["pre","code","table"].includes(n)})&&!!yp.Text.isText(e)}var BI,FI=function(){function t(){var t=this;this.$elem=Rp('<div class="w-e-bar w-e-bar-hidden w-e-hover-bar"></div>'),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null,this.isShow=!1,this.lngListen=function(){},this.changeHoverbarState=Oh(function(){var e=t.isShow,n=t.getSelectedNodeAndMenuKeys()||{},r=n.node,o=void 0===r?null:r,i=n.menuKeys,u=void 0===i?[]:i,a=t.getEditorInstance();if(null!=o&&t.changeItemsState(),o&&yp.Element.isElement(o)&&e){var s=t.isSamePath(o,t.prevSelectedNode);if(!yp.Editor.isBlock(a,o)&&s)return}t.hideAndClean(),null!=o&&(t.registerItems(u),t.setPosition(o),t.show()),t.prevSelectedNode=o},200),rN(function(){var e=t.getEditorInstance(),n=t.$elem;n.on("mousedown",function(t){return t.preventDefault()},{passive:!1}),eP.getTextarea(e).$textAreaContainer.append(n),e.on(lC,t.changeHoverbarState);var r=t.hideAndClean.bind(t);e.on(fC,r),e.on("fullscreen",r),e.on("unFullScreen",r)}),this.lngListen=fI(function(){t.menus={},t.hideAndClean(),t.getEditorInstance().deselect()})}return t.prototype.getMenus=function(){return this.menus},t.prototype.hideAndClean=function(){var t=this.$elem;t.removeClass("w-e-bar-show").addClass("w-e-bar-hidden"),this.hoverbarItems=[],t.empty(),this.isShow=!1},t.prototype.checkPositionBottom=function(){var t=this.$elem,e=!1,n="undefined"!=typeof window?window.innerHeight:null;n&&n>=360&&n-t[0].getBoundingClientRect().bottom<360&&(e=!0),e?t.addClass("w-e-bar-bottom"):t.removeClass("w-e-bar-bottom")},t.prototype.show=function(){this.$elem.removeClass("w-e-bar-hidden").addClass("w-e-bar-show"),this.isShow=!0,this.checkPositionBottom()},t.prototype.changeItemsState=function(){var t=this;rN(function(){t.hoverbarItems.forEach(function(t){t.changeMenuState()})})},t.prototype.registerItems=function(t){var e=this,n=this.$elem;t.forEach(function(t){if("|"!==t)e.registerSingleItem(t);else{var r=vI();n.append(r)}})},t.prototype.registerSingleItem=function(t){var e=this.getEditorInstance(),n=this.menus,r=n[t];if(null==r){var o=dC[t];if(null==o)throw new Error("Not found menu item factory by key '".concat(t,"'"));if("function"!=typeof o)throw new Error("Menu item factory (key='".concat(t,"') is not a function"));r=o(),n[t]=r}var i=e.getMenuConfig(t);i&&void 0!==i.iconSvg&&(r.iconSvg=i.iconSvg);var u=kI(t,r);this.hoverbarItems.push(u),mO.set(u,e),this.$elem.append(u.$elem)},t.prototype.setPosition=function(t){var e=this.getEditorInstance(),n=this.$elem;if(n.attr("style",""),yp.Element.isElement(t)){var r=vk(e,t,"bar");return n.css(r),void gk(e,n)}if(yp.Text.isText(t))return r=hk(e),n.css(r),void gk(e,n);throw new Error("hoverbar.setPosition error, current selected node is not elem nor text")},t.prototype.getSelectedNodeAndMenuKeys=function(){var t=this.getEditorInstance();if(null==t.selection)return null;var e=this.getHoverbarKeysConf(),n=null,r=[],o=function(o){var i=e[o],u=i.match,a=i.menuKeys,s=void 0===a?[]:a,c=u||function(t,e){return eP.checkNodeType(e,o)},l=uC(yp.Editor.nodes(t,{match:function(e){return c(t,e)},universal:!0}),1),f=l[0];if(null!=f)return n=f[0],r=s,"break"};for(var i in e)if("break"===o(i))break;return null==n||0===r.length?null:{node:n,menuKeys:r}},t.prototype.getEditorInstance=function(){var t=gO.get(this);if(null==t)throw new Error("Can not get editor instance");return t},t.prototype.getHoverbarKeysConf=function(){var t=this.getEditorInstance().getConfig().hoverbarKeys,e=void 0===t?{}:t,n=e.text;return n&&null==n.match&&(n.match=II),e},t.prototype.isSamePath=function(t,e){if(null==t||null==e)return!1;var n=eP.findPath(null,t),r=eP.findPath(null,e);return yp.Path.equals(n,r)},t.prototype.destroy=function(){var t;this.changeHoverbarState.cancel(),this.$elem.remove(),null===(t=this.lngListen)||void 0===t||t.call(this),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},t}(),RI={};function _I(t,e){return sN(e)&&eP.hasDOMNode(t,e,{editable:!0})}function jI(t,e){if(t.getConfig().readOnly)return!1;var n=LI(t,e)&&eP.toSlateNode(t,e);return yp.Editor.isVoid(t,n)}function LI(t,e){return sN(e)&&eP.hasDOMNode(t,e)}!function(){if(BI)return RI;BI=1;var t,e=aS(),n=US(),r=EE().f,o=Cw(),i=fD(),u=sA(),a=Cb(),s=cA(),c=sE(),l=n("".slice),f=Math.min,d=s("startsWith");e({target:"String",proto:!0,forced:!(!c&&!d&&(t=r(String.prototype,"startsWith"),t&&!t.writable)||d)},{startsWith:function(t){var e=i(a(this));u(t);var n=o(f(arguments.length>1?arguments[1]:void 0,e.length)),r=i(t);return l(e,n,n+r.length)===r}})}();const MI=t=>"object"==typeof t&&null!=t&&1===t.nodeType,zI=(t,e)=>(!e||"hidden"!==t)&&"visible"!==t&&"clip"!==t,HI=(t,e)=>{if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){const n=getComputedStyle(t,null);return zI(n.overflowY,e)||zI(n.overflowX,e)||(t=>{const e=(t=>{if(!t.ownerDocument||!t.ownerDocument.defaultView)return null;try{return t.ownerDocument.defaultView.frameElement}catch(t){return null}})(t);return!!e&&(e.clientHeight<t.scrollHeight||e.clientWidth<t.scrollWidth)})(t)}return!1},$I=(t,e,n,r,o,i,u,a)=>i<t&&u>e||i>t&&u<e?0:i<=t&&a<=n||u>=e&&a>=n?i-t-r:u>e&&a<n||i<t&&a>n?u-e+o:0,UI=t=>{const e=t.parentElement;return null==e?t.getRootNode().host||null:e},VI=(t,e)=>{var n,r,o,i;if("undefined"==typeof document)return[];const{scrollMode:u,block:a,inline:s,boundary:c,skipOverflowHiddenElements:l}=e,f="function"==typeof c?c:t=>t!==c;if(!MI(t))throw new TypeError("Invalid target");const d=document.scrollingElement||document.documentElement,p=[];let h=t;for(;MI(h)&&f(h);){if(h=UI(h),h===d){p.push(h);break}null!=h&&h===document.body&&HI(h)&&!HI(document.documentElement)||null!=h&&HI(h,l)&&p.push(h)}const v=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,g=null!=(i=null==(o=window.visualViewport)?void 0:o.height)?i:innerHeight,{scrollX:y,scrollY:m}=window,{height:b,width:E,top:w,right:S,bottom:C,left:D}=t.getBoundingClientRect(),{top:O,right:A,bottom:x,left:T}=(t=>{const e=window.getComputedStyle(t);return{top:parseFloat(e.scrollMarginTop)||0,right:parseFloat(e.scrollMarginRight)||0,bottom:parseFloat(e.scrollMarginBottom)||0,left:parseFloat(e.scrollMarginLeft)||0}})(t);let N="start"===a||"nearest"===a?w-O:"end"===a?C+x:w+b/2-O+x,P="center"===s?D+E/2-T+A:"end"===s?S+A:D-T;const k=[];for(let t=0;t<p.length;t++){const e=p[t],{height:n,width:r,top:o,right:i,bottom:c,left:l}=e.getBoundingClientRect();if("if-needed"===u&&w>=0&&D>=0&&C<=g&&S<=v&&(e===d&&!HI(e)||w>=o&&C<=c&&D>=l&&S<=i))return k;const f=getComputedStyle(e),h=parseInt(f.borderLeftWidth,10),O=parseInt(f.borderTopWidth,10),A=parseInt(f.borderRightWidth,10),x=parseInt(f.borderBottomWidth,10);let T=0,I=0;const B="offsetWidth"in e?e.offsetWidth-e.clientWidth-h-A:0,F="offsetHeight"in e?e.offsetHeight-e.clientHeight-O-x:0,R="offsetWidth"in e?0===e.offsetWidth?0:r/e.offsetWidth:0,_="offsetHeight"in e?0===e.offsetHeight?0:n/e.offsetHeight:0;if(d===e)T="start"===a?N:"end"===a?N-g:"nearest"===a?$I(m,m+g,g,O,x,m+N,m+N+b,b):N-g/2,I="start"===s?P:"center"===s?P-v/2:"end"===s?P-v:$I(y,y+v,v,h,A,y+P,y+P+E,E),T=Math.max(0,T+m),I=Math.max(0,I+y);else{T="start"===a?N-o-O:"end"===a?N-c+x+F:"nearest"===a?$I(o,c,n,O,x+F,N,N+b,b):N-(o+n/2)+F/2,I="start"===s?P-l-h:"center"===s?P-(l+r/2)+B/2:"end"===s?P-i+A+B:$I(l,i,r,h,A+B,P,P+E,E);const{scrollLeft:t,scrollTop:u}=e;T=0===_?0:Math.max(0,Math.min(u+T/_,e.scrollHeight-n/_+F)),I=0===R?0:Math.max(0,Math.min(t+I/R,e.scrollWidth-r/R+B)),N+=u-T,P+=t-I}k.push({el:e,top:T,left:I})}return k};function GI(t,e,n){void 0===n&&(n=!1);var r=e.selection,o=e.getConfig(),i=eP.findDocumentOrShadowRoot(e).getSelection();if(i&&(!t.isComposing||n)&&e.isFocused()){var u="None"!==i.type;if(r||u){var a=NO.get(e),s=!1;if(a.contains(i.anchorNode)&&a.contains(i.focusNode)&&(s=!0),u&&s&&r){var c=eP.toSlateRange(e,i,{exactMatch:!0,suppressThrow:!0});if(c&&yp.Range.equals(c,r)){var l=!0;if(yp.Range.isCollapsed(r)){var f=i.anchorNode,d=i.anchorOffset;if(f===a){var p=a.childNodes,h=void 0;(h=p[d])&&h.matches("table")&&(l=!1),(h=p[d-1])&&h.matches("table")&&(l=!1)}}if(l)return}}if(!r||eP.hasRange(e,r)){t.isUpdatingSelection=!0;var v=r&&eP.toDOMRange(e,r);if(v){yp.Range.isBackward(r)?i.setBaseAndExtent(v.endContainer,v.endOffset,v.startContainer,v.startOffset):i.setBaseAndExtent(v.startContainer,v.startOffset,v.endContainer,v.endOffset);var g=v.startContainer.parentElement;if(!g.closest("[data-slate-spacer]")&&v.getBoundingClientRect){g.getBoundingClientRect=v.getBoundingClientRect.bind(v);var y=document.body;(function(t,e){if(!t.isConnected||!(t=>{let e=t;for(;e&&e.parentNode;){if(e.parentNode===document)return!0;e=e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}return!1})(t))return;const n=(t=>{const e=window.getComputedStyle(t);return{top:parseFloat(e.scrollMarginTop)||0,right:parseFloat(e.scrollMarginRight)||0,bottom:parseFloat(e.scrollMarginBottom)||0,left:parseFloat(e.scrollMarginLeft)||0}})(t);if((t=>"object"==typeof t&&"function"==typeof t.behavior)(e))return e.behavior(VI(t,e));const r="boolean"==typeof e||null==e?void 0:e.behavior;for(const{el:o,top:i,left:u}of VI(t,(t=>!1===t?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&0!==Object.keys(t).length)(t)?t:{block:"start",inline:"nearest"})(e))){const t=i-n.top+n.bottom,e=u-n.left+n.right;o.scroll({top:t,left:e,behavior:r})}})(g,{scrollMode:"if-needed",boundary:o.scroll?a.parentElement:y,block:"end",behavior:"smooth"}),delete g.getBoundingClientRect}}else i.removeAllRanges();setTimeout(function(){v&&YN&&a.focus(),t.isUpdatingSelection=!1})}else e.selection=eP.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})}}}var WI=new WeakMap,qI=new WeakMap,KI={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",splitBlock:"shift?+enter",undo:"mod+z",tab:"tab",selectAll:"mod+a"},YI={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},XI={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},JI=function(t){var e=KI[t],n=YI[t],r=XI[t],o=e&&Ph.isKeyHotkey(e),i=n&&Ph.isKeyHotkey(n),u=r&&Ph.isKeyHotkey(r);return function(t){return!(!o||!o(t))||!!(KN&&i&&i(t))||!(KN||!u||!u(t))}},ZI={isBold:JI("bold"),isCompose:JI("compose"),isMoveBackward:JI("moveBackward"),isMoveForward:JI("moveForward"),isDeleteBackward:JI("deleteBackward"),isDeleteForward:JI("deleteForward"),isDeleteLineBackward:JI("deleteLineBackward"),isDeleteLineForward:JI("deleteLineForward"),isDeleteWordBackward:JI("deleteWordBackward"),isDeleteWordForward:JI("deleteWordForward"),isExtendBackward:JI("extendBackward"),isExtendForward:JI("extendForward"),isExtendLineBackward:JI("extendLineBackward"),isExtendLineForward:JI("extendLineForward"),isItalic:JI("italic"),isMoveLineBackward:JI("moveLineBackward"),isMoveLineForward:JI("moveLineForward"),isMoveWordBackward:JI("moveWordBackward"),isMoveWordForward:JI("moveWordForward"),isRedo:JI("redo"),isSplitBlock:JI("splitBlock"),isTransposeCharacter:JI("transposeCharacter"),isUndo:JI("undo"),isTab:JI("tab"),isSelectAll:JI("selectAll")};function QI(t){t.preventDefault()}var tB,eB,nB,rB={beforeinput:function(t,e,n){var r=t,o=n.getConfig().readOnly;if(tP&&!o&&_I(n,r.target)){var i=n.selection,u=r.inputType,a=r.dataTransfer||r.data||void 0;if("insertCompositionText"!==u&&"deleteCompositionText"!==u){if(r.preventDefault(),!u.startsWith("delete")||u.startsWith("deleteBy")){var s=uC(r.getTargetRanges(),1)[0];if(s){var c=eP.toSlateRange(n,s,{exactMatch:!1,suppressThrow:!1});i&&yp.Range.equals(i,c)||yp.Transforms.select(n,c)}}if(i&&yp.Range.isExpanded(i)){var l=eP.getSelectedElems(n),f="table"===l[0].type,d="table-cell"!==l[l.length-1].type;if(f&&d)return;if(u.startsWith("delete")){var p=u.endsWith("Backward")?"backward":"forward";return void yp.Editor.deleteFragment(n,{direction:p})}}switch(u){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":yp.Editor.deleteFragment(n);break;case"deleteContent":case"deleteContentForward":yp.Editor.deleteForward(n);break;case"deleteContentBackward":yp.Editor.deleteBackward(n);break;case"deleteEntireSoftLine":yp.Editor.deleteBackward(n,{unit:"line"}),yp.Editor.deleteForward(n,{unit:"line"});break;case"deleteHardLineBackward":yp.Editor.deleteBackward(n,{unit:"block"});break;case"deleteSoftLineBackward":yp.Editor.deleteBackward(n,{unit:"line"});break;case"deleteHardLineForward":yp.Editor.deleteForward(n,{unit:"block"});break;case"deleteSoftLineForward":yp.Editor.deleteForward(n,{unit:"line"});break;case"deleteWordBackward":yp.Editor.deleteBackward(n,{unit:"word"});break;case"deleteWordForward":yp.Editor.deleteForward(n,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":yp.Editor.insertBreak(n);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if("insertFromPaste"===u&&!LO.get(n))break;!function(t){return"[object DataTransfer]"===iN(t)}(a)?"string"==typeof a&&yp.Editor.insertText(n,a):n.insertData(a)}}}},blur:function(t,e,n){var r=t,o=e.isUpdatingSelection,i=e.latestElement;if(!n.getConfig().readOnly&&!o&&_I(n,r.target)){var u=eP.findDocumentOrShadowRoot(n);if(i!==u.activeElement){var a=r.relatedTarget;if(!(a===eP.toDOMNode(n,n)||lN(a)&&a.hasAttribute("data-slate-spacer"))){if(null!=a&&sN(a)&&eP.hasDOMNode(n,a)){var s=eP.toSlateNode(n,a);if(yp.Element.isElement(s)&&!n.isVoid(s))return}if(XN){var c=u.getSelection();null==c||c.removeAllRanges()}RO.delete(n)}}}},focus:function(t,e,n){var r=eP.toDOMNode(n,n),o=eP.findDocumentOrShadowRoot(n);e.latestElement=o.activeElement,YN&&t.target!==r?r.focus():RO.set(n,!0)},click:function(t,e,n){if(!n.getConfig().readOnly&&LI(n,t.target)&&sN(t.target)){var r=eP.toSlateNode(n,t.target),o=eP.findPath(n,r);if(yp.Editor.hasPath(n,o)&&yp.Node.get(n,o)===r){var i=yp.Editor.start(n,o),u=yp.Editor.end(n,o),a=yp.Editor.void(n,{at:i}),s=yp.Editor.void(n,{at:u});if(a&&s&&yp.Path.equals(a[1],s[1])){var c=yp.Editor.range(n,i);yp.Transforms.select(n,c)}}}},compositionstart:function(t,e,n){if(_I(n,t.target)){var r=n.selection;if(r&&yp.Range.isExpanded(r)&&(yp.Editor.deleteFragment(n),Promise.resolve().then(function(){GI(e,n,!0)})),n.selection){var o=eP.toDOMRange(n,n.selection).startContainer,i=o.textContent||"";WI.set(n,i),qI.set(n,o)}e.isComposing=!0,function(t,e){var n;e.getConfig().placeholder&&e.isEmpty()&&t.showPlaceholder&&(null===(n=t.$placeholder)||void 0===n||n.hide(),t.showPlaceholder=!1)}(e,n)}},compositionend:function(t,e,n){var r=t;if(_I(n,r.target)){e.isComposing=!1;var o=n.selection;if(null!=o){(QN||YN)&&eP.cleanExposedTexNodeInSelectionBlock(n);for(var i=yp.Range.isBackward(o)?o.focus:o.anchor,u=uC(yp.Editor.node(n,[i.path[0]]),1)[0],a=0;a<i.path.length;a+=1){var s=uC(yp.Editor.node(n,i.path.slice(0,a+1)),1)[0];if(yp.Element.isElement(s)&&((XN||YN)&&"link"===s.type||"code"===s.type)){eP.setNewKey(u);break}}var c=r.data;if(c){if(n.getConfig().maxLength){var l=eP.getLeftLengthOfMaxLength(n);if(l<c.length){var f=eP.toDOMRange(n,o);f.startContainer.nodeType===Node.TEXT_NODE&&(f.startContainer.textContent=WI.get(n)||""),l>0&&yp.Editor.insertText(n,c.slice(0,l)),e.changeViewState()}else yp.Editor.insertText(n,c)}else{var d=eP.findDocumentOrShadowRoot(n).getSelection();d&&function(t,e){if(yp.Range.isCollapsed(e)){var n=e.anchor,r=e.focus;if([2,3].includes(n.path.length)&&[2,3].includes(r.path.length)&&(0===n.offset||0===r.offset)){var o=yp.Editor.node(t,n.path),i=0===n.offset?n.path:r.path,u=[i[0],i[1]-1];if(0===i[1])return!1;var a=yp.Editor.node(t,u);if(yp.Text.isText(a[0])&&yp.Text.isText(o[0]))return!0}}}(n,o)&&(n.selection=eP.toSlateRange(n,d,{exactMatch:!1,suppressThrow:!1})),yp.Editor.insertText(n,c)}XN||setTimeout(function(){var t=n.selection;if(null!=t){var e=qI.get(n);null!=e&&eP.toDOMRange(n,t).startContainer!==e&&(e.textContent=WI.get(n)||"")}})}}}},compositionupdate:function(t,e,n){_I(n,t.target)&&(e.isComposing=!0)},keydown:function(t,e,n){var r=t,o=n.selection;if(!n.getConfig().readOnly&&!e.isComposing&&_I(n,r.target)){if(function(t,e){var n=vO.get(t),r=n&&n.getMenus(),o=yO.get(t),i=o&&o.getMenus(),u=rC(rC({},r),i);for(var a in u){var s=u[a],c=s.hotkey;if(c&&Ph.isHotkey(c,e)&&!s.isDisabled(t)){var l=s.getValue(t);s.exec(t,l)}}}(n,r),ZI.isTab(r))return QI(r),void n.handleTab();if(ZI.isRedo(r))return QI(r),void("function"==typeof n.redo&&n.redo());if(ZI.isUndo(r))return QI(r),void("function"==typeof n.undo&&n.undo());if(ZI.isMoveLineBackward(r))return QI(r),void yp.Transforms.move(n,{unit:"line",reverse:!0});if(ZI.isMoveLineForward(r))return QI(r),void yp.Transforms.move(n,{unit:"line"});if(ZI.isExtendLineBackward(r))return QI(r),void yp.Transforms.move(n,{unit:"line",edge:"focus",reverse:!0});if(ZI.isExtendLineForward(r))return QI(r),void yp.Transforms.move(n,{unit:"line",edge:"focus"});if(ZI.isMoveBackward(r))return QI(r),void(o&&yp.Range.isCollapsed(o)?yp.Transforms.move(n,{reverse:!0}):yp.Transforms.collapse(n,{edge:"start"}));if(ZI.isMoveForward(r))return QI(r),void(o&&yp.Range.isCollapsed(o)?yp.Transforms.move(n):yp.Transforms.collapse(n,{edge:"end"}));if(ZI.isMoveWordBackward(r))return QI(r),o&&yp.Range.isExpanded(o)&&yp.Transforms.collapse(n,{edge:"focus"}),void yp.Transforms.move(n,{unit:"word",reverse:!0});if(ZI.isMoveWordForward(r))return QI(r),o&&yp.Range.isExpanded(o)&&yp.Transforms.collapse(n,{edge:"focus"}),void yp.Transforms.move(n,{unit:"word"});if(ZI.isSelectAll(r))return QI(r),void n.selectAll();if(tP){if((QN||XN)&&o&&(ZI.isDeleteBackward(r)||ZI.isDeleteForward(r))&&yp.Range.isCollapsed(o)){var i=yp.Node.parent(n,o.anchor.path);if(yp.Element.isElement(i)&&yp.Editor.isVoid(n,i)&&yp.Editor.isInline(n,i))return r.preventDefault(),void yp.Transforms.delete(n,{unit:"block"})}}else{if(ZI.isBold(r)||ZI.isItalic(r)||ZI.isTransposeCharacter(r))return void QI(r);if(ZI.isSplitBlock(r))return QI(r),void yp.Editor.insertBreak(n);if(ZI.isDeleteBackward(r))return QI(r),void(o&&yp.Range.isExpanded(o)?yp.Editor.deleteFragment(n,{direction:"backward"}):yp.Editor.deleteBackward(n));if(ZI.isDeleteForward(r))return QI(r),void(o&&yp.Range.isExpanded(o)?yp.Editor.deleteFragment(n,{direction:"forward"}):yp.Editor.deleteForward(n));if(ZI.isDeleteLineBackward(r))return QI(r),void(o&&yp.Range.isExpanded(o)?yp.Editor.deleteFragment(n,{direction:"backward"}):yp.Editor.deleteBackward(n,{unit:"line"}));if(ZI.isDeleteLineForward(r))return QI(r),void(o&&yp.Range.isExpanded(o)?yp.Editor.deleteFragment(n,{direction:"forward"}):yp.Editor.deleteForward(n,{unit:"line"}));if(ZI.isDeleteWordBackward(r))return QI(r),void(o&&yp.Range.isExpanded(o)?yp.Editor.deleteFragment(n,{direction:"backward"}):yp.Editor.deleteBackward(n,{unit:"word"}));if(ZI.isDeleteWordForward(r))return QI(r),void(o&&yp.Range.isExpanded(o)?yp.Editor.deleteFragment(n,{direction:"forward"}):yp.Editor.deleteForward(n,{unit:"word"}))}}},keypress:function(t,e,n){if(!tP&&!n.getConfig().readOnly&&_I(n,t.target)){t.preventDefault();var r=t.key;yp.Editor.insertText(n,r)}},copy:function(t,e,n){var r=t;if(_I(n,r.target)){n.getConfig().readOnly||r.preventDefault();var o=r.clipboardData;if(null!=o){n.setFragmentData(o);var i=n.getConfig().customCopy;i&&i(n,r)}}},cut:function(t,e,n){var r=t,o=n.selection;if(!n.getConfig().readOnly&&(r.preventDefault(),_I(n,r.target))){var i=r.clipboardData;if(null!=i&&(n.setFragmentData(i),o))if(yp.Range.isExpanded(o))yp.Editor.deleteFragment(n);else{var u=yp.Node.parent(n,o.anchor.path);yp.Editor.isVoid(n,u)&&yp.Transforms.delete(n)}}},paste:function(t,e,n){LO.set(n,!0);var r=t;if(!n.getConfig().readOnly&&_I(n,r.target)){var o=n.getConfig().customPaste;if(o&&!1===o(n,r))return void LO.set(n,!1);if(XN||!tP||function(t){return t.clipboardData&&""!==t.clipboardData.getData("text/plain")&&1===t.clipboardData.types.length}(r)){r.preventDefault();var i=r.clipboardData;null!=i&&n.insertData(i)}}},dragover:function(t,e,n){if(LI(n,t.target)){var r=eP.toSlateNode(n,t.target);yp.Editor.isVoid(n,r)&&t.preventDefault()}},dragstart:function(t,e,n){var r=t;if(LI(n,r.target)&&!n.getConfig().readOnly){var o=eP.toSlateNode(n,r.target),i=eP.findPath(n,o);if(yp.Editor.isVoid(n,o)||yp.Editor.void(n,{at:i,voids:!0})){var u=yp.Editor.range(n,i);yp.Transforms.select(n,u)}var a=r.dataTransfer;null!=a&&(eP.getSelectedNodeByType(n,"table")||(e.isDraggingInternally=!0,n.setFragmentData(a)))}},dragend:function(t,e,n){var r=t;n.getConfig().readOnly||e.isDraggingInternally&&LI(n,r.target)&&(e.isDraggingInternally=!1)},drop:function(t,e,n){var r=t,o=r.dataTransfer;if(!n.getConfig().readOnly&&LI(n,r.target)&&null!=o&&!(tP&&XN&&o.files.length>0)){r.preventDefault();var i=n.selection,u=eP.findEventRange(n,r);yp.Transforms.select(n,u),e.isDraggingInternally&&(i&&yp.Transforms.delete(n,{at:i}),e.isDraggingInternally=!1),n.insertData(o),n.isFocused()||n.focus()}}},oB={};!function(){if(nB)return oB;nB=1;var t=aS(),e=function(){if(eB)return tB;eB=1;var t=Am(),e=bb(),n=Tm(),r=Om(),o=ES(),i=oS(),u=yb(),a=dE(),s=wb(),c=Object.assign,l=Object.defineProperty,f=e([].concat);return tB=!c||r(function(){if(t&&1!==c({b:1},c(l({},"a",{enumerable:!0,get:function(){l(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},n={},r=Symbol("assign detection"),i="abcdefghijklmnopqrst";return e[r]=7,i.split("").forEach(function(t){n[t]=t}),7!==c({},e)[r]||o(c({},n)).join("")!==i})?function(e,r){for(var c=a(e),l=arguments.length,d=1,p=i.f,h=u.f;l>d;)for(var v,g=s(arguments[d++]),y=p?f(o(g),p(g)):o(g),m=y.length,b=0;m>b;)v=y[b++],t&&!n(h,g,v)||(c[v]=g[v]);return c}:c,tB}();t({target:"Object",stat:!0,arity:2,forced:Object.assign!==e},{assign:e})}();var iB=[];var uB={};function aB(t,e,n){return dv(n.isInline(t)?"span":"div",null,e)}function sB(t,e){return void 0===e&&(e=!1),dv("span",{"data-slate-string":!0},e?t+"\n":t)}function cB(t,e){return void 0===t&&(t=0),void 0===e&&(e=!1),dv("span",{"data-slate-zero-width":e?"n":"z","data-slate-length":t},"\ufeff",e?dv("br",null):null)}function lB(t,e,n,r){return xO.set(t,e),TO.set(t,n),yp.Element.isElement(t)?function(t,e){var n,r=eP.findKey(e,t),o=e.isInline(t),i=yp.Editor.isVoid(e,t),u=_N(t.type,r.id),a={id:u,key:r.id,"data-slate-node":"element","data-slate-inline":o},s=t.type,c=t.children,l=void 0===c?[]:c,f=function(t){return uB[t]||aB}(s);n=i?null:l.map(function(n,r){return lB(n,r,t,e)});var d=f(t,n,e);if(i){a["data-slate-void"]=!0;var p=o?"span":"div",h=uC(yp.Node.texts(t),1),v=uC(h[0],1)[0],g=dv(p,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},lB(v,0,t,e));d=dv(p,{style:{position:"relative"}},d,g),xO.set(v,0),TO.set(v,t)}return null==d.data&&(d.data={}),Object.assign(d.data,a),i||o||(d=function(t,e){var n=e;return iB.forEach(function(r){n=r(t,e)}),n}(t,d)),rN(function(){var e=pN(u);null!=e&&(kO.set(r,e),IO.set(t,e),PO.set(e,t))}),d}(t,r):function(t,e,n){if(null==t.text)throw new Error("Current node is not slate Text ".concat(JSON.stringify(t)));var r=eP.findKey(n,t),o=n.getConfig().decorate;if(null==o)throw new Error("Can not get config.decorate");var i,u=eP.findPath(n,t),a=o([t,u]),s=yp.Text.decorations(t,a),c=s.map(function(r,o){var i=function(t,e,n,r,o){void 0===e&&(e=!1);var i=t.text,u=eP.findPath(o,n),a=yp.Path.parent(u);if(yp.Editor.isEditor(r))throw new Error("Text node ".concat(JSON.stringify(n)," parent is Editor"));return o.isVoid(r)?cB(yp.Node.string(r).length):""!==i||r.children[r.children.length-1]!==n||o.isInline(r)||""!==yp.Editor.string(o,a)?""===i?cB():e&&"\n"===i.slice(-1)?sB(i,!0):sB(i):cB(0,!0)}(r,o===s.length-1,t,e,n);return i=function(t,e){var n=e;return iB.forEach(function(e){n=e(t,n)}),n}(r,i),dv("span",{"data-slate-leaf":!0},i)}),l=(i=r.id,"w-e-text-".concat(i)),f=dv("span",{"data-slate-node":"text",id:l,key:r.id},c);return rN(function(){var e=pN(l);null!=e&&(kO.set(r,e),IO.set(t,e),PO.set(e,t))}),f}(t,n,r)}var fB=["props","attrs","style","dataset","on","hook"];function dB(t){var e=t.data,n=void 0===e?{}:e,r=t.children,o=void 0===r?[]:r;Object.keys(n).forEach(function(e){var r,o,i=n[e];if("key"!==e){if(!fB.includes(e)){if(e.startsWith("data-")){var u=e.slice(5);return u=wv(u),function(t,e){null==t.data&&(t.data={});var n=t.data;null==n.dataset&&(n.dataset={}),Object.assign(n.dataset,e)}(t,((r={})[u]=i,r)),void delete n[e]}!function(t,e){null==t.data&&(t.data={});var n=t.data;null==n.props&&(n.props={}),Object.assign(n.props,e)}(t,(o={},o[e]=i,o)),delete n[e]}}else t.key=i}),o.length>0&&o.forEach(function(t){"string"!=typeof t&&dB(t)})}function pB(t,e){var n,r,o=t.$scroll,i=(n=t.id,"w-e-textarea-".concat(n)),u=e.getConfig(),a=u.readOnly,s=u.autoFocus,c=function(t,e){return void 0===e&&(e=!1),Wh("div#".concat(t),{props:{contentEditable:!e}})}(i,a),l=e.children||[];c.children=l.map(function(t,n){if(OO.has(t)){var r=OO.get(t);if(r){var o=uC(r,2),i=o[0],u=o[1];if(u)return i!==n&&(xO.set(t,n),OO.set(t,[n,u])),u}}var a=lB(t,n,e,e);dB(a);var s=e.getConfig().skipCacheTypes,c=void 0===s?["list-item"]:s;return yp.Element.isElement(t)&&c.includes(t.type)||OO.set(t,[n,a]),a});var f=SO.get(t);if(null==f&&(f=!0),f){var d=function(t){return Rp('<div\n id="'.concat(t,'"\n data-slate-editor\n data-slate-node="value"\n suppressContentEditableWarning\n role="textarea"\n spellCheck="true"\n autoCorrect="true"\n autoCapitalize="true"\n ></div>'))}(i);o.append(d),t.$textArea=d,r=d[0],(h=Vh([Xh,iv,lv,Qh,rv,Kh]))(r,c),SO.set(t,!1),CO.set(t,h)}else{var p=DO.get(t),h=CO.get(t);if(null==p||null==h)return;r=p.elm,h(p,c)}if(null!=r||null!=(r=pN(i))){if((f?s:e.isFocused())&&r.focus({preventScroll:!0}),f){var v=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||null}(r);v&&FO.set(e,v)}NO.set(e,r),IO.set(e,r),PO.set(r,e),DO.set(t,c)}}var hB=1,vB=function(){function t(t){var e=this;this.id=hB++,this.$textArea=null,this.$progressBar=Rp('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=Rp('<div class="w-e-max-length-info"></div>'),this.isComposing=!1,this.isUpdatingSelection=!1,this.isDraggingInternally=!1,this.latestElement=null,this.showPlaceholder=!1,this.$placeholder=null,this.latestEditorSelection=null,this.onDOMSelectionChange=Th(function(){var t=e.editorInstance;!function(t,e){var n=t.isComposing,r=t.isUpdatingSelection,o=t.isDraggingInternally;if(!(e.getConfig().readOnly||n||r||o)){var i=eP.findDocumentOrShadowRoot(e),u=i.activeElement,a=eP.toDOMNode(e,e),s=i.getSelection();if(u!==a)return RO.delete(e),void yp.Transforms.deselect(e);if(t.latestElement=u,RO.set(e,!0),!s)return yp.Transforms.deselect(e);var c=s.anchorNode,l=s.focusNode,f=_I(e,c)||jI(e,c),d=_I(e,l)||jI(e,l);if(f&&d){var p=eP.toSlateRange(e,s,{exactMatch:!1,suppressThrow:!1});yp.Transforms.select(e,p)}}}(e,t)},100);var n=Rp(t);if(0===n.length)throw new Error("Cannot find textarea DOM by selector '".concat(t,"'"));this.$box=n;var r=Rp('<div class="w-e-text-container"></div>');r.append(this.$progressBar),r.append(this.$maxLengthInfo),n.append(r);var o=Rp('<div class="w-e-scroll"></div>');r.append(o),this.$scroll=o,this.$textAreaContainer=r,rN(function(){var t=e.editorInstance,o=eP.getWindow(t);o.document.addEventListener("selectionchange",e.onDOMSelectionChange),t.on(cC,function(){o.document.removeEventListener("selectionchange",e.onDOMSelectionChange)}),r.on("click",function(){return t.hidePanelOrModal()}),t.on(lC,e.changeViewState.bind(e));var i=t.getConfig(),u=i.onChange,a=i.scroll;u&&t.on(lC,function(){return u(t)}),a||(n.css("position","relative"),r.addClass("no-scroll")),e.onFocusAndOnBlur(),t.on(lC,e.changeMaxLengthInfo.bind(e)),e.bindEvent()})}return Object.defineProperty(t.prototype,"editorInstance",{get:function(){var t=pO.get(this);if(null==t)throw new Error("Can not get editor instance");return t},enumerable:!1,configurable:!0}),t.prototype.bindEvent=function(){var t=this,e=this.$textArea,n=this.$scroll,r=this.editorInstance;null!=e&&(Dp(rB,function(n,o){e.on(o,function(e){n(e,t,r)})}),r.getConfig().scroll&&(n.css("overflow-y","auto"),n.on("scroll",Th(function(){r.emit("scroll")},100))))},t.prototype.onFocusAndOnBlur=function(){var t=this,e=this.editorInstance,n=e.getConfig(),r=n.onBlur,o=n.onFocus;this.latestEditorSelection=e.selection,e.on(lC,function(){null==t.latestEditorSelection&&null!=e.selection?setTimeout(function(){return o&&o(e)}):null!=t.latestEditorSelection&&null==e.selection&&setTimeout(function(){return r&&r(e)}),t.latestEditorSelection=e.selection})},t.prototype.changeMaxLengthInfo=function(){var t=this.editorInstance,e=t.getConfig().maxLength;if(e){var n=e-eP.getLeftLengthOfMaxLength(t);this.$maxLengthInfo[0].innerHTML="".concat(n,"/").concat(e)}},t.prototype.changeProgress=function(t){var e=this.$progressBar;e.css("width","".concat(t,"%")),t>=100&&setTimeout(function(){e.hide(),e.css("width","0"),e.show()},1e3)},t.prototype.changeViewState=function(){var t=this,e=this.editorInstance;pB(this,e),function(t,e){var n,r=e.getConfig().placeholder;if(r){var o=e.isEmpty();if(o&&!t.showPlaceholder&&!t.isComposing){if(null==t.$placeholder){var i=Rp('<div class="w-e-text-placeholder">'.concat(r,"</div>"));t.$textAreaContainer.append(i),t.$placeholder=i}return t.$placeholder.show(),void(t.showPlaceholder=!0)}!o&&t.showPlaceholder&&(null===(n=t.$placeholder)||void 0===n||n.hide(),t.showPlaceholder=!1)}}(this,e),rN(function(){GI(t,e)})},t.prototype.destroy=function(){this.$textAreaContainer.remove()},t}();function gB(t,e,n,r){if(xO.set(t,e),TO.set(t,n),yp.Element.isElement(t)){var o=t.children;if((void 0===o?[]:o).forEach(function(e,n){return gB(e,n,t,r)}),yp.Editor.isVoid(r,t)){var i=uC(yp.Node.texts(t),1),u=uC(i[0],1)[0];xO.set(u,0),TO.set(u,t)}}}var yB="Textarea height < 300px. This may cause modal and hoverbar position error",mB="编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常";function bB(t){var e=t.selector,n=void 0===e?"":e,r=t.config,o=void 0===r?{}:r,i=t.content,u=t.html,a=t.plugins,s=void 0===a?[]:a,c=function(t){return[lk,YP,MO,qP,mk,ck,dk,ZS].reduce(function(t,e){return e(t)},t)}(yp.createEditor());if(n&&function(t,e){return FN(t,"data-w-e-textarea",e)}(c,n))throw new Error("Repeated create editor by selector '".concat(n,"'"));var l=function(t){void 0===t&&(t={});var e=Sp(sC),n={},r=t.MENU_CONF,o=void 0===r?{}:r;return Dp(e,function(t,e){n[e]=rC(rC({},t),o[e]||{})}),delete t.MENU_CONF,rC({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:n,hoverbarKeys:{},customAlert:function(t,e){window.alert("".concat(e,":\n").concat(t))}},t)}(o);wO.set(c,l);var f=l.hoverbarKeys,d=void 0===f?{}:f;if(s.forEach(function(t){c=t(c)}),function(t,e){var n=e.html,r=e.content;null!=n?t.children=RN(t,n):r&&r.length&&(t.children=r),0===t.children.length&&(t.children=[{type:"paragraph",children:[{text:""}]}])}(c,{html:u,content:i}),n){var p=new vB(n);dO.set(c,p),pO.set(p,c),p.changeViewState(),rN(function(){var t=p.$scroll;null!=t&&t.height()<300&&console.warn("".concat(mB,"\n").concat(yB),{element:t,height:t.height()})});var h=void 0;Object.keys(d).length>0&&(h=new FI,gO.set(h,c),yO.set(c,h)),c.on(lC,function(){c.hidePanelOrModal()}),c.on(fC,function(){c.hidePanelOrModal()})}else c.children.forEach(function(t,e){return gB(t,e,c,c)});var v=l.onCreated,g=l.onDestroyed;return v&&c.on("created",function(){return v(c)}),g&&c.on(cC,function(){return g(c)}),rN(function(){return c.emit("created")}),c}var EB,wB,SB,CB,DB,OB={};!function(){if(DB)return OB;DB=1;var t=aS(),e=dE(),n=Sw(),r=ww(),o=Dw(),i=function(){if(wB)return EB;wB=1;var t=Am(),e=sS(),n=TypeError,r=Object.getOwnPropertyDescriptor,o=t&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();return EB=o?function(t,o){if(e(t)&&!r(t,"length").writable)throw new n("Cannot set read only .length");return t.length=o}:function(t,e){return t.length=e}}(),u=cS(),a=hS(),s=lS(),c=function(){if(CB)return SB;CB=1;var t=Fb(),e=TypeError;return SB=function(n,r){if(!delete n[r])throw new e("Cannot delete property "+t(r)+" of "+t(n))}}(),l=vS()("splice"),f=Math.max,d=Math.min;t({target:"Array",proto:!0,forced:!l},{splice:function(t,l){var p,h,v,g,y,m,b=e(this),E=o(b),w=n(t,E),S=arguments.length;for(0===S?p=h=0:1===S?(p=0,h=E-w):(p=S-2,h=d(f(r(l),0),E-w)),u(E+p-h),v=a(b,h),g=0;g<h;g++)(y=w+g)in b&&s(v,g,b[y]);if(v.length=h,p<h){for(g=w;g<E-h;g++)m=g+p,(y=g+h)in b?b[m]=b[y]:c(b,m);for(g=E;g>E-h+p;g--)c(b,g-1)}else if(p>h)for(g=E-h;g>w;g--)m=g+p-1,(y=g+h-1)in b?b[m]=b[y]:c(b,m);for(g=0;g<p;g++)b[g+w]=arguments[g+2];return i(b,E-h+p),v}})}();var AB=function(){function t(t,e){var n=this;this.$toolbar=Rp('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.lngListen=function(){},this.changeToolbarState=Oh(function(){n.toolbarItems.forEach(function(t){t.changeMenuState()})},200),this.config=e;var r=Rp(t);if(0===r.length)throw new Error("Cannot find toolbar DOM by selector '".concat(t,"'"));this.$box=r;var o=this.$toolbar;o.on("mousedown",function(t){return t.preventDefault()},{passive:!1}),r.append(o),rN(function(){n.initToolbar(),n.lngListen=fI(function(){return n.initToolbar()}),n.getEditorInstance().on(lC,n.changeToolbarState)})}return t.prototype.getMenus=function(){return this.menus},t.prototype.getConfig=function(){return this.config},t.prototype.initToolbar=function(){this.menus={};var t=this.$toolbar;null==t||t.empty(),this.registerItems(),this.changeToolbarState()},t.prototype.registerItems=function(){var t=this,e="",n=this.$toolbar,r=this.config,o=r.toolbarKeys,i=void 0===o?[]:o,u=r.insertKeys,a=void 0===u?{index:0,keys:[]}:u,s=r.excludeKeys,c=void 0===s?[]:s,l=Sp(i);a.keys.length>0&&("string"==typeof a.keys&&(a.keys=[a.keys]),a.keys.forEach(function(t,e){l.splice(a.index+e,0,t)}));var f=l.filter(function(t){var e="string"==typeof t?t:t.key;return!c.includes(e)}),d=f.length;f.forEach(function(r,o){if("|"===r){if(0===o)return;if(o+1===d)return;if("|"===e)return;var i=vI();return n.append(i),void(e=r)}if("string"==typeof r)return t.registerSingleItem(r,t),void(e=r);t.registerGroup(r),e="group"})},t.prototype.registerGroup=function(t){var e=this,n=this.$toolbar,r=function(t){return new TI(t)}(t),o=t.menuKeys,i=void 0===o?[]:o,u=this.config.excludeKeys,a=void 0===u?[]:u;i.forEach(function(t){a.includes(t)||e.registerSingleItem(t,r)}),n.append(r.$elem)},t.prototype.registerSingleItem=function(t,e){var n=this.getEditorInstance(),r=e instanceof TI,o=this.menus,i=o[t];if(null==i){var u=dC[t];if(null==u)throw new Error("Not found menu item factory by key '".concat(t,"'"));if("function"!=typeof u)throw new Error("Menu item factory (key='".concat(t,"') is not a function"));i=u(),o[t]=i}else console.warn("Duplicated toolbar menu key '".concat(t,"'\n重复注册了菜单栏 menu '").concat(t,"'"));var a=n.getMenuConfig(t);a&&void 0!==a.iconSvg&&(i.iconSvg=a.iconSvg);var s=kI(t,i,r);this.toolbarItems.push(s),mO.set(s,n),r?e.appendBarItem(s):e.$toolbar.append(s.$elem)},t.prototype.getEditorInstance=function(){var t=hO.get(this);if(null==t)throw new Error("Can not get editor instance");return t},t.prototype.destroy=function(){var t;this.$toolbar.remove(),null===(t=this.lngListen)||void 0===t||t.call(this),this.menus={},this.toolbarItems=[]},t}();var xB,TB={};function NB(t){var e=t.server,n=void 0===e?"":e,r=t.fieldName,o=void 0===r?"":r,i=t.maxFileSize,u=void 0===i?10485760:i,a=t.maxNumberOfFiles,s=void 0===a?100:a,c=t.meta,l=void 0===c?{}:c,f=t.metaWithUrl,d=void 0!==f&&f,p=t.headers,h=void 0===p?{}:p,v=t.withCredentials,g=void 0!==v&&v,y=t.timeout,m=void 0===y?1e4:y,b=t.onBeforeUpload,E=void 0===b?function(t){return t}:b,w=t.onSuccess,S=void 0===w?function(t,e){}:w,C=t.onError,D=void 0===C?function(t,e,n){console.error("".concat(t.name," upload error"),e,n)}:C,O=t.onProgress,A=void 0===O?function(t){}:O;if(!n)throw new Error("Cannot get upload server address\n没有配置上传地址");if(!o)throw new Error("Cannot get fieldName\n没有配置 fieldName");var x=n;d&&(x=function(t,e){var n=uC(t.split("#"),2),r=n[0],o=n[1],i=[];Dp(e,function(t,e){i.push("".concat(e,"=").concat(t))});var u=i.join("&");return r=r.indexOf("?")>0?"".concat(r,"&").concat(u):"".concat(r,"?").concat(u),o?"".concat(r,"#").concat(o):r}(x,l));var T=new Ty(rC({onBeforeUpload:E,restrictions:{maxFileSize:u,maxNumberOfFiles:s},meta:l},t.uppyConfig)).use(lm,rC({endpoint:x,headers:h,formData:!0,fieldName:o,bundle:!0,withCredentials:g,timeout:m},t.xhrConfig));return T.on("complete",function(t){var e=t.successful[0],n=e.response,r=(null!=n?n:{}).body,o=void 0===r?{}:r;try{S(e,o)}catch(t){console.error("wangEditor upload file - onSuccess error",t)}}),T.on("progress",function(t){t<1||A(t)}),T.on("upload-error",function(t,e,n){try{D(t,e,n)}catch(t){console.error("wangEditor upload file - onError error",t)}}),T.on("restriction-failed",function(t,e){try{D(t,e)}catch(t){console.error("wangEditor upload file - onError error",t)}}),T}!function(){if(xB)return TB;xB=1;var t=Am(),e=YE().EXISTS,n=bb(),r=RA(),o=Function.prototype,i=n(o.toString),u=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,a=n(u.exec);t&&!e&&r(o,"name",{configurable:!0,get:function(){try{return a(u,i(this))[1]}catch(t){return""}}})}();lI("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),lI("zh-CN",{editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}});var PB,kB,IB,BB,FB,RB,_B,jB,LB,MB,zB,HB,$B,UB,VB,GB={};function WB(){if(kB)return PB;kB=1;var t=O();return PB=Array.isArray||function(e){return"Array"===t(e)}}function qB(){if(BB)return IB;BB=1;var t=D(),e=S(),n=mt(),r=kr(),o=$e(),i=An(),u=function(){},a=o("Reflect","construct"),s=/^\s*(?:class|function)\b/,c=t(s.exec),l=!s.test(u),f=function(t){if(!n(t))return!1;try{return a(u,[],t),!0}catch(t){return!1}},d=function(t){if(!n(t))return!1;switch(r(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return l||!!c(s,i(t))}catch(t){return!0}};return d.sham=!0,IB=!a||e(function(){var t;return f(f.call)||!f(Object)||!f(function(){t=!0})||t})?d:f}function KB(){if(RB)return FB;RB=1;var t=WB(),e=qB(),n=bt(),r=yt()("species"),o=Array;return FB=function(i){var u;return t(i)&&(u=i.constructor,(e(u)&&(u===o||t(u.prototype))||n(u)&&null===(u=u[r]))&&(u=void 0)),void 0===u?o:u},FB}function YB(){if(jB)return _B;jB=1;var t=KB();return _B=function(e,n){return new(t(e))(0===n?0:n)}}function XB(){if(HB)return zB;HB=1;var t=S();return zB=function(e,n){var r=[][e];return!!r&&t(function(){r.call(null,n||function(){return 1},1)})}}function JB(){if(UB)return $B;UB=1;var t=function(){if(MB)return LB;MB=1;var t=qo(),e=D(),n=A(),r=ft(),o=Qe(),i=YB(),u=e([].push),a=function(e){var a=1===e,s=2===e,c=3===e,l=4===e,f=6===e,d=7===e,p=5===e||f;return function(h,v,g,y){for(var m,b,E=r(h),w=n(E),S=o(w),C=t(v,g),D=0,O=y||i,A=a?O(h,S):s||d?O(h,0):void 0;S>D;D++)if((p||D in w)&&(b=C(m=w[D],D,E),e))if(a)A[D]=b;else if(b)switch(e){case 3:return!0;case 5:return m;case 6:return D;case 2:u(A,m)}else switch(e){case 4:return!1;case 7:u(A,m)}return f?-1:c||l?l:A}};return LB={forEach:a(0),map:a(1),filter:a(2),some:a(3),every:a(4),find:a(5),findIndex:a(6),filterReject:a(7)}}().forEach,e=XB()("forEach");return $B=e?[].forEach:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)},$B}!function(){if(VB)return GB;VB=1;var t=P(),e=fi(),n=di(),r=JB(),o=ln(),i=function(t){if(t&&t.forEach!==r)try{o(t,"forEach",r)}catch(e){t.forEach=r}};for(var u in e)e[u]&&i(t[u]&&t[u].prototype);i(n)}(),lI("en",{common:{ok:"OK",delete:"Delete",enter:"Enter"},blockQuote:{title:"Quote"},codeBlock:{title:"Code block"},color:{color:"Font color",bgColor:"Back color",default:"Default color",clear:"Clear back color"},divider:{title:"Divider"},emotion:{title:"Emotion"},fontSize:{title:"Font size",default:"Default"},fontFamily:{title:"Font family",default:"Default"},fullScreen:{title:"Full screen",cancelTitle:"Cancel full screen"},header:{title:"Header",text:"Text"},image:{netImage:"Net image",delete:"Delete image",edit:"Edit image",editSize:"Edit size",viewLink:"View link",src:"Image src",desc:"Description",link:"Image link",ok:"Ok",width:"Width",height:"Height"},indent:{decrease:"Decrease",increase:"Increase"},justify:{left:"Left",right:"Right",center:"Center",justify:"Justify"},lineHeight:{title:"Line height",default:"Default"},link:{insert:"Insert link",text:"Link text",url:"Link source",unLink:"Unlink",edit:"Edit link",view:"View link"},textStyle:{bold:"Bold",clear:"Clear styles",code:"Inline code",italic:"Italic",sub:"Sub",sup:"Sup",through:"Through",underline:"Underline"},undo:{undo:"undo",redo:"Redo"},todo:{todo:"Todo"},formatPainter:{title:"Format Painter"}}),lI("zh-CN",{common:{ok:"确定",delete:"删除",enter:"回车"},blockQuote:{title:"引用"},codeBlock:{title:"代码块"},color:{color:"文字颜色",bgColor:"背景色",default:"默认颜色",clear:"清除背景色"},divider:{title:"分割线"},emotion:{title:"表情"},fontSize:{title:"字号",default:"默认字号"},fontFamily:{title:"字体",default:"默认字体"},fullScreen:{title:"全屏",cancelTitle:"取消全屏"},header:{title:"标题",text:"正文"},image:{netImage:"网络图片",delete:"删除图片",edit:"编辑图片",editSize:"修改尺寸",viewLink:"查看链接",src:"图片地址",desc:"图片描述",link:"图片链接",ok:"确定",width:"宽度",height:"高度"},indent:{decrease:"减少缩进",increase:"增加缩进"},justify:{left:"左对齐",right:"右对齐",center:"居中对齐",justify:"两端对齐"},lineHeight:{title:"行高",default:"默认行高"},link:{insert:"插入链接",text:"链接文本",url:"链接地址",unLink:"取消链接",edit:"修改链接",view:"查看链接"},textStyle:{bold:"粗体",clear:"清除格式",code:"行内代码",italic:"斜体",sub:"下标",sup:"上标",through:"删除线",underline:"下划线"},undo:{undo:"撤销",redo:"重做"},todo:{todo:"待办"},formatPainter:{title:"格式刷"}});var ZB="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function QB(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var tF,eF,nF={};function rF(){if(eF)return tF;eF=1;var t=function(t){return t&&t.Math===Math&&t};return tF=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof ZB&&ZB)||t("object"==typeof tF&&tF)||function(){return this}()||Function("return this")()}var oF,iF,uF,aF,sF,cF,lF,fF,dF={};function pF(){return iF?oF:(iF=1,oF=function(t){try{return!!t()}catch(t){return!0}})}function hF(){if(aF)return uF;aF=1;var t=pF();return uF=!t(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function vF(){if(cF)return sF;cF=1;var t=pF();return sF=!t(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})}function gF(){if(fF)return lF;fF=1;var t=vF(),e=Function.prototype.call;return lF=t?e.bind(e):function(){return e.apply(e,arguments)},lF}var yF,mF,bF,EF,wF,SF,CF,DF,OF,AF,xF,TF,NF,PF,kF,IF,BF,FF,RF,_F,jF,LF,MF,zF,HF,$F,UF,VF,GF,WF,qF,KF,YF,XF,JF,ZF,QF,tR,eR,nR,rR,oR={};function iR(){if(yF)return oR;yF=1;var t={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,n=e&&!t.call({1:2},1);return oR.f=n?function(t){var n=e(this,t);return!!n&&n.enumerable}:t,oR}function uR(){return bF?mF:(bF=1,mF=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}})}function aR(){if(wF)return EF;wF=1;var t=vF(),e=Function.prototype,n=e.call,r=t&&e.bind.bind(n,n);return EF=t?r:function(t){return function(){return n.apply(t,arguments)}},EF}function sR(){if(CF)return SF;CF=1;var t=aR(),e=t({}.toString),n=t("".slice);return SF=function(t){return n(e(t),8,-1)}}function cR(){if(OF)return DF;OF=1;var t=aR(),e=pF(),n=sR(),r=Object,o=t("".split);return DF=e(function(){return!r("z").propertyIsEnumerable(0)})?function(t){return"String"===n(t)?o(t,""):r(t)}:r}function lR(){return xF?AF:(xF=1,AF=function(t){return null==t})}function fR(){if(NF)return TF;NF=1;var t=lR(),e=TypeError;return TF=function(n){if(t(n))throw new e("Can't call method on "+n);return n}}function dR(){if(kF)return PF;kF=1;var t=cR(),e=fR();return PF=function(n){return t(e(n))}}function pR(){if(BF)return IF;BF=1;var t="object"==typeof document&&document.all;return IF=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(t){return"function"==typeof t}}function hR(){if(RF)return FF;RF=1;var t=pR();return FF=function(e){return"object"==typeof e?null!==e:t(e)}}function vR(){if(jF)return _F;jF=1;var t=rF(),e=pR();return _F=function(n,r){return arguments.length<2?(o=t[n],e(o)?o:void 0):t[n]&&t[n][r];var o},_F}function gR(){if(MF)return LF;MF=1;var t=aR();return LF=t({}.isPrototypeOf)}function yR(){if(HF)return zF;HF=1;var t=rF().navigator,e=t&&t.userAgent;return zF=e?String(e):""}function mR(){if(UF)return $F;UF=1;var t,e,n=rF(),r=yR(),o=n.process,i=n.Deno,u=o&&o.versions||i&&i.version,a=u&&u.v8;return a&&(e=(t=a.split("."))[0]>0&&t[0]<4?1:+(t[0]+t[1])),!e&&r&&(!(t=r.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=r.match(/Chrome\/(\d+)/))&&(e=+t[1]),$F=e}function bR(){if(GF)return VF;GF=1;var t=mR(),e=pF(),n=rF().String;return VF=!!Object.getOwnPropertySymbols&&!e(function(){var e=Symbol("symbol detection");return!n(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&t&&t<41})}function ER(){if(qF)return WF;qF=1;var t=bR();return WF=t&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function wR(){if(YF)return KF;YF=1;var t=vR(),e=pR(),n=gR(),r=ER(),o=Object;return KF=r?function(t){return"symbol"==typeof t}:function(r){var i=t("Symbol");return e(i)&&n(i.prototype,o(r))}}function SR(){if(JF)return XF;JF=1;var t=String;return XF=function(e){try{return t(e)}catch(t){return"Object"}}}function CR(){if(QF)return ZF;QF=1;var t=pR(),e=SR(),n=TypeError;return ZF=function(r){if(t(r))return r;throw new n(e(r)+" is not a function")}}function DR(){if(eR)return tR;eR=1;var t=CR(),e=lR();return tR=function(n,r){var o=n[r];return e(o)?void 0:t(o)}}var OR,AR,xR,TR,NR,PR,kR,IR,BR,FR,RR,_R,jR,LR,MR,zR,HR,$R,UR,VR,GR,WR,qR,KR,YR={exports:{}};function XR(){return AR?OR:(AR=1,OR=!1)}function JR(){if(TR)return xR;TR=1;var t=rF(),e=Object.defineProperty;return xR=function(n,r){try{e(t,n,{value:r,configurable:!0,writable:!0})}catch(e){t[n]=r}return r}}function ZR(){if(NR)return YR.exports;NR=1;var t=XR(),e=rF(),n=JR(),r="__core-js_shared__",o=YR.exports=e[r]||n(r,{});return(o.versions||(o.versions=[])).push({version:"3.44.0",mode:t?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.44.0/LICENSE",source:"https://github.com/zloirock/core-js"}),YR.exports}function QR(){if(kR)return PR;kR=1;var t=ZR();return PR=function(e,n){return t[e]||(t[e]=n||{})}}function t_(){if(BR)return IR;BR=1;var t=fR(),e=Object;return IR=function(n){return e(t(n))}}function e_(){if(RR)return FR;RR=1;var t=aR(),e=t_(),n=t({}.hasOwnProperty);return FR=Object.hasOwn||function(t,r){return n(e(t),r)}}function n_(){if(jR)return _R;jR=1;var t=aR(),e=0,n=Math.random(),r=t(1.1.toString);return _R=function(t){return"Symbol("+(void 0===t?"":t)+")_"+r(++e+n,36)}}function r_(){if(MR)return LR;MR=1;var t=rF(),e=QR(),n=e_(),r=n_(),o=bR(),i=ER(),u=t.Symbol,a=e("wks"),s=i?u.for||u:u&&u.withoutSetter||r;return LR=function(t){return n(a,t)||(a[t]=o&&n(u,t)?u[t]:s("Symbol."+t)),a[t]}}function o_(){if(UR)return $R;UR=1;var t=function(){if(HR)return zR;HR=1;var t=gF(),e=hR(),n=wR(),r=DR(),o=function(){if(rR)return nR;rR=1;var t=gF(),e=pR(),n=hR(),r=TypeError;return nR=function(o,i){var u,a;if("string"===i&&e(u=o.toString)&&!n(a=t(u,o)))return a;if(e(u=o.valueOf)&&!n(a=t(u,o)))return a;if("string"!==i&&e(u=o.toString)&&!n(a=t(u,o)))return a;throw new r("Can't convert object to primitive value")},nR}(),i=r_(),u=TypeError,a=i("toPrimitive");return zR=function(i,s){if(!e(i)||n(i))return i;var c,l=r(i,a);if(l){if(void 0===s&&(s="default"),c=t(l,i,s),!e(c)||n(c))return c;throw new u("Can't convert object to primitive value")}return void 0===s&&(s="number"),o(i,s)}}(),e=wR();return $R=function(n){var r=t(n,"string");return e(r)?r:r+""}}function i_(){if(GR)return VR;GR=1;var t=rF(),e=hR(),n=t.document,r=e(n)&&e(n.createElement);return VR=function(t){return r?n.createElement(t):{}}}function u_(){if(qR)return WR;qR=1;var t=hF(),e=pF(),n=i_();return WR=!t&&!e(function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a})}function a_(){if(KR)return dF;KR=1;var t=hF(),e=gF(),n=iR(),r=uR(),o=dR(),i=o_(),u=e_(),a=u_(),s=Object.getOwnPropertyDescriptor;return dF.f=t?s:function(t,c){if(t=o(t),c=i(c),a)try{return s(t,c)}catch(t){}if(u(t,c))return r(!e(n.f,t,c),t[c])},dF}var s_,c_,l_,f_,d_,p_,h_,v_={};function g_(){if(c_)return s_;c_=1;var t=hF(),e=pF();return s_=t&&e(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}function y_(){if(f_)return l_;f_=1;var t=hR(),e=String,n=TypeError;return l_=function(r){if(t(r))return r;throw new n(e(r)+" is not an object")}}function m_(){if(d_)return v_;d_=1;var t=hF(),e=u_(),n=g_(),r=y_(),o=o_(),i=TypeError,u=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s="enumerable",c="configurable",l="writable";return v_.f=t?n?function(t,e,n){if(r(t),e=o(e),r(n),"function"==typeof t&&"prototype"===e&&"value"in n&&l in n&&!n[l]){var i=a(t,e);i&&i[l]&&(t[e]=n.value,n={configurable:c in n?n[c]:i[c],enumerable:s in n?n[s]:i[s],writable:!1})}return u(t,e,n)}:u:function(t,n,a){if(r(t),n=o(n),r(a),e)try{return u(t,n,a)}catch(t){}if("get"in a||"set"in a)throw new i("Accessors not supported");return"value"in a&&(t[n]=a.value),t},v_}function b_(){if(h_)return p_;h_=1;var t=hF(),e=m_(),n=uR();return p_=t?function(t,r,o){return e.f(t,r,n(1,o))}:function(t,e,n){return t[e]=n,t}}var E_,w_,S_,C_,D_,O_,A_,x_,T_,N_,P_,k_,I_,B_,F_,R_={exports:{}};function __(){if(w_)return E_;w_=1;var t=hF(),e=e_(),n=Function.prototype,r=t&&Object.getOwnPropertyDescriptor,o=e(n,"name"),i=o&&"something"===function(){}.name,u=o&&(!t||t&&r(n,"name").configurable);return E_={EXISTS:o,PROPER:i,CONFIGURABLE:u}}function j_(){if(C_)return S_;C_=1;var t=aR(),e=pR(),n=ZR(),r=t(Function.toString);return e(n.inspectSource)||(n.inspectSource=function(t){return r(t)}),S_=n.inspectSource}function L_(){if(x_)return A_;x_=1;var t=QR(),e=n_(),n=t("keys");return A_=function(t){return n[t]||(n[t]=e(t))}}function M_(){return N_?T_:(N_=1,T_={})}function z_(){if(k_)return P_;k_=1;var t,e,n,r=function(){if(O_)return D_;O_=1;var t=rF(),e=pR(),n=t.WeakMap;return D_=e(n)&&/native code/.test(String(n))}(),o=rF(),i=hR(),u=b_(),a=e_(),s=ZR(),c=L_(),l=M_(),f="Object already initialized",d=o.TypeError,p=o.WeakMap;if(r||s.state){var h=s.state||(s.state=new p);h.get=h.get,h.has=h.has,h.set=h.set,t=function(t,e){if(h.has(t))throw new d(f);return e.facade=t,h.set(t,e),e},e=function(t){return h.get(t)||{}},n=function(t){return h.has(t)}}else{var v=c("state");l[v]=!0,t=function(t,e){if(a(t,v))throw new d(f);return e.facade=t,u(t,v,e),e},e=function(t){return a(t,v)?t[v]:{}},n=function(t){return a(t,v)}}return P_={set:t,get:e,has:n,enforce:function(r){return n(r)?e(r):t(r,{})},getterFor:function(t){return function(n){var r;if(!i(n)||(r=e(n)).type!==t)throw new d("Incompatible receiver, "+t+" required");return r}}}}function H_(){if(I_)return R_.exports;I_=1;var t=aR(),e=pF(),n=pR(),r=e_(),o=hF(),i=__().CONFIGURABLE,u=j_(),a=z_(),s=a.enforce,c=a.get,l=String,f=Object.defineProperty,d=t("".slice),p=t("".replace),h=t([].join),v=o&&!e(function(){return 8!==f(function(){},"length",{value:8}).length}),g=String(String).split("String"),y=R_.exports=function(t,e,n){"Symbol("===d(l(e),0,7)&&(e="["+p(l(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!r(t,"name")||i&&t.name!==e)&&(o?f(t,"name",{value:e,configurable:!0}):t.name=e),v&&n&&r(n,"arity")&&t.length!==n.arity&&f(t,"length",{value:n.arity});try{n&&r(n,"constructor")&&n.constructor?o&&f(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var u=s(t);return r(u,"source")||(u.source=h(g,"string"==typeof e?e:"")),t};return Function.prototype.toString=y(function(){return n(this)&&c(this).source||u(this)},"toString"),R_.exports}function $_(){if(F_)return B_;F_=1;var t=pR(),e=m_(),n=H_(),r=JR();return B_=function(o,i,u,a){a||(a={});var s=a.enumerable,c=void 0!==a.name?a.name:i;if(t(u)&&n(u,c,a),a.global)s?o[i]=u:r(i,u);else{try{a.unsafe?o[i]&&(s=!0):delete o[i]}catch(t){}s?o[i]=u:e.f(o,i,{value:u,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return o}}var U_,V_,G_,W_,q_,K_,Y_,X_,J_,Z_,Q_,tj,ej,nj,rj,oj,ij,uj={};function aj(){if(W_)return G_;W_=1;var t=function(){if(V_)return U_;V_=1;var t=Math.ceil,e=Math.floor;return U_=Math.trunc||function(n){var r=+n;return(r>0?e:t)(r)}}();return G_=function(e){var n=+e;return n!=n||0===n?0:t(n)}}function sj(){if(K_)return q_;K_=1;var t=aj(),e=Math.max,n=Math.min;return q_=function(r,o){var i=t(r);return i<0?e(i+o,0):n(i,o)},q_}function cj(){if(X_)return Y_;X_=1;var t=aj(),e=Math.min;return Y_=function(n){var r=t(n);return r>0?e(r,9007199254740991):0}}function lj(){if(Z_)return J_;Z_=1;var t=cj();return J_=function(e){return t(e.length)}}function fj(){if(tj)return Q_;tj=1;var t=dR(),e=sj(),n=lj(),r=function(r){return function(o,i,u){var a=t(o),s=n(a);if(0===s)return!r&&-1;var c,l=e(u,s);if(r&&i!=i){for(;s>l;)if((c=a[l++])!=c)return!0}else for(;s>l;l++)if((r||l in a)&&a[l]===i)return r||l||0;return!r&&-1}};return Q_={includes:r(!0),indexOf:r(!1)}}function dj(){if(nj)return ej;nj=1;var t=aR(),e=e_(),n=dR(),r=fj().indexOf,o=M_(),i=t([].push);return ej=function(t,u){var a,s=n(t),c=0,l=[];for(a in s)!e(o,a)&&e(s,a)&&i(l,a);for(;u.length>c;)e(s,a=u[c++])&&(~r(l,a)||i(l,a));return l}}function pj(){return oj?rj:(oj=1,rj=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}var hj,vj,gj,yj,mj,bj,Ej,wj,Sj,Cj,Dj,Oj,Aj,xj,Tj,Nj,Pj,kj,Ij,Bj={};function Fj(){return hj||(hj=1,Bj.f=Object.getOwnPropertySymbols),Bj}function Rj(){if(mj)return yj;mj=1;var t=e_(),e=function(){if(gj)return vj;gj=1;var t=vR(),e=aR(),n=function(){if(ij)return uj;ij=1;var t=dj(),e=pj().concat("length","prototype");return uj.f=Object.getOwnPropertyNames||function(n){return t(n,e)},uj}(),r=Fj(),o=y_(),i=e([].concat);return vj=t("Reflect","ownKeys")||function(t){var e=n.f(o(t)),u=r.f;return u?i(e,u(t)):e}}(),n=a_(),r=m_();return yj=function(o,i,u){for(var a=e(i),s=r.f,c=n.f,l=0;l<a.length;l++){var f=a[l];t(o,f)||u&&t(u,f)||s(o,f,c(i,f))}}}function _j(){if(Sj)return wj;Sj=1;var t=rF(),e=a_().f,n=b_(),r=$_(),o=JR(),i=Rj(),u=function(){if(Ej)return bj;Ej=1;var t=pF(),e=pR(),n=/#|\.prototype\./,r=function(n,r){var s=i[o(n)];return s===a||s!==u&&(e(r)?t(r):!!r)},o=r.normalize=function(t){return String(t).replace(n,".").toLowerCase()},i=r.data={},u=r.NATIVE="N",a=r.POLYFILL="P";return bj=r}();return wj=function(a,s){var c,l,f,d,p,h=a.target,v=a.global,g=a.stat;if(c=v?t:g?t[h]||o(h,{}):t[h]&&t[h].prototype)for(l in s){if(d=s[l],f=a.dontCallGetSet?(p=e(c,l))&&p.value:c[l],!u(v?l:h+(g?".":"#")+l,a.forced)&&void 0!==f){if(typeof d==typeof f)continue;i(d,f)}(a.sham||f&&f.sham)&&n(d,"sham",!0),r(c,l,d,a)}}}function jj(){if(Dj)return Cj;Dj=1;var t={};return t[r_()("toStringTag")]="z",Cj="[object z]"===String(t)}function Lj(){if(Aj)return Oj;Aj=1;var t=jj(),e=pR(),n=sR(),r=r_()("toStringTag"),o=Object,i="Arguments"===n(function(){return arguments}());return Oj=t?n:function(t){var u,a,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(a=function(t,e){try{return t[e]}catch(t){}}(u=o(t),r))?a:i?n(u):"Object"===(s=n(u))&&e(u.callee)?"Arguments":s}}function Mj(){if(Tj)return xj;Tj=1;var t=Lj(),e=String;return xj=function(n){if("Symbol"===t(n))throw new TypeError("Cannot convert a Symbol value to a string");return e(n)}}function zj(){if(Pj)return Nj;Pj=1;var t=y_();return Nj=function(){var e=t(this),n="";return e.hasIndices&&(n+="d"),e.global&&(n+="g"),e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.dotAll&&(n+="s"),e.unicode&&(n+="u"),e.unicodeSets&&(n+="v"),e.sticky&&(n+="y"),n}}var Hj,$j,Uj,Vj,Gj,Wj,qj,Kj,Yj,Xj,Jj,Zj,Qj,tL,eL={};function nL(){if($j)return Hj;$j=1;var t=dj(),e=pj();return Hj=Object.keys||function(n){return t(n,e)}}function rL(){if(qj)return Wj;qj=1;var t,e=y_(),n=function(){if(Uj)return eL;Uj=1;var t=hF(),e=g_(),n=m_(),r=y_(),o=dR(),i=nL();return eL.f=t&&!e?Object.defineProperties:function(t,e){r(t);for(var u,a=o(e),s=i(e),c=s.length,l=0;c>l;)n.f(t,u=s[l++],a[u]);return t},eL}(),r=pj(),o=M_(),i=function(){if(Gj)return Vj;Gj=1;var t=vR();return Vj=t("document","documentElement")}(),u=i_(),a=L_(),s="prototype",c="script",l=a("IE_PROTO"),f=function(){},d=function(t){return"<"+c+">"+t+"</"+c+">"},p=function(t){t.write(d("")),t.close();var e=t.parentWindow.Object;return t=null,e},h=function(){try{t=new ActiveXObject("htmlfile")}catch(t){}var e,n,o;h="undefined"!=typeof document?document.domain&&t?p(t):(n=u("iframe"),o="java"+c+":",n.style.display="none",i.appendChild(n),n.src=String(o),(e=n.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F):p(t);for(var a=r.length;a--;)delete h[s][r[a]];return h()};return o[l]=!0,Wj=Object.create||function(t,r){var o;return null!==t?(f[s]=e(t),o=new f,f[s]=null,o[l]=t):o=h(),void 0===r?o:n.f(o,r)}}function oL(){if(Qj)return Zj;Qj=1;var t,e,n=gF(),r=aR(),o=Mj(),i=zj(),u=function(){if(Ij)return kj;Ij=1;var t=pF(),e=rF().RegExp,n=t(function(){var t=e("a","y");return t.lastIndex=2,null!==t.exec("abcd")}),r=n||t(function(){return!e("a","y").sticky}),o=n||t(function(){var t=e("^r","gy");return t.lastIndex=2,null!==t.exec("str")});return kj={BROKEN_CARET:o,MISSED_STICKY:r,UNSUPPORTED_Y:n}}(),a=QR(),s=rL(),c=z_().get,l=function(){if(Yj)return Kj;Yj=1;var t=pF(),e=rF().RegExp;return Kj=t(function(){var t=e(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})}(),f=function(){if(Jj)return Xj;Jj=1;var t=pF(),e=rF().RegExp;return Xj=t(function(){var t=e("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})}(),d=a("native-string-replace",String.prototype.replace),p=RegExp.prototype.exec,h=p,v=r("".charAt),g=r("".indexOf),y=r("".replace),m=r("".slice),b=(e=/b*/g,n(p,t=/a/,"a"),n(p,e,"a"),0!==t.lastIndex||0!==e.lastIndex),E=u.BROKEN_CARET,w=void 0!==/()??/.exec("")[1];return(b||w||E||l||f)&&(h=function(t){var e,r,u,a,l,f,S,C=this,D=c(C),O=o(t),A=D.raw;if(A)return A.lastIndex=C.lastIndex,e=n(h,A,O),C.lastIndex=A.lastIndex,e;var x=D.groups,T=E&&C.sticky,N=n(i,C),P=C.source,k=0,I=O;if(T&&(N=y(N,"y",""),-1===g(N,"g")&&(N+="g"),I=m(O,C.lastIndex),C.lastIndex>0&&(!C.multiline||C.multiline&&"\n"!==v(O,C.lastIndex-1))&&(P="(?: "+P+")",I=" "+I,k++),r=new RegExp("^(?:"+P+")",N)),w&&(r=new RegExp("^"+P+"$(?!\\s)",N)),b&&(u=C.lastIndex),a=n(p,T?r:C,I),T?a?(a.input=m(a.input,k),a[0]=m(a[0],k),a.index=C.lastIndex,C.lastIndex+=a[0].length):C.lastIndex=0:b&&a&&(C.lastIndex=C.global?a.index+a[0].length:u),w&&a&&a.length>1&&n(d,a[0],r,function(){for(l=1;l<arguments.length-2;l++)void 0===arguments[l]&&(a[l]=void 0)}),a&&x)for(a.groups=f=s(null),l=0;l<x.length;l++)f[(S=x[l])[0]]=a[S[1]];return a}),Zj=h}function iL(){if(tL)return nF;tL=1;var t=_j(),e=oL();return t({target:"RegExp",proto:!0,forced:/./.exec!==e},{exec:e}),nF}iL();var uL=function(t,e){return uL=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},uL(t,e)};function aL(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}uL(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var sL=function(){return sL=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},sL.apply(this,arguments)};function cL(t,e,n,r){return new(n||(n=Promise))(function(o,i){function u(t){try{s(r.next(t))}catch(t){i(t)}}function a(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(u,a)}s((r=r.apply(t,e||[])).next())})}function lL(t,e){var n,r,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=a(0),u.throw=a(1),u.return=a(2),"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function a(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;u&&(u=0,a[0]&&(i=0)),i;)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 i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}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,s])}}}function fL(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 dL(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 pL(t,e,n){if(2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError;var hL,vL,gL,yL,mL,bL,EL,wL,SL,CL,DL,OL,AL,xL,TL,NL,PL,kL='<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>',IL='<svg viewBox="0 0 1024 1024"><path d="M924.402464 1023.068211H0.679665V99.345412h461.861399v98.909208H99.596867v725.896389h725.896389V561.206811h98.909208z" p-id="10909"></path><path d="M930.805104 22.977336l69.965436 69.965436-453.492405 453.492404-69.965435-69.901489z" p-id="10910"></path><path d="M1022.464381 304.030081h-98.917201V99.345412H709.230573V0.428211h313.233808z"></path></svg>',BL='<svg viewBox="0 0 1024 1024"><path d="M133.705143 335.433143V133.851429h201.581714a29.622857 29.622857 0 0 0 29.622857-29.549715V68.754286a29.622857 29.622857 0 0 0-29.622857-29.622857H61.732571A22.893714 22.893714 0 0 0 38.765714 62.025143V335.725714c0 16.310857 13.238857 29.622857 29.622857 29.622857h35.547429a29.842286 29.842286 0 0 0 29.696-29.842285zM690.980571 133.851429h201.581715v201.654857c0 16.310857 13.238857 29.549714 29.622857 29.549714h35.547428a29.622857 29.622857 0 0 0 29.549715-29.549714V61.952a22.893714 22.893714 0 0 0-22.820572-22.893714h-273.554285a29.622857 29.622857 0 0 0-29.549715 29.622857v35.547428c0 16.310857 13.238857 29.696 29.622857 29.696zM335.286857 892.781714H133.705143V691.2a29.622857 29.622857 0 0 0-29.622857-29.622857H68.534857a29.622857 29.622857 0 0 0-29.549714 29.622857v273.554286c0 12.653714 10.24 22.893714 22.820571 22.893714h273.554286a29.622857 29.622857 0 0 0 29.696-29.622857v-35.547429a29.769143 29.769143 0 0 0-29.769143-29.696z m557.348572-201.581714v201.581714H690.907429a29.622857 29.622857 0 0 0-29.622858 29.622857v35.547429c0 16.310857 13.238857 29.622857 29.622858 29.622857h273.554285c12.580571 0 22.893714-10.313143 22.893715-22.893714V691.2a29.622857 29.622857 0 0 0-29.622858-29.622857h-35.547428a29.622857 29.622857 0 0 0-29.696 29.622857z"></path></svg>',FL=function(){function t(){this.title=dI("blockQuote.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M894.6 907.1H605.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C752.7 180.4 711.3 315.8 711.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z m-472 0H133.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C280.7 180.4 239.3 315.8 239.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!!eP.getSelectedNodeByType(t,"blockquote")},t.prototype.isDisabled=function(t){return null==t.selection||!dL(yp.Editor.nodes(t,{match:function(t){var e=eP.getNodeType(t);return"paragraph"===e||"blockquote"===e},universal:!0,mode:"highest"}),1)[0]},t.prototype.exec=function(t,e){if(!this.isDisabled(t)){var n=this.isActive(t)?"paragraph":"blockquote";yp.Transforms.setNodes(t,{type:n},{mode:"highest"})}},t}(),RL={key:"blockquote",factory:function(){return new FL}},_L={};function jL(){if(vL)return hL;vL=1;var t=sR(),e=aR();return hL=function(n){if("Function"===t(n))return e(n)}}function LL(){if(bL)return mL;bL=1;var t=sR();return mL=Array.isArray||function(e){return"Array"===t(e)}}function ML(){if(wL)return EL;wL=1;var t=aR(),e=pF(),n=pR(),r=Lj(),o=vR(),i=j_(),u=function(){},a=o("Reflect","construct"),s=/^\s*(?:class|function)\b/,c=t(s.exec),l=!s.test(u),f=function(t){if(!n(t))return!1;try{return a(u,[],t),!0}catch(t){return!1}},d=function(t){if(!n(t))return!1;switch(r(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return l||!!c(s,i(t))}catch(t){return!0}};return d.sham=!0,EL=!a||e(function(){var t;return f(f.call)||!f(Object)||!f(function(){t=!0})||t})?d:f}function zL(){if(OL)return DL;OL=1;var t=function(){if(CL)return SL;CL=1;var t=LL(),e=ML(),n=hR(),r=r_()("species"),o=Array;return SL=function(i){var u;return t(i)&&(u=i.constructor,(e(u)&&(u===o||t(u.prototype))||n(u)&&null===(u=u[r]))&&(u=void 0)),void 0===u?o:u}}();return DL=function(e,n){return new(t(e))(0===n?0:n)}}function HL(){if(xL)return AL;xL=1;var t=function(){if(yL)return gL;yL=1;var t=jL(),e=CR(),n=vF(),r=t(t.bind);return gL=function(t,o){return e(t),void 0===o?t:n?r(t,o):function(){return t.apply(o,arguments)}},gL}(),e=aR(),n=cR(),r=t_(),o=lj(),i=zL(),u=e([].push),a=function(e){var a=1===e,s=2===e,c=3===e,l=4===e,f=6===e,d=7===e,p=5===e||f;return function(h,v,g,y){for(var m,b,E=r(h),w=n(E),S=o(w),C=t(v,g),D=0,O=y||i,A=a?O(h,S):s||d?O(h,0):void 0;S>D;D++)if((p||D in w)&&(b=C(m=w[D],D,E),e))if(a)A[D]=b;else if(b)switch(e){case 3:return!0;case 5:return m;case 6:return D;case 2:u(A,m)}else switch(e){case 4:return!1;case 7:u(A,m)}return f?-1:c||l?l:A}};return AL={forEach:a(0),map:a(1),filter:a(2),some:a(3),every:a(4),find:a(5),findIndex:a(6),filterReject:a(7)}}function $L(){if(NL)return TL;NL=1;var t=pF(),e=r_(),n=mR(),r=e("species");return TL=function(e){return n>=51||!t(function(){var t=[];return(t.constructor={})[r]=function(){return{foo:1}},1!==t[e](Boolean).foo})}}!function(){if(PL)return _L;PL=1;var t=_j(),e=HL().filter;t({target:"Array",proto:!0,forced:!$L()("filter")},{filter:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}})}();var UL,VL,GL,WL={};!function(){if(GL)return WL;GL=1;var t=jj(),e=$_(),n=function(){if(VL)return UL;VL=1;var t=jj(),e=Lj();return UL=t?{}.toString:function(){return"[object "+e(this)+"]"}}();t||e(Object.prototype,"toString",n,{unsafe:!0})}();var qL,KL,YL,XL,JL,ZL,QL,tM,eM,nM,rM,oM,iM,uM,aM,sM,cM,lM={};function fM(){if(XL)return YL;XL=1,iL();var t=gF(),e=$_(),n=oL(),r=pF(),o=r_(),i=b_(),u=o("species"),a=RegExp.prototype;return YL=function(s,c,l,f){var d=o(s),p=!r(function(){var t={};return t[d]=function(){return 7},7!==""[s](t)}),h=p&&!r(function(){var t=!1,e=/a/;return"split"===s&&((e={}).constructor={},e.constructor[u]=function(){return e},e.flags="",e[d]=/./[d]),e.exec=function(){return t=!0,null},e[d](""),!t});if(!p||!h||l){var v=/./[d],g=c(d,""[s],function(e,r,o,i,u){var s=r.exec;return s===n||s===a.exec?p&&!u?{done:!0,value:t(v,r,o,i)}:{done:!0,value:t(e,o,r,i)}:{done:!1}});e(String.prototype,s,g[0]),e(a,d,g[1])}f&&i(a[d],"sham",!0)}}function dM(){if(tM)return QL;tM=1;var t=function(){if(ZL)return JL;ZL=1;var t=aR(),e=aj(),n=Mj(),r=fR(),o=t("".charAt),i=t("".charCodeAt),u=t("".slice),a=function(t){return function(a,s){var c,l,f=n(r(a)),d=e(s),p=f.length;return d<0||d>=p?t?"":void 0:(c=i(f,d))<55296||c>56319||d+1===p||(l=i(f,d+1))<56320||l>57343?t?o(f,d):c:t?u(f,d,d+2):l-56320+(c-55296<<10)+65536}};return JL={codeAt:a(!1),charAt:a(!0)}}().charAt;return QL=function(e,n,r){return n+(r?t(e,n).length:1)},QL}function pM(){if(uM)return iM;uM=1;var t=gF(),e=e_(),n=gR(),r=function(){if(oM)return rM;oM=1;var t=rF(),e=pF(),n=t.RegExp,r=!e(function(){var t=!0;try{n(".","d")}catch(e){t=!1}var e={},r="",o=t?"dgimsy":"gimsy",i=function(t,n){Object.defineProperty(e,t,{get:function(){return r+=n,!0}})},u={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in t&&(u.hasIndices="d"),u)i(a,u[a]);return Object.getOwnPropertyDescriptor(n.prototype,"flags").get.call(e)!==o||r!==o});return rM={correct:r}}(),o=zj(),i=RegExp.prototype;return iM=r.correct?function(t){return t.flags}:function(u){return r.correct||!n(i,u)||e(u,"flags")?u.flags:t(o,u)}}function hM(){if(sM)return aM;sM=1;var t=gF(),e=y_(),n=pR(),r=sR(),o=oL(),i=TypeError;return aM=function(u,a){var s=u.exec;if(n(s)){var c=t(s,u,a);return null!==c&&e(c),c}if("RegExp"===r(u))return t(o,u,a);throw new i("RegExp#exec called on incompatible receiver")}}!function(){if(cM)return lM;cM=1;var t=function(){if(KL)return qL;KL=1;var t=vF(),e=Function.prototype,n=e.apply,r=e.call;return qL="object"==typeof Reflect&&Reflect.apply||(t?r.bind(n):function(){return r.apply(n,arguments)}),qL}(),e=gF(),n=aR(),r=fM(),o=pF(),i=y_(),u=pR(),a=hR(),s=aj(),c=cj(),l=Mj(),f=fR(),d=dM(),p=DR(),h=function(){if(nM)return eM;nM=1;var t=aR(),e=t_(),n=Math.floor,r=t("".charAt),o=t("".replace),i=t("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,a=/\$([$&'`]|\d{1,2})/g;return eM=function(t,s,c,l,f,d){var p=c+t.length,h=l.length,v=a;return void 0!==f&&(f=e(f),v=u),o(d,v,function(e,o){var u;switch(r(o,0)){case"$":return"$";case"&":return t;case"`":return i(s,0,c);case"'":return i(s,p);case"<":u=f[i(o,1,-1)];break;default:var a=+o;if(0===a)return e;if(a>h){var d=n(a/10);return 0===d?e:d<=h?void 0===l[d-1]?r(o,1):l[d-1]+r(o,1):e}u=l[a-1]}return void 0===u?"":u})}}(),v=pM(),g=hM(),y=r_()("replace"),m=Math.max,b=Math.min,E=n([].concat),w=n([].push),S=n("".indexOf),C=n("".slice),D=function(t){return void 0===t?t:String(t)},O="$0"==="a".replace(/./,"$0"),A=!!/./[y]&&""===/./[y]("a","$0");r("replace",function(n,r,o){var O=A?"$":"$0";return[function(t,n){var o=f(this),i=a(t)?p(t,y):void 0;return i?e(i,t,o,n):e(r,l(o),t,n)},function(e,n){var a=i(this),f=l(e);if("string"==typeof n&&-1===S(n,O)&&-1===S(n,"$<")){var p=o(r,a,f,n);if(p.done)return p.value}var y=u(n);y||(n=l(n));var A,x=l(v(a)),T=-1!==S(x,"g");T&&(A=-1!==S(x,"u"),a.lastIndex=0);for(var N,P=[];null!==(N=g(a,f))&&(w(P,N),T);)""===l(N[0])&&(a.lastIndex=d(f,c(a.lastIndex),A));for(var k="",I=0,B=0;B<P.length;B++){for(var F,R=l((N=P[B])[0]),_=m(b(s(N.index),f.length),0),j=[],L=1;L<N.length;L++)w(j,D(N[L]));var M=N.groups;if(y){var z=E([R],j,_,f);void 0!==M&&w(z,M),F=l(t(n,void 0,z))}else F=h(R,f,_,j,M,n);_>=I&&(k+=C(f,I,_)+F,I=_+R.length)}return k+C(f,I)}]},!!o(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})||!O||A)}();var vM,gM,yM,mM={};function bM(){if(gM)return vM;gM=1;var t=r_(),e=rL(),n=m_().f,r=t("unscopables"),o=Array.prototype;return void 0===o[r]&&n(o,r,{configurable:!0,value:e(null)}),vM=function(t){o[r][t]=!0}}!function(){if(yM)return mM;yM=1;var t=_j(),e=HL().find,n=bM(),r="find",o=!0;r in[]&&Array(1)[r](function(){o=!1}),t({target:"Array",proto:!0,forced:o},{find:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}}),n(r)}();var EM,wM,SM,CM,DM,OM,AM,xM={};function TM(){return wM?EM:(wM=1,EM="\t\n\v\f\r                 \u2028\u2029\ufeff")}!function(){if(AM)return xM;AM=1;var t=_j(),e=function(){if(CM)return SM;CM=1;var t=aR(),e=fR(),n=Mj(),r=TM(),o=t("".replace),i=RegExp("^["+r+"]+"),u=RegExp("(^|[^"+r+"])["+r+"]+$"),a=function(t){return function(r){var a=n(e(r));return 1&t&&(a=o(a,i,"")),2&t&&(a=o(a,u,"$1")),a}};return SM={start:a(1),end:a(2),trim:a(3)}}().trim,n=function(){if(OM)return DM;OM=1;var t=__().PROPER,e=pF(),n=TM();return DM=function(r){return e(function(){return!!n[r]()||"​…᠎"!=="​…᠎"[r]()||t&&n[r].name!==r})}}();t({target:"String",proto:!0,forced:n("trim")},{trim:function(){return e(this)}})}();var NM,PM,kM={};function IM(t){return 0===Rp("<div>".concat(t,"</div>")).children().filter(function(t){return"BR"!==t.tagName}).length}function BM(t){return 0===t.length?"":t[0].outerHTML}function FM(t){return t.length?t[0].tagName.toLowerCase():""}function RM(t,e){for(var n="",r=(t.attr("style")||"").split(";"),o=r.length,i=0;i<o;i+=1){var u=r[i];if(u){var a=u.split(":");a[0].trim()===e&&(n=a[1].trim())}}return n}PM||(PM=1,function(){if(NM)return kM;NM=1;var t=_j(),e=rF();t({global:!0,forced:e.globalThis!==e},{globalThis:e})}()),Jp&&(Rp.fn.css=Jp),rh&&(Rp.fn.append=rh),oh&&(Rp.fn.prepend=oh),_p&&(Rp.fn.addClass=_p),jp&&(Rp.fn.removeClass=jp),Lp&&(Rp.fn.hasClass=Lp),Vp&&(Rp.fn.on=Vp),Gp&&(Rp.fn.off=Gp),hh&&(Rp.fn.focus=hh),Mp&&(Rp.fn.attr=Mp),zp&&(Rp.fn.removeAttr=zp),Yp&&(Rp.fn.hide=Yp),Xp&&(Rp.fn.show=Xp),uh&&(Rp.fn.parents=uh),$p&&(Rp.fn.dataset=$p),Up&&(Rp.fn.val=Up),eh&&(Rp.fn.text=eh),th&&(Rp.fn.html=th),sh&&(Rp.fn.children=sh),ch&&(Rp.fn.remove=ch),ah&&(Rp.fn.find=ah),Wp&&(Rp.fn.width=Wp),qp&&(Rp.fn.height=qp),Qp&&(Rp.fn.filter=Qp),lh&&(Rp.fn.empty=lh);var _M,jM,LM,MM,zM,HM={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=Rp(t);return 0===(e=e.filter(function(t){return!!yp.Text.isText(t)||!!n.isInline(t)})).length&&(e=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:e}}},$M={};function UM(){if(jM)return _M;jM=1;var t=hF(),e=m_(),n=uR();return _M=function(r,o,i){t?e.f(r,o,n(0,i)):r[o]=i}}function VM(){if(MM)return LM;MM=1;var t=aR();return LM=t([].slice)}function GM(t){t.deleteBackward("character"),yp.Transforms.insertNodes(t,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}!function(){if(zM)return $M;zM=1;var t=_j(),e=LL(),n=ML(),r=hR(),o=sj(),i=lj(),u=dR(),a=UM(),s=r_(),c=$L(),l=VM(),f=c("slice"),d=s("species"),p=Array,h=Math.max;t({target:"Array",proto:!0,forced:!f},{slice:function(t,s){var c,f,v,g=u(this),y=i(g),m=o(t,y),b=o(void 0===s?y:s,y);if(e(g)&&(c=g.constructor,(n(c)&&(c===p||e(c.prototype))||r(c)&&null===(c=c[d]))&&(c=void 0),c===p||void 0===c))return l(g,m,b);for(f=new(void 0===c?p:c)(h(b-m,0)),v=0;m<b;m++,v++)m in g&&a(f,v,g[m]);return f.length=v,f}})}();var WM,qM={type:"blockquote",renderElem:function(t,e,n){return dv("blockquote",null,e)}},KM={renderElems:[qM],elemsToHtml:[{type:"blockquote",elemToHtml:function(t,e){return"<blockquote>".concat(e,"</blockquote>")}}],parseElemsHtml:[HM],menus:[RL],editorPlugin:function(t){var e=t.insertBreak,n=t.insertText,r=t;return r.insertBreak=function(){var o=r.selection;if(null==o)return e();var i=dL(yp.Editor.nodes(t,{match:function(t){return eP.checkNodeType(t,"blockquote")},universal:!0}),1)[0];if(!i)return e();var u=i[0];if(eP.getParentNode(t,u)){var a=eP.findPath(t,u),s=yp.Editor.end(t,a);if(yp.Point.equals(s,o.focus)){var c=yp.Node.string(u);if(c&&"\n"===c.slice(-1))return void GM(r)}n("\n")}else GM(r)},r}},YM={};!function(){if(WM)return YM;WM=1;var t=_j(),e=fj().includes,n=pF(),r=bM();t({target:"Array",proto:!0,forced:n(function(){return!Array(1).includes()})},{includes:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}}),r("includes")}();var XM,JM,ZM,QM={};function tz(){if(JM)return XM;JM=1;var t=pF();return XM=function(e,n){var r=[][e];return!!r&&t(function(){r.call(null,n||function(){return 1},1)})}}!function(){if(ZM)return QM;ZM=1;var t=_j(),e=aR(),n=cR(),r=dR(),o=tz(),i=e([].join);t({target:"Array",proto:!0,forced:n!==Object||!o("join",",")},{join:function(t){return i(r(this),void 0===t?",":t)}})}();var ez,nz={};!function(){if(ez)return nz;ez=1;var t=_j(),e=HL().map;t({target:"Array",proto:!0,forced:!$L()("map")},{map:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}})}();var rz,oz={};!function(){if(rz)return oz;rz=1;var t=__().PROPER,e=$_(),n=y_(),r=Mj(),o=pF(),i=pM(),u="toString",a=RegExp.prototype,s=a[u],c=o(function(){return"/a/b"!==s.call({source:"a",flags:"b"})}),l=t&&s.name!==u;(c||l)&&e(a,u,function(){var t=n(this);return"/"+r(t.source)+"/"+r(i(t))},{unsafe:!0})}();var iz,uz,az,sz,cz,lz,fz,dz={};function pz(){if(sz)return az;sz=1;var t=function(){if(uz)return iz;uz=1;var t=hR(),e=sR(),n=r_()("match");return iz=function(r){var o;return t(r)&&(void 0!==(o=r[n])?!!o:"RegExp"===e(r))}}(),e=TypeError;return az=function(n){if(t(n))throw new e("The method doesn't accept regular expressions");return n}}function hz(){if(lz)return cz;lz=1;var t=r_()("match");return cz=function(e){var n=/./;try{"/./"[e](n)}catch(r){try{return n[t]=!1,"/./"[e](n)}catch(t){}}return!1}}!function(){if(fz)return dz;fz=1;var t=_j(),e=aR(),n=pz(),r=fR(),o=Mj(),i=hz(),u=e("".indexOf);t({target:"String",proto:!0,forced:!i("includes")},{includes:function(t){return!!~u(o(r(this)),o(n(t)),arguments.length>1?arguments[1]:void 0)}})}();var vz,gz,yz,mz,bz,Ez,wz,Sz,Cz,Dz,Oz,Az=function(){function t(){this.title=dI("codeBlock.title"),this.iconSvg='<svg viewBox="0 0 1280 1024"><path d="M832 736l96 96 320-320L928 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224zM701.312 150.528l69.472 18.944-192 704.032-69.472-18.944 192-704.032z"></path></svg>',this.tag="button"}return t.prototype.getSelectCodeElem=function(t){var e=eP.getSelectedNodeByType(t,"code");if(null==e)return null;var n=eP.getParentNode(t,e);return null==n||"pre"!==eP.getNodeType(n)?null:e},t.prototype.getValue=function(t){var e=this.getSelectCodeElem(t);if(null==e){var n=t.getMenuConfig("codeSelectLang").codeLangs,r=(void 0===n?[]:n).find(function(t){return t.selected});return(null==r?void 0:r.value)||""}return e.language||""},t.prototype.isActive=function(t){return!!this.getSelectCodeElem(t)},t.prototype.isDisabled=function(t){if(null==t.selection)return!0;var e=eP.getSelectedElems(t);return!!e.some(function(e){return t.isVoid(e)})||!e.some(function(t){var e=eP.getNodeType(t);return"pre"===e||"paragraph"===e})},t.prototype.exec=function(t,e){this.isActive(t)?this.changeToPlainText(t):this.changeToCodeBlock(t,e.toString())},t.prototype.changeToPlainText=function(t){var e=this.getSelectCodeElem(t);if(null!=e){var n=yp.Node.string(e);yp.Transforms.removeNodes(t,{mode:"highest"});var r=n.split("\n").map(function(t){return{type:"paragraph",children:[{text:t}]}});yp.Transforms.insertNodes(t,r,{mode:"highest"})}},t.prototype.changeToCodeBlock=function(t,e){var n,r,o=[],i=yp.Editor.nodes(t,{match:function(e){return t.children.includes(e)},universal:!0});try{for(var u=fL(i),a=u.next();!a.done;a=u.next()){var s=dL(a.value,1)[0];s&&o.push(yp.Node.string(s))}}catch(t){n={error:t}}finally{try{a&&!a.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}yp.Transforms.removeNodes(t,{mode:"highest"});var c={type:"pre",children:[{type:"code",language:e,children:[{text:o.join("\n")}]}]};yp.Transforms.insertNodes(t,c,{mode:"highest"})},t}(),xz={key:"codeBlock",factory:function(){return new Az}},Tz={selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(t,e,n){return{type:"code",language:"",children:[{text:Rp(t)[0].textContent||""}]}}},Nz={selector:"pre:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=Rp(t);return 0===(e=e.filter(function(t){return"code"===eP.getNodeType(t)})).length&&(e=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:e.filter(function(t){return"code"===eP.getNodeType(t)})}}},Pz={};!function(){if(Oz)return Pz;Oz=1;var t=_j(),e=aR(),n=CR(),r=t_(),o=lj(),i=function(){if(gz)return vz;gz=1;var t=SR(),e=TypeError;return vz=function(n,r){if(!delete n[r])throw new e("Cannot delete property "+t(r)+" of "+t(n))}}(),u=Mj(),a=pF(),s=function(){if(mz)return yz;mz=1;var t=VM(),e=Math.floor,n=function(r,o){var i=r.length;if(i<8)for(var u,a,s=1;s<i;){for(a=s,u=r[s];a&&o(r[a-1],u)>0;)r[a]=r[--a];a!==s++&&(r[a]=u)}else for(var c=e(i/2),l=n(t(r,0,c),o),f=n(t(r,c),o),d=l.length,p=f.length,h=0,v=0;h<d||v<p;)r[h+v]=h<d&&v<p?o(l[h],f[v])<=0?l[h++]:f[v++]:h<d?l[h++]:f[v++];return r};return yz=n}(),c=tz(),l=function(){if(Ez)return bz;Ez=1;var t=yR().match(/firefox\/(\d+)/i);return bz=!!t&&+t[1]}(),f=function(){if(Sz)return wz;Sz=1;var t=yR();return wz=/MSIE|Trident/.test(t)}(),d=mR(),p=function(){if(Dz)return Cz;Dz=1;var t=yR().match(/AppleWebKit\/(\d+)\./);return Cz=!!t&&+t[1]}(),h=[],v=e(h.sort),g=e(h.push),y=a(function(){h.sort(void 0)}),m=a(function(){h.sort(null)}),b=c("sort"),E=!a(function(){if(d)return d<70;if(!(l&&l>3)){if(f)return!0;if(p)return p<603;var t,e,n,r,o="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)h.push({k:e+r,v:n})}for(h.sort(function(t,e){return e.v-t.v}),r=0;r<h.length;r++)e=h[r].k.charAt(0),o.charAt(o.length-1)!==e&&(o+=e);return"DGBEFHACIJK"!==o}});t({target:"Array",proto:!0,forced:y||!m||!b||!E},{sort:function(t){void 0!==t&&n(t);var e=r(this);if(E)return void 0===t?v(e):v(e,t);var a,c,l=[],f=o(e);for(c=0;c<f;c++)c in e&&g(l,e[c]);for(s(l,function(t){return function(e,n){return void 0===n?-1:void 0===e?1:void 0!==t?+t(e,n)||0:u(e)>u(n)?1:-1}}(t)),a=o(l),c=0;c<a;)e[c]=l[c++];for(;c<f;)i(e,c++);return e}})}();var kz,Iz={};!function(){if(kz)return Iz;kz=1;var t=gF(),e=aR(),n=fM(),r=y_(),o=hR(),i=cj(),u=Mj(),a=fR(),s=DR(),c=dM(),l=pM(),f=hM(),d=e("".indexOf);n("match",function(e,n,p){return[function(n){var r=a(this),i=o(n)?s(n,e):void 0;return i?t(i,n,r):new RegExp(n)[e](u(r))},function(t){var e=r(this),o=u(t),a=p(n,e,o);if(a.done)return a.value;var s=u(l(e));if(-1===d(s,"g"))return f(e,o);var h=-1!==d(s,"u");e.lastIndex=0;for(var v,g=[],y=0;null!==(v=f(e,o));){var m=u(v[0]);g[y]=m,""===m&&(e.lastIndex=c(o,i(e.lastIndex),h)),y++}return 0===y?null:g}]})}();var Bz,Fz,Rz,_z,jz,Lz={};function Mz(){if(Fz)return Bz;Fz=1;var t=aR(),e=fR(),n=Mj(),r=/"/g,o=t("".replace);return Bz=function(t,i,u,a){var s=n(e(t)),c="<"+i;return""!==u&&(c+=" "+u+'="'+o(n(a),r,"&quot;")+'"'),c+">"+s+"</"+i+">"}}function zz(){if(_z)return Rz;_z=1;var t=pF();return Rz=function(e){return t(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})}}!function(){if(jz)return Lz;jz=1;var t=_j(),e=Mz();t({target:"String",proto:!0,forced:zz()("anchor")},{anchor:function(t){return e(this,"a","name",t)}})}();var Hz,$z,Uz,Vz={type:"pre",renderElem:function(t,e,n){return dv("pre",null,e)}},Gz={type:"code",renderElem:function(t,e,n){return dv("code",null,e)}},Wz={menus:[xz],editorPlugin:function(t){var e=t.insertBreak,n=t.normalizeNode,r=t.insertData,o=t.handleTab,i=t;return i.insertBreak=function(){var t=eP.getSelectedNodeByType(i,"code");if(null!=t){var n=function(t,e){var n=e.selection;if(null==n)return"";var r=yp.Node.string(t),o=n.anchor.offset,i=r.slice(0,o).split("\n"),u=i.length;return 0===u?"":i[u-1]}(t,i);if(n){var r=n.match(/^\s+/);if(null!=r&&null!=r[0]){var o=r[0];return void i.insertText("\n".concat(o))}}i.insertText("\n")}else e()},t.handleTab=function(){var e=t.selection;if(e){var n=eP.getSelectedNodeByType(t,"code");if(n&&!yp.Range.isCollapsed(e)){var r=dL([e.anchor,e.focus].sort(function(t,e){return t.offset-e.offset}),2),i=r[0],u=r[1],a=n.children[0].text,s=a.split("\n"),c=a.slice(0,i.offset).split("\n").length-1,l=a.slice(0,u.offset).split("\n").length-1,f=s.map(function(t,e){return e>=c&&e<=l?" ".concat(t):t}),d=f.join("\n"),p={anchor:{path:i.path,offset:i.offset+2},focus:{path:u.path,offset:u.offset+2}};yp.Transforms.insertText(t,d,{at:{anchor:{path:i.path,offset:0},focus:{path:u.path,offset:a.length}}}),yp.Transforms.select(t,p)}else o()}},i.normalizeNode=function(t){var e=dL(t,2),r=e[0],o=e[1],u=eP.getNodeType(r);return"code"===u&&o.length<=1&&yp.Transforms.setNodes(i,{type:"paragraph"},{at:o}),"pre"===u&&(eP.isLastNode(i,r)&&yp.Transforms.insertNodes(i,eP.genEmptyParagraph(),{at:[o[0]+1]}),"code"!==eP.getNodeType(r.children[0])&&(yp.Transforms.unwrapNodes(i),yp.Transforms.setNodes(i,{type:"paragraph"},{mode:"highest"}))),n([r,o])},i.insertData=function(t){if(null!=eP.getSelectedNodeByType(i,"code")){var e=t.getData("text/plain");yp.Editor.insertText(i,e)}else r(t)},i},renderElems:[Vz,Gz],elemsToHtml:[{type:"code",elemToHtml:function(t,e){return"<code>".concat(e,"</code>")}},{type:"pre",elemToHtml:function(t,e){return"<pre>".concat(e,"</pre>")}}],preParseHtml:[{selector:"pre>code",preParseHtml:function(t){var e=Rp(t);if("code"!==FM(e))return t;var n=e.find("xmp");if(0===n.length)return t;var r=n.text();return n.remove(),e.text(r),e[0]}}],parseElemsHtml:[Tz,Nz]},qz={};!function(){if(Uz)return qz;Uz=1;var t=_j(),e=pF(),n=LL(),r=hR(),o=t_(),i=lj(),u=function(){if($z)return Hz;$z=1;var t=TypeError;return Hz=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}}(),a=UM(),s=zL(),c=$L(),l=r_(),f=mR(),d=l("isConcatSpreadable"),p=f>=51||!e(function(){var t=[];return t[d]=!1,t.concat()[0]!==t}),h=function(t){if(!r(t))return!1;var e=t[d];return void 0!==e?!!e:n(t)};t({target:"Array",proto:!0,arity:1,forced:!p||!c("concat")},{concat:function(t){var e,n,r,c,l,f=o(this),d=s(f,0),p=0;for(e=-1,r=arguments.length;e<r;e++)if(h(l=-1===e?f:arguments[e]))for(c=i(l),u(p+c),n=0;n<c;n++,p++)n in l&&a(d,p,l[n]);else u(p+1),a(d,p++,l);return d.length=p,d}})}();var Kz,Yz,Xz,Jz,Zz,Qz,tH,eH={};!function(){if(tH)return eH;tH=1;var t=rF(),e=Yz?Kz:(Yz=1,Kz={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}),n=function(){if(Jz)return Xz;Jz=1;var t=i_()("span").classList,e=t&&t.constructor&&t.constructor.prototype;return Xz=e===Object.prototype?void 0:e}(),r=function(){if(Qz)return Zz;Qz=1;var t=HL().forEach,e=tz()("forEach");return Zz=e?[].forEach:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)},Zz}(),o=b_(),i=function(t){if(t&&t.forEach!==r)try{o(t,"forEach",r)}catch(e){t.forEach=r}};for(var u in e)e[u]&&i(t[u]&&t[u].prototype);i(n)}();var nH,rH,oH,iH=function(){function t(){this.tag="button",this.showDropPanel=!0,this.$content=null}return t.prototype.exec=function(t,e){},t.prototype.getValue=function(t){var e=this.mark,n=yp.Editor.marks(t);return n&&n[e]?n[e]:""},t.prototype.isActive=function(t){return!!this.getValue(t)},t.prototype.isDisabled=function(t){return null==t.selection||!!dL(yp.Editor.nodes(t,{match:function(e){return"pre"===eP.getNodeType(e)||!!yp.Editor.isVoid(t,e)},universal:!0}),1)[0]},t.prototype.getPanelContentElem=function(t){var e=this.mark;if(null==this.$content){var n=Rp('<ul class="w-e-panel-content-color"></ul>');n.on("click","li",function(n){var r=n.target;if(null!=r&&(n.preventDefault(),null!=t.selection)){var o=Rp(r).attr("data-value");"0"===o?yp.Editor.removeMark(t,e):yp.Editor.addMark(t,e,o)}}),this.$content=n}var r=this.$content;if(null==r)return document.createElement("ul");r.empty();var o=this.getValue(t),i=t.getMenuConfig(e).colors;(void 0===i?[]:i).forEach(function(t){var e=Rp('<div class="color-block" data-value="'.concat(t,'"></div>'));e.css("background-color",t);var n=Rp('<li data-value="'.concat(t,'"></li>'));o===t&&n.addClass("active"),n.append(e),r.append(n)});var u="";"color"===e&&(u=dI("color.default")),"bgColor"===e&&(u=dI("color.clear"));var a=Rp('\n <li data-value="0" class="clear">\n '.concat('<svg viewBox="0 0 1024 1024"><path d="M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z"></path></svg>',"\n ").concat(u,"\n </li>\n "));return r.prepend(a),r[0]},t}(),uH=function(t){function e(){var e=t.apply(this,pL([],dL(arguments),!1))||this;return e.title=dI("color.bgColor"),e.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M510.030769 315.076923l84.676923 196.923077h-177.230769l76.8-196.923077h15.753846zM945.230769 157.538462v708.923076c0 43.323077-35.446154 78.769231-78.769231 78.769231H157.538462c-43.323077 0-78.769231-35.446154-78.769231-78.769231V157.538462c0-43.323077 35.446154-78.769231 78.769231-78.769231h708.923076c43.323077 0 78.769231 35.446154 78.769231 78.769231z m-108.307692 643.938461L600.615385 216.615385c-5.907692-11.815385-15.753846-19.692308-29.538462-19.692308h-139.815385c-11.815385 0-23.630769 7.876923-27.56923 19.692308l-216.615385 584.861538c-3.938462 11.815385 3.938462 25.6 17.723077 25.6h80.738462c11.815385 0 23.630769-9.846154 27.56923-21.661538l63.015385-175.261539h263.876923l68.923077 175.261539c3.938462 11.815385 15.753846 21.661538 27.569231 21.661538h80.738461c13.784615 0 23.630769-13.784615 19.692308-25.6z"></path></svg>',e.mark="bgColor",e}return aL(e,t),e}(iH),aH=function(t){function e(){var e=t.apply(this,pL([],dL(arguments),!1))||this;return e.title=dI("color.color"),e.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 864h896v96H64zM360.58 576h302.85l81.53 224h102.16L579.24 64H444.77L176.89 800h102.16l81.53-224zM512 159.96L628.49 480H395.52L512 159.96z"></path></svg>',e.mark="color",e}return aL(e,t),e}(iH),sH=["rgb(0, 0, 0)","rgb(38, 38, 38)","rgb(89, 89, 89)","rgb(140, 140, 140)","rgb(191, 191, 191)","rgb(217, 217, 217)","rgb(233, 233, 233)","rgb(245, 245, 245)","rgb(250, 250, 250)","rgb(255, 255, 255)","rgb(225, 60, 57)","rgb(231, 95, 51)","rgb(235, 144, 58)","rgb(245, 219, 77)","rgb(114, 192, 64)","rgb(89, 191, 192)","rgb(66, 144, 247)","rgb(54, 88, 226)","rgb(106, 57, 201)","rgb(216, 68, 147)","rgb(251, 233, 230)","rgb(252, 237, 225)","rgb(252, 239, 212)","rgb(252, 251, 207)","rgb(231, 246, 213)","rgb(218, 244, 240)","rgb(217, 237, 250)","rgb(224, 232, 250)","rgb(237, 225, 248)","rgb(246, 226, 234)","rgb(255, 163, 158)","rgb(255, 187, 150)","rgb(255, 213, 145)","rgb(255, 251, 143)","rgb(183, 235, 143)","rgb(135, 232, 222)","rgb(145, 213, 255)","rgb(173, 198, 255)","rgb(211, 173, 247)","rgb(255, 173, 210)","rgb(255, 77, 79)","rgb(255, 122, 69)","rgb(255, 169, 64)","rgb(255, 236, 61)","rgb(115, 209, 61)","rgb(54, 207, 201)","rgb(64, 169, 255)","rgb(89, 126, 247)","rgb(146, 84, 222)","rgb(247, 89, 171)","rgb(207, 19, 34)","rgb(212, 56, 13)","rgb(212, 107, 8)","rgb(212, 177, 6)","rgb(56, 158, 13)","rgb(8, 151, 156)","rgb(9, 109, 217)","rgb(29, 57, 196)","rgb(83, 29, 171)","rgb(196, 29, 127)","rgb(130, 0, 20)","rgb(135, 20, 0)","rgb(135, 56, 0)","rgb(97, 71, 0)","rgb(19, 82, 0)","rgb(0, 71, 79)","rgb(0, 58, 140)","rgb(6, 17, 120)","rgb(34, 7, 94)","rgb(120, 6, 80)"],cH={key:"color",factory:function(){return new aH},config:{colors:sH}},lH={key:"bgColor",factory:function(){return new uH},config:{colors:sH}},fH={selector:"font",preParseHtml:function(t){var e=Rp(t);if("font"!==FM(e))return t;var n=e.attr("color")||"";return n&&(e.removeAttr("color"),e.css("color",n)),e[0]}},dH={};function pH(t,e){null==t.data&&(t.data={});var n=t.data;null==n.style&&(n.style={}),Object.assign(n.style,e)}!function(){if(oH)return dH;oH=1;var t=_j(),e=function(){if(rH)return nH;rH=1;var t=hF(),e=aR(),n=gF(),r=pF(),o=nL(),i=Fj(),u=iR(),a=t_(),s=cR(),c=Object.assign,l=Object.defineProperty,f=e([].concat);return nH=!c||r(function(){if(t&&1!==c({b:1},c(l({},"a",{enumerable:!0,get:function(){l(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},n={},r=Symbol("assign detection"),i="abcdefghijklmnopqrst";return e[r]=7,i.split("").forEach(function(t){n[t]=t}),7!==c({},e)[r]||o(c({},n)).join("")!==i})?function(e,r){for(var c=a(e),l=arguments.length,d=1,p=i.f,h=u.f;l>d;)for(var v,g=s(arguments[d++]),y=p?f(o(g),p(g)):o(g),m=y.length,b=0;m>b;)v=y[b++],t&&!n(h,g,v)||(c[v]=g[v]);return c}:c,nH}();t({target:"Object",stat:!0,arity:2,forced:Object.assign!==e},{assign:e})}();var hH,vH,gH,yH,mH,bH,EH,wH,SH,CH,DH,OH,AH,xH,TH,NH,PH={renderStyle:function(t,e){var n=t,r=n.color,o=n.bgColor,i=e;return r&&pH(i,{color:r}),o&&pH(i,{backgroundColor:o}),i},styleToHtml:function(t,e){if(!yp.Text.isText(t))return e;var n,r=t,o=r.color,i=r.bgColor;return o||i?((IM(e)||"span"!==FM(n=Rp(e)))&&(n=Rp("<span>".concat(e,"</span>"))),o&&n.css("color",o),i&&n.css("background-color",i),BM(n)):e},preParseHtml:[fH],parseStyleHtml:function(t,e,n){var r=Rp(t);if(!yp.Text.isText(e))return e;var o=e,i=RM(r,"color");i&&(o.color=i);var u=RM(r,"background-color");return u||(u=RM(r,"background")),u&&(o.bgColor=u),o},menus:[cH,lH]},kH=function(){function t(){this.title=dI("common.enter"),this.iconSvg='<svg viewBox="0 0 1255 1024"><path d="M1095.111111 731.477333h-625.777778V1024L0 658.318222 469.333333 292.408889v292.636444h625.777778V0h156.444445v731.477333z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){var e=t.selection;return null==e||!!yp.Range.isExpanded(e)},t.prototype.exec=function(t,e){var n=t.selection;if(null!=n){var r=[n.anchor.path[0]];yp.Transforms.insertNodes(t,{type:"paragraph",children:[{text:""}]},{at:r}),t.select(yp.Editor.start(t,r))}},t}(),IH={menus:[{key:"enter",factory:function(){return new kH}}]},BH=function(){function t(){this.title=dI("divider.title"),this.iconSvg='<svg viewBox="0 0 1092 1024"><path d="M0 51.2m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M819.2 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M409.6 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 870.4m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){return null==t.selection||!!eP.getSelectedElems(t).some(function(e){if(t.isVoid(e))return!0;var n=eP.getNodeType(e);return"table"===n||"pre"===n})},t.prototype.exec=function(t,e){eP.isSelectedEmptyParagraph(t)&&yp.Transforms.removeNodes(t,{mode:"highest"}),yp.Transforms.insertNodes(t,{type:"divider",children:[{text:""}]},{mode:"highest"})},t}(),FH={renderElems:[{type:"divider",renderElem:function(t,e,n){return Wh("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:eP.isNodeSelected(n,t)?"true":""},style:{},on:{mousedown:function(t){return t.preventDefault()}}},[Wh("hr")])}}],elemsToHtml:[{type:"divider",elemToHtml:function(t,e){return"<hr/>"}}],parseElemsHtml:[{selector:"hr:not([data-w-e-type])",parseElemHtml:function(t,e,n){return{type:"divider",children:[{text:""}]}}}],menus:[{key:"divider",factory:function(){return new BH}}],editorPlugin:function(t){var e=t.isVoid,n=t.normalizeNode,r=t;return r.isVoid=function(t){return"divider"===t.type||e(t)},r.normalizeNode=function(t){var e=dL(t,2),o=e[0],i=e[1];if("divider"!==eP.getNodeType(o))return n([o,i]);eP.isLastNode(r,o)&&yp.Transforms.insertNodes(r,eP.genEmptyParagraph(),{at:[i[0]+1]})},r}},RH=function(){function t(){this.title=dI("emotion.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512z m0-102.4c226.742857 0 409.6-182.857143 409.6-409.6S738.742857 102.4 512 102.4 102.4 285.257143 102.4 512s182.857143 409.6 409.6 409.6z m-204.8-358.4h409.6c0 113.371429-91.428571 204.8-204.8 204.8s-204.8-91.428571-204.8-204.8z m0-102.4c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8 76.8 32.914286 76.8 76.8-32.914286 76.8-76.8 76.8z m409.6 0c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8c43.885714 0 76.8 32.914286 76.8 76.8s-32.914286 76.8-76.8 76.8z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return t.prototype.exec=function(t,e){},t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){return null==t.selection||!!dL(yp.Editor.nodes(t,{match:function(e){return"pre"===eP.getNodeType(e)||!!yp.Editor.isVoid(t,e)},universal:!0}),1)[0]},t.prototype.getPanelContentElem=function(t){if(null==this.$content){var e=Rp('<ul class="w-e-panel-content-emotion"></ul>');e.on("click","li",function(e){var n=e.target;if(null!=n){e.preventDefault();var r=Rp(n).text();t.insertText(r)}}),this.$content=e}var n=this.$content;if(null==n)return document.createElement("ul");n.empty();var r=t.getMenuConfig("emotion").emotions;return(void 0===r?[]:r).forEach(function(t){var e=Rp("<li>".concat(t,"</li>"));n.append(e)}),n[0]},t}(),_H={menus:[{key:"emotion",factory:function(){return new RH},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},jH={};function LH(){if(vH)return hH;vH=1;var t=function(t){return t&&t.Math===Math&&t};return hH=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof ZB&&ZB)||t("object"==typeof hH&&hH)||function(){return this}()||Function("return this")()}function MH(){return yH?gH:(yH=1,gH=function(t){try{return!!t()}catch(t){return!0}})}function zH(){return bH?mH:(bH=1,mH=!MH()(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))}function HH(){if(wH)return EH;wH=1;var t=zH(),e=Function.prototype,n=e.apply,r=e.call;return EH="object"==typeof Reflect&&Reflect.apply||(t?r.bind(n):function(){return r.apply(n,arguments)}),EH}function $H(){if(CH)return SH;CH=1;var t=zH(),e=Function.prototype,n=e.call,r=t&&e.bind.bind(n,n);return SH=t?r:function(t){return function(){return n.apply(t,arguments)}},SH}function UH(){if(OH)return DH;OH=1;var t=$H(),e=t({}.toString),n=t("".slice);return DH=function(t){return n(e(t),8,-1)}}function VH(){if(xH)return AH;xH=1;var t=UH(),e=$H();return AH=function(n){if("Function"===t(n))return e(n)}}function GH(){if(NH)return TH;NH=1;var t="object"==typeof document&&document.all;return TH=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(t){return"function"==typeof t}}var WH,qH,KH,YH,XH={};function JH(){return qH?WH:(qH=1,WH=!MH()(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))}function ZH(){if(YH)return KH;YH=1;var t=zH(),e=Function.prototype.call;return KH=t?e.bind(e):function(){return e.apply(e,arguments)},KH}var QH,t$,e$,n$,r$,o$,i$,u$,a$,s$,c$,l$,f$,d$,p$,h$,v$,g$,y$,m$,b$,E$,w$,S$,C$,D$,O$,A$,x$,T$,N$,P$,k$,I$,B$,F$,R$,_$={};function j$(){if(QH)return _$;QH=1;var t={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,n=e&&!t.call({1:2},1);return _$.f=n?function(t){var n=e(this,t);return!!n&&n.enumerable}:t,_$}function L$(){return e$?t$:(e$=1,t$=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}})}function M$(){if(r$)return n$;r$=1;var t=$H(),e=MH(),n=UH(),r=Object,o=t("".split);return n$=e(function(){return!r("z").propertyIsEnumerable(0)})?function(t){return"String"===n(t)?o(t,""):r(t)}:r}function z$(){return i$?o$:(i$=1,o$=function(t){return null==t})}function H$(){if(a$)return u$;a$=1;var t=z$(),e=TypeError;return u$=function(n){if(t(n))throw new e("Can't call method on "+n);return n}}function $$(){if(c$)return s$;c$=1;var t=M$(),e=H$();return s$=function(n){return t(e(n))}}function U$(){if(f$)return l$;f$=1;var t=GH();return l$=function(e){return"object"==typeof e?null!==e:t(e)}}function V$(){return p$?d$:(p$=1,d$={})}function G$(){if(v$)return h$;v$=1;var t=V$(),e=LH(),n=GH(),r=function(t){return n(t)?t:void 0};return h$=function(n,o){return arguments.length<2?r(t[n])||r(e[n]):t[n]&&t[n][o]||e[n]&&e[n][o]},h$}function W$(){return y$?g$:(y$=1,g$=$H()({}.isPrototypeOf))}function q$(){if(w$)return E$;w$=1;var t,e,n=LH(),r=function(){if(b$)return m$;b$=1;var t=LH().navigator,e=t&&t.userAgent;return m$=e?String(e):""}(),o=n.process,i=n.Deno,u=o&&o.versions||i&&i.version,a=u&&u.v8;return a&&(e=(t=a.split("."))[0]>0&&t[0]<4?1:+(t[0]+t[1])),!e&&r&&(!(t=r.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=r.match(/Chrome\/(\d+)/))&&(e=+t[1]),E$=e}function K$(){if(C$)return S$;C$=1;var t=q$(),e=MH(),n=LH().String;return S$=!!Object.getOwnPropertySymbols&&!e(function(){var e=Symbol("symbol detection");return!n(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&t&&t<41})}function Y$(){return O$?D$:(O$=1,D$=K$()&&!Symbol.sham&&"symbol"==typeof Symbol.iterator)}function X$(){if(x$)return A$;x$=1;var t=G$(),e=GH(),n=W$(),r=Object;return A$=Y$()?function(t){return"symbol"==typeof t}:function(o){var i=t("Symbol");return e(i)&&n(i.prototype,r(o))}}function J$(){if(N$)return T$;N$=1;var t=String;return T$=function(e){try{return t(e)}catch(t){return"Object"}}}function Z$(){if(k$)return P$;k$=1;var t=GH(),e=J$(),n=TypeError;return P$=function(r){if(t(r))return r;throw new n(e(r)+" is not a function")}}var Q$,tU,eU,nU,rU,oU,iU,uU,aU,sU,cU,lU,fU,dU,pU,hU,vU,gU,yU,mU,bU,EU,wU,SU,CU,DU,OU,AU,xU={exports:{}};function TU(){return tU?Q$:(tU=1,Q$=!0)}function NU(){if(rU)return xU.exports;rU=1;var t=TU(),e=LH(),n=function(){if(nU)return eU;nU=1;var t=LH(),e=Object.defineProperty;return eU=function(n,r){try{e(t,n,{value:r,configurable:!0,writable:!0})}catch(e){t[n]=r}return r}}(),r="__core-js_shared__",o=xU.exports=e[r]||n(r,{});return(o.versions||(o.versions=[])).push({version:"3.44.0",mode:t?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.44.0/LICENSE",source:"https://github.com/zloirock/core-js"}),xU.exports}function PU(){if(iU)return oU;iU=1;var t=NU();return oU=function(e,n){return t[e]||(t[e]=n||{})}}function kU(){if(aU)return uU;aU=1;var t=H$(),e=Object;return uU=function(n){return e(t(n))}}function IU(){if(cU)return sU;cU=1;var t=$H(),e=kU(),n=t({}.hasOwnProperty);return sU=Object.hasOwn||function(t,r){return n(e(t),r)}}function BU(){if(fU)return lU;fU=1;var t=$H(),e=0,n=Math.random(),r=t(1.1.toString);return lU=function(t){return"Symbol("+(void 0===t?"":t)+")_"+r(++e+n,36)}}function FU(){if(pU)return dU;pU=1;var t=LH(),e=PU(),n=IU(),r=BU(),o=K$(),i=Y$(),u=t.Symbol,a=e("wks"),s=i?u.for||u:u&&u.withoutSetter||r;return dU=function(t){return n(a,t)||(a[t]=o&&n(u,t)?u[t]:s("Symbol."+t)),a[t]}}function RU(){if(vU)return hU;vU=1;var t=ZH(),e=U$(),n=X$(),r=function(){if(B$)return I$;B$=1;var t=Z$(),e=z$();return I$=function(n,r){var o=n[r];return e(o)?void 0:t(o)}}(),o=function(){if(R$)return F$;R$=1;var t=ZH(),e=GH(),n=U$(),r=TypeError;return F$=function(o,i){var u,a;if("string"===i&&e(u=o.toString)&&!n(a=t(u,o)))return a;if(e(u=o.valueOf)&&!n(a=t(u,o)))return a;if("string"!==i&&e(u=o.toString)&&!n(a=t(u,o)))return a;throw new r("Can't convert object to primitive value")},F$}(),i=TypeError,u=FU()("toPrimitive");return hU=function(a,s){if(!e(a)||n(a))return a;var c,l=r(a,u);if(l){if(void 0===s&&(s="default"),c=t(l,a,s),!e(c)||n(c))return c;throw new i("Can't convert object to primitive value")}return void 0===s&&(s="number"),o(a,s)}}function _U(){if(yU)return gU;yU=1;var t=RU(),e=X$();return gU=function(n){var r=t(n,"string");return e(r)?r:r+""}}function jU(){if(bU)return mU;bU=1;var t=LH(),e=U$(),n=t.document,r=e(n)&&e(n.createElement);return mU=function(t){return r?n.createElement(t):{}}}function LU(){if(wU)return EU;wU=1;var t=JH(),e=MH(),n=jU();return EU=!t&&!e(function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a})}function MU(){if(SU)return XH;SU=1;var t=JH(),e=ZH(),n=j$(),r=L$(),o=$$(),i=_U(),u=IU(),a=LU(),s=Object.getOwnPropertyDescriptor;return XH.f=t?s:function(t,c){if(t=o(t),c=i(c),a)try{return s(t,c)}catch(t){}if(u(t,c))return r(!e(n.f,t,c),t[c])},XH}function zU(){if(AU)return OU;AU=1;var t=VH(),e=Z$(),n=zH(),r=t(t.bind);return OU=function(t,o){return e(t),void 0===o?t:n?r(t,o):function(){return t.apply(o,arguments)}},OU}var HU,$U,UU,VU,GU,WU,qU,KU,YU,XU,JU,ZU,QU,tV,eV,nV,rV,oV,iV,uV,aV,sV,cV,lV,fV,dV,pV,hV,vV,gV,yV,mV,bV,EV,wV,SV,CV,DV,OV={};function AV(){return $U?HU:($U=1,HU=JH()&&MH()(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}))}function xV(){if(VU)return UU;VU=1;var t=U$(),e=String,n=TypeError;return UU=function(r){if(t(r))return r;throw new n(e(r)+" is not an object")}}function TV(){if(GU)return OV;GU=1;var t=JH(),e=LU(),n=AV(),r=xV(),o=_U(),i=TypeError,u=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s="enumerable",c="configurable",l="writable";return OV.f=t?n?function(t,e,n){if(r(t),e=o(e),r(n),"function"==typeof t&&"prototype"===e&&"value"in n&&l in n&&!n[l]){var i=a(t,e);i&&i[l]&&(t[e]=n.value,n={configurable:c in n?n[c]:i[c],enumerable:s in n?n[s]:i[s],writable:!1})}return u(t,e,n)}:u:function(t,n,a){if(r(t),n=o(n),r(a),e)try{return u(t,n,a)}catch(t){}if("get"in a||"set"in a)throw new i("Accessors not supported");return"value"in a&&(t[n]=a.value),t},OV}function NV(){if(qU)return WU;qU=1;var t=JH(),e=TV(),n=L$();return WU=t?function(t,r,o){return e.f(t,r,n(1,o))}:function(t,e,n){return t[e]=n,t}}function PV(){if(YU)return KU;YU=1;var t=LH(),e=HH(),n=VH(),r=GH(),o=MU().f,i=function(){if(DU)return CU;DU=1;var t=MH(),e=GH(),n=/#|\.prototype\./,r=function(n,r){var s=i[o(n)];return s===a||s!==u&&(e(r)?t(r):!!r)},o=r.normalize=function(t){return String(t).replace(n,".").toLowerCase()},i=r.data={},u=r.NATIVE="N",a=r.POLYFILL="P";return CU=r}(),u=V$(),a=zU(),s=NV(),c=IU(),l=function(t){var n=function(r,o,i){if(this instanceof n){switch(arguments.length){case 0:return new t;case 1:return new t(r);case 2:return new t(r,o)}return new t(r,o,i)}return e(t,this,arguments)};return n.prototype=t.prototype,n};return KU=function(e,f){var d,p,h,v,g,y,m,b,E,w=e.target,S=e.global,C=e.stat,D=e.proto,O=S?t:C?t[w]:t[w]&&t[w].prototype,A=S?u:u[w]||s(u,w,{})[w],x=A.prototype;for(v in f)p=!(d=i(S?v:w+(C?".":"#")+v,e.forced))&&O&&c(O,v),y=A[v],p&&(m=e.dontCallGetSet?(E=o(O,v))&&E.value:O[v]),g=p&&m?m:f[v],(d||D||typeof y!=typeof g)&&(b=e.bind&&p?a(g,t):e.wrap&&p?l(g):D&&r(g)?n(g):g,(e.sham||g&&g.sham||y&&y.sham)&&s(b,"sham",!0),s(A,v,b),D&&(c(u,h=w+"Prototype")||s(u,h,{}),s(u[h],v,g),e.real&&x&&(d||!x[v])&&s(x,v,g)))}}function kV(){if(JU)return XU;JU=1;var t=UH();return XU=Array.isArray||function(e){return"Array"===t(e)}}function IV(){if(eV)return tV;eV=1;var t=function(){if(QU)return ZU;QU=1;var t=Math.ceil,e=Math.floor;return ZU=Math.trunc||function(n){var r=+n;return(r>0?e:t)(r)}}();return tV=function(e){var n=+e;return n!=n||0===n?0:t(n)}}function BV(){if(iV)return oV;iV=1;var t=function(){if(rV)return nV;rV=1;var t=IV(),e=Math.min;return nV=function(n){var r=t(n);return r>0?e(r,9007199254740991):0}}();return oV=function(e){return t(e.length)}}function FV(){if(fV)return lV;fV=1;var t={};return t[FU()("toStringTag")]="z",lV="[object z]"===String(t)}function RV(){if(pV)return dV;pV=1;var t=FV(),e=GH(),n=UH(),r=FU()("toStringTag"),o=Object,i="Arguments"===n(function(){return arguments}());return dV=t?n:function(t){var u,a,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(a=function(t,e){try{return t[e]}catch(t){}}(u=o(t),r))?a:i?n(u):"Object"===(s=n(u))&&e(u.callee)?"Arguments":s}}function _V(){if(yV)return gV;yV=1;var t=$H(),e=MH(),n=GH(),r=RV(),o=G$(),i=function(){if(vV)return hV;vV=1;var t=$H(),e=GH(),n=NU(),r=t(Function.toString);return e(n.inspectSource)||(n.inspectSource=function(t){return r(t)}),hV=n.inspectSource}(),u=function(){},a=o("Reflect","construct"),s=/^\s*(?:class|function)\b/,c=t(s.exec),l=!s.test(u),f=function(t){if(!n(t))return!1;try{return a(u,[],t),!0}catch(t){return!1}},d=function(t){if(!n(t))return!1;switch(r(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return l||!!c(s,i(t))}catch(t){return!0}};return d.sham=!0,gV=!a||e(function(){var t;return f(f.call)||!f(Object)||!f(function(){t=!0})||t})?d:f}function jV(){if(wV)return EV;wV=1;var t=function(){if(bV)return mV;bV=1;var t=kV(),e=_V(),n=U$(),r=FU()("species"),o=Array;return mV=function(i){var u;return t(i)&&(u=i.constructor,(e(u)&&(u===o||t(u.prototype))||n(u)&&null===(u=u[r]))&&(u=void 0)),void 0===u?o:u}}();return EV=function(e,n){return new(t(e))(0===n?0:n)}}var LV,MV,zV={},HV={};function $V(){if(MV)return LV;MV=1;var t=RV(),e=String;return LV=function(n){if("Symbol"===t(n))throw new TypeError("Cannot convert a Symbol value to a string");return e(n)}}var UV,VV,GV,WV,qV,KV,YV,XV,JV,ZV,QV,tG,eG,nG,rG,oG,iG,uG,aG,sG={};function cG(){if(WV)return GV;WV=1;var t=$$(),e=function(){if(VV)return UV;VV=1;var t=IV(),e=Math.max,n=Math.min;return UV=function(r,o){var i=t(r);return i<0?e(i+o,0):n(i,o)},UV}(),n=BV(),r=function(r){return function(o,i,u){var a=t(o),s=n(a);if(0===s)return!r&&-1;var c,l=e(u,s);if(r&&i!=i){for(;s>l;)if((c=a[l++])!=c)return!0}else for(;s>l;l++)if((r||l in a)&&a[l]===i)return r||l||0;return!r&&-1}};return GV={includes:r(!0),indexOf:r(!1)}}function lG(){return KV?qV:(KV=1,qV={})}function fG(){if(XV)return YV;XV=1;var t=$H(),e=IU(),n=$$(),r=cG().indexOf,o=lG(),i=t([].push);return YV=function(t,u){var a,s=n(t),c=0,l=[];for(a in s)!e(o,a)&&e(s,a)&&i(l,a);for(;u.length>c;)e(s,a=u[c++])&&(~r(l,a)||i(l,a));return l}}function dG(){return ZV?JV:(ZV=1,JV=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function pG(){if(tG)return QV;tG=1;var t=fG(),e=dG();return QV=Object.keys||function(n){return t(n,e)}}function hG(){if(eG)return sG;eG=1;var t=JH(),e=AV(),n=TV(),r=xV(),o=$$(),i=pG();return sG.f=t&&!e?Object.defineProperties:function(t,e){r(t);for(var u,a=o(e),s=i(e),c=s.length,l=0;c>l;)n.f(t,u=s[l++],a[u]);return t},sG}function vG(){if(iG)return oG;iG=1;var t=PU(),e=BU(),n=t("keys");return oG=function(t){return n[t]||(n[t]=e(t))}}function gG(){if(aG)return uG;aG=1;var t,e=xV(),n=hG(),r=dG(),o=lG(),i=rG?nG:(rG=1,nG=G$()("document","documentElement")),u=jU(),a="prototype",s="script",c=vG()("IE_PROTO"),l=function(){},f=function(t){return"<"+s+">"+t+"</"+s+">"},d=function(t){t.write(f("")),t.close();var e=t.parentWindow.Object;return t=null,e},p=function(){try{t=new ActiveXObject("htmlfile")}catch(t){}var e,n,o;p="undefined"!=typeof document?document.domain&&t?d(t):(n=u("iframe"),o="java"+s+":",n.style.display="none",i.appendChild(n),n.src=String(o),(e=n.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F):d(t);for(var c=r.length;c--;)delete p[a][r[c]];return p()};return o[c]=!0,uG=Object.create||function(t,r){var o;return null!==t?(l[a]=e(t),o=new l,l[a]=null,o[c]=t):o=p(),void 0===r?o:n.f(o,r)}}var yG,mG={};function bG(){if(yG)return mG;yG=1;var t=fG(),e=dG().concat("length","prototype");return mG.f=Object.getOwnPropertyNames||function(n){return t(n,e)},mG}var EG,wG,SG,CG={};function DG(){return wG?EG:(wG=1,EG=$H()([].slice))}var OG,AG,xG,TG,NG,PG={};function kG(){return OG||(OG=1,PG.f=Object.getOwnPropertySymbols),PG}function IG(){if(xG)return AG;xG=1;var t=NV();return AG=function(e,n,r,o){return o&&o.enumerable?e[n]=r:t(e,n,r),e}}var BG,FG,RG,_G,jG,LG,MG,zG,HG,$G,UG,VG,GG,WG,qG,KG,YG={};function XG(){if(BG)return YG;BG=1;var t=FU();return YG.f=t,YG}function JG(){if(RG)return FG;RG=1;var t=V$(),e=IU(),n=XG(),r=TV().f;return FG=function(o){var i=t.Symbol||(t.Symbol={});e(i,o)||r(i,o,{value:n.f(o)})}}function ZG(){if(jG)return _G;jG=1;var t=ZH(),e=G$(),n=FU(),r=IG();return _G=function(){var o=e("Symbol"),i=o&&o.prototype,u=i&&i.valueOf,a=n("toPrimitive");i&&!i[a]&&r(i,a,function(e){return t(u,this)},{arity:1})}}function QG(){if(HG)return zG;HG=1;var t=FV(),e=TV().f,n=NV(),r=IU(),o=function(){if(MG)return LG;MG=1;var t=FV(),e=RV();return LG=t?{}.toString:function(){return"[object "+e(this)+"]"}}(),i=FU()("toStringTag");return zG=function(u,a,s,c){var l=s?u:u&&u.prototype;l&&(r(l,i)||e(l,i,{configurable:!0,value:a}),c&&!t&&n(l,"toString",o))}}function tW(){if(GG)return VG;GG=1;var t,e,n,r=function(){if(UG)return $G;UG=1;var t=LH(),e=GH(),n=t.WeakMap;return $G=e(n)&&/native code/.test(String(n))}(),o=LH(),i=U$(),u=NV(),a=IU(),s=NU(),c=vG(),l=lG(),f="Object already initialized",d=o.TypeError,p=o.WeakMap;if(r||s.state){var h=s.state||(s.state=new p);h.get=h.get,h.has=h.has,h.set=h.set,t=function(t,e){if(h.has(t))throw new d(f);return e.facade=t,h.set(t,e),e},e=function(t){return h.get(t)||{}},n=function(t){return h.has(t)}}else{var v=c("state");l[v]=!0,t=function(t,e){if(a(t,v))throw new d(f);return e.facade=t,u(t,v,e),e},e=function(t){return a(t,v)?t[v]:{}},n=function(t){return a(t,v)}}return VG={set:t,get:e,has:n,enforce:function(r){return n(r)?e(r):t(r,{})},getterFor:function(t){return function(n){var r;if(!i(n)||(r=e(n)).type!==t)throw new d("Incompatible receiver, "+t+" required");return r}}}}var eW,nW,rW,oW={};function iW(){return nW?eW:(nW=1,eW=K$()&&!!Symbol.for&&!!Symbol.keyFor)}var uW,aW,sW,cW,lW={},fW={};var dW,pW,hW={};function vW(){return pW||(pW=1,function(){if(KG)return HV;KG=1;var t=PV(),e=LH(),n=ZH(),r=$H(),o=TU(),i=JH(),u=K$(),a=MH(),s=IU(),c=W$(),l=xV(),f=$$(),d=_U(),p=$V(),h=L$(),v=gG(),g=pG(),y=bG(),m=function(){if(SG)return CG;SG=1;var t=UH(),e=$$(),n=bG().f,r=DG(),o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];return CG.f=function(i){return o&&"Window"===t(i)?function(t){try{return n(t)}catch(t){return r(o)}}(i):n(e(i))},CG}(),b=kG(),E=MU(),w=TV(),S=hG(),C=j$(),D=IG(),O=function(){if(NG)return TG;NG=1;var t=TV();return TG=function(e,n,r){return t.f(e,n,r)}}(),A=PU(),x=vG(),T=lG(),N=BU(),P=FU(),k=XG(),I=JG(),B=ZG(),F=QG(),R=tW(),_=function(){if(qG)return WG;qG=1;var t=zU(),e=$H(),n=M$(),r=kU(),o=BV(),i=jV(),u=e([].push),a=function(e){var a=1===e,s=2===e,c=3===e,l=4===e,f=6===e,d=7===e,p=5===e||f;return function(h,v,g,y){for(var m,b,E=r(h),w=n(E),S=o(w),C=t(v,g),D=0,O=y||i,A=a?O(h,S):s||d?O(h,0):void 0;S>D;D++)if((p||D in w)&&(b=C(m=w[D],D,E),e))if(a)A[D]=b;else if(b)switch(e){case 3:return!0;case 5:return m;case 6:return D;case 2:u(A,m)}else switch(e){case 4:return!1;case 7:u(A,m)}return f?-1:c||l?l:A}};return WG={forEach:a(0),map:a(1),filter:a(2),some:a(3),every:a(4),find:a(5),findIndex:a(6),filterReject:a(7)}}().forEach,j=x("hidden"),L="Symbol",M="prototype",z=R.set,H=R.getterFor(L),$=Object[M],U=e.Symbol,V=U&&U[M],G=e.RangeError,W=e.TypeError,q=e.QObject,K=E.f,Y=w.f,X=m.f,J=C.f,Z=r([].push),Q=A("symbols"),tt=A("op-symbols"),et=A("wks"),nt=!q||!q[M]||!q[M].findChild,rt=function(t,e,n){var r=K($,e);r&&delete $[e],Y(t,e,n),r&&t!==$&&Y($,e,r)},ot=i&&a(function(){return 7!==v(Y({},"a",{get:function(){return Y(this,"a",{value:7}).a}})).a})?rt:Y,it=function(t,e){var n=Q[t]=v(V);return z(n,{type:L,tag:t,description:e}),i||(n.description=e),n},ut=function(t,e,n){t===$&&ut(tt,e,n),l(t);var r=d(e);return l(n),s(Q,r)?(n.enumerable?(s(t,j)&&t[j][r]&&(t[j][r]=!1),n=v(n,{enumerable:h(0,!1)})):(s(t,j)||Y(t,j,h(1,v(null))),t[j][r]=!0),ot(t,r,n)):Y(t,r,n)},at=function(t,e){l(t);var r=f(e),o=g(r).concat(ft(r));return _(o,function(e){i&&!n(st,r,e)||ut(t,e,r[e])}),t},st=function(t){var e=d(t),r=n(J,this,e);return!(this===$&&s(Q,e)&&!s(tt,e))&&(!(r||!s(this,e)||!s(Q,e)||s(this,j)&&this[j][e])||r)},ct=function(t,e){var n=f(t),r=d(e);if(n!==$||!s(Q,r)||s(tt,r)){var o=K(n,r);return!o||!s(Q,r)||s(n,j)&&n[j][r]||(o.enumerable=!0),o}},lt=function(t){var e=X(f(t)),n=[];return _(e,function(t){s(Q,t)||s(T,t)||Z(n,t)}),n},ft=function(t){var e=t===$,n=X(e?tt:f(t)),r=[];return _(n,function(t){!s(Q,t)||e&&!s($,t)||Z(r,Q[t])}),r};u||(U=function(){if(c(V,this))throw new W("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?p(arguments[0]):void 0,r=N(t),o=function(t){var i=void 0===this?e:this;i===$&&n(o,tt,t),s(i,j)&&s(i[j],r)&&(i[j][r]=!1);var u=h(1,t);try{ot(i,r,u)}catch(t){if(!(t instanceof G))throw t;rt(i,r,u)}};return i&&nt&&ot($,r,{configurable:!0,set:o}),it(r,t)},D(V=U[M],"toString",function(){return H(this).tag}),D(U,"withoutSetter",function(t){return it(N(t),t)}),C.f=st,w.f=ut,S.f=at,E.f=ct,y.f=m.f=lt,b.f=ft,k.f=function(t){return it(P(t),t)},i&&(O(V,"description",{configurable:!0,get:function(){return H(this).description}}),o||D($,"propertyIsEnumerable",st,{unsafe:!0}))),t({global:!0,constructor:!0,wrap:!0,forced:!u,sham:!u},{Symbol:U}),_(g(et),function(t){I(t)}),t({target:L,stat:!0,forced:!u},{useSetter:function(){nt=!0},useSimple:function(){nt=!1}}),t({target:"Object",stat:!0,forced:!u,sham:!i},{create:function(t,e){return void 0===e?v(t):at(v(t),e)},defineProperty:ut,defineProperties:at,getOwnPropertyDescriptor:ct}),t({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:lt}),B(),F(U,L),T[j]=!0}(),function(){if(rW)return oW;rW=1;var t=PV(),e=G$(),n=IU(),r=$V(),o=PU(),i=iW(),u=o("string-to-symbol-registry"),a=o("symbol-to-string-registry");t({target:"Symbol",stat:!0,forced:!i},{for:function(t){var o=r(t);if(n(u,o))return u[o];var i=e("Symbol")(o);return u[o]=i,a[i]=o,i}})}(),function(){if(uW)return lW;uW=1;var t=PV(),e=IU(),n=X$(),r=J$(),o=PU(),i=iW(),u=o("symbol-to-string-registry");t({target:"Symbol",stat:!0,forced:!i},{keyFor:function(t){if(!n(t))throw new TypeError(r(t)+" is not a symbol");if(e(u,t))return u[t]}})}(),function(){if(cW)return fW;cW=1;var t=PV(),e=G$(),n=HH(),r=ZH(),o=$H(),i=MH(),u=GH(),a=X$(),s=DG(),c=function(){if(sW)return aW;sW=1;var t=$H(),e=kV(),n=GH(),r=UH(),o=$V(),i=t([].push);return aW=function(t){if(n(t))return t;if(e(t)){for(var u=t.length,a=[],s=0;s<u;s++){var c=t[s];"string"==typeof c?i(a,c):"number"!=typeof c&&"Number"!==r(c)&&"String"!==r(c)||i(a,o(c))}var l=a.length,f=!0;return function(t,n){if(f)return f=!1,n;if(e(this))return n;for(var r=0;r<l;r++)if(a[r]===t)return n}}}}(),l=K$(),f=String,d=e("JSON","stringify"),p=o(/./.exec),h=o("".charAt),v=o("".charCodeAt),g=o("".replace),y=o(1.1.toString),m=/[\uD800-\uDFFF]/g,b=/^[\uD800-\uDBFF]$/,E=/^[\uDC00-\uDFFF]$/,w=!l||i(function(){var t=e("Symbol")("stringify detection");return"[null]"!==d([t])||"{}"!==d({a:t})||"{}"!==d(Object(t))}),S=i(function(){return'"\\udf06\\ud834"'!==d("\udf06\ud834")||'"\\udead"'!==d("\udead")}),C=function(t,e){var o=s(arguments),i=c(e);if(u(i)||void 0!==t&&!a(t))return o[1]=function(t,e){if(u(i)&&(e=r(i,this,f(t),e)),!a(e))return e},n(d,null,o)},D=function(t,e,n){var r=h(n,e-1),o=h(n,e+1);return p(b,t)&&!p(E,o)||p(E,t)&&!p(b,r)?"\\u"+y(v(t,0),16):t};d&&t({target:"JSON",stat:!0,arity:3,forced:w||S},{stringify:function(t,e,r){var o=s(arguments),i=n(w?C:d,null,o);return S&&"string"==typeof i?g(i,m,D):i}})}(),function(){if(dW)return hW;dW=1;var t=PV(),e=K$(),n=MH(),r=kG(),o=kU();t({target:"Object",stat:!0,forced:!e||n(function(){r.f(1)})},{getOwnPropertySymbols:function(t){var e=r.f;return e?e(o(t)):[]}})}()),zV}var gW,yW,mW={};function bW(){return gW||(gW=1,JG()("asyncDispose")),mW}var EW,wW,SW,CW={};function DW(){return EW||(EW=1,JG()("dispose")),CW}var OW,AW,xW,TW,NW,PW,kW,IW={};function BW(){return OW||(OW=1,JG()("iterator")),IW}var FW,RW,_W,jW,LW,MW,zW={},HW={},$W={};function UW(){return MW?LW:(MW=1,function(){if(DV)return jH;DV=1;var t=PV(),e=MH(),n=kV(),r=U$(),o=kU(),i=BV(),u=function(){if(aV)return uV;aV=1;var t=TypeError;return uV=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}}(),a=function(){if(cV)return sV;cV=1;var t=JH(),e=TV(),n=L$();return sV=function(r,o,i){t?e.f(r,o,n(0,i)):r[o]=i}}(),s=jV(),c=function(){if(CV)return SV;CV=1;var t=MH(),e=FU(),n=q$(),r=e("species");return SV=function(e){return n>=51||!t(function(){var t=[];return(t.constructor={})[r]=function(){return{foo:1}},1!==t[e](Boolean).foo})}}(),l=FU(),f=q$(),d=l("isConcatSpreadable"),p=f>=51||!e(function(){var t=[];return t[d]=!1,t.concat()[0]!==t}),h=function(t){if(!r(t))return!1;var e=t[d];return void 0!==e?!!e:n(t)};t({target:"Array",proto:!0,arity:1,forced:!p||!c("concat")},{concat:function(t){var e,n,r,c,l,f=o(this),d=s(f,0),p=0;for(e=-1,r=arguments.length;e<r;e++)if(h(l=-1===e?f:arguments[e]))for(c=i(l),u(p+c),n=0;n<c;n++,p++)n in l&&a(d,p,l[n]);else u(p+1),a(d,p++,l);return d.length=p,d}})}(),vW(),bW(),yW||(yW=1,JG()("asyncIterator")),DW(),wW||(wW=1,JG()("hasInstance")),SW||(SW=1,JG()("isConcatSpreadable")),BW(),AW||(AW=1,JG()("match")),xW||(xW=1,JG()("matchAll")),TW||(TW=1,JG()("replace")),NW||(NW=1,JG()("search")),PW||(PW=1,JG()("species")),kW||(kW=1,JG()("split")),function(){if(FW)return zW;FW=1;var t=JG(),e=ZG();t("toPrimitive"),e()}(),function(){if(RW)return HW;RW=1;var t=G$(),e=JG(),n=QG();e("toStringTag"),n(t("Symbol"),"Symbol")}(),_W||(_W=1,JG()("unscopables")),function(){if(jW)return $W;jW=1;var t=LH();QG()(t.JSON,"JSON",!0)}(),LW=V$().Symbol)}var VW,GW,WW,qW,KW,YW,XW,JW,ZW,QW,tq,eq,nq,rq,oq,iq,uq,aq,sq,cq,lq,fq,dq,pq,hq,vq,gq,yq,mq,bq,Eq,wq,Sq,Cq={};function Dq(){return qW?WW:(qW=1,WW={})}function Oq(){if(QW)return ZW;QW=1;var t=IU(),e=GH(),n=kU(),r=vG(),o=JW?XW:(JW=1,XW=!MH()(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),i=r("IE_PROTO"),u=Object,a=u.prototype;return ZW=o?u.getPrototypeOf:function(r){var o=n(r);if(t(o,i))return o[i];var s=o.constructor;return e(s)&&o instanceof s?s.prototype:o instanceof u?a:null}}function Aq(){if(eq)return tq;eq=1;var t,e,n,r=MH(),o=GH(),i=U$(),u=gG(),a=Oq(),s=IG(),c=FU(),l=TU(),f=c("iterator"),d=!1;return[].keys&&("next"in(n=[].keys())?(e=a(a(n)))!==Object.prototype&&(t=e):d=!0),!i(t)||r(function(){var e={};return t[f].call(e)!==e})?t={}:l&&(t=u(t)),o(t[f])||s(t,f,function(){return this}),tq={IteratorPrototype:t,BUGGY_SAFARI_ITERATORS:d}}function xq(){if(cq)return sq;cq=1;var t=function(){if(aq)return uq;aq=1;var t=U$();return uq=function(e){return t(e)||null===e}}(),e=String,n=TypeError;return sq=function(r){if(t(r))return r;throw new n("Can't set "+e(r)+" as a prototype")}}function Tq(){if(fq)return lq;fq=1;var t=function(){if(iq)return oq;iq=1;var t=$H(),e=Z$();return oq=function(n,r,o){try{return t(e(Object.getOwnPropertyDescriptor(n,r)[o]))}catch(t){}}}(),e=U$(),n=H$(),r=xq();return lq=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 n(t),r(u),e(t)?(i?o(t,u):t.__proto__=u,t):t}}():void 0)}function Nq(){if(pq)return dq;pq=1;var t=PV(),e=ZH(),n=TU(),r=function(){if(YW)return KW;YW=1;var t=JH(),e=IU(),n=Function.prototype,r=t&&Object.getOwnPropertyDescriptor,o=e(n,"name"),i=o&&"something"===function(){}.name,u=o&&(!t||t&&r(n,"name").configurable);return KW={EXISTS:o,PROPER:i,CONFIGURABLE:u}}(),o=GH(),i=function(){if(rq)return nq;rq=1;var t=Aq().IteratorPrototype,e=gG(),n=L$(),r=QG(),o=Dq(),i=function(){return this};return nq=function(u,a,s,c){var l=a+" Iterator";return u.prototype=e(t,{next:n(+!c,s)}),r(u,l,!1,!0),o[l]=i,u}}(),u=Oq(),a=Tq(),s=QG(),c=NV(),l=IG(),f=FU(),d=Dq(),p=Aq(),h=r.PROPER,v=r.CONFIGURABLE,g=p.IteratorPrototype,y=p.BUGGY_SAFARI_ITERATORS,m=f("iterator"),b="keys",E="values",w="entries",S=function(){return this};return dq=function(r,f,p,C,D,O,A){i(p,f,C);var x,T,N,P=function(t){if(t===D&&R)return R;if(!y&&t&&t in B)return B[t];switch(t){case b:case E:case w:return function(){return new p(this,t)}}return function(){return new p(this)}},k=f+" Iterator",I=!1,B=r.prototype,F=B[m]||B["@@iterator"]||D&&B[D],R=!y&&F||P(D),_="Array"===f&&B.entries||F;if(_&&(x=u(_.call(new r)))!==Object.prototype&&x.next&&(n||u(x)===g||(a?a(x,g):o(x[m])||l(x,m,S)),s(x,k,!0,!0),n&&(d[k]=S)),h&&D===E&&F&&F.name!==E&&(!n&&v?c(B,"name",E):(I=!0,R=function(){return e(F,this)})),D)if(T={values:P(E),keys:O?R:P(b),entries:P(w)},A)for(N in T)(y||I||!(N in B))&&l(B,N,T[N]);else t({target:f,proto:!0,forced:y||I},T);return n&&!A||B[m]===R||l(B,m,R,{name:D}),d[f]=R,T}}function Pq(){return vq?hq:(vq=1,hq=function(t,e){return{value:t,done:e}})}function kq(){if(yq)return gq;yq=1;var t=$$(),e=GW?VW:(GW=1,VW=function(){}),n=Dq(),r=tW(),o=TV().f,i=Nq(),u=Pq(),a=TU(),s=JH(),c="Array Iterator",l=r.set,f=r.getterFor(c);gq=i(Array,"Array",function(e,n){l(this,{type:c,target:t(e),index:0,kind:n})},function(){var t=f(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=null,u(void 0,!0);switch(t.kind){case"keys":return u(n,!1);case"values":return u(e[n],!1)}return u([n,e[n]],!1)},"values");var d=n.Arguments=n.Array;if(e("keys"),e("values"),e("entries"),!a&&s&&"values"!==d.name)try{o(d,"name",{value:"values"})}catch(t){}return gq}function Iq(){if(Eq)return Cq;Eq=1,kq();var t=bq?mq:(bq=1,mq={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}),e=LH(),n=QG(),r=Dq();for(var o in t)n(e[o],o),r[o]=r.Array;return Cq}var Bq,Fq,Rq,_q,jq,Lq,Mq,zq,Hq,$q,Uq,Vq,Gq,Wq,qq,Kq,Yq,Xq,Jq,Zq,Qq,tK,eK,nK,rK={};function oK(){if(Lq)return jq;Lq=1;var t=function(){if(Sq)return wq;Sq=1;var t=UW();return Iq(),wq=t}();return function(){if(Bq)return rK;Bq=1;var t=FU(),e=TV().f,n=t("metadata"),r=Function.prototype;void 0===r[n]&&e(r,n,{value:null})}(),Fq||(Fq=1,bW()),Rq||(Rq=1,DW()),_q||(_q=1,JG()("metadata")),jq=t}function iK(){if(zq)return Mq;zq=1;var t=G$(),e=$H(),n=t("Symbol"),r=n.keyFor,o=e(n.prototype.valueOf);return Mq=n.isRegisteredSymbol||function(t){try{return void 0!==r(o(t))}catch(t){return!1}}}function uK(){if(Uq)return $q;Uq=1;for(var t=PU(),e=G$(),n=$H(),r=X$(),o=FU(),i=e("Symbol"),u=i.isWellKnownSymbol,a=e("Object","getOwnPropertyNames"),s=n(i.prototype.valueOf),c=t("wks"),l=0,f=a(i),d=f.length;l<d;l++)try{var p=f[l];r(i[p])&&o(p)}catch(t){}return $q=function(t){if(u&&u(t))return!0;try{for(var e=s(t),n=0,r=a(c),o=r.length;n<o;n++)if(c[r[n]]==e)return!0}catch(t){}return!1},$q}var aK,sK,cK,lK,fK,dK,pK,hK,vK,gK,yK,mK,bK,EK=QB(nK?eK:(nK=1,eK=function(){if(tK)return Qq;tK=1;var t=oK();return Hq||(Hq=1,PV()({target:"Symbol",stat:!0},{isRegisteredSymbol:iK()})),Vq||(Vq=1,PV()({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:uK()})),Gq||(Gq=1,JG()("customMatcher")),Wq||(Wq=1,JG()("observable")),qq||(qq=1,PV()({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:iK()})),Kq||(Kq=1,PV()({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:uK()})),Yq||(Yq=1,JG()("matcher")),Xq||(Xq=1,JG()("metadataKey")),Jq||(Jq=1,JG()("patternMatch")),Zq||(Zq=1,JG()("replaceAll")),Qq=t}())),wK={};function SK(){return fK?lK:(fK=1,kq(),function(){if(cK)return wK;cK=1;var t=function(){if(sK)return aK;sK=1;var t=$H(),e=IV(),n=$V(),r=H$(),o=t("".charAt),i=t("".charCodeAt),u=t("".slice),a=function(t){return function(a,s){var c,l,f=n(r(a)),d=e(s),p=f.length;return d<0||d>=p?t?"":void 0:(c=i(f,d))<55296||c>56319||d+1===p||(l=i(f,d+1))<56320||l>57343?t?o(f,d):c:t?u(f,d,d+2):l-56320+(c-55296<<10)+65536}};return aK={codeAt:a(!1),charAt:a(!0)}}().charAt,e=$V(),n=tW(),r=Nq(),o=Pq(),i="String Iterator",u=n.set,a=n.getterFor(i);r(String,"String",function(t){u(this,{type:i,string:e(t),index:0})},function(){var e,n=a(this),r=n.string,i=n.index;return i>=r.length?o(void 0,!0):(e=t(r,i),n.index+=e.length,o(e,!1))})}(),BW(),lK=XG().f("iterator"))}function CK(){return vK?hK:(vK=1,hK=function(){if(pK)return dK;pK=1;var t=SK();return Iq(),dK=t}())}var DK=QB(bK?mK:(bK=1,mK=yK?gK:(yK=1,gK=CK())));function OK(t){return OK="function"==typeof EK&&"symbol"==typeof DK?function(t){return typeof t}:function(t){return t&&"function"==typeof EK&&t.constructor===EK&&t!==EK.prototype?"symbol":typeof t},OK(t)}var AK,xK,TK,NK={};!function(){if(TK)return NK;TK=1;var t=hF(),e=__().EXISTS,n=aR(),r=function(){if(xK)return AK;xK=1;var t=H_(),e=m_();return AK=function(n,r,o){return o.get&&t(o.get,r,{getter:!0}),o.set&&t(o.set,r,{setter:!0}),e.f(n,r,o)}}(),o=Function.prototype,i=n(o.toString),u=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,a=n(u.exec);t&&!e&&r(o,"name",{configurable:!0,get:function(){try{return a(u,i(this))[1]}catch(t){return""}}})}();var PK,kK,IK,BK,FK,RK,_K,jK=function(){function t(){this.tag="select",this.width=80}return t.prototype.isActive=function(t){return!1},t.prototype.getValue=function(t){var e=this.mark,n=yp.Editor.marks(t);return n&&n[e]?n[e]:""},t.prototype.isDisabled=function(t){return null==t.selection||!!dL(yp.Editor.nodes(t,{match:function(e){return"pre"===eP.getNodeType(e)||!!yp.Editor.isVoid(t,e)},universal:!0}),1)[0]},t.prototype.exec=function(t,e){var n=this.mark;e?t.addMark(n,e):t.removeMark(n)},t}(),LK=function(t){function e(){var e=t.apply(this,pL([],dL(arguments),!1))||this;return e.title=dI("fontFamily.title"),e.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M956.788364 152.110545h-24.110546l23.924364 9.029819 0.186182 121.018181h-65.070546l-86.574545-130.048H566.551273v650.14691l130.048 64.977454v65.163636h-390.050909v-65.163636l129.954909-64.977454V152.110545H198.283636L111.429818 282.065455H46.545455V69.259636C46.545455 33.792 82.664727 22.062545 98.955636 22.062545h812.683637c23.738182 0 45.056 15.173818 45.056 41.053091V169.425455v-17.221819z"></path></svg>',e.mark="fontFamily",e.selectPanelWidth=150,e}return aL(e,t),e.prototype.getOptions=function(t){var e=[],n=t.getMenuConfig(this.mark).fontFamilyList,r=void 0===n?[]:n;e.push({text:dI("fontFamily.default"),value:""}),r.forEach(function(t){if("string"==typeof t)e.push({text:t,value:t,styleForRenderMenuList:{"font-family":t}});else if("object"===OK(t)){var n=t.name,r=t.value;e.push({text:n,value:r,styleForRenderMenuList:{"font-family":r}})}});var o=this.getValue(t),i=!1;return e.forEach(function(t){t.value===o?(i=!0,t.selected=!0):t.selected=void 0}),i||"string"!=typeof o||e.push({text:o,value:o,selected:!0}),e},e}(jK),MK=function(t){function e(){var e=t.apply(this,pL([],dL(arguments),!1))||this;return e.title=dI("fontSize.title"),e.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',e.mark="fontSize",e}return aL(e,t),e.prototype.getOptions=function(t){var e=[],n=t.getMenuConfig(this.mark).fontSizeList,r=void 0===n?[]:n;e.push({text:dI("fontSize.default"),value:""}),r.forEach(function(t){if("string"==typeof t)e.push({text:t,value:t});else if("object"===OK(t)){var n=t.name,r=t.value;e.push({text:n,value:r})}});var o=this.getValue(t),i=!1;return e.forEach(function(t){t.value===o?(i=!0,t.selected=!0):t.selected=void 0}),i||"string"!=typeof o||e.push({text:o,value:o,selected:!0}),e},e}(jK),zK={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},HK={renderStyle:function(t,e){var n=t,r=n.fontSize,o=n.fontFamily,i=e;return r&&pH(i,{fontSize:r}),o&&pH(i,{fontFamily:o}),i},styleToHtml:function(t,e){if(!yp.Text.isText(t))return e;var n,r=t,o=r.fontSize,i=r.fontFamily;return o||i?((IM(e)||"span"!==FM(n=Rp(e)))&&(n=Rp("<span>".concat(e,"</span>"))),o&&n.css("font-size",o),i&&n.css("font-family",i),BM(n)):e},preParseHtml:[{selector:"font",preParseHtml:function(t){var e=Rp(t);if("font"!==FM(e))return t;var n=e.attr("size")||"";n&&(e.removeAttr("size"),e.css("font-size",zK[n]));var r=e.attr("face")||"";return r&&(e.removeAttr("face"),e.css("font-family",r)),e[0]}}],parseStyleHtml:function(t,e,n){var r=Rp(t);if(!yp.Text.isText(e))return e;var o=e,i=RM(r,"font-size");i&&(o.fontSize=i);var u=RM(r,"font-family").replace(/"/g,"");return u&&(o.fontFamily=u),o},menus:[{key:"fontSize",factory:function(){return new MK},config:{fontSizeList:["12px",{name:"13px",value:"13px"},"14px","15px","16px","19px",{name:"22px",value:"22px"},"24px","29px","32px","40px","48px"]}},{key:"fontFamily",factory:function(){return new LK},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},$K={};!function(){if(_K)return $K;_K=1;var t=_j(),e=function(){if(RK)return FK;RK=1;var t=hF(),e=pF(),n=aR(),r=function(){if(BK)return IK;BK=1;var t=e_(),e=pR(),n=t_(),r=L_(),o=function(){if(kK)return PK;kK=1;var t=pF();return PK=!t(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})}(),i=r("IE_PROTO"),u=Object,a=u.prototype;return IK=o?u.getPrototypeOf:function(r){var o=n(r);if(t(o,i))return o[i];var s=o.constructor;return e(s)&&o instanceof s?s.prototype:o instanceof u?a:null}}(),o=nL(),i=dR(),u=n(iR().f),a=n([].push),s=t&&e(function(){var t=Object.create(null);return t[2]=2,!u(t,2)}),c=function(e){return function(n){for(var c,l=i(n),f=o(l),d=s&&null===r(l),p=f.length,h=0,v=[];p>h;)c=f[h++],t&&!(d?c in l:u(l,c))||a(v,e?[c,l[c]]:l[c]);return v}};return FK={entries:c(!0),values:c(!1)}}().entries;t({target:"Object",stat:!0},{entries:function(t){return e(t)}})}();var UK,VK={};!function(){if(UK)return VK;UK=1;var t=_j(),e=t_(),n=nL();t({target:"Object",stat:!0,forced:pF()(function(){n(1)})},{keys:function(t){return n(e(t))}})}();var GK=function(){function t(){this.title=dI("formatPainter.title"),this.iconSvg='<svg viewBox="0 0 24 24"><path d="M8 19.997v-5h2v5h9v-7H5v7zm-4-9h16v-3h-6v-4h-4v4H4zm-1 10v-8H2v-6a1 1 0 0 1 1-1h5v-3a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v3h5a1 1 0 0 1 1 1v6h-1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1"/></svg>',this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(e){return t.attrs.isSelect},t.prototype.isDisabled=function(t){return!1},t.prototype.setFormatHtml=function(e){var n,r;if(e.getSelectionText().length){if(t.attrs.formatStyle){!function(t){var e=yp.Editor.marks(t);e&&Object.keys(e).forEach(function(e){t.removeMark(e)})}(e);try{for(var o=fL(Object.entries(t.attrs.formatStyle)),i=o.next();!i.done;i=o.next()){var u=dL(i.value,2),a=u[0],s=u[1];e.addMark(a,s)}}catch(t){n={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}t.attrs.formatStyle=null,t.attrs.isSelect=!1}},t.prototype.exec=function(e){t.attrs.isSelect?(t.attrs.isSelect=!1,t.attrs.formatStyle=null):e.getSelectionText().length&&(t.attrs.formatStyle=yp.Editor.marks(e),t.attrs.isSelect=!0),e.blur(),e.focus()},t.attrs={isSelect:!1,formatStyle:null},t}(),WK={menus:[{key:"formatPainter",factory:function(){return new GK}}],editorPlugin:function(t){var e=new GK,n=t.onChange,r=t,o=function(){e.setFormatHtml(r),document.removeEventListener("mouseup",o)};return r.onChange=function(){n(),GK.attrs.isSelect&&(document.removeEventListener("mouseup",o),document.addEventListener("mouseup",o))},r}},qK=function(){function t(){this.title=dI("fullScreen.title"),this.iconSvg=BL,this.tag="button",this.alwaysEnable=!0}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return t.isFullScreen},t.prototype.isDisabled=function(t){return!1},t.prototype.getIcon=function(t){return t.isFullScreen?BL:'<svg t="1723361745825" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8705" width="200" height="200"><path d="M703.926857 362.642286a42.642286 42.642286 0 0 1-42.642286-42.642286V128a42.642286 42.642286 0 1 1 85.357715 0v149.357714h149.357714c21.211429 0 38.765714 15.433143 42.057143 35.693715l0.585143 6.948571a42.642286 42.642286 0 0 1-42.642286 42.642286H703.926857zM703.926857 938.642286a42.642286 42.642286 0 0 1-42.642286-42.642286V704c0-23.552 19.090286-42.642286 42.642286-42.642286h192.073143a42.642286 42.642286 0 1 1 0 85.284572l-149.357714 0.073143v149.284571c0 21.211429-15.506286 38.765714-35.84 42.130286l-6.875429 0.512zM319.853714 938.642286a42.642286 42.642286 0 0 1-42.642285-42.642286v-149.284571H127.853714a42.642286 42.642286 0 0 1-42.130285-35.84l-0.585143-6.875429c0-23.552 19.163429-42.642286 42.715428-42.642286h192c23.552 0 42.715429 19.017143 42.715429 42.642286v192a42.642286 42.642286 0 0 1-42.715429 42.642286zM127.853714 362.642286a42.642286 42.642286 0 1 1 0-85.284572H277.211429V128c0-21.211429 15.433143-38.765714 35.766857-42.130286l6.875428-0.512c23.552 0 42.715429 19.017143 42.715429 42.642286v192a42.642286 42.642286 0 0 1-42.715429 42.642286H127.853714z" fill="#333333" p-id="8706"></path></svg>'},t.prototype.getTitle=function(t){return t.isFullScreen?dI("fullScreen.title"):dI("fullScreen.cancelTitle")},t.prototype.exec=function(t,e){t.isFullScreen?t.unFullScreen():t.fullScreen()},t}(),KK={menus:[{key:"fullScreen",factory:function(){return new qK}}]};function YK(t){return function(e,n){return"<h".concat(t,">").concat(n,"</h").concat(t,">")}}var XK,JK={type:"header1",elemToHtml:YK(1)},ZK={type:"header2",elemToHtml:YK(2)},QK={type:"header3",elemToHtml:YK(3)},tY={type:"header4",elemToHtml:YK(4)},eY={type:"header5",elemToHtml:YK(5)},nY={type:"header6",elemToHtml:YK(6)},rY={};function oY(t){var e=dL(yp.Editor.nodes(t,{match:function(t){return eP.getNodeType(t).startsWith("header")},universal:!0}),1),n=e[0];if(null==n)return"paragraph";var r=dL(n,1)[0];return eP.getNodeType(r)}function iY(t){return null==t.selection||!dL(yp.Editor.nodes(t,{match:function(t){var e=eP.getNodeType(t);return"paragraph"===e||!!e.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function uY(t,e){e&&yp.Transforms.setNodes(t,{type:e})}!function(){if(XK)return rY;XK=1;var t,e=_j(),n=jL(),r=a_().f,o=cj(),i=Mj(),u=pz(),a=fR(),s=hz(),c=XR(),l=n("".slice),f=Math.min,d=s("startsWith");e({target:"String",proto:!0,forced:!(!c&&!d&&(t=r(String.prototype,"startsWith"),t&&!t.writable)||d)},{startsWith:function(t){var e=i(a(this));u(t);var n=o(f(arguments.length>1?arguments[1]:void 0,e.length)),r=i(t);return l(e,n,n+r.length)===r}})}();var aY=function(){function t(){this.tag="button"}return t.prototype.getValue=function(t){return oY(t)},t.prototype.isActive=function(t){return this.getValue(t)===this.type},t.prototype.isDisabled=function(t){return iY(t)},t.prototype.exec=function(t,e){var n=this.type;uY(t,e===n?"paragraph":n)},t}(),sY=function(t){function e(){var e=t.apply(this,pL([],dL(arguments),!1))||this;return e.title="H1",e.type="header1",e}return aL(e,t),e}(aY),cY=function(t){function e(){var e=t.apply(this,pL([],dL(arguments),!1))||this;return e.title="H2",e.type="header2",e}return aL(e,t),e}(aY),lY=function(t){function e(){var e=t.apply(this,pL([],dL(arguments),!1))||this;return e.title="H3",e.type="header3",e}return aL(e,t),e}(aY),fY=function(t){function e(){var e=t.apply(this,pL([],dL(arguments),!1))||this;return e.title="H4",e.type="header4",e}return aL(e,t),e}(aY),dY=function(t){function e(){var e=t.apply(this,pL([],dL(arguments),!1))||this;return e.title="H5",e.type="header5",e}return aL(e,t),e}(aY),pY=function(t){function e(){var e=t.apply(this,pL([],dL(arguments),!1))||this;return e.title="H6",e.type="header6",e}return aL(e,t),e}(aY),hY=function(){function t(){this.title=dI("header.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M960 960c-51.2 0-102.4-3.2-153.6-3.2-51.2 0-99.2 3.2-150.4 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 57.6-28.8 86.4-48 19.2-12.8 19.2-60.8 19.2-80v-224-19.2c-9.6-3.2-19.2-3.2-28.8-3.2H320c-9.6 0-19.2 0-28.8 3.2V780.8c0 22.4 0 80 22.4 92.8 28.8 19.2 96-6.4 96 44.8 0 16-9.6 41.6-28.8 41.6-54.4 0-105.6-3.2-160-3.2-48 0-96 3.2-147.2 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 51.2-28.8 80-48 19.2-12.8 19.2-60.8 19.2-83.2V294.4c0-28.8 3.2-115.2-22.4-131.2-25.6-16-86.4 9.6-86.4-41.6 0-16 6.4-41.6 28.8-41.6 51.2 0 105.6 3.2 156.8 3.2 48 0 96-3.2 144-3.2 19.2 0 28.8 22.4 28.8 41.6 0 48-57.6 25.6-83.2 41.6-19.2 12.8-19.2 73.6-19.2 92.8v201.6c6.4 3.2 16 3.2 22.4 3.2h400c6.4 0 12.8 0 22.4-3.2V256c0-22.4 0-80-19.2-92.8-28.8-16-86.4 6.4-86.4-41.6 0-16 9.6-41.6 28.8-41.6 51.2 0 99.2 3.2 150.4 3.2 48 0 99.2-3.2 147.2-3.2 19.2 0 28.8 22.4 28.8 41.6 0 51.2-57.6 25.6-86.4 41.6-19.2 12.8-19.2 70.4-19.2 92.8v537.6c0 19.2 0 67.2 19.2 80 28.8 19.2 89.6-6.4 89.6 44.8 0 19.2-6.4 41.6-28.8 41.6z"></path></svg>',this.tag="select",this.width=60}return t.prototype.getOptions=function(t){var e=[{value:"header1",text:"H1",styleForRenderMenuList:{"font-size":"32px","font-weight":"bold"}},{value:"header2",text:"H2",styleForRenderMenuList:{"font-size":"24px","font-weight":"bold"}},{value:"header3",text:"H3",styleForRenderMenuList:{"font-size":"18px","font-weight":"bold"}},{value:"header4",text:"H4",styleForRenderMenuList:{"font-size":"16px","font-weight":"bold"}},{value:"header5",text:"H5",styleForRenderMenuList:{"font-size":"13px","font-weight":"bold"}},{value:"header6",text:"H6",styleForRenderMenuList:{"font-size":"11px","font-weight":"bold"}},{value:"paragraph",text:dI("header.text")}],n=this.getValue(t).toString();return e.forEach(function(t){t.value===n?t.selected=!0:t.selected=void 0}),e},t.prototype.isActive=function(t){return!1},t.prototype.getValue=function(t){return oY(t)},t.prototype.isDisabled=function(t){return iY(t)},t.prototype.exec=function(t,e){uY(t,e.toString())},t}(),vY={key:"headerSelect",factory:function(){return new hY}},gY={key:"header1",factory:function(){return new sY}},yY={key:"header2",factory:function(){return new cY}},mY={key:"header3",factory:function(){return new lY}},bY={key:"header4",factory:function(){return new fY}},EY={key:"header5",factory:function(){return new dY}},wY={key:"header6",factory:function(){return new pY}};function SY(t){return function(e,n,r){var o=Rp(e);return 0===(n=n.filter(function(t){return!!yp.Text.isText(t)||!!r.isInline(t)})).length&&(n=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header".concat(t),children:n}}}var CY={selector:"h1:not([data-w-e-type])",parseElemHtml:SY(1)},DY={selector:"h2:not([data-w-e-type])",parseElemHtml:SY(2)},OY={selector:"h3:not([data-w-e-type])",parseElemHtml:SY(3)},AY={selector:"h4:not([data-w-e-type])",parseElemHtml:SY(4)},xY={selector:"h5:not([data-w-e-type])",parseElemHtml:SY(5)},TY={selector:"h6:not([data-w-e-type])",parseElemHtml:SY(6)};function NY(t){return function(e,n,r){return dv("h".concat(t),null,n)}}var PY={renderElems:[{type:"header1",renderElem:NY(1)},{type:"header2",renderElem:NY(2)},{type:"header3",renderElem:NY(3)},{type:"header4",renderElem:NY(4)},{type:"header5",renderElem:NY(5)},{type:"header6",renderElem:NY(6)}],elemsToHtml:[JK,ZK,QK,tY,eY,nY],parseElemsHtml:[CY,DY,OY,AY,xY,TY],menus:[vY,gY,yY,mY,bY,EY,wY],editorPlugin:function(t){var e=t.insertBreak,n=t;return n.insertBreak=function(){var r=dL(yp.Editor.nodes(n,{match:function(t){return eP.getNodeType(t).startsWith("header")},universal:!0}),1)[0];r&&eP.isSelectionAtLineEnd(t,r[1])?yp.Transforms.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):e()},n}},kY=function(){function t(){this.title=dI("image.delete"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){return null==t.selection||null==eP.getSelectedNodeByType(t,"image")},t.prototype.exec=function(t,e){this.isDisabled(t)||yp.Transforms.removeNodes(t,{match:function(t){return eP.checkNodeType(t,"image")}})},t}();function IY(t){return void 0===t&&(t="r"),"".concat(t,"-").concat(vh())}function BY(t){return t.replace(/</g,"&lt;").replace(/>/g,"&gt;")}function FY(t){var e=t.selection;return null==e||!yp.Range.isCollapsed(e)||!!dL(yp.Editor.nodes(t,{match:function(e){var n=eP.getNodeType(e);return"code"===n||"pre"===n||"link"===n||"list-item"===n||!!n.startsWith("header")||"blockquote"===n||!!yp.Editor.isVoid(t,e)},universal:!0}),1)[0]}function RY(t,e,n){return cL(this,arguments,void 0,function(t,e,n,r,o){var i,u;return void 0===r&&(r=""),void 0===o&&(o=""),lL(this,function(a){switch(a.label){case 0:return(i=e.getMenuConfig(t).checkImage)?[4,i(n,r,o)]:[3,2];case 1:if("string"==typeof(u=a.sent()))return e.alert(u,"error"),[2,!1];if(null==u)return[2,!1];a.label=2;case 2:return[2,!0]}})})}function _Y(t,e,n){return cL(this,void 0,void 0,function(){var r;return lL(this,function(o){switch(o.label){case 0:return(r=e.getMenuConfig(t).parseImageSrc)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}})})}function jY(t,e){return cL(this,arguments,void 0,function(t,e,n,r){var o,i,u;return void 0===n&&(n=""),void 0===r&&(r=""),lL(this,function(a){switch(a.label){case 0:return[4,RY("insertImage",t,e,n,r)];case 1:return a.sent()?[4,_Y("insertImage",t,e)]:[2];case 2:return o=a.sent(),i={type:"image",src:BY(o),href:r,alt:n,style:{},children:[{text:""}]},null===t.selection&&t.restoreSelection(),eP.getSelectedNodeByType(t,"image")&&t.move(1),FY(t)||(yp.Transforms.insertNodes(t,i),(u=t.getMenuConfig("insertImage").onInsertedImage)&&u(i)),[2]}})})}function LY(){return IY("w-e-edit-image")}var MY=function(){function t(){this.title=dI("image.edit"),this.iconSvg=kL,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=LY(),this.altInputId=LY(),this.hrefInputId=LY(),this.buttonId=LY()}return t.prototype.getValue=function(t){return""},t.prototype.getImageNode=function(t){return eP.getSelectedNodeByType(t,"image")},t.prototype.isActive=function(t){return!1},t.prototype.exec=function(t,e){},t.prototype.isDisabled=function(t){var e=t.selection;return null==e||!yp.Range.isCollapsed(e)||null==eP.getSelectedNodeByType(t,"image")},t.prototype.getModalPositionNode=function(t){return this.getImageNode(t)},t.prototype.getModalContentElem=function(t){var e=this,n=this,r=n.srcInputId,o=n.altInputId,i=n.hrefInputId,u=n.buttonId,a=this.getImageNode(t);if(null==a)throw new Error("Not found selected image node");var s=dL(CI(dI("image.src"),r),2),c=s[0],l=Rp(s[1]),f=dL(CI(dI("image.desc"),o),2),d=f[0],p=Rp(f[1]),h=dL(CI(dI("image.link"),i),2),v=h[0],g=Rp(h[1]),y=dL(DI(u,dI("common.ok")),1)[0];if(null==this.$content){var m=Rp("<div></div>");m.on("click","#".concat(u),function(n){n.preventDefault();var u=m.find("#".concat(r)).val(),a=m.find("#".concat(o)).val(),s=m.find("#".concat(i)).val();e.updateImage(t,u,a,s),t.hidePanelOrModal()}),this.$content=m}var b=this.$content;b.empty(),b.append(c),b.append(d),b.append(v),b.append(y);var E=a,w=E.src,S=E.alt,C=void 0===S?"":S,D=E.href,O=void 0===D?"":D;return l.val(w),p.val(C),g.val(O),setTimeout(function(){l.focus()}),b[0]},t.prototype.updateImage=function(t,e,n,r,o){void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o={}),e&&(t.restoreSelection(),this.isDisabled(t)||function(t,e){cL(this,arguments,void 0,function(t,e,n,r,o){var i,u,a,s,c,l;return void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o={}),lL(this,function(f){switch(f.label){case 0:return[4,RY("editImage",t,e,n,r)];case 1:return f.sent()?[4,_Y("editImage",t,e)]:[2];case 2:return i=f.sent(),null==(u=eP.getSelectedNodeByType(t,"image"))||(a=u.style,s={src:i,alt:n,href:r,style:sL(sL({},void 0===a?{}:a),o)},yp.Transforms.setNodes(t,s,{match:function(t){return eP.checkNodeType(t,"image")}}),c=eP.getSelectedNodeByType(t,"image"),(l=t.getMenuConfig("editImage").onUpdatedImage)&&l(c)),[2]}})})}(t,e,n,r,o))},t}();function zY(){return IY("w-e-insert-image")}var HY=function(){function t(){this.title=dI("image.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=zY(),this.heightInputId=zY(),this.buttonId=zY()}return t.prototype.getSelectedImageNode=function(t){return eP.getSelectedNodeByType(t,"image")},t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.exec=function(t,e){},t.prototype.isDisabled=function(t){return null==t.selection||null==this.getSelectedImageNode(t)},t.prototype.getModalPositionNode=function(t){return this.getSelectedImageNode(t)},t.prototype.getModalContentElem=function(t){var e=this,n=e.widthInputId,r=e.heightInputId,o=e.buttonId,i=dL(CI(dI("image.width"),n,"auto"),2),u=i[0],a=Rp(i[1]),s=dL(CI(dI("image.height"),r,"auto"),2),c=s[0],l=Rp(s[1]),f=dL(DI(o,dI("image.ok")),1)[0],d=this.getSelectedImageNode(t);if(null==this.$content){var p=Rp("<div></div>");p.on("click","#".concat(o),function(e){e.preventDefault();var o=p.find("#".concat(n)).val().trim(),i=p.find("#".concat(r)).val().trim(),u=function(t){return/^\d+(\.\d+)?%$/.test(t)},a=function(t){return/^\d+(\.\d+)?$/.test(t)},s=function(t){return/^\d+(\.\d+)?px$/.test(t)},c="auto",l="auto";u(o)?c=o:a(o)?c="".concat(parseInt(o,10),"px"):s(o)&&(c=o),u(i)?l=i:a(i)?l="".concat(parseInt(i,10),"px"):s(i)&&(l=i);var f=d.style,h=void 0===f?{}:f;t.restoreSelection();var v=sL(sL({},h),{style:{width:c,height:l}});yp.Transforms.setNodes(t,v,{match:function(t){return eP.checkNodeType(t,"image")}}),t.hidePanelOrModal()}),this.$content=p}var h=this.$content;if(h.empty(),h.append(u),h.append(c),h.append(f),null==d)return h[0];var v=d.style,g=void 0===v?{}:v,y=g.width,m=void 0===y?"auto":y,b=g.height,E=void 0===b?"auto":b;return a.val(m),l.val(E),setTimeout(function(){a.focus()}),h[0]},t}();function $Y(){return IY("w-e-insert-image")}var UY,VY,GY,WY,qY,KY=function(){function t(){this.title=dI("image.netImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=$Y(),this.altInputId=$Y(),this.hrefInputId=$Y(),this.buttonId=$Y()}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.exec=function(t,e){},t.prototype.isDisabled=function(t){return FY(t)},t.prototype.getModalPositionNode=function(t){return null},t.prototype.getModalContentElem=function(t){var e=this,n=this,r=n.srcInputId,o=n.altInputId,i=n.hrefInputId,u=n.buttonId,a=dL(CI(dI("image.src"),r),2),s=a[0],c=Rp(a[1]),l=dL(CI(dI("image.desc"),o),2),f=l[0],d=Rp(l[1]),p=dL(CI(dI("image.link"),i),2),h=p[0],v=Rp(p[1]),g=dL(DI(u,dI("common.ok")),1)[0];if(null==this.$content){var y=Rp("<div></div>");y.on("click","#".concat(u),function(n){n.preventDefault();var u=y.find("#".concat(r)).val().trim(),a=y.find("#".concat(o)).val().trim(),s=y.find("#".concat(i)).val().trim();e.insertImage(t,u,a,s),t.hidePanelOrModal()}),this.$content=y}var m=this.$content;return m.empty(),m.append(s),m.append(f),m.append(h),m.append(g),c.val(""),d.val(""),v.val(""),setTimeout(function(){c.focus()}),m[0]},t.prototype.insertImage=function(t,e,n,r){void 0===n&&(n=""),void 0===r&&(r=""),e&&(t.restoreSelection(),this.isDisabled(t)||jY(t,e,n,r))},t}(),YY=function(){function t(){this.title=dI("image.viewLink"),this.iconSvg=IL,this.tag="button"}return t.prototype.getValue=function(t){var e=eP.getSelectedNodeByType(t,"image");return e&&e.href||""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){return null==t.selection||!this.getValue(t)},t.prototype.exec=function(t,e){if(!this.isDisabled(t)){if(!e||"string"!=typeof e)throw new Error("View image link failed, image.href is '".concat(e,"'"));window.open(e,"_blank")}},t}(),XY=function(){function t(){this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.getSelectedNode=function(t){return eP.getSelectedNodeByType(t,"image")},t.prototype.isDisabled=function(t){return null==t.selection||null==this.getSelectedNode(t)},t.prototype.exec=function(t,e){if(!this.isDisabled(t)){var n=this.getSelectedNode(t);if(null!=n){var r=eP.getHoverbar(t);r&&r.hideAndClean();var o=n.style,i={style:sL(sL({},void 0===o?{}:o),{width:this.value,height:""})};yp.Transforms.setNodes(t,i,{match:function(t){return eP.checkNodeType(t,"image")}})}}},t}(),JY=function(t){function e(){var e=t.apply(this,pL([],dL(arguments),!1))||this;return e.title="30%",e.value="30%",e}return aL(e,t),e}(XY),ZY=function(t){function e(){var e=t.apply(this,pL([],dL(arguments),!1))||this;return e.title="50%",e.value="50%",e}return aL(e,t),e}(XY),QY=function(t){function e(){var e=t.apply(this,pL([],dL(arguments),!1))||this;return e.title="100%",e.value="100%",e}return aL(e,t),e}(XY),tX={onInsertedImage:function(t){},onUpdatedImage:function(t){},checkImage:function(t,e,n){return!0},parseImageSrc:function(t){return t}},eX={key:"insertImage",factory:function(){return new KY},config:tX},nX={key:"deleteImage",factory:function(){return new kY}},rX={key:"editImage",factory:function(){return new MY},config:tX},oX={key:"viewImageLink",factory:function(){return new YY}},iX={key:"imageWidth30",factory:function(){return new JY}},uX={key:"imageWidth50",factory:function(){return new ZY}},aX={key:"imageWidth100",factory:function(){return new QY}},sX={key:"editorImageSizeMenu",factory:function(){return new HY}},cX={selector:"img:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=Rp(t),o=r.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:o,style:{width:RM(r,"width"),height:RM(r,"height")},width:r.attr("width")||"",height:r.attr("height")||"",children:[{text:""}]}}},lX={};function fX(t,e){var n=eP.findKey(t,e).id;return"w-e-image-container-".concat(n)}!function(){if(qY)return lX;qY=1;var t=_j(),e=aR(),n=aj(),r=function(){if(VY)return UY;VY=1;var t=aR();return UY=t(1.1.valueOf)}(),o=function(){if(WY)return GY;WY=1;var t=aj(),e=Mj(),n=fR(),r=RangeError;return GY=function(o){var i=e(n(this)),u="",a=t(o);if(a<0||a===1/0)throw new r("Wrong number of repetitions");for(;a>0;(a>>>=1)&&(i+=i))1&a&&(u+=i);return u}}(),i=pF(),u=RangeError,a=String,s=Math.floor,c=e(o),l=e("".slice),f=e(1.1.toFixed),d=function(t,e,n){return 0===e?n:e%2==1?d(t,e-1,n*t):d(t*t,e/2,n)},p=function(t,e,n){for(var r=-1,o=n;++r<6;)o+=e*t[r],t[r]=o%1e7,o=s(o/1e7)},h=function(t,e){for(var n=6,r=0;--n>=0;)r+=t[n],t[n]=s(r/e),r=r%e*1e7},v=function(t){for(var e=6,n="";--e>=0;)if(""!==n||0===e||0!==t[e]){var r=a(t[e]);n=""===n?r:n+c("0",7-r.length)+r}return n};t({target:"Number",proto:!0,forced:i(function(){return"0.000"!==f(8e-5,3)||"1"!==f(.9,0)||"1.25"!==f(1.255,2)||"1000000000000000128"!==f(0xde0b6b3a7640080,0)})||!i(function(){f({})})},{toFixed:function(t){var e,o,i,s,f=r(this),g=n(t),y=[0,0,0,0,0,0],m="",b="0";if(g<0||g>20)throw new u("Incorrect fraction digits");if(f!=f)return"NaN";if(f<=-1e21||f>=1e21)return a(f);if(f<0&&(m="-",f=-f),f>1e-21)if(o=(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(f*d(2,69,1))-69)<0?f*d(2,-e,1):f/d(2,e,1),o*=4503599627370496,(e=52-e)>0){for(p(y,0,o),i=g;i>=7;)p(y,1e7,0),i-=7;for(p(y,d(10,i,1),0),i=e-1;i>=23;)h(y,1<<23),i-=23;h(y,1<<i),p(y,1,1),h(y,2),b=v(y)}else p(y,0,o),p(y,1<<-e,0),b=v(y)+c("0",g);return g>0?m+((s=b.length)<=g?"0."+c("0",g-s)+b:l(b,0,s-g)+"."+l(b,s-g)):m+b}})}();var dX={type:"image",renderElem:function(t,e,n){var r=t,o=r.src,i=r.alt,u=void 0===i?"":i,a=r.href,s=void 0===a?"":a,c=r.style,l=void 0===c?{}:c,f=l.width,d=void 0===f?"":f,p=l.height,h=void 0===p?"":p,v=eP.isNodeSelected(n,t),g={maxWidth:"100%"};d&&(g.width="100%"),h&&(g.height="100%");var y=dv("img",{style:g,src:o,alt:u,"data-href":s}),m=n.isDisabled();return v&&!m?function(t,e,n,r){var o=Rp("body"),i=fX(t,e),u=r.width,a=r.height,s=0,c=0,l=0,f=0,d=!1,p=null,h=Th(function(t){t.preventDefault();var e=t.clientX,n=c+(d?s-e:e-s),r=l*(n/c);n>f-6||null!=p&&(n<=15||r<=15||(p.css("width","".concat(n,"px")),p.css("height","".concat(r,"px"))))},100);function v(n){if(o.off("mousemove",h),null!=p){var r=p.width().toFixed(2),i=p.height().toFixed(2),u={style:sL(sL({},e.style),{width:"".concat(r,"px"),height:"".concat(i,"px")})};yp.Transforms.setNodes(t,u,{at:eP.findPath(t,e)}),o.off("mouseup",v)}}function g(e,n){p=function(){var t=Rp("#".concat(i));if(0===t.length)throw new Error("Cannot find image container elem");return t}(),s=e,f=n;var r=p.find("img");if(0===r.length)throw new Error("Cannot find image elem");c=r.width(),l=r.height(),o.on("mousemove",h),o.on("mouseup",v);var u=eP.getHoverbar(t);u&&u.hideAndClean()}var y={};return u&&(y.width=u),a&&(y.height=a),y.boxShadow="0 0 0 1px #B4D5FF",dv("div",{id:i,style:y,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(n){var r=Rp(n.target);if(r.hasClass("w-e-image-dragger")){n.preventDefault(),(r.hasClass("left-top")||r.hasClass("left-bottom"))&&(d=!0);var o=eP.getParentNode(t,e);if(null!=o){var i=eP.toDOMNode(t,o),u=i.getBoundingClientRect?i.getBoundingClientRect():{width:0},a=window.getComputedStyle(i),s=parseFloat(a.paddingLeft),c=parseFloat(a.paddingRight),l=parseFloat(a.borderLeftWidth),f=parseFloat(a.borderRightWidth);g(n.clientX,u.width-s-c-l-f)}}}}},n,dv("div",{className:"w-e-image-dragger left-top"}),dv("div",{className:"w-e-image-dragger right-top"}),dv("div",{className:"w-e-image-dragger left-bottom"}),dv("div",{className:"w-e-image-dragger right-bottom"}))}(n,t,y,{width:d,height:h}):function(t,e,n,r){var o=r.width,i=r.height,u={};return o&&(u.width=o),i&&(u.height=i),dv("div",{id:fX(t,e),style:u,className:"w-e-image-container"},n)}(n,t,y,{width:d,height:h})}},pX={renderElems:[dX],elemsToHtml:[{type:"image",elemToHtml:function(t,e){var n=t,r=n.src,o=n.alt,i=void 0===o?"":o,u=n.href,a=void 0===u?"":u,s=n.width,c=void 0===s?"":s,l=n.height,f=void 0===l?"":l,d=n.style,p=void 0===d?{}:d,h=p.width,v=void 0===h?"":h,g=p.height,y=void 0===g?"":g,m="";return v&&(m+="width: ".concat(v,";")),y&&(m+="height: ".concat(y,";")),'<img src="'.concat(r,'" alt="').concat(i,'" data-href="').concat(a,'" width="').concat(c,'" height="').concat(f,'" style="').concat(m,'"/>')}}],parseElemsHtml:[cX],menus:[eX,nX,rX,oX,iX,uX,aX,sX],editorPlugin:function(t){var e=t.isInline,n=t.isVoid,r=t;return r.isInline=function(t){return"image"===t.type||e(t)},r.isVoid=function(t){return"image"===t.type||n(t)},r}},hX=function(){function t(){this.tag="button"}return t.prototype.getValue=function(t){var e=dL(yp.Editor.nodes(t,{match:function(t){return!!t.indent},universal:!0}),1),n=e[0];return null==n?"":dL(n,1)[0].indent||""},t.prototype.isActive=function(t){return!1},t.prototype.getMatchNode=function(t){var e=dL(yp.Editor.nodes(t,{match:function(t){var e=eP.getNodeType(t);return"paragraph"===e||!!e.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==e?null:e[0]},t}(),vX=function(t){function e(){var e=t.apply(this,pL([],dL(arguments),!1))||this;return e.title=dI("indent.decrease"),e.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',e}return aL(e,t),e.prototype.isDisabled=function(t){var e=this.getMatchNode(t);return null==e||!e.indent},e.prototype.exec=function(t,e){yp.Transforms.setNodes(t,{indent:null},{match:function(t){return yp.Element.isElement(t)}})},e}(hX),gX=function(t){function e(){var e=t.apply(this,pL([],dL(arguments),!1))||this;return e.title=dI("indent.increase"),e.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',e.DEFAULT_INDENT_VALUE="2em",e}return aL(e,t),e.prototype.isDisabled=function(t){var e=this.getMatchNode(t);return null==e||!!e.indent},e.prototype.getIndentValue=function(t){var e=this.getMatchNode(t);if(!e)return this.DEFAULT_INDENT_VALUE;var n=e.children.filter(yp.Text.isText)[0];if(!n||!n.fontSize)return this.DEFAULT_INDENT_VALUE;var r=n.fontSize,o=parseInt(n.fontSize,10),i=r.replace("".concat(o),"");return"".concat(2*o).concat(i)},e.prototype.exec=function(t,e){var n=this.getIndentValue(t);yp.Transforms.setNodes(t,{indent:n},{match:function(t){return yp.Element.isElement(t)},mode:"highest"})},e}(hX),yX={renderStyle:function(t,e){if(!yp.Element.isElement(t))return e;var n=t.indent,r=e;return n&&pH(r,{textIndent:n}),r},styleToHtml:function(t,e){if(!yp.Element.isElement(t))return e;var n=t.indent;if(!n)return e;var r=Rp(e);return r.css("text-indent",n),BM(r)},preParseHtml:[{selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(t){var e=Rp(t),n=RM(e,"padding-left");return/^[1-9]\d*em$/.test(n)&&e.css("text-indent","2em"),/^[1-9]\d*px$/.test(n)&&parseInt(n,10)%32==0&&e.css("text-indent","2em"),e[0]}}],parseStyleHtml:function(t,e,n){var r=Rp(t);if(!yp.Element.isElement(e))return e;var o=e,i=RM(r,"text-indent"),u=parseInt(i,10);return i&&u>0&&(o.indent=i),o},menus:[{key:"indent",factory:function(){return new gX}},{key:"delIndent",factory:function(){return new vX}}]},mX=function(){function t(){this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){return null==t.selection||!!eP.getSelectedElems(t).some(function(e){var n=e.type;return!(!yp.Editor.isVoid(t,e)||!yp.Editor.isBlock(t,e)||"video"===n)||!!["pre","code"].includes(n)})},t}(),bX=function(t){function e(){var e=t.apply(this,pL([],dL(arguments),!1))||this;return e.title=dI("justify.center"),e.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M870.4 793.6v102.4H153.6v-102.4h716.8z m102.4-230.4v102.4H51.2v-102.4h921.6z m-102.4-230.4v102.4H153.6v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',e}return aL(e,t),e.prototype.exec=function(t,e){yp.Transforms.setNodes(t,{textAlign:"center"},{match:function(e){return yp.Element.isElement(e)&&!t.isInline(e)}})},e}(mX),EX=function(t){function e(){var e=t.apply(this,pL([],dL(arguments),!1))||this;return e.title=dI("justify.justify"),e.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',e}return aL(e,t),e.prototype.exec=function(t,e){yp.Transforms.setNodes(t,{textAlign:"justify"},{match:function(e){return yp.Element.isElement(e)&&!t.isInline(e)}})},e}(mX),wX=function(t){function e(){var e=t.apply(this,pL([],dL(arguments),!1))||this;return e.title=dI("justify.left"),e.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',e}return aL(e,t),e.prototype.exec=function(t,e){yp.Transforms.setNodes(t,{textAlign:"left"},{match:function(e){return yp.Element.isElement(e)&&!t.isInline(e)}})},e}(mX),SX=function(t){function e(){var e=t.apply(this,pL([],dL(arguments),!1))||this;return e.title=dI("justify.right"),e.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M972.8 793.6v102.4H256v-102.4h716.8z m0-230.4v102.4H51.2v-102.4h921.6z m0-230.4v102.4H256v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',e}return aL(e,t),e.prototype.exec=function(t,e){yp.Transforms.setNodes(t,{textAlign:"right"},{match:function(e){return yp.Element.isElement(e)&&!t.isInline(e)}})},e}(mX),CX={renderStyle:function(t,e){if(!yp.Element.isElement(t))return e;var n=t.textAlign,r=e;return n&&pH(r,{textAlign:n}),r},styleToHtml:function(t,e){if(!yp.Element.isElement(t))return e;var n=t.textAlign;if(!n)return e;var r=Rp(e);return r.css("text-align",n),BM(r)},parseStyleHtml:function(t,e,n){var r=Rp(t);if(!yp.Element.isElement(e))return e;var o=e,i=RM(r,"text-align");return i&&(o.textAlign=i),o},menus:[{key:"justifyLeft",factory:function(){return new wX}},{key:"justifyRight",factory:function(){return new SX}},{key:"justifyCenter",factory:function(){return new bX}},{key:"justifyJustify",factory:function(){return new EX}}]},DX=function(){function t(){this.title=dI("lineHeight.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M964 788a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526zM198.93 144.306c6.668-5.798 16.774-5.094 22.573 1.574l122.26 140.582a16 16 0 0 1 3.927 10.5c0 8.836-7.164 16-16 16h-61.8a8 8 0 0 0-8 8v390.077h69.819a16 16 0 0 1 10.502 3.928c6.666 5.8 7.37 15.906 1.57 22.573L221.476 878.123a16 16 0 0 1-1.57 1.57c-6.668 5.8-16.774 5.097-22.574-1.57L75.051 737.538a16 16 0 0 1-3.928-10.5c0-8.837 7.163-16 16-16h69.822V312.96H87.127a16 16 0 0 1-10.502-3.928c-6.666-5.8-7.37-15.906-1.57-22.573l122.303-140.582a16 16 0 0 1 1.572-1.572zM964 465a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z m0-323a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z"></path></svg>',this.tag="select",this.width=80}return t.prototype.getOptions=function(t){var e=[],n=t.getMenuConfig("lineHeight").lineHeightList,r=void 0===n?[]:n;e.push({text:dI("lineHeight.default"),value:""}),r.forEach(function(t){e.push({text:t,value:t})});var o=this.getValue(t);return e.forEach(function(t){t.value===o?t.selected=!0:t.selected=void 0}),e},t.prototype.getMatchNode=function(t){var e=dL(yp.Editor.nodes(t,{match:function(t){var e=eP.getNodeType(t);return!!e.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(e)},universal:!0,mode:"highest"}),1)[0];return null==e?null:e[0]},t.prototype.isActive=function(t){return!1},t.prototype.getValue=function(t){var e=this.getMatchNode(t);return null==e?"":yp.Element.isElement(e)&&e.lineHeight||""},t.prototype.isDisabled=function(t){return null==t.selection||null==this.getMatchNode(t)},t.prototype.exec=function(t,e){yp.Transforms.setNodes(t,{lineHeight:e.toString()},{mode:"highest"})},t}(),OX={renderStyle:function(t,e){if(!yp.Element.isElement(t))return e;var n=t.lineHeight,r=e;return n&&pH(r,{lineHeight:n}),r},styleToHtml:function(t,e){if(!yp.Element.isElement(t))return e;var n=t.lineHeight;if(!n)return e;var r=Rp(e);return r.css("line-height",n),BM(r)},parseStyleHtml:function(t,e,n){var r=Rp(t);if(!yp.Element.isElement(e))return e;var o=e,i=n.getMenuConfig("lineHeight").lineHeightList,u=void 0===i?[]:i,a=RM(r,"line-height");return a&&u.includes(a)&&(o.lineHeight=a),o},menus:[{key:"lineHeight",factory:function(){return new DX},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]};function AX(t,e,n,r){return cL(this,void 0,void 0,function(){var o,i;return lL(this,function(u){switch(u.label){case 0:return(o=e.getMenuConfig(t).checkLink)?[4,o(n,r)]:[3,2];case 1:if("string"==typeof(i=u.sent()))return e.alert(i,"error"),[2,!1];if(null==i)return[2,!1];u.label=2;case 2:return[2,!0]}})})}function xX(t,e,n){return cL(this,void 0,void 0,function(){var r;return lL(this,function(o){switch(o.label){case 0:return(r=e.getMenuConfig(t).parseLinkUrl)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}})})}function TX(t){return null==t.selection||!!eP.getSelectedElems(t).some(function(e){var n=e.type;return!!t.isVoid(e)||!!["pre","code","link"].includes(n)})}function NX(t,e){return{type:"link",url:BY(t),children:e?[{text:e}]:[]}}function PX(t,e,n){return cL(this,void 0,void 0,function(){var r,o,i,u,a;return lL(this,function(s){switch(s.label){case 0:return n?(e||(e=n),t.restoreSelection(),TX(t)?[2]:[4,AX("insertLink",t,e,n)]):[2];case 1:return s.sent()?[4,xX("insertLink",t,n)]:[2];case 2:if(r=s.sent(),null==(o=t.selection))return[2];if(yp.Range.isCollapsed(o)){if((u=eP.getLeftLengthOfMaxLength(t))<=0)return[2];t.insertText(" "),u<e.length+1&&(e=e.slice(0,u-1)),a=NX(r,e),yp.Transforms.insertNodes(t,a),t.insertFragment([{text:" "}])}else if((i=yp.Editor.string(t,o))!==e){if((u=eP.getLeftLengthOfMaxLength(t))<=0)return[2];u<i.length-e.length&&(e=e.slice(0,u)),t.deleteFragment(),a=NX(r,e),yp.Transforms.insertNodes(t,a)}else a=NX(r),yp.Transforms.wrapNodes(t,a,{split:!0}),yp.Transforms.collapse(t,{edge:"end"});return[2]}})})}function kX(){return IY("w-e-update-link")}var IX=function(){function t(){this.title=dI("link.edit"),this.iconSvg=kL,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=kX(),this.buttonId=kX()}return t.prototype.getSelectedLinkElem=function(t){var e=eP.getSelectedNodeByType(t,"link");return null==e?null:e},t.prototype.getValue=function(t){var e=this.getSelectedLinkElem(t);return e&&e.url||""},t.prototype.isActive=function(t){return!1},t.prototype.exec=function(t,e){},t.prototype.isDisabled=function(t){return null==t.selection||null==this.getSelectedLinkElem(t)},t.prototype.getModalPositionNode=function(t){return eP.getSelectedNodeByType(t,"link")},t.prototype.getModalContentElem=function(t){var e=this.urlInputId,n=this.buttonId,r=dL(CI(dI("link.url"),e),2),o=r[0],i=Rp(r[1]),u=dL(DI(n,dI("common.ok")),1)[0];if(null==this.$content){var a=Rp("<div></div>");a.on("click","#".concat(n),function(n){n.preventDefault(),t.restoreSelection();var r=eP.getSelectedNodeByType(t,"link"),o=r?yp.Node.string(r):"",i=a.find("#".concat(e)).val();!function(t,e,n){cL(this,void 0,void 0,function(){var r,o;return lL(this,function(i){switch(i.label){case 0:return n?[4,AX("editLink",t,e,n)]:[2];case 1:return i.sent()?[4,xX("editLink",t,n)]:[2];case 2:return r=i.sent(),o={url:BY(r)},yp.Transforms.setNodes(t,o,{match:function(t){return eP.checkNodeType(t,"link")}}),[2]}})})}(t,o,i),t.hidePanelOrModal()}),this.$content=a}var s=this.$content;s.empty(),s.append(o),s.append(u);var c=this.getValue(t);return i.val(c),setTimeout(function(){i.focus()}),s[0]},t}();function BX(){return IY("w-e-insert-link")}var FX,RX,_X=function(){function t(){this.title=dI("link.insert"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M440.224 635.776a51.84 51.84 0 0 1-36.768-15.232c-95.136-95.136-95.136-249.92 0-345.056l192-192C641.536 37.408 702.816 12.032 768 12.032s126.432 25.376 172.544 71.456c95.136 95.136 95.136 249.92 0 345.056l-87.776 87.776a51.968 51.968 0 1 1-73.536-73.536l87.776-87.776a140.16 140.16 0 0 0 0-197.984c-26.432-26.432-61.6-40.992-99.008-40.992s-72.544 14.56-99.008 40.992l-192 192a140.16 140.16 0 0 0 0 197.984 51.968 51.968 0 0 1-36.768 88.768z"></path><path d="M256 1012a242.4 242.4 0 0 1-172.544-71.456c-95.136-95.136-95.136-249.92 0-345.056l87.776-87.776a51.968 51.968 0 1 1 73.536 73.536l-87.776 87.776a140.16 140.16 0 0 0 0 197.984c26.432 26.432 61.6 40.992 99.008 40.992s72.544-14.56 99.008-40.992l192-192a140.16 140.16 0 0 0 0-197.984 51.968 51.968 0 1 1 73.536-73.536c95.136 95.136 95.136 249.92 0 345.056l-192 192A242.4 242.4 0 0 1 256 1012z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.textInputId=BX(),this.urlInputId=BX(),this.buttonId=BX()}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.exec=function(t,e){},t.prototype.isDisabled=function(t){return TX(t)},t.prototype.getModalPositionNode=function(t){return null},t.prototype.getModalContentElem=function(t){var e=t.selection,n=this,r=n.textInputId,o=n.urlInputId,i=n.buttonId,u=dL(CI(dI("link.text"),r),2),a=u[0],s=Rp(u[1]),c=dL(CI(dI("link.url"),o),2),l=c[0],f=Rp(c[1]),d=dL(DI(i,dI("common.ok")),1)[0];if(null==this.$content){var p=Rp("<div></div>");p.on("click","#".concat(i),function(e){e.preventDefault();var n=p.find("#".concat(r)).val(),i=p.find("#".concat(o)).val();PX(t,n,i),t.hidePanelOrModal()}),this.$content=p}var h=this.$content;if(h.empty(),h.append(a),h.append(l),h.append(d),null==e||yp.Range.isCollapsed(e))s.val("");else{var v=yp.Editor.string(t,e);s.val(v)}return f.val(""),setTimeout(function(){s.focus()}),h[0]},t}(),jX=function(){function t(){this.title=dI("link.unLink"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M608.16328 811.815036c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.347563 89.347564c-118.525421 118.523421-311.38448 118.531421-429.919901 0-118.527421-118.529421-118.527421-311.39048 0-429.917901l89.349564-89.349563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.195613 79.195613c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.349563 89.347564c-56.143726 56.145726-56.143726 147.49928 0 203.645005 56.143726 56.143726 147.49928 56.145726 203.647005 0l89.347564-89.347563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.193613 79.195613z m-113.135447-520.429459c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.347564-89.347564c56.143726-56.149726 147.49928-56.145726 203.647006 0 56.143726 56.145726 56.143726 147.49928 0 203.645006l-89.349564 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.195613 79.195613c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.349564-89.349563c118.529421-118.529421 118.529421-311.38848 0-429.917901-118.531421-118.527421-311.38848-118.527421-429.919901 0l-89.347563 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.193613 79.195613z m469.653707 718.556492l45.253779-45.253779c18.745908-18.745908 18.745908-49.13776 0-67.881669L127.195629 14.062931c-18.745908-18.745908-49.13776-18.745908-67.881669 0L14.058181 59.31871c-18.745908 18.745908-18.745908 49.13776 0 67.881669l882.74169 882.74169c18.745908 18.743908 49.13776 18.743908 67.881669 0z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){return null==t.selection||null==eP.getSelectedNodeByType(t,"link")},t.prototype.exec=function(t,e){this.isDisabled(t)||yp.Transforms.unwrapNodes(t,{match:function(t){return eP.checkNodeType(t,"link")}})},t}(),LX=function(){function t(){this.title=dI("link.view"),this.iconSvg=IL,this.tag="button"}return t.prototype.getSelectedLinkElem=function(t){var e=eP.getSelectedNodeByType(t,"link");return null==e?null:e},t.prototype.getValue=function(t){var e=this.getSelectedLinkElem(t);return e&&e.url||""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){return null==t.selection||null==this.getSelectedLinkElem(t)},t.prototype.exec=function(t,e){if(!this.isDisabled(t)){if(!e||"string"!=typeof e)throw new Error("View link failed, link url is '".concat(e,"'"));window.open(e,"_blank")}},t}(),MX={checkLink:function(t,e){return!0},parseLinkUrl:function(t){return t}},zX={key:"insertLink",factory:function(){return new _X},config:MX},HX={key:"editLink",factory:function(){return new IX},config:MX},$X={key:"unLink",factory:function(){return new jX}},UX={key:"viewLink",factory:function(){return new LX}},VX={selector:"a:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=Rp(t).text().replace(/\s+/gm," ");return e.length>0?{text:e.filter(function(t){return yp.Text.isText(t)}).map(function(t){return t.text}).join("")||r}:{text:r}}},GX=QB(function(){if(RX)return FX;RX=1,FX=function(r){if("string"!=typeof r)return!1;var o=r.match(t);if(!o)return!1;var i=o[1];return!!i&&!(!e.test(i)&&!n.test(i))};var t=/^(?:\w+:)?\/\/(\S+)$/,e=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,n=/^[^\s\.]+\.\S{2,}$/;return FX}()),WX={type:"link",renderElem:function(t,e,n){var r=t,o=r.url,i=r.target;return dv("a",{href:o,target:void 0===i?"_blank":i},e)}},qX={renderElems:[WX],elemsToHtml:[{type:"link",elemToHtml:function(t,e){var n=t,r=n.url,o=n.target,i=void 0===o?"_blank":o;return'<a href="'.concat(r,'" target="').concat(i,'">').concat(e,"</a>")}}],parseElemsHtml:[VX],menus:[zX,HX,$X,UX],editorPlugin:function(t){var e=t.isInline,n=t.insertData,r=t.normalizeNode,o=t;return o.isInline=function(t){return"link"===t.type||e(t)},o.insertData=function(t){var e=t.getData("text/plain");if(GX(e)){if(/<img[^>]+>/.test(t.getData("text/html")))n(t);else if(!TX(o)){var r=o.selection;if(null!=r){var i=yp.Editor.string(o,r);PX(o,i,e)}}}else n(t)},o.normalizeNode=function(t){var e=dL(t,2),n=e[0],i=e[1];return"link"!==eP.getNodeType(n)?r([n,i]):""===yp.Node.string(n)?yp.Transforms.removeNodes(o,{at:i}):r([n,i])},o}},KX={selector:"p:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=Rp(t);return 0===(e=e.filter(function(t){return!!yp.Text.isText(t)||!!n.isInline(t)})).length&&(e=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:e}}};function YX(t){var e=dL(yp.Editor.nodes(t,{match:function(e){return t.children[0]===e},mode:"highest"}),1)[0];if(null==e)return!1;var n=e[0];if(!yp.Element.isElement(n))return!1;if("paragraph"===n.type)return!1;if(""!==yp.Node.string(n))return!1;var r=n.children,o=void 0===r?[]:r;return!!yp.Text.isText(o[0])&&(yp.Transforms.setNodes(t,{type:"paragraph"}),!0)}var XX={type:"paragraph",renderElem:function(t,e,n){return dv("p",null,e)}},JX={renderElems:[XX],elemsToHtml:[{type:"paragraph",elemToHtml:function(t,e){return""===e?"<p><br></p>":"<p>".concat(e,"</p>")}}],parseElemsHtml:[KX],editorPlugin:function(t){var e=t.deleteBackward,n=t.deleteForward,r=t;return r.deleteBackward=function(t){YX(r)||e(t)},r.deleteForward=function(t){YX(r)||n(t)},r}};function ZX(t,e){return null==t.selection||!!dL(yp.Editor.nodes(t,{match:function(e){return"pre"===eP.getNodeType(e)||!!yp.Editor.isVoid(t,e)},universal:!0}),1)[0]}function QX(t,e){Object.keys(e).forEach(function(e){"text"!==e&&yp.Editor.removeMark(t,e)})}var tJ,eJ=function(){function t(){this.marksNeedToRemove=[],this.tag="button"}return t.prototype.getValue=function(t){var e=this.mark,n=yp.Editor.marks(t);return n?n[e]:!!dL(yp.Editor.nodes(t,{match:function(t){return!0===t[e]}}),1)[0]},t.prototype.isActive=function(t){return!!this.getValue(t)},t.prototype.isDisabled=function(t){return ZX(t,this.mark)},t.prototype.exec=function(t,e){var n=this.mark,r=this.marksNeedToRemove;e?t.removeMark(n):(t.addMark(n,!0),r&&r.forEach(function(e){return t.removeMark(e)}))},t}(),nJ=function(t){function e(){var e=t.apply(this,pL([],dL(arguments),!1))||this;return e.mark="bold",e.title=dI("textStyle.bold"),e.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M707.872 484.64A254.88 254.88 0 0 0 768 320c0-141.152-114.848-256-256-256H192v896h384c141.152 0 256-114.848 256-256a256.096 256.096 0 0 0-124.128-219.36zM384 192h101.504c55.968 0 101.504 57.408 101.504 128s-45.536 128-101.504 128H384V192z m159.008 640H384v-256h159.008c58.464 0 106.016 57.408 106.016 128s-47.552 128-106.016 128z"></path></svg>',e.hotkey="mod+b",e}return aL(e,t),e}(eJ),rJ=function(){function t(){this.title=dI("textStyle.clear"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M969.382408 288.738615l-319.401123-270.852152a67.074236 67.074236 0 0 0-96.459139 5.74922l-505.931379 574.922021a68.35184 68.35184 0 0 0-17.886463 47.910169 74.101061 74.101061 0 0 0 24.274486 47.910168l156.50655 132.232065h373.060512L975.131628 383.281347a67.074236 67.074236 0 0 0-5.74922-96.459139z m-440.134747 433.746725H264.144729l-90.071117-78.572676c-5.74922-5.74922-12.137243-12.137243-12.137243-17.886463a36.411728 36.411728 0 0 1 5.749221-24.274485l210.804741-240.828447 265.102932 228.691204z m-439.495945 180.781036h843.218964a60.047411 60.047411 0 1 1 0 120.733624H89.751716a60.047411 60.047411 0 1 1 0-120.733624z m0 0"></path></svg>',this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){return ZX(t)},t.prototype.exec=function(t,e){var n,r,o=yp.Editor.nodes(t,{match:function(t){return yp.Text.isText(t)},universal:!0});try{for(var i=fL(o),u=i.next();!u.done;u=i.next())QX(t,u.value[0])}catch(t){n={error:t}}finally{try{u&&!u.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},t}(),oJ=function(t){function e(){var e=t.apply(this,pL([],dL(arguments),!1))||this;return e.mark="code",e.title=dI("textStyle.code"),e.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M576 736l96 96 320-320L672 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224z"></path></svg>',e.hotkey="mod+e",e}return aL(e,t),e}(eJ),iJ=function(t){function e(){var e=t.apply(this,pL([],dL(arguments),!1))||this;return e.mark="italic",e.title=dI("textStyle.italic"),e.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',e.hotkey="mod+i",e}return aL(e,t),e}(eJ),uJ=function(t){function e(){var e=t.apply(this,pL([],dL(arguments),!1))||this;return e.mark="sub",e.marksNeedToRemove=["sup"],e.title=dI("textStyle.sub"),e.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M768 910.016v50.016h128v64h-192v-146.016l128-60V768h-128v-64h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',e.hotkey="",e}return aL(e,t),e}(eJ),aJ=function(t){function e(){var e=t.apply(this,pL([],dL(arguments),!1))||this;return e.mark="sup",e.marksNeedToRemove=["sub"],e.title=dI("textStyle.sup"),e.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M768 206.016v50.016h128v64h-192V174.016l128-60V64h-128V0h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',e.hotkey="",e}return aL(e,t),e}(eJ),sJ=function(t){function e(){var e=t.apply(this,pL([],dL(arguments),!1))||this;return e.mark="through",e.title=dI("textStyle.through"),e.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M1024 512v64h-234.496c27.52 38.496 42.496 82.688 42.496 128 0 70.88-36.672 139.04-100.576 186.976C672.064 935.488 594.144 960 512 960s-160.064-24.512-219.424-69.024C228.64 843.04 192 774.88 192 704h128c0 69.376 87.936 128 192 128s192-58.624 192-128-87.936-128-192-128H0v-64h299.52a385.984 385.984 0 0 1-6.944-5.024C228.64 459.04 192 390.88 192 320s36.672-139.04 100.576-186.976C351.936 88.512 429.856 64 512 64s160.064 24.512 219.424 69.024C795.328 180.96 832 249.12 832 320h-128c0-69.376-87.936-128-192-128s-192 58.624-192 128 87.936 128 192 128c78.976 0 154.048 22.688 212.48 64H1024z"></path></svg>',e.hotkey="mod+shift+x",e}return aL(e,t),e}(eJ),cJ=function(t){function e(){var e=t.apply(this,pL([],dL(arguments),!1))||this;return e.mark="underline",e.title=dI("textStyle.underline"),e.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M704 64l128 0 0 416c0 159.072-143.264 288-320 288s-320-128.928-320-288l0-416 128 0 0 416c0 40.16 18.24 78.688 51.36 108.512 36.896 33.216 86.848 51.488 140.64 51.488s103.744-18.304 140.64-51.488c33.12-29.792 51.36-68.352 51.36-108.512l0-416zM192 832l640 0 0 128-640 0z"></path></svg>',e.hotkey="mod+u",e}return aL(e,t),e}(eJ),lJ={key:"bold",factory:function(){return new nJ}},fJ={key:"code",factory:function(){return new oJ}},dJ={key:"italic",factory:function(){return new iJ}},pJ={key:"through",factory:function(){return new sJ}},hJ={key:"underline",factory:function(){return new cJ}},vJ={key:"sup",factory:function(){return new aJ}},gJ={key:"sub",factory:function(){return new uJ}},yJ={key:"clearStyle",factory:function(){return new rJ}},mJ={};!function(){if(tJ)return mJ;tJ=1;var t=_j(),e=Mz();t({target:"String",proto:!0,forced:zz()("bold")},{bold:function(){return e(this,"b","","")}})}();var bJ,EJ={};!function(){if(bJ)return EJ;bJ=1;var t=_j(),e=Mz();t({target:"String",proto:!0,forced:zz()("italics")},{italics:function(){return e(this,"i","","")}})}();var wJ,SJ={};!function(){if(wJ)return SJ;wJ=1;var t=_j(),e=Mz();t({target:"String",proto:!0,forced:zz()("sub")},{sub:function(){return e(this,"sub","","")}})}();var CJ,DJ={};function OJ(t,e){return 0!==t.length&&(!!t[0].matches(e)||t.find(e).length>0)}function AJ(t,e){var n=e,r=t,o=r.bold,i=r.italic,u=r.underline,a=r.code,s=r.through,c=r.sub,l=r.sup;return o&&(n="<strong>".concat(n,"</strong>")),a&&(n="<code>".concat(n,"</code>")),i&&(n="<em>".concat(n,"</em>")),u&&(n="<u>".concat(n,"</u>")),s&&(n="<s>".concat(n,"</s>")),c&&(n="<sub>".concat(n,"</sub>")),l&&(n="<sup>".concat(n,"</sup>")),n}!function(){if(CJ)return DJ;CJ=1;var t=_j(),e=Mz();t({target:"String",proto:!0,forced:zz()("sup")},{sup:function(){return e(this,"sup","","")}})}();var xJ={renderStyle:function(t,e){var n=t,r=n.bold,o=n.italic,i=n.underline,u=n.code,a=n.through,s=n.sub,c=n.sup,l=e;return r&&(l=dv("strong",null,l)),u&&(l=dv("code",null,l)),o&&(l=dv("em",null,l)),i&&(l=dv("u",null,l)),a&&(l=dv("s",null,l)),s&&(l=dv("sub",null,l)),c&&(l=dv("sup",null,l)),l},menus:[lJ,hJ,dJ,pJ,fJ,gJ,vJ,yJ],styleToHtml:function(t,e){if(!yp.Text.isText(t))return e;if(IM(e))return AJ(t,e);var n=Rp(e),r=n.html();return r=AJ(t,r),n.html(r),BM(n)},parseStyleHtml:function(t,e,n){var r=Rp(t);if(!yp.Text.isText(e))return e;var o=e;return OJ(r,"b,strong")&&(o.bold=!0),OJ(r,"i,em")&&(o.italic=!0),OJ(r,"u")&&(o.underline=!0),OJ(r,"s,strike")&&(o.through=!0),OJ(r,"sub")&&(o.sub=!0),OJ(r,"sup")&&(o.sup=!0),OJ(r,"code")&&(o.code=!0),o}},TJ=function(){function t(){this.title=dI("todo.todo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M278.755556 403.911111l-79.644445 79.644445L455.111111 739.555556l568.888889-568.888889-79.644444-79.644445L455.111111 580.266667l-176.355555-176.355556zM910.222222 910.222222H113.777778V113.777778h568.888889V0H113.777778C51.2 0 0 51.2 0 113.777778v796.444444c0 62.577778 51.2 113.777778 113.777778 113.777778h796.444444c62.577778 0 113.777778-51.2 113.777778-113.777778V455.111111h-113.777778v455.111111z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!!eP.getSelectedNodeByType(t,"todo")},t.prototype.isDisabled=function(t){return null==t.selection||!!eP.getSelectedElems(t).some(function(e){if(yp.Editor.isVoid(t,e)&&yp.Editor.isBlock(t,e))return!0;var n=e.type;return!!["pre","table","list-item"].includes(n)})},t.prototype.exec=function(t,e){var n=this.isActive(t);yp.Transforms.setNodes(t,{type:n?"paragraph":"todo"})},t}(),NJ={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(t,e,n){var r=Rp(t);0===(e=e.filter(function(t){return!!yp.Text.isText(t)||!!n.isInline(t)})).length&&(e=[{text:r.text().replace(/\s+/gm," ")}]);var o=!1;return null!=r.find('input[type="checkbox"]').attr("checked")&&(o=!0),{type:"todo",checked:o,children:e}}},PJ={type:"todo",renderElem:function(t,e,n){var r=!1;n.isDisabled()&&(r=!0);var o=dv("div",{style:{margin:"5px 0"}},dv("span",{contentEditable:!1,style:{marginRight:"0.5em"}},dv("input",{type:"checkbox",checked:t.checked,disabled:r,on:{change:function(e){var r=eP.findPath(n,t),o={checked:e.target.checked};yp.Transforms.setNodes(n,o,{at:r})}}})),dv("span",null,e));return o}},kJ={renderElems:[PJ],elemsToHtml:[{type:"todo",elemToHtml:function(t,e){var n=t.checked;return'<div data-w-e-type="todo"><input type="checkbox" disabled '.concat(n?"checked":"",">").concat(e,"</div>")}}],preParseHtml:[{selector:"ul.w-e-todo",preParseHtml:function(t){var e=Rp(t).find("li"),n=Rp('<div data-w-e-type="todo"></div>'),r=e.find("input[type]");return n.append(r),e.children()[0].remove(),n[0].innerHTML+=e[0].innerHTML,n[0]}}],parseElemsHtml:[NJ],menus:[{key:"todo",factory:function(){return new TJ}}],editorPlugin:function(t){var e=t.deleteBackward,n=t;return n.deleteBackward=function(n){var r=t.selection;if(r&&yp.Range.isCollapsed(r)){var o=eP.getSelectedNodeByType(t,"todo");if(o&&0===yp.Node.string(o).length)return void yp.Transforms.setNodes(t,{type:"paragraph"},{mode:"highest"})}e(n)},n}},IJ=function(){function t(){this.title=dI("undo.redo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0.00032 576a510.72 510.72 0 0 0 173.344 384l84.672-96A383.136 383.136 0 0 1 128.00032 576C128.00032 363.936 299.93632 192 512.00032 192c106.048 0 202.048 42.976 271.52 112.48L640.00032 448h384V64l-149.984 149.984A510.272 510.272 0 0 0 512.00032 64C229.21632 64 0.00032 293.216 0.00032 576z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){return null==t.selection},t.prototype.exec=function(t,e){"function"==typeof t.redo&&t.redo()},t}(),BJ=function(){function t(){this.title=dI("undo.undo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 64A510.272 510.272 0 0 0 149.984 213.984L0.032 64v384h384L240.512 304.48A382.784 382.784 0 0 1 512.032 192c212.064 0 384 171.936 384 384 0 114.688-50.304 217.632-130.016 288l84.672 96a510.72 510.72 0 0 0 173.344-384c0-282.784-229.216-512-512-512z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){return null==t.selection},t.prototype.exec=function(t,e){"function"==typeof t.undo&&t.undo()},t}(),FJ=[xJ,PH,HK,yX,CX,OX,pX,FH,_H,qX,Wz,KM,PY,JX,kJ,WK,{menus:[{key:"redo",factory:function(){return new IJ}},{key:"undo",factory:function(){return new BJ}}]},KK,IH];lI("en",{highLightModule:{selectLang:"Language"}}),lI("zh-CN",{highLightModule:{selectLang:"选择语言"}});var RJ="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var _J,jJ,LJ={};function MJ(){if(jJ)return _J;jJ=1;var t=function(t){return t&&t.Math===Math&&t};return _J=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof RJ&&RJ)||t("object"==typeof _J&&_J)||function(){return this}()||Function("return this")()}var zJ,HJ,$J,UJ,VJ,GJ,WJ,qJ,KJ={};function YJ(){return HJ?zJ:(HJ=1,zJ=function(t){try{return!!t()}catch(t){return!0}})}function XJ(){if(UJ)return $J;UJ=1;var t=YJ();return $J=!t(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function JJ(){if(GJ)return VJ;GJ=1;var t=YJ();return VJ=!t(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})}function ZJ(){if(qJ)return WJ;qJ=1;var t=JJ(),e=Function.prototype.call;return WJ=t?e.bind(e):function(){return e.apply(e,arguments)},WJ}var QJ,tZ,eZ,nZ,rZ,oZ,iZ,uZ,aZ,sZ,cZ,lZ,fZ,dZ,pZ,hZ,vZ,gZ,yZ,mZ,bZ,EZ,wZ,SZ,CZ,DZ,OZ,AZ,xZ,TZ,NZ,PZ,kZ,IZ,BZ,FZ,RZ,_Z,jZ,LZ,MZ,zZ={};function HZ(){if(QJ)return zZ;QJ=1;var t={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,n=e&&!t.call({1:2},1);return zZ.f=n?function(t){var n=e(this,t);return!!n&&n.enumerable}:t,zZ}function $Z(){return eZ?tZ:(eZ=1,tZ=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}})}function UZ(){if(rZ)return nZ;rZ=1;var t=JJ(),e=Function.prototype,n=e.call,r=t&&e.bind.bind(n,n);return nZ=t?r:function(t){return function(){return n.apply(t,arguments)}},nZ}function VZ(){if(iZ)return oZ;iZ=1;var t=UZ(),e=t({}.toString),n=t("".slice);return oZ=function(t){return n(e(t),8,-1)}}function GZ(){if(aZ)return uZ;aZ=1;var t=UZ(),e=YJ(),n=VZ(),r=Object,o=t("".split);return uZ=e(function(){return!r("z").propertyIsEnumerable(0)})?function(t){return"String"===n(t)?o(t,""):r(t)}:r}function WZ(){return cZ?sZ:(cZ=1,sZ=function(t){return null==t})}function qZ(){if(fZ)return lZ;fZ=1;var t=WZ(),e=TypeError;return lZ=function(n){if(t(n))throw new e("Can't call method on "+n);return n}}function KZ(){if(pZ)return dZ;pZ=1;var t=GZ(),e=qZ();return dZ=function(n){return t(e(n))}}function YZ(){if(vZ)return hZ;vZ=1;var t="object"==typeof document&&document.all;return hZ=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(t){return"function"==typeof t}}function XZ(){if(yZ)return gZ;yZ=1;var t=YZ();return gZ=function(e){return"object"==typeof e?null!==e:t(e)}}function JZ(){if(bZ)return mZ;bZ=1;var t=MJ(),e=YZ();return mZ=function(n,r){return arguments.length<2?(o=t[n],e(o)?o:void 0):t[n]&&t[n][r];var o},mZ}function ZZ(){if(wZ)return EZ;wZ=1;var t=UZ();return EZ=t({}.isPrototypeOf)}function QZ(){if(OZ)return DZ;OZ=1;var t,e,n=MJ(),r=function(){if(CZ)return SZ;CZ=1;var t=MJ().navigator,e=t&&t.userAgent;return SZ=e?String(e):""}(),o=n.process,i=n.Deno,u=o&&o.versions||i&&i.version,a=u&&u.v8;return a&&(e=(t=a.split("."))[0]>0&&t[0]<4?1:+(t[0]+t[1])),!e&&r&&(!(t=r.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=r.match(/Chrome\/(\d+)/))&&(e=+t[1]),DZ=e}function tQ(){if(xZ)return AZ;xZ=1;var t=QZ(),e=YJ(),n=MJ().String;return AZ=!!Object.getOwnPropertySymbols&&!e(function(){var e=Symbol("symbol detection");return!n(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&t&&t<41})}function eQ(){if(NZ)return TZ;NZ=1;var t=tQ();return TZ=t&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function nQ(){if(kZ)return PZ;kZ=1;var t=JZ(),e=YZ(),n=ZZ(),r=eQ(),o=Object;return PZ=r?function(t){return"symbol"==typeof t}:function(r){var i=t("Symbol");return e(i)&&n(i.prototype,o(r))}}function rQ(){if(RZ)return FZ;RZ=1;var t=YZ(),e=function(){if(BZ)return IZ;BZ=1;var t=String;return IZ=function(e){try{return t(e)}catch(t){return"Object"}}}(),n=TypeError;return FZ=function(r){if(t(r))return r;throw new n(e(r)+" is not a function")}}var oQ,iQ,uQ,aQ,sQ,cQ,lQ,fQ,dQ,pQ,hQ,vQ,gQ,yQ,mQ,bQ,EQ,wQ,SQ,CQ,DQ,OQ,AQ,xQ,TQ={exports:{}};function NQ(){if(aQ)return uQ;aQ=1;var t=MJ(),e=Object.defineProperty;return uQ=function(n,r){try{e(t,n,{value:r,configurable:!0,writable:!0})}catch(e){t[n]=r}return r}}function PQ(){if(sQ)return TQ.exports;sQ=1;var t=iQ?oQ:(iQ=1,oQ=!1),e=MJ(),n=NQ(),r="__core-js_shared__",o=TQ.exports=e[r]||n(r,{});return(o.versions||(o.versions=[])).push({version:"3.44.0",mode:t?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.44.0/LICENSE",source:"https://github.com/zloirock/core-js"}),TQ.exports}function kQ(){if(lQ)return cQ;lQ=1;var t=PQ();return cQ=function(e,n){return t[e]||(t[e]=n||{})}}function IQ(){if(dQ)return fQ;dQ=1;var t=qZ(),e=Object;return fQ=function(n){return e(t(n))}}function BQ(){if(hQ)return pQ;hQ=1;var t=UZ(),e=IQ(),n=t({}.hasOwnProperty);return pQ=Object.hasOwn||function(t,r){return n(e(t),r)}}function FQ(){if(gQ)return vQ;gQ=1;var t=UZ(),e=0,n=Math.random(),r=t(1.1.toString);return vQ=function(t){return"Symbol("+(void 0===t?"":t)+")_"+r(++e+n,36)}}function RQ(){if(mQ)return yQ;mQ=1;var t=MJ(),e=kQ(),n=BQ(),r=FQ(),o=tQ(),i=eQ(),u=t.Symbol,a=e("wks"),s=i?u.for||u:u&&u.withoutSetter||r;return yQ=function(t){return n(a,t)||(a[t]=o&&n(u,t)?u[t]:s("Symbol."+t)),a[t]}}function _Q(){if(EQ)return bQ;EQ=1;var t=ZJ(),e=XZ(),n=nQ(),r=function(){if(jZ)return _Z;jZ=1;var t=rQ(),e=WZ();return _Z=function(n,r){var o=n[r];return e(o)?void 0:t(o)}}(),o=function(){if(MZ)return LZ;MZ=1;var t=ZJ(),e=YZ(),n=XZ(),r=TypeError;return LZ=function(o,i){var u,a;if("string"===i&&e(u=o.toString)&&!n(a=t(u,o)))return a;if(e(u=o.valueOf)&&!n(a=t(u,o)))return a;if("string"!==i&&e(u=o.toString)&&!n(a=t(u,o)))return a;throw new r("Can't convert object to primitive value")}}(),i=RQ(),u=TypeError,a=i("toPrimitive");return bQ=function(i,s){if(!e(i)||n(i))return i;var c,l=r(i,a);if(l){if(void 0===s&&(s="default"),c=t(l,i,s),!e(c)||n(c))return c;throw new u("Can't convert object to primitive value")}return void 0===s&&(s="number"),o(i,s)}}function jQ(){if(SQ)return wQ;SQ=1;var t=_Q(),e=nQ();return wQ=function(n){var r=t(n,"string");return e(r)?r:r+""}}function LQ(){if(DQ)return CQ;DQ=1;var t=MJ(),e=XZ(),n=t.document,r=e(n)&&e(n.createElement);return CQ=function(t){return r?n.createElement(t):{}}}function MQ(){if(AQ)return OQ;AQ=1;var t=XJ(),e=YJ(),n=LQ();return OQ=!t&&!e(function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a})}function zQ(){if(xQ)return KJ;xQ=1;var t=XJ(),e=ZJ(),n=HZ(),r=$Z(),o=KZ(),i=jQ(),u=BQ(),a=MQ(),s=Object.getOwnPropertyDescriptor;return KJ.f=t?s:function(t,c){if(t=o(t),c=i(c),a)try{return s(t,c)}catch(t){}if(u(t,c))return r(!e(n.f,t,c),t[c])},KJ}var HQ,$Q,UQ,VQ,GQ,WQ,qQ,KQ={};function YQ(){if($Q)return HQ;$Q=1;var t=XJ(),e=YJ();return HQ=t&&e(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}function XQ(){if(VQ)return UQ;VQ=1;var t=XZ(),e=String,n=TypeError;return UQ=function(r){if(t(r))return r;throw new n(e(r)+" is not an object")}}function JQ(){if(GQ)return KQ;GQ=1;var t=XJ(),e=MQ(),n=YQ(),r=XQ(),o=jQ(),i=TypeError,u=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s="enumerable",c="configurable",l="writable";return KQ.f=t?n?function(t,e,n){if(r(t),e=o(e),r(n),"function"==typeof t&&"prototype"===e&&"value"in n&&l in n&&!n[l]){var i=a(t,e);i&&i[l]&&(t[e]=n.value,n={configurable:c in n?n[c]:i[c],enumerable:s in n?n[s]:i[s],writable:!1})}return u(t,e,n)}:u:function(t,n,a){if(r(t),n=o(n),r(a),e)try{return u(t,n,a)}catch(t){}if("get"in a||"set"in a)throw new i("Accessors not supported");return"value"in a&&(t[n]=a.value),t},KQ}function ZQ(){if(qQ)return WQ;qQ=1;var t=XJ(),e=JQ(),n=$Z();return WQ=t?function(t,r,o){return e.f(t,r,n(1,o))}:function(t,e,n){return t[e]=n,t}}var QQ,t0,e0,n0,r0,o0,i0,u0,a0,s0,c0,l0,f0,d0,p0,h0={exports:{}};function v0(){if(t0)return QQ;t0=1;var t=XJ(),e=BQ(),n=Function.prototype,r=t&&Object.getOwnPropertyDescriptor,o=e(n,"name"),i=o&&"something"===function(){}.name,u=o&&(!t||t&&r(n,"name").configurable);return QQ={EXISTS:o,PROPER:i,CONFIGURABLE:u}}function g0(){if(n0)return e0;n0=1;var t=UZ(),e=YZ(),n=PQ(),r=t(Function.toString);return e(n.inspectSource)||(n.inspectSource=function(t){return r(t)}),e0=n.inspectSource}function y0(){if(u0)return i0;u0=1;var t=kQ(),e=FQ(),n=t("keys");return i0=function(t){return n[t]||(n[t]=e(t))}}function m0(){return s0?a0:(s0=1,a0={})}function b0(){if(l0)return c0;l0=1;var t,e,n,r=function(){if(o0)return r0;o0=1;var t=MJ(),e=YZ(),n=t.WeakMap;return r0=e(n)&&/native code/.test(String(n))}(),o=MJ(),i=XZ(),u=ZQ(),a=BQ(),s=PQ(),c=y0(),l=m0(),f="Object already initialized",d=o.TypeError,p=o.WeakMap;if(r||s.state){var h=s.state||(s.state=new p);h.get=h.get,h.has=h.has,h.set=h.set,t=function(t,e){if(h.has(t))throw new d(f);return e.facade=t,h.set(t,e),e},e=function(t){return h.get(t)||{}},n=function(t){return h.has(t)}}else{var v=c("state");l[v]=!0,t=function(t,e){if(a(t,v))throw new d(f);return e.facade=t,u(t,v,e),e},e=function(t){return a(t,v)?t[v]:{}},n=function(t){return a(t,v)}}return c0={set:t,get:e,has:n,enforce:function(r){return n(r)?e(r):t(r,{})},getterFor:function(t){return function(n){var r;if(!i(n)||(r=e(n)).type!==t)throw new d("Incompatible receiver, "+t+" required");return r}}}}function E0(){if(p0)return d0;p0=1;var t=YZ(),e=JQ(),n=function(){if(f0)return h0.exports;f0=1;var t=UZ(),e=YJ(),n=YZ(),r=BQ(),o=XJ(),i=v0().CONFIGURABLE,u=g0(),a=b0(),s=a.enforce,c=a.get,l=String,f=Object.defineProperty,d=t("".slice),p=t("".replace),h=t([].join),v=o&&!e(function(){return 8!==f(function(){},"length",{value:8}).length}),g=String(String).split("String"),y=h0.exports=function(t,e,n){"Symbol("===d(l(e),0,7)&&(e="["+p(l(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!r(t,"name")||i&&t.name!==e)&&(o?f(t,"name",{value:e,configurable:!0}):t.name=e),v&&n&&r(n,"arity")&&t.length!==n.arity&&f(t,"length",{value:n.arity});try{n&&r(n,"constructor")&&n.constructor?o&&f(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var u=s(t);return r(u,"source")||(u.source=h(g,"string"==typeof e?e:"")),t};return Function.prototype.toString=y(function(){return n(this)&&c(this).source||u(this)},"toString"),h0.exports}(),r=NQ();return d0=function(o,i,u,a){a||(a={});var s=a.enumerable,c=void 0!==a.name?a.name:i;if(t(u)&&n(u,c,a),a.global)s?o[i]=u:r(i,u);else{try{a.unsafe?o[i]&&(s=!0):delete o[i]}catch(t){}s?o[i]=u:e.f(o,i,{value:u,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return o}}var w0,S0,C0,D0,O0,A0,x0,T0,N0,P0,k0,I0,B0,F0,R0,_0,j0,L0={};function M0(){if(D0)return C0;D0=1;var t=function(){if(S0)return w0;S0=1;var t=Math.ceil,e=Math.floor;return w0=Math.trunc||function(n){var r=+n;return(r>0?e:t)(r)}}();return C0=function(e){var n=+e;return n!=n||0===n?0:t(n)}}function z0(){if(P0)return N0;P0=1;var t=function(){if(T0)return x0;T0=1;var t=M0(),e=Math.min;return x0=function(n){var r=t(n);return r>0?e(r,9007199254740991):0}}();return N0=function(e){return t(e.length)}}function H0(){if(F0)return B0;F0=1;var t=UZ(),e=BQ(),n=KZ(),r=function(){if(I0)return k0;I0=1;var t=KZ(),e=function(){if(A0)return O0;A0=1;var t=M0(),e=Math.max,n=Math.min;return O0=function(r,o){var i=t(r);return i<0?e(i+o,0):n(i,o)}}(),n=z0(),r=function(r){return function(o,i,u){var a=t(o),s=n(a);if(0===s)return!r&&-1;var c,l=e(u,s);if(r&&i!=i){for(;s>l;)if((c=a[l++])!=c)return!0}else for(;s>l;l++)if((r||l in a)&&a[l]===i)return r||l||0;return!r&&-1}};return k0={includes:r(!0),indexOf:r(!1)}}().indexOf,o=m0(),i=t([].push);return B0=function(t,u){var a,s=n(t),c=0,l=[];for(a in s)!e(o,a)&&e(s,a)&&i(l,a);for(;u.length>c;)e(s,a=u[c++])&&(~r(l,a)||i(l,a));return l}}function $0(){return _0?R0:(_0=1,R0=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}var U0,V0,G0,W0,q0,K0,Y0,X0,J0,Z0,Q0,t1,e1,n1,r1,o1,i1,u1,a1,s1,c1={};function l1(){return U0||(U0=1,c1.f=Object.getOwnPropertySymbols),c1}function f1(){if(q0)return W0;q0=1;var t=BQ(),e=function(){if(G0)return V0;G0=1;var t=JZ(),e=UZ(),n=function(){if(j0)return L0;j0=1;var t=H0(),e=$0().concat("length","prototype");return L0.f=Object.getOwnPropertyNames||function(n){return t(n,e)},L0}(),r=l1(),o=XQ(),i=e([].concat);return V0=t("Reflect","ownKeys")||function(t){var e=n.f(o(t)),u=r.f;return u?i(e,u(t)):e}}(),n=zQ(),r=JQ();return W0=function(o,i,u){for(var a=e(i),s=r.f,c=n.f,l=0;l<a.length;l++){var f=a[l];t(o,f)||u&&t(u,f)||s(o,f,c(i,f))}}}function d1(){if(J0)return X0;J0=1;var t=MJ(),e=zQ().f,n=ZQ(),r=E0(),o=NQ(),i=f1(),u=function(){if(Y0)return K0;Y0=1;var t=YJ(),e=YZ(),n=/#|\.prototype\./,r=function(n,r){var s=i[o(n)];return s===a||s!==u&&(e(r)?t(r):!!r)},o=r.normalize=function(t){return String(t).replace(n,".").toLowerCase()},i=r.data={},u=r.NATIVE="N",a=r.POLYFILL="P";return K0=r}();return X0=function(a,s){var c,l,f,d,p,h=a.target,v=a.global,g=a.stat;if(c=v?t:g?t[h]||o(h,{}):t[h]&&t[h].prototype)for(l in s){if(d=s[l],f=a.dontCallGetSet?(p=e(c,l))&&p.value:c[l],!u(v?l:h+(g?".":"#")+l,a.forced)&&void 0!==f){if(typeof d==typeof f)continue;i(d,f)}(a.sham||f&&f.sham)&&n(d,"sham",!0),r(c,l,d,a)}}}function p1(){if(Q0)return Z0;Q0=1;var t={};return t[RQ()("toStringTag")]="z",Z0="[object z]"===String(t)}function h1(){if(e1)return t1;e1=1;var t=p1(),e=YZ(),n=VZ(),r=RQ()("toStringTag"),o=Object,i="Arguments"===n(function(){return arguments}());return t1=t?n:function(t){var u,a,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(a=function(t,e){try{return t[e]}catch(t){}}(u=o(t),r))?a:i?n(u):"Object"===(s=n(u))&&e(u.callee)?"Arguments":s}}function v1(){if(r1)return n1;r1=1;var t=h1(),e=String;return n1=function(n){if("Symbol"===t(n))throw new TypeError("Cannot convert a Symbol value to a string");return e(n)}}!function(){if(s1)return LJ;s1=1;var t=d1(),e=function(){if(i1)return o1;i1=1;var t=UZ(),e=qZ(),n=v1(),r=/"/g,o=t("".replace);return o1=function(t,i,u,a){var s=n(e(t)),c="<"+i;return""!==u&&(c+=" "+u+'="'+o(n(a),r,"&quot;")+'"'),c+">"+s+"</"+i+">"}}(),n=function(){if(a1)return u1;a1=1;var t=YJ();return u1=function(e){return t(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})}}();t({target:"String",proto:!0,forced:n("anchor")},{anchor:function(t){return e(this,"a","name",t)}})}(),"function"==typeof SuppressedError&&SuppressedError;var g1,y1,m1,b1={};!function(){if(m1)return b1;m1=1;var t=p1(),e=E0(),n=function(){if(y1)return g1;y1=1;var t=p1(),e=h1();return g1=t?{}.toString:function(){return"[object "+e(this)+"]"}}();t||e(Object.prototype,"toString",n,{unsafe:!0})}();var E1,w1,S1,C1,D1,O1,A1,x1,T1={exports:{}},N1=function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}((E1||(E1=1,function(t){var e=function(t){var e=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,r={},o={manual:t.Prism&&t.Prism.manual,disableWorkerMessageHandler:t.Prism&&t.Prism.disableWorkerMessageHandler,util:{encode:function t(e){return e instanceof i?new i(e.type,t(e.content),e.alias):Array.isArray(e)?e.map(t):e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(t){return Object.prototype.toString.call(t).slice(8,-1)},objId:function(t){return t.__id||Object.defineProperty(t,"__id",{value:++n}),t.__id},clone:function t(e,n){var r,i;switch(n=n||{},o.util.type(e)){case"Object":if(i=o.util.objId(e),n[i])return n[i];for(var u in r={},n[i]=r,e)e.hasOwnProperty(u)&&(r[u]=t(e[u],n));return r;case"Array":return i=o.util.objId(e),n[i]?n[i]:(r=[],n[i]=r,e.forEach(function(e,o){r[o]=t(e,n)}),r);default:return e}},getLanguage:function(t){for(;t;){var n=e.exec(t.className);if(n)return n[1].toLowerCase();t=t.parentElement}return"none"},setLanguage:function(t,n){t.className=t.className.replace(RegExp(e,"gi"),""),t.classList.add("language-"+n)},currentScript:function(){if("undefined"==typeof document)return null;if(document.currentScript&&"SCRIPT"===document.currentScript.tagName)return document.currentScript;try{throw new Error}catch(r){var t=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(t){var e=document.getElementsByTagName("script");for(var n in e)if(e[n].src==t)return e[n]}return null}},isActive:function(t,e,n){for(var r="no-"+e;t;){var o=t.classList;if(o.contains(e))return!0;if(o.contains(r))return!1;t=t.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(t,e){var n=o.util.clone(o.languages[t]);for(var r in e)n[r]=e[r];return n},insertBefore:function(t,e,n,r){var i=(r=r||o.languages)[t],u={};for(var a in i)if(i.hasOwnProperty(a)){if(a==e)for(var s in n)n.hasOwnProperty(s)&&(u[s]=n[s]);n.hasOwnProperty(a)||(u[a]=i[a])}var c=r[t];return r[t]=u,o.languages.DFS(o.languages,function(e,n){n===c&&e!=t&&(this[e]=u)}),u},DFS:function t(e,n,r,i){i=i||{};var u=o.util.objId;for(var a in e)if(e.hasOwnProperty(a)){n.call(e,a,e[a],r||a);var s=e[a],c=o.util.type(s);"Object"!==c||i[u(s)]?"Array"!==c||i[u(s)]||(i[u(s)]=!0,t(s,n,a,i)):(i[u(s)]=!0,t(s,n,null,i))}}},plugins:{},highlightAll:function(t,e){o.highlightAllUnder(document,t,e)},highlightAllUnder:function(t,e,n){var r={callback:n,container:t,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};o.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),o.hooks.run("before-all-elements-highlight",r);for(var i,u=0;i=r.elements[u++];)o.highlightElement(i,!0===e,r.callback)},highlightElement:function(e,n,r){var i=o.util.getLanguage(e),u=o.languages[i];o.util.setLanguage(e,i);var a=e.parentElement;a&&"pre"===a.nodeName.toLowerCase()&&o.util.setLanguage(a,i);var s={element:e,language:i,grammar:u,code:e.textContent};function c(t){s.highlightedCode=t,o.hooks.run("before-insert",s),s.element.innerHTML=s.highlightedCode,o.hooks.run("after-highlight",s),o.hooks.run("complete",s),r&&r.call(s.element)}if(o.hooks.run("before-sanity-check",s),(a=s.element.parentElement)&&"pre"===a.nodeName.toLowerCase()&&!a.hasAttribute("tabindex")&&a.setAttribute("tabindex","0"),!s.code)return o.hooks.run("complete",s),void(r&&r.call(s.element));if(o.hooks.run("before-highlight",s),s.grammar)if(n&&t.Worker){var l=new Worker(o.filename);l.onmessage=function(t){c(t.data)},l.postMessage(JSON.stringify({language:s.language,code:s.code,immediateClose:!0}))}else c(o.highlight(s.code,s.grammar,s.language));else c(o.util.encode(s.code))},highlight:function(t,e,n){var r={code:t,grammar:e,language:n};if(o.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=o.tokenize(r.code,r.grammar),o.hooks.run("after-tokenize",r),i.stringify(o.util.encode(r.tokens),r.language)},tokenize:function(t,e){var n=e.rest;if(n){for(var r in n)e[r]=n[r];delete e.rest}var o=new s;return c(o,o.head,t),a(t,o,e,o.head,0),function(t){for(var e=[],n=t.head.next;n!==t.tail;)e.push(n.value),n=n.next;return e}(o)},hooks:{all:{},add:function(t,e){var n=o.hooks.all;n[t]=n[t]||[],n[t].push(e)},run:function(t,e){var n=o.hooks.all[t];if(n&&n.length)for(var r,i=0;r=n[i++];)r(e)}},Token:i};function i(t,e,n,r){this.type=t,this.content=e,this.alias=n,this.length=0|(r||"").length}function u(t,e,n,r){t.lastIndex=e;var o=t.exec(n);if(o&&r&&o[1]){var i=o[1].length;o.index+=i,o[0]=o[0].slice(i)}return o}function a(t,e,n,r,s,f){for(var d in n)if(n.hasOwnProperty(d)&&n[d]){var p=n[d];p=Array.isArray(p)?p:[p];for(var h=0;h<p.length;++h){if(f&&f.cause==d+","+h)return;var v=p[h],g=v.inside,y=!!v.lookbehind,m=!!v.greedy,b=v.alias;if(m&&!v.pattern.global){var E=v.pattern.toString().match(/[imsuy]*$/)[0];v.pattern=RegExp(v.pattern.source,E+"g")}for(var w=v.pattern||v,S=r.next,C=s;S!==e.tail&&!(f&&C>=f.reach);C+=S.value.length,S=S.next){var D=S.value;if(e.length>t.length)return;if(!(D instanceof i)){var O,A=1;if(m){if(!(O=u(w,C,t,y))||O.index>=t.length)break;var x=O.index,T=O.index+O[0].length,N=C;for(N+=S.value.length;x>=N;)N+=(S=S.next).value.length;if(C=N-=S.value.length,S.value instanceof i)continue;for(var P=S;P!==e.tail&&(N<T||"string"==typeof P.value);P=P.next)A++,N+=P.value.length;A--,D=t.slice(C,N),O.index-=C}else if(!(O=u(w,0,D,y)))continue;x=O.index;var k=O[0],I=D.slice(0,x),B=D.slice(x+k.length),F=C+D.length;f&&F>f.reach&&(f.reach=F);var R=S.prev;if(I&&(R=c(e,R,I),C+=I.length),l(e,R,A),S=c(e,R,new i(d,g?o.tokenize(k,g):k,b,k)),B&&c(e,S,B),A>1){var _={cause:d+","+h,reach:F};a(t,e,n,S.prev,C,_),f&&_.reach>f.reach&&(f.reach=_.reach)}}}}}}function s(){var t={value:null,prev:null,next:null},e={value:null,prev:t,next:null};t.next=e,this.head=t,this.tail=e,this.length=0}function c(t,e,n){var r=e.next,o={value:n,prev:e,next:r};return e.next=o,r.prev=o,t.length++,o}function l(t,e,n){for(var r=e.next,o=0;o<n&&r!==t.tail;o++)r=r.next;e.next=r,r.prev=e,t.length-=o}if(t.Prism=o,i.stringify=function t(e,n){if("string"==typeof e)return e;if(Array.isArray(e)){var r="";return e.forEach(function(e){r+=t(e,n)}),r}var i={type:e.type,content:t(e.content,n),tag:"span",classes:["token",e.type],attributes:{},language:n},u=e.alias;u&&(Array.isArray(u)?Array.prototype.push.apply(i.classes,u):i.classes.push(u)),o.hooks.run("wrap",i);var a="";for(var s in i.attributes)a+=" "+s+'="'+(i.attributes[s]||"").replace(/"/g,"&quot;")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+a+">"+i.content+"</"+i.tag+">"},!t.document)return t.addEventListener?(o.disableWorkerMessageHandler||t.addEventListener("message",function(e){var n=JSON.parse(e.data),r=n.language,i=n.code,u=n.immediateClose;t.postMessage(o.highlight(i,o.languages[r],r)),u&&t.close()},!1),o):o;var f=o.util.currentScript();function d(){o.manual||o.highlightAll()}if(f&&(o.filename=f.src,f.hasAttribute("data-manual")&&(o.manual=!0)),!o.manual){var p=document.readyState;"loading"===p||"interactive"===p&&f&&f.defer?document.addEventListener("DOMContentLoaded",d):window.requestAnimationFrame?window.requestAnimationFrame(d):window.setTimeout(d,16)}return o}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});
19
+ */function i(e,t){const n=/\$/g;let r=[e];if(null==t)return r;for(const e of Object.keys(t))if("_"!==e){let i=t[e];"string"==typeof i&&(i=n[Symbol.replace](i,"$$$$")),r=o(r,new RegExp(`%\\{${e}\\}`,"g"),i)}return r}var a=n("apply");function s(e){if(null==e||!e.strings)return;const t=this.locale;this.locale={...t,strings:{...t.strings,...e.strings}},this.locale.pluralize=e.pluralize||t.pluralize}return zE=class{constructor(t){Object.defineProperty(this,a,{value:s}),this.locale={strings:{},pluralize:e=>1===e?0:1},Array.isArray(t)?t.forEach(e(this,a)[a],this):e(this,a)[a](t)}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){if(!r(this.locale.strings,e))throw new Error(`missing string: ${e}`);const n=this.locale.strings[e];if("object"==typeof n){if(t&&void 0!==t.smart_count){return i(n[this.locale.pluralize(t.smart_count)],t)}throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return i(n,t)}},zE}function gC(){return VE||(VE=1,UE=function(){var e={},t=e._fns={};return e.emit=function(e,n,r,o,i,a,s){var u=function(e){var n=t[e]?t[e]:[],r=e.indexOf(":"),o=-1===r?[e]:[e.substring(0,r),e.substring(r+1)],i=Object.keys(t),a=0,s=i.length;for(;a<s;a++){var u=i[a];if("*"===u&&(n=n.concat(t[u])),2===o.length&&o[0]===u){n=n.concat(t[u]);break}}return n}(e);u.length&&function(e,t,n){var r=0,o=t.length;for(;r<o&&t[r];r++)t[r].event=e,t[r].apply(t[r],n)}(e,u,[n,r,o,i,a,s])},e.on=function(e,n){t[e]||(t[e]=[]),t[e].push(n)},e.once=function(t,n){this.on(t,function r(){n.apply(this,arguments),e.off(t,r)})},e.off=function(e,t){var n=[];if(e&&t)for(var r=this._fns[e],o=0,i=r?r.length:0;o<i;o++)r[o]!==t&&n.push(r[o]);n.length?this._fns[e]=n:delete this._fns[e]},e}),UE}function vC(){if(GE)return WE;GE=1;var e=0;function t(t){return"__private_"+e+++"_"+t}var n=t("publish");class r{constructor(){Object.defineProperty(this,n,{value:o}),this.state={},this.callbacks=[]}getState(){return this.state}setState(e){const t={...this.state},r={...this.state,...e};this.state=r,function(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}(this,n)[n](t,r,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}}function o(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.callbacks.forEach(e=>{e(...t)})}return r.VERSION="2.1.1",WE=function(){return new r}}function mC(){if(KE)return qE;return KE=1,qE=function(e){const t=e.lastIndexOf(".");return-1===t||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}}}function yC(){return XE?YE:(XE=1,YE={md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",gif:"image/gif",heic:"image/heic",heif:"image/heif",yaml:"text/yaml",yml:"text/yaml",csv:"text/csv",tsv:"text/tab-separated-values",tab:"text/tab-separated-values",avi:"video/x-msvideo",mks:"video/x-matroska",mkv:"video/x-matroska",mov:"video/quicktime",dicom:"application/dicom",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroenabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlc:"application/vnd.ms-excel",xlf:"application/x-xliff+xml",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroenabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",txt:"text/plain",text:"text/plain",conf:"text/plain",log:"text/plain",pdf:"application/pdf",zip:"application/zip","7z":"application/x-7z-compressed",rar:"application/x-rar-compressed",tar:"application/x-tar",gz:"application/gzip",dmg:"application/x-apple-diskimage"})}function bC(){if(uC)return sC;uC=1;var e=kE(),t=BE(),n=fC();let r,o;function i(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var a=0;function s(e){return"__private_"+a+++"_"+e}const u=hC(),l=gC(),c=Ky(),d=vC(),f=function(){if(JE)return ZE;JE=1;const e=mC(),t=yC();return ZE=function(n){var r;if(n.type)return n.type;const o=n.name?null==(r=e(n.name).extension)?void 0:r.toLowerCase():null;return o&&o in t?t[o]:"application/octet-stream"}}(),p=mC(),h=function(){if(eC)return QE;function e(e){let t="";return e.replace(/[^A-Z0-9]/gi,e=>(t+=`-${function(e){return e.charCodeAt(0).toString(32)}(e)}`,"/"))+t}return eC=1,QE=function(t){let n="uppy";return"string"==typeof t.name&&(n+=`-${e(t.name.toLowerCase())}`),void 0!==t.type&&(n+=`-${t.type}`),t.meta&&"string"==typeof t.meta.relativePath&&(n+=`-${e(t.meta.relativePath.toLowerCase())}`),void 0!==t.data.size&&(n+=`-${t.data.size}`),void 0!==t.data.lastModified&&(n+=`-${t.data.lastModified}`),n}}(),g=(nC||(nC=1,tC=function(e){if(null==e&&"undefined"!=typeof navigator&&(e=navigator.userAgent),!e)return!0;const t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;const n=t[1];let[r,o]=n.split(".");return r=parseInt(r,10),o=parseInt(o,10),r<15||15===r&&o<15063||r>18||18===r&&o>=18218}),tC),v=oC?rC:(oC=1,rC=function(e,t){return t.name?t.name:"image"===e.split("/")[0]?`${e.split("/")[0]}.${e.split("/")[1]}`:"noname"}),m=aC?iC:(aC=1,iC={strings:{addBulkFilesFailed:{0:"Failed to add %{smart_count} file due to an internal error",1:"Failed to add %{smart_count} files due to internal errors"},youCanOnlyUploadX:{0:"You can only upload %{smart_count} file",1:"You can only upload %{smart_count} files"},youHaveToAtLeastSelectX:{0:"You have to select at least %{smart_count} file",1:"You have to select at least %{smart_count} files"},exceedsSize:"%{file} exceeds maximum allowed size of %{size}",missingRequiredMetaField:"Missing required meta fields",missingRequiredMetaFieldOnFile:"Missing required meta fields in %{fileName}",inferiorSize:"This file is smaller than the allowed size of %{size}",youCanOnlyUploadFileTypes:"You can only upload: %{types}",noMoreFilesAllowed:"Cannot add more files",noDuplicates:"Cannot add the duplicate file '%{fileName}', it already exists",companionError:"Connection with Companion failed",authAborted:"Authentication aborted",companionUnauthorizeHint:"To unauthorize to your %{provider} account, please go to %{url}",failedToUpload:"Failed to upload %{file}",noInternetConnection:"No Internet connection",connectedToInternet:"Connected to the Internet",noFilesFound:"You have no files or folders here",selectX:{0:"Select %{smart_count}",1:"Select %{smart_count}"},allFilesFromFolderNamed:"All files from folder %{name}",openFolderNamed:"Open folder %{name}",cancel:"Cancel",logOut:"Log out",filter:"Filter",resetFilter:"Reset filter",loading:"Loading...",authenticateWithTitle:"Please authenticate with %{pluginName} to select files",authenticateWith:"Connect to %{pluginName}",signInWithGoogle:"Sign in with Google",searchImages:"Search for images",enterTextToSearch:"Enter text to search for images",search:"Search",emptyFolderAdded:"No files were added from empty folder",folderAlreadyAdded:'The folder "%{folder}" was already added',folderAdded:{0:"Added %{smart_count} file from %{folder}",1:"Added %{smart_count} files from %{folder}"}}});var y=s("plugins"),b=s("restricter"),E=s("storeUnsubscribe"),C=s("emitter"),w=s("preProcessors"),D=s("uploaders"),A=s("postProcessors"),S=s("informAndEmit"),x=s("checkRequiredMetaFieldsOnFile"),T=s("checkRequiredMetaFields"),O=s("assertNewUploadAllowed"),N=s("checkAndCreateFileStateObject"),B=s("startIfAutoProceed"),k=s("addListeners"),F=s("updateOnlineStatus"),P=s("createUpload"),I=s("getUpload"),_=s("removeUpload"),R=s("runUpload");r=Symbol.for("uppy test: getPlugins"),o=Symbol.for("uppy test: createUpload");class L{constructor(e){Object.defineProperty(this,R,{value:K}),Object.defineProperty(this,_,{value:q}),Object.defineProperty(this,I,{value:G}),Object.defineProperty(this,P,{value:W}),Object.defineProperty(this,k,{value:V}),Object.defineProperty(this,B,{value:U}),Object.defineProperty(this,N,{value:$}),Object.defineProperty(this,O,{value:z}),Object.defineProperty(this,T,{value:H}),Object.defineProperty(this,x,{value:j}),Object.defineProperty(this,S,{value:M}),Object.defineProperty(this,y,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,b,{writable:!0,value:void 0}),Object.defineProperty(this,E,{writable:!0,value:void 0}),Object.defineProperty(this,C,{writable:!0,value:l()}),Object.defineProperty(this,w,{writable:!0,value:new Set}),Object.defineProperty(this,D,{writable:!0,value:new Set}),Object.defineProperty(this,A,{writable:!0,value:new Set}),Object.defineProperty(this,F,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=m;const r={id:"uppy",autoProceed:!1,allowMultipleUploads:!0,allowMultipleUploadBatches:!0,debug:!1,restrictions:n.defaultOptions,meta:{},onBeforeFileAdded:e=>e,onBeforeUpload:e=>e,store:d(),logger:t.justErrorsLogger,infoTimeout:5e3};this.opts={...r,...e,restrictions:{...r.restrictions,...e&&e.restrictions}},e&&e.logger&&e.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):e&&e.debug&&(this.opts.logger=t.debugLogger),this.log(`Using Core v${this.constructor.VERSION}`),this.i18nInit(),this.calculateProgress=c(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:g(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),i(this,b)[b]=new n.Restricter(()=>this.opts,this.i18n),i(this,E)[E]=this.store.subscribe((e,t,n)=>{this.emit("state-update",e,t,n),this.updateAll(t)}),this.opts.debug&&"undefined"!=typeof window&&(window[this.opts.id]=this),i(this,k)[k]()}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i(this,C)[C].emit(e,...n)}on(e,t){return i(this,C)[C].on(e,t),this}once(e,t){return i(this,C)[C].once(e,t),this}off(e,t){return i(this,C)[C].off(e,t),this}updateAll(e){this.iteratePlugins(t=>{t.update(e)})}setState(e){this.store.setState(e)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(e,t){if(!this.getState().files[e])throw new Error(`Can’t set state for ${e} (the file could have been removed)`);this.setState({files:{...this.getState().files,[e]:{...this.getState().files[e],...t}}})}i18nInit(){const e=new u([this.defaultLocale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.locale=e.locale}setOptions(e){this.opts={...this.opts,...e,restrictions:{...this.opts.restrictions,...e&&e.restrictions}},e.meta&&this.setMeta(e.meta),this.i18nInit(),e.locale&&this.iteratePlugins(e=>{e.setOptions()}),this.setState()}resetProgress(){const e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},t={...this.getState().files},n={};Object.keys(t).forEach(r=>{const o={...t[r]};o.progress={...o.progress,...e},n[r]=o}),this.setState({files:n,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(e){i(this,w)[w].add(e)}removePreProcessor(e){return i(this,w)[w].delete(e)}addPostProcessor(e){i(this,A)[A].add(e)}removePostProcessor(e){return i(this,A)[A].delete(e)}addUploader(e){i(this,D)[D].add(e)}removeUploader(e){return i(this,D)[D].delete(e)}setMeta(e){const t={...this.getState().meta,...e},n={...this.getState().files};Object.keys(n).forEach(t=>{n[t]={...n[t],meta:{...n[t].meta,...e}}}),this.log("Adding metadata:"),this.log(e),this.setState({meta:t,files:n})}setFileMeta(e,t){const n={...this.getState().files};if(!n[e])return void this.log("Was trying to set metadata for a file that has been removed: ",e);const r={...n[e].meta,...t};n[e]={...n[e],meta:r},this.setState({files:n})}getFile(e){return this.getState().files[e]}getFiles(){const{files:e}=this.getState();return Object.values(e)}getObjectOfFilesPerState(){const{files:e,totalProgress:t,error:n}=this.getState(),r=Object.values(e),o=r.filter(e=>{let{progress:t}=e;return!t.uploadComplete&&t.uploadStarted}),i=r.filter(e=>!e.progress.uploadStarted),a=r.filter(e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess),s=r.filter(e=>e.progress.uploadStarted),u=r.filter(e=>e.isPaused),l=r.filter(e=>e.progress.uploadComplete),c=r.filter(e=>e.error),d=o.filter(e=>!e.isPaused),f=r.filter(e=>e.progress.preprocess||e.progress.postprocess);return{newFiles:i,startedFiles:a,uploadStartedFiles:s,pausedFiles:u,completeFiles:l,erroredFiles:c,inProgressFiles:o,inProgressNotPausedFiles:d,processingFiles:f,isUploadStarted:s.length>0,isAllComplete:100===t&&l.length===r.length&&0===f.length,isAllErrored:!!n&&c.length===r.length,isAllPaused:0!==o.length&&u.length===o.length,isUploadInProgress:o.length>0,isSomeGhost:r.some(e=>e.isGhost)}}validateRestrictions(e,t){void 0===t&&(t=this.getFiles());try{return i(this,b)[b].validate(e,t),{result:!0}}catch(e){return{result:!1,reason:e.message}}}checkIfFileAlreadyExists(e){const{files:t}=this.getState();return!(!t[e]||t[e].isGhost)}addFile(e){i(this,O)[O](e);const{files:t}=this.getState();let n=i(this,N)[N](t,e);return t[n.id]&&t[n.id].isGhost&&(n={...t[n.id],data:e.data,isGhost:!1},this.log(`Replaced the blob in the restored ghost file: ${n.name}, ${n.id}`)),this.setState({files:{...t,[n.id]:n}}),this.emit("file-added",n),this.emit("files-added",[n]),this.log(`Added file: ${n.name}, ${n.id}, mime type: ${n.type}`),i(this,B)[B](),n.id}addFiles(e){i(this,O)[O]();const t={...this.getState().files},n=[],r=[];for(let o=0;o<e.length;o++)try{let r=i(this,N)[N](t,e[o]);t[r.id]&&t[r.id].isGhost&&(r={...t[r.id],data:e[o].data,isGhost:!1},this.log(`Replaced blob in a ghost file: ${r.name}, ${r.id}`)),t[r.id]=r,n.push(r)}catch(e){e.isRestriction||r.push(e)}if(this.setState({files:t}),n.forEach(e=>{this.emit("file-added",e)}),this.emit("files-added",n),n.length>5?this.log(`Added batch of ${n.length} files`):Object.keys(n).forEach(e=>{this.log(`Added file: ${n[e].name}\n id: ${n[e].id}\n type: ${n[e].type}`)}),n.length>0&&i(this,B)[B](),r.length>0){let e="Multiple errors occurred while adding files:\n";if(r.forEach(t=>{e+=`\n * ${t.message}`}),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:r.length}),details:e},"error",this.opts.infoTimeout),"function"==typeof AggregateError)throw new AggregateError(r,e);{const t=new Error(e);throw t.errors=r,t}}}removeFiles(e,t){const{files:n,currentUploads:r}=this.getState(),o={...n},i={...r},a=Object.create(null);function s(e){return void 0===a[e]}e.forEach(e=>{n[e]&&(a[e]=n[e],delete o[e])}),Object.keys(i).forEach(e=>{const t=r[e].fileIDs.filter(s);if(0===t.length)return void delete i[e];const{capabilities:n}=this.getState();if(t.length!==r[e].fileIDs.length&&!n.individualCancellation)throw new Error("individualCancellation is disabled");i[e]={...r[e],fileIDs:t}});const u={currentUploads:i,files:o};0===Object.keys(o).length&&(u.allowNewUpload=!0,u.error=null,u.recoveredState=null),this.setState(u),this.calculateTotalProgress();const l=Object.keys(a);l.forEach(e=>{this.emit("file-removed",a[e],t)}),l.length>5?this.log(`Removed ${l.length} files`):this.log(`Removed files: ${l.join(", ")}`)}removeFile(e,t){void 0===t&&(t=null),this.removeFiles([e],t)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).uploadComplete)return;const t=!(this.getFile(e).isPaused||!1);return this.setFileState(e,{isPaused:t}),this.emit("upload-pause",e,t),t}pauseAll(){const e={...this.getState().files};Object.keys(e).filter(t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted).forEach(t=>{const n={...e[t],isPaused:!0};e[t]=n}),this.setState({files:e}),this.emit("pause-all")}resumeAll(){const e={...this.getState().files};Object.keys(e).filter(t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted).forEach(t=>{const n={...e[t],isPaused:!1,error:null};e[t]=n}),this.setState({files:e}),this.emit("resume-all")}retryAll(){const e={...this.getState().files},t=Object.keys(e).filter(t=>e[t].error);if(t.forEach(t=>{const n={...e[t],isPaused:!1,error:null};e[t]=n}),this.setState({files:e,error:null}),this.emit("retry-all",t),0===t.length)return Promise.resolve({successful:[],failed:[]});const n=i(this,P)[P](t,{forceAllowNewUpload:!0});return i(this,R)[R](n)}cancelAll(e){let{reason:t="user"}=void 0===e?{}:e;if(this.emit("cancel-all",{reason:t}),"user"===t){const{files:e}=this.getState(),t=Object.keys(e);t.length&&this.removeFiles(t,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}}retryUpload(e){this.setFileState(e,{error:null,isPaused:!1}),this.emit("upload-retry",e);const t=i(this,P)[P]([e],{forceAllowNewUpload:!0});return i(this,R)[R](t)}reset(){this.cancelAll(...arguments)}logout(){this.iteratePlugins(e=>{e.provider&&e.provider.logout&&e.provider.logout()})}calculateProgress(e,t){if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);const n=Number.isFinite(t.bytesTotal)&&t.bytesTotal>0;this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,bytesUploaded:t.bytesUploaded,bytesTotal:t.bytesTotal,percentage:n?Math.round(t.bytesUploaded/t.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){const e=this.getFiles().filter(e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess);if(0===e.length)return this.emit("progress",0),void this.setState({totalProgress:0});const t=e.filter(e=>null!=e.progress.bytesTotal),n=e.filter(e=>null==e.progress.bytesTotal);if(0===t.length){const t=100*e.length,r=n.reduce((e,t)=>e+t.progress.percentage,0),o=Math.round(r/t*100);return void this.setState({totalProgress:o})}let r=t.reduce((e,t)=>e+t.progress.bytesTotal,0);const o=r/t.length;r+=o*n.length;let i=0;t.forEach(e=>{i+=e.progress.bytesUploaded}),n.forEach(e=>{i+=o*(e.progress.percentage||0)/100});let a=0===r?0:Math.round(i/r*100);a>100&&(a=100),this.setState({totalProgress:a}),this.emit("progress",a)}updateOnlineStatus(){void 0===window.navigator.onLine||window.navigator.onLine?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(e,t){if("function"!=typeof e){throw new TypeError(`Expected a plugin class, but got ${null===e?"null":typeof e}. Please verify that the plugin was imported and spelled correctly.`)}const n=new e(this,t),r=n.id;if(!r)throw new Error("Your plugin must have an id");if(!n.type)throw new Error("Your plugin must have a type");const o=this.getPlugin(r);if(o){const e=`Already found a plugin named '${o.id}'. Tried to use: '${r}'.\nUppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(e)}return e.VERSION&&this.log(`Using ${r} v${e.VERSION}`),n.type in i(this,y)[y]?i(this,y)[y][n.type].push(n):i(this,y)[y][n.type]=[n],n.install(),this}getPlugin(e){for(const t of Object.values(i(this,y)[y])){const n=t.find(t=>t.id===e);if(null!=n)return n}}[r](e){return i(this,y)[y][e]}iteratePlugins(e){Object.values(i(this,y)[y]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const t=i(this,y)[y][e.type],n=t.findIndex(t=>t.id===e.id);-1!==n&&t.splice(n,1);const r={plugins:{...this.getState().plugins,[e.id]:void 0}};this.setState(r)}close(e){let{reason:t}=void 0===e?{}:e;this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.cancelAll({reason:t}),i(this,E)[E](),this.iteratePlugins(e=>{this.removePlugin(e)}),"undefined"!=typeof window&&window.removeEventListener&&(window.removeEventListener("online",i(this,F)[F]),window.removeEventListener("offline",i(this,F)[F]))}hideInfo(){const{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,t,n){void 0===t&&(t="info"),void 0===n&&(n=3e3);const r="object"==typeof e;this.setState({info:[...this.getState().info,{type:t,message:r?e.message:e,details:r?e.details:null}]}),setTimeout(()=>this.hideInfo(),n),this.emit("info-visible")}log(e,t){const{logger:n}=this.opts;switch(t){case"error":n.error(e);break;case"warning":n.warn(e);break;default:n.debug(e)}}restore(e){return this.log(`Core: attempting to restore upload "${e}"`),this.getState().currentUploads[e]?i(this,R)[R](e):(i(this,_)[_](e),Promise.reject(new Error("Nonexistent upload")))}[o](){return i(this,P)[P](...arguments)}addResultData(e,t){if(!i(this,I)[I](e))return void this.log(`Not setting result for an upload that has been removed: ${e}`);const{currentUploads:n}=this.getState(),r={...n[e],result:{...n[e].result,...t}};this.setState({currentUploads:{...n,[e]:r}})}upload(){var e;null!=(e=i(this,y)[y].uploader)&&e.length||this.log("No uploader type plugins are used","warning");let{files:t}=this.getState();const r=this.opts.onBeforeUpload(t);return!1===r?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(r&&"object"==typeof r&&(t=r,this.setState({files:t})),Promise.resolve().then(()=>i(this,b)[b].validateMinNumberOfFiles(t)).catch(e=>{throw i(this,S)[S](e),e}).then(()=>{if(!i(this,T)[T](t))throw new n.RestrictionError(this.i18n("missingRequiredMetaField"))}).catch(e=>{throw e}).then(()=>{const{currentUploads:e}=this.getState(),n=Object.values(e).flatMap(e=>e.fileIDs),r=[];Object.keys(t).forEach(e=>{const t=this.getFile(e);t.progress.uploadStarted||-1!==n.indexOf(e)||r.push(t.id)});const o=i(this,P)[P](r);return i(this,R)[R](o)}).catch(e=>{throw this.emit("error",e),this.log(e,"error"),e}))}}function M(e,t){const{message:n,details:r=""}=e;e.isRestriction?this.emit("restriction-failed",t,e):this.emit("error",e),this.info({message:n,details:r},"error",this.opts.infoTimeout),this.log(`${n} ${r}`.trim(),"error")}function j(e){const{missingFields:t,error:n}=i(this,b)[b].getMissingRequiredMetaFields(e);return!(t.length>0)||(this.setFileState(e.id,{missingRequiredMetaFields:t}),this.log(n.message),this.emit("restriction-failed",e,n),!1)}function H(e){let t=!0;for(const n of Object.values(e))i(this,x)[x](n)||(t=!1);return t}function z(e){const{allowNewUpload:t}=this.getState();if(!1===t){const t=new n.RestrictionError(this.i18n("noMoreFilesAllowed"));throw i(this,S)[S](t,e),t}}function $(e,t){const r=f(t),o=v(r,t),a=p(o).extension,s=Boolean(t.isRemote),u=h({...t,type:r});if(this.checkIfFileAlreadyExists(u)){const e=new n.RestrictionError(this.i18n("noDuplicates",{fileName:o}));throw i(this,S)[S](e,t),e}const l=t.meta||{};l.name=o,l.type=r;const c=Number.isFinite(t.data.size)?t.data.size:null;let d={source:t.source||"",id:u,name:o,extension:a||"",meta:{...this.getState().meta,...l},type:r,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:c,uploadComplete:!1,uploadStarted:null},size:c,isRemote:s,remote:t.remote||"",preview:t.preview};const g=this.opts.onBeforeFileAdded(d,e);if(!1===g){const e=new n.RestrictionError("Cannot add the file because onBeforeFileAdded returned false.");throw this.emit("restriction-failed",t,e),e}"object"==typeof g&&null!==g&&(d=g);try{const t=Object.keys(e).map(t=>e[t]);i(this,b)[b].validate(d,t)}catch(e){throw i(this,S)[S](e,d),e}return d}function U(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout(()=>{this.scheduledAutoProceed=null,this.upload().catch(e=>{e.isRestriction||this.log(e.stack||e.message||e)})},4))}function V(){const e=(e,t,n)=>{let r=e.message||"Unknown error";e.details&&(r+=` ${e.details}`),this.setState({error:r}),null!=t&&t.id in this.getState().files&&this.setFileState(t.id,{error:r,response:n})};this.on("error",e),this.on("upload-error",(t,n,r)=>{if(e(n,t,r),"object"==typeof n&&n.message){const e=new Error(n.message);e.details=n.message,n.details&&(e.details+=` ${n.details}`),e.message=this.i18n("failedToUpload",{file:null==t?void 0:t.name}),i(this,S)[S](e)}else i(this,S)[S](n)}),this.on("upload",()=>{this.setState({error:null})}),this.on("upload-started",e=>{null!=e&&this.getFile(e.id)?this.setFileState(e.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:e.size}}):this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`)}),this.on("upload-progress",this.calculateProgress),this.on("upload-success",(e,t)=>{if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);const n=this.getFile(e.id).progress;this.setFileState(e.id,{progress:{...n,postprocess:i(this,A)[A].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:n.bytesTotal},response:t,uploadURL:t.uploadURL,isPaused:!1}),null==e.size&&this.setFileState(e.id,{size:t.bytesUploaded||n.bytesTotal}),this.calculateTotalProgress()}),this.on("preprocess-progress",(e,t)=>{null!=e&&this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,preprocess:t}}):this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`)}),this.on("preprocess-complete",e=>{if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.preprocess,this.setState({files:t})}),this.on("postprocess-progress",(e,t)=>{null!=e&&this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getState().files[e.id].progress,postprocess:t}}):this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`)}),this.on("postprocess-complete",e=>{if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.postprocess,this.setState({files:t})}),this.on("restored",()=>{this.calculateTotalProgress()}),this.on("dashboard:file-edit-complete",e=>{e&&i(this,x)[x](e)}),"undefined"!=typeof window&&window.addEventListener&&(window.addEventListener("online",i(this,F)[F]),window.addEventListener("offline",i(this,F)[F]),setTimeout(i(this,F)[F],3e3))}function W(t,n){void 0===n&&(n={});const{forceAllowNewUpload:r=!1}=n,{allowNewUpload:o,currentUploads:i}=this.getState();if(!o&&!r)throw new Error("Cannot create a new upload: already uploading.");const a=(0,e.nanoid)();return this.emit("upload",{id:a,fileIDs:t}),this.setState({allowNewUpload:!1!==this.opts.allowMultipleUploadBatches&&!1!==this.opts.allowMultipleUploads,currentUploads:{...i,[a]:{fileIDs:t,step:0,result:{}}}}),a}function G(e){const{currentUploads:t}=this.getState();return t[e]}function q(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function K(e){let{currentUploads:t}=this.getState(),n=t[e];const r=n.step||0,o=[...i(this,w)[w],...i(this,D)[D],...i(this,A)[A]];try{for(let i=r;i<o.length&&n;i++){const r=o[i],a={...n,step:i};this.setState({currentUploads:{...t,[e]:a}}),await r(a.fileIDs,e),t=this.getState().currentUploads,n=t[e]}}catch(t){throw i(this,_)[_](e),t}if(n){n.fileIDs.forEach(e=>{const t=this.getFile(e);t&&t.progress.postprocess&&this.emit("postprocess-complete",t)});const r=n.fileIDs.map(e=>this.getFile(e)),o=r.filter(e=>!e.error),i=r.filter(e=>e.error);await this.addResultData(e,{successful:o,failed:i,uploadID:e}),t=this.getState().currentUploads,n=t[e]}let a;return n&&(a=n.result,this.emit("complete",a),i(this,_)[_](e)),null==a&&this.log(`Not setting result for an upload that has been removed: ${e}`),a}return L.VERSION="2.3.4",sC=L}var EC,CC,wC,DC,AC,SC,xC,TC,OC,NC,BC,kC,FC,PC={},IC=[],_C=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,RC=Array.isArray;function LC(e,t){for(var n in t)e[n]=t[n];return e}function MC(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function jC(e,t,n){var r,o,i,a={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?EC.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===a[i]&&(a[i]=e.defaultProps[i]);return HC(e,a,r,o,null)}function HC(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==o?++wC:o,__i:-1,__u:0};return null==o&&null!=CC.vnode&&CC.vnode(i),i}function zC(e){return e.children}function $C(e,t){this.props=e,this.context=t}function UC(e,t){if(null==t)return e.__?UC(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?UC(e):null}function VC(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return VC(e)}}function WC(e){(!e.__d&&(e.__d=!0)&&AC.push(e)&&!GC.__r++||SC!=CC.debounceRendering)&&((SC=CC.debounceRendering)||xC)(GC)}function GC(){for(var e,t,n,r,o,i,a,s=1;AC.length;)AC.length>s&&AC.sort(TC),e=AC.shift(),s=AC.length,e.__d&&(n=void 0,o=(r=(t=e).__v).__e,i=[],a=[],t.__P&&((n=LC({},r)).__v=r.__v+1,CC.vnode&&CC.vnode(n),ew(t.__P,n,r,t.__n,t.__P.namespaceURI,32&r.__u?[o]:null,i,null==o?UC(r):o,!!(32&r.__u),a),n.__v=r.__v,n.__.__k[n.__i]=n,tw(i,n,a),n.__e!=o&&VC(n)));GC.__r=0}function qC(e,t,n,r,o,i,a,s,u,l,c){var d,f,p,h,g,v,m=r&&r.__k||IC,y=t.length;for(u=KC(n,t,m,u,y),d=0;d<y;d++)null!=(p=n.__k[d])&&(f=-1==p.__i?PC:m[p.__i]||PC,p.__i=d,v=ew(e,p,f,o,i,a,s,u,l,c),h=p.__e,p.ref&&f.ref!=p.ref&&(f.ref&&ow(f.ref,null,p),c.push(p.ref,p.__c||h,p)),null==g&&null!=h&&(g=h),4&p.__u||f.__k===p.__k?u=YC(p,u,e):"function"==typeof p.type&&void 0!==v?u=v:h&&(u=h.nextSibling),p.__u&=-7);return n.__e=g,u}function KC(e,t,n,r,o){var i,a,s,u,l,c=n.length,d=c,f=0;for(e.__k=new Array(o),i=0;i<o;i++)null!=(a=t[i])&&"boolean"!=typeof a&&"function"!=typeof a?(u=i+f,(a=e.__k[i]="string"==typeof a||"number"==typeof a||"bigint"==typeof a||a.constructor==String?HC(null,a,null,null,null):RC(a)?HC(zC,{children:a},null,null,null):null==a.constructor&&a.__b>0?HC(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=e,a.__b=e.__b+1,s=null,-1!=(l=a.__i=XC(a,n,u,d))&&(d--,(s=n[l])&&(s.__u|=2)),null==s||null==s.__v?(-1==l&&(o>c?f--:o<c&&f++),"function"!=typeof a.type&&(a.__u|=4)):l!=u&&(l==u-1?f--:l==u+1?f++:(l>u?f--:f++,a.__u|=4))):e.__k[i]=null;if(d)for(i=0;i<c;i++)null!=(s=n[i])&&!(2&s.__u)&&(s.__e==r&&(r=UC(s)),iw(s,s));return r}function YC(e,t,n){var r,o;if("function"==typeof e.type){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=YC(r[o],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=UC(e)),n.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8==t.nodeType);return t}function XC(e,t,n,r){var o,i,a=e.key,s=e.type,u=t[n];if(null===u&&null==e.key||u&&a==u.key&&s==u.type&&!(2&u.__u))return n;if(r>(null==u||2&u.__u?0:1))for(o=n-1,i=n+1;o>=0||i<t.length;){if(o>=0){if((u=t[o])&&!(2&u.__u)&&a==u.key&&s==u.type)return o;o--}if(i<t.length){if((u=t[i])&&!(2&u.__u)&&a==u.key&&s==u.type)return i;i++}}return-1}function ZC(e,t,n){"-"==t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||_C.test(t)?n:n+"px"}function JC(e,t,n,r,o){var i,a;e:if("style"==t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||ZC(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||ZC(e.style,t,n[t])}else if("o"==t[0]&&"n"==t[1])i=t!=(t=t.replace(OC,"$1")),a=t.toLowerCase(),t=a in e||"onFocusOut"==t||"onFocusIn"==t?a.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=NC,e.addEventListener(t,i?kC:BC,i)):e.removeEventListener(t,i?kC:BC,i);else{if("http://www.w3.org/2000/svg"==o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!=t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function QC(e){return function(t){if(this.l){var n=this.l[t.type+e];if(null==t.t)t.t=NC++;else if(t.t<n.u)return;return n(CC.event?CC.event(t):t)}}}function ew(e,t,n,r,o,i,a,s,u,l){var c,d,f,p,h,g,v,m,y,b,E,C,w,D,A,S,x,T=t.type;if(null!=t.constructor)return null;128&n.__u&&(u=!!(32&n.__u),i=[s=t.__e=n.__e]),(c=CC.__b)&&c(t);e:if("function"==typeof T)try{if(m=t.props,y="prototype"in T&&T.prototype.render,b=(c=T.contextType)&&r[c.__c],E=c?b?b.props.value:c.__:r,n.__c?v=(d=t.__c=n.__c).__=d.__E:(y?t.__c=d=new T(m,E):(t.__c=d=new $C(m,E),d.constructor=T,d.render=aw),b&&b.sub(d),d.props=m,d.state||(d.state={}),d.context=E,d.__n=r,f=d.__d=!0,d.__h=[],d._sb=[]),y&&null==d.__s&&(d.__s=d.state),y&&null!=T.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=LC({},d.__s)),LC(d.__s,T.getDerivedStateFromProps(m,d.__s))),p=d.props,h=d.state,d.__v=t,f)y&&null==T.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),y&&null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(y&&null==T.getDerivedStateFromProps&&m!==p&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(m,E),!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(m,d.__s,E)||t.__v==n.__v){for(t.__v!=n.__v&&(d.props=m,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(e){e&&(e.__=t)}),C=0;C<d._sb.length;C++)d.__h.push(d._sb[C]);d._sb=[],d.__h.length&&a.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(m,d.__s,E),y&&null!=d.componentDidUpdate&&d.__h.push(function(){d.componentDidUpdate(p,h,g)})}if(d.context=E,d.props=m,d.__P=e,d.__e=!1,w=CC.__r,D=0,y){for(d.state=d.__s,d.__d=!1,w&&w(t),c=d.render(d.props,d.state,d.context),A=0;A<d._sb.length;A++)d.__h.push(d._sb[A]);d._sb=[]}else do{d.__d=!1,w&&w(t),c=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++D<25);d.state=d.__s,null!=d.getChildContext&&(r=LC(LC({},r),d.getChildContext())),y&&!f&&null!=d.getSnapshotBeforeUpdate&&(g=d.getSnapshotBeforeUpdate(p,h)),S=c,null!=c&&c.type===zC&&null==c.key&&(S=nw(c.props.children)),s=qC(e,RC(S)?S:[S],t,n,r,o,i,a,s,u,l),d.base=t.__e,t.__u&=-161,d.__h.length&&a.push(d),v&&(d.__E=d.__=null)}catch(e){if(t.__v=null,u||null!=i)if(e.then){for(t.__u|=u?160:128;s&&8==s.nodeType&&s.nextSibling;)s=s.nextSibling;i[i.indexOf(s)]=null,t.__e=s}else for(x=i.length;x--;)MC(i[x]);else t.__e=n.__e,t.__k=n.__k;CC.__e(e,t,n)}else null==i&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):s=t.__e=rw(n.__e,t,n,r,o,i,a,u,l);return(c=CC.diffed)&&c(t),128&t.__u?void 0:s}function tw(e,t,n){for(var r=0;r<n.length;r++)ow(n[r],n[++r],n[++r]);CC.__c&&CC.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){CC.__e(e,t.__v)}})}function nw(e){return"object"!=typeof e||null==e||e.__b&&e.__b>0?e:RC(e)?e.map(nw):LC({},e)}function rw(e,t,n,r,o,i,a,s,u){var l,c,d,f,p,h,g,v=n.props,m=t.props,y=t.type;if("svg"==y?o="http://www.w3.org/2000/svg":"math"==y?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),null!=i)for(l=0;l<i.length;l++)if((p=i[l])&&"setAttribute"in p==!!y&&(y?p.localName==y:3==p.nodeType)){e=p,i[l]=null;break}if(null==e){if(null==y)return document.createTextNode(m);e=document.createElementNS(o,y,m.is&&m),s&&(CC.__m&&CC.__m(t,i),s=!1),i=null}if(null==y)v===m||s&&e.data==m||(e.data=m);else{if(i=i&&EC.call(e.childNodes),v=n.props||PC,!s&&null!=i)for(v={},l=0;l<e.attributes.length;l++)v[(p=e.attributes[l]).name]=p.value;for(l in v)if(p=v[l],"children"==l);else if("dangerouslySetInnerHTML"==l)d=p;else if(!(l in m)){if("value"==l&&"defaultValue"in m||"checked"==l&&"defaultChecked"in m)continue;JC(e,l,null,p,o)}for(l in m)p=m[l],"children"==l?f=p:"dangerouslySetInnerHTML"==l?c=p:"value"==l?h=p:"checked"==l?g=p:s&&"function"!=typeof p||v[l]===p||JC(e,l,p,v[l],o);if(c)s||d&&(c.__html==d.__html||c.__html==e.innerHTML)||(e.innerHTML=c.__html),t.__k=[];else if(d&&(e.innerHTML=""),qC("template"==t.type?e.content:e,RC(f)?f:[f],t,n,r,"foreignObject"==y?"http://www.w3.org/1999/xhtml":o,i,a,i?i[0]:n.__k&&UC(n,0),s,u),null!=i)for(l=i.length;l--;)MC(i[l]);s||(l="value","progress"==y&&null==h?e.removeAttribute("value"):null!=h&&(h!==e[l]||"progress"==y&&!h||"option"==y&&h!=v[l])&&JC(e,l,h,v[l],o),l="checked",null!=g&&g!=e[l]&&JC(e,l,g,v[l],o))}return e}function ow(e,t,n){try{if("function"==typeof e){var r="function"==typeof e.__u;r&&e.__u(),r&&null==t||(e.__u=e(t))}else e.current=t}catch(e){CC.__e(e,n)}}function iw(e,t,n){var r,o;if(CC.unmount&&CC.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||ow(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){CC.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&iw(r[o],t,n||"function"!=typeof e.type);n||MC(e.__e),e.__c=e.__=e.__e=void 0}function aw(e,t,n){return this.constructor(e,n)}function sw(e,t,n){var r,o,i,a;t==document&&(t=document.documentElement),CC.__&&CC.__(e,t),o=(r="function"==typeof n)?null:n&&n.__k||t.__k,i=[],a=[],ew(t,e=(!r&&n||t).__k=jC(zC,null,[e]),o||PC,PC,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?EC.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,a),tw(i,e,a)}EC=IC.slice,CC={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(t){e=t}throw e}},wC=0,DC=function(e){return null!=e&&null==e.constructor},$C.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=LC({},this.state),"function"==typeof e&&(e=e(LC({},n),this.props)),e&&LC(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),WC(this))},$C.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),WC(this))},$C.prototype.render=zC,AC=[],xC="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,TC=function(e,t){return e.__v.__b-t.__v.__b},GC.__r=0,OC=/(PointerCapture)$|Capture$/i,NC=0,BC=QC(!1),kC=QC(!0),FC=0;var uw,lw,cw,dw,fw,pw,hw,gw,vw,mw,yw,bw=Object.freeze({__proto__:null,Component:$C,Fragment:zC,cloneElement:function(e,t,n){var r,o,i,a,s=LC({},e.props);for(i in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)"key"==i?r=t[i]:"ref"==i?o=t[i]:s[i]=void 0===t[i]&&null!=a?a[i]:t[i];return arguments.length>2&&(s.children=arguments.length>3?EC.call(arguments,2):n),HC(e.type,s,r||e.key,o||e.ref,null)},createContext:function(e){function t(e){var n,r;return this.getChildContext||(n=new Set,(r={})[t.__c]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!=e.value&&n.forEach(function(e){e.__e=!0,WC(e)})},this.sub=function(e){n.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.delete(e),t&&t.call(e)}}),e.children}return t.__c="__cC"+FC++,t.__=e,t.Provider=t.__l=(t.Consumer=function(e,t){return e.children(t)}).contextType=t,t},createElement:jC,createRef:function(){return{current:null}},h:jC,hydrate:function e(t,n){sw(t,n,e)},get isValidElement(){return DC},get options(){return CC},render:sw,toChildArray:function e(t,n){return n=n||[],null==t||"boolean"==typeof t||(RC(t)?t.some(function(t){e(t,n)}):n.push(t)),n}}),Ew=C(bw);function Cw(){if(dw)return cw;dw=1;const e=lw?uw:(lw=1,uw=function(e){return(null==e?void 0:e.nodeType)===Node.ELEMENT_NODE});return cw=function(t,n){return void 0===n&&(n=document),"string"==typeof t?n.querySelector(t):e(t)?t:null}}function ww(){if(gw)return hw;gw=1;const e=hC();return hw=class{constructor(e,t){void 0===t&&(t={}),this.uppy=e,this.opts=t}getPluginState(){const{plugins:e}=this.uppy.getState();return e[this.id]||{}}setPluginState(e){const{plugins:t}=this.uppy.getState();this.uppy.setState({plugins:{...t,[this.id]:{...t[this.id],...e}}})}setOptions(e){this.opts={...this.opts,...e},this.setPluginState(),this.i18nInit()}i18nInit(){const t=new e([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=t.translate.bind(t),this.i18nArray=t.translateArray.bind(t),this.setPluginState()}addTarget(){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}render(){throw new Error("Extend the render method to add your plugin to a DOM element")}update(){}afterUpdate(){}}}function Dw(){if(mw)return vw;mw=1;var e=Ew;function t(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var n=0;function r(e){return"__private_"+n+++"_"+e}const o=Cw(),i=pw?fw:(pw=1,fw=function(e){for(var t;e&&!e.dir;)e=e.parentNode;return null==(t=e)?void 0:t.dir}),a=ww();var s=r("updateUI");class u extends a{constructor(){super(...arguments),Object.defineProperty(this,s,{writable:!0,value:void 0})}mount(n,r){const a=r.id,l=o(n);if(l){this.isTargetDOMEl=!0;const r=document.createElement("div");return r.classList.add("uppy-Root"),t(this,s)[s]=function(e){let t=null,n=null;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=o,t||(t=Promise.resolve().then(()=>(t=null,e(...n)))),t}}(t=>{this.uppy.getPlugin(this.id)&&((0,e.render)(this.render(t),r),this.afterUpdate())}),this.uppy.log(`Installing ${a} to a DOM element '${n}'`),this.opts.replaceTargetContent&&(l.innerHTML=""),(0,e.render)(this.render(this.uppy.getState()),r),this.el=r,l.appendChild(r),r.dir=this.opts.direction||i(r)||"ltr",this.onMount(),this.el}let c;if("object"==typeof n&&n instanceof u)c=n;else if("function"==typeof n){const e=n;this.uppy.iteratePlugins(t=>{t instanceof e&&(c=t)})}if(c)return this.uppy.log(`Installing ${a} to ${c.id}`),this.parent=c,this.el=c.addTarget(r),this.onMount(),this.el;this.uppy.log(`Not installing ${a}`);let d=`Invalid target option given to ${a}.`;throw d+="function"==typeof n?" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":"If you meant to target an HTML element, please make sure that the element exists. Check that the <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. (see https://github.com/transloadit/uppy/issues/1042)\n\nIf you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.",new Error(d)}update(e){var n,r;null!=this.el&&(null==(n=(r=t(this,s))[s])||n.call(r,e))}unmount(){var e;this.isTargetDOMEl&&(null==(e=this.el)||e.remove());this.onUnmount()}onMount(){}onUnmount(){}}return vw=u}var Aw,Sw,xw,Tw,Ow,Nw,Bw,kw,Fw,Pw,Iw=(yw||(yw=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Uppy=t.UIPlugin=t.BasePlugin=void 0,Object.defineProperty(t,"debugLogger",{enumerable:!0,get:function(){return n.debugLogger}});var n=BE();e.exports=bC();const r=Dw();t.UIPlugin=r;const o=ww();t.BasePlugin=o;const i=bC();t.Uppy=i;const a=Dw(),s=ww();i.Uppy=i,i.UIPlugin=a,i.BasePlugin=s,i.debugLogger=n.debugLogger}(OE,OE.exports)),OE.exports),_w=E(Iw),Rw={};function Lw(){if(Sw)return Aw;Sw=1;class e extends Error{constructor(e,t){void 0===t&&(t=null),super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."),this.cause=e,this.isNetworkError=!0,this.request=t}}return Aw=e}function Mw(){if(Pw)return Fw;let e;function t(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}Pw=1;var n=0;function r(e){return"__private_"+n+++"_"+e}const o=function(){if(Tw)return xw;Tw=1;const e=Lw();return xw=function(){return fetch(...arguments).catch(t=>{throw"AbortError"===t.name?t:new e(t)})},xw}(),i=function(){if(Nw)return Ow;Nw=1;const e=pC();class t extends Error{constructor(t,n){void 0===n&&(n={}),super(t),this.cause=n.cause,this.cause&&e(this.cause,"isNetworkError")&&(this.isNetworkError=this.cause.isNetworkError)}}return Ow=t}(),a=function(){if(kw)return Bw;kw=1;class e extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}return Bw=e}();async function s(e){if(401===e.status)throw new a;const t=e.json();if(e.status<200||e.status>300){let n=`Failed request with status: ${e.status}. ${e.statusText}`;try{const e=await t;n=e.message?`${n} message: ${e.message}`:n,n=e.requestId?`${n} request-Id: ${e.requestId}`:n}finally{throw new Error(n)}}return t}var u=r("companionHeaders"),l=r("getPostResponseFunc"),c=r("getUrl"),d=r("errorHandler");e=Symbol.for("uppy test: getCompanionHeaders");class f{constructor(e,n){Object.defineProperty(this,d,{value:h}),Object.defineProperty(this,c,{value:p}),Object.defineProperty(this,u,{writable:!0,value:void 0}),Object.defineProperty(this,l,{writable:!0,value:e=>t=>e?t:this.onReceiveResponse(t)}),this.uppy=e,this.opts=n,this.onReceiveResponse=this.onReceiveResponse.bind(this),this.allowedHeaders=["accept","content-type","uppy-auth-token"],this.preflightDone=!1,t(this,u)[u]=null==n?void 0:n.companionHeaders}setCompanionHeaders(e){t(this,u)[u]=e}[e](){return t(this,u)[u]}get hostname(){const{companion:e}=this.uppy.getState(),t=this.opts.companionUrl;return(e&&e[t]?e[t]:t).replace(/\/$/,"")}headers(){return Promise.resolve({...f.defaultHeaders,...t(this,u)[u]})}onReceiveResponse(e){const t=this.uppy.getState().companion||{},n=this.opts.companionUrl,{headers:r}=e;return r.has("i-am")&&r.get("i-am")!==t[n]&&this.uppy.setState({companion:{...t,[n]:r.get("i-am")}}),e}preflight(e){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(t(this,c)[c](e),{method:"OPTIONS"}).then(e=>(e.headers.has("access-control-allow-headers")&&(this.allowedHeaders=e.headers.get("access-control-allow-headers").split(",").map(e=>e.trim().toLowerCase())),this.preflightDone=!0,this.allowedHeaders.slice())).catch(e=>(this.uppy.log(`[CompanionClient] unable to make preflight request ${e}`,"warning"),this.preflightDone=!0,this.allowedHeaders.slice()))}preflightAndHeaders(e){return Promise.all([this.preflight(e),this.headers()]).then(e=>{let[t,n]=e;return Object.keys(n).forEach(e=>{t.includes(e.toLowerCase())||(this.uppy.log(`[CompanionClient] excluding disallowed header ${e}`),delete n[e])}),n})}get(e,n){return this.preflightAndHeaders(e).then(n=>o(t(this,c)[c](e),{method:"get",headers:n,credentials:this.opts.companionCookiesRule||"same-origin"})).then(t(this,l)[l](n)).then(s).catch(t(this,d)[d]("get",e))}post(e,n,r){const i="post";return this.preflightAndHeaders(e).then(r=>o(t(this,c)[c](e),{method:i,headers:r,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(n)})).then(t(this,l)[l](r)).then(s).catch(t(this,d)[d](i,e))}delete(e,n,r){const i="delete";return this.preflightAndHeaders(e).then(t=>o(`${this.hostname}/${e}`,{method:i,headers:t,credentials:this.opts.companionCookiesRule||"same-origin",body:n?JSON.stringify(n):null})).then(t(this,l)[l](r)).then(s).catch(t(this,d)[d](i,e))}}function p(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}function h(e,n){return r=>{var o;return null!=(o=r)&&o.isAuthError||(r=new i(`Could not ${e} ${t(this,c)[c](n)}`,{cause:r})),Promise.reject(r)}}return f.VERSION="2.2.2",f.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${f.VERSION}`},Fw=f}var jw,Hw,zw,$w,Uw,Vw,Ww,Gw,qw={};function Kw(){if(jw)return qw;return jw=1,Object.defineProperty(qw,"__esModule",{value:!0}),qw.getItem=function(e){return Promise.resolve(localStorage.getItem(e))},qw.removeItem=function(e){return new Promise(t=>{localStorage.removeItem(e),t()})},qw.setItem=function(e,t){return new Promise(n=>{localStorage.setItem(e,t),n()})},qw}function Yw(){if(Gw)return Rw;Gw=1,Object.defineProperty(Rw,"__esModule",{value:!0}),Rw.Socket=Rw.SearchProvider=Rw.RequestClient=Rw.Provider=void 0;const e=Mw();Rw.RequestClient=e;const t=function(){if(zw)return Hw;zw=1;var e=Kw();const t=Mw();return Hw=class extends t{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||this.id.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" "),this.pluginId=this.opts.pluginId,this.tokenKey=`companion-${this.pluginId}-auth-token`,this.companionKeysParams=this.opts.companionKeysParams,this.preAuthToken=null}headers(){return Promise.all([super.headers(),this.getAuthToken()]).then(e=>{let[t,n]=e;const r={};return n&&(r["uppy-auth-token"]=n),this.companionKeysParams&&(r["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...t,...r}})}onReceiveResponse(e){e=super.onReceiveResponse(e);const t=this.uppy.getPlugin(this.pluginId),n=t.getPluginState().authenticated?401!==e.status:e.status<400;return t.setPluginState({authenticated:n}),e}setAuthToken(e){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,e)}getAuthToken(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)}async ensurePreAuth(){if(this.companionKeysParams&&!this.preAuthToken&&(await this.fetchPreAuthToken(),!this.preAuthToken))throw new Error("Could not load authentication data required for third-party login. Please try again later.")}authUrl(e){void 0===e&&(e={});const t=new URLSearchParams(e);return this.preAuthToken&&t.set("uppyPreAuthToken",this.preAuthToken),`${this.hostname}/${this.id}/connect?${t}`}fileUrl(e){return`${this.hostname}/${this.id}/get/${e}`}async fetchPreAuthToken(){if(this.companionKeysParams)try{const e=await this.post(`${this.id}/preauth/`,{params:this.companionKeysParams});this.preAuthToken=e.token}catch(e){this.uppy.log(`[CompanionClient] unable to fetch preAuthToken ${e}`,"warning")}}list(e){return this.get(`${this.id}/list/${e||""}`)}logout(){return this.get(`${this.id}/logout`).then(e=>Promise.all([e,this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)])).then(e=>{let[t]=e;return t})}static initPlugin(t,n,r){if(t.type="acquirer",t.files=[],r&&(t.opts={...r,...n}),n.serverUrl||n.serverPattern)throw new Error("`serverUrl` and `serverPattern` have been renamed to `companionUrl` and `companionAllowedHosts` respectively in the 0.30.5 release. Please consult the docs (for example, https://uppy.io/docs/instagram/ for the Instagram plugin) and use the updated options.`");if(n.companionAllowedHosts){const e=n.companionAllowedHosts;if(!("string"==typeof e||Array.isArray(e)||e instanceof RegExp))throw new TypeError(`${t.id}: the option "companionAllowedHosts" must be one of string, Array, RegExp`);t.opts.companionAllowedHosts=e}else/^(?!https?:\/\/).*$/i.test(n.companionUrl)?t.opts.companionAllowedHosts=`https://${n.companionUrl.replace(/^\/\//,"")}`:t.opts.companionAllowedHosts=new URL(n.companionUrl).origin;t.storage=t.opts.storage||e}},Hw}();Rw.Provider=t;const n=function(){if(Uw)return $w;Uw=1;const e=Mw();return $w=class extends e{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||this.id.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" "),this.pluginId=this.opts.pluginId}fileUrl(e){return`${this.hostname}/search/${this.id}/get/${e}`}search(e,t){return this.get(`search/${this.id}/list?q=${encodeURIComponent(e)}${t?`&${t}`:""}`)}},$w}();Rw.SearchProvider=n;const r=function(){if(Ww)return Vw;let e,t;function n(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}Ww=1;var r=0;function o(e){return"__private_"+r+++"_"+e}const i=gC();var a=o("queued"),s=o("emitter"),u=o("isOpen"),l=o("socket"),c=o("handleMessage");return e=Symbol.for("uppy test: getSocket"),t=Symbol.for("uppy test: getQueued"),Vw=class{constructor(e){Object.defineProperty(this,a,{writable:!0,value:[]}),Object.defineProperty(this,s,{writable:!0,value:i()}),Object.defineProperty(this,u,{writable:!0,value:!1}),Object.defineProperty(this,l,{writable:!0,value:void 0}),Object.defineProperty(this,c,{writable:!0,value:e=>{try{const t=JSON.parse(e.data);this.emit(t.action,t.payload)}catch(e){console.log(e)}}}),this.opts=e,e&&!1===e.autoOpen||this.open()}get isOpen(){return n(this,u)[u]}[e](){return n(this,l)[l]}[t](){return n(this,a)[a]}open(){n(this,l)[l]=new WebSocket(this.opts.target),n(this,l)[l].onopen=()=>{for(n(this,u)[u]=!0;n(this,a)[a].length>0&&n(this,u)[u];){const e=n(this,a)[a].shift();this.send(e.action,e.payload)}},n(this,l)[l].onclose=()=>{n(this,u)[u]=!1},n(this,l)[l].onmessage=n(this,c)[c]}close(){var e;null==(e=n(this,l)[l])||e.close()}send(e,t){n(this,u)[u]?n(this,l)[l].send(JSON.stringify({action:e,payload:t})):n(this,a)[a].push({action:e,payload:t})}on(e,t){n(this,s)[s].on(e,t)}emit(e,t){n(this,s)[s].emit(e,t)}once(e,t){n(this,s)[s].once(e,t)}},Vw}();return Rw.Socket=r,Rw}var Xw,Zw,Jw,Qw,eD,tD,nD,rD,oD,iD,aD,sD,uD,lD,cD,dD,fD,pD={};function hD(){if(Xw)return pD;function e(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}Xw=1,Object.defineProperty(pD,"__esModule",{value:!0}),pD.internalRateLimitedQueue=pD.RateLimitedQueue=void 0;var t=0;function n(e){return"__private_"+t+++"_"+e}var r=n("activeRequests"),o=n("queuedHandlers"),i=n("paused"),a=n("pauseTimer"),s=n("downLimit"),u=n("upperLimit"),l=n("rateLimitingTimer"),c=n("call"),d=n("queueNext"),f=n("next"),p=n("queue"),h=n("dequeue"),g=n("resume"),v=n("increaseLimit");function m(t){e(this,r)[r]+=1;let n,o=!1;try{n=t()}catch(t){throw e(this,r)[r]-=1,t}return{abort:()=>{o||(o=!0,e(this,r)[r]-=1,n(),e(this,d)[d]())},done:()=>{o||(o=!0,e(this,r)[r]-=1,e(this,d)[d]())}}}function y(){queueMicrotask(()=>e(this,f)[f]())}function b(){if(e(this,i)[i]||e(this,r)[r]>=this.limit)return;if(0===e(this,o)[o].length)return;const t=e(this,o)[o].shift(),n=e(this,c)[c](t.fn);t.abort=n.abort,t.done=n.done}function E(t,n){void 0===n&&(n={});const r={fn:t,priority:n.priority||0,abort:()=>{e(this,h)[h](r)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},i=e(this,o)[o].findIndex(e=>r.priority>e.priority);return-1===i?e(this,o)[o].push(r):e(this,o)[o].splice(i,0,r),r}function C(t){const n=e(this,o)[o].indexOf(t);-1!==n&&e(this,o)[o].splice(n,1)}pD.RateLimitedQueue=class{constructor(t){Object.defineProperty(this,h,{value:C}),Object.defineProperty(this,p,{value:E}),Object.defineProperty(this,f,{value:b}),Object.defineProperty(this,d,{value:y}),Object.defineProperty(this,c,{value:m}),Object.defineProperty(this,r,{writable:!0,value:0}),Object.defineProperty(this,o,{writable:!0,value:[]}),Object.defineProperty(this,i,{writable:!0,value:!1}),Object.defineProperty(this,a,{writable:!0,value:void 0}),Object.defineProperty(this,s,{writable:!0,value:1}),Object.defineProperty(this,u,{writable:!0,value:void 0}),Object.defineProperty(this,l,{writable:!0,value:void 0}),Object.defineProperty(this,g,{writable:!0,value:()=>this.resume()}),Object.defineProperty(this,v,{writable:!0,value:()=>{if(e(this,i)[i])e(this,l)[l]=setTimeout(e(this,v)[v],0);else{e(this,s)[s]=this.limit,this.limit=Math.ceil((e(this,u)[u]+e(this,s)[s])/2);for(let t=e(this,s)[s];t<=this.limit;t++)e(this,d)[d]();e(this,u)[u]-e(this,s)[s]>3?e(this,l)[l]=setTimeout(e(this,v)[v],2e3):e(this,s)[s]=Math.floor(e(this,s)[s]/2)}}}),this.limit="number"!=typeof t||0===t?1/0:t}run(t,n){return!e(this,i)[i]&&e(this,r)[r]<this.limit?e(this,c)[c](t):e(this,p)[p](t,n)}wrapPromiseFunction(e,t){var n=this;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];let a;const s=new Promise((r,i)=>{a=n.run(()=>{let t,n;try{n=Promise.resolve(e(...o))}catch(e){n=Promise.reject(e)}return n.then(e=>{t?i(t):(a.done(),r(e))},e=>{t?i(t):(a.done(),i(e))}),()=>{t=new Error("Cancelled")}},t)});return s.abort=()=>{a.abort()},s}}resume(){e(this,i)[i]=!1,clearTimeout(e(this,a)[a]);for(let t=0;t<this.limit;t++)e(this,d)[d]()}pause(t){void 0===t&&(t=null),e(this,i)[i]=!0,clearTimeout(e(this,a)[a]),null!=t&&(e(this,a)[a]=setTimeout(e(this,g)[g],t))}rateLimit(t){clearTimeout(e(this,l)[l]),this.pause(t),this.limit>1&&Number.isFinite(this.limit)&&(e(this,u)[u]=this.limit-1,this.limit=e(this,s)[s],e(this,l)[l]=setTimeout(e(this,v)[v],t))}get isPaused(){return e(this,i)[i]}};const w=Symbol("__queue");return pD.internalRateLimitedQueue=w,pD}function gD(){return cD?lD:(cD=1,lD={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}})}var vD=function(){if(fD)return dD;fD=1;var e=kE(),t=Yw(),n=hD();const r=ww(),o=function(){if(Jw)return Zw;Jw=1;const e=Ky();return Zw=e(function(e,t,n){const{progress:r,bytesUploaded:o,bytesTotal:i}=t;r&&(e.uppy.log(`Upload progress: ${r}`),e.uppy.emit("upload-progress",n,{uploader:e,bytesUploaded:o,bytesTotal:i}))},300,{leading:!0,trailing:!0})}(),i=eD?Qw:(eD=1,Qw=function(e){const t=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(e)[1];return`${/^http:\/\//i.test(e)?"ws":"wss"}://${t}`}),a=nD?tD:(nD=1,tD=function(e){const t=[],n=[];function r(e){t.push(e)}function o(e){n.push(e)}return Promise.all(e.map(e=>e.then(r,o))).then(()=>({successful:t,failed:n}))}),s=function(){if(oD)return rD;function e(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}oD=1;var t=0;function n(e){return"__private_"+t+++"_"+e}var r=n("emitter"),o=n("events");return rD=class{constructor(t){Object.defineProperty(this,r,{writable:!0,value:void 0}),Object.defineProperty(this,o,{writable:!0,value:[]}),e(this,r)[r]=t}on(t,n){return e(this,o)[o].push([t,n]),e(this,r)[r].on(t,n)}remove(){for(const[t,n]of e(this,o)[o].splice(0))e(this,r)[r].off(t,n)}}}(),u=function(){if(aD)return iD;function e(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}aD=1;var t=0;function n(e){return"__private_"+t+++"_"+e}var r=n("aliveTimer"),o=n("isDone"),i=n("onTimedOut"),a=n("timeout");return iD=class{constructor(t,n){Object.defineProperty(this,r,{writable:!0,value:void 0}),Object.defineProperty(this,o,{writable:!0,value:!1}),Object.defineProperty(this,i,{writable:!0,value:void 0}),Object.defineProperty(this,a,{writable:!0,value:void 0}),e(this,a)[a]=t,e(this,i)[i]=n}progress(){e(this,o)[o]||e(this,a)[a]>0&&(clearTimeout(e(this,r)[r]),e(this,r)[r]=setTimeout(e(this,i)[i],e(this,a)[a]))}done(){e(this,o)[o]||(clearTimeout(e(this,r)[r]),e(this,r)[r]=null,e(this,o)[o]=!0)}}}(),l=Lw(),c=uD?sD:(uD=1,sD=function(e){return!!e&&(0!==e.readyState&&4!==e.readyState||0===e.status)}),d=gD();function f(e,t){let n=t;return n||(n=new Error("Upload error")),"string"==typeof n&&(n=new Error(n)),n instanceof Error||(n=Object.assign(new Error("Upload error"),{data:n})),c(e)?(n=new l(n,e),n):(n.request=e,n)}function p(e){return e.data.slice(0,e.data.size,e.meta.type)}class h extends r{constructor(e,t){super(e,t),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=d;const r={formData:!0,fieldName:t.bundle?"files[]":"file",method:"post",metaFields:null,responseUrlFieldName:"url",bundle:!1,headers:{},timeout:3e4,limit:5,withCredentials:!1,responseType:"",getResponseData(t){let n={};try{n=JSON.parse(t)}catch(t){e.log(t)}return n},getResponseError(e,t){let n=new Error("Upload error");return c(t)&&(n=new l(n,t)),n},validateStatus:e=>e>=200&&e<300};if(this.opts={...r,...t},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),n.internalRateLimitedQueue in this.opts?this.requests=this.opts[n.internalRateLimitedQueue]:this.requests=new n.RateLimitedQueue(this.opts.limit),this.opts.bundle&&!this.opts.formData)throw new Error("`opts.formData` must be true when `opts.bundle` is enabled.");this.uploaderEvents=Object.create(null)}getOptions(e){const t=this.uppy.getState().xhrUpload,{headers:n}=this.opts,r={...this.opts,...t||{},...e.xhrUpload||{},headers:{}};return"function"==typeof n?r.headers=n(e):Object.assign(r.headers,this.opts.headers),t&&Object.assign(r.headers,t.headers),e.xhrUpload&&Object.assign(r.headers,e.xhrUpload.headers),r}addMetadata(e,t,n){(Array.isArray(n.metaFields)?n.metaFields:Object.keys(t)).forEach(n=>{e.append(n,t[n])})}createFormDataUpload(e,t){const n=new FormData;this.addMetadata(n,e.meta,t);const r=p(e);return e.name?n.append(t.fieldName,r,e.meta.name):n.append(t.fieldName,r),n}createBundledUpload(e,t){const n=new FormData,{meta:r}=this.uppy.getState();return this.addMetadata(n,r,t),e.forEach(e=>{const t=this.getOptions(e),r=p(e);e.name?n.append(t.fieldName,r,e.name):n.append(t.fieldName,r)}),n}upload(t,n,r){const o=this.getOptions(t);return this.uppy.log(`uploading ${n} of ${r}`),new Promise((n,r)=>{this.uppy.emit("upload-started",t);const i=o.formData?this.createFormDataUpload(t,o):t.data,a=new XMLHttpRequest;let l;this.uploaderEvents[t.id]=new s(this.uppy);const c=new u(o.timeout,()=>{a.abort(),l.done();const e=new Error(this.i18n("timedOut",{seconds:Math.ceil(o.timeout/1e3)}));this.uppy.emit("upload-error",t,e),r(e)}),d=(0,e.nanoid)();a.upload.addEventListener("loadstart",()=>{this.uppy.log(`[XHRUpload] ${d} started`)}),a.upload.addEventListener("progress",e=>{this.uppy.log(`[XHRUpload] ${d} progress: ${e.loaded} / ${e.total}`),c.progress(),e.lengthComputable&&this.uppy.emit("upload-progress",t,{uploader:this,bytesUploaded:e.loaded,bytesTotal:e.total})}),a.addEventListener("load",()=>{if(this.uppy.log(`[XHRUpload] ${d} finished`),c.done(),l.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null),o.validateStatus(a.status,a.responseText,a)){const e=o.getResponseData(a.responseText,a),r=e[o.responseUrlFieldName],i={status:a.status,body:e,uploadURL:r};return this.uppy.emit("upload-success",t,i),r&&this.uppy.log(`Download ${t.name} from ${r}`),n(t)}const e=o.getResponseData(a.responseText,a),i=f(a,o.getResponseError(a.responseText,a)),s={status:a.status,body:e};return this.uppy.emit("upload-error",t,i,s),r(i)}),a.addEventListener("error",()=>{this.uppy.log(`[XHRUpload] ${d} errored`),c.done(),l.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null);const e=f(a,o.getResponseError(a.responseText,a));return this.uppy.emit("upload-error",t,e),r(e)}),a.open(o.method.toUpperCase(),o.endpoint,!0),a.withCredentials=o.withCredentials,""!==o.responseType&&(a.responseType=o.responseType),l=this.requests.run(()=>{this.uppy.emit("upload-started",t);const e=this.getOptions(t);return Object.keys(e.headers).forEach(t=>{a.setRequestHeader(t,e.headers[t])}),a.send(i),()=>{c.done(),a.abort()}}),this.onFileRemove(t.id,()=>{l.abort(),r(new Error("File removed"))}),this.onCancelAll(t.id,e=>{let{reason:t}=e;"user"===t&&l.abort(),r(new Error("Upload cancelled"))})})}uploadRemote(e){const n=this.getOptions(e);return new Promise((r,a)=>{this.uppy.emit("upload-started",e);const u={};(Array.isArray(n.metaFields)?n.metaFields:Object.keys(e.meta)).forEach(t=>{u[t]=e.meta[t]});new(e.remote.providerOptions.provider?t.Provider:t.RequestClient)(this.uppy,e.remote.providerOptions).post(e.remote.url,{...e.remote.body,endpoint:n.endpoint,size:e.data.size,fieldname:n.fieldName,metadata:u,httpMethod:n.method,useFormData:n.formData,headers:n.headers}).then(u=>{const{token:l}=u,c=i(e.remote.companionUrl),d=new t.Socket({target:`${c}/api/${l}`,autoOpen:!1});let f;this.uploaderEvents[e.id]=new s(this.uppy),this.onFileRemove(e.id,()=>{d.send("cancel",{}),f.abort(),r(`upload ${e.id} was removed`)}),this.onCancelAll(e.id,function(t){let{reason:n}=void 0===t?{}:t;"user"===n&&(d.send("cancel",{}),f.abort()),r(`upload ${e.id} was canceled`)}),this.onRetry(e.id,()=>{d.send("pause",{}),d.send("resume",{})}),this.onRetryAll(e.id,()=>{d.send("pause",{}),d.send("resume",{})}),d.on("progress",t=>o(this,t,e)),d.on("success",t=>{const o=n.getResponseData(t.response.responseText,t.response),i=o[n.responseUrlFieldName],a={status:t.response.status,body:o,uploadURL:i};return this.uppy.emit("upload-success",e,a),f.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r()}),d.on("error",t=>{const r=t.response,o=r?n.getResponseError(r.responseText,r):Object.assign(new Error(t.error.message),{cause:t.error});this.uppy.emit("upload-error",e,o),f.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),a(o)}),f=this.requests.run(()=>(d.open(),e.isPaused&&d.send("pause",{}),()=>d.close()))}).catch(t=>{this.uppy.emit("upload-error",e,t),a(t)})})}uploadBundle(e){return new Promise((t,n)=>{const{endpoint:r}=this.opts,{method:o}=this.opts,i=this.uppy.getState().xhrUpload,a=this.createBundledUpload(e,{...this.opts,...i||{}}),s=new XMLHttpRequest,l=t=>{e.forEach(e=>{this.uppy.emit("upload-error",e,t)})},c=new u(this.opts.timeout,()=>{s.abort();const e=new Error(this.i18n("timedOut",{seconds:Math.ceil(this.opts.timeout/1e3)}));l(e),n(e)});s.upload.addEventListener("loadstart",()=>{this.uppy.log("[XHRUpload] started uploading bundle"),c.progress()}),s.upload.addEventListener("progress",t=>{c.progress(),t.lengthComputable&&e.forEach(e=>{this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:t.loaded/t.total*e.size,bytesTotal:e.size})})}),s.addEventListener("load",r=>{if(c.done(),this.opts.validateStatus(r.target.status,s.responseText,s)){const n=this.opts.getResponseData(s.responseText,s),o={status:r.target.status,body:n};return e.forEach(e=>{this.uppy.emit("upload-success",e,o)}),t()}const o=this.opts.getResponseError(s.responseText,s)||new Error("Upload error");return o.request=s,l(o),n(o)}),s.addEventListener("error",()=>{c.done();const e=this.opts.getResponseError(s.responseText,s)||new Error("Upload error");return l(e),n(e)}),this.uppy.on("cancel-all",function(e){let{reason:t}=void 0===e?{}:e;"user"===t&&(c.done(),s.abort())}),s.open(o.toUpperCase(),r,!0),s.withCredentials=this.opts.withCredentials,""!==this.opts.responseType&&(s.responseType=this.opts.responseType),Object.keys(this.opts.headers).forEach(e=>{s.setRequestHeader(e,this.opts.headers[e])}),s.send(a),e.forEach(e=>{this.uppy.emit("upload-started",e)})})}uploadFiles(e){const t=e.map((t,n)=>{const r=parseInt(n,10)+1,o=e.length;return t.error?Promise.reject(new Error(t.error)):t.isRemote?this.uploadRemote(t,r,o):this.upload(t,r,o)});return a(t)}onFileRemove(e,t){this.uploaderEvents[e].on("file-removed",n=>{e===n.id&&t(n.id)})}onRetry(e,t){this.uploaderEvents[e].on("upload-retry",n=>{e===n&&t()})}onRetryAll(e,t){this.uploaderEvents[e].on("retry-all",()=>{this.uppy.getFile(e)&&t()})}onCancelAll(e,t){var n=this;this.uploaderEvents[e].on("cancel-all",function(){n.uppy.getFile(e)&&t(...arguments)})}handleUpload(e){if(0===e.length)return this.uppy.log("[XHRUpload] No files to upload!"),Promise.resolve();0!==this.opts.limit||this.opts[n.internalRateLimitedQueue]||this.uppy.log("[XHRUpload] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/xhr-upload/#limit-0","warning"),this.uppy.log("[XHRUpload] Uploading...");const t=e.map(e=>this.uppy.getFile(e));if(this.opts.bundle){if(t.some(e=>e.isRemote))throw new Error("Can’t upload remote files when the `bundle: true` option is set");if("function"==typeof this.opts.headers)throw new TypeError("`headers` may not be a function when the `bundle: true` option is set");return this.uploadBundle(t)}return this.uploadFiles(t).then(()=>null)}install(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!1}})}this.uppy.addUploader(this.handleUpload)}uninstall(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!0}})}this.uppy.removeUploader(this.handleUpload)}}return h.VERSION="2.1.3",dD=h}(),mD=E(vD);function yD(e){var t=e.server,n=void 0===t?"":t,r=e.fieldName,o=void 0===r?"":r,i=e.maxFileSize,a=void 0===i?10485760:i,s=e.maxNumberOfFiles,u=void 0===s?100:s,l=e.meta,c=void 0===l?{}:l,d=e.metaWithUrl,f=void 0!==d&&d,p=e.headers,h=void 0===p?{}:p,g=e.withCredentials,v=void 0!==g&&g,m=e.timeout,y=void 0===m?1e4:m,b=e.onBeforeUpload,E=void 0===b?function(e){return e}:b,C=e.onSuccess,w=void 0===C?function(e,t){}:C,D=e.onError,A=void 0===D?function(e,t,n){console.error("".concat(e.name," upload error"),t,n)}:D,S=e.onProgress,x=void 0===S?function(e){}:S;if(!n)throw new Error("Cannot get upload server address\n没有配置上传地址");if(!o)throw new Error("Cannot get fieldName\n没有配置 fieldName");var T=n;f&&(T=function(e,t){var n=Op(e.split("#"),2),r=n[0],o=n[1],i=[];Mp(t,function(e,t){i.push("".concat(t,"=").concat(e))});var a=i.join("&");return r=r.indexOf("?")>0?"".concat(r,"&").concat(a):"".concat(r,"?").concat(a),o?"".concat(r,"#").concat(o):r}(T,c));var O=new _w(Dp({onBeforeUpload:E,restrictions:{maxFileSize:a,maxNumberOfFiles:u},meta:c},e.uppyConfig)).use(mD,Dp({endpoint:T,headers:h,formData:!0,fieldName:o,bundle:!0,withCredentials:v,timeout:y},e.xhrConfig));return O.on("complete",function(e){var t=e.successful[0],n=t.response,r=(null!=n?n:{}).body,o=void 0===r?{}:r;try{w(t,o)}catch(e){console.error("wangEditor upload file - onSuccess error",e)}}),O.on("progress",function(e){e<1||x(e)}),O.on("upload-error",function(e,t,n){try{A(e,t,n)}catch(e){console.error("wangEditor upload file - onError error",e)}}),O.on("restriction-failed",function(e,t){try{A(e,t)}catch(e){console.error("wangEditor upload file - onError error",e)}}),O}wy("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),wy("zh-CN",{editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}});var bD,ED,CD,wD,DD,AD,SD,xD,TD,OD,ND,BD,kD,FD,PD,ID={};function _D(){if(ED)return bD;ED=1;var e=S();return bD=Array.isArray||function(t){return"Array"===e(t)}}function RD(){if(wD)return CD;wD=1;var e=A(),t=w(),n=ye(),r=kr(),o=$t(),i=xn(),a=function(){},s=o("Reflect","construct"),u=/^\s*(?:class|function)\b/,l=e(u.exec),c=!u.test(a),d=function(e){if(!n(e))return!1;try{return s(a,[],e),!0}catch(e){return!1}},f=function(e){if(!n(e))return!1;switch(r(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return c||!!l(u,i(e))}catch(e){return!0}};return f.sham=!0,CD=!s||t(function(){var e;return d(d.call)||!d(Object)||!d(function(){e=!0})||e})?f:d}function LD(){if(AD)return DD;AD=1;var e=_D(),t=RD(),n=be(),r=me()("species"),o=Array;return DD=function(i){var a;return e(i)&&(a=i.constructor,(t(a)&&(a===o||e(a.prototype))||n(a)&&null===(a=a[r]))&&(a=void 0)),void 0===a?o:a},DD}function MD(){if(xD)return SD;xD=1;var e=LD();return SD=function(t,n){return new(e(t))(0===n?0:n)}}function jD(){if(BD)return ND;BD=1;var e=w();return ND=function(t,n){var r=[][t];return!!r&&e(function(){r.call(null,n||function(){return 1},1)})}}function HD(){if(FD)return kD;FD=1;var e=function(){if(OD)return TD;OD=1;var e=qo(),t=A(),n=x(),r=de(),o=Qt(),i=MD(),a=t([].push),s=function(t){var s=1===t,u=2===t,l=3===t,c=4===t,d=6===t,f=7===t,p=5===t||d;return function(h,g,v,m){for(var y,b,E=r(h),C=n(E),w=o(C),D=e(g,v),A=0,S=m||i,x=s?S(h,w):u||f?S(h,0):void 0;w>A;A++)if((p||A in C)&&(b=D(y=C[A],A,E),t))if(s)x[A]=b;else if(b)switch(t){case 3:return!0;case 5:return y;case 6:return A;case 2:a(x,y)}else switch(t){case 4:return!1;case 7:a(x,y)}return d?-1:l||c?c:x}};return TD={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6),filterReject:s(7)}}().forEach,t=jD()("forEach");return kD=t?[].forEach:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)},kD}!function(){if(PD)return ID;PD=1;var e=B(),t=di(),n=fi(),r=HD(),o=cn(),i=function(e){if(e&&e.forEach!==r)try{o(e,"forEach",r)}catch(t){e.forEach=r}};for(var a in t)t[a]&&i(e[a]&&e[a].prototype);i(n)}();wy("en",{common:{ok:"OK",delete:"Delete",enter:"Enter"},blockQuote:{title:"Quote"},codeBlock:{title:"Code block"},color:{color:"Font color",bgColor:"Back color",default:"Default color",clear:"Clear back color"},divider:{title:"Divider"},emotion:{title:"Emotion"},fontSize:{title:"Font size",default:"Default"},fontFamily:{title:"Font family",default:"Default"},fullScreen:{title:"Full screen",cancelTitle:"Cancel full screen"},header:{title:"Header",text:"Text"},image:{netImage:"Net image",delete:"Delete image",edit:"Edit image",editSize:"Edit size",viewLink:"View link",src:"Image src",desc:"Description",link:"Image link",ok:"Ok",width:"Width",height:"Height"},indent:{decrease:"Decrease",increase:"Increase"},justify:{left:"Left",right:"Right",center:"Center",justify:"Justify"},lineHeight:{title:"Line height",default:"Default"},link:{insert:"Insert link",text:"Link text",url:"Link source",unLink:"Unlink",edit:"Edit link",view:"View link"},textStyle:{bold:"Bold",clear:"Clear styles",code:"Inline code",italic:"Italic",sub:"Sub",sup:"Sup",through:"Through",underline:"Underline"},undo:{undo:"undo",redo:"Redo"},todo:{todo:"Todo"},formatPainter:{title:"Format Painter"}}),wy("zh-CN",{common:{ok:"确定",delete:"删除",enter:"回车"},blockQuote:{title:"引用"},codeBlock:{title:"代码块"},color:{color:"文字颜色",bgColor:"背景色",default:"默认颜色",clear:"清除背景色"},divider:{title:"分割线"},emotion:{title:"表情"},fontSize:{title:"字号",default:"默认字号"},fontFamily:{title:"字体",default:"默认字体"},fullScreen:{title:"全屏",cancelTitle:"取消全屏"},header:{title:"标题",text:"正文"},image:{netImage:"网络图片",delete:"删除图片",edit:"编辑图片",editSize:"修改尺寸",viewLink:"查看链接",src:"图片地址",desc:"图片描述",link:"图片链接",ok:"确定",width:"宽度",height:"高度"},indent:{decrease:"减少缩进",increase:"增加缩进"},justify:{left:"左对齐",right:"右对齐",center:"居中对齐",justify:"两端对齐"},lineHeight:{title:"行高",default:"默认行高"},link:{insert:"插入链接",text:"链接文本",url:"链接地址",unLink:"取消链接",edit:"修改链接",view:"查看链接"},textStyle:{bold:"粗体",clear:"清除格式",code:"行内代码",italic:"斜体",sub:"下标",sup:"上标",through:"删除线",underline:"下划线"},undo:{undo:"撤销",redo:"重做"},todo:{todo:"待办"},formatPainter:{title:"格式刷"}});var zD={type:"blockquote",elemToHtml:function(e,t){return"<blockquote>".concat(t,"</blockquote>")}},$D='<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>',UD='<svg viewBox="0 0 1024 1024"><path d="M924.402464 1023.068211H0.679665V99.345412h461.861399v98.909208H99.596867v725.896389h725.896389V561.206811h98.909208z" p-id="10909"></path><path d="M930.805104 22.977336l69.965436 69.965436-453.492405 453.492404-69.965435-69.901489z" p-id="10910"></path><path d="M1022.464381 304.030081h-98.917201V99.345412H709.230573V0.428211h313.233808z"></path></svg>',VD='<svg viewBox="0 0 1024 1024"><path d="M133.705143 335.433143V133.851429h201.581714a29.622857 29.622857 0 0 0 29.622857-29.549715V68.754286a29.622857 29.622857 0 0 0-29.622857-29.622857H61.732571A22.893714 22.893714 0 0 0 38.765714 62.025143V335.725714c0 16.310857 13.238857 29.622857 29.622857 29.622857h35.547429a29.842286 29.842286 0 0 0 29.696-29.842285zM690.980571 133.851429h201.581715v201.654857c0 16.310857 13.238857 29.549714 29.622857 29.549714h35.547428a29.622857 29.622857 0 0 0 29.549715-29.549714V61.952a22.893714 22.893714 0 0 0-22.820572-22.893714h-273.554285a29.622857 29.622857 0 0 0-29.549715 29.622857v35.547428c0 16.310857 13.238857 29.696 29.622857 29.696zM335.286857 892.781714H133.705143V691.2a29.622857 29.622857 0 0 0-29.622857-29.622857H68.534857a29.622857 29.622857 0 0 0-29.549714 29.622857v273.554286c0 12.653714 10.24 22.893714 22.820571 22.893714h273.554286a29.622857 29.622857 0 0 0 29.696-29.622857v-35.547429a29.769143 29.769143 0 0 0-29.769143-29.696z m557.348572-201.581714v201.581714H690.907429a29.622857 29.622857 0 0 0-29.622858 29.622857v35.547429c0 16.310857 13.238857 29.622857 29.622858 29.622857h273.554285c12.580571 0 22.893714-10.313143 22.893715-22.893714V691.2a29.622857 29.622857 0 0 0-29.622858-29.622857h-35.547428a29.622857 29.622857 0 0 0-29.696 29.622857z"></path></svg>',WD=function(){function e(){this.title=Ay("blockQuote.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M894.6 907.1H605.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C752.7 180.4 711.3 315.8 711.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z m-472 0H133.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C280.7 180.4 239.3 315.8 239.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!!uv.getSelectedNodeByType(e,"blockquote")},e.prototype.isDisabled=function(e){if(null==e.selection)return!0;var t=Op(mp.Editor.nodes(e,{match:function(e){var t=uv.getNodeType(e);return"paragraph"===t||"blockquote"===t},universal:!0,mode:"highest"}),1);return!t[0]},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=this.isActive(e)?"paragraph":"blockquote";mp.Transforms.setNodes(e,{type:n},{mode:"highest"})}},e}(),GD={key:"blockquote",factory:function(){return new WD}};function qD(e){return 0===Ph("<div>".concat(e,"</div>")).children().filter(function(e){return"BR"!==e.tagName}).length}function KD(e){return 0===e.length?"":e[0].outerHTML}function YD(e){return e.length?e[0].tagName.toLowerCase():""}function XD(e,t){for(var n="",r=(e.attr("style")||"").split(";"),o=r.length,i=0;i<o;i+=1){var a=r[i];if(a){var s=a.split(":");s[0].trim()===t&&(n=s[1].trim())}}return n}Yh&&(Ph.fn.css=Yh),tg&&(Ph.fn.append=tg),ng&&(Ph.fn.prepend=ng),Ih&&(Ph.fn.addClass=Ih),_h&&(Ph.fn.removeClass=_h),Rh&&(Ph.fn.hasClass=Rh),$h&&(Ph.fn.on=$h),Uh&&(Ph.fn.off=Uh),fg&&(Ph.fn.focus=fg),Lh&&(Ph.fn.attr=Lh),Mh&&(Ph.fn.removeAttr=Mh),qh&&(Ph.fn.hide=qh),Kh&&(Ph.fn.show=Kh),og&&(Ph.fn.parents=og),Hh&&(Ph.fn.dataset=Hh),zh&&(Ph.fn.val=zh),Qh&&(Ph.fn.text=Qh),Jh&&(Ph.fn.html=Jh),ag&&(Ph.fn.children=ag),sg&&(Ph.fn.remove=sg),ig&&(Ph.fn.find=ig),Vh&&(Ph.fn.width=Vh),Wh&&(Ph.fn.height=Wh),Zh&&(Ph.fn.filter=Zh),ug&&(Ph.fn.empty=ug);var ZD={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Ph(e);return 0===(t=t.filter(function(e){return!!mp.Text.isText(e)||!!n.isInline(e)})).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:t}}};function JD(e){e.deleteBackward("character");mp.Transforms.insertNodes(e,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}var QD={type:"blockquote",renderElem:function(e,t,n){return eE("blockquote",null,t)}},eA={renderElems:[QD],elemsToHtml:[zD],parseElemsHtml:[ZD],menus:[GD],editorPlugin:function(e){var t=e.insertBreak,n=e.insertText,r=e;return r.insertBreak=function(){var o=r.selection;if(null==o)return t();var i=Op(mp.Editor.nodes(e,{match:function(e){return uv.checkNodeType(e,"blockquote")},universal:!0}),1),a=i[0];if(!a)return t();var s=a[0];if(uv.getParentNode(e,s)){var u=uv.findPath(e,s),l=mp.Editor.end(e,u);if(mp.Point.equals(l,o.focus)){var c=mp.Node.string(s);if(c&&"\n"===c.slice(-1))return void JD(r)}n("\n")}else JD(r)},r}};var tA={type:"code",elemToHtml:function(e,t){return"<code>".concat(t,"</code>")}};var nA={type:"pre",elemToHtml:function(e,t){return"<pre>".concat(t,"</pre>")}},rA=function(){function e(){this.title=Ay("codeBlock.title"),this.iconSvg='<svg viewBox="0 0 1280 1024"><path d="M832 736l96 96 320-320L928 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224zM701.312 150.528l69.472 18.944-192 704.032-69.472-18.944 192-704.032z"></path></svg>',this.tag="button"}return e.prototype.getSelectCodeElem=function(e){var t=uv.getSelectedNodeByType(e,"code");if(null==t)return null;var n=uv.getParentNode(e,t);return null==n||"pre"!==uv.getNodeType(n)?null:t},e.prototype.getValue=function(e){var t=this.getSelectCodeElem(e);if(null==t){var n=e.getMenuConfig("codeSelectLang").codeLangs,r=(void 0===n?[]:n).find(function(e){return e.selected});return(null==r?void 0:r.value)||""}return t.language||""},e.prototype.isActive=function(e){return!!this.getSelectCodeElem(e)},e.prototype.isDisabled=function(e){if(null==e.selection)return!0;var t=uv.getSelectedElems(e);return!!t.some(function(t){return e.isVoid(t)})||!t.some(function(e){var t=uv.getNodeType(e);return"pre"===t||"paragraph"===t})},e.prototype.exec=function(e,t){this.isActive(e)?this.changeToPlainText(e):this.changeToCodeBlock(e,t.toString())},e.prototype.changeToPlainText=function(e){var t=this.getSelectCodeElem(e);if(null!=t){var n=mp.Node.string(t);mp.Transforms.removeNodes(e,{mode:"highest"});var r=n.split("\n").map(function(e){return{type:"paragraph",children:[{text:e}]}});mp.Transforms.insertNodes(e,r,{mode:"highest"})}},e.prototype.changeToCodeBlock=function(e,t){var n,r,o=[],i=mp.Editor.nodes(e,{match:function(t){return e.children.includes(t)},universal:!0});try{for(var a=Tp(i),s=a.next();!s.done;s=a.next()){var u=Op(s.value,1)[0];u&&o.push(mp.Node.string(u))}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}mp.Transforms.removeNodes(e,{mode:"highest"});var l={type:"pre",children:[{type:"code",language:t,children:[{text:o.join("\n")}]}]};mp.Transforms.insertNodes(e,l,{mode:"highest"})},e}();var oA={selector:"pre:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Ph(e);return 0===(t=t.filter(function(e){return"code"===uv.getNodeType(e)})).length&&(t=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:t.filter(function(e){return"code"===uv.getNodeType(e)})}}};var iA={type:"pre",renderElem:function(e,t,n){return eE("pre",null,t)}},aA={type:"code",renderElem:function(e,t,n){return eE("code",null,t)}},sA={menus:[{key:"codeBlock",factory:function(){return new rA}}],editorPlugin:function(e){var t=e.insertBreak,n=e.normalizeNode,r=e.insertData,o=e.handleTab,i=e;return i.insertBreak=function(){var e=uv.getSelectedNodeByType(i,"code");if(null!=e){var n=function(e,t){var n=t.selection;if(null==n)return"";var r=mp.Node.string(e),o=n.anchor.offset,i=r.slice(0,o).split("\n"),a=i.length;return 0===a?"":i[a-1]}(e,i);if(n){var r=n.match(/^\s+/);if(null!=r&&null!=r[0]){var o=r[0];return void i.insertText("\n".concat(o))}}i.insertText("\n")}else t()},e.handleTab=function(){var t=e.selection;if(t){var n=uv.getSelectedNodeByType(e,"code");if(n&&!mp.Range.isCollapsed(t)){var r=Op([t.anchor,t.focus].sort(function(e,t){return e.offset-t.offset}),2),i=r[0],a=r[1],s=n.children[0].text,u=s.split("\n"),l=s.slice(0,i.offset).split("\n").length-1,c=s.slice(0,a.offset).split("\n").length-1,d=u.map(function(e,t){return t>=l&&t<=c?" ".concat(e):e}),f=d.join("\n"),p={anchor:{path:i.path,offset:i.offset+2},focus:{path:a.path,offset:a.offset+2}};mp.Transforms.insertText(e,f,{at:{anchor:{path:i.path,offset:0},focus:{path:a.path,offset:s.length}}}),mp.Transforms.select(e,p)}else o()}},i.normalizeNode=function(e){var t=Op(e,2),r=t[0],o=t[1],a=uv.getNodeType(r);("code"===a&&o.length<=1&&mp.Transforms.setNodes(i,{type:"paragraph"},{at:o}),"pre"===a)&&(uv.isLastNode(i,r)&&mp.Transforms.insertNodes(i,uv.genEmptyParagraph(),{at:[o[0]+1]}),"code"!==uv.getNodeType(r.children[0])&&(mp.Transforms.unwrapNodes(i),mp.Transforms.setNodes(i,{type:"paragraph"},{mode:"highest"})));return n([r,o])},i.insertData=function(e){if(null!=uv.getSelectedNodeByType(i,"code")){var t=e.getData("text/plain");mp.Editor.insertText(i,t)}else r(e)},i},renderElems:[iA,aA],elemsToHtml:[tA,nA],preParseHtml:[{selector:"pre>code",preParseHtml:function(e){var t=Ph(e);if("code"!==YD(t))return e;var n=t.find("xmp");if(0===n.length)return e;var r=n.text();return n.remove(),t.text(r),t[0]}}],parseElemsHtml:[{selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(e,t,n){return{type:"code",language:"",children:[{text:Ph(e)[0].textContent||""}]}}},oA]},uA=function(){function e(){this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(e,t){},e.prototype.getValue=function(e){var t=this.mark,n=mp.Editor.marks(e);return n&&n[t]?n[t]:""},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){if(null==e.selection)return!0;var t=Op(mp.Editor.nodes(e,{match:function(t){return"pre"===uv.getNodeType(t)||!!mp.Editor.isVoid(e,t)},universal:!0}),1);return!!t[0]},e.prototype.getPanelContentElem=function(e){var t=this.mark;if(null==this.$content){var n=Ph('<ul class="w-e-panel-content-color"></ul>');n.on("click","li",function(n){var r=n.target;if(null!=r&&(n.preventDefault(),null!=e.selection)){var o=Ph(r).attr("data-value");"0"===o?mp.Editor.removeMark(e,t):mp.Editor.addMark(e,t,o)}}),this.$content=n}var r=this.$content;if(null==r)return document.createElement("ul");r.empty();var o=this.getValue(e),i=e.getMenuConfig(t).colors;(void 0===i?[]:i).forEach(function(e){var t=Ph('<div class="color-block" data-value="'.concat(e,'"></div>'));t.css("background-color",e);var n=Ph('<li data-value="'.concat(e,'"></li>'));o===e&&n.addClass("active"),n.append(t),r.append(n)});var a="";"color"===t&&(a=Ay("color.default")),"bgColor"===t&&(a=Ay("color.clear"));var s=Ph('\n <li data-value="0" class="clear">\n '.concat('<svg viewBox="0 0 1024 1024"><path d="M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z"></path></svg>',"\n ").concat(a,"\n </li>\n "));return r.prepend(s),r[0]},e}(),lA=function(e){function t(){var t=e.apply(this,Np([],Op(arguments),!1))||this;return t.title=Ay("color.bgColor"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M510.030769 315.076923l84.676923 196.923077h-177.230769l76.8-196.923077h15.753846zM945.230769 157.538462v708.923076c0 43.323077-35.446154 78.769231-78.769231 78.769231H157.538462c-43.323077 0-78.769231-35.446154-78.769231-78.769231V157.538462c0-43.323077 35.446154-78.769231 78.769231-78.769231h708.923076c43.323077 0 78.769231 35.446154 78.769231 78.769231z m-108.307692 643.938461L600.615385 216.615385c-5.907692-11.815385-15.753846-19.692308-29.538462-19.692308h-139.815385c-11.815385 0-23.630769 7.876923-27.56923 19.692308l-216.615385 584.861538c-3.938462 11.815385 3.938462 25.6 17.723077 25.6h80.738462c11.815385 0 23.630769-9.846154 27.56923-21.661538l63.015385-175.261539h263.876923l68.923077 175.261539c3.938462 11.815385 15.753846 21.661538 27.569231 21.661538h80.738461c13.784615 0 23.630769-13.784615 19.692308-25.6z"></path></svg>',t.mark="bgColor",t}return wp(t,e),t}(uA),cA=function(e){function t(){var t=e.apply(this,Np([],Op(arguments),!1))||this;return t.title=Ay("color.color"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 864h896v96H64zM360.58 576h302.85l81.53 224h102.16L579.24 64H444.77L176.89 800h102.16l81.53-224zM512 159.96L628.49 480H395.52L512 159.96z"></path></svg>',t.mark="color",t}return wp(t,e),t}(uA),dA=["rgb(0, 0, 0)","rgb(38, 38, 38)","rgb(89, 89, 89)","rgb(140, 140, 140)","rgb(191, 191, 191)","rgb(217, 217, 217)","rgb(233, 233, 233)","rgb(245, 245, 245)","rgb(250, 250, 250)","rgb(255, 255, 255)","rgb(225, 60, 57)","rgb(231, 95, 51)","rgb(235, 144, 58)","rgb(245, 219, 77)","rgb(114, 192, 64)","rgb(89, 191, 192)","rgb(66, 144, 247)","rgb(54, 88, 226)","rgb(106, 57, 201)","rgb(216, 68, 147)","rgb(251, 233, 230)","rgb(252, 237, 225)","rgb(252, 239, 212)","rgb(252, 251, 207)","rgb(231, 246, 213)","rgb(218, 244, 240)","rgb(217, 237, 250)","rgb(224, 232, 250)","rgb(237, 225, 248)","rgb(246, 226, 234)","rgb(255, 163, 158)","rgb(255, 187, 150)","rgb(255, 213, 145)","rgb(255, 251, 143)","rgb(183, 235, 143)","rgb(135, 232, 222)","rgb(145, 213, 255)","rgb(173, 198, 255)","rgb(211, 173, 247)","rgb(255, 173, 210)","rgb(255, 77, 79)","rgb(255, 122, 69)","rgb(255, 169, 64)","rgb(255, 236, 61)","rgb(115, 209, 61)","rgb(54, 207, 201)","rgb(64, 169, 255)","rgb(89, 126, 247)","rgb(146, 84, 222)","rgb(247, 89, 171)","rgb(207, 19, 34)","rgb(212, 56, 13)","rgb(212, 107, 8)","rgb(212, 177, 6)","rgb(56, 158, 13)","rgb(8, 151, 156)","rgb(9, 109, 217)","rgb(29, 57, 196)","rgb(83, 29, 171)","rgb(196, 29, 127)","rgb(130, 0, 20)","rgb(135, 20, 0)","rgb(135, 56, 0)","rgb(97, 71, 0)","rgb(19, 82, 0)","rgb(0, 71, 79)","rgb(0, 58, 140)","rgb(6, 17, 120)","rgb(34, 7, 94)","rgb(120, 6, 80)"];var fA={selector:"font",preParseHtml:function(e){var t=Ph(e);if("font"!==YD(t))return e;var n=t.attr("color")||"";return n&&(t.removeAttr("color"),t.css("color",n)),t[0]}};function pA(e,t){null==e.data&&(e.data={});var n=e.data;null==n.style&&(n.style={}),Object.assign(n.style,t)}var hA={renderStyle:function(e,t){var n=e,r=n.color,o=n.bgColor,i=t;return r&&pA(i,{color:r}),o&&pA(i,{backgroundColor:o}),i},styleToHtml:function(e,t){if(!mp.Text.isText(e))return t;var n,r=e,o=r.color,i=r.bgColor;return o||i?((qD(t)||"span"!==YD(n=Ph(t)))&&(n=Ph("<span>".concat(t,"</span>"))),o&&n.css("color",o),i&&n.css("background-color",i),KD(n)):t},preParseHtml:[fA],parseStyleHtml:function(e,t,n){var r=Ph(e);if(!mp.Text.isText(t))return t;var o=t,i=XD(r,"color");i&&(o.color=i);var a=XD(r,"background-color");return a||(a=XD(r,"background")),a&&(o.bgColor=a),o},menus:[{key:"color",factory:function(){return new cA},config:{colors:dA}},{key:"bgColor",factory:function(){return new lA},config:{colors:dA}}]},gA=function(){function e(){this.title=Ay("common.enter"),this.iconSvg='<svg viewBox="0 0 1255 1024"><path d="M1095.111111 731.477333h-625.777778V1024L0 658.318222 469.333333 292.408889v292.636444h625.777778V0h156.444445v731.477333z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!!mp.Range.isExpanded(t)},e.prototype.exec=function(e,t){var n=e.selection;if(null!=n){var r=[n.anchor.path[0]];mp.Transforms.insertNodes(e,{type:"paragraph",children:[{text:""}]},{at:r}),e.select(mp.Editor.start(e,r))}},e}(),vA={menus:[{key:"enter",factory:function(){return new gA}}]};var mA={type:"divider",elemToHtml:function(e,t){return"<hr/>"}},yA=function(){function e(){this.title=Ay("divider.title"),this.iconSvg='<svg viewBox="0 0 1092 1024"><path d="M0 51.2m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M819.2 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M409.6 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 870.4m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!!uv.getSelectedElems(e).some(function(t){if(e.isVoid(t))return!0;var n=uv.getNodeType(t);return"table"===n||"pre"===n})},e.prototype.exec=function(e,t){uv.isSelectedEmptyParagraph(e)&&mp.Transforms.removeNodes(e,{mode:"highest"}),mp.Transforms.insertNodes(e,{type:"divider",children:[{text:""}]},{mode:"highest"})},e}();var bA={renderElems:[{type:"divider",renderElem:function(e,t,n){return Ib("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:uv.isNodeSelected(n,e)?"true":""},style:{},on:{mousedown:function(e){return e.preventDefault()}}},[Ib("hr")])}}],elemsToHtml:[mA],parseElemsHtml:[{selector:"hr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"divider",children:[{text:""}]}}}],menus:[{key:"divider",factory:function(){return new yA}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(e){return"divider"===e.type||t(e)},r.normalizeNode=function(e){var t=Op(e,2),o=t[0],i=t[1];if("divider"!==uv.getNodeType(o))return n([o,i]);uv.isLastNode(r,o)&&mp.Transforms.insertNodes(r,uv.genEmptyParagraph(),{at:[i[0]+1]})},r}};var EA=function(){function e(){this.title=Ay("emotion.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512z m0-102.4c226.742857 0 409.6-182.857143 409.6-409.6S738.742857 102.4 512 102.4 102.4 285.257143 102.4 512s182.857143 409.6 409.6 409.6z m-204.8-358.4h409.6c0 113.371429-91.428571 204.8-204.8 204.8s-204.8-91.428571-204.8-204.8z m0-102.4c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8 76.8 32.914286 76.8 76.8-32.914286 76.8-76.8 76.8z m409.6 0c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8c43.885714 0 76.8 32.914286 76.8 76.8s-32.914286 76.8-76.8 76.8z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(e,t){},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){if(null==e.selection)return!0;var t=Op(mp.Editor.nodes(e,{match:function(t){return"pre"===uv.getNodeType(t)||!!mp.Editor.isVoid(e,t)},universal:!0}),1);return!!t[0]},e.prototype.getPanelContentElem=function(e){if(null==this.$content){var t=Ph('<ul class="w-e-panel-content-emotion"></ul>');t.on("click","li",function(t){var n=t.target;if(null!=n){t.preventDefault();var r=Ph(n).text();e.insertText(r)}}),this.$content=t}var n=this.$content;if(null==n)return document.createElement("ul");n.empty();var r=e.getMenuConfig("emotion").emotions;return(void 0===r?[]:r).forEach(function(e){var t=Ph("<li>".concat(e,"</li>"));n.append(t)}),n[0]},e}(),CA={menus:[{key:"emotion",factory:function(){return new EA},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]};var wA=function(){function e(){this.tag="select",this.width=80}return e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.mark,n=mp.Editor.marks(e);return n&&n[t]?n[t]:""},e.prototype.isDisabled=function(e){if(null==e.selection)return!0;var t=Op(mp.Editor.nodes(e,{match:function(t){return"pre"===uv.getNodeType(t)||!!mp.Editor.isVoid(e,t)},universal:!0}),1);return!!t[0]},e.prototype.exec=function(e,t){var n=this.mark;t?e.addMark(n,t):e.removeMark(n)},e}(),DA=function(e){function t(){var t=e.apply(this,Np([],Op(arguments),!1))||this;return t.title=Ay("fontFamily.title"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M956.788364 152.110545h-24.110546l23.924364 9.029819 0.186182 121.018181h-65.070546l-86.574545-130.048H566.551273v650.14691l130.048 64.977454v65.163636h-390.050909v-65.163636l129.954909-64.977454V152.110545H198.283636L111.429818 282.065455H46.545455V69.259636C46.545455 33.792 82.664727 22.062545 98.955636 22.062545h812.683637c23.738182 0 45.056 15.173818 45.056 41.053091V169.425455v-17.221819z"></path></svg>',t.mark="fontFamily",t.selectPanelWidth=150,t}return wp(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontFamilyList,r=void 0===n?[]:n;t.push({text:Ay("fontFamily.default"),value:""}),r.forEach(function(e){if("string"==typeof e)t.push({text:e,value:e,styleForRenderMenuList:{"font-family":e}});else if("object"==typeof e){var n=e.name,r=e.value;t.push({text:n,value:r,styleForRenderMenuList:{"font-family":r}})}});var o=this.getValue(e),i=!1;return t.forEach(function(e){e.value===o?(i=!0,e.selected=!0):e.selected=void 0}),i||"string"!=typeof o||t.push({text:o,value:o,selected:!0}),t},t}(wA),AA=function(e){function t(){var t=e.apply(this,Np([],Op(arguments),!1))||this;return t.title=Ay("fontSize.title"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',t.mark="fontSize",t}return wp(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontSizeList,r=void 0===n?[]:n;t.push({text:Ay("fontSize.default"),value:""}),r.forEach(function(e){if("string"==typeof e)t.push({text:e,value:e});else if("object"==typeof e){var n=e.name,r=e.value;t.push({text:n,value:r})}});var o=this.getValue(e),i=!1;return t.forEach(function(e){e.value===o?(i=!0,e.selected=!0):e.selected=void 0}),i||"string"!=typeof o||t.push({text:o,value:o,selected:!0}),t},t}(wA);var SA={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"};var xA={renderStyle:function(e,t){var n=e,r=n.fontSize,o=n.fontFamily,i=t;return r&&pA(i,{fontSize:r}),o&&pA(i,{fontFamily:o}),i},styleToHtml:function(e,t){if(!mp.Text.isText(e))return t;var n,r=e,o=r.fontSize,i=r.fontFamily;return o||i?((qD(t)||"span"!==YD(n=Ph(t)))&&(n=Ph("<span>".concat(t,"</span>"))),o&&n.css("font-size",o),i&&n.css("font-family",i),KD(n)):t},preParseHtml:[{selector:"font",preParseHtml:function(e){var t=Ph(e);if("font"!==YD(t))return e;var n=t.attr("size")||"";n&&(t.removeAttr("size"),t.css("font-size",SA[n]));var r=t.attr("face")||"";return r&&(t.removeAttr("face"),t.css("font-family",r)),t[0]}}],parseStyleHtml:function(e,t,n){var r=Ph(e);if(!mp.Text.isText(t))return t;var o=t,i=XD(r,"font-size");i&&(o.fontSize=i);var a=XD(r,"font-family").replace(/"/g,"");return a&&(o.fontFamily=a),o},menus:[{key:"fontSize",factory:function(){return new AA},config:{fontSizeList:["12px",{name:"13px",value:"13px"},"14px","15px","16px","19px",{name:"22px",value:"22px"},"24px","29px","32px","40px","48px"]}},{key:"fontFamily",factory:function(){return new DA},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]};var TA=function(){function e(){this.title=Ay("formatPainter.title"),this.iconSvg='<svg viewBox="0 0 24 24"><path d="M8 19.997v-5h2v5h9v-7H5v7zm-4-9h16v-3h-6v-4h-4v4H4zm-1 10v-8H2v-6a1 1 0 0 1 1-1h5v-3a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v3h5a1 1 0 0 1 1 1v6h-1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1"/></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(t){return e.attrs.isSelect},e.prototype.isDisabled=function(e){return!1},e.prototype.setFormatHtml=function(t){var n,r;if(t.getSelectionText().length){if(e.attrs.formatStyle){!function(e){var t=mp.Editor.marks(e);t&&Object.keys(t).forEach(function(t){e.removeMark(t)})}(t);try{for(var o=Tp(Object.entries(e.attrs.formatStyle)),i=o.next();!i.done;i=o.next()){var a=Op(i.value,2),s=a[0],u=a[1];t.addMark(s,u)}}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}e.attrs.formatStyle=null,e.attrs.isSelect=!1}},e.prototype.exec=function(t){e.attrs.isSelect?(e.attrs.isSelect=!1,e.attrs.formatStyle=null):t.getSelectionText().length&&(e.attrs.formatStyle=mp.Editor.marks(t),e.attrs.isSelect=!0);t.blur(),t.focus()},e.attrs={isSelect:!1,formatStyle:null},e}();var OA={menus:[{key:"formatPainter",factory:function(){return new TA}}],editorPlugin:function(e){var t=new TA,n=e.onChange,r=e,o=function(){t.setFormatHtml(r),document.removeEventListener("mouseup",o)};return r.onChange=function(){n(),TA.attrs.isSelect&&(document.removeEventListener("mouseup",o),document.addEventListener("mouseup",o))},r}},NA=function(){function e(){this.title=Ay("fullScreen.title"),this.iconSvg=VD,this.tag="button",this.alwaysEnable=!0}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return e.isFullScreen},e.prototype.isDisabled=function(e){return!1},e.prototype.getIcon=function(e){return e.isFullScreen?VD:'<svg t="1723361745825" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8705" width="200" height="200"><path d="M703.926857 362.642286a42.642286 42.642286 0 0 1-42.642286-42.642286V128a42.642286 42.642286 0 1 1 85.357715 0v149.357714h149.357714c21.211429 0 38.765714 15.433143 42.057143 35.693715l0.585143 6.948571a42.642286 42.642286 0 0 1-42.642286 42.642286H703.926857zM703.926857 938.642286a42.642286 42.642286 0 0 1-42.642286-42.642286V704c0-23.552 19.090286-42.642286 42.642286-42.642286h192.073143a42.642286 42.642286 0 1 1 0 85.284572l-149.357714 0.073143v149.284571c0 21.211429-15.506286 38.765714-35.84 42.130286l-6.875429 0.512zM319.853714 938.642286a42.642286 42.642286 0 0 1-42.642285-42.642286v-149.284571H127.853714a42.642286 42.642286 0 0 1-42.130285-35.84l-0.585143-6.875429c0-23.552 19.163429-42.642286 42.715428-42.642286h192c23.552 0 42.715429 19.017143 42.715429 42.642286v192a42.642286 42.642286 0 0 1-42.715429 42.642286zM127.853714 362.642286a42.642286 42.642286 0 1 1 0-85.284572H277.211429V128c0-21.211429 15.433143-38.765714 35.766857-42.130286l6.875428-0.512c23.552 0 42.715429 19.017143 42.715429 42.642286v192a42.642286 42.642286 0 0 1-42.715429 42.642286H127.853714z" fill="#333333" p-id="8706"></path></svg>'},e.prototype.getTitle=function(e){return e.isFullScreen?Ay("fullScreen.title"):Ay("fullScreen.cancelTitle")},e.prototype.exec=function(e,t){e.isFullScreen?e.unFullScreen():e.fullScreen()},e}(),BA={menus:[{key:"fullScreen",factory:function(){return new NA}}]};function kA(e){return function(t,n){return"<h".concat(e,">").concat(n,"</h").concat(e,">")}}var FA={type:"header1",elemToHtml:kA(1)},PA={type:"header2",elemToHtml:kA(2)},IA={type:"header3",elemToHtml:kA(3)},_A={type:"header4",elemToHtml:kA(4)},RA={type:"header5",elemToHtml:kA(5)},LA={type:"header6",elemToHtml:kA(6)};function MA(e){var t=Op(mp.Editor.nodes(e,{match:function(e){return uv.getNodeType(e).startsWith("header")},universal:!0}),1),n=t[0];if(null==n)return"paragraph";var r=Op(n,1)[0];return uv.getNodeType(r)}function jA(e){if(null==e.selection)return!0;var t=Op(mp.Editor.nodes(e,{match:function(e){var t=uv.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1);return!t[0]}function HA(e,t){t&&mp.Transforms.setNodes(e,{type:t})}var zA=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return MA(e)},e.prototype.isActive=function(e){return this.getValue(e)===this.type},e.prototype.isDisabled=function(e){return jA(e)},e.prototype.exec=function(e,t){var n=this.type;HA(e,t===n?"paragraph":n)},e}(),$A=function(e){function t(){var t=e.apply(this,Np([],Op(arguments),!1))||this;return t.title="H1",t.type="header1",t}return wp(t,e),t}(zA),UA=function(e){function t(){var t=e.apply(this,Np([],Op(arguments),!1))||this;return t.title="H2",t.type="header2",t}return wp(t,e),t}(zA),VA=function(e){function t(){var t=e.apply(this,Np([],Op(arguments),!1))||this;return t.title="H3",t.type="header3",t}return wp(t,e),t}(zA),WA=function(e){function t(){var t=e.apply(this,Np([],Op(arguments),!1))||this;return t.title="H4",t.type="header4",t}return wp(t,e),t}(zA),GA=function(e){function t(){var t=e.apply(this,Np([],Op(arguments),!1))||this;return t.title="H5",t.type="header5",t}return wp(t,e),t}(zA),qA=function(e){function t(){var t=e.apply(this,Np([],Op(arguments),!1))||this;return t.title="H6",t.type="header6",t}return wp(t,e),t}(zA),KA=function(){function e(){this.title=Ay("header.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M960 960c-51.2 0-102.4-3.2-153.6-3.2-51.2 0-99.2 3.2-150.4 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 57.6-28.8 86.4-48 19.2-12.8 19.2-60.8 19.2-80v-224-19.2c-9.6-3.2-19.2-3.2-28.8-3.2H320c-9.6 0-19.2 0-28.8 3.2V780.8c0 22.4 0 80 22.4 92.8 28.8 19.2 96-6.4 96 44.8 0 16-9.6 41.6-28.8 41.6-54.4 0-105.6-3.2-160-3.2-48 0-96 3.2-147.2 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 51.2-28.8 80-48 19.2-12.8 19.2-60.8 19.2-83.2V294.4c0-28.8 3.2-115.2-22.4-131.2-25.6-16-86.4 9.6-86.4-41.6 0-16 6.4-41.6 28.8-41.6 51.2 0 105.6 3.2 156.8 3.2 48 0 96-3.2 144-3.2 19.2 0 28.8 22.4 28.8 41.6 0 48-57.6 25.6-83.2 41.6-19.2 12.8-19.2 73.6-19.2 92.8v201.6c6.4 3.2 16 3.2 22.4 3.2h400c6.4 0 12.8 0 22.4-3.2V256c0-22.4 0-80-19.2-92.8-28.8-16-86.4 6.4-86.4-41.6 0-16 9.6-41.6 28.8-41.6 51.2 0 99.2 3.2 150.4 3.2 48 0 99.2-3.2 147.2-3.2 19.2 0 28.8 22.4 28.8 41.6 0 51.2-57.6 25.6-86.4 41.6-19.2 12.8-19.2 70.4-19.2 92.8v537.6c0 19.2 0 67.2 19.2 80 28.8 19.2 89.6-6.4 89.6 44.8 0 19.2-6.4 41.6-28.8 41.6z"></path></svg>',this.tag="select",this.width=60}return e.prototype.getOptions=function(e){var t=[{value:"header1",text:"H1",styleForRenderMenuList:{"font-size":"32px","font-weight":"bold"}},{value:"header2",text:"H2",styleForRenderMenuList:{"font-size":"24px","font-weight":"bold"}},{value:"header3",text:"H3",styleForRenderMenuList:{"font-size":"18px","font-weight":"bold"}},{value:"header4",text:"H4",styleForRenderMenuList:{"font-size":"16px","font-weight":"bold"}},{value:"header5",text:"H5",styleForRenderMenuList:{"font-size":"13px","font-weight":"bold"}},{value:"header6",text:"H6",styleForRenderMenuList:{"font-size":"11px","font-weight":"bold"}},{value:"paragraph",text:Ay("header.text")}],n=this.getValue(e).toString();return t.forEach(function(e){e.value===n?e.selected=!0:e.selected=void 0}),t},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){return MA(e)},e.prototype.isDisabled=function(e){return jA(e)},e.prototype.exec=function(e,t){HA(e,t.toString())},e}(),YA={key:"headerSelect",factory:function(){return new KA}},XA={key:"header1",factory:function(){return new $A}},ZA={key:"header2",factory:function(){return new UA}},JA={key:"header3",factory:function(){return new VA}},QA={key:"header4",factory:function(){return new WA}},eS={key:"header5",factory:function(){return new GA}},tS={key:"header6",factory:function(){return new qA}};function nS(e){return function(t,n,r){var o=Ph(t);return 0===(n=n.filter(function(e){return!!mp.Text.isText(e)||!!r.isInline(e)})).length&&(n=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header".concat(e),children:n}}}var rS={selector:"h1:not([data-w-e-type])",parseElemHtml:nS(1)},oS={selector:"h2:not([data-w-e-type])",parseElemHtml:nS(2)},iS={selector:"h3:not([data-w-e-type])",parseElemHtml:nS(3)},aS={selector:"h4:not([data-w-e-type])",parseElemHtml:nS(4)},sS={selector:"h5:not([data-w-e-type])",parseElemHtml:nS(5)},uS={selector:"h6:not([data-w-e-type])",parseElemHtml:nS(6)};function lS(e){return function(t,n,r){return eE("h".concat(e),null,n)}}var cS={renderElems:[{type:"header1",renderElem:lS(1)},{type:"header2",renderElem:lS(2)},{type:"header3",renderElem:lS(3)},{type:"header4",renderElem:lS(4)},{type:"header5",renderElem:lS(5)},{type:"header6",renderElem:lS(6)}],elemsToHtml:[FA,PA,IA,_A,RA,LA],parseElemsHtml:[rS,oS,iS,aS,sS,uS],menus:[YA,XA,ZA,JA,QA,eS,tS],editorPlugin:function(e){var t=e.insertBreak,n=e;return n.insertBreak=function(){var r=Op(mp.Editor.nodes(n,{match:function(e){return uv.getNodeType(e).startsWith("header")},universal:!0}),1),o=r[0];if(o)if(uv.isSelectionAtLineEnd(e,o[1])){mp.Transforms.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}else t();else t()},n}};var dS={type:"image",elemToHtml:function(e,t){var n=e,r=n.src,o=n.alt,i=void 0===o?"":o,a=n.href,s=void 0===a?"":a,u=n.width,l=void 0===u?"":u,c=n.height,d=void 0===c?"":c,f=n.style,p=void 0===f?{}:f,h=p.width,g=void 0===h?"":h,v=p.height,m=void 0===v?"":v,y="";return g&&(y+="width: ".concat(g,";")),m&&(y+="height: ".concat(m,";")),'<img src="'.concat(r,'" alt="').concat(i,'" data-href="').concat(s,'" width="').concat(l,'" height="').concat(d,'" style="').concat(y,'"/>')}};var fS=function(){function e(){this.title=Ay("image.delete"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==uv.getSelectedNodeByType(e,"image")},e.prototype.exec=function(e,t){this.isDisabled(e)||mp.Transforms.removeNodes(e,{match:function(e){return uv.checkNodeType(e,"image")}})},e}();function pS(e){return void 0===e&&(e="r"),"".concat(e,"-").concat(hg())}function hS(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;")}function gS(e){var t=e.selection;if(null==t)return!0;if(!mp.Range.isCollapsed(t))return!0;var n=Op(mp.Editor.nodes(e,{match:function(t){var n=uv.getNodeType(t);return"code"===n||("pre"===n||("link"===n||("list-item"===n||(!!n.startsWith("header")||("blockquote"===n||!!mp.Editor.isVoid(e,t))))))},universal:!0}),1);return!!n[0]}function vS(e,t,n){return Sp(this,arguments,void 0,function(e,t,n,r,o){var i,a;return void 0===r&&(r=""),void 0===o&&(o=""),xp(this,function(s){switch(s.label){case 0:return(i=t.getMenuConfig(e).checkImage)?[4,i(n,r,o)]:[3,2];case 1:if("string"==typeof(a=s.sent()))return t.alert(a,"error"),[2,!1];if(null==a)return[2,!1];s.label=2;case 2:return[2,!0]}})})}function mS(e,t,n){return Sp(this,void 0,void 0,function(){var r;return xp(this,function(o){switch(o.label){case 0:return(r=t.getMenuConfig(e).parseImageSrc)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}})})}function yS(e,t){return Sp(this,arguments,void 0,function(e,t,n,r){var o,i,a;return void 0===n&&(n=""),void 0===r&&(r=""),xp(this,function(s){switch(s.label){case 0:return[4,vS("insertImage",e,t,n,r)];case 1:return s.sent()?[4,mS("insertImage",e,t)]:[2];case 2:return o=s.sent(),i={type:"image",src:hS(o),href:r,alt:n,style:{},children:[{text:""}]},null===e.selection&&e.restoreSelection(),uv.getSelectedNodeByType(e,"image")&&e.move(1),gS(e)?[2]:(mp.Transforms.insertNodes(e,i),(a=e.getMenuConfig("insertImage").onInsertedImage)&&a(i),[2])}})})}function bS(){return pS("w-e-edit-image")}var ES=function(){function e(){this.title=Ay("image.edit"),this.iconSvg=$D,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=bS(),this.altInputId=bS(),this.hrefInputId=bS(),this.buttonId=bS()}return e.prototype.getValue=function(e){return""},e.prototype.getImageNode=function(e){return uv.getSelectedNodeByType(e,"image")},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||(!mp.Range.isCollapsed(t)||null==uv.getSelectedNodeByType(e,"image"))},e.prototype.getModalPositionNode=function(e){return this.getImageNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.altInputId,i=n.hrefInputId,a=n.buttonId,s=this.getImageNode(e);if(null==s)throw new Error("Not found selected image node");var u=Op(_y(Ay("image.src"),r),2),l=u[0],c=Ph(u[1]),d=Op(_y(Ay("image.desc"),o),2),f=d[0],p=Ph(d[1]),h=Op(_y(Ay("image.link"),i),2),g=h[0],v=Ph(h[1]),m=Op(Ry(a,Ay("common.ok")),1)[0];if(null==this.$content){var y=Ph("<div></div>");y.on("click","#".concat(a),function(n){n.preventDefault();var a=y.find("#".concat(r)).val(),s=y.find("#".concat(o)).val(),u=y.find("#".concat(i)).val();t.updateImage(e,a,s,u),e.hidePanelOrModal()}),this.$content=y}var b=this.$content;b.empty(),b.append(l),b.append(f),b.append(g),b.append(m);var E=s,C=E.src,w=E.alt,D=void 0===w?"":w,A=E.href,S=void 0===A?"":A;return c.val(C),p.val(D),v.val(S),setTimeout(function(){c.focus()}),b[0]},e.prototype.updateImage=function(e,t,n,r,o){void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o={}),t&&(e.restoreSelection(),this.isDisabled(e)||function(e,t){Sp(this,arguments,void 0,function(e,t,n,r,o){var i,a,s,u,l,c;return void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o={}),xp(this,function(d){switch(d.label){case 0:return[4,vS("editImage",e,t,n,r)];case 1:return d.sent()?[4,mS("editImage",e,t)]:[2];case 2:return i=d.sent(),null==(a=uv.getSelectedNodeByType(e,"image"))||(s=a.style,u={src:i,alt:n,href:r,style:Dp(Dp({},void 0===s?{}:s),o)},mp.Transforms.setNodes(e,u,{match:function(e){return uv.checkNodeType(e,"image")}}),l=uv.getSelectedNodeByType(e,"image"),(c=e.getMenuConfig("editImage").onUpdatedImage)&&c(l)),[2]}})})}(e,t,n,r,o))},e}();function CS(){return pS("w-e-insert-image")}var wS=function(){function e(){this.title=Ay("image.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=CS(),this.heightInputId=CS(),this.buttonId=CS()}return e.prototype.getSelectedImageNode=function(e){return uv.getSelectedNodeByType(e,"image")},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedImageNode(e)},e.prototype.getModalPositionNode=function(e){return this.getSelectedImageNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=t.widthInputId,r=t.heightInputId,o=t.buttonId,i=Op(_y(Ay("image.width"),n,"auto"),2),a=i[0],s=Ph(i[1]),u=Op(_y(Ay("image.height"),r,"auto"),2),l=u[0],c=Ph(u[1]),d=Op(Ry(o,Ay("image.ok")),1)[0],f=this.getSelectedImageNode(e);if(null==this.$content){var p=Ph("<div></div>");p.on("click","#".concat(o),function(t){t.preventDefault();var o=p.find("#".concat(n)).val().trim(),i=p.find("#".concat(r)).val().trim(),a=function(e){return/^\d+(\.\d+)?%$/.test(e)},s=function(e){return/^\d+(\.\d+)?$/.test(e)},u=function(e){return/^\d+(\.\d+)?px$/.test(e)},l="auto",c="auto";a(o)?l=o:s(o)?l="".concat(parseInt(o,10),"px"):u(o)&&(l=o),a(i)?c=i:s(i)?c="".concat(parseInt(i,10),"px"):u(i)&&(c=i);var d=f.style,h=void 0===d?{}:d;e.restoreSelection();var g=Dp(Dp({},h),{style:{width:l,height:c}});mp.Transforms.setNodes(e,g,{match:function(e){return uv.checkNodeType(e,"image")}}),e.hidePanelOrModal()}),this.$content=p}var h=this.$content;if(h.empty(),h.append(a),h.append(l),h.append(d),null==f)return h[0];var g=f.style,v=void 0===g?{}:g,m=v.width,y=void 0===m?"auto":m,b=v.height,E=void 0===b?"auto":b;return s.val(y),c.val(E),setTimeout(function(){s.focus()}),h[0]},e}();function DS(){return pS("w-e-insert-image")}var AS=function(){function e(){this.title=Ay("image.netImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=DS(),this.altInputId=DS(),this.hrefInputId=DS(),this.buttonId=DS()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return gS(e)},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.altInputId,i=n.hrefInputId,a=n.buttonId,s=Op(_y(Ay("image.src"),r),2),u=s[0],l=Ph(s[1]),c=Op(_y(Ay("image.desc"),o),2),d=c[0],f=Ph(c[1]),p=Op(_y(Ay("image.link"),i),2),h=p[0],g=Ph(p[1]),v=Op(Ry(a,Ay("common.ok")),1)[0];if(null==this.$content){var m=Ph("<div></div>");m.on("click","#".concat(a),function(n){n.preventDefault();var a=m.find("#".concat(r)).val().trim(),s=m.find("#".concat(o)).val().trim(),u=m.find("#".concat(i)).val().trim();t.insertImage(e,a,s,u),e.hidePanelOrModal()}),this.$content=m}var y=this.$content;return y.empty(),y.append(u),y.append(d),y.append(h),y.append(v),l.val(""),f.val(""),g.val(""),setTimeout(function(){l.focus()}),y[0]},e.prototype.insertImage=function(e,t,n,r){void 0===n&&(n=""),void 0===r&&(r=""),t&&(e.restoreSelection(),this.isDisabled(e)||yS(e,t,n,r))},e}(),SS=function(){function e(){this.title=Ay("image.viewLink"),this.iconSvg=UD,this.tag="button"}return e.prototype.getValue=function(e){var t=uv.getSelectedNodeByType(e,"image");return t&&t.href||""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!this.getValue(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){if(!t||"string"!=typeof t)throw new Error("View image link failed, image.href is '".concat(t,"'"));window.open(t,"_blank")}},e}(),xS=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.getSelectedNode=function(e){return uv.getSelectedNodeByType(e,"image")},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedNode(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=this.getSelectedNode(e);if(null!=n){var r=uv.getHoverbar(e);r&&r.hideAndClean();var o=n.style,i={style:Dp(Dp({},void 0===o?{}:o),{width:this.value,height:""})};mp.Transforms.setNodes(e,i,{match:function(e){return uv.checkNodeType(e,"image")}})}}},e}(),TS=function(e){function t(){var t=e.apply(this,Np([],Op(arguments),!1))||this;return t.title="30%",t.value="30%",t}return wp(t,e),t}(xS),OS=function(e){function t(){var t=e.apply(this,Np([],Op(arguments),!1))||this;return t.title="50%",t.value="50%",t}return wp(t,e),t}(xS),NS=function(e){function t(){var t=e.apply(this,Np([],Op(arguments),!1))||this;return t.title="100%",t.value="100%",t}return wp(t,e),t}(xS),BS={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,n){return!0},parseImageSrc:function(e){return e}};function kS(e,t){var n=uv.findKey(e,t).id;return"w-e-image-container-".concat(n)}function FS(e,t,n,r){var o=Ph("body"),i=kS(e,t),a=r.width,s=r.height,u=0,l=0,c=0,d=0,f=!1,p=null;var h=Yy(function(e){e.preventDefault();var t=e.clientX,n=l+(f?u-t:t-u),r=c*(n/l);n>d-6||null!=p&&(n<=15||r<=15||(p.css("width","".concat(n,"px")),p.css("height","".concat(r,"px"))))},100);function g(n){if(o.off("mousemove",h),null!=p){var r=p.width().toFixed(2),i=p.height().toFixed(2),a={style:Dp(Dp({},t.style),{width:"".concat(r,"px"),height:"".concat(i,"px")})};mp.Transforms.setNodes(e,a,{at:uv.findPath(e,t)}),o.off("mouseup",g)}}function v(t,n){p=function(){var e=Ph("#".concat(i));if(0===e.length)throw new Error("Cannot find image container elem");return e}(),u=t,d=n;var r=p.find("img");if(0===r.length)throw new Error("Cannot find image elem");l=r.width(),c=r.height(),o.on("mousemove",h),o.on("mouseup",g);var a=uv.getHoverbar(e);a&&a.hideAndClean()}var m={};return a&&(m.width=a),s&&(m.height=s),m.boxShadow="0 0 0 1px #B4D5FF",eE("div",{id:i,style:m,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(n){var r=Ph(n.target);if(r.hasClass("w-e-image-dragger")){n.preventDefault(),(r.hasClass("left-top")||r.hasClass("left-bottom"))&&(f=!0);var o=uv.getParentNode(e,t);if(null!=o){var i=uv.toDOMNode(e,o),a=i.getBoundingClientRect?i.getBoundingClientRect():{width:0},s=window.getComputedStyle(i),u=parseFloat(s.paddingLeft),l=parseFloat(s.paddingRight),c=parseFloat(s.borderLeftWidth),d=parseFloat(s.borderRightWidth);v(n.clientX,a.width-u-l-c-d)}}}}},n,eE("div",{className:"w-e-image-dragger left-top"}),eE("div",{className:"w-e-image-dragger right-top"}),eE("div",{className:"w-e-image-dragger left-bottom"}),eE("div",{className:"w-e-image-dragger right-bottom"}))}var PS={type:"image",renderElem:function(e,t,n){var r=e,o=r.src,i=r.alt,a=void 0===i?"":i,s=r.href,u=void 0===s?"":s,l=r.style,c=void 0===l?{}:l,d=c.width,f=void 0===d?"":d,p=c.height,h=void 0===p?"":p,g=uv.isNodeSelected(n,e),v={maxWidth:"100%"};f&&(v.width="100%"),h&&(v.height="100%");var m=eE("img",{style:v,src:o,alt:a,"data-href":u}),y=n.isDisabled();return g&&!y?FS(n,e,m,{width:f,height:h}):function(e,t,n,r){var o=r.width,i=r.height,a={};return o&&(a.width=o),i&&(a.height=i),eE("div",{id:kS(e,t),style:a,className:"w-e-image-container"},n)}(n,e,m,{width:f,height:h})}},IS={renderElems:[PS],elemsToHtml:[dS],parseElemsHtml:[{selector:"img:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Ph(e),o=r.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:o,style:{width:XD(r,"width"),height:XD(r,"height")},width:r.attr("width")||"",height:r.attr("height")||"",children:[{text:""}]}}}],menus:[{key:"insertImage",factory:function(){return new AS},config:BS},{key:"deleteImage",factory:function(){return new fS}},{key:"editImage",factory:function(){return new ES},config:BS},{key:"viewImageLink",factory:function(){return new SS}},{key:"imageWidth30",factory:function(){return new TS}},{key:"imageWidth50",factory:function(){return new OS}},{key:"imageWidth100",factory:function(){return new NS}},{key:"editorImageSizeMenu",factory:function(){return new wS}}],editorPlugin:function(e){var t=e.isInline,n=e.isVoid,r=e;return r.isInline=function(e){return"image"===e.type||t(e)},r.isVoid=function(e){return"image"===e.type||n(e)},r}},_S=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){var t=Op(mp.Editor.nodes(e,{match:function(e){return!!e.indent},universal:!0}),1),n=t[0];return null==n?"":Op(n,1)[0].indent||""},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=Op(mp.Editor.nodes(e,{match:function(e){var t=uv.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1),n=t[0];return null==n?null:n[0]},e}(),RS=function(e){function t(){var t=e.apply(this,Np([],Op(arguments),!1))||this;return t.title=Ay("indent.decrease"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',t}return wp(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!t.indent},t.prototype.exec=function(e,t){mp.Transforms.setNodes(e,{indent:null},{match:function(e){return mp.Element.isElement(e)}})},t}(_S),LS=function(e){function t(){var t=e.apply(this,Np([],Op(arguments),!1))||this;return t.title=Ay("indent.increase"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',t.DEFAULT_INDENT_VALUE="2em",t}return wp(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!!t.indent},t.prototype.getIndentValue=function(e){var t=this.getMatchNode(e);if(!t)return this.DEFAULT_INDENT_VALUE;var n=t.children.filter(mp.Text.isText)[0];if(!n||!n.fontSize)return this.DEFAULT_INDENT_VALUE;var r=n.fontSize,o=parseInt(n.fontSize,10),i=r.replace("".concat(o),"");return"".concat(2*o).concat(i)},t.prototype.exec=function(e,t){var n=this.getIndentValue(e);mp.Transforms.setNodes(e,{indent:n},{match:function(e){return mp.Element.isElement(e)},mode:"highest"})},t}(_S);var MS={renderStyle:function(e,t){if(!mp.Element.isElement(e))return t;var n=e.indent,r=t;return n&&pA(r,{textIndent:n}),r},styleToHtml:function(e,t){if(!mp.Element.isElement(e))return t;var n=e.indent;if(!n)return t;var r=Ph(t);return r.css("text-indent",n),KD(r)},preParseHtml:[{selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(e){var t=Ph(e),n=XD(t,"padding-left");return/^[1-9]\d*em$/.test(n)&&t.css("text-indent","2em"),/^[1-9]\d*px$/.test(n)&&parseInt(n,10)%32==0&&t.css("text-indent","2em"),t[0]}}],parseStyleHtml:function(e,t,n){var r=Ph(e);if(!mp.Element.isElement(t))return t;var o=t,i=XD(r,"text-indent"),a=parseInt(i,10);return i&&a>0&&(o.indent=i),o},menus:[{key:"indent",factory:function(){return new LS}},{key:"delIndent",factory:function(){return new RS}}]},jS=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!!uv.getSelectedElems(e).some(function(t){var n=t.type;return!(!mp.Editor.isVoid(e,t)||!mp.Editor.isBlock(e,t)||"video"===n)||!!["pre","code"].includes(n)})},e}(),HS=function(e){function t(){var t=e.apply(this,Np([],Op(arguments),!1))||this;return t.title=Ay("justify.center"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M870.4 793.6v102.4H153.6v-102.4h716.8z m102.4-230.4v102.4H51.2v-102.4h921.6z m-102.4-230.4v102.4H153.6v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',t}return wp(t,e),t.prototype.exec=function(e,t){mp.Transforms.setNodes(e,{textAlign:"center"},{match:function(t){return mp.Element.isElement(t)&&!e.isInline(t)}})},t}(jS),zS=function(e){function t(){var t=e.apply(this,Np([],Op(arguments),!1))||this;return t.title=Ay("justify.justify"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',t}return wp(t,e),t.prototype.exec=function(e,t){mp.Transforms.setNodes(e,{textAlign:"justify"},{match:function(t){return mp.Element.isElement(t)&&!e.isInline(t)}})},t}(jS),$S=function(e){function t(){var t=e.apply(this,Np([],Op(arguments),!1))||this;return t.title=Ay("justify.left"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',t}return wp(t,e),t.prototype.exec=function(e,t){mp.Transforms.setNodes(e,{textAlign:"left"},{match:function(t){return mp.Element.isElement(t)&&!e.isInline(t)}})},t}(jS),US=function(e){function t(){var t=e.apply(this,Np([],Op(arguments),!1))||this;return t.title=Ay("justify.right"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M972.8 793.6v102.4H256v-102.4h716.8z m0-230.4v102.4H51.2v-102.4h921.6z m0-230.4v102.4H256v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',t}return wp(t,e),t.prototype.exec=function(e,t){mp.Transforms.setNodes(e,{textAlign:"right"},{match:function(t){return mp.Element.isElement(t)&&!e.isInline(t)}})},t}(jS);var VS={renderStyle:function(e,t){if(!mp.Element.isElement(e))return t;var n=e.textAlign,r=t;return n&&pA(r,{textAlign:n}),r},styleToHtml:function(e,t){if(!mp.Element.isElement(e))return t;var n=e.textAlign;if(!n)return t;var r=Ph(t);return r.css("text-align",n),KD(r)},parseStyleHtml:function(e,t,n){var r=Ph(e);if(!mp.Element.isElement(t))return t;var o=t,i=XD(r,"text-align");return i&&(o.textAlign=i),o},menus:[{key:"justifyLeft",factory:function(){return new $S}},{key:"justifyRight",factory:function(){return new US}},{key:"justifyCenter",factory:function(){return new HS}},{key:"justifyJustify",factory:function(){return new zS}}]};var WS=function(){function e(){this.title=Ay("lineHeight.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M964 788a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526zM198.93 144.306c6.668-5.798 16.774-5.094 22.573 1.574l122.26 140.582a16 16 0 0 1 3.927 10.5c0 8.836-7.164 16-16 16h-61.8a8 8 0 0 0-8 8v390.077h69.819a16 16 0 0 1 10.502 3.928c6.666 5.8 7.37 15.906 1.57 22.573L221.476 878.123a16 16 0 0 1-1.57 1.57c-6.668 5.8-16.774 5.097-22.574-1.57L75.051 737.538a16 16 0 0 1-3.928-10.5c0-8.837 7.163-16 16-16h69.822V312.96H87.127a16 16 0 0 1-10.502-3.928c-6.666-5.8-7.37-15.906-1.57-22.573l122.303-140.582a16 16 0 0 1 1.572-1.572zM964 465a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z m0-323a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z"></path></svg>',this.tag="select",this.width=80}return e.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig("lineHeight").lineHeightList,r=void 0===n?[]:n;t.push({text:Ay("lineHeight.default"),value:""}),r.forEach(function(e){t.push({text:e,value:e})});var o=this.getValue(e);return t.forEach(function(e){e.value===o?e.selected=!0:e.selected=void 0}),t},e.prototype.getMatchNode=function(e){var t=Op(mp.Editor.nodes(e,{match:function(e){var t=uv.getNodeType(e);return!!t.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(t)},universal:!0,mode:"highest"}),1),n=t[0];return null==n?null:n[0]},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.getMatchNode(e);return null==t?"":mp.Element.isElement(t)&&t.lineHeight||""},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getMatchNode(e)},e.prototype.exec=function(e,t){mp.Transforms.setNodes(e,{lineHeight:t.toString()},{mode:"highest"})},e}();var GS={renderStyle:function(e,t){if(!mp.Element.isElement(e))return t;var n=e.lineHeight,r=t;return n&&pA(r,{lineHeight:n}),r},styleToHtml:function(e,t){if(!mp.Element.isElement(e))return t;var n=e.lineHeight;if(!n)return t;var r=Ph(t);return r.css("line-height",n),KD(r)},parseStyleHtml:function(e,t,n){var r=Ph(e);if(!mp.Element.isElement(t))return t;var o=t,i=n.getMenuConfig("lineHeight").lineHeightList,a=void 0===i?[]:i,s=XD(r,"line-height");return s&&a.includes(s)&&(o.lineHeight=s),o},menus:[{key:"lineHeight",factory:function(){return new WS},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]};var qS={type:"link",elemToHtml:function(e,t){var n=e,r=n.url,o=n.target,i=void 0===o?"_blank":o;return'<a href="'.concat(r,'" target="').concat(i,'">').concat(t,"</a>")}};function KS(e,t,n,r){return Sp(this,void 0,void 0,function(){var o,i;return xp(this,function(a){switch(a.label){case 0:return(o=t.getMenuConfig(e).checkLink)?[4,o(n,r)]:[3,2];case 1:if("string"==typeof(i=a.sent()))return t.alert(i,"error"),[2,!1];if(null==i)return[2,!1];a.label=2;case 2:return[2,!0]}})})}function YS(e,t,n){return Sp(this,void 0,void 0,function(){var r;return xp(this,function(o){switch(o.label){case 0:return(r=t.getMenuConfig(e).parseLinkUrl)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}})})}function XS(e){return null==e.selection||!!uv.getSelectedElems(e).some(function(t){var n=t.type;return!!e.isVoid(t)||!!["pre","code","link"].includes(n)})}function ZS(e,t){return{type:"link",url:hS(e),children:t?[{text:t}]:[]}}function JS(e,t,n){return Sp(this,void 0,void 0,function(){var r,o,i,a,s;return xp(this,function(u){switch(u.label){case 0:return n?(t||(t=n),e.restoreSelection(),XS(e)?[2]:[4,KS("insertLink",e,t,n)]):[2];case 1:return u.sent()?[4,YS("insertLink",e,n)]:[2];case 2:if(r=u.sent(),null==(o=e.selection))return[2];if(mp.Range.isCollapsed(o)){if((a=uv.getLeftLengthOfMaxLength(e))<=0)return[2];e.insertText(" "),a<t.length+1&&(t=t.slice(0,a-1)),s=ZS(r,t),mp.Transforms.insertNodes(e,s),e.insertFragment([{text:" "}])}else if((i=mp.Editor.string(e,o))!==t){if((a=uv.getLeftLengthOfMaxLength(e))<=0)return[2];a<i.length-t.length&&(t=t.slice(0,a)),e.deleteFragment(),s=ZS(r,t),mp.Transforms.insertNodes(e,s)}else s=ZS(r),mp.Transforms.wrapNodes(e,s,{split:!0}),mp.Transforms.collapse(e,{edge:"end"});return[2]}})})}function QS(){return pS("w-e-update-link")}var ex=function(){function e(){this.title=Ay("link.edit"),this.iconSvg=$D,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=QS(),this.buttonId=QS()}return e.prototype.getSelectedLinkElem=function(e){var t=uv.getSelectedNodeByType(e,"link");return null==t?null:t},e.prototype.getValue=function(e){var t=this.getSelectedLinkElem(e);return t&&t.url||""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedLinkElem(e)},e.prototype.getModalPositionNode=function(e){return uv.getSelectedNodeByType(e,"link")},e.prototype.getModalContentElem=function(e){var t=this.urlInputId,n=this.buttonId,r=Op(_y(Ay("link.url"),t),2),o=r[0],i=Ph(r[1]),a=Op(Ry(n,Ay("common.ok")),1)[0];if(null==this.$content){var s=Ph("<div></div>");s.on("click","#".concat(n),function(n){n.preventDefault(),e.restoreSelection();var r=uv.getSelectedNodeByType(e,"link"),o=r?mp.Node.string(r):"",i=s.find("#".concat(t)).val();!function(e,t,n){Sp(this,void 0,void 0,function(){var r,o;return xp(this,function(i){switch(i.label){case 0:return n?[4,KS("editLink",e,t,n)]:[2];case 1:return i.sent()?[4,YS("editLink",e,n)]:[2];case 2:return r=i.sent(),o={url:hS(r)},mp.Transforms.setNodes(e,o,{match:function(e){return uv.checkNodeType(e,"link")}}),[2]}})})}(e,o,i),e.hidePanelOrModal()}),this.$content=s}var u=this.$content;u.empty(),u.append(o),u.append(a);var l=this.getValue(e);return i.val(l),setTimeout(function(){i.focus()}),u[0]},e}();function tx(){return pS("w-e-insert-link")}var nx=function(){function e(){this.title=Ay("link.insert"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M440.224 635.776a51.84 51.84 0 0 1-36.768-15.232c-95.136-95.136-95.136-249.92 0-345.056l192-192C641.536 37.408 702.816 12.032 768 12.032s126.432 25.376 172.544 71.456c95.136 95.136 95.136 249.92 0 345.056l-87.776 87.776a51.968 51.968 0 1 1-73.536-73.536l87.776-87.776a140.16 140.16 0 0 0 0-197.984c-26.432-26.432-61.6-40.992-99.008-40.992s-72.544 14.56-99.008 40.992l-192 192a140.16 140.16 0 0 0 0 197.984 51.968 51.968 0 0 1-36.768 88.768z"></path><path d="M256 1012a242.4 242.4 0 0 1-172.544-71.456c-95.136-95.136-95.136-249.92 0-345.056l87.776-87.776a51.968 51.968 0 1 1 73.536 73.536l-87.776 87.776a140.16 140.16 0 0 0 0 197.984c26.432 26.432 61.6 40.992 99.008 40.992s72.544-14.56 99.008-40.992l192-192a140.16 140.16 0 0 0 0-197.984 51.968 51.968 0 1 1 73.536-73.536c95.136 95.136 95.136 249.92 0 345.056l-192 192A242.4 242.4 0 0 1 256 1012z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.textInputId=tx(),this.urlInputId=tx(),this.buttonId=tx()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return XS(e)},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=e.selection,n=this,r=n.textInputId,o=n.urlInputId,i=n.buttonId,a=Op(_y(Ay("link.text"),r),2),s=a[0],u=Ph(a[1]),l=Op(_y(Ay("link.url"),o),2),c=l[0],d=Ph(l[1]),f=Op(Ry(i,Ay("common.ok")),1)[0];if(null==this.$content){var p=Ph("<div></div>");p.on("click","#".concat(i),function(t){t.preventDefault();var n=p.find("#".concat(r)).val(),i=p.find("#".concat(o)).val();JS(e,n,i),e.hidePanelOrModal()}),this.$content=p}var h=this.$content;if(h.empty(),h.append(s),h.append(c),h.append(f),null==t||mp.Range.isCollapsed(t))u.val("");else{var g=mp.Editor.string(e,t);u.val(g)}return d.val(""),setTimeout(function(){u.focus()}),h[0]},e}(),rx=function(){function e(){this.title=Ay("link.unLink"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M608.16328 811.815036c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.347563 89.347564c-118.525421 118.523421-311.38448 118.531421-429.919901 0-118.527421-118.529421-118.527421-311.39048 0-429.917901l89.349564-89.349563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.195613 79.195613c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.349563 89.347564c-56.143726 56.145726-56.143726 147.49928 0 203.645005 56.143726 56.143726 147.49928 56.145726 203.647005 0l89.347564-89.347563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.193613 79.195613z m-113.135447-520.429459c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.347564-89.347564c56.143726-56.149726 147.49928-56.145726 203.647006 0 56.143726 56.145726 56.143726 147.49928 0 203.645006l-89.349564 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.195613 79.195613c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.349564-89.349563c118.529421-118.529421 118.529421-311.38848 0-429.917901-118.531421-118.527421-311.38848-118.527421-429.919901 0l-89.347563 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.193613 79.195613z m469.653707 718.556492l45.253779-45.253779c18.745908-18.745908 18.745908-49.13776 0-67.881669L127.195629 14.062931c-18.745908-18.745908-49.13776-18.745908-67.881669 0L14.058181 59.31871c-18.745908 18.745908-18.745908 49.13776 0 67.881669l882.74169 882.74169c18.745908 18.743908 49.13776 18.743908 67.881669 0z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==uv.getSelectedNodeByType(e,"link")},e.prototype.exec=function(e,t){this.isDisabled(e)||mp.Transforms.unwrapNodes(e,{match:function(e){return uv.checkNodeType(e,"link")}})},e}(),ox=function(){function e(){this.title=Ay("link.view"),this.iconSvg=UD,this.tag="button"}return e.prototype.getSelectedLinkElem=function(e){var t=uv.getSelectedNodeByType(e,"link");return null==t?null:t},e.prototype.getValue=function(e){var t=this.getSelectedLinkElem(e);return t&&t.url||""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedLinkElem(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){if(!t||"string"!=typeof t)throw new Error("View link failed, link url is '".concat(t,"'"));window.open(t,"_blank")}},e}(),ix={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},ax={key:"insertLink",factory:function(){return new nx},config:ix},sx={key:"editLink",factory:function(){return new ex},config:ix},ux={key:"unLink",factory:function(){return new rx}},lx={key:"viewLink",factory:function(){return new ox}};var cx,dx,fx={selector:"a:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Ph(e).text().replace(/\s+/gm," ");return t.length>0?{text:t.filter(function(e){return mp.Text.isText(e)}).map(function(e){return e.text}).join("")||r}:{text:r}}};var px=E(function(){if(dx)return cx;dx=1,cx=function(r){if("string"!=typeof r)return!1;var o=r.match(e);if(!o)return!1;var i=o[1];if(!i)return!1;if(t.test(i)||n.test(i))return!0;return!1};var e=/^(?:\w+:)?\/\/(\S+)$/,t=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,n=/^[^\s\.]+\.\S{2,}$/;return cx}());var hx={type:"link",renderElem:function(e,t,n){var r=e,o=r.url,i=r.target;return eE("a",{href:o,target:void 0===i?"_blank":i},t)}},gx={renderElems:[hx],elemsToHtml:[qS],parseElemsHtml:[fx],menus:[ax,sx,ux,lx],editorPlugin:function(e){var t=e.isInline,n=e.insertData,r=e.normalizeNode,o=e;return o.isInline=function(e){return"link"===e.type||t(e)},o.insertData=function(e){var t=e.getData("text/plain");if(px(t)){if(/<img[^>]+>/.test(e.getData("text/html")))n(e);else if(!XS(o)){var r=o.selection;if(null!=r){var i=mp.Editor.string(o,r);JS(o,i,t)}}}else n(e)},o.normalizeNode=function(e){var t=Op(e,2),n=t[0],i=t[1];return"link"!==uv.getNodeType(n)?r([n,i]):""===mp.Node.string(n)?mp.Transforms.removeNodes(o,{at:i}):r([n,i])},o}};var vx={selector:"p:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Ph(e);return 0===(t=t.filter(function(e){return!!mp.Text.isText(e)||!!n.isInline(e)})).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:t}}};function mx(e){var t=Op(mp.Editor.nodes(e,{match:function(t){return e.children[0]===t},mode:"highest"}),1),n=t[0];if(null==n)return!1;var r=n[0];if(!mp.Element.isElement(r))return!1;if("paragraph"===r.type)return!1;if(""!==mp.Node.string(r))return!1;var o=r.children,i=void 0===o?[]:o;return!!mp.Text.isText(i[0])&&(mp.Transforms.setNodes(e,{type:"paragraph"}),!0)}var yx={type:"paragraph",renderElem:function(e,t,n){return eE("p",null,t)}},bx={renderElems:[yx],elemsToHtml:[{type:"paragraph",elemToHtml:function(e,t){return""===t?"<p><br></p>":"<p>".concat(t,"</p>")}}],parseElemsHtml:[vx],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward,r=e;return r.deleteBackward=function(e){mx(r)||t(e)},r.deleteForward=function(e){mx(r)||n(e)},r}};function Ex(e,t){if(null==e.selection)return!0;var n=Op(mp.Editor.nodes(e,{match:function(t){return"pre"===uv.getNodeType(t)||!!mp.Editor.isVoid(e,t)},universal:!0}),1);return!!n[0]}function Cx(e,t){Object.keys(t).forEach(function(t){"text"!==t&&mp.Editor.removeMark(e,t)})}var wx=function(){function e(){this.marksNeedToRemove=[],this.tag="button"}return e.prototype.getValue=function(e){var t=this.mark,n=mp.Editor.marks(e);if(n)return n[t];var r=Op(mp.Editor.nodes(e,{match:function(e){return!0===e[t]}}),1);return!!r[0]},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){return Ex(e,this.mark)},e.prototype.exec=function(e,t){var n=this.mark,r=this.marksNeedToRemove;t?e.removeMark(n):(e.addMark(n,!0),r&&r.forEach(function(t){return e.removeMark(t)}))},e}(),Dx=function(e){function t(){var t=e.apply(this,Np([],Op(arguments),!1))||this;return t.mark="bold",t.title=Ay("textStyle.bold"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M707.872 484.64A254.88 254.88 0 0 0 768 320c0-141.152-114.848-256-256-256H192v896h384c141.152 0 256-114.848 256-256a256.096 256.096 0 0 0-124.128-219.36zM384 192h101.504c55.968 0 101.504 57.408 101.504 128s-45.536 128-101.504 128H384V192z m159.008 640H384v-256h159.008c58.464 0 106.016 57.408 106.016 128s-47.552 128-106.016 128z"></path></svg>',t.hotkey="mod+b",t}return wp(t,e),t}(wx),Ax=function(){function e(){this.title=Ay("textStyle.clear"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M969.382408 288.738615l-319.401123-270.852152a67.074236 67.074236 0 0 0-96.459139 5.74922l-505.931379 574.922021a68.35184 68.35184 0 0 0-17.886463 47.910169 74.101061 74.101061 0 0 0 24.274486 47.910168l156.50655 132.232065h373.060512L975.131628 383.281347a67.074236 67.074236 0 0 0-5.74922-96.459139z m-440.134747 433.746725H264.144729l-90.071117-78.572676c-5.74922-5.74922-12.137243-12.137243-12.137243-17.886463a36.411728 36.411728 0 0 1 5.749221-24.274485l210.804741-240.828447 265.102932 228.691204z m-439.495945 180.781036h843.218964a60.047411 60.047411 0 1 1 0 120.733624H89.751716a60.047411 60.047411 0 1 1 0-120.733624z m0 0"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return Ex(e)},e.prototype.exec=function(e,t){var n,r,o=mp.Editor.nodes(e,{match:function(e){return mp.Text.isText(e)},universal:!0});try{for(var i=Tp(o),a=i.next();!a.done;a=i.next()){Cx(e,a.value[0])}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},e}(),Sx=function(e){function t(){var t=e.apply(this,Np([],Op(arguments),!1))||this;return t.mark="code",t.title=Ay("textStyle.code"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M576 736l96 96 320-320L672 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224z"></path></svg>',t.hotkey="mod+e",t}return wp(t,e),t}(wx),xx=function(e){function t(){var t=e.apply(this,Np([],Op(arguments),!1))||this;return t.mark="italic",t.title=Ay("textStyle.italic"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',t.hotkey="mod+i",t}return wp(t,e),t}(wx),Tx=function(e){function t(){var t=e.apply(this,Np([],Op(arguments),!1))||this;return t.mark="sub",t.marksNeedToRemove=["sup"],t.title=Ay("textStyle.sub"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M768 910.016v50.016h128v64h-192v-146.016l128-60V768h-128v-64h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',t.hotkey="",t}return wp(t,e),t}(wx),Ox=function(e){function t(){var t=e.apply(this,Np([],Op(arguments),!1))||this;return t.mark="sup",t.marksNeedToRemove=["sub"],t.title=Ay("textStyle.sup"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M768 206.016v50.016h128v64h-192V174.016l128-60V64h-128V0h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',t.hotkey="",t}return wp(t,e),t}(wx),Nx=function(e){function t(){var t=e.apply(this,Np([],Op(arguments),!1))||this;return t.mark="through",t.title=Ay("textStyle.through"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M1024 512v64h-234.496c27.52 38.496 42.496 82.688 42.496 128 0 70.88-36.672 139.04-100.576 186.976C672.064 935.488 594.144 960 512 960s-160.064-24.512-219.424-69.024C228.64 843.04 192 774.88 192 704h128c0 69.376 87.936 128 192 128s192-58.624 192-128-87.936-128-192-128H0v-64h299.52a385.984 385.984 0 0 1-6.944-5.024C228.64 459.04 192 390.88 192 320s36.672-139.04 100.576-186.976C351.936 88.512 429.856 64 512 64s160.064 24.512 219.424 69.024C795.328 180.96 832 249.12 832 320h-128c0-69.376-87.936-128-192-128s-192 58.624-192 128 87.936 128 192 128c78.976 0 154.048 22.688 212.48 64H1024z"></path></svg>',t.hotkey="mod+shift+x",t}return wp(t,e),t}(wx),Bx=function(e){function t(){var t=e.apply(this,Np([],Op(arguments),!1))||this;return t.mark="underline",t.title=Ay("textStyle.underline"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M704 64l128 0 0 416c0 159.072-143.264 288-320 288s-320-128.928-320-288l0-416 128 0 0 416c0 40.16 18.24 78.688 51.36 108.512 36.896 33.216 86.848 51.488 140.64 51.488s103.744-18.304 140.64-51.488c33.12-29.792 51.36-68.352 51.36-108.512l0-416zM192 832l640 0 0 128-640 0z"></path></svg>',t.hotkey="mod+u",t}return wp(t,e),t}(wx);function kx(e,t){return 0!==e.length&&(!!e[0].matches(t)||e.find(t).length>0)}function Fx(e,t){var n=t,r=e,o=r.bold,i=r.italic,a=r.underline,s=r.code,u=r.through,l=r.sub,c=r.sup;return o&&(n="<strong>".concat(n,"</strong>")),s&&(n="<code>".concat(n,"</code>")),i&&(n="<em>".concat(n,"</em>")),a&&(n="<u>".concat(n,"</u>")),u&&(n="<s>".concat(n,"</s>")),l&&(n="<sub>".concat(n,"</sub>")),c&&(n="<sup>".concat(n,"</sup>")),n}var Px={renderStyle:function(e,t){var n=e,r=n.bold,o=n.italic,i=n.underline,a=n.code,s=n.through,u=n.sub,l=n.sup,c=t;return r&&(c=eE("strong",null,c)),a&&(c=eE("code",null,c)),o&&(c=eE("em",null,c)),i&&(c=eE("u",null,c)),s&&(c=eE("s",null,c)),u&&(c=eE("sub",null,c)),l&&(c=eE("sup",null,c)),c},menus:[{key:"bold",factory:function(){return new Dx}},{key:"underline",factory:function(){return new Bx}},{key:"italic",factory:function(){return new xx}},{key:"through",factory:function(){return new Nx}},{key:"code",factory:function(){return new Sx}},{key:"sub",factory:function(){return new Tx}},{key:"sup",factory:function(){return new Ox}},{key:"clearStyle",factory:function(){return new Ax}}],styleToHtml:function(e,t){if(!mp.Text.isText(e))return t;if(qD(t))return Fx(e,t);var n=Ph(t),r=n.html();return r=Fx(e,r),n.html(r),KD(n)},parseStyleHtml:function(e,t,n){var r=Ph(e);if(!mp.Text.isText(t))return t;var o=t;return kx(r,"b,strong")&&(o.bold=!0),kx(r,"i,em")&&(o.italic=!0),kx(r,"u")&&(o.underline=!0),kx(r,"s,strike")&&(o.through=!0),kx(r,"sub")&&(o.sub=!0),kx(r,"sup")&&(o.sup=!0),kx(r,"code")&&(o.code=!0),o}};var Ix={type:"todo",elemToHtml:function(e,t){var n=e.checked;return'<div data-w-e-type="todo"><input type="checkbox" disabled '.concat(n?"checked":"",">").concat(t,"</div>")}},_x=function(){function e(){this.title=Ay("todo.todo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M278.755556 403.911111l-79.644445 79.644445L455.111111 739.555556l568.888889-568.888889-79.644444-79.644445L455.111111 580.266667l-176.355555-176.355556zM910.222222 910.222222H113.777778V113.777778h568.888889V0H113.777778C51.2 0 0 51.2 0 113.777778v796.444444c0 62.577778 51.2 113.777778 113.777778 113.777778h796.444444c62.577778 0 113.777778-51.2 113.777778-113.777778V455.111111h-113.777778v455.111111z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!!uv.getSelectedNodeByType(e,"todo")},e.prototype.isDisabled=function(e){return null==e.selection||!!uv.getSelectedElems(e).some(function(t){if(mp.Editor.isVoid(e,t)&&mp.Editor.isBlock(e,t))return!0;var n=t.type;return!!["pre","table","list-item"].includes(n)})},e.prototype.exec=function(e,t){var n=this.isActive(e);mp.Transforms.setNodes(e,{type:n?"paragraph":"todo"})},e}();var Rx={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(e,t,n){var r=Ph(e);0===(t=t.filter(function(e){return!!mp.Text.isText(e)||!!n.isInline(e)})).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=!1;return null!=r.find('input[type="checkbox"]').attr("checked")&&(o=!0),{type:"todo",checked:o,children:t}}};var Lx={type:"todo",renderElem:function(e,t,n){var r=!1;n.isDisabled()&&(r=!0);var o=eE("div",{style:{margin:"5px 0"}},eE("span",{contentEditable:!1,style:{marginRight:"0.5em"}},eE("input",{type:"checkbox",checked:e.checked,disabled:r,on:{change:function(t){var r=uv.findPath(n,e),o={checked:t.target.checked};mp.Transforms.setNodes(n,o,{at:r})}}})),eE("span",null,t));return o}},Mx={renderElems:[Lx],elemsToHtml:[Ix],preParseHtml:[{selector:"ul.w-e-todo",preParseHtml:function(e){var t=Ph(e).find("li"),n=Ph('<div data-w-e-type="todo"></div>'),r=t.find("input[type]");return n.append(r),t.children()[0].remove(),n[0].innerHTML+=t[0].innerHTML,n[0]}}],parseElemsHtml:[Rx],menus:[{key:"todo",factory:function(){return new _x}}],editorPlugin:function(e){var t=e.deleteBackward,n=e;return n.deleteBackward=function(n){var r=e.selection;if(r&&mp.Range.isCollapsed(r)){var o=uv.getSelectedNodeByType(e,"todo");if(o&&0===mp.Node.string(o).length)return void mp.Transforms.setNodes(e,{type:"paragraph"},{mode:"highest"})}t(n)},n}},jx=function(){function e(){this.title=Ay("undo.redo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0.00032 576a510.72 510.72 0 0 0 173.344 384l84.672-96A383.136 383.136 0 0 1 128.00032 576C128.00032 363.936 299.93632 192 512.00032 192c106.048 0 202.048 42.976 271.52 112.48L640.00032 448h384V64l-149.984 149.984A510.272 510.272 0 0 0 512.00032 64C229.21632 64 0.00032 293.216 0.00032 576z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection},e.prototype.exec=function(e,t){"function"==typeof e.redo&&e.redo()},e}(),Hx=function(){function e(){this.title=Ay("undo.undo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 64A510.272 510.272 0 0 0 149.984 213.984L0.032 64v384h384L240.512 304.48A382.784 382.784 0 0 1 512.032 192c212.064 0 384 171.936 384 384 0 114.688-50.304 217.632-130.016 288l84.672 96a510.72 510.72 0 0 0 173.344-384c0-282.784-229.216-512-512-512z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection},e.prototype.exec=function(e,t){"function"==typeof e.undo&&e.undo()},e}(),zx=[Px,hA,xA,MS,VS,GS,IS,bA,CA,gx,sA,eA,cS,bx,Mx,OA,{menus:[{key:"redo",factory:function(){return new jx}},{key:"undo",factory:function(){return new Hx}}]},BA,vA];wy("en",{highLightModule:{selectLang:"Language"}}),wy("zh-CN",{highLightModule:{selectLang:"选择语言"}});var $x,Ux={exports:{}};var Vx=($x||($x=1,function(e){var t=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,r={},o={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof i?new i(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var r,i;switch(n=n||{},o.util.type(t)){case"Object":if(i=o.util.objId(t),n[i])return n[i];for(var a in r={},n[i]=r,t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":return i=o.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach(function(t,o){r[o]=e(t,n)}),r);default:return t}},getLanguage:function(e){for(;e;){var n=t.exec(e.className);if(n)return n[1].toLowerCase();e=e.parentElement}return"none"},setLanguage:function(e,n){e.className=e.className.replace(RegExp(t,"gi"),""),e.classList.add("language-"+n)},currentScript:function(){if("undefined"==typeof document)return null;if(document.currentScript&&"SCRIPT"===document.currentScript.tagName)return document.currentScript;try{throw new Error}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r="no-"+t;e;){var o=e.classList;if(o.contains(t))return!0;if(o.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=o.util.clone(o.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var i=(r=r||o.languages)[e],a={};for(var s in i)if(i.hasOwnProperty(s)){if(s==t)for(var u in n)n.hasOwnProperty(u)&&(a[u]=n[u]);n.hasOwnProperty(s)||(a[s]=i[s])}var l=r[e];return r[e]=a,o.languages.DFS(o.languages,function(t,n){n===l&&t!=e&&(this[t]=a)}),a},DFS:function e(t,n,r,i){i=i||{};var a=o.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],r||s);var u=t[s],l=o.util.type(u);"Object"!==l||i[a(u)]?"Array"!==l||i[a(u)]||(i[a(u)]=!0,e(u,n,s,i)):(i[a(u)]=!0,e(u,n,null,i))}}},plugins:{},highlightAll:function(e,t){o.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};o.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),o.hooks.run("before-all-elements-highlight",r);for(var i,a=0;i=r.elements[a++];)o.highlightElement(i,!0===t,r.callback)},highlightElement:function(t,n,r){var i=o.util.getLanguage(t),a=o.languages[i];o.util.setLanguage(t,i);var s=t.parentElement;s&&"pre"===s.nodeName.toLowerCase()&&o.util.setLanguage(s,i);var u={element:t,language:i,grammar:a,code:t.textContent};function l(e){u.highlightedCode=e,o.hooks.run("before-insert",u),u.element.innerHTML=u.highlightedCode,o.hooks.run("after-highlight",u),o.hooks.run("complete",u),r&&r.call(u.element)}if(o.hooks.run("before-sanity-check",u),(s=u.element.parentElement)&&"pre"===s.nodeName.toLowerCase()&&!s.hasAttribute("tabindex")&&s.setAttribute("tabindex","0"),!u.code)return o.hooks.run("complete",u),void(r&&r.call(u.element));if(o.hooks.run("before-highlight",u),u.grammar)if(n&&e.Worker){var c=new Worker(o.filename);c.onmessage=function(e){l(e.data)},c.postMessage(JSON.stringify({language:u.language,code:u.code,immediateClose:!0}))}else l(o.highlight(u.code,u.grammar,u.language));else l(o.util.encode(u.code))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(o.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=o.tokenize(r.code,r.grammar),o.hooks.run("after-tokenize",r),i.stringify(o.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var o=new u;return l(o,o.head,e),s(e,o,t,o.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(o)},hooks:{all:{},add:function(e,t){var n=o.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=o.hooks.all[e];if(n&&n.length)for(var r,i=0;r=n[i++];)r(t)}},Token:i};function i(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function a(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var i=o[1].length;o.index+=i,o[0]=o[0].slice(i)}return o}function s(e,t,n,r,u,d){for(var f in n)if(n.hasOwnProperty(f)&&n[f]){var p=n[f];p=Array.isArray(p)?p:[p];for(var h=0;h<p.length;++h){if(d&&d.cause==f+","+h)return;var g=p[h],v=g.inside,m=!!g.lookbehind,y=!!g.greedy,b=g.alias;if(y&&!g.pattern.global){var E=g.pattern.toString().match(/[imsuy]*$/)[0];g.pattern=RegExp(g.pattern.source,E+"g")}for(var C=g.pattern||g,w=r.next,D=u;w!==t.tail&&!(d&&D>=d.reach);D+=w.value.length,w=w.next){var A=w.value;if(t.length>e.length)return;if(!(A instanceof i)){var S,x=1;if(y){if(!(S=a(C,D,e,m))||S.index>=e.length)break;var T=S.index,O=S.index+S[0].length,N=D;for(N+=w.value.length;T>=N;)N+=(w=w.next).value.length;if(D=N-=w.value.length,w.value instanceof i)continue;for(var B=w;B!==t.tail&&(N<O||"string"==typeof B.value);B=B.next)x++,N+=B.value.length;x--,A=e.slice(D,N),S.index-=D}else if(!(S=a(C,0,A,m)))continue;T=S.index;var k=S[0],F=A.slice(0,T),P=A.slice(T+k.length),I=D+A.length;d&&I>d.reach&&(d.reach=I);var _=w.prev;if(F&&(_=l(t,_,F),D+=F.length),c(t,_,x),w=l(t,_,new i(f,v?o.tokenize(k,v):k,b,k)),P&&l(t,w,P),x>1){var R={cause:f+","+h,reach:I};s(e,t,n,w.prev,D,R),d&&R.reach>d.reach&&(d.reach=R.reach)}}}}}}function u(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function l(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function c(e,t,n){for(var r=t.next,o=0;o<n&&r!==e.tail;o++)r=r.next;t.next=r,r.prev=t,e.length-=o}if(e.Prism=o,i.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var r="";return t.forEach(function(t){r+=e(t,n)}),r}var i={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(i.classes,a):i.classes.push(a)),o.hooks.run("wrap",i);var s="";for(var u in i.attributes)s+=" "+u+'="'+(i.attributes[u]||"").replace(/"/g,"&quot;")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+s+">"+i.content+"</"+i.tag+">"},!e.document)return e.addEventListener?(o.disableWorkerMessageHandler||e.addEventListener("message",function(t){var n=JSON.parse(t.data),r=n.language,i=n.code,a=n.immediateClose;e.postMessage(o.highlight(i,o.languages[r],r)),a&&e.close()},!1),o):o;var d=o.util.currentScript();function f(){o.manual||o.highlightAll()}if(d&&(o.filename=d.src,d.hasAttribute("data-manual")&&(o.manual=!0)),!o.manual){var p=document.readyState;"loading"===p||"interactive"===p&&d&&d.defer?document.addEventListener("DOMContentLoaded",f):window.requestAnimationFrame?window.requestAnimationFrame(f):window.setTimeout(f,16)}return o}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});
26
20
  /**
27
21
  * Prism: Lightweight, robust, elegant syntax highlighting
28
22
  *
@@ -30,5 +24,5 @@ function t(t){return"[object Object]"===Object.prototype.toString.call(t)}return
30
24
  * @author Lea Verou <https://lea.verou.me>
31
25
  * @namespace
32
26
  * @public
33
- */t.exports&&(t.exports=e),void 0!==RJ&&(RJ.Prism=e),e.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(t){"entity"===t.type&&(t.attributes.title=t.content.replace(/&amp;/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(t,n){var r={};r["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};o["language-"+n]={pattern:/[\s\S]+/,inside:e.languages[n]};var i={};i[t]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return t}),"i"),lookbehind:!0,greedy:!0,inside:o},e.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml,function(t){var e=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+e.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+e.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+e.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+e.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:e,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var n=t.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(e),e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript,function(){if(void 0!==e&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var t={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},n="data-src-status",r="loading",o="loaded",i="pre[data-src]:not(["+n+'="'+o+'"]):not(['+n+'="'+r+'"])';e.hooks.add("before-highlightall",function(t){t.selector+=", "+i}),e.hooks.add("before-sanity-check",function(u){var a=u.element;if(a.matches(i)){u.code="",a.setAttribute(n,r);var s=a.appendChild(document.createElement("CODE"));s.textContent="Loading…";var c=a.getAttribute("data-src"),l=u.language;if("none"===l){var f=(/\.(\w+)$/.exec(c)||[,"none"])[1];l=t[f]||f}e.util.setLanguage(s,l),e.util.setLanguage(a,l);var d=e.plugins.autoloader;d&&d.loadLanguages(l),function(t,e,n){var r=new XMLHttpRequest;r.open("GET",t,!0),r.onreadystatechange=function(){4==r.readyState&&(r.status<400&&r.responseText?e(r.responseText):r.status>=400?n("✖ Error "+r.status+" while fetching file: "+r.statusText):n("✖ Error: File does not exist or is empty"))},r.send(null)}(c,function(t){a.setAttribute(n,o);var r=function(t){var e=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(t||"");if(e){var n=Number(e[1]),r=e[2],o=e[3];return r?o?[n,Number(o)]:[n,void 0]:[n,n]}}(a.getAttribute("data-range"));if(r){var i=t.split(/\r\n?|\n/g),u=r[0],c=null==r[1]?i.length:r[1];u<0&&(u+=i.length),u=Math.max(0,Math.min(u-1,i.length)),c<0&&(c+=i.length),c=Math.max(0,Math.min(c,i.length)),t=i.slice(u,c).join("\n"),a.hasAttribute("data-start")||a.setAttribute("data-start",String(u+1))}s.textContent=t,e.highlightElement(s)},function(t){a.setAttribute(n,"failed"),s.textContent=t})}}),e.plugins.fileHighlight={highlight:function(t){for(var n,r=(t||document).querySelectorAll(i),o=0;n=r[o++];)e.highlightElement(n)}};var u=!1;e.fileHighlight=function(){u||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),u=!0),e.plugins.fileHighlight.highlight.apply(this,arguments)}}}()}(T1)),T1.exports));!function(t){var e=t.util.clone(t.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(t,e){return t=t.replace(/<S>/g,function(){return n}).replace(/<BRACES>/g,function(){return r}).replace(/<SPREAD>/g,function(){return o}),RegExp(t,e)}o=i(o).source,t.languages.jsx=t.languages.extend("markup",e),t.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),t.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,t.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,t.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,t.languages.jsx.tag.inside.comment=e.comment,t.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx}}},t.languages.jsx.tag);var u=function(t){return t?"string"==typeof t?t:"string"==typeof t.content?t.content:t.content.map(u).join(""):""},a=function(e){for(var n=[],r=0;r<e.length;r++){var o=e[r],i=!1;if("string"!=typeof o&&("tag"===o.type&&o.content[0]&&"tag"===o.content[0].type?"</"===o.content[0].content[0].content?n.length>0&&n[n.length-1].tagName===u(o.content[0].content[1])&&n.pop():"/>"===o.content[o.content.length-1].content||n.push({tagName:u(o.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===o.type&&"{"===o.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===o.type&&"}"===o.content?n[n.length-1].openedBraces--:i=!0),(i||"string"==typeof o)&&n.length>0&&0===n[n.length-1].openedBraces){var s=u(o);r<e.length-1&&("string"==typeof e[r+1]||"plain-text"===e[r+1].type)&&(s+=u(e[r+1]),e.splice(r+1,1)),r>0&&("string"==typeof e[r-1]||"plain-text"===e[r-1].type)&&(s=u(e[r-1])+s,e.splice(r-1,1),r--),e[r]=new t.Token("plain-text",s,null,s)}o.content&&"string"!=typeof o.content&&a(o.content)}};t.hooks.add("after-tokenize",function(t){"jsx"!==t.language&&"tsx"!==t.language||a(t.tokens)})}(Prism),w1||(w1=1,function(t){t.languages.typescript=t.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),t.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete t.languages.typescript.parameter,delete t.languages.typescript["literal-property"];var e=t.languages.extend("typescript",{});delete e["class-name"],t.languages.typescript["class-name"].inside=e,t.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e}}}}),t.languages.ts=t.languages.typescript}(Prism)),Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",function(t){"entity"===t.type&&(t.attributes.title=t.content.replace(/&amp;/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(t,e){var n={};n["language-"+e]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[e]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+e]={pattern:/[\s\S]+/,inside:Prism.languages[e]};var o={};o[t]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return t}),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(t,e){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[e,"language-"+e],inside:Prism.languages[e]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),Prism.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete Prism.languages.go["class-name"],S1||(S1=1,function(t){var e=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,o=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;t.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:e,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:o,punctuation:i};var u={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:t.languages.php},a=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:u}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:u}}];t.languages.insertBefore("php","variable",{string:a,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:e,string:a,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:o,punctuation:i}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),t.hooks.add("before-tokenize",function(e){/<\?/.test(e.code)&&t.languages["markup-templating"].buildPlaceholders(e,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g)}),t.hooks.add("after-tokenize",function(e){t.languages["markup-templating"].tokenizePlaceholders(e,"php")})}(Prism)),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}}),Prism.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete Prism.languages.c.boolean,C1||(C1=1,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python),D1||(D1=1,function(t){var e=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};t.languages.java=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[r,{pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:r.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+n+/[A-Z]\w*\b/.source),lookbehind:!0,inside:r.inside}],keyword:e,function:[t.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),t.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),t.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:e,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+n+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:r.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+n+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:r.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return e.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism)),O1||(O1=1,function(t){var e=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return e.source});t.languages.cpp=t.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return e.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:e,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),t.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return n})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),t.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t.languages.cpp}}}}),t.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),t.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:t.languages.extend("cpp",{})}}),t.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},t.languages.cpp["base-clause"])}(Prism)),A1||(A1=1,function(t){function e(t,e){return t.replace(/<<(\d+)>>/g,function(t,n){return"(?:"+e[+n]+")"})}function n(t,n,r){return RegExp(e(t,n),"")}function r(t,e){for(var n=0;n<e;n++)t=t.replace(/<<self>>/g,function(){return"(?:"+t+")"});return t.replace(/<<self>>/g,"[^\\s\\S]")}var o="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",i="class enum interface record struct",u="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",a="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function s(t){return"\\b(?:"+t.trim().replace(/ /g,"|")+")\\b"}var c=s(i),l=RegExp(s(o+" "+i+" "+u+" "+a)),f=s(i+" "+u+" "+a),d=s(o+" "+i+" "+a),p=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),h=r(/\((?:[^()]|<<self>>)*\)/.source,2),v=/@?\b[A-Za-z_]\w*\b/.source,g=e(/<<0>>(?:\s*<<1>>)?/.source,[v,p]),y=e(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[f,g]),m=/\[\s*(?:,\s*)*\]/.source,b=e(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[y,m]),E=e(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[p,h,m]),w=e(/\(<<0>>+(?:,<<0>>+)+\)/.source,[E]),S=e(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[w,y,m]),C={keyword:l,punctuation:/[<>()?,.:[\]]/},D=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,O=/"(?:\\.|[^\\"\r\n])*"/.source,A=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;t.languages.csharp=t.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[A]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[O]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[y]),lookbehind:!0,inside:C},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[v,S]),lookbehind:!0,inside:C},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[v]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[c,g]),lookbehind:!0,inside:C},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[y]),lookbehind:!0,inside:C},{pattern:n(/(\bwhere\s+)<<0>>/.source,[v]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:C},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[S,d,v]),inside:C}],keyword:l,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),t.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),t.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[v]),lookbehind:!0,alias:"punctuation"}}),t.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[v]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[h]),lookbehind:!0,alias:"class-name",inside:C},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[S,y]),inside:C,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[S]),lookbehind:!0,inside:C,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[v,p]),inside:{function:n(/^<<0>>/.source,[v]),generic:{pattern:RegExp(p),alias:"class-name",inside:C}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[c,g,v,S,l.source,h,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[g,h]),lookbehind:!0,greedy:!0,inside:t.languages.csharp},keyword:l,"class-name":{pattern:RegExp(S),greedy:!0,inside:C},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var x=O+"|"+D,T=e(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[x]),N=r(e(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[T]),2),P=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,k=e(/<<0>>(?:\s*\(<<1>>*\))?/.source,[y,N]);t.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[P,k]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[P]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[N]),inside:t.languages.csharp},"class-name":{pattern:RegExp(y),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var I=/:[^}\r\n]+/.source,B=r(e(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[T]),2),F=e(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[B,I]),R=r(e(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[x]),2),_=e(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[R,I]);function j(e,r){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[e]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[r,I]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:t.languages.csharp}}},string:/[\s\S]+/}}t.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[F]),lookbehind:!0,greedy:!0,inside:j(F,B)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[_]),lookbehind:!0,greedy:!0,inside:j(_,R)}],char:{pattern:RegExp(D),greedy:!0}}),t.languages.dotnet=t.languages.cs=t.languages.csharp}(Prism)),Prism.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},Prism.languages.vb=Prism.languages["visual-basic"],Prism.languages.vba=Prism.languages["visual-basic"],Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},x1||(x1=1,function(t){t.languages.ruby=t.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),t.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var e={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:t.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete t.languages.ruby.function;var n="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",r=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;t.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+n+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:e,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:e,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+r),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+r+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),t.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+n),greedy:!0,inside:{interpolation:e,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:e,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:e,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+n),greedy:!0,inside:{interpolation:e,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:e,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete t.languages.ruby.string,t.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),t.languages.rb=t.languages.ruby}(Prism)),Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach(function(t){t.inside.interpolation.inside=Prism.languages.swift}),function(t){var e="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+e),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+e),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};t.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+e),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+e),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=t.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=r.variable[1].inside,u=0;u<o.length;u++)i[o[u]]=t.languages.bash[o[u]];t.languages.sh=t.languages.bash,t.languages.shell=t.languages.bash}(Prism),function(t){var e=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(t){return t=t.replace(/<inner>/g,function(){return e}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+t+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return r}),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:t.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(e){["url","bold","italic","strike","code-snippet"].forEach(function(n){e!==n&&(t.languages.markdown[e].inside.content.inside[n]=t.languages.markdown[n])})}),t.hooks.add("after-tokenize",function(t){"markdown"!==t.language&&"md"!==t.language||function t(e){if(e&&"string"!=typeof e)for(var n=0,r=e.length;n<r;n++){var o=e[n];if("code"===o.type){var i=o.content[1],u=o.content[3];if(i&&u&&"code-language"===i.type&&"code-block"===u.type&&"string"==typeof i.content){var a=i.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),s="language-"+(a=(/[a-z][\w-]*/i.exec(a)||[""])[0].toLowerCase());u.alias?"string"==typeof u.alias?u.alias=[u.alias,s]:u.alias.push(s):u.alias=[s]}}else t(o.content)}}(t.tokens)}),t.hooks.add("wrap",function(e){if("code-block"===e.type){for(var n="",r=0,o=e.classes.length;r<o;r++){var i=e.classes[r],c=/language-(.+)/.exec(i);if(c){n=c[1];break}}var l=t.languages[n];if(l)e.content=t.highlight(function(t){var e=t.replace(u,"");return e.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(t,e){var n;return"#"===(e=e.toLowerCase())[0]?(n="x"===e[1]?parseInt(e.slice(2),16):Number(e.slice(1)),s(n)):a[e]||t})}(e.content),l,n);else if(n&&"none"!==n&&t.plugins.autoloader){var f="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());e.attributes.id=f,t.plugins.autoloader.loadLanguages(n,function(){var e=document.getElementById(f);e&&(e.innerHTML=t.highlight(e.textContent,t.languages[n],n))})}}});var u=RegExp(t.languages.markup.tag.pattern.source,"gi"),a={amp:"&",lt:"<",gt:">",quot:'"'},s=String.fromCodePoint||String.fromCharCode;t.languages.md=t.languages.markdown}(Prism),Prism.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/},function(t){var e={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};t.languages.groovy=t.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:e,string:/[\s\S]+/}}}),t.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),e.inside.expression.inside=t.languages.groovy}(Prism),Prism.languages.abap={comment:/^\*.*/m,string:/(`|')(?:\\.|(?!\1)[^\\\r\n])*\1/,"string-template":{pattern:/([|}])(?:\\.|[^\\|{\r\n])*(?=[|{])/,lookbehind:!0,alias:"string"},"eol-comment":{pattern:/(^|\s)".*/m,lookbehind:!0,alias:"comment"},keyword:{pattern:/(\s|\.|^)(?:\*-INPUT|\?TO|ABAP-SOURCE|ABBREVIATED|ABS|ABSTRACT|ACCEPT|ACCEPTING|ACCESSPOLICY|ACCORDING|ACOS|ACTIVATION|ACTUAL|ADD|ADD-CORRESPONDING|ADJACENT|AFTER|ALIAS|ALIASES|ALIGN|ALL|ALLOCATE|ALPHA|ANALYSIS|ANALYZER|AND|ANY|APPEND|APPENDAGE|APPENDING|APPLICATION|ARCHIVE|AREA|ARITHMETIC|AS|ASCENDING|ASIN|ASPECT|ASSERT|ASSIGN|ASSIGNED|ASSIGNING|ASSOCIATION|ASYNCHRONOUS|AT|ATAN|ATTRIBUTES|AUTHORITY|AUTHORITY-CHECK|AVG|BACK|BACKGROUND|BACKUP|BACKWARD|BADI|BASE|BEFORE|BEGIN|BETWEEN|BIG|BINARY|BINDING|BIT|BIT-AND|BIT-NOT|BIT-OR|BIT-XOR|BLACK|BLANK|BLANKS|BLOB|BLOCK|BLOCKS|BLUE|BOUND|BOUNDARIES|BOUNDS|BOXED|BREAK-POINT|BT|BUFFER|BY|BYPASSING|BYTE|BYTE-CA|BYTE-CN|BYTE-CO|BYTE-CS|BYTE-NA|BYTE-NS|BYTE-ORDER|C|CA|CALL|CALLING|CASE|CAST|CASTING|CATCH|CEIL|CENTER|CENTERED|CHAIN|CHAIN-INPUT|CHAIN-REQUEST|CHANGE|CHANGING|CHANNELS|CHAR-TO-HEX|CHARACTER|CHARLEN|CHECK|CHECKBOX|CIRCULAR|CI_|CLASS|CLASS-CODING|CLASS-DATA|CLASS-EVENTS|CLASS-METHODS|CLASS-POOL|CLEANUP|CLEAR|CLIENT|CLOB|CLOCK|CLOSE|CN|CNT|CO|COALESCE|CODE|CODING|COLLECT|COLOR|COLUMN|COLUMNS|COL_BACKGROUND|COL_GROUP|COL_HEADING|COL_KEY|COL_NEGATIVE|COL_NORMAL|COL_POSITIVE|COL_TOTAL|COMMENT|COMMENTS|COMMIT|COMMON|COMMUNICATION|COMPARING|COMPONENT|COMPONENTS|COMPRESSION|COMPUTE|CONCAT|CONCATENATE|COND|CONDENSE|CONDITION|CONNECT|CONNECTION|CONSTANTS|CONTEXT|CONTEXTS|CONTINUE|CONTROL|CONTROLS|CONV|CONVERSION|CONVERT|COPIES|COPY|CORRESPONDING|COS|COSH|COUNT|COUNTRY|COVER|CP|CPI|CREATE|CREATING|CRITICAL|CS|CURRENCY|CURRENCY_CONVERSION|CURRENT|CURSOR|CURSOR-SELECTION|CUSTOMER|CUSTOMER-FUNCTION|DANGEROUS|DATA|DATABASE|DATAINFO|DATASET|DATE|DAYLIGHT|DBMAXLEN|DD\/MM\/YY|DD\/MM\/YYYY|DDMMYY|DEALLOCATE|DECIMALS|DECIMAL_SHIFT|DECLARATIONS|DEEP|DEFAULT|DEFERRED|DEFINE|DEFINING|DEFINITION|DELETE|DELETING|DEMAND|DEPARTMENT|DESCENDING|DESCRIBE|DESTINATION|DETAIL|DIALOG|DIRECTORY|DISCONNECT|DISPLAY|DISPLAY-MODE|DISTANCE|DISTINCT|DIV|DIVIDE|DIVIDE-CORRESPONDING|DIVISION|DO|DUMMY|DUPLICATE|DUPLICATES|DURATION|DURING|DYNAMIC|DYNPRO|E|EACH|EDIT|EDITOR-CALL|ELSE|ELSEIF|EMPTY|ENABLED|ENABLING|ENCODING|END|END-ENHANCEMENT-SECTION|END-LINES|END-OF-DEFINITION|END-OF-FILE|END-OF-PAGE|END-OF-SELECTION|ENDAT|ENDCASE|ENDCATCH|ENDCHAIN|ENDCLASS|ENDDO|ENDENHANCEMENT|ENDEXEC|ENDFOR|ENDFORM|ENDFUNCTION|ENDIAN|ENDIF|ENDING|ENDINTERFACE|ENDLOOP|ENDMETHOD|ENDMODULE|ENDON|ENDPROVIDE|ENDSELECT|ENDTRY|ENDWHILE|ENGINEERING|ENHANCEMENT|ENHANCEMENT-POINT|ENHANCEMENT-SECTION|ENHANCEMENTS|ENTRIES|ENTRY|ENVIRONMENT|EQ|EQUAL|EQUIV|ERRORMESSAGE|ERRORS|ESCAPE|ESCAPING|EVENT|EVENTS|EXACT|EXCEPT|EXCEPTION|EXCEPTION-TABLE|EXCEPTIONS|EXCLUDE|EXCLUDING|EXEC|EXECUTE|EXISTS|EXIT|EXIT-COMMAND|EXP|EXPAND|EXPANDING|EXPIRATION|EXPLICIT|EXPONENT|EXPORT|EXPORTING|EXTEND|EXTENDED|EXTENSION|EXTRACT|FAIL|FETCH|FIELD|FIELD-GROUPS|FIELD-SYMBOL|FIELD-SYMBOLS|FIELDS|FILE|FILTER|FILTER-TABLE|FILTERS|FINAL|FIND|FIRST|FIRST-LINE|FIXED-POINT|FKEQ|FKGE|FLOOR|FLUSH|FONT|FOR|FORM|FORMAT|FORWARD|FOUND|FRAC|FRAME|FRAMES|FREE|FRIENDS|FROM|FUNCTION|FUNCTION-POOL|FUNCTIONALITY|FURTHER|GAPS|GE|GENERATE|GET|GIVING|GKEQ|GKGE|GLOBAL|GRANT|GREATER|GREEN|GROUP|GROUPS|GT|HANDLE|HANDLER|HARMLESS|HASHED|HAVING|HDB|HEAD-LINES|HEADER|HEADERS|HEADING|HELP-ID|HELP-REQUEST|HIDE|HIGH|HINT|HOLD|HOTSPOT|I|ICON|ID|IDENTIFICATION|IDENTIFIER|IDS|IF|IGNORE|IGNORING|IMMEDIATELY|IMPLEMENTATION|IMPLEMENTATIONS|IMPLEMENTED|IMPLICIT|IMPORT|IMPORTING|IN|INACTIVE|INCL|INCLUDE|INCLUDES|INCLUDING|INCREMENT|INDEX|INDEX-LINE|INFOTYPES|INHERITING|INIT|INITIAL|INITIALIZATION|INNER|INOUT|INPUT|INSERT|INSTANCES|INTENSIFIED|INTERFACE|INTERFACE-POOL|INTERFACES|INTERNAL|INTERVALS|INTO|INVERSE|INVERTED-DATE|IS|ISO|ITERATOR|ITNO|JOB|JOIN|KEEP|KEEPING|KERNEL|KEY|KEYS|KEYWORDS|KIND|LANGUAGE|LAST|LATE|LAYOUT|LE|LEADING|LEAVE|LEFT|LEFT-JUSTIFIED|LEFTPLUS|LEFTSPACE|LEGACY|LENGTH|LESS|LET|LEVEL|LEVELS|LIKE|LINE|LINE-COUNT|LINE-SELECTION|LINE-SIZE|LINEFEED|LINES|LIST|LIST-PROCESSING|LISTBOX|LITTLE|LLANG|LOAD|LOAD-OF-PROGRAM|LOB|LOCAL|LOCALE|LOCATOR|LOG|LOG-POINT|LOG10|LOGFILE|LOGICAL|LONG|LOOP|LOW|LOWER|LPAD|LPI|LT|M|MAIL|MAIN|MAJOR-ID|MAPPING|MARGIN|MARK|MASK|MATCH|MATCHCODE|MAX|MAXIMUM|MEDIUM|MEMBERS|MEMORY|MESH|MESSAGE|MESSAGE-ID|MESSAGES|MESSAGING|METHOD|METHODS|MIN|MINIMUM|MINOR-ID|MM\/DD\/YY|MM\/DD\/YYYY|MMDDYY|MOD|MODE|MODIF|MODIFIER|MODIFY|MODULE|MOVE|MOVE-CORRESPONDING|MULTIPLY|MULTIPLY-CORRESPONDING|NA|NAME|NAMETAB|NATIVE|NB|NE|NESTED|NESTING|NEW|NEW-LINE|NEW-PAGE|NEW-SECTION|NEXT|NO|NO-DISPLAY|NO-EXTENSION|NO-GAP|NO-GAPS|NO-GROUPING|NO-HEADING|NO-SCROLLING|NO-SIGN|NO-TITLE|NO-TOPOFPAGE|NO-ZERO|NODE|NODES|NON-UNICODE|NON-UNIQUE|NOT|NP|NS|NULL|NUMBER|NUMOFCHAR|O|OBJECT|OBJECTS|OBLIGATORY|OCCURRENCE|OCCURRENCES|OCCURS|OF|OFF|OFFSET|OLE|ON|ONLY|OPEN|OPTION|OPTIONAL|OPTIONS|OR|ORDER|OTHER|OTHERS|OUT|OUTER|OUTPUT|OUTPUT-LENGTH|OVERFLOW|OVERLAY|PACK|PACKAGE|PAD|PADDING|PAGE|PAGES|PARAMETER|PARAMETER-TABLE|PARAMETERS|PART|PARTIALLY|PATTERN|PERCENTAGE|PERFORM|PERFORMING|PERSON|PF|PF-STATUS|PINK|PLACES|POOL|POSITION|POS_HIGH|POS_LOW|PRAGMAS|PRECOMPILED|PREFERRED|PRESERVING|PRIMARY|PRINT|PRINT-CONTROL|PRIORITY|PRIVATE|PROCEDURE|PROCESS|PROGRAM|PROPERTY|PROTECTED|PROVIDE|PUBLIC|PUSHBUTTON|PUT|QUEUE-ONLY|QUICKINFO|RADIOBUTTON|RAISE|RAISING|RANGE|RANGES|RAW|READ|READ-ONLY|READER|RECEIVE|RECEIVED|RECEIVER|RECEIVING|RED|REDEFINITION|REDUCE|REDUCED|REF|REFERENCE|REFRESH|REGEX|REJECT|REMOTE|RENAMING|REPLACE|REPLACEMENT|REPLACING|REPORT|REQUEST|REQUESTED|RESERVE|RESET|RESOLUTION|RESPECTING|RESPONSIBLE|RESULT|RESULTS|RESUMABLE|RESUME|RETRY|RETURN|RETURNCODE|RETURNING|RIGHT|RIGHT-JUSTIFIED|RIGHTPLUS|RIGHTSPACE|RISK|RMC_COMMUNICATION_FAILURE|RMC_INVALID_STATUS|RMC_SYSTEM_FAILURE|ROLE|ROLLBACK|ROUND|ROWS|RTTI|RUN|SAP|SAP-SPOOL|SAVING|SCALE_PRESERVING|SCALE_PRESERVING_SCIENTIFIC|SCAN|SCIENTIFIC|SCIENTIFIC_WITH_LEADING_ZERO|SCREEN|SCROLL|SCROLL-BOUNDARY|SCROLLING|SEARCH|SECONDARY|SECONDS|SECTION|SELECT|SELECT-OPTIONS|SELECTION|SELECTION-SCREEN|SELECTION-SET|SELECTION-SETS|SELECTION-TABLE|SELECTIONS|SELECTOR|SEND|SEPARATE|SEPARATED|SET|SHARED|SHIFT|SHORT|SHORTDUMP-ID|SIGN|SIGN_AS_POSTFIX|SIMPLE|SIN|SINGLE|SINH|SIZE|SKIP|SKIPPING|SMART|SOME|SORT|SORTABLE|SORTED|SOURCE|SPACE|SPECIFIED|SPLIT|SPOOL|SPOTS|SQL|SQLSCRIPT|SQRT|STABLE|STAMP|STANDARD|START-OF-SELECTION|STARTING|STATE|STATEMENT|STATEMENTS|STATIC|STATICS|STATUSINFO|STEP-LOOP|STOP|STRLEN|STRUCTURE|STRUCTURES|STYLE|SUBKEY|SUBMATCHES|SUBMIT|SUBROUTINE|SUBSCREEN|SUBSTRING|SUBTRACT|SUBTRACT-CORRESPONDING|SUFFIX|SUM|SUMMARY|SUMMING|SUPPLIED|SUPPLY|SUPPRESS|SWITCH|SWITCHSTATES|SYMBOL|SYNCPOINTS|SYNTAX|SYNTAX-CHECK|SYNTAX-TRACE|SYSTEM-CALL|SYSTEM-EXCEPTIONS|SYSTEM-EXIT|TAB|TABBED|TABLE|TABLES|TABLEVIEW|TABSTRIP|TAN|TANH|TARGET|TASK|TASKS|TEST|TESTING|TEXT|TEXTPOOL|THEN|THROW|TIME|TIMES|TIMESTAMP|TIMEZONE|TITLE|TITLE-LINES|TITLEBAR|TO|TOKENIZATION|TOKENS|TOP-LINES|TOP-OF-PAGE|TRACE-FILE|TRACE-TABLE|TRAILING|TRANSACTION|TRANSFER|TRANSFORMATION|TRANSLATE|TRANSPORTING|TRMAC|TRUNC|TRUNCATE|TRUNCATION|TRY|TYPE|TYPE-POOL|TYPE-POOLS|TYPES|ULINE|UNASSIGN|UNDER|UNICODE|UNION|UNIQUE|UNIT|UNIT_CONVERSION|UNIX|UNPACK|UNTIL|UNWIND|UP|UPDATE|UPPER|USER|USER-COMMAND|USING|UTF-8|VALID|VALUE|VALUE-REQUEST|VALUES|VARY|VARYING|VERIFICATION-MESSAGE|VERSION|VIA|VIEW|VISIBLE|WAIT|WARNING|WHEN|WHENEVER|WHERE|WHILE|WIDTH|WINDOW|WINDOWS|WITH|WITH-HEADING|WITH-TITLE|WITHOUT|WORD|WORK|WRITE|WRITER|X|XML|XOR|XSD|XSTRLEN|YELLOW|YES|YYMMDD|Z|ZERO|ZONE)(?![\w-])/i,lookbehind:!0},number:/\b\d+\b/,operator:{pattern:/(\s)(?:\*\*?|<[=>]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/};var P1=["comment","prolog","doctype","cdata","punctuation","namespace","property","tag","boolean","number","constant","symbol","deleted","selector","attr-name","string","builtin","inserted","operator","entity","url","string","atrule","attr-value","keyword","function","class-name","regex","important","variable","bold","italic","entity","char"];function k1(t){return"string"==typeof t?t.length:"string"==typeof t.content?t.content.length:t.content.reduce(function(t,e){return t+k1(e)},0)}var I1,B1,F1,R1,_1,j1,L1,M1,z1,H1,$1,U1,V1,G1,W1,q1=function(t){var e,n,r,o=function(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}(t,2),i=o[0],u=o[1],a=[],s=function(t){if(!yp.Text.isText(t))return null;var e=eP.getParentNode(null,t);if(e&&"code"===eP.getNodeType(e)){var n=eP.getParentNode(null,e);if(n&&"pre"===eP.getNodeType(n))return e}return null}(i);if(null==s)return a;var c=s.language,l=void 0===c?"":c;if(!l)return a;var f=function(t,e){if(!e)return[];var n=N1.languages[e];return n?N1.tokenize(t.text,n):[]}(i,l),d=0;try{for(var p=function(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.")}(f),h=p.next();!h.done;h=p.next()){var v=h.value,g=d+k1(v);"string"!=typeof v&&a.push(((r={})[v.type]=!0,r.anchor={path:u,offset:d},r.focus={path:u,offset:g},r)),d=g}}catch(t){e={error:t}}finally{try{h&&!h.done&&(n=p.return)&&n.call(p)}finally{if(e)throw e.error}}return a},K1={};function Y1(){if(B1)return I1;B1=1;var t=VZ();return I1=Array.isArray||function(e){return"Array"===t(e)}}function X1(){if(H1)return z1;H1=1;var t=Y1(),e=function(){if(M1)return L1;M1=1;var t=UZ(),e=YJ(),n=YZ(),r=h1(),o=JZ(),i=g0(),u=function(){},a=o("Reflect","construct"),s=/^\s*(?:class|function)\b/,c=t(s.exec),l=!s.test(u),f=function(t){if(!n(t))return!1;try{return a(u,[],t),!0}catch(t){return!1}},d=function(t){if(!n(t))return!1;switch(r(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return l||!!c(s,i(t))}catch(t){return!0}};return d.sham=!0,L1=!a||e(function(){var t;return f(f.call)||!f(Object)||!f(function(){t=!0})||t})?d:f}(),n=XZ(),r=RQ()("species"),o=Array;return z1=function(i){var u;return t(i)&&(u=i.constructor,(e(u)&&(u===o||t(u.prototype))||n(u)&&null===(u=u[r]))&&(u=void 0)),void 0===u?o:u}}function J1(){if(U1)return $1;U1=1;var t=X1();return $1=function(e,n){return new(t(e))(0===n?0:n)}}!function(){if(W1)return K1;W1=1;var t=d1(),e=YJ(),n=Y1(),r=XZ(),o=IQ(),i=z0(),u=function(){if(R1)return F1;R1=1;var t=TypeError;return F1=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}}(),a=function(){if(j1)return _1;j1=1;var t=XJ(),e=JQ(),n=$Z();return _1=function(r,o,i){t?e.f(r,o,n(0,i)):r[o]=i}}(),s=J1(),c=function(){if(G1)return V1;G1=1;var t=YJ(),e=RQ(),n=QZ(),r=e("species");return V1=function(e){return n>=51||!t(function(){var t=[];return(t.constructor={})[r]=function(){return{foo:1}},1!==t[e](Boolean).foo})}}(),l=RQ(),f=QZ(),d=l("isConcatSpreadable"),p=f>=51||!e(function(){var t=[];return t[d]=!1,t.concat()[0]!==t}),h=function(t){if(!r(t))return!1;var e=t[d];return void 0!==e?!!e:n(t)};t({target:"Array",proto:!0,arity:1,forced:!p||!c("concat")},{concat:function(t){var e,n,r,c,l,f=o(this),d=s(f,0),p=0;for(e=-1,r=arguments.length;e<r;e++)if(h(l=-1===e?f:arguments[e]))for(c=i(l),u(p+c),n=0;n<c;n++,p++)n in l&&a(d,p,l[n]);else u(p+1),a(d,p++,l);return d.length=p,d}})}();var Z1,Q1,t2,e2,n2={};function r2(){if(Q1)return Z1;Q1=1;var t=XQ();return Z1=function(){var e=t(this),n="";return e.hasIndices&&(n+="d"),e.global&&(n+="g"),e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.dotAll&&(n+="s"),e.unicode&&(n+="u"),e.unicodeSets&&(n+="v"),e.sticky&&(n+="y"),n}}var o2,i2,u2,a2,s2,c2,l2,f2,d2,p2,h2,v2,g2,y2,m2={};function b2(){if(i2)return o2;i2=1;var t=H0(),e=$0();return o2=Object.keys||function(n){return t(n,e)}}function E2(){if(l2)return c2;l2=1;var t,e=XQ(),n=function(){if(u2)return m2;u2=1;var t=XJ(),e=YQ(),n=JQ(),r=XQ(),o=KZ(),i=b2();return m2.f=t&&!e?Object.defineProperties:function(t,e){r(t);for(var u,a=o(e),s=i(e),c=s.length,l=0;c>l;)n.f(t,u=s[l++],a[u]);return t},m2}(),r=$0(),o=m0(),i=function(){if(s2)return a2;s2=1;var t=JZ();return a2=t("document","documentElement")}(),u=LQ(),a=y0(),s="prototype",c="script",l=a("IE_PROTO"),f=function(){},d=function(t){return"<"+c+">"+t+"</"+c+">"},p=function(t){t.write(d("")),t.close();var e=t.parentWindow.Object;return t=null,e},h=function(){try{t=new ActiveXObject("htmlfile")}catch(t){}var e,n,o;h="undefined"!=typeof document?document.domain&&t?p(t):(n=u("iframe"),o="java"+c+":",n.style.display="none",i.appendChild(n),n.src=String(o),(e=n.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F):p(t);for(var a=r.length;a--;)delete h[s][r[a]];return h()};return o[l]=!0,c2=Object.create||function(t,r){var o;return null!==t?(f[s]=e(t),o=new f,f[s]=null,o[l]=t):o=h(),void 0===r?o:n.f(o,r)}}!function(){if(y2)return n2;y2=1;var t=d1(),e=function(){if(g2)return v2;g2=1;var t,e,n=ZJ(),r=UZ(),o=v1(),i=r2(),u=function(){if(e2)return t2;e2=1;var t=YJ(),e=MJ().RegExp,n=t(function(){var t=e("a","y");return t.lastIndex=2,null!==t.exec("abcd")}),r=n||t(function(){return!e("a","y").sticky}),o=n||t(function(){var t=e("^r","gy");return t.lastIndex=2,null!==t.exec("str")});return t2={BROKEN_CARET:o,MISSED_STICKY:r,UNSUPPORTED_Y:n}}(),a=kQ(),s=E2(),c=b0().get,l=function(){if(d2)return f2;d2=1;var t=YJ(),e=MJ().RegExp;return f2=t(function(){var t=e(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})}(),f=function(){if(h2)return p2;h2=1;var t=YJ(),e=MJ().RegExp;return p2=t(function(){var t=e("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})}(),d=a("native-string-replace",String.prototype.replace),p=RegExp.prototype.exec,h=p,v=r("".charAt),g=r("".indexOf),y=r("".replace),m=r("".slice),b=(e=/b*/g,n(p,t=/a/,"a"),n(p,e,"a"),0!==t.lastIndex||0!==e.lastIndex),E=u.BROKEN_CARET,w=void 0!==/()??/.exec("")[1];return(b||w||E||l||f)&&(h=function(t){var e,r,u,a,l,f,S,C=this,D=c(C),O=o(t),A=D.raw;if(A)return A.lastIndex=C.lastIndex,e=n(h,A,O),C.lastIndex=A.lastIndex,e;var x=D.groups,T=E&&C.sticky,N=n(i,C),P=C.source,k=0,I=O;if(T&&(N=y(N,"y",""),-1===g(N,"g")&&(N+="g"),I=m(O,C.lastIndex),C.lastIndex>0&&(!C.multiline||C.multiline&&"\n"!==v(O,C.lastIndex-1))&&(P="(?: "+P+")",I=" "+I,k++),r=new RegExp("^(?:"+P+")",N)),w&&(r=new RegExp("^"+P+"$(?!\\s)",N)),b&&(u=C.lastIndex),a=n(p,T?r:C,I),T?a?(a.input=m(a.input,k),a[0]=m(a[0],k),a.index=C.lastIndex,C.lastIndex+=a[0].length):C.lastIndex=0:b&&a&&(C.lastIndex=C.global?a.index+a[0].length:u),w&&a&&a.length>1&&n(d,a[0],r,function(){for(l=1;l<arguments.length-2;l++)void 0===arguments[l]&&(a[l]=void 0)}),a&&x)for(a.groups=f=s(null),l=0;l<x.length;l++)f[(S=x[l])[0]]=a[S[1]];return a}),v2=h}();t({target:"RegExp",proto:!0,forced:/./.exec!==e},{exec:e})}();var w2,S2,C2,D2,O2,A2={};!function(){if(O2)return A2;O2=1;var t=v0().PROPER,e=E0(),n=XQ(),r=v1(),o=YJ(),i=function(){if(D2)return C2;D2=1;var t=ZJ(),e=BQ(),n=ZZ(),r=function(){if(S2)return w2;S2=1;var t=MJ(),e=YJ(),n=t.RegExp,r=!e(function(){var t=!0;try{n(".","d")}catch(e){t=!1}var e={},r="",o=t?"dgimsy":"gimsy",i=function(t,n){Object.defineProperty(e,t,{get:function(){return r+=n,!0}})},u={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in t&&(u.hasIndices="d"),u)i(a,u[a]);return Object.getOwnPropertyDescriptor(n.prototype,"flags").get.call(e)!==o||r!==o});return w2={correct:r}}(),o=r2(),i=RegExp.prototype;return C2=r.correct?function(t){return t.flags}:function(u){return r.correct||!n(i,u)||e(u,"flags")?u.flags:t(o,u)}}(),u="toString",a=RegExp.prototype,s=a[u],c=o(function(){return"/a/b"!==s.call({source:"a",flags:"b"})}),l=t&&s.name!==u;(c||l)&&e(a,u,function(){var t=n(this);return"/"+r(t.source)+"/"+r(i(t))},{unsafe:!0})}();var x2,T2,N2,P2,k2,I2,B2,F2,R2,_2,j2,L2,M2,z2,H2,$2={};function U2(){if(z2)return M2;z2=1;var t=function(){if(_2)return R2;_2=1;var t=function(){if(F2)return B2;F2=1;var t=function(){if(I2)return k2;I2=1;var t=VZ(),e=UZ();return k2=function(n){if("Function"===t(n))return e(n)}}(),e=rQ(),n=JJ(),r=t(t.bind);return B2=function(t,o){return e(t),void 0===o?t:n?r(t,o):function(){return t.apply(o,arguments)}},B2}(),e=UZ(),n=GZ(),r=IQ(),o=z0(),i=J1(),u=e([].push),a=function(e){var a=1===e,s=2===e,c=3===e,l=4===e,f=6===e,d=7===e,p=5===e||f;return function(h,v,g,y){for(var m,b,E=r(h),w=n(E),S=o(w),C=t(v,g),D=0,O=y||i,A=a?O(h,S):s||d?O(h,0):void 0;S>D;D++)if((p||D in w)&&(b=C(m=w[D],D,E),e))if(a)A[D]=b;else if(b)switch(e){case 3:return!0;case 5:return m;case 6:return D;case 2:u(A,m)}else switch(e){case 4:return!1;case 7:u(A,m)}return f?-1:c||l?l:A}};return R2={forEach:a(0),map:a(1),filter:a(2),some:a(3),every:a(4),find:a(5),findIndex:a(6),filterReject:a(7)}}().forEach,e=function(){if(L2)return j2;L2=1;var t=YJ();return j2=function(e,n){var r=[][e];return!!r&&t(function(){r.call(null,n||function(){return 1},1)})}}()("forEach");return M2=e?[].forEach:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)},M2}!function(){if(H2)return $2;H2=1;var t=MJ(),e=T2?x2:(T2=1,x2={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}),n=function(){if(P2)return N2;P2=1;var t=LQ()("span").classList,e=t&&t.constructor&&t.constructor.prototype;return N2=e===Object.prototype?void 0:e}(),r=U2(),o=ZQ(),i=function(t){if(t&&t.forEach!==r)try{o(t,"forEach",r)}catch(e){t.forEach=r}};for(var u in e)e[u]&&i(t[u]&&t[u].prototype);i(n)}();var V2,G2,W2=function(){function t(){this.title=dI("highLightModule.selectLang"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 64v896h896V64H64z m487.6 698.8c0 87.2-51.2 127-125.8 127-67.4 0-106.4-34.8-126.4-77l68.6-41.4c13.2 23.4 25.2 43.2 54.2 43.2 27.6 0 45.2-10.8 45.2-53V475.4h84.2v287.4z m199.2 127c-78.2 0-128.8-37.2-153.4-86l68.6-39.6c18 29.4 41.6 51.2 83 51.2 34.8 0 57.2-17.4 57.2-41.6 0-28.8-22.8-39-61.4-56l-21-9c-60.8-25.8-101-58.4-101-127 0-63.2 48.2-111.2 123.2-111.2 53.6 0 92 18.6 119.6 67.4L800 580c-14.4-25.8-30-36-54.2-36-24.6 0-40.2 15.6-40.2 36 0 25.2 15.6 35.4 51.8 51.2l21 9c71.6 30.6 111.8 62 111.8 132.4 0 75.6-59.6 117.2-139.4 117.2z"></path></svg>',this.tag="select",this.width=95,this.selectPanelWidth=115,this.defaultCodeLang=""}return t.prototype.getOptions=function(t){var e=this,n=[],r=t.getMenuConfig("codeSelectLang").codeLangs,o=void 0===r?[]:r;n.push({text:"plain text",value:""}),o.forEach(function(t){var r=t.text,o=t.value;t.selected&&(e.defaultCodeLang=o),n.push({text:r,value:o})});var i=this.getValue(t);return n.forEach(function(t){t.value===i?t.selected=!0:t.selected=void 0}),n},t.prototype.isActive=function(t){return!1},t.prototype.getValue=function(t){var e=this.getSelectCodeElem(t);if(null==e)return this.defaultCodeLang;if(!yp.Element.isElement(e))return this.defaultCodeLang;var n=e.language.toString(),r=t.getMenuConfig("codeSelectLang").codeLangs;return(void 0===r?[]:r).some(function(t){return t.value===n})?n:this.defaultCodeLang},t.prototype.isDisabled=function(t){return null==t.selection||!this.getSelectCodeElem(t)},t.prototype.exec=function(t,e){if(null!=this.getSelectCodeElem(t)){var n={language:e.toString()};yp.Transforms.setNodes(t,n,{match:function(t){return eP.checkNodeType(t,"code")}})}},t.prototype.getSelectCodeElem=function(t){var e=eP.getSelectedNodeByType(t,"code");if(null==e)return null;var n=eP.getParentNode(t,e);return yp.Element.isElement(n)?"pre"!==n.type?null:e:null},t}(),q2={key:"codeSelectLang",factory:function(){return new W2},config:{codeLangs:[{text:"CSS",value:"css"},{text:"HTML",value:"html"},{text:"XML",value:"xml"},{text:"Javascript",value:"javascript"},{text:"Typescript",value:"typescript"},{text:"JSX",value:"jsx"},{text:"Go",value:"go"},{text:"PHP",value:"php"},{text:"C",value:"c"},{text:"Python",value:"python"},{text:"Java",value:"java"},{text:"C++",value:"cpp"},{text:"C#",value:"csharp"},{text:"Visual Basic",value:"visual-basic"},{text:"SQL",value:"sql"},{text:"Ruby",value:"ruby"},{text:"Swift",value:"swift"},{text:"Bash",value:"bash"},{text:"Lua",value:"lua"},{text:"Groovy",value:"groovy"},{text:"Markdown",value:"markdown"},{text:"ABAP",value:"abap"}]}},K2={};G2||(G2=1,function(){if(V2)return K2;V2=1;var t=d1(),e=MJ();t({global:!0,forced:e.globalThis!==e},{globalThis:e})}()),Mp&&(Rp.fn.attr=Mp);var Y2,X2,J2,Z2={};!function(){if(J2)return Z2;J2=1;var t=d1(),e=function(){if(X2)return Y2;X2=1;var t=XJ(),e=UZ(),n=ZJ(),r=YJ(),o=b2(),i=l1(),u=HZ(),a=IQ(),s=GZ(),c=Object.assign,l=Object.defineProperty,f=e([].concat);return Y2=!c||r(function(){if(t&&1!==c({b:1},c(l({},"a",{enumerable:!0,get:function(){l(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},n={},r=Symbol("assign detection"),i="abcdefghijklmnopqrst";return e[r]=7,i.split("").forEach(function(t){n[t]=t}),7!==c({},e)[r]||o(c({},n)).join("")!==i})?function(e,r){for(var c=a(e),l=arguments.length,d=1,p=i.f,h=u.f;l>d;)for(var v,g=s(arguments[d++]),y=p?f(o(g),p(g)):o(g),m=y.length,b=0;m>b;)v=y[b++],t&&!n(h,g,v)||(c[v]=g[v]);return c}:c,Y2}();t({target:"Object",stat:!0,arity:2,forced:Object.assign!==e},{assign:e})}();var Q2={renderStyle:function(t,e){var n=t,r=e,o="";return P1.forEach(function(t){n[t]&&(o=t)}),o&&function(t,e){null==t.data&&(t.data={});var n=t.data;null==n.props&&(n.props={}),Object.assign(n.props,{className:e})}(r,o="token ".concat(o)),r},parseStyleHtml:function(t,e,n){var r=Rp(t);if(!yp.Element.isElement(e))return e;if("code"!==eP.getNodeType(e))return e;var o=e,i=r.attr("class")||"";return 0===i.indexOf("language-")?o.language=i.split("-")[1]||"":o.language=i.toLowerCase(),o},menus:[q2],elemsToHtml:[{type:"code",elemToHtml:function(t,e){var n=t.language,r=void 0===n?"":n,o=r?'class="language-'.concat(r,'"'):"";return"<code ".concat(o,">").concat(e,"</code>")}}]};lI("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),lI("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var t4,e4,n4="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},r4={};function o4(){if(e4)return t4;e4=1;var t=function(t){return t&&t.Math===Math&&t};return t4=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof n4&&n4)||t("object"==typeof t4&&t4)||function(){return this}()||Function("return this")()}var i4,u4,a4,s4,c4,l4,f4,d4,p4={};function h4(){return u4?i4:(u4=1,i4=function(t){try{return!!t()}catch(t){return!0}})}function v4(){if(s4)return a4;s4=1;var t=h4();return a4=!t(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function g4(){if(l4)return c4;l4=1;var t=h4();return c4=!t(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})}function y4(){if(d4)return f4;d4=1;var t=g4(),e=Function.prototype.call;return f4=t?e.bind(e):function(){return e.apply(e,arguments)},f4}var m4,b4,E4,w4,S4,C4,D4,O4,A4,x4,T4,N4,P4,k4,I4,B4,F4,R4,_4,j4,L4,M4,z4,H4,$4,U4,V4,G4,W4,q4,K4,Y4,X4,J4,Z4,Q4,t6,e6,n6,r6,o6,i6={};function u6(){return E4?b4:(E4=1,b4=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}})}function a6(){if(S4)return w4;S4=1;var t=g4(),e=Function.prototype,n=e.call,r=t&&e.bind.bind(n,n);return w4=t?r:function(t){return function(){return n.apply(t,arguments)}},w4}function s6(){if(D4)return C4;D4=1;var t=a6(),e=t({}.toString),n=t("".slice);return C4=function(t){return n(e(t),8,-1)}}function c6(){if(A4)return O4;A4=1;var t=a6(),e=h4(),n=s6(),r=Object,o=t("".split);return O4=e(function(){return!r("z").propertyIsEnumerable(0)})?function(t){return"String"===n(t)?o(t,""):r(t)}:r}function l6(){return T4?x4:(T4=1,x4=function(t){return null==t})}function f6(){if(P4)return N4;P4=1;var t=l6(),e=TypeError;return N4=function(n){if(t(n))throw new e("Can't call method on "+n);return n}}function d6(){if(I4)return k4;I4=1;var t=c6(),e=f6();return k4=function(n){return t(e(n))}}function p6(){if(F4)return B4;F4=1;var t="object"==typeof document&&document.all;return B4=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(t){return"function"==typeof t}}function h6(){if(_4)return R4;_4=1;var t=p6();return R4=function(e){return"object"==typeof e?null!==e:t(e)}}function v6(){if(L4)return j4;L4=1;var t=o4(),e=p6();return j4=function(n,r){return arguments.length<2?(o=t[n],e(o)?o:void 0):t[n]&&t[n][r];var o},j4}function g6(){if(z4)return M4;z4=1;var t=a6();return M4=t({}.isPrototypeOf)}function y6(){if(V4)return U4;V4=1;var t,e,n=o4(),r=function(){if($4)return H4;$4=1;var t=o4().navigator,e=t&&t.userAgent;return H4=e?String(e):""}(),o=n.process,i=n.Deno,u=o&&o.versions||i&&i.version,a=u&&u.v8;return a&&(e=(t=a.split("."))[0]>0&&t[0]<4?1:+(t[0]+t[1])),!e&&r&&(!(t=r.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=r.match(/Chrome\/(\d+)/))&&(e=+t[1]),U4=e}function m6(){if(W4)return G4;W4=1;var t=y6(),e=h4(),n=o4().String;return G4=!!Object.getOwnPropertySymbols&&!e(function(){var e=Symbol("symbol detection");return!n(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&t&&t<41})}function b6(){if(K4)return q4;K4=1;var t=m6();return q4=t&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function E6(){if(X4)return Y4;X4=1;var t=v6(),e=p6(),n=g6(),r=b6(),o=Object;return Y4=r?function(t){return"symbol"==typeof t}:function(r){var i=t("Symbol");return e(i)&&n(i.prototype,o(r))}}function w6(){if(Z4)return J4;Z4=1;var t=String;return J4=function(e){try{return t(e)}catch(t){return"Object"}}}function S6(){if(t6)return Q4;t6=1;var t=p6(),e=w6(),n=TypeError;return Q4=function(r){if(t(r))return r;throw new n(e(r)+" is not a function")}}function C6(){if(n6)return e6;n6=1;var t=S6(),e=l6();return e6=function(n,r){var o=n[r];return e(o)?void 0:t(o)}}var D6,O6,A6,x6,T6,N6,P6,k6,I6,B6,F6,R6,_6,j6,L6,M6,z6,H6,$6,U6,V6,G6,W6,q6,K6={exports:{}};function Y6(){return O6?D6:(O6=1,D6=!1)}function X6(){if(x6)return A6;x6=1;var t=o4(),e=Object.defineProperty;return A6=function(n,r){try{e(t,n,{value:r,configurable:!0,writable:!0})}catch(e){t[n]=r}return r}}function J6(){if(T6)return K6.exports;T6=1;var t=Y6(),e=o4(),n=X6(),r="__core-js_shared__",o=K6.exports=e[r]||n(r,{});return(o.versions||(o.versions=[])).push({version:"3.44.0",mode:t?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.44.0/LICENSE",source:"https://github.com/zloirock/core-js"}),K6.exports}function Z6(){if(P6)return N6;P6=1;var t=J6();return N6=function(e,n){return t[e]||(t[e]=n||{})}}function Q6(){if(I6)return k6;I6=1;var t=f6(),e=Object;return k6=function(n){return e(t(n))}}function t3(){if(F6)return B6;F6=1;var t=a6(),e=Q6(),n=t({}.hasOwnProperty);return B6=Object.hasOwn||function(t,r){return n(e(t),r)}}function e3(){if(_6)return R6;_6=1;var t=a6(),e=0,n=Math.random(),r=t(1.1.toString);return R6=function(t){return"Symbol("+(void 0===t?"":t)+")_"+r(++e+n,36)}}function n3(){if(L6)return j6;L6=1;var t=o4(),e=Z6(),n=t3(),r=e3(),o=m6(),i=b6(),u=t.Symbol,a=e("wks"),s=i?u.for||u:u&&u.withoutSetter||r;return j6=function(t){return n(a,t)||(a[t]=o&&n(u,t)?u[t]:s("Symbol."+t)),a[t]}}function r3(){if(z6)return M6;z6=1;var t=y4(),e=h6(),n=E6(),r=C6(),o=function(){if(o6)return r6;o6=1;var t=y4(),e=p6(),n=h6(),r=TypeError;return r6=function(o,i){var u,a;if("string"===i&&e(u=o.toString)&&!n(a=t(u,o)))return a;if(e(u=o.valueOf)&&!n(a=t(u,o)))return a;if("string"!==i&&e(u=o.toString)&&!n(a=t(u,o)))return a;throw new r("Can't convert object to primitive value")}}(),i=n3(),u=TypeError,a=i("toPrimitive");return M6=function(i,s){if(!e(i)||n(i))return i;var c,l=r(i,a);if(l){if(void 0===s&&(s="default"),c=t(l,i,s),!e(c)||n(c))return c;throw new u("Can't convert object to primitive value")}return void 0===s&&(s="number"),o(i,s)}}function o3(){if($6)return H6;$6=1;var t=r3(),e=E6();return H6=function(n){var r=t(n,"string");return e(r)?r:r+""}}function i3(){if(V6)return U6;V6=1;var t=o4(),e=h6(),n=t.document,r=e(n)&&e(n.createElement);return U6=function(t){return r?n.createElement(t):{}}}function u3(){if(W6)return G6;W6=1;var t=v4(),e=h4(),n=i3();return G6=!t&&!e(function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a})}function a3(){if(q6)return p4;q6=1;var t=v4(),e=y4(),n=function(){if(m4)return i6;m4=1;var t={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,n=e&&!t.call({1:2},1);return i6.f=n?function(t){var n=e(this,t);return!!n&&n.enumerable}:t,i6}(),r=u6(),o=d6(),i=o3(),u=t3(),a=u3(),s=Object.getOwnPropertyDescriptor;return p4.f=t?s:function(t,c){if(t=o(t),c=i(c),a)try{return s(t,c)}catch(t){}if(u(t,c))return r(!e(n.f,t,c),t[c])},p4}var s3,c3,l3,f3,d3,p3,h3,v3={};function g3(){if(c3)return s3;c3=1;var t=v4(),e=h4();return s3=t&&e(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}function y3(){if(f3)return l3;f3=1;var t=h6(),e=String,n=TypeError;return l3=function(r){if(t(r))return r;throw new n(e(r)+" is not an object")}}function m3(){if(d3)return v3;d3=1;var t=v4(),e=u3(),n=g3(),r=y3(),o=o3(),i=TypeError,u=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s="enumerable",c="configurable",l="writable";return v3.f=t?n?function(t,e,n){if(r(t),e=o(e),r(n),"function"==typeof t&&"prototype"===e&&"value"in n&&l in n&&!n[l]){var i=a(t,e);i&&i[l]&&(t[e]=n.value,n={configurable:c in n?n[c]:i[c],enumerable:s in n?n[s]:i[s],writable:!1})}return u(t,e,n)}:u:function(t,n,a){if(r(t),n=o(n),r(a),e)try{return u(t,n,a)}catch(t){}if("get"in a||"set"in a)throw new i("Accessors not supported");return"value"in a&&(t[n]=a.value),t},v3}function b3(){if(h3)return p3;h3=1;var t=v4(),e=m3(),n=u6();return p3=t?function(t,r,o){return e.f(t,r,n(1,o))}:function(t,e,n){return t[e]=n,t}}var E3,w3,S3,C3,D3,O3,A3,x3,T3,N3,P3,k3,I3,B3,F3,R3={exports:{}};function _3(){if(w3)return E3;w3=1;var t=v4(),e=t3(),n=Function.prototype,r=t&&Object.getOwnPropertyDescriptor,o=e(n,"name"),i=o&&"something"===function(){}.name,u=o&&(!t||t&&r(n,"name").configurable);return E3={EXISTS:o,PROPER:i,CONFIGURABLE:u}}function j3(){if(C3)return S3;C3=1;var t=a6(),e=p6(),n=J6(),r=t(Function.toString);return e(n.inspectSource)||(n.inspectSource=function(t){return r(t)}),S3=n.inspectSource}function L3(){if(O3)return D3;O3=1;var t=o4(),e=p6(),n=t.WeakMap;return D3=e(n)&&/native code/.test(String(n))}function M3(){if(x3)return A3;x3=1;var t=Z6(),e=e3(),n=t("keys");return A3=function(t){return n[t]||(n[t]=e(t))}}function z3(){return N3?T3:(N3=1,T3={})}function H3(){if(k3)return P3;k3=1;var t,e,n,r=L3(),o=o4(),i=h6(),u=b3(),a=t3(),s=J6(),c=M3(),l=z3(),f="Object already initialized",d=o.TypeError,p=o.WeakMap;if(r||s.state){var h=s.state||(s.state=new p);h.get=h.get,h.has=h.has,h.set=h.set,t=function(t,e){if(h.has(t))throw new d(f);return e.facade=t,h.set(t,e),e},e=function(t){return h.get(t)||{}},n=function(t){return h.has(t)}}else{var v=c("state");l[v]=!0,t=function(t,e){if(a(t,v))throw new d(f);return e.facade=t,u(t,v,e),e},e=function(t){return a(t,v)?t[v]:{}},n=function(t){return a(t,v)}}return P3={set:t,get:e,has:n,enforce:function(r){return n(r)?e(r):t(r,{})},getterFor:function(t){return function(n){var r;if(!i(n)||(r=e(n)).type!==t)throw new d("Incompatible receiver, "+t+" required");return r}}}}function $3(){if(F3)return B3;F3=1;var t=p6(),e=m3(),n=function(){if(I3)return R3.exports;I3=1;var t=a6(),e=h4(),n=p6(),r=t3(),o=v4(),i=_3().CONFIGURABLE,u=j3(),a=H3(),s=a.enforce,c=a.get,l=String,f=Object.defineProperty,d=t("".slice),p=t("".replace),h=t([].join),v=o&&!e(function(){return 8!==f(function(){},"length",{value:8}).length}),g=String(String).split("String"),y=R3.exports=function(t,e,n){"Symbol("===d(l(e),0,7)&&(e="["+p(l(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!r(t,"name")||i&&t.name!==e)&&(o?f(t,"name",{value:e,configurable:!0}):t.name=e),v&&n&&r(n,"arity")&&t.length!==n.arity&&f(t,"length",{value:n.arity});try{n&&r(n,"constructor")&&n.constructor?o&&f(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var u=s(t);return r(u,"source")||(u.source=h(g,"string"==typeof e?e:"")),t};return Function.prototype.toString=y(function(){return n(this)&&c(this).source||u(this)},"toString"),R3.exports}(),r=X6();return B3=function(o,i,u,a){a||(a={});var s=a.enumerable,c=void 0!==a.name?a.name:i;if(t(u)&&n(u,c,a),a.global)s?o[i]=u:r(i,u);else{try{a.unsafe?o[i]&&(s=!0):delete o[i]}catch(t){}s?o[i]=u:e.f(o,i,{value:u,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return o}}var U3,V3,G3,W3,q3,K3,Y3,X3,J3,Z3,Q3,t5,e5,n5,r5,o5,i5,u5={};function a5(){if(W3)return G3;W3=1;var t=function(){if(V3)return U3;V3=1;var t=Math.ceil,e=Math.floor;return U3=Math.trunc||function(n){var r=+n;return(r>0?e:t)(r)}}();return G3=function(e){var n=+e;return n!=n||0===n?0:t(n)}}function s5(){if(X3)return Y3;X3=1;var t=a5(),e=Math.min;return Y3=function(n){var r=t(n);return r>0?e(r,9007199254740991):0}}function c5(){if(Z3)return J3;Z3=1;var t=s5();return J3=function(e){return t(e.length)}}function l5(){if(t5)return Q3;t5=1;var t=d6(),e=function(){if(K3)return q3;K3=1;var t=a5(),e=Math.max,n=Math.min;return q3=function(r,o){var i=t(r);return i<0?e(i+o,0):n(i,o)}}(),n=c5(),r=function(r){return function(o,i,u){var a=t(o),s=n(a);if(0===s)return!r&&-1;var c,l=e(u,s);if(r&&i!=i){for(;s>l;)if((c=a[l++])!=c)return!0}else for(;s>l;l++)if((r||l in a)&&a[l]===i)return r||l||0;return!r&&-1}};return Q3={includes:r(!0),indexOf:r(!1)}}function f5(){if(n5)return e5;n5=1;var t=a6(),e=t3(),n=d6(),r=l5().indexOf,o=z3(),i=t([].push);return e5=function(t,u){var a,s=n(t),c=0,l=[];for(a in s)!e(o,a)&&e(s,a)&&i(l,a);for(;u.length>c;)e(s,a=u[c++])&&(~r(l,a)||i(l,a));return l}}function d5(){return o5?r5:(o5=1,r5=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function p5(){if(i5)return u5;i5=1;var t=f5(),e=d5().concat("length","prototype");return u5.f=Object.getOwnPropertyNames||function(n){return t(n,e)},u5}var h5,v5,g5,y5,m5,b5,E5,w5,S5,C5,D5,O5,A5,x5,T5,N5,P5,k5,I5,B5,F5,R5,_5,j5,L5,M5,z5,H5,$5={};function U5(){if(m5)return y5;m5=1;var t=t3(),e=function(){if(g5)return v5;g5=1;var t=v6(),e=a6(),n=p5(),r=(h5||(h5=1,$5.f=Object.getOwnPropertySymbols),$5),o=y3(),i=e([].concat);return v5=t("Reflect","ownKeys")||function(t){var e=n.f(o(t)),u=r.f;return u?i(e,u(t)):e}}(),n=a3(),r=m3();return y5=function(o,i,u){for(var a=e(i),s=r.f,c=n.f,l=0;l<a.length;l++){var f=a[l];t(o,f)||u&&t(u,f)||s(o,f,c(i,f))}}}function V5(){if(E5)return b5;E5=1;var t=h4(),e=p6(),n=/#|\.prototype\./,r=function(n,r){var s=i[o(n)];return s===a||s!==u&&(e(r)?t(r):!!r)},o=r.normalize=function(t){return String(t).replace(n,".").toLowerCase()},i=r.data={},u=r.NATIVE="N",a=r.POLYFILL="P";return b5=r}function G5(){if(S5)return w5;S5=1;var t=o4(),e=a3().f,n=b3(),r=$3(),o=X6(),i=U5(),u=V5();return w5=function(a,s){var c,l,f,d,p,h=a.target,v=a.global,g=a.stat;if(c=v?t:g?t[h]||o(h,{}):t[h]&&t[h].prototype)for(l in s){if(d=s[l],f=a.dontCallGetSet?(p=e(c,l))&&p.value:c[l],!u(v?l:h+(g?".":"#")+l,a.forced)&&void 0!==f){if(typeof d==typeof f)continue;i(d,f)}(a.sham||f&&f.sham)&&n(d,"sham",!0),r(c,l,d,a)}}}function W5(){if(D5)return C5;D5=1;var t=s6();return C5=Array.isArray||function(e){return"Array"===t(e)}}function q5(){if(A5)return O5;A5=1;var t=TypeError;return O5=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}}function K5(){if(P5)return N5;P5=1;var t={};return t[n3()("toStringTag")]="z",N5="[object z]"===String(t)}function Y5(){if(I5)return k5;I5=1;var t=K5(),e=p6(),n=s6(),r=n3()("toStringTag"),o=Object,i="Arguments"===n(function(){return arguments}());return k5=t?n:function(t){var u,a,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(a=function(t,e){try{return t[e]}catch(t){}}(u=o(t),r))?a:i?n(u):"Object"===(s=n(u))&&e(u.callee)?"Arguments":s}}function X5(){if(_5)return R5;_5=1;var t=W5(),e=function(){if(F5)return B5;F5=1;var t=a6(),e=h4(),n=p6(),r=Y5(),o=v6(),i=j3(),u=function(){},a=o("Reflect","construct"),s=/^\s*(?:class|function)\b/,c=t(s.exec),l=!s.test(u),f=function(t){if(!n(t))return!1;try{return a(u,[],t),!0}catch(t){return!1}},d=function(t){if(!n(t))return!1;switch(r(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return l||!!c(s,i(t))}catch(t){return!0}};return d.sham=!0,B5=!a||e(function(){var t;return f(f.call)||!f(Object)||!f(function(){t=!0})||t})?d:f}(),n=h6(),r=n3()("species"),o=Array;return R5=function(i){var u;return t(i)&&(u=i.constructor,(e(u)&&(u===o||t(u.prototype))||n(u)&&null===(u=u[r]))&&(u=void 0)),void 0===u?o:u}}function J5(){if(L5)return j5;L5=1;var t=X5();return j5=function(e,n){return new(t(e))(0===n?0:n)}}function Z5(){if(z5)return M5;z5=1;var t=h4(),e=n3(),n=y6(),r=e("species");return M5=function(e){return n>=51||!t(function(){var t=[];return(t.constructor={})[r]=function(){return{foo:1}},1!==t[e](Boolean).foo})}}!function(){if(H5)return r4;H5=1;var t=G5(),e=h4(),n=W5(),r=h6(),o=Q6(),i=c5(),u=q5(),a=function(){if(T5)return x5;T5=1;var t=v4(),e=m3(),n=u6();return x5=function(r,o,i){t?e.f(r,o,n(0,i)):r[o]=i}}(),s=J5(),c=Z5(),l=n3(),f=y6(),d=l("isConcatSpreadable"),p=f>=51||!e(function(){var t=[];return t[d]=!1,t.concat()[0]!==t}),h=function(t){if(!r(t))return!1;var e=t[d];return void 0!==e?!!e:n(t)};t({target:"Array",proto:!0,arity:1,forced:!p||!c("concat")},{concat:function(t){var e,n,r,c,l,f=o(this),d=s(f,0),p=0;for(e=-1,r=arguments.length;e<r;e++)if(h(l=-1===e?f:arguments[e]))for(c=i(l),u(p+c),n=0;n<c;n++,p++)n in l&&a(d,p,l[n]);else u(p+1),a(d,p++,l);return d.length=p,d}})}();var Q5=function(t,e){return Q5=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},Q5(t,e)};function t8(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}Q5(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function e8(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 n8(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 r8(t,e,n){if(2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError;var o8,i8,u8,a8,s8,c8,l8,f8,d8,p8,h8,v8,g8,y8,m8,b8,E8,w8,S8,C8,D8,O8,A8,x8,T8,N8,P8,k8,I8,B8,F8,R8,_8,j8,L8,M8={};function z8(){if(l8)return c8;l8=1;var t,e=y3(),n=function(){if(u8)return M8;u8=1;var t=v4(),e=g3(),n=m3(),r=y3(),o=d6(),i=function(){if(i8)return o8;i8=1;var t=f5(),e=d5();return o8=Object.keys||function(n){return t(n,e)}}();return M8.f=t&&!e?Object.defineProperties:function(t,e){r(t);for(var u,a=o(e),s=i(e),c=s.length,l=0;c>l;)n.f(t,u=s[l++],a[u]);return t},M8}(),r=d5(),o=z3(),i=function(){if(s8)return a8;s8=1;var t=v6();return a8=t("document","documentElement")}(),u=i3(),a=M3(),s="prototype",c="script",l=a("IE_PROTO"),f=function(){},d=function(t){return"<"+c+">"+t+"</"+c+">"},p=function(t){t.write(d("")),t.close();var e=t.parentWindow.Object;return t=null,e},h=function(){try{t=new ActiveXObject("htmlfile")}catch(t){}var e,n,o;h="undefined"!=typeof document?document.domain&&t?p(t):(n=u("iframe"),o="java"+c+":",n.style.display="none",i.appendChild(n),n.src=String(o),(e=n.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F):p(t);for(var a=r.length;a--;)delete h[s][r[a]];return h()};return o[l]=!0,c8=Object.create||function(t,r){var o;return null!==t?(f[s]=e(t),o=new f,f[s]=null,o[l]=t):o=h(),void 0===r?o:n.f(o,r)}}function H8(){if(d8)return f8;d8=1;var t=n3(),e=z8(),n=m3().f,r=t("unscopables"),o=Array.prototype;return void 0===o[r]&&n(o,r,{configurable:!0,value:e(null)}),f8=function(t){o[r][t]=!0}}function $8(){return h8?p8:(h8=1,p8={})}function U8(){if(m8)return y8;m8=1;var t=t3(),e=p6(),n=Q6(),r=M3(),o=function(){if(g8)return v8;g8=1;var t=h4();return v8=!t(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})}(),i=r("IE_PROTO"),u=Object,a=u.prototype;return y8=o?u.getPrototypeOf:function(r){var o=n(r);if(t(o,i))return o[i];var s=o.constructor;return e(s)&&o instanceof s?s.prototype:o instanceof u?a:null}}function V8(){if(E8)return b8;E8=1;var t,e,n,r=h4(),o=p6(),i=h6(),u=z8(),a=U8(),s=$3(),c=n3(),l=Y6(),f=c("iterator"),d=!1;return[].keys&&("next"in(n=[].keys())?(e=a(a(n)))!==Object.prototype&&(t=e):d=!0),!i(t)||r(function(){var e={};return t[f].call(e)!==e})?t={}:l&&(t=u(t)),o(t[f])||s(t,f,function(){return this}),b8={IteratorPrototype:t,BUGGY_SAFARI_ITERATORS:d}}function G8(){if(S8)return w8;S8=1;var t=m3().f,e=t3(),n=n3()("toStringTag");return w8=function(r,o,i){r&&!i&&(r=r.prototype),r&&!e(r,n)&&t(r,n,{configurable:!0,value:o})}}function W8(){if(P8)return N8;P8=1;var t=function(){if(T8)return x8;T8=1;var t=h6();return x8=function(e){return t(e)||null===e}}(),e=String,n=TypeError;return N8=function(r){if(t(r))return r;throw new n("Can't set "+e(r)+" as a prototype")}}function q8(){if(I8)return k8;I8=1;var t=function(){if(A8)return O8;A8=1;var t=a6(),e=S6();return O8=function(n,r,o){try{return t(e(Object.getOwnPropertyDescriptor(n,r)[o]))}catch(t){}}}(),e=h6(),n=f6(),r=W8();return k8=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 n(t),r(u),e(t)?(i?o(t,u):t.__proto__=u,t):t}}():void 0)}function K8(){if(F8)return B8;F8=1;var t=G5(),e=y4(),n=Y6(),r=_3(),o=p6(),i=function(){if(D8)return C8;D8=1;var t=V8().IteratorPrototype,e=z8(),n=u6(),r=G8(),o=$8(),i=function(){return this};return C8=function(u,a,s,c){var l=a+" Iterator";return u.prototype=e(t,{next:n(+!c,s)}),r(u,l,!1,!0),o[l]=i,u}}(),u=U8(),a=q8(),s=G8(),c=b3(),l=$3(),f=n3(),d=$8(),p=V8(),h=r.PROPER,v=r.CONFIGURABLE,g=p.IteratorPrototype,y=p.BUGGY_SAFARI_ITERATORS,m=f("iterator"),b="keys",E="values",w="entries",S=function(){return this};return B8=function(r,f,p,C,D,O,A){i(p,f,C);var x,T,N,P=function(t){if(t===D&&R)return R;if(!y&&t&&t in B)return B[t];switch(t){case b:case E:case w:return function(){return new p(this,t)}}return function(){return new p(this)}},k=f+" Iterator",I=!1,B=r.prototype,F=B[m]||B["@@iterator"]||D&&B[D],R=!y&&F||P(D),_="Array"===f&&B.entries||F;if(_&&(x=u(_.call(new r)))!==Object.prototype&&x.next&&(n||u(x)===g||(a?a(x,g):o(x[m])||l(x,m,S)),s(x,k,!0,!0),n&&(d[k]=S)),h&&D===E&&F&&F.name!==E&&(!n&&v?c(B,"name",E):(I=!0,R=function(){return e(F,this)})),D)if(T={values:P(E),keys:O?R:P(b),entries:P(w)},A)for(N in T)(y||I||!(N in B))&&l(B,N,T[N]);else t({target:f,proto:!0,forced:y||I},T);return n&&!A||B[m]===R||l(B,m,R,{name:D}),d[f]=R,T}}function Y8(){return _8?R8:(_8=1,R8=function(t,e){return{value:t,done:e}})}function X8(){if(L8)return j8;L8=1;var t=d6(),e=H8(),n=$8(),r=H3(),o=m3().f,i=K8(),u=Y8(),a=Y6(),s=v4(),c="Array Iterator",l=r.set,f=r.getterFor(c);j8=i(Array,"Array",function(e,n){l(this,{type:c,target:t(e),index:0,kind:n})},function(){var t=f(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=null,u(void 0,!0);switch(t.kind){case"keys":return u(n,!1);case"values":return u(e[n],!1)}return u([n,e[n]],!1)},"values");var d=n.Arguments=n.Array;if(e("keys"),e("values"),e("entries"),!a&&s&&"values"!==d.name)try{o(d,"name",{value:"values"})}catch(t){}return j8}X8();var J8,Z8,Q8,t7={};!function(){if(Q8)return t7;Q8=1;var t=K5(),e=$3(),n=function(){if(Z8)return J8;Z8=1;var t=K5(),e=Y5();return J8=t?{}.toString:function(){return"[object "+e(this)+"]"}}();t||e(Object.prototype,"toString",n,{unsafe:!0})}();var e7,n7,r7,o7,i7,u7={};function a7(){if(n7)return e7;n7=1;var t=Y5(),e=String;return e7=function(n){if("Symbol"===t(n))throw new TypeError("Cannot convert a Symbol value to a string");return e(n)}}function s7(){if(o7)return r7;o7=1;var t=a6(),e=a5(),n=a7(),r=f6(),o=t("".charAt),i=t("".charCodeAt),u=t("".slice),a=function(t){return function(a,s){var c,l,f=n(r(a)),d=e(s),p=f.length;return d<0||d>=p?t?"":void 0:(c=i(f,d))<55296||c>56319||d+1===p||(l=i(f,d+1))<56320||l>57343?t?o(f,d):c:t?u(f,d,d+2):l-56320+(c-55296<<10)+65536}};return r7={codeAt:a(!1),charAt:a(!0)}}!function(){if(i7)return u7;i7=1;var t=s7().charAt,e=a7(),n=H3(),r=K8(),o=Y8(),i="String Iterator",u=n.set,a=n.getterFor(i);r(String,"String",function(t){u(this,{type:i,string:e(t),index:0})},function(){var e,n=a(this),r=n.string,i=n.index;return i>=r.length?o(void 0,!0):(e=t(r,i),n.index+=e.length,o(e,!1))})}();var c7,l7,f7,d7,p7={};function h7(){if(l7)return c7;l7=1;var t=h4();return c7=!t(function(){return Object.isExtensible(Object.preventExtensions({}))})}function v7(){if(d7)return f7;d7=1;var t=$3();return f7=function(e,n,r){for(var o in n)t(e,o,n[o],r);return e}}var g7,y7,m7,b7,E7,w7,S7,C7,D7,O7,A7,x7,T7,N7,P7,k7,I7,B7,F7,R7,_7,j7,L7,M7,z7,H7,$7,U7,V7,G7,W7,q7,K7,Y7,X7,J7,Z7={exports:{}},Q7={};function t9(){if(m7)return Q7;m7=1;var t=s6(),e=d6(),n=p5().f,r=function(){if(y7)return g7;y7=1;var t=a6();return g7=t([].slice)}(),o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];return Q7.f=function(i){return o&&"Window"===t(i)?function(t){try{return n(t)}catch(t){return r(o)}}(i):n(e(i))},Q7}function e9(){if(C7)return Z7.exports;C7=1;var t=G5(),e=a6(),n=z3(),r=h6(),o=t3(),i=m3().f,u=p5(),a=t9(),s=function(){if(S7)return w7;S7=1;var t=h4(),e=h6(),n=s6(),r=function(){if(E7)return b7;E7=1;var t=h4();return b7=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 w7=i||r?function(t){return!!e(t)&&(!r||"ArrayBuffer"!==n(t))&&(!o||o(t))}:o}(),c=e3(),l=h7(),f=!1,d=c("meta"),p=0,h=function(t){i(t,d,{value:{objectID:"O"+p++,weakData:{}}})},v=Z7.exports={enable:function(){v.enable=function(){},f=!0;var n=u.f,r=e([].splice),o={};o[d]=1,n(o).length&&(u.f=function(t){for(var e=n(t),o=0,i=e.length;o<i;o++)if(e[o]===d){r(e,o,1);break}return e},t({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:a.f}))},fastKey:function(t,e){if(!r(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,d)){if(!s(t))return"F";if(!e)return"E";h(t)}return t[d].objectID},getWeakData:function(t,e){if(!o(t,d)){if(!s(t))return!0;if(!e)return!1;h(t)}return t[d].weakData},onFreeze:function(t){return l&&f&&s(t)&&!o(t,d)&&h(t),t}};return n[d]=!0,Z7.exports}function n9(){if(x7)return A7;x7=1;var t=function(){if(O7)return D7;O7=1;var t=s6(),e=a6();return D7=function(n){if("Function"===t(n))return e(n)}}(),e=S6(),n=g4(),r=t(t.bind);return A7=function(t,o){return e(t),void 0===o?t:n?r(t,o):function(){return t.apply(o,arguments)}},A7}function r9(){if(k7)return P7;k7=1;var t=Y5(),e=C6(),n=l6(),r=$8(),o=n3()("iterator");return P7=function(i){if(!n(i))return e(i,o)||e(i,"@@iterator")||r[t(i)]}}function o9(){if(j7)return _7;j7=1;var t=n9(),e=y4(),n=y3(),r=w6(),o=function(){if(N7)return T7;N7=1;var t=n3(),e=$8(),n=t("iterator"),r=Array.prototype;return T7=function(t){return void 0!==t&&(e.Array===t||r[n]===t)}}(),i=c5(),u=g6(),a=function(){if(B7)return I7;B7=1;var t=y4(),e=S6(),n=y3(),r=w6(),o=r9(),i=TypeError;return I7=function(u,a){var s=arguments.length<2?o(u):a;if(e(s))return n(t(s,u));throw new i(r(u)+" is not iterable")},I7}(),s=r9(),c=function(){if(R7)return F7;R7=1;var t=y4(),e=y3(),n=C6();return F7=function(r,o,i){var u,a;e(r);try{if(!(u=n(r,"return"))){if("throw"===o)throw i;return i}u=t(u,r)}catch(t){a=!0,u=t}if("throw"===o)throw i;if(a)throw u;return e(u),i}}(),l=TypeError,f=function(t,e){this.stopped=t,this.result=e},d=f.prototype;return _7=function(p,h,v){var g,y,m,b,E,w,S,C=v&&v.that,D=!(!v||!v.AS_ENTRIES),O=!(!v||!v.IS_RECORD),A=!(!v||!v.IS_ITERATOR),x=!(!v||!v.INTERRUPTED),T=t(h,C),N=function(t){return g&&c(g,"normal"),new f(!0,t)},P=function(t){return D?(n(t),x?T(t[0],t[1],N):T(t[0],t[1])):x?T(t,N):T(t)};if(O)g=p.iterator;else if(A)g=p;else{if(!(y=s(p)))throw new l(r(p)+" is not iterable");if(o(y)){for(m=0,b=i(p);b>m;m++)if((E=P(p[m]))&&u(d,E))return E;return new f(!1)}g=a(p,y)}for(w=O?p.next:g.next;!(S=e(w,g)).done;){try{E=P(S.value)}catch(t){c(g,"throw",t)}if("object"==typeof E&&E&&u(d,E))return E}return new f(!1)}}function i9(){if(M7)return L7;M7=1;var t=g6(),e=TypeError;return L7=function(n,r){if(t(r,n))return n;throw new e("Incorrect invocation")}}function u9(){if(G7)return V7;G7=1;var t=G5(),e=o4(),n=a6(),r=V5(),o=$3(),i=e9(),u=o9(),a=i9(),s=p6(),c=l6(),l=h6(),f=h4(),d=function(){if(H7)return z7;H7=1;var t=n3()("iterator"),e=!1;try{var n=0,r={next:function(){return{done:!!n++}},return:function(){e=!0}};r[t]=function(){return this},Array.from(r,function(){throw 2})}catch(t){}return z7=function(n,r){try{if(!r&&!e)return!1}catch(t){return!1}var o=!1;try{var i={};i[t]=function(){return{next:function(){return{done:o=!0}}}},n(i)}catch(t){}return o}}(),p=G8(),h=function(){if(U7)return $7;U7=1;var t=p6(),e=h6(),n=q8();return $7=function(r,o,i){var u,a;return n&&t(u=o.constructor)&&u!==i&&e(a=u.prototype)&&a!==i.prototype&&n(r,a),r}}();return V7=function(v,g,y){var m=-1!==v.indexOf("Map"),b=-1!==v.indexOf("Weak"),E=m?"set":"add",w=e[v],S=w&&w.prototype,C=w,D={},O=function(t){var e=n(S[t]);o(S,t,"add"===t?function(t){return e(this,0===t?0:t),this}:"delete"===t?function(t){return!(b&&!l(t))&&e(this,0===t?0:t)}:"get"===t?function(t){return b&&!l(t)?void 0:e(this,0===t?0:t)}:"has"===t?function(t){return!(b&&!l(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this})};if(r(v,!s(w)||!(b||S.forEach&&!f(function(){(new w).entries().next()}))))C=y.getConstructor(g,v,m,E),i.enable();else if(r(v,!0)){var A=new C,x=A[E](b?{}:-0,1)!==A,T=f(function(){A.has(1)}),N=d(function(t){new w(t)}),P=!b&&f(function(){for(var t=new w,e=5;e--;)t[E](e,e);return!t.has(-0)});N||((C=g(function(t,e){a(t,S);var n=h(new w,t,C);return c(e)||u(e,n[E],{that:n,AS_ENTRIES:m}),n})).prototype=S,S.constructor=C),(T||P)&&(O("delete"),O("has"),m&&O("get")),(P||x)&&O(E),b&&S.clear&&delete S.clear}return D[v]=C,t({global:!0,constructor:!0,forced:C!==w},D),p(C,v),b||y.setStrong(C,v,m),C}}function a9(){if(q7)return W7;q7=1;var t=n9(),e=a6(),n=c6(),r=Q6(),o=c5(),i=J5(),u=e([].push),a=function(e){var a=1===e,s=2===e,c=3===e,l=4===e,f=6===e,d=7===e,p=5===e||f;return function(h,v,g,y){for(var m,b,E=r(h),w=n(E),S=o(w),C=t(v,g),D=0,O=y||i,A=a?O(h,S):s||d?O(h,0):void 0;S>D;D++)if((p||D in w)&&(b=C(m=w[D],D,E),e))if(a)A[D]=b;else if(b)switch(e){case 3:return!0;case 5:return m;case 6:return D;case 2:u(A,m)}else switch(e){case 4:return!1;case 7:u(A,m)}return f?-1:c||l?l:A}};return W7={forEach:a(0),map:a(1),filter:a(2),some:a(3),every:a(4),find:a(5),findIndex:a(6),filterReject:a(7)}}J7||(J7=1,function(){if(X7)return p7;X7=1;var t,e=h7(),n=o4(),r=a6(),o=v7(),i=e9(),u=u9(),a=function(){if(Y7)return K7;Y7=1;var t=a6(),e=v7(),n=e9().getWeakData,r=i9(),o=y3(),i=l6(),u=h6(),a=o9(),s=a9(),c=t3(),l=H3(),f=l.set,d=l.getterFor,p=s.find,h=s.findIndex,v=t([].splice),g=0,y=function(t){return t.frozen||(t.frozen=new m)},m=function(){this.entries=[]},b=function(t,e){return p(t.entries,function(t){return t[0]===e})};return m.prototype={get:function(t){var e=b(this,t);if(e)return e[1]},has:function(t){return!!b(this,t)},set:function(t,e){var n=b(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=h(this.entries,function(e){return e[0]===t});return~e&&v(this.entries,e,1),!!~e}},K7={getConstructor:function(t,s,l,p){var h=t(function(t,e){r(t,v),f(t,{type:s,id:g++,frozen:null}),i(e)||a(e,t[p],{that:t,AS_ENTRIES:l})}),v=h.prototype,m=d(s),b=function(t,e,r){var i=m(t),u=n(o(e),!0);return!0===u?y(i).set(e,r):u[i.id]=r,t};return e(v,{delete:function(t){var e=m(this);if(!u(t))return!1;var r=n(t);return!0===r?y(e).delete(t):r&&c(r,e.id)&&delete r[e.id]},has:function(t){var e=m(this);if(!u(t))return!1;var r=n(t);return!0===r?y(e).has(t):r&&c(r,e.id)}}),e(v,l?{get:function(t){var e=m(this);if(u(t)){var r=n(t);if(!0===r)return y(e).get(t);if(r)return r[e.id]}},set:function(t,e){return b(this,t,e)}}:{add:function(t){return b(this,t,!0)}}),h}}}(),s=h6(),c=H3().enforce,l=h4(),f=L3(),d=Object,p=Array.isArray,h=d.isExtensible,v=d.isFrozen,g=d.isSealed,y=d.freeze,m=d.seal,b=!n.ActiveXObject&&"ActiveXObject"in n,E=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},w=u("WeakMap",E,a),S=w.prototype,C=r(S.set);if(f)if(b){t=a.getConstructor(E,"WeakMap",!0),i.enable();var D=r(S.delete),O=r(S.has),A=r(S.get);o(S,{delete:function(e){if(s(e)&&!h(e)){var n=c(this);return n.frozen||(n.frozen=new t),D(this,e)||n.frozen.delete(e)}return D(this,e)},has:function(e){if(s(e)&&!h(e)){var n=c(this);return n.frozen||(n.frozen=new t),O(this,e)||n.frozen.has(e)}return O(this,e)},get:function(e){if(s(e)&&!h(e)){var n=c(this);return n.frozen||(n.frozen=new t),O(this,e)?A(this,e):n.frozen.get(e)}return A(this,e)},set:function(e,n){if(s(e)&&!h(e)){var r=c(this);r.frozen||(r.frozen=new t),O(this,e)?C(this,e,n):r.frozen.set(e,n)}else C(this,e,n);return this}})}else e&&l(function(){var t=y([]);return C(new w,t,1),!v(t)})&&o(S,{set:function(t,e){var n;return p(t)&&(v(t)?n=y:g(t)&&(n=m)),C(this,t,e),n&&n(t),this}})}());var s9,c9,l9,f9,d9,p9={};!function(){if(d9)return p9;d9=1;var t=o4(),e=c9?s9:(c9=1,s9={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}),n=function(){if(f9)return l9;f9=1;var t=i3()("span").classList,e=t&&t.constructor&&t.constructor.prototype;return l9=e===Object.prototype?void 0:e}(),r=X8(),o=b3(),i=G8(),u=n3()("iterator"),a=r.values,s=function(t,n){if(t){if(t[u]!==a)try{o(t,u,a)}catch(e){t[u]=a}if(i(t,n,!0),e[n])for(var s in r)if(t[s]!==r[s])try{o(t,s,r[s])}catch(e){t[s]=r[s]}}};for(var c in e)s(t[c]&&t[c].prototype,c);s(n,"DOMTokenList")}();var h9=new WeakMap;function v9(t){var e,n=t.children||[],r=n.length;if(0===r)return"";for(var o=0;o<r&&!e;o+=1){var i=n[o];yp.Text.isText(i)&&(e=i)}return null==e?"":e.color||""}function g9(t,e,n){for(var r=e.type,o=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}(e,["type"]),i=void 0!==n?n:o.level||0,u=eP.findPath(t,e),a=u;;){if(0===a.length||0===u[u.length-1])return null;a=yp.Path.previous(a);var s=yp.Editor.node(t,a);if(!s)return null;var c=n8(s,1)[0],l=c.level,f=void 0===l?0:l;if(eP.getNodeType(c)!==r)return null;if(f===i)return c}}function y9(t,e,n){var r=g9(t,e,n);return!!r&&r.ordered===e.ordered}var m9,b9=[],E9={type:"list-item",elemToHtml:function(t,e){var n="",r="",o=t.ordered,i=void 0!==o&&o?"ol":"ul",u=function(t){var e=h9.get(t);if(null==e)return 0;var n=t,r=n.type,o=n.ordered,i=void 0!==o&&o,u=n.level,a=void 0===u?0:u,s=eP.findPath(e,t);if(0===s[0])return a+1;var c=yp.Path.previous(s),l=yp.Editor.node(e,c);if(!l)return 0;var f=n8(l,1)[0];if(eP.getNodeType(f)!==r)return a+1;var d=f,p=d.ordered,h=void 0!==p&&p,v=d.level,g=void 0===v?0:v;return g<a?a-g:g>a?y9(e,t)?0:1:g===a?h===i?0:1:0}(t);if(u>0)for(var a=0;a<u;a+=1)n+="<".concat(i,">"),b9.push(i);var s=function(t){var e=h9.get(t);if(null==e)return 0;var n=t,r=n.type,o=n.ordered,i=void 0!==o&&o,u=n.level,a=void 0===u?0:u,s=eP.findPath(e,t);if(s[0]===e.children.length-1)return a+1;var c=yp.Path.next(s),l=yp.Editor.node(e,c);if(!l)return 0;var f=n8(l,1)[0];if(eP.getNodeType(f)!==r)return a+1;var d=f,p=d.ordered,h=void 0!==p&&p,v=d.level,g=void 0===v?0:v;return g<a?y9(e,f)?a-g:a-g+1:g>a?0:g===a?h===i?0:1:0}(t);if(s>0)for(a=0;a<s;a+=1){var c=b9.pop();r+="</".concat(c,">")}var l=v9(t),f=l?' style="color:'.concat(l,'"'):"";return{html:"<li".concat(f,">").concat(e,"</li>"),prefix:n,suffix:r}}},w9={};!function(){if(m9)return w9;m9=1;var t=G5(),e=l5().includes,n=h4(),r=H8();t({target:"Array",proto:!0,forced:n(function(){return!Array(1).includes()})},{includes:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}}),r("includes")}();var S9,C9,D9,O9,A9,x9,T9,N9,P9,k9,I9,B9={};function F9(){if(C9)return S9;C9=1;var t=y3();return S9=function(){var e=t(this),n="";return e.hasIndices&&(n+="d"),e.global&&(n+="g"),e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.dotAll&&(n+="s"),e.unicode&&(n+="u"),e.unicodeSets&&(n+="v"),e.sticky&&(n+="y"),n}}function R9(){if(k9)return P9;k9=1;var t,e,n=y4(),r=a6(),o=a7(),i=F9(),u=function(){if(O9)return D9;O9=1;var t=h4(),e=o4().RegExp,n=t(function(){var t=e("a","y");return t.lastIndex=2,null!==t.exec("abcd")}),r=n||t(function(){return!e("a","y").sticky}),o=n||t(function(){var t=e("^r","gy");return t.lastIndex=2,null!==t.exec("str")});return D9={BROKEN_CARET:o,MISSED_STICKY:r,UNSUPPORTED_Y:n}}(),a=Z6(),s=z8(),c=H3().get,l=function(){if(x9)return A9;x9=1;var t=h4(),e=o4().RegExp;return A9=t(function(){var t=e(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})}(),f=function(){if(N9)return T9;N9=1;var t=h4(),e=o4().RegExp;return T9=t(function(){var t=e("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})}(),d=a("native-string-replace",String.prototype.replace),p=RegExp.prototype.exec,h=p,v=r("".charAt),g=r("".indexOf),y=r("".replace),m=r("".slice),b=(e=/b*/g,n(p,t=/a/,"a"),n(p,e,"a"),0!==t.lastIndex||0!==e.lastIndex),E=u.BROKEN_CARET,w=void 0!==/()??/.exec("")[1];return(b||w||E||l||f)&&(h=function(t){var e,r,u,a,l,f,S,C=this,D=c(C),O=o(t),A=D.raw;if(A)return A.lastIndex=C.lastIndex,e=n(h,A,O),C.lastIndex=A.lastIndex,e;var x=D.groups,T=E&&C.sticky,N=n(i,C),P=C.source,k=0,I=O;if(T&&(N=y(N,"y",""),-1===g(N,"g")&&(N+="g"),I=m(O,C.lastIndex),C.lastIndex>0&&(!C.multiline||C.multiline&&"\n"!==v(O,C.lastIndex-1))&&(P="(?: "+P+")",I=" "+I,k++),r=new RegExp("^(?:"+P+")",N)),w&&(r=new RegExp("^"+P+"$(?!\\s)",N)),b&&(u=C.lastIndex),a=n(p,T?r:C,I),T?a?(a.input=m(a.input,k),a[0]=m(a[0],k),a.index=C.lastIndex,C.lastIndex+=a[0].length):C.lastIndex=0:b&&a&&(C.lastIndex=C.global?a.index+a[0].length:u),w&&a&&a.length>1&&n(d,a[0],r,function(){for(l=1;l<arguments.length-2;l++)void 0===arguments[l]&&(a[l]=void 0)}),a&&x)for(a.groups=f=s(null),l=0;l<x.length;l++)f[(S=x[l])[0]]=a[S[1]];return a}),P9=h}function _9(){if(I9)return B9;I9=1;var t=G5(),e=R9();return t({target:"RegExp",proto:!0,forced:/./.exec!==e},{exec:e}),B9}_9();var j9,L9=function(){function t(){this.type="list-item",this.tag="button"}return t.prototype.getListNode=function(t){var e=this.type;return eP.getSelectedNodeByType(t,e)},t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){var e=this.getListNode(t);if(null==e)return!1;var n=e.ordered;return(void 0!==n&&n)===this.ordered},t.prototype.isDisabled=function(t){return null==t.selection||!!eP.getSelectedElems(t).some(function(e){if(yp.Editor.isVoid(t,e)&&yp.Editor.isBlock(t,e))return!0;var n=e.type;return!!["pre","code","table"].includes(n)})},t.prototype.exec=function(t,e){this.isActive(t)?yp.Transforms.setNodes(t,{type:"paragraph",ordered:void 0,level:void 0}):yp.Transforms.setNodes(t,{type:"list-item",ordered:this.ordered,indent:void 0})},t}(),M9=function(t){function e(){var e=t.apply(this,r8([],n8(arguments),!1))||this;return e.ordered=!1,e.title=dI("listModule.unOrderedList"),e.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M384 64h640v128H384V64z m0 384h640v128H384v-128z m0 384h640v128H384v-128zM0 128a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z"></path></svg>',e}return t8(e,t),e}(L9),z9=function(t){function e(){var e=t.apply(this,r8([],n8(arguments),!1))||this;return e.ordered=!0,e.title=dI("listModule.orderedList"),e.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M384 832h640v128H384z m0-384h640v128H384z m0-384h640v128H384zM192 0v256H128V64H64V0zM128 526.016v50.016h128v64H64v-146.016l128-60V384H64v-64h192v146.016zM256 704v320H64v-64h128v-64H64v-64h128v-64H64v-64z"></path></svg>',e}return t8(e,t),e}(L9),H9={key:"bulletedList",factory:function(){return new M9}},$9={key:"numberedList",factory:function(){return new z9}},U9={};!function(){if(j9)return U9;j9=1;var t=G5(),e=a9().filter;t({target:"Array",proto:!0,forced:!Z5()("filter")},{filter:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}})}();var V9,G9,W9,q9,K9={};!function(){if(W9)return K9;W9=1;var t=G5(),e=function(){if(G9)return V9;G9=1;var t=W5(),e=c5(),n=q5(),r=n9(),o=function(i,u,a,s,c,l,f,d){for(var p,h,v=c,g=0,y=!!f&&r(f,d);g<s;)g in a&&(p=y?y(a[g],g,u):a[g],l>0&&t(p)?(h=e(p),v=o(i,u,p,h,v,l-1)-1):(n(v+1),i[v]=p),v++),g++;return v};return V9=o}(),n=Q6(),r=c5(),o=a5(),i=J5();t({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,u=n(this),a=r(u),s=i(u,0);return s.length=e(s,u,u,a,0,void 0===t?1:o(t)),s}})}(),q9||(q9=1,H8()("flat"));var Y9,X9,J9,Z9,Q9,ttt,ett,ntt,rtt,ott,itt,utt,att,stt,ctt,ltt={};!function(){if(ctt)return ltt;ctt=1;var t=function(){if(X9)return Y9;X9=1;var t=g4(),e=Function.prototype,n=e.apply,r=e.call;return Y9="object"==typeof Reflect&&Reflect.apply||(t?r.bind(n):function(){return r.apply(n,arguments)}),Y9}(),e=y4(),n=a6(),r=function(){if(Z9)return J9;Z9=1,_9();var t=y4(),e=$3(),n=R9(),r=h4(),o=n3(),i=b3(),u=o("species"),a=RegExp.prototype;return J9=function(s,c,l,f){var d=o(s),p=!r(function(){var t={};return t[d]=function(){return 7},7!==""[s](t)}),h=p&&!r(function(){var t=!1,e=/a/;return"split"===s&&((e={}).constructor={},e.constructor[u]=function(){return e},e.flags="",e[d]=/./[d]),e.exec=function(){return t=!0,null},e[d](""),!t});if(!p||!h||l){var v=/./[d],g=c(d,""[s],function(e,r,o,i,u){var s=r.exec;return s===n||s===a.exec?p&&!u?{done:!0,value:t(v,r,o,i)}:{done:!0,value:t(e,o,r,i)}:{done:!1}});e(String.prototype,s,g[0]),e(a,d,g[1])}f&&i(a[d],"sham",!0)}}(),o=h4(),i=y3(),u=p6(),a=h6(),s=a5(),c=s5(),l=a7(),f=f6(),d=function(){if(ttt)return Q9;ttt=1;var t=s7().charAt;return Q9=function(e,n,r){return n+(r?t(e,n).length:1)}}(),p=C6(),h=function(){if(ntt)return ett;ntt=1;var t=a6(),e=Q6(),n=Math.floor,r=t("".charAt),o=t("".replace),i=t("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,a=/\$([$&'`]|\d{1,2})/g;return ett=function(t,s,c,l,f,d){var p=c+t.length,h=l.length,v=a;return void 0!==f&&(f=e(f),v=u),o(d,v,function(e,o){var u;switch(r(o,0)){case"$":return"$";case"&":return t;case"`":return i(s,0,c);case"'":return i(s,p);case"<":u=f[i(o,1,-1)];break;default:var a=+o;if(0===a)return e;if(a>h){var d=n(a/10);return 0===d?e:d<=h?void 0===l[d-1]?r(o,1):l[d-1]+r(o,1):e}u=l[a-1]}return void 0===u?"":u})}}(),v=function(){if(utt)return itt;utt=1;var t=y4(),e=t3(),n=g6(),r=function(){if(ott)return rtt;ott=1;var t=o4(),e=h4(),n=t.RegExp,r=!e(function(){var t=!0;try{n(".","d")}catch(e){t=!1}var e={},r="",o=t?"dgimsy":"gimsy",i=function(t,n){Object.defineProperty(e,t,{get:function(){return r+=n,!0}})},u={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in t&&(u.hasIndices="d"),u)i(a,u[a]);return Object.getOwnPropertyDescriptor(n.prototype,"flags").get.call(e)!==o||r!==o});return rtt={correct:r}}(),o=F9(),i=RegExp.prototype;return itt=r.correct?function(t){return t.flags}:function(u){return r.correct||!n(i,u)||e(u,"flags")?u.flags:t(o,u)}}(),g=function(){if(stt)return att;stt=1;var t=y4(),e=y3(),n=p6(),r=s6(),o=R9(),i=TypeError;return att=function(u,a){var s=u.exec;if(n(s)){var c=t(s,u,a);return null!==c&&e(c),c}if("RegExp"===r(u))return t(o,u,a);throw new i("RegExp#exec called on incompatible receiver")}}(),y=n3()("replace"),m=Math.max,b=Math.min,E=n([].concat),w=n([].push),S=n("".indexOf),C=n("".slice),D=function(t){return void 0===t?t:String(t)},O="$0"==="a".replace(/./,"$0"),A=!!/./[y]&&""===/./[y]("a","$0");r("replace",function(n,r,o){var O=A?"$":"$0";return[function(t,n){var o=f(this),i=a(t)?p(t,y):void 0;return i?e(i,t,o,n):e(r,l(o),t,n)},function(e,n){var a=i(this),f=l(e);if("string"==typeof n&&-1===S(n,O)&&-1===S(n,"$<")){var p=o(r,a,f,n);if(p.done)return p.value}var y=u(n);y||(n=l(n));var A,x=l(v(a)),T=-1!==S(x,"g");T&&(A=-1!==S(x,"u"),a.lastIndex=0);for(var N,P=[];null!==(N=g(a,f))&&(w(P,N),T);)""===l(N[0])&&(a.lastIndex=d(f,c(a.lastIndex),A));for(var k="",I=0,B=0;B<P.length;B++){for(var F,R=l((N=P[B])[0]),_=m(b(s(N.index),f.length),0),j=[],L=1;L<N.length;L++)w(j,D(N[L]));var M=N.groups;if(y){var z=E([R],j,_,f);void 0!==M&&w(z,M),F=l(t(n,void 0,z))}else F=h(R,f,_,j,M,n);_>=I&&(k+=C(f,I,_)+F,I=_+R.length)}return k+C(f,I)}]},!!o(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})||!O||A)}();var ftt,dtt,ptt={};function htt(t){return t.length?t[0].tagName.toLowerCase():""}function vtt(t){return yp.Editor.nodes(t,{at:t.selection||void 0,match:function(e){return 1===eP.findPath(t,e).length}})}dtt||(dtt=1,function(){if(ftt)return ptt;ftt=1;var t=G5(),e=o4();t({global:!0,forced:e.globalThis!==e},{globalThis:e})}()),rh&&(Rp.fn.append=rh),Mp&&(Rp.fn.attr=Mp),ih&&(Rp.fn.parent=ih);var gtt={renderElems:[{type:"list-item",renderElem:function(t,e,n){h9.set(t,n);var r=t,o=r.level,i=void 0===o?0:o,u=r.ordered,a=void 0!==u&&u,s={margin:"5px 0 5px ".concat(20*i,"px"),display:"flex",alignItems:"flex-start"},c="";if(a){var l=function(t,e){var n=e,r=n.type,o=n.level,i=void 0===o?0:o,u=n.ordered,a=void 0!==u&&u,s=1,c=e,l=eP.findPath(t,c);if(0===l[0])return 1;for(;l[0]>0;){var f=yp.Path.previous(l),d=yp.Editor.node(t,f);if(null==d)break;var p=d[0],h=p.level,v=void 0===h?0:h,g=p.type,y=p.ordered;if(g!==r)break;if(v<i)break;if(v===i){if(y!==a)break;s+=1}c=p,l=f}return s}(n,t);c="".concat(l,".")}else c=function(t){void 0===t&&(t=0);var e="";switch(t){case 0:e="•";break;case 1:e="◦";break;default:e="▪"}return e}(i);return dv("div",{style:s},dv("span",{contentEditable:!1,style:{marginRight:"0.5em",color:v9(t)},"data-w-e-reserve":!0},c),dv("span",{style:{flex:"1",wordBreak:"break-word"}},e))}}],editorPlugin:function(t){var e=t.deleteBackward,n=t.handleTab,r=t.normalizeNode,o=t.insertBreak,i=t;return i.insertBreak=function(){var e=n8(yp.Editor.nodes(t,{match:function(t){return eP.checkNodeType(t,"list-item")},universal:!0}),1)[0];return e?""!==e[0].children[0].text?o():void yp.Transforms.setNodes(i,{type:"paragraph",ordered:void 0,level:void 0}):o()},i.deleteBackward=function(n){var r=i.selection;if(null!=r)if(yp.Range.isExpanded(r))e(n);else{var o=eP.getSelectedNodeByType(i,"list-item");if(null!=o)if(0!==r.focus.offset)e(n);else{var u=o,a=u.level,s=void 0===a?0:a,c=u.ordered,l=void 0!==c&&c;if(s>0){var f=g9(t,o,s-1);f&&f.ordered!==l?yp.Transforms.setNodes(i,{level:s-1,ordered:!l}):yp.Transforms.setNodes(i,{level:s-1})}else yp.Transforms.setNodes(i,{type:"paragraph",ordered:void 0,level:void 0})}else e(n)}else e(n)},i.handleTab=function(){var t,e,r,o,u=i.selection;if(null!=u){if(yp.Range.isCollapsed(u)){var a=eP.getSelectedNodeByType(i,"list-item");if(null==a)return void n();if(0===u.focus.offset){var s=a.level,c=void 0===s?0:s;return void yp.Transforms.setNodes(i,{level:c+1})}}if(yp.Range.isExpanded(u)){var l=0,f=!1;try{for(var d=e8(vtt(i)),p=d.next();!p.done;p=d.next()){var h=n8(p.value,1)[0];"list-item"===eP.getNodeType(h)?l+=1:f=!0}}catch(e){t={error:e}}finally{try{p&&!p.done&&(e=d.return)&&e.call(d)}finally{if(t)throw t.error}}if(f||l<=1)return void n();try{for(var v=e8(vtt(i)),g=v.next();!g.done;g=v.next()){var y=n8(g.value,2),m=(h=y[0],y[1]),b=h.level;c=void 0===b?0:b,yp.Transforms.setNodes(i,{level:c+1},{at:m})}}catch(t){r={error:t}}finally{try{g&&!g.done&&(o=v.return)&&o.call(v)}finally{if(r)throw r.error}}}else n()}else n()},i.normalizeNode=function(t){var e=n8(t,2),n=e[0],o=e[1],u=eP.getNodeType(n);return"bulleted-list"!==u&&"numbered-list"!==u||yp.Transforms.unwrapNodes(i,{at:o}),r([n,o])},i},menus:[H9,$9],elemsToHtml:[E9],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(t,e,n){return e.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=Rp(t);0===(e=e.filter(function(t){return!!yp.Text.isText(t)||!!n.isInline(t)})).length&&(e=[{text:r.text().replace(/\s+/gm," ")}]);var o=function(t){return"ol"===htt(t.parent())}(r),i=function(t){for(var e=0,n=t.parent(),r=htt(n);"ul"===r||"ol"===r;)r=htt(n=n.parent()),e+=1;return e-1}(r);return{type:"list-item",ordered:o,level:i,children:e}}}]};lI("en",{tableModule:{modal:{border:"Border",borderWidth:"Width",bgColor:"Back color",align:"Text Align",ok:"OK"},color:{default:"Default color",clear:"Clear back color"},borderStyle:{none:"None",solid:"Solid",dotted:"Dotted",dashed:"Dashed",double:"Double",groove:"Groove",ridge:"Ridge",inset:"Inset",outset:"Outset"},deleteCol:"Delete column",deleteRow:"Delete row",deleteTable:"Delete table",widthAuto:"Width auto",insertCol:"Insert column",insertRow:"Insert row",insertTable:"Insert table",header:"Header",mergeCell:"merge cell",splitCell:"split cell",tableProperty:"Table property",cellProperty:"Cell property"}}),lI("zh-CN",{tableModule:{modal:{border:"边框",borderWidth:"宽度",bgColor:"背景色",align:"对齐方式",ok:"确定"},color:{default:"默认颜色",clear:"清除背景色"},borderStyle:{none:"无样式",solid:"实线",dotted:"点状虚线",dashed:"虚线",double:"双线",groove:"凹槽边框",ridge:"菱形边框",inset:"凹边框",outset:"凸边框"},deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头",mergeCell:"合并单元格",splitCell:"拆分单元格",tableProperty:"表格属性",cellProperty:"单元格属性"}});var ytt,mtt,btt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Ett={};function wtt(){if(mtt)return ytt;mtt=1;var t=function(t){return t&&t.Math===Math&&t};return ytt=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof btt&&btt)||t("object"==typeof ytt&&ytt)||function(){return this}()||Function("return this")()}var Stt,Ctt,Dtt,Ott,Att,xtt,Ttt,Ntt,Ptt={};function ktt(){return Ctt?Stt:(Ctt=1,Stt=function(t){try{return!!t()}catch(t){return!0}})}function Itt(){if(Ott)return Dtt;Ott=1;var t=ktt();return Dtt=!t(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function Btt(){if(xtt)return Att;xtt=1;var t=ktt();return Att=!t(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})}function Ftt(){if(Ntt)return Ttt;Ntt=1;var t=Btt(),e=Function.prototype.call;return Ttt=t?e.bind(e):function(){return e.apply(e,arguments)},Ttt}var Rtt,_tt,jtt,Ltt,Mtt,ztt,Htt,$tt,Utt,Vtt,Gtt,Wtt,qtt,Ktt,Ytt,Xtt,Jtt,Ztt,Qtt,tet,eet,net,ret,oet,iet,uet,aet,set,cet,fet,det,pet,het,vet,get,yet,met,bet,Eet,wet,Cet,Det={};function Oet(){if(Rtt)return Det;Rtt=1;var t={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,n=e&&!t.call({1:2},1);return Det.f=n?function(t){var n=e(this,t);return!!n&&n.enumerable}:t,Det}function Aet(){return jtt?_tt:(jtt=1,_tt=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}})}function xet(){if(Mtt)return Ltt;Mtt=1;var t=Btt(),e=Function.prototype,n=e.call,r=t&&e.bind.bind(n,n);return Ltt=t?r:function(t){return function(){return n.apply(t,arguments)}},Ltt}function Tet(){if(Htt)return ztt;Htt=1;var t=xet(),e=t({}.toString),n=t("".slice);return ztt=function(t){return n(e(t),8,-1)}}function Net(){if(Utt)return $tt;Utt=1;var t=xet(),e=ktt(),n=Tet(),r=Object,o=t("".split);return $tt=e(function(){return!r("z").propertyIsEnumerable(0)})?function(t){return"String"===n(t)?o(t,""):r(t)}:r}function Pet(){return Gtt?Vtt:(Gtt=1,Vtt=function(t){return null==t})}function ket(){if(qtt)return Wtt;qtt=1;var t=Pet(),e=TypeError;return Wtt=function(n){if(t(n))throw new e("Can't call method on "+n);return n}}function Iet(){if(Ytt)return Ktt;Ytt=1;var t=Net(),e=ket();return Ktt=function(n){return t(e(n))}}function Bet(){if(Jtt)return Xtt;Jtt=1;var t="object"==typeof document&&document.all;return Xtt=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(t){return"function"==typeof t}}function Fet(){if(Qtt)return Ztt;Qtt=1;var t=Bet();return Ztt=function(e){return"object"==typeof e?null!==e:t(e)}}function Ret(){if(eet)return tet;eet=1;var t=wtt(),e=Bet();return tet=function(n,r){return arguments.length<2?(o=t[n],e(o)?o:void 0):t[n]&&t[n][r];var o},tet}function _et(){if(ret)return net;ret=1;var t=xet();return net=t({}.isPrototypeOf)}function jet(){if(iet)return oet;iet=1;var t=wtt().navigator,e=t&&t.userAgent;return oet=e?String(e):""}function Let(){if(aet)return uet;aet=1;var t,e,n=wtt(),r=jet(),o=n.process,i=n.Deno,u=o&&o.versions||i&&i.version,a=u&&u.v8;return a&&(e=(t=a.split("."))[0]>0&&t[0]<4?1:+(t[0]+t[1])),!e&&r&&(!(t=r.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=r.match(/Chrome\/(\d+)/))&&(e=+t[1]),uet=e}function Met(){if(cet)return set;cet=1;var t=Let(),e=ktt(),n=wtt().String;return set=!!Object.getOwnPropertySymbols&&!e(function(){var e=Symbol("symbol detection");return!n(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&t&&t<41})}function zet(){if(det)return fet;det=1;var t=Met();return fet=t&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function Het(){if(het)return pet;het=1;var t=Ret(),e=Bet(),n=_et(),r=zet(),o=Object;return pet=r?function(t){return"symbol"==typeof t}:function(r){var i=t("Symbol");return e(i)&&n(i.prototype,o(r))}}function $et(){if(get)return vet;get=1;var t=String;return vet=function(e){try{return t(e)}catch(t){return"Object"}}}function Uet(){if(met)return yet;met=1;var t=Bet(),e=$et(),n=TypeError;return yet=function(r){if(t(r))return r;throw new n(e(r)+" is not a function")}}function Vet(){if(Eet)return bet;Eet=1;var t=Uet(),e=Pet();return bet=function(n,r){var o=n[r];return e(o)?void 0:t(o)}}var Get,Wet,qet,Ket,Yet,Xet,Jet,Zet,Qet,tnt,ent,nnt,rnt,ont,int,unt,ant,snt,cnt,lnt,fnt,dnt,pnt,hnt,vnt={exports:{}};function gnt(){return Wet?Get:(Wet=1,Get=!1)}function ynt(){if(Ket)return qet;Ket=1;var t=wtt(),e=Object.defineProperty;return qet=function(n,r){try{e(t,n,{value:r,configurable:!0,writable:!0})}catch(e){t[n]=r}return r}}function mnt(){if(Yet)return vnt.exports;Yet=1;var t=gnt(),e=wtt(),n=ynt(),r="__core-js_shared__",o=vnt.exports=e[r]||n(r,{});return(o.versions||(o.versions=[])).push({version:"3.44.0",mode:t?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.44.0/LICENSE",source:"https://github.com/zloirock/core-js"}),vnt.exports}function bnt(){if(Jet)return Xet;Jet=1;var t=mnt();return Xet=function(e,n){return t[e]||(t[e]=n||{})}}function Ent(){if(Qet)return Zet;Qet=1;var t=ket(),e=Object;return Zet=function(n){return e(t(n))}}function wnt(){if(ent)return tnt;ent=1;var t=xet(),e=Ent(),n=t({}.hasOwnProperty);return tnt=Object.hasOwn||function(t,r){return n(e(t),r)}}function Snt(){if(rnt)return nnt;rnt=1;var t=xet(),e=0,n=Math.random(),r=t(1.1.toString);return nnt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+r(++e+n,36)}}function Cnt(){if(int)return ont;int=1;var t=wtt(),e=bnt(),n=wnt(),r=Snt(),o=Met(),i=zet(),u=t.Symbol,a=e("wks"),s=i?u.for||u:u&&u.withoutSetter||r;return ont=function(t){return n(a,t)||(a[t]=o&&n(u,t)?u[t]:s("Symbol."+t)),a[t]}}function Dnt(){if(ant)return unt;ant=1;var t=Ftt(),e=Fet(),n=Het(),r=Vet(),o=function(){if(Cet)return wet;Cet=1;var t=Ftt(),e=Bet(),n=Fet(),r=TypeError;return wet=function(o,i){var u,a;if("string"===i&&e(u=o.toString)&&!n(a=t(u,o)))return a;if(e(u=o.valueOf)&&!n(a=t(u,o)))return a;if("string"!==i&&e(u=o.toString)&&!n(a=t(u,o)))return a;throw new r("Can't convert object to primitive value")},wet}(),i=Cnt(),u=TypeError,a=i("toPrimitive");return unt=function(i,s){if(!e(i)||n(i))return i;var c,l=r(i,a);if(l){if(void 0===s&&(s="default"),c=t(l,i,s),!e(c)||n(c))return c;throw new u("Can't convert object to primitive value")}return void 0===s&&(s="number"),o(i,s)}}function Ont(){if(cnt)return snt;cnt=1;var t=Dnt(),e=Het();return snt=function(n){var r=t(n,"string");return e(r)?r:r+""}}function Ant(){if(fnt)return lnt;fnt=1;var t=wtt(),e=Fet(),n=t.document,r=e(n)&&e(n.createElement);return lnt=function(t){return r?n.createElement(t):{}}}function xnt(){if(pnt)return dnt;pnt=1;var t=Itt(),e=ktt(),n=Ant();return dnt=!t&&!e(function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a})}function Tnt(){if(hnt)return Ptt;hnt=1;var t=Itt(),e=Ftt(),n=Oet(),r=Aet(),o=Iet(),i=Ont(),u=wnt(),a=xnt(),s=Object.getOwnPropertyDescriptor;return Ptt.f=t?s:function(t,c){if(t=o(t),c=i(c),a)try{return s(t,c)}catch(t){}if(u(t,c))return r(!e(n.f,t,c),t[c])},Ptt}var Nnt,Pnt,knt,Int,Bnt,Fnt,Rnt,_nt={};function jnt(){if(Pnt)return Nnt;Pnt=1;var t=Itt(),e=ktt();return Nnt=t&&e(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}function Lnt(){if(Int)return knt;Int=1;var t=Fet(),e=String,n=TypeError;return knt=function(r){if(t(r))return r;throw new n(e(r)+" is not an object")}}function Mnt(){if(Bnt)return _nt;Bnt=1;var t=Itt(),e=xnt(),n=jnt(),r=Lnt(),o=Ont(),i=TypeError,u=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s="enumerable",c="configurable",l="writable";return _nt.f=t?n?function(t,e,n){if(r(t),e=o(e),r(n),"function"==typeof t&&"prototype"===e&&"value"in n&&l in n&&!n[l]){var i=a(t,e);i&&i[l]&&(t[e]=n.value,n={configurable:c in n?n[c]:i[c],enumerable:s in n?n[s]:i[s],writable:!1})}return u(t,e,n)}:u:function(t,n,a){if(r(t),n=o(n),r(a),e)try{return u(t,n,a)}catch(t){}if("get"in a||"set"in a)throw new i("Accessors not supported");return"value"in a&&(t[n]=a.value),t},_nt}function znt(){if(Rnt)return Fnt;Rnt=1;var t=Itt(),e=Mnt(),n=Aet();return Fnt=t?function(t,r,o){return e.f(t,r,n(1,o))}:function(t,e,n){return t[e]=n,t}}var Hnt,$nt,Unt,Vnt,Gnt,Wnt,qnt,Knt,Ynt,Xnt,Jnt,Znt,Qnt,trt,ert,nrt={exports:{}};function rrt(){if($nt)return Hnt;$nt=1;var t=Itt(),e=wnt(),n=Function.prototype,r=t&&Object.getOwnPropertyDescriptor,o=e(n,"name"),i=o&&"something"===function(){}.name,u=o&&(!t||t&&r(n,"name").configurable);return Hnt={EXISTS:o,PROPER:i,CONFIGURABLE:u}}function ort(){if(Vnt)return Unt;Vnt=1;var t=xet(),e=Bet(),n=mnt(),r=t(Function.toString);return e(n.inspectSource)||(n.inspectSource=function(t){return r(t)}),Unt=n.inspectSource}function irt(){if(Wnt)return Gnt;Wnt=1;var t=wtt(),e=Bet(),n=t.WeakMap;return Gnt=e(n)&&/native code/.test(String(n))}function urt(){if(Knt)return qnt;Knt=1;var t=bnt(),e=Snt(),n=t("keys");return qnt=function(t){return n[t]||(n[t]=e(t))}}function art(){return Xnt?Ynt:(Xnt=1,Ynt={})}function srt(){if(Znt)return Jnt;Znt=1;var t,e,n,r=irt(),o=wtt(),i=Fet(),u=znt(),a=wnt(),s=mnt(),c=urt(),l=art(),f="Object already initialized",d=o.TypeError,p=o.WeakMap;if(r||s.state){var h=s.state||(s.state=new p);h.get=h.get,h.has=h.has,h.set=h.set,t=function(t,e){if(h.has(t))throw new d(f);return e.facade=t,h.set(t,e),e},e=function(t){return h.get(t)||{}},n=function(t){return h.has(t)}}else{var v=c("state");l[v]=!0,t=function(t,e){if(a(t,v))throw new d(f);return e.facade=t,u(t,v,e),e},e=function(t){return a(t,v)?t[v]:{}},n=function(t){return a(t,v)}}return Jnt={set:t,get:e,has:n,enforce:function(r){return n(r)?e(r):t(r,{})},getterFor:function(t){return function(n){var r;if(!i(n)||(r=e(n)).type!==t)throw new d("Incompatible receiver, "+t+" required");return r}}}}function crt(){if(Qnt)return nrt.exports;Qnt=1;var t=xet(),e=ktt(),n=Bet(),r=wnt(),o=Itt(),i=rrt().CONFIGURABLE,u=ort(),a=srt(),s=a.enforce,c=a.get,l=String,f=Object.defineProperty,d=t("".slice),p=t("".replace),h=t([].join),v=o&&!e(function(){return 8!==f(function(){},"length",{value:8}).length}),g=String(String).split("String"),y=nrt.exports=function(t,e,n){"Symbol("===d(l(e),0,7)&&(e="["+p(l(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!r(t,"name")||i&&t.name!==e)&&(o?f(t,"name",{value:e,configurable:!0}):t.name=e),v&&n&&r(n,"arity")&&t.length!==n.arity&&f(t,"length",{value:n.arity});try{n&&r(n,"constructor")&&n.constructor?o&&f(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var u=s(t);return r(u,"source")||(u.source=h(g,"string"==typeof e?e:"")),t};return Function.prototype.toString=y(function(){return n(this)&&c(this).source||u(this)},"toString"),nrt.exports}function lrt(){if(ert)return trt;ert=1;var t=Bet(),e=Mnt(),n=crt(),r=ynt();return trt=function(o,i,u,a){a||(a={});var s=a.enumerable,c=void 0!==a.name?a.name:i;if(t(u)&&n(u,c,a),a.global)s?o[i]=u:r(i,u);else{try{a.unsafe?o[i]&&(s=!0):delete o[i]}catch(t){}s?o[i]=u:e.f(o,i,{value:u,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return o}}var frt,drt,prt,hrt,vrt,grt,yrt,mrt,brt,Ert,wrt,Srt,Crt,Drt,Ort,Art,xrt,Trt={};function Nrt(){if(hrt)return prt;hrt=1;var t=function(){if(drt)return frt;drt=1;var t=Math.ceil,e=Math.floor;return frt=Math.trunc||function(n){var r=+n;return(r>0?e:t)(r)}}();return prt=function(e){var n=+e;return n!=n||0===n?0:t(n)}}function Prt(){if(grt)return vrt;grt=1;var t=Nrt(),e=Math.max,n=Math.min;return vrt=function(r,o){var i=t(r);return i<0?e(i+o,0):n(i,o)}}function krt(){if(mrt)return yrt;mrt=1;var t=Nrt(),e=Math.min;return yrt=function(n){var r=t(n);return r>0?e(r,9007199254740991):0}}function Irt(){if(Ert)return brt;Ert=1;var t=krt();return brt=function(e){return t(e.length)}}function Brt(){if(Srt)return wrt;Srt=1;var t=Iet(),e=Prt(),n=Irt(),r=function(r){return function(o,i,u){var a=t(o),s=n(a);if(0===s)return!r&&-1;var c,l=e(u,s);if(r&&i!=i){for(;s>l;)if((c=a[l++])!=c)return!0}else for(;s>l;l++)if((r||l in a)&&a[l]===i)return r||l||0;return!r&&-1}};return wrt={includes:r(!0),indexOf:r(!1)}}function Frt(){if(Drt)return Crt;Drt=1;var t=xet(),e=wnt(),n=Iet(),r=Brt().indexOf,o=art(),i=t([].push);return Crt=function(t,u){var a,s=n(t),c=0,l=[];for(a in s)!e(o,a)&&e(s,a)&&i(l,a);for(;u.length>c;)e(s,a=u[c++])&&(~r(l,a)||i(l,a));return l}}function Rrt(){return Art?Ort:(Art=1,Ort=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function _rt(){if(xrt)return Trt;xrt=1;var t=Frt(),e=Rrt().concat("length","prototype");return Trt.f=Object.getOwnPropertyNames||function(n){return t(n,e)},Trt}var jrt,Lrt,Mrt,zrt,Hrt,$rt,Urt,Vrt,Grt,Wrt,qrt,Krt,Yrt,Xrt,Jrt,Zrt,Qrt,tot,eot,not,rot,oot,iot,uot,aot,sot,cot,lot,fot={};function dot(){return jrt||(jrt=1,fot.f=Object.getOwnPropertySymbols),fot}function pot(){if(Hrt)return zrt;Hrt=1;var t=wnt(),e=function(){if(Mrt)return Lrt;Mrt=1;var t=Ret(),e=xet(),n=_rt(),r=dot(),o=Lnt(),i=e([].concat);return Lrt=t("Reflect","ownKeys")||function(t){var e=n.f(o(t)),u=r.f;return u?i(e,u(t)):e}}(),n=Tnt(),r=Mnt();return zrt=function(o,i,u){for(var a=e(i),s=r.f,c=n.f,l=0;l<a.length;l++){var f=a[l];t(o,f)||u&&t(u,f)||s(o,f,c(i,f))}}}function hot(){if(Urt)return $rt;Urt=1;var t=ktt(),e=Bet(),n=/#|\.prototype\./,r=function(n,r){var s=i[o(n)];return s===a||s!==u&&(e(r)?t(r):!!r)},o=r.normalize=function(t){return String(t).replace(n,".").toLowerCase()},i=r.data={},u=r.NATIVE="N",a=r.POLYFILL="P";return $rt=r}function vot(){if(Grt)return Vrt;Grt=1;var t=wtt(),e=Tnt().f,n=znt(),r=lrt(),o=ynt(),i=pot(),u=hot();return Vrt=function(a,s){var c,l,f,d,p,h=a.target,v=a.global,g=a.stat;if(c=v?t:g?t[h]||o(h,{}):t[h]&&t[h].prototype)for(l in s){if(d=s[l],f=a.dontCallGetSet?(p=e(c,l))&&p.value:c[l],!u(v?l:h+(g?".":"#")+l,a.forced)&&void 0!==f){if(typeof d==typeof f)continue;i(d,f)}(a.sham||f&&f.sham)&&n(d,"sham",!0),r(c,l,d,a)}}}function got(){if(qrt)return Wrt;qrt=1;var t=Tet();return Wrt=Array.isArray||function(e){return"Array"===t(e)}}function yot(){if(Yrt)return Krt;Yrt=1;var t=TypeError;return Krt=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}}function mot(){if(Jrt)return Xrt;Jrt=1;var t=Itt(),e=Mnt(),n=Aet();return Xrt=function(r,o,i){t?e.f(r,o,n(0,i)):r[o]=i}}function bot(){if(Qrt)return Zrt;Qrt=1;var t={};return t[Cnt()("toStringTag")]="z",Zrt="[object z]"===String(t)}function Eot(){if(eot)return tot;eot=1;var t=bot(),e=Bet(),n=Tet(),r=Cnt()("toStringTag"),o=Object,i="Arguments"===n(function(){return arguments}());return tot=t?n:function(t){var u,a,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(a=function(t,e){try{return t[e]}catch(t){}}(u=o(t),r))?a:i?n(u):"Object"===(s=n(u))&&e(u.callee)?"Arguments":s}}function wot(){if(rot)return not;rot=1;var t=xet(),e=ktt(),n=Bet(),r=Eot(),o=Ret(),i=ort(),u=function(){},a=o("Reflect","construct"),s=/^\s*(?:class|function)\b/,c=t(s.exec),l=!s.test(u),f=function(t){if(!n(t))return!1;try{return a(u,[],t),!0}catch(t){return!1}},d=function(t){if(!n(t))return!1;switch(r(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return l||!!c(s,i(t))}catch(t){return!0}};return d.sham=!0,not=!a||e(function(){var t;return f(f.call)||!f(Object)||!f(function(){t=!0})||t})?d:f}function Sot(){if(aot)return uot;aot=1;var t=function(){if(iot)return oot;iot=1;var t=got(),e=wot(),n=Fet(),r=Cnt()("species"),o=Array;return oot=function(i){var u;return t(i)&&(u=i.constructor,(e(u)&&(u===o||t(u.prototype))||n(u)&&null===(u=u[r]))&&(u=void 0)),void 0===u?o:u}}();return uot=function(e,n){return new(t(e))(0===n?0:n)}}function Cot(){if(cot)return sot;cot=1;var t=ktt(),e=Cnt(),n=Let(),r=e("species");return sot=function(e){return n>=51||!t(function(){var t=[];return(t.constructor={})[r]=function(){return{foo:1}},1!==t[e](Boolean).foo})}}!function(){if(lot)return Ett;lot=1;var t=vot(),e=ktt(),n=got(),r=Fet(),o=Ent(),i=Irt(),u=yot(),a=mot(),s=Sot(),c=Cot(),l=Cnt(),f=Let(),d=l("isConcatSpreadable"),p=f>=51||!e(function(){var t=[];return t[d]=!1,t.concat()[0]!==t}),h=function(t){if(!r(t))return!1;var e=t[d];return void 0!==e?!!e:n(t)};t({target:"Array",proto:!0,arity:1,forced:!p||!c("concat")},{concat:function(t){var e,n,r,c,l,f=o(this),d=s(f,0),p=0;for(e=-1,r=arguments.length;e<r;e++)if(h(l=-1===e?f:arguments[e]))for(c=i(l),u(p+c),n=0;n<c;n++,p++)n in l&&a(d,p,l[n]);else u(p+1),a(d,p++,l);return d.length=p,d}})}();var Dot,Oot,Aot,xot={};function Tot(){if(Oot)return Dot;Oot=1;var t=ktt();return Dot=function(e,n){var r=[][e];return!!r&&t(function(){r.call(null,n||function(){return 1},1)})}}!function(){if(Aot)return xot;Aot=1;var t=vot(),e=xet(),n=Net(),r=Iet(),o=Tot(),i=e([].join);t({target:"Array",proto:!0,forced:n!==Object||!o("join",",")},{join:function(t){return i(r(this),void 0===t?",":t)}})}();var Not,Pot,kot,Iot,Bot,Fot,Rot,_ot={};function jot(){if(Iot)return kot;Iot=1;var t=function(){if(Pot)return Not;Pot=1;var t=Tet(),e=xet();return Not=function(n){if("Function"===t(n))return e(n)}}(),e=Uet(),n=Btt(),r=t(t.bind);return kot=function(t,o){return e(t),void 0===o?t:n?r(t,o):function(){return t.apply(o,arguments)}},kot}function Lot(){if(Fot)return Bot;Fot=1;var t=jot(),e=xet(),n=Net(),r=Ent(),o=Irt(),i=Sot(),u=e([].push),a=function(e){var a=1===e,s=2===e,c=3===e,l=4===e,f=6===e,d=7===e,p=5===e||f;return function(h,v,g,y){for(var m,b,E=r(h),w=n(E),S=o(w),C=t(v,g),D=0,O=y||i,A=a?O(h,S):s||d?O(h,0):void 0;S>D;D++)if((p||D in w)&&(b=C(m=w[D],D,E),e))if(a)A[D]=b;else if(b)switch(e){case 3:return!0;case 5:return m;case 6:return D;case 2:u(A,m)}else switch(e){case 4:return!1;case 7:u(A,m)}return f?-1:c||l?l:A}};return Bot={forEach:a(0),map:a(1),filter:a(2),some:a(3),every:a(4),find:a(5),findIndex:a(6),filterReject:a(7)}}!function(){if(Rot)return _ot;Rot=1;var t=vot(),e=Lot().map;t({target:"Array",proto:!0,forced:!Cot()("map")},{map:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}})}();var Mot,zot,Hot,$ot={};!function(){if(Hot)return $ot;Hot=1;var t=bot(),e=lrt(),n=function(){if(zot)return Mot;zot=1;var t=bot(),e=Eot();return Mot=t?{}.toString:function(){return"[object "+e(this)+"]"}}();t||e(Object.prototype,"toString",n,{unsafe:!0})}();var Uot=function(t,e){return Uot=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},Uot(t,e)},Vot=function(){return Vot=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},Vot.apply(this,arguments)};function Got(t,e){var n,r,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=a(0),u.throw=a(1),u.return=a(2),"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function a(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;u&&(u=0,a[0]&&(i=0)),i;)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 i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}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,s])}}}function Wot(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 qot(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 Kot(t,e,n){if(2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError;var Yot,Xot,Jot,Zot,Qot,tit,eit,nit,rit,oit,iit='<svg viewBox="0 0 1024 1024"><path d="M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z"></path></svg>',uit={},ait={};function sit(){if(Xot)return Yot;Xot=1;var t=Frt(),e=Rrt();return Yot=Object.keys||function(n){return t(n,e)}}function cit(){if(eit)return tit;eit=1;var t,e=Lnt(),n=function(){if(Jot)return ait;Jot=1;var t=Itt(),e=jnt(),n=Mnt(),r=Lnt(),o=Iet(),i=sit();return ait.f=t&&!e?Object.defineProperties:function(t,e){r(t);for(var u,a=o(e),s=i(e),c=s.length,l=0;c>l;)n.f(t,u=s[l++],a[u]);return t},ait}(),r=Rrt(),o=art(),i=function(){if(Qot)return Zot;Qot=1;var t=Ret();return Zot=t("document","documentElement")}(),u=Ant(),a=urt(),s="prototype",c="script",l=a("IE_PROTO"),f=function(){},d=function(t){return"<"+c+">"+t+"</"+c+">"},p=function(t){t.write(d("")),t.close();var e=t.parentWindow.Object;return t=null,e},h=function(){try{t=new ActiveXObject("htmlfile")}catch(t){}var e,n,o;h="undefined"!=typeof document?document.domain&&t?p(t):(n=u("iframe"),o="java"+c+":",n.style.display="none",i.appendChild(n),n.src=String(o),(e=n.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F):p(t);for(var a=r.length;a--;)delete h[s][r[a]];return h()};return o[l]=!0,tit=Object.create||function(t,r){var o;return null!==t?(f[s]=e(t),o=new f,f[s]=null,o[l]=t):o=h(),void 0===r?o:n.f(o,r)}}function lit(){if(rit)return nit;rit=1;var t=Cnt(),e=cit(),n=Mnt().f,r=t("unscopables"),o=Array.prototype;return void 0===o[r]&&n(o,r,{configurable:!0,value:e(null)}),nit=function(t){o[r][t]=!0}}!function(){if(oit)return uit;oit=1;var t=vot(),e=Brt().includes,n=ktt(),r=lit();t({target:"Array",proto:!0,forced:n(function(){return!Array(1).includes()})},{includes:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}}),r("includes")}();var fit,dit,pit,hit,vit,git,yit,mit,bit,Eit={};function wit(){if(git)return vit;git=1;var t=Eot(),e=String;return vit=function(n){if("Symbol"===t(n))throw new TypeError("Cannot convert a Symbol value to a string");return e(n)}}!function(){if(bit)return Eit;bit=1;var t=vot(),e=xet(),n=function(){if(hit)return pit;hit=1;var t=function(){if(dit)return fit;dit=1;var t=Fet(),e=Tet(),n=Cnt()("match");return fit=function(r){var o;return t(r)&&(void 0!==(o=r[n])?!!o:"RegExp"===e(r))}}(),e=TypeError;return pit=function(n){if(t(n))throw new e("The method doesn't accept regular expressions");return n}}(),r=ket(),o=wit(),i=function(){if(mit)return yit;mit=1;var t=Cnt()("match");return yit=function(e){var n=/./;try{"/./"[e](n)}catch(r){try{return n[t]=!1,"/./"[e](n)}catch(t){}}return!1}}(),u=e("".indexOf);t({target:"String",proto:!0,forced:!i("includes")},{includes:function(t){return!!~u(o(r(this)),o(n(t)),arguments.length>1?arguments[1]:void 0)}})}();var Sit={blocks:{td:"table-cell",th:"table-cell",content:"paragraph",tr:"table-row",table:"table",tbody:"table-body"}};function Cit(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=Sit,o=e.map(function(t){var e;return null===(e=null==r?void 0:r.blocks)||void 0===e?void 0:e[t]});return function(t){return function(t){return!yp.Editor.isEditor(t)&&yp.Element.isElement(t)&&"type"in t}(t)&&o.includes(t.type)}}function Dit(t,e){for(var n=qot(e,2),r=n[0],o=n[1],i=[],u=2;u<arguments.length;u++)i[u-2]=arguments[u];var a=qot(yp.Node.common(t,r,o),2),s=a[0],c=a[1];return!!Cit.apply(void 0,Kot([t],qot(i),!1))(s,c)||!!yp.Editor.above(t,{match:Cit.apply(void 0,Kot([t],qot(i),!1)),at:c})}function Oit(t,e){var n,r;void 0===e&&(e={});var o=[];try{for(var i=Wot(function(t,e){var n,r,o,i,u,a,s,c,l,f,d,p,h,v,g,y,m,b;return void 0===e&&(e={}),Got(this,function(E){switch(E.label){case 0:if(n=qot(yp.Editor.nodes(t,{match:Cit(t,"table"),at:e.at}),1),!(r=n[0]))return[2,[]];o=qot(r,2),i=o[1],E.label=1;case 1:E.trys.push([1,6,7,8]),u=Wot(yp.Editor.nodes(t,{match:Cit(t,"table"),at:i})),a=u.next(),E.label=2;case 2:if(a.done)return[3,5];s=qot(a.value,2),c=s[1],l=[];try{for(m=void 0,f=Wot(yp.Editor.nodes(t,{match:Cit(t,"tr"),at:c})),d=f.next();!d.done;d=f.next())p=qot(d.value,2),h=p[1],l.push(Kot([],qot(yp.Editor.nodes(t,{match:Cit(t,"th","td"),at:h})),!1))}catch(t){m={error:t}}finally{try{d&&!d.done&&(b=f.return)&&b.call(f)}finally{if(m)throw m.error}}return[4,l];case 3:E.sent(),E.label=4;case 4:return a=u.next(),[3,2];case 5:return[3,8];case 6:return v=E.sent(),g={error:v},[3,8];case 7:try{a&&!a.done&&(y=u.return)&&y.call(u)}finally{if(g)throw g.error}return[7];case 8:return[2]}})}(t,{at:e.at})),u=i.next();!u.done;u=i.next()){for(var a=u.value,s=[],c=0,l=0;l<a.length;l+=1)a[l]&&(c=Math.max(c,a[l].length));for(l=0;l<a.length;l+=1)if(s[l]||(s[l]=[]),a[l])for(var f=0;f<a[l].length;f+=1)if(a[l][f]&&a[l][f][0]){for(var d=qot(a[l][f],1)[0],p=d.rowSpan,h=void 0===p?1:p,v=d.colSpan,g=void 0===v?1:v,y=f;s[l]&&s[l][y];)y+=1;for(var m=0;m<g;m+=1)for(var b=0;b<h;b+=1){var E=l+b,w=y+m;s[E]||(s[E]=[]),s[E][w]||(s[E][w]=[a[l][f],{rtl:m+1,ltr:g-m,ttb:b+1,btt:h-b}])}}o.push.apply(o,Kot([],qot(s),!1))}}catch(t){n={error:t}}finally{try{u&&!u.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return o}var Ait,xit=function(){function t(t,e){this.x=t,this.y=e}return t.valueOf=function(t,e){return new this(t,e)},t.equals=function(t,e){return t.x===e.x&&t.y===e.y},t}(),Tit={};!function(){if(Ait)return Tit;Ait=1;var t=vot(),e=Lot().find,n=lit(),r="find",o=!0;r in[]&&Array(1)[r](function(){o=!1}),t({target:"Array",proto:!0,forced:o},{find:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}}),n(r)}();var Nit,Pit,kit,Iit,Bit,Fit,Rit,_it,jit,Lit,Mit,zit,Hit,$it,Uit,Vit,Git,Wit={};function qit(){if(Pit)return Nit;Pit=1;var t=Ftt(),e=Lnt(),n=Vet();return Nit=function(r,o,i){var u,a;e(r);try{if(!(u=n(r,"return"))){if("throw"===o)throw i;return i}u=t(u,r)}catch(t){a=!0,u=t}if("throw"===o)throw i;if(a)throw u;return e(u),i}}function Kit(){return Fit?Bit:(Fit=1,Bit={})}function Yit(){if(_it)return Rit;_it=1;var t=Cnt(),e=Kit(),n=t("iterator"),r=Array.prototype;return Rit=function(t){return void 0!==t&&(e.Array===t||r[n]===t)}}function Xit(){if(Lit)return jit;Lit=1;var t=Eot(),e=Vet(),n=Pet(),r=Kit(),o=Cnt()("iterator");return jit=function(i){if(!n(i))return e(i,o)||e(i,"@@iterator")||r[t(i)]}}function Jit(){if(zit)return Mit;zit=1;var t=Ftt(),e=Uet(),n=Lnt(),r=$et(),o=Xit(),i=TypeError;return Mit=function(u,a){var s=arguments.length<2?o(u):a;if(e(s))return n(t(s,u));throw new i(r(u)+" is not iterable")},Mit}function Zit(){if(Vit)return Uit;Vit=1;var t=Cnt()("iterator"),e=!1;try{var n=0,r={next:function(){return{done:!!n++}},return:function(){e=!0}};r[t]=function(){return this},Array.from(r,function(){throw 2})}catch(t){}return Uit=function(n,r){try{if(!r&&!e)return!1}catch(t){return!1}var o=!1;try{var i={};i[t]=function(){return{next:function(){return{done:o=!0}}}},n(i)}catch(t){}return o}}!function(){if(Git)return Wit;Git=1;var t=vot(),e=function(){if($it)return Hit;$it=1;var t=jot(),e=Ftt(),n=Ent(),r=function(){if(Iit)return kit;Iit=1;var t=Lnt(),e=qit();return kit=function(n,r,o,i){try{return i?r(t(o)[0],o[1]):r(o)}catch(t){e(n,"throw",t)}}}(),o=Yit(),i=wot(),u=Irt(),a=mot(),s=Jit(),c=Xit(),l=Array;return Hit=function(f){var d=n(f),p=i(this),h=arguments.length,v=h>1?arguments[1]:void 0,g=void 0!==v;g&&(v=t(v,h>2?arguments[2]:void 0));var y,m,b,E,w,S,C=c(d),D=0;if(!C||this===l&&o(C))for(y=u(d),m=p?new this(y):l(y);y>D;D++)S=g?v(d[D],D):d[D],a(m,D,S);else for(m=p?new this:[],w=(E=s(d,C)).next;!(b=e(w,E)).done;D++)S=g?r(E,v,[b.value,D],!0):b.value,a(m,D,S);return m.length=D,m},Hit}();t({target:"Array",stat:!0,forced:!Zit()(function(t){Array.from(t)})},{from:e})}();var Qit,tut,eut,nut,rut,out,iut,uut,aut,sut,cut,lut={};function fut(){if(tut)return Qit;tut=1;var t=Lnt();return Qit=function(){var e=t(this),n="";return e.hasIndices&&(n+="d"),e.global&&(n+="g"),e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.dotAll&&(n+="s"),e.unicode&&(n+="u"),e.unicodeSets&&(n+="v"),e.sticky&&(n+="y"),n}}function dut(){if(nut)return eut;nut=1;var t=ktt(),e=wtt().RegExp,n=t(function(){var t=e("a","y");return t.lastIndex=2,null!==t.exec("abcd")}),r=n||t(function(){return!e("a","y").sticky}),o=n||t(function(){var t=e("^r","gy");return t.lastIndex=2,null!==t.exec("str")});return eut={BROKEN_CARET:o,MISSED_STICKY:r,UNSUPPORTED_Y:n}}function put(){if(sut)return aut;sut=1;var t,e,n=Ftt(),r=xet(),o=wit(),i=fut(),u=dut(),a=bnt(),s=cit(),c=srt().get,l=function(){if(out)return rut;out=1;var t=ktt(),e=wtt().RegExp;return rut=t(function(){var t=e(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})}(),f=function(){if(uut)return iut;uut=1;var t=ktt(),e=wtt().RegExp;return iut=t(function(){var t=e("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})}(),d=a("native-string-replace",String.prototype.replace),p=RegExp.prototype.exec,h=p,v=r("".charAt),g=r("".indexOf),y=r("".replace),m=r("".slice),b=(e=/b*/g,n(p,t=/a/,"a"),n(p,e,"a"),0!==t.lastIndex||0!==e.lastIndex),E=u.BROKEN_CARET,w=void 0!==/()??/.exec("")[1];return(b||w||E||l||f)&&(h=function(t){var e,r,u,a,l,f,S,C=this,D=c(C),O=o(t),A=D.raw;if(A)return A.lastIndex=C.lastIndex,e=n(h,A,O),C.lastIndex=A.lastIndex,e;var x=D.groups,T=E&&C.sticky,N=n(i,C),P=C.source,k=0,I=O;if(T&&(N=y(N,"y",""),-1===g(N,"g")&&(N+="g"),I=m(O,C.lastIndex),C.lastIndex>0&&(!C.multiline||C.multiline&&"\n"!==v(O,C.lastIndex-1))&&(P="(?: "+P+")",I=" "+I,k++),r=new RegExp("^(?:"+P+")",N)),w&&(r=new RegExp("^"+P+"$(?!\\s)",N)),b&&(u=C.lastIndex),a=n(p,T?r:C,I),T?a?(a.input=m(a.input,k),a[0]=m(a[0],k),a.index=C.lastIndex,C.lastIndex+=a[0].length):C.lastIndex=0:b&&a&&(C.lastIndex=C.global?a.index+a[0].length:u),w&&a&&a.length>1&&n(d,a[0],r,function(){for(l=1;l<arguments.length-2;l++)void 0===arguments[l]&&(a[l]=void 0)}),a&&x)for(a.groups=f=s(null),l=0;l<x.length;l++)f[(S=x[l])[0]]=a[S[1]];return a}),aut=h}function hut(){if(cut)return lut;cut=1;var t=vot(),e=put();return t({target:"RegExp",proto:!0,forced:/./.exec!==e},{exec:e}),lut}hut();var vut,gut,yut,mut,but,Eut,wut,Sut,Cut,Dut,Out,Aut,xut,Tut,Nut,Put,kut,Iut,But,Fut,Rut,_ut,jut,Lut,Mut,zut={};function Hut(){if(gut)return vut;gut=1;var t=xet(),e=Nrt(),n=wit(),r=ket(),o=t("".charAt),i=t("".charCodeAt),u=t("".slice),a=function(t){return function(a,s){var c,l,f=n(r(a)),d=e(s),p=f.length;return d<0||d>=p?t?"":void 0:(c=i(f,d))<55296||c>56319||d+1===p||(l=i(f,d+1))<56320||l>57343?t?o(f,d):c:t?u(f,d,d+2):l-56320+(c-55296<<10)+65536}};return vut={codeAt:a(!1),charAt:a(!0)}}function $ut(){if(Eut)return but;Eut=1;var t=wnt(),e=Bet(),n=Ent(),r=urt(),o=function(){if(mut)return yut;mut=1;var t=ktt();return yut=!t(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})}(),i=r("IE_PROTO"),u=Object,a=u.prototype;return but=o?u.getPrototypeOf:function(r){var o=n(r);if(t(o,i))return o[i];var s=o.constructor;return e(s)&&o instanceof s?s.prototype:o instanceof u?a:null}}function Uut(){if(Sut)return wut;Sut=1;var t,e,n,r=ktt(),o=Bet(),i=Fet(),u=cit(),a=$ut(),s=lrt(),c=Cnt(),l=gnt(),f=c("iterator"),d=!1;return[].keys&&("next"in(n=[].keys())?(e=a(a(n)))!==Object.prototype&&(t=e):d=!0),!i(t)||r(function(){var e={};return t[f].call(e)!==e})?t={}:l&&(t=u(t)),o(t[f])||s(t,f,function(){return this}),wut={IteratorPrototype:t,BUGGY_SAFARI_ITERATORS:d}}function Vut(){if(Dut)return Cut;Dut=1;var t=Mnt().f,e=wnt(),n=Cnt()("toStringTag");return Cut=function(r,o,i){r&&!i&&(r=r.prototype),r&&!e(r,n)&&t(r,n,{configurable:!0,value:o})}}function Gut(){if(Iut)return kut;Iut=1;var t=function(){if(Put)return Nut;Put=1;var t=Fet();return Nut=function(e){return t(e)||null===e}}(),e=String,n=TypeError;return kut=function(r){if(t(r))return r;throw new n("Can't set "+e(r)+" as a prototype")}}function Wut(){if(Fut)return But;Fut=1;var t=function(){if(Tut)return xut;Tut=1;var t=xet(),e=Uet();return xut=function(n,r,o){try{return t(e(Object.getOwnPropertyDescriptor(n,r)[o]))}catch(t){}}}(),e=Fet(),n=ket(),r=Gut();return But=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 n(t),r(u),e(t)?(i?o(t,u):t.__proto__=u,t):t}}():void 0)}function qut(){if(_ut)return Rut;_ut=1;var t=vot(),e=Ftt(),n=gnt(),r=rrt(),o=Bet(),i=function(){if(Aut)return Out;Aut=1;var t=Uut().IteratorPrototype,e=cit(),n=Aet(),r=Vut(),o=Kit(),i=function(){return this};return Out=function(u,a,s,c){var l=a+" Iterator";return u.prototype=e(t,{next:n(+!c,s)}),r(u,l,!1,!0),o[l]=i,u}}(),u=$ut(),a=Wut(),s=Vut(),c=znt(),l=lrt(),f=Cnt(),d=Kit(),p=Uut(),h=r.PROPER,v=r.CONFIGURABLE,g=p.IteratorPrototype,y=p.BUGGY_SAFARI_ITERATORS,m=f("iterator"),b="keys",E="values",w="entries",S=function(){return this};return Rut=function(r,f,p,C,D,O,A){i(p,f,C);var x,T,N,P=function(t){if(t===D&&R)return R;if(!y&&t&&t in B)return B[t];switch(t){case b:case E:case w:return function(){return new p(this,t)}}return function(){return new p(this)}},k=f+" Iterator",I=!1,B=r.prototype,F=B[m]||B["@@iterator"]||D&&B[D],R=!y&&F||P(D),_="Array"===f&&B.entries||F;if(_&&(x=u(_.call(new r)))!==Object.prototype&&x.next&&(n||u(x)===g||(a?a(x,g):o(x[m])||l(x,m,S)),s(x,k,!0,!0),n&&(d[k]=S)),h&&D===E&&F&&F.name!==E&&(!n&&v?c(B,"name",E):(I=!0,R=function(){return e(F,this)})),D)if(T={values:P(E),keys:O?R:P(b),entries:P(w)},A)for(N in T)(y||I||!(N in B))&&l(B,N,T[N]);else t({target:f,proto:!0,forced:y||I},T);return n&&!A||B[m]===R||l(B,m,R,{name:D}),d[f]=R,T}}function Kut(){return Lut?jut:(Lut=1,jut=function(t,e){return{value:t,done:e}})}!function(){if(Mut)return zut;Mut=1;var t=Hut().charAt,e=wit(),n=srt(),r=qut(),o=Kut(),i="String Iterator",u=n.set,a=n.getterFor(i);r(String,"String",function(t){u(this,{type:i,string:e(t),index:0})},function(){var e,n=a(this),r=n.string,i=n.index;return i>=r.length?o(void 0,!0):(e=t(r,i),n.index+=e.length,o(e,!1))})}();var Yut,Xut,Jut,Zut,Qut,tat,eat,nat={};function rat(){return Xut?Yut:(Xut=1,Yut={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 oat(){if(Zut)return Jut;Zut=1;var t=Ant()("span").classList,e=t&&t.constructor&&t.constructor.prototype;return Jut=e===Object.prototype?void 0:e}!function(){if(eat)return nat;eat=1;var t=wtt(),e=rat(),n=oat(),r=function(){if(tat)return Qut;tat=1;var t=Lot().forEach,e=Tot()("forEach");return Qut=e?[].forEach:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)},Qut}(),o=znt(),i=function(t){if(t&&t.forEach!==r)try{o(t,"forEach",r)}catch(e){t.forEach=r}};for(var u in e)e[u]&&i(t[u]&&t[u].prototype);i(n)}();var iat,uat,aat,sat,cat,lat,fat,dat={};function pat(){return uat?iat:(uat=1,iat="\t\n\v\f\r                 \u2028\u2029\ufeff")}function hat(){if(sat)return aat;sat=1;var t=xet(),e=ket(),n=wit(),r=pat(),o=t("".replace),i=RegExp("^["+r+"]+"),u=RegExp("(^|[^"+r+"])["+r+"]+$"),a=function(t){return function(r){var a=n(e(r));return 1&t&&(a=o(a,i,"")),2&t&&(a=o(a,u,"$1")),a}};return aat={start:a(1),end:a(2),trim:a(3)}}!function(){if(fat)return dat;fat=1;var t=vot(),e=hat().trim,n=function(){if(lat)return cat;lat=1;var t=rrt().PROPER,e=ktt(),n=pat();return cat=function(r){return e(function(){return!!n[r]()||"​…᠎"!=="​…᠎"[r]()||t&&n[r].name!==r})}}();t({target:"String",proto:!0,forced:n("trim")},{trim:function(){return e(this)}})}();var vat,gat,yat,mat,bat={};function Eat(t){return t.length?t[0].tagName.toLowerCase():""}function wat(t,e){for(var n="",r=(t.attr("style")||"").split(";"),o=r.length,i=0;i<o;i+=1){var u=r[i];if(u){var a=u.split(":");a[0].trim()===e&&(n=a[1].trim())}}return n}function Sat(){if(mat)return yat;mat=1;var t=Iet(),e=lit(),n=Kit(),r=srt(),o=Mnt().f,i=qut(),u=Kut(),a=gnt(),s=Itt(),c="Array Iterator",l=r.set,f=r.getterFor(c);yat=i(Array,"Array",function(e,n){l(this,{type:c,target:t(e),index:0,kind:n})},function(){var t=f(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=null,u(void 0,!0);switch(t.kind){case"keys":return u(n,!1);case"values":return u(e[n],!1)}return u([n,e[n]],!1)},"values");var d=n.Arguments=n.Array;if(e("keys"),e("values"),e("entries"),!a&&s&&"values"!==d.name)try{o(d,"name",{value:"values"})}catch(t){}return yat}gat||(gat=1,function(){if(vat)return bat;vat=1;var t=vot(),e=wtt();t({global:!0,forced:e.globalThis!==e},{globalThis:e})}()),rh&&Rp.fn&&(Rp.fn.append=rh),Vp&&Rp.fn&&(Rp.fn.on=Vp),hh&&Rp.fn&&(Rp.fn.focus=hh),Mp&&Rp.fn&&(Rp.fn.attr=Mp),Up&&Rp.fn&&(Rp.fn.val=Up),th&&Rp.fn&&(Rp.fn.html=th),$p&&Rp.fn&&(Rp.fn.dataset=$p),_p&&Rp.fn&&(Rp.fn.addClass=_p),jp&&Rp.fn&&(Rp.fn.removeClass=jp),sh&&Rp.fn&&(Rp.fn.children=sh),Zp&&Rp.fn&&(Rp.fn.each=Zp),ah&&Rp.fn&&(Rp.fn.find=ah),Hp&&Rp.fn&&(Rp.fn.data=Hp),Yp&&Rp.fn&&(Rp.fn.hide=Yp),Xp&&Rp.fn&&(Rp.fn.show=Xp),Sat();var Cat,Dat,Oat,Aat,xat={};function Tat(){if(Dat)return Cat;Dat=1;var t=ktt();return Cat=!t(function(){return Object.isExtensible(Object.preventExtensions({}))})}function Nat(){if(Aat)return Oat;Aat=1;var t=lrt();return Oat=function(e,n,r){for(var o in n)t(e,o,n[o],r);return e}}var Pat,kat,Iat,Bat,Fat,Rat,_at,jat,Lat,Mat,zat,Hat,$at,Uat,Vat,Gat,Wat,qat,Kat,Yat,Xat={exports:{}},Jat={};function Zat(){if(kat)return Pat;kat=1;var t=xet();return Pat=t([].slice)}function Qat(){if(jat)return Xat.exports;jat=1;var t=vot(),e=xet(),n=art(),r=Fet(),o=wnt(),i=Mnt().f,u=_rt(),a=function(){if(Iat)return Jat;Iat=1;var t=Tet(),e=Iet(),n=_rt().f,r=Zat(),o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];return Jat.f=function(i){return o&&"Window"===t(i)?function(t){try{return n(t)}catch(t){return r(o)}}(i):n(e(i))},Jat}(),s=function(){if(_at)return Rat;_at=1;var t=ktt(),e=Fet(),n=Tet(),r=function(){if(Fat)return Bat;Fat=1;var t=ktt();return Bat=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 Rat=i||r?function(t){return!!e(t)&&(!r||"ArrayBuffer"!==n(t))&&(!o||o(t))}:o}(),c=Snt(),l=Tat(),f=!1,d=c("meta"),p=0,h=function(t){i(t,d,{value:{objectID:"O"+p++,weakData:{}}})},v=Xat.exports={enable:function(){v.enable=function(){},f=!0;var n=u.f,r=e([].splice),o={};o[d]=1,n(o).length&&(u.f=function(t){for(var e=n(t),o=0,i=e.length;o<i;o++)if(e[o]===d){r(e,o,1);break}return e},t({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:a.f}))},fastKey:function(t,e){if(!r(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,d)){if(!s(t))return"F";if(!e)return"E";h(t)}return t[d].objectID},getWeakData:function(t,e){if(!o(t,d)){if(!s(t))return!0;if(!e)return!1;h(t)}return t[d].weakData},onFreeze:function(t){return l&&f&&s(t)&&!o(t,d)&&h(t),t}};return n[d]=!0,Xat.exports}function tst(){if(Mat)return Lat;Mat=1;var t=jot(),e=Ftt(),n=Lnt(),r=$et(),o=Yit(),i=Irt(),u=_et(),a=Jit(),s=Xit(),c=qit(),l=TypeError,f=function(t,e){this.stopped=t,this.result=e},d=f.prototype;return Lat=function(p,h,v){var g,y,m,b,E,w,S,C=v&&v.that,D=!(!v||!v.AS_ENTRIES),O=!(!v||!v.IS_RECORD),A=!(!v||!v.IS_ITERATOR),x=!(!v||!v.INTERRUPTED),T=t(h,C),N=function(t){return g&&c(g,"normal"),new f(!0,t)},P=function(t){return D?(n(t),x?T(t[0],t[1],N):T(t[0],t[1])):x?T(t,N):T(t)};if(O)g=p.iterator;else if(A)g=p;else{if(!(y=s(p)))throw new l(r(p)+" is not iterable");if(o(y)){for(m=0,b=i(p);b>m;m++)if((E=P(p[m]))&&u(d,E))return E;return new f(!1)}g=a(p,y)}for(w=O?p.next:g.next;!(S=e(w,g)).done;){try{E=P(S.value)}catch(t){c(g,"throw",t)}if("object"==typeof E&&E&&u(d,E))return E}return new f(!1)}}function est(){if(Hat)return zat;Hat=1;var t=_et(),e=TypeError;return zat=function(n,r){if(t(r,n))return n;throw new e("Incorrect invocation")}}function nst(){if(Uat)return $at;Uat=1;var t=Bet(),e=Fet(),n=Wut();return $at=function(r,o,i){var u,a;return n&&t(u=o.constructor)&&u!==i&&e(a=u.prototype)&&a!==i.prototype&&n(r,a),r}}function rst(){if(Gat)return Vat;Gat=1;var t=vot(),e=wtt(),n=xet(),r=hot(),o=lrt(),i=Qat(),u=tst(),a=est(),s=Bet(),c=Pet(),l=Fet(),f=ktt(),d=Zit(),p=Vut(),h=nst();return Vat=function(v,g,y){var m=-1!==v.indexOf("Map"),b=-1!==v.indexOf("Weak"),E=m?"set":"add",w=e[v],S=w&&w.prototype,C=w,D={},O=function(t){var e=n(S[t]);o(S,t,"add"===t?function(t){return e(this,0===t?0:t),this}:"delete"===t?function(t){return!(b&&!l(t))&&e(this,0===t?0:t)}:"get"===t?function(t){return b&&!l(t)?void 0:e(this,0===t?0:t)}:"has"===t?function(t){return!(b&&!l(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this})};if(r(v,!s(w)||!(b||S.forEach&&!f(function(){(new w).entries().next()}))))C=y.getConstructor(g,v,m,E),i.enable();else if(r(v,!0)){var A=new C,x=A[E](b?{}:-0,1)!==A,T=f(function(){A.has(1)}),N=d(function(t){new w(t)}),P=!b&&f(function(){for(var t=new w,e=5;e--;)t[E](e,e);return!t.has(-0)});N||((C=g(function(t,e){a(t,S);var n=h(new w,t,C);return c(e)||u(e,n[E],{that:n,AS_ENTRIES:m}),n})).prototype=S,S.constructor=C),(T||P)&&(O("delete"),O("has"),m&&O("get")),(P||x)&&O(E),b&&S.clear&&delete S.clear}return D[v]=C,t({global:!0,constructor:!0,forced:C!==w},D),p(C,v),b||y.setStrong(C,v,m),C}}function ost(){if(qat)return Wat;qat=1;var t=xet(),e=Nat(),n=Qat().getWeakData,r=est(),o=Lnt(),i=Pet(),u=Fet(),a=tst(),s=Lot(),c=wnt(),l=srt(),f=l.set,d=l.getterFor,p=s.find,h=s.findIndex,v=t([].splice),g=0,y=function(t){return t.frozen||(t.frozen=new m)},m=function(){this.entries=[]},b=function(t,e){return p(t.entries,function(t){return t[0]===e})};return m.prototype={get:function(t){var e=b(this,t);if(e)return e[1]},has:function(t){return!!b(this,t)},set:function(t,e){var n=b(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=h(this.entries,function(e){return e[0]===t});return~e&&v(this.entries,e,1),!!~e}},Wat={getConstructor:function(t,s,l,p){var h=t(function(t,e){r(t,v),f(t,{type:s,id:g++,frozen:null}),i(e)||a(e,t[p],{that:t,AS_ENTRIES:l})}),v=h.prototype,m=d(s),b=function(t,e,r){var i=m(t),u=n(o(e),!0);return!0===u?y(i).set(e,r):u[i.id]=r,t};return e(v,{delete:function(t){var e=m(this);if(!u(t))return!1;var r=n(t);return!0===r?y(e).delete(t):r&&c(r,e.id)&&delete r[e.id]},has:function(t){var e=m(this);if(!u(t))return!1;var r=n(t);return!0===r?y(e).has(t):r&&c(r,e.id)}}),e(v,l?{get:function(t){var e=m(this);if(u(t)){var r=n(t);if(!0===r)return y(e).get(t);if(r)return r[e.id]}},set:function(t,e){return b(this,t,e)}}:{add:function(t){return b(this,t,!0)}}),h}},Wat}Yat||(Yat=1,function(){if(Kat)return xat;Kat=1;var t,e=Tat(),n=wtt(),r=xet(),o=Nat(),i=Qat(),u=rst(),a=ost(),s=Fet(),c=srt().enforce,l=ktt(),f=irt(),d=Object,p=Array.isArray,h=d.isExtensible,v=d.isFrozen,g=d.isSealed,y=d.freeze,m=d.seal,b=!n.ActiveXObject&&"ActiveXObject"in n,E=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},w=u("WeakMap",E,a),S=w.prototype,C=r(S.set);if(f)if(b){t=a.getConstructor(E,"WeakMap",!0),i.enable();var D=r(S.delete),O=r(S.has),A=r(S.get);o(S,{delete:function(e){if(s(e)&&!h(e)){var n=c(this);return n.frozen||(n.frozen=new t),D(this,e)||n.frozen.delete(e)}return D(this,e)},has:function(e){if(s(e)&&!h(e)){var n=c(this);return n.frozen||(n.frozen=new t),O(this,e)||n.frozen.has(e)}return O(this,e)},get:function(e){if(s(e)&&!h(e)){var n=c(this);return n.frozen||(n.frozen=new t),O(this,e)?A(this,e):n.frozen.get(e)}return A(this,e)},set:function(e,n){if(s(e)&&!h(e)){var r=c(this);r.frozen||(r.frozen=new t),O(this,e)?C(this,e,n):r.frozen.set(e,n)}else C(this,e,n);return this}})}else e&&l(function(){var t=y([]);return C(new w,t,1),!v(t)})&&o(S,{set:function(t,e){var n;return p(t)&&(v(t)?n=y:g(t)&&(n=m)),C(this,t,e),n&&n(t),this}})}());var ist,ust={};!function(){if(ist)return ust;ist=1;var t=wtt(),e=rat(),n=oat(),r=Sat(),o=znt(),i=Vut(),u=Cnt()("iterator"),a=r.values,s=function(t,n){if(t){if(t[u]!==a)try{o(t,u,a)}catch(e){t[u]=a}if(i(t,n,!0),e[n])for(var s in r)if(t[s]!==r[s])try{o(t,s,r[s])}catch(e){t[s]=r[s]}}};for(var c in e)s(t[c]&&t[c].prototype,c);s(n,"DOMTokenList")}();var ast,sst,cst,lst,fst,dst,pst,hst,vst,gst,yst,mst=new WeakMap,bst=new WeakMap,Est=function(){function t(){this.title=dI("tableModule.tableProperty"),this.iconSvg='<svg viewBox="0 0 20 20"><path d="M8 2v5h4V2h1v5h5v1h-5v4h.021l-.172.351-1.916.28-.151.027c-.287.063-.54.182-.755.341L8 13v5H7v-5H2v-1h5V8H2V7h5V2h1zm4 6H8v4h4V8z" opacity=".6"/><path d="m15.5 11.5 1.323 2.68 2.957.43-2.14 2.085.505 2.946L15.5 18.25l-2.645 1.39.505-2.945-2.14-2.086 2.957-.43L15.5 11.5zM17 1a2 2 0 0 1 2 2v9.475l-.85-.124-.857-1.736a2.048 2.048 0 0 0-.292-.44L17 3H3v14h7.808l.402.392L10.935 19H3a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h14z"/></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.menu="table",this.borderStyle=[{value:"none",label:dI("tableModule.borderStyle.none")},{value:"solid",label:dI("tableModule.borderStyle.solid")},{value:"dotted",label:dI("tableModule.borderStyle.dotted")},{value:"dashed",label:dI("tableModule.borderStyle.dashed")},{value:"double",label:dI("tableModule.borderStyle.double")},{value:"groove",label:dI("tableModule.borderStyle.groove")},{value:"ridge",label:dI("tableModule.borderStyle.ridge")},{value:"inset",label:dI("tableModule.borderStyle.inset")},{value:"outset",label:dI("tableModule.borderStyle.outset")}],this.textAlignOptions=[{value:"left",label:dI("justify.left"),svg:'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>'},{value:"center",label:dI("justify.center"),svg:'<svg viewBox="0 0 1024 1024"><path d="M870.4 793.6v102.4H153.6v-102.4h716.8z m102.4-230.4v102.4H51.2v-102.4h921.6z m-102.4-230.4v102.4H153.6v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>'},{value:"right",label:dI("justify.right"),svg:'<svg viewBox="0 0 1024 1024"><path d="M972.8 793.6v102.4H256v-102.4h716.8z m0-230.4v102.4H51.2v-102.4h921.6z m0-230.4v102.4H256v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>'},{value:"justify",label:dI("justify.justify"),svg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>'}]}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){return null==eP.getSelectedNodeByType(t,"table")},t.prototype.exec=function(t,e){},t.prototype.getModalContentNode=function(t){return qot(yp.Editor.nodes(t,{match:Cit(t,"table")}),1)[0]},t.prototype.getModalPositionNode=function(t){return null},t.prototype.getModalContentElem=function(t){var e=this,n=this.getModalContentNode(t);if(!n)return null;var r=qot(n,2),o=r[0],i=r[1],u=Rp('<div>\n <label class="babel-container">\n <span>'.concat(dI("tableModule.modal.border"),'</span>\n <span class="babel-container-border">\n <select name="borderStyle">\n ').concat(this.borderStyle.map(function(t){return'<option value="'.concat(t.value,'">').concat(t.label,"</option>")}).join(""),'\n </select>\n <span class="color-group" data-mark="color">\n <span class="color-group-block"></span>\n <input name="borderColor" type="hidden">\n </span>\n <input name="borderWidth" type="number" placeholder="').concat(dI("tableModule.modal.borderWidth"),'">\n </span>\n </label>\n <div class="babel-container">\n <span>').concat(dI("tableModule.modal.bgColor"),'</span>\n <span class="babel-container-background">\n <span class="color-group" data-mark="bgColor">\n <span class="color-group-block"></span>\n <input name="backgroundColor" type="hidden">\n </span>\n </span>\n </div>\n <label class="babel-container">\n <span>').concat(dI("tableModule.modal.align"),'</span>\n <span class="babel-container-align">\n <select name="textAlign">\n ').concat(this.textAlignOptions.map(function(t){return'<option value="'.concat(t.value,'">').concat(t.label,"</option>")}).join(""),'\n </select>\n </span>\n </label>\n <div class="button-container">\n <button type="button">').concat(dI("tableModule.modal.ok"),"</button>\n </div>\n </div>"));u.find("[name]").each(function(t){Rp(t).val(o[Rp(t).attr("name")])});var a=function(t,e){e?Rp(".color-group-block",t).css("background-color",e).empty():Rp(".color-group-block",t).css("background-color","").html(iit)};return u.find(".color-group").each(function(n){var r=Rp('[type="hidden"]',n).val()||"";a(n,r);var o=Rp(n);o.on("click",function(){u.find(".color-group .w-e-drop-panel").hide();var i=o.data("panel");i?i.show():(i=e.getPanelContentElem(t,{mark:o.data("mark"),selectedColor:r,callback:function(t){Rp('[type="hidden"]',n).val(t||""),a(n,t),i.hide()}}),o.append(i),o.data("panel",i))})}),u.find("button").on("click",function(){var n=Array.from(u.find("[name]")).reduce(function(t,e){return t[Rp(e).attr("name")]=Rp(e).val(),t},{}),r=mst.get(t);"cell"===e.menu&&(null==r?void 0:r.length)?r.forEach(function(e){e.forEach(function(e){yp.Transforms.setNodes(t,n,{at:e[0][1]})})}):yp.Transforms.setNodes(t,n,{at:i}),setTimeout(function(){t.focus()})}),u[0]},t.prototype.getPanelContentElem=function(t,e){var n=e.mark,r=e.selectedColor,o=e.callback,i=Rp('<ul class="w-e-panel-content-color"></ul>');i.on("click","li",function(t){var e=t.target;if(e){t.preventDefault(),t.stopPropagation();var n=Rp(e).attr("data-value");o(n)}});var u=t.getMenuConfig(n).colors;(void 0===u?[]:u).forEach(function(t){var e=Rp('<div class="color-block" data-value="'.concat(t,'"></div>'));e.css("background-color",t);var n=Rp('<li data-value="'.concat(t,'"></li>'));r===t&&n.addClass("active"),n.append(e),i.append(n)});var a="";"color"===n&&(a=dI("tableModule.color.default")),"bgColor"===n&&(a=dI("tableModule.color.clear"));var s=Rp('\n <li data-value="" class="clear">\n '.concat(iit,"\n ").concat(a,"\n </li>\n "));i.prepend(s);var c=Rp('<div class="w-e-drop-panel"></div>');return c.append(i),c},t}(),wst=function(t){function e(){var e=t.apply(this,Kot([],qot(arguments),!1))||this;return e.title=dI("tableModule.cellProperty"),e.iconSvg='<svg viewBox="0 0 20 20"><path d="m11.105 18-.17 1H2.5A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1h15A1.5 1.5 0 0 1 19 2.5v9.975l-.85-.124-.15-.302V8h-5v4h.021l-.172.351-1.916.28-.151.027c-.287.063-.54.182-.755.341L8 13v5h3.105zM2 12h5V8H2v4zm10-4H8v4h4V8zM2 2v5h5V2H2zm0 16h5v-5H2v5zM13 7h5V2h-5v5zM8 2v5h4V2H8z" opacity=".6"/><path d="m15.5 11.5 1.323 2.68 2.957.43-2.14 2.085.505 2.946L15.5 18.25l-2.645 1.39.505-2.945-2.14-2.086 2.957-.43L15.5 11.5zM13 6a1 1 0 0 1 1 1v3.172a2.047 2.047 0 0 0-.293.443l-.858 1.736-1.916.28-.151.027A1.976 1.976 0 0 0 9.315 14H7a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h6zm-1 2H8v4h4V8z"/></svg>',e.tag="button",e.showModal=!0,e.modalWidth=300,e.menu="cell",e}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}Uot(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(e,t),e.prototype.getModalContentNode=function(t){return qot(yp.Editor.nodes(t,{match:Cit(t,"td")}),1)[0]},e}(Est),Sst={};function Cst(){if(sst)return ast;sst=1;var t=$et(),e=TypeError;return ast=function(n,r){if(!delete n[r])throw new e("Cannot delete property "+t(r)+" of "+t(n))}}!function(){if(yst)return Sst;yst=1;var t=vot(),e=xet(),n=Uet(),r=Ent(),o=Irt(),i=Cst(),u=wit(),a=ktt(),s=function(){if(lst)return cst;lst=1;var t=Zat(),e=Math.floor,n=function(r,o){var i=r.length;if(i<8)for(var u,a,s=1;s<i;){for(a=s,u=r[s];a&&o(r[a-1],u)>0;)r[a]=r[--a];a!==s++&&(r[a]=u)}else for(var c=e(i/2),l=n(t(r,0,c),o),f=n(t(r,c),o),d=l.length,p=f.length,h=0,v=0;h<d||v<p;)r[h+v]=h<d&&v<p?o(l[h],f[v])<=0?l[h++]:f[v++]:h<d?l[h++]:f[v++];return r};return cst=n}(),c=Tot(),l=function(){if(dst)return fst;dst=1;var t=jet().match(/firefox\/(\d+)/i);return fst=!!t&&+t[1]}(),f=function(){if(hst)return pst;hst=1;var t=jet();return pst=/MSIE|Trident/.test(t)}(),d=Let(),p=function(){if(gst)return vst;gst=1;var t=jet().match(/AppleWebKit\/(\d+)\./);return vst=!!t&&+t[1]}(),h=[],v=e(h.sort),g=e(h.push),y=a(function(){h.sort(void 0)}),m=a(function(){h.sort(null)}),b=c("sort"),E=!a(function(){if(d)return d<70;if(!(l&&l>3)){if(f)return!0;if(p)return p<603;var t,e,n,r,o="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)h.push({k:e+r,v:n})}for(h.sort(function(t,e){return e.v-t.v}),r=0;r<h.length;r++)e=h[r].k.charAt(0),o.charAt(o.length-1)!==e&&(o+=e);return"DGBEFHACIJK"!==o}});t({target:"Array",proto:!0,forced:y||!m||!b||!E},{sort:function(t){void 0!==t&&n(t);var e=r(this);if(E)return void 0===t?v(e):v(e,t);var a,c,l=[],f=o(e);for(c=0;c<f;c++)c in e&&g(l,e[c]);for(s(l,function(t){return function(e,n){return void 0===n?-1:void 0===e?1:void 0!==t?+t(e,n)||0:u(e)>u(n)?1:-1}}(t)),a=o(l),c=0;c<a;)e[c]=l[c++];for(;c<f;)i(e,c++);return e}})}();var Dst,Ost,Ast,xst={};!function(){if(Ast)return xst;Ast=1;var t=vot(),e=Ent(),n=Prt(),r=Nrt(),o=Irt(),i=function(){if(Ost)return Dst;Ost=1;var t=Itt(),e=got(),n=TypeError,r=Object.getOwnPropertyDescriptor,o=t&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();return Dst=o?function(t,o){if(e(t)&&!r(t,"length").writable)throw new n("Cannot set read only .length");return t.length=o}:function(t,e){return t.length=e}}(),u=yot(),a=Sot(),s=mot(),c=Cst(),l=Cot()("splice"),f=Math.max,d=Math.min;t({target:"Array",proto:!0,forced:!l},{splice:function(t,l){var p,h,v,g,y,m,b=e(this),E=o(b),w=n(t,E),S=arguments.length;for(0===S?p=h=0:1===S?(p=0,h=E-w):(p=S-2,h=d(f(r(l),0),E-w)),u(E+p-h),v=a(b,h),g=0;g<h;g++)(y=w+g)in b&&s(v,g,b[y]);if(v.length=h,p<h){for(g=w;g<E-h;g++)m=g+p,(y=g+h)in b?b[m]=b[y]:c(b,m);for(g=E;g>E-h+p;g--)c(b,g-1)}else if(p>h)for(g=E-h;g>w;g--)m=g+p-1,(y=g+h-1)in b?b[m]=b[y]:c(b,m);for(g=0;g<p;g++)b[g+w]=arguments[g+2];return i(b,E-h+p),v}})}();var Tst,Nst,Pst,kst,Ist,Bst,Fst,Rst,_st,jst,Lst,Mst,zst,Hst={};function $st(){if(Fst)return Bst;Fst=1;var t=crt(),e=Mnt();return Bst=function(n,r,o){return o.get&&t(o.get,r,{getter:!0}),o.set&&t(o.set,r,{setter:!0}),e.f(n,r,o)}}function Ust(){if(Lst)return jst;Lst=1;var t=cit(),e=$st(),n=Nat(),r=jot(),o=est(),i=Pet(),u=tst(),a=qut(),s=Kut(),c=function(){if(_st)return Rst;_st=1;var t=Ret(),e=$st(),n=Cnt(),r=Itt(),o=n("species");return Rst=function(n){var i=t(n);r&&i&&!i[o]&&e(i,o,{configurable:!0,get:function(){return this}})}}(),l=Itt(),f=Qat().fastKey,d=srt(),p=d.set,h=d.getterFor;return jst={getConstructor:function(a,s,c,d){var v=a(function(e,n){o(e,g),p(e,{type:s,index:t(null),first:null,last:null,size:0}),l||(e.size=0),i(n)||u(n,e[d],{that:e,AS_ENTRIES:c})}),g=v.prototype,y=h(s),m=function(t,e,n){var r,o,i=y(t),u=b(t,e);return u?u.value=n:(i.last=u={index:o=f(e,!0),key:e,value:n,previous:r=i.last,next:null,removed:!1},i.first||(i.first=u),r&&(r.next=u),l?i.size++:t.size++,"F"!==o&&(i.index[o]=u)),t},b=function(t,e){var n,r=y(t),o=f(e);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key===e)return n};return n(g,{clear:function(){for(var e=y(this),n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=null),n=n.next;e.first=e.last=null,e.index=t(null),l?e.size=0:this.size=0},delete:function(t){var e=this,n=y(e),r=b(e,t);if(r){var o=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),n.first===r&&(n.first=o),n.last===r&&(n.last=i),l?n.size--:e.size--}return!!r},forEach:function(t){for(var e,n=y(this),o=r(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:n.first;)for(o(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!b(this,t)}}),n(g,c?{get:function(t){var e=b(this,t);return e&&e.value},set:function(t,e){return m(this,0===t?0:t,e)}}:{add:function(t){return m(this,t=0===t?0:t,t)}}),l&&e(g,"size",{configurable:!0,get:function(){return y(this).size}}),v},setStrong:function(t,e,n){var r=e+" Iterator",o=h(e),i=h(r);a(t,e,function(t,e){p(this,{type:r,target:t,state:o(t),kind:e,last:null})},function(){for(var t=i(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?s("keys"===e?n.key:"values"===e?n.value:[n.key,n.value],!1):(t.target=null,s(void 0,!0))},n?"entries":"values",!n,!0),c(e)}},jst}!function(){if(Ist)return Hst;Ist=1;var t=vot(),e=gnt(),n=Itt(),r=wtt(),o=function(){if(Nst)return Tst;Nst=1;var t=wtt();return Tst=t}(),i=xet(),u=hot(),a=wnt(),s=nst(),c=_et(),l=Het(),f=Dnt(),d=ktt(),p=_rt().f,h=Tnt().f,v=Mnt().f,g=function(){if(kst)return Pst;kst=1;var t=xet();return Pst=t(1.1.valueOf)}(),y=hat().trim,m="Number",b=r[m],E=o[m],w=b.prototype,S=r.TypeError,C=i("".slice),D=i("".charCodeAt),O=u(m,!b(" 0o1")||!b("0b1")||b("+0x1")),A=function(t){var e,n=arguments.length<1?0:b(function(t){var e=f(t,"number");return"bigint"==typeof e?e:function(t){var e,n,r,o,i,u,a,s,c=f(t,"number");if(l(c))throw new S("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=y(c),43===(e=D(c,0))||45===e){if(88===(n=D(c,2))||120===n)return NaN}else if(48===e){switch(D(c,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+c}for(u=(i=C(c,2)).length,a=0;a<u;a++)if((s=D(i,a))<48||s>o)return NaN;return parseInt(i,r)}return+c}(e)}(t));return c(w,e=this)&&d(function(){g(e)})?s(Object(n),this,A):n};A.prototype=w,O&&!e&&(w.constructor=A),t({global:!0,constructor:!0,wrap:!0,forced:O},{Number:A});var x=function(t,e){for(var r,o=n?p(e):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),i=0;o.length>i;i++)a(e,r=o[i])&&!a(t,r)&&v(t,r,h(e,r))};e&&E&&x(o[m],E),(O||e)&&x(o[m],b)}(),zst||(zst=1,Mst||(Mst=1,rst()("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Ust())));var Vst=function(){function t(){this.title=dI("tableModule.deleteCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 510.976L393.216 445.44v-13.1072L327.68 366.7968V510.976z m327.68-78.4384l65.536-65.536V507.904L655.36 442.368v-9.8304z m393.216 484.9664V0H0v917.504h1048.576z m-65.536-131.072h-262.144v-52.4288l-13.1072 13.1072-52.4288-52.4288v91.7504H393.216v-91.7504l-52.4288 52.4288-13.1072-13.1072v52.4288H65.536V65.536H327.68v121.2416l36.0448-36.0448 29.4912 29.4912V62.2592h262.144V180.224l49.152-49.152 16.384 16.384V62.2592h262.144V786.432z m-294.912-108.1344l-160.5632-160.5632-167.1168 167.1168-78.6432-78.6432 167.1168-167.1168L288.3584 278.528l78.6432-78.6432 160.5632 160.5632 163.84-163.84 78.6432 78.6432-163.84 163.84 160.5632 160.5632-78.6432 78.6432z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){var e=t.selection;return null==e||!yp.Range.isCollapsed(e)||null==eP.getSelectedNodeByType(t,"table-cell")},t.prototype.exec=function(t,e){if(!this.isDisabled(t)){var n=qot(yp.Editor.nodes(t,{match:function(t){return eP.checkNodeType(t,"table-cell")},universal:!0}),1),r=qot(n[0],2),o=r[0],i=r[1],u=eP.getParentNode(t,o),a=(null==u?void 0:u.children.length)||0;if(!u||a<=1)yp.Transforms.removeNodes(t,{mode:"highest"});else if(null!=eP.getParentNode(t,u)){var s=Oit(t),c=0;t:for(var l=0;l<s.length;l+=1)for(var f=0;f<s[l].length;f+=1){var d=qot(s[l][f],1),p=qot(d[0],2)[1];if(yp.Path.equals(i,p)){c=f;break t}}yp.Editor.withoutNormalizing(t,function(){for(var e,n,r=new Set,o=new Set,i=0;i<s.length;i+=1)if(s[i]&&s[i][c]){var u=qot(s[i][c],2),a=qot(u[0],2)[1],l=u[1],f=l.rtl,d=l.ltr,p=l.ttb,h=l.btt,v=a.join(",");if(f>1||d>1||p>1||h>1){var g=i-(p-1),y=c-(f-1);if(g<0||g>=s.length||!s[g]||!s[g][y])continue;var m=qot(s[g][y],1),b=qot(m[0],2),E=b[0],w=b[1],S=w.join(",");if(!o.has(S)){o.add(S);var C=E.rowSpan,D=void 0===C?1:C,O=E.colSpan,A=void 0===O?1:O,x=Math.max(A-1,1);yp.Transforms.setNodes(t,{rowSpan:D,colSpan:x},{at:w})}}else r.add(v)}var T=Array.from(r);T.sort(function(t,e){var n=t.split(",").map(Number),r=e.split(",").map(Number);return n[n.length-2]!==r[r.length-2]?r[r.length-2]-n[n.length-2]:r[r.length-1]-n[n.length-1]});try{for(var N=Wot(T),P=N.next();!P.done;P=N.next()){var k=P.value.split(",").map(Number);try{yp.Editor.hasPath(t,k)&&yp.Transforms.removeNodes(t,{at:k})}catch(t){console.warn("删除单元格失败:",k,t)}}}catch(t){e={error:t}}finally{try{P&&!P.done&&(n=N.return)&&n.call(N)}finally{if(e)throw e.error}}var I=qot(yp.Editor.nodes(t,{match:function(t){return eP.checkNodeType(t,"table")},universal:!0}),1)[0];if(I){var B=qot(I,2),F=B[0],R=B[1],_=F.columnWidths,j=Kot([],qot(void 0===_?[]:_),!1);j.splice(c,1),yp.Transforms.setNodes(t,{columnWidths:j},{at:R})}})}}},t}(),Gst=function(){function t(){this.title=dI("tableModule.deleteRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M907.6736 586.5472L747.1104 425.984l163.84-163.84-78.6432-78.6432-163.84 163.84L507.904 186.7776 429.2608 262.144l163.84 163.84-167.1168 167.1168 78.6432 78.6432 167.1168-167.1168 160.5632 160.5632 75.3664-78.6432zM0 917.504V0h1048.576v917.504H0z m983.04-327.68h-22.9376l-65.536-65.536H983.04V327.68h-91.7504l65.536-65.536h26.2144V65.536H65.536v196.608h317.8496l65.536 65.536H65.536v196.608h380.1088l-65.536 65.536H65.536v196.608H983.04v-196.608z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){var e=t.selection;return null==e||!yp.Range.isCollapsed(e)||null==eP.getSelectedNodeByType(t,"table-row")},t.prototype.exec=function(t,e){if(!this.isDisabled(t)){var n=qot(yp.Editor.nodes(t,{match:function(t){return eP.checkNodeType(t,"table-row")},universal:!0}),1),r=qot(n[0],2),o=r[0],i=r[1],u=eP.getParentNode(t,o);if(((null==u?void 0:u.children.length)||0)<=1)yp.Transforms.removeNodes(t,{mode:"highest"});else{var a=qot(yp.Editor.nodes(t,{match:function(t){return eP.checkNodeType(t,"table-cell")},universal:!0}),1),s=qot(a[0],2)[1],c=Oit(t),l=0;t:for(var f=0;f<c.length;f+=1)for(var d=0;d<c[f].length;d+=1){var p=qot(c[f][d],1),h=qot(p[0],2)[1];if(yp.Path.equals(s,h)){l=f;break t}}yp.Editor.withoutNormalizing(t,function(){for(var e,n,r=[],o=0;o<c[l].length;o+=1){var u=qot(c[l][o],2),a=qot(u[0],1)[0].hidden,s=u[1],f=s.ttb,d=s.btt,p=s.rtl;if(f>1||d>1){var h=l-(f-1);if(h<0||h>=c.length||!c[h]||!c[h][o])continue;var v=qot(c[h][o],1),g=qot(v[0],2),y=g[0],m=g[1],b=y,E=b.rowSpan,w=void 0===E?1:E,S=b.colSpan,C=void 0===S?1:S;if(a)yp.Transforms.setNodes(t,{rowSpan:Math.max(w-1,1),colSpan:C},{at:m});else if(1===f&&1===p)if(l+1<c.length&&w>1){var D={type:"table-cell",rowSpan:w-1,colSpan:C,hidden:!1,children:b.children.map(function(t){return Vot({},t)})};b.isHeader&&(D.isHeader=b.isHeader),b.width&&(D.width=b.width),b.backgroundColor&&(D.backgroundColor=b.backgroundColor),b.borderWidth&&(D.borderWidth=b.borderWidth),b.borderStyle&&(D.borderStyle=b.borderStyle),b.borderColor&&(D.borderColor=b.borderColor),b.textAlign&&(D.textAlign=b.textAlign),r.push({cell:D,columnIndex:o})}else yp.Transforms.setNodes(t,{rowSpan:Math.max(w-1,1),colSpan:C},{at:m});else yp.Transforms.setNodes(t,{rowSpan:Math.max(w-1,1),colSpan:C},{at:m})}}if(yp.Transforms.removeNodes(t,{at:i}),r.length>0){var O=i;try{r.sort(function(t,e){return t.columnIndex-e.columnIndex});try{for(var A=Wot(r),x=A.next();!x.done;x=A.next()){var T=x.value,N=T.cell,P=T.columnIndex;try{var k=Kot(Kot([],qot(O),!1),[P],!1);yp.Transforms.insertNodes(t,N,{at:k})}catch(e){try{var I=qot(yp.Editor.node(t,O),1)[0].children.length,B=Kot(Kot([],qot(O),!1),[I],!1);yp.Transforms.insertNodes(t,N,{at:B})}catch(t){console.warn("插入新单元格失败:",t)}}}}catch(t){e={error:t}}finally{try{x&&!x.done&&(n=A.return)&&n.call(A)}finally{if(e)throw e.error}}}catch(t){console.warn("插入新单元格失败:",t)}}})}}},t}(),Wst=function(){function t(){this.title=dI("tableModule.deleteTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){return null==t.selection||null==eP.getSelectedNodeByType(t,"table")},t.prototype.exec=function(t,e){this.isDisabled(t)||yp.Transforms.removeNodes(t,{mode:"highest"})},t}(),qst=function(){function t(){this.title=dI("tableModule.widthAuto"),this.iconSvg='<svg viewBox="0 0 1228 1024"><path d="M862.514337 563.200461H404.581995v121.753478a13.311987 13.311987 0 0 1-6.655993 11.468789 10.23999 10.23999 0 0 1-12.083188-1.433599l-204.799795-179.199821a13.721586 13.721586 0 0 1 0-20.479979l204.799795-179.302221a10.23999 10.23999 0 0 1 12.185588-1.535998 13.209587 13.209587 0 0 1 6.553593 11.673588v115.097485h457.932342V319.693504a11.571188 11.571188 0 0 1 18.841582-10.239989l204.799795 179.19982a13.721586 13.721586 0 0 1 0 20.47998l-204.799795 179.199821a10.23999 10.23999 0 0 1-12.185588 1.535998 13.311987 13.311987 0 0 1-6.655994-11.571188V563.200461zM136.499064 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785H15.155185A15.155185 15.155185 0 0 1 0 1008.844815V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086294a15.155185 15.155185 0 0 1 15.257585 15.155185zM1228.798771 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785h-106.188693a15.155185 15.155185 0 0 1-15.155185-15.052785V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086293A15.155185 15.155185 0 0 1 1228.798771 15.053809z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(t){var e=eP.getSelectedNodeByType(t,"table");return!!e&&("100%"===e.width||"auto"===e.width)},t.prototype.isActive=function(t){return!!this.getValue(t)},t.prototype.isDisabled=function(t){var e=t.selection;return null==e||!yp.Range.isCollapsed(e)||null==eP.getSelectedNodeByType(t,"table")},t.prototype.exec=function(t,e){if(!this.isDisabled(t)){var n={width:e?"auto":"100%"};yp.Transforms.setNodes(t,n,{mode:"highest"})}},t}();function Kst(t){var e=t.children||[];return 0===e.length?[]:(e[0]||{}).children||[]}function Yst(t){return Kst(t).every(function(t){return!!t.isHeader})}var Xst,Jst,Zst,Qst=function(){function t(){this.title=dI("tableModule.insertCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 193.3312v186.7776H140.9024v91.7504H327.68v186.7776h88.4736V471.8592h190.0544V380.1088H416.1536V193.3312zM0 917.504V0h1048.576v917.504H0zM655.36 65.536H65.536v720.896H655.36V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 262.144h-262.144v196.608h262.144V327.68z m0 262.144h-262.144v196.608h262.144v-196.608z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){var e=t.selection;if(null==e)return!0;if(!yp.Range.isCollapsed(e))return!0;var n=eP.getSelectedNodeByType(t,"table");if(null==n)return!0;try{var r=qot(yp.Editor.nodes(t,{match:function(t){return eP.checkNodeType(t,"table-cell")},universal:!0}),1)[0];if(!r)return!0;for(var o=qot(r,2)[1],i=Oit(t),u=-1,a=0;a<i.length;a+=1){for(var s=0;s<i[a].length;s+=1){var c=qot(i[a][s],1),l=qot(c[0],2)[1];if(yp.Path.equals(o,l)){u=s;break}}if(-1!==u)break}if(-1===u)return!0;var f=n.columnWidths,d=(void 0===f?[]:f)[u];if(d&&d<20)return!0}catch(t){return!0}return!1},t.prototype.exec=function(t,e){if(!this.isDisabled(t)){var n=qot(yp.Editor.nodes(t,{match:function(t){return eP.checkNodeType(t,"table-cell")},universal:!0}),1),r=qot(n[0],2),o=r[0],i=r[1],u=eP.getParentNode(t,o);if(null!=u){var a=eP.getParentNode(t,u);if(null!=a){for(var s=Oit(t),c=0,l=0;l<s.length;l+=1)for(var f=0;f<s[l].length;f+=1){var d=qot(s[l][f],1),p=qot(d[0],2)[1];if(yp.Path.equals(i,p)){c=f;break}}yp.Editor.withoutNormalizing(t,function(){for(var e=new Set,n=new Set,r=0;r<s.length;r+=1)if(s[r]&&s[r][c]){var o=qot(s[r][c],2);qot(o[0],1);var i=o[1],u=i.rtl,l=i.ltr,f=i.ttb,d=i.btt;if(u>1||l>1||f>1||d>1){var p=r-(f-1),h=c-(u-1);if(p<0||p>=s.length||!s[p]||!s[p][h])continue;var v=qot(s[p][h],1),g=qot(v[0],2),y=g[0],m=g[1],b=m.join(",");if(e.has(b))n.add(r);else{e.add(b);var E=y.rowSpan,w=void 0===E?1:E,S=y.colSpan,C=(void 0===S?1:S)+1;y.hidden||yp.Transforms.setNodes(t,{colSpan:C},{at:m});for(var D=0;D<w;D+=1)n.add(p+D)}}}for(r=0;r<s.length;r+=1)if(!n.has(r)&&s[r]&&s[r][c]){var O={type:"table-cell",children:[{text:""}]};0===r&&Yst(a)&&(O.isHeader=!0);var A=qot(s[r][c],1),x=qot(A[0],2)[1];yp.Transforms.insertNodes(t,O,{at:x})}var T=qot(yp.Editor.nodes(t,{match:function(t){return eP.checkNodeType(t,"table")},universal:!0}),1)[0];if(T){var N=qot(T,2),P=N[0],k=N[1],I=P.columnWidths,B=void 0===I?[]:I,F=Kot([],qot(B),!1),R=t.getMenuConfig("insertTable").minWidth,_=void 0===R?60:R,j=B[c]||parseInt(_,10)||60,L=Math.floor(j/2),M=j-L;F.splice(c,0,L),F[c+1]=M,yp.Transforms.setNodes(t,{columnWidths:F},{at:k})}})}}}},t}(),tct=function(){function t(){this.title=dI("tableModule.insertRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M707.7888 521.0112h-147.456v-147.456H488.2432v147.456h-147.456v68.8128h147.456v147.456h72.0896v-147.456h147.456zM0 917.504V0h1048.576v917.504H0zM327.68 65.536H65.536v196.608H327.68V65.536z m327.68 0H393.216v196.608h262.144V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 258.8672H65.536v462.0288H983.04V324.4032z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){var e=t.selection;return null==e||!yp.Range.isCollapsed(e)||null==eP.getSelectedNodeByType(t,"table")},t.prototype.exec=function(t,e){var n;if(!this.isDisabled(t)){var r=qot(yp.Editor.nodes(t,{match:function(t){return eP.checkNodeType(t,"table-cell")},universal:!0}),1),o=qot(r[0],2)[1],i=Oit(t),u=0;t:for(var a=0;a<i.length;a+=1)for(var s=0;s<i[a].length;s+=1){var c=qot(i[a][s],1),l=qot(c[0],2)[1];if(yp.Path.equals(o,l)){u=a;break t}}var f=(null===(n=i[u])||void 0===n?void 0:n.length)||0;0!==f&&yp.Editor.withoutNormalizing(t,function(){for(var e=u+1,n=e>=0&&e<i.length,r=[],a=0;n&&a<i[u].length;a+=1){var s=qot(i[u][a],2)[1],c=s.ttb,l=s.btt;if(c>1||l>1){var d=u-(c-1);if(d<0||d>=i.length||!i[d]||!i[d][a])continue;var p=qot(i[d][a],1),h=qot(p[0],2),v=h[0],g=h[1],y=v.rowSpan||1;r.push(a),v.hidden||yp.Transforms.setNodes(t,{rowSpan:y+1},{at:g})}}for(var m={type:"table-row",children:[]},b=0;b<f;b+=1)r.includes(b)||m.children.push({type:"table-cell",children:[{text:""}]});var E=yp.Path.parent(o),w=yp.Path.next(E);yp.Transforms.insertNodes(t,m,{at:w})})}},t}(),ect={};!function(){if(Zst)return ect;Zst=1;var t=vot(),e=function(){if(Jst)return Xst;Jst=1;var t=Ent(),e=Prt(),n=Irt();return Xst=function(r){for(var o=t(this),i=n(o),u=arguments.length,a=e(u>1?arguments[1]:void 0,i),s=u>2?arguments[2]:void 0,c=void 0===s?i:e(s,i);c>a;)o[a++]=r;return o},Xst}(),n=lit();t({target:"Array",proto:!0},{fill:e}),n("fill")}();var nct,rct,oct,ict,uct,act={};function sct(){if(ict)return oct;ict=1;var t=Ftt(),e=wnt(),n=_et(),r=function(){if(rct)return nct;rct=1;var t=wtt(),e=ktt(),n=t.RegExp,r=!e(function(){var t=!0;try{n(".","d")}catch(e){t=!1}var e={},r="",o=t?"dgimsy":"gimsy",i=function(t,n){Object.defineProperty(e,t,{get:function(){return r+=n,!0}})},u={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in t&&(u.hasIndices="d"),u)i(a,u[a]);return Object.getOwnPropertyDescriptor(n.prototype,"flags").get.call(e)!==o||r!==o});return nct={correct:r}}(),o=fut(),i=RegExp.prototype;return oct=r.correct?function(t){return t.flags}:function(u){return r.correct||!n(i,u)||e(u,"flags")?u.flags:t(o,u)}}!function(){if(uct)return act;uct=1;var t=rrt().PROPER,e=lrt(),n=Lnt(),r=wit(),o=ktt(),i=sct(),u="toString",a=RegExp.prototype,s=a[u],c=o(function(){return"/a/b"!==s.call({source:"a",flags:"b"})}),l=t&&s.name!==u;(c||l)&&e(a,u,function(){var t=n(this);return"/"+r(t.source)+"/"+r(i(t))},{unsafe:!0})}();var cct,lct,fct=function(){function t(){this.title=dI("tableModule.insertTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64v896h1024V64H0z m384 576v-192h256v192h-256z m256 64v192h-256v-192h256z m0-512v192h-256V192h256zM320 192v192H64V192h256z m-256 256h256v192H64v-192z m640 0h256v192h-256v-192z m0-64V192h256v192h-256zM64 704h256v192H64v-192z m640 192v-192h256v192h-256z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.exec=function(t,e){},t.prototype.isDisabled=function(t){var e=t.selection;return null==e||!yp.Range.isCollapsed(e)||!!eP.getSelectedElems(t).some(function(e){var n=eP.getNodeType(e);return"pre"===n||"table"===n||"list-item"===n||!!t.isVoid(e)})},t.prototype.getPanelContentElem=function(t){var e=this;if(this.$content)return this.$content[0];for(var n=Rp('<div class="w-e-panel-content-table"></div>'),r=Rp("<span>0 &times; 0</span>"),o=Rp("<table></table>"),i=0;i<10;i+=1){for(var u=Rp("<tr></tr>"),a=0;a<10;a+=1){var s=Rp("<td></td>");s.attr("data-x",a.toString()),s.attr("data-y",i.toString()),u.append(s),s.on("mouseenter",function(t){var e=t.target;if(null!=e){var n=Rp(e).dataset(),i=n.x,u=n.y;r[0].innerHTML="".concat(i+1," &times; ").concat(u+1),o.children().each(function(t){Rp(t).children().each(function(t){var e=Rp(t),n=e.dataset(),r=n.x,o=n.y;r<=i&&o<=u?e.addClass("active"):e.removeClass("active")})})}}),s.on("click",function(n){n.preventDefault();var r=n.target;if(null!=r){var o=Rp(r).dataset(),i=o.x,u=o.y;e.insertTable(t,u+1,i+1)}})}o.append(u)}return n.append(o),n.append(r),this.$content=n,n[0]},t.prototype.insertTable=function(t,e,n){var r=parseInt(e,10),o=parseInt(n,10);if(r&&o&&!(r<=0||o<=0)){eP.isSelectedEmptyParagraph(t)&&yp.Transforms.removeNodes(t,{mode:"highest"}),0===t.children.length&&yp.Transforms.insertNodes(t,{type:"paragraph",children:[{text:""}]},{mode:"highest"});var i=function(t,e,n){for(var r,o=[],i=t.getMenuConfig("insertTable"),u=i.minWidth,a=void 0===u?60:u,s=i.tableFullWidth,c=i.tableHeader,l=Array(n).fill(parseInt(a,10)||60),f=0;f<e;f+=1){for(var d=[],p=0;p<n;p+=1){var h={type:"table-cell",children:[{text:""}]};0===f&&(h.isHeader=null===(r=null==c?void 0:c.selected)||void 0===r||r),d.push(h)}o.push({type:"table-row",children:d})}return{type:"table",width:(null==s?void 0:s.selected)?"100%":"auto",children:o,columnWidths:l}}(t,r,o);yp.Transforms.insertNodes(t,i,{mode:"highest"})}},t}();lct||(lct=1,cct||(cct=1,rst()("Map",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Ust())));var dct,pct={isInTable:function(t,e){return void 0===e&&(e={}),!!qot(yp.Editor.nodes(t,{match:Cit(t,"table"),at:e.at}),1)[0]},selection:function(t){var e,n,r,o,i,u,a,s;return Got(this,function(c){switch(c.label){case 0:e=mst.get(t),n=0,c.label=1;case 1:if(!(e&&n<e.length))return[3,4];for(r=[],o=0;o<e[n].length;o+=1)i=qot(e[n][o],2),u=i[0],a=i[1],s=a.ltr,1===a.ttb&&r.push(u),o+=s-1;return[4,r];case 2:c.sent(),c.label=3;case 3:return n+=1,[3,1];case 4:return[2]}})},unselect:function(t){bst.delete(t),mst.delete(t)},isSelected:function(t,e){var n=bst.get(t);return!!n&&n.has(e)}},hct=function(){function t(){this.title=dI("tableModule.mergeCell"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M482.2 508.4 331.3 389c-3-2.4-7.3-.2-7.3 3.6V478H184V184h204v128c0 2.2 1.8 4 4 4h60c2.2 0 4-1.8 4-4V144c0-15.5-12.5-28-28-28H144c-15.5 0-28 12.5-28 28v736c0 15.5 12.5 28 28 28h284c15.5 0 28-12.5 28-28V712c0-2.2-1.8-4-4-4h-60c-2.2 0-4 1.8-4 4v128H184V546h140v85.4c0 3.8 4.4 6 7.3 3.6l150.9-119.4c2.4-1.8 2.4-5.4 0-7.2zM880 116H596c-15.5 0-28 12.5-28 28v168c0 2.2 1.8 4 4 4h60c2.2 0 4-1.8 4-4V184h204v294H700v-85.4c0-3.8-4.3-6-7.3-3.6l-151 119.4c-2.3 1.8-2.3 5.3 0 7.1l151 119.5c2.9 2.3 7.3.2 7.3-3.6V546h140v294H636V712c0-2.2-1.8-4-4-4h-60c-2.2 0-4 1.8-4 4v168c0 15.5 12.5 28 28 28h284c15.5 0 28-12.5 28-28V144c0-15.5-12.5-28-28-28z"/></svg>',this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){return!this.canMerge(t)},t.prototype.exec=function(t,e){this.isDisabled(t)||(this.merge(t),pct.unselect(t))},t.prototype.canMerge=function(t){var e=mst.get(t);if(!e||!e.length)return!1;var n=qot(e[e.length-1][e[e.length-1].length-1],1),r=qot(n[0],2)[1],o=qot(e[0][0],1);return!!Dit(t,[qot(o[0],2)[1],r],"table")},t.prototype.merge=function(t){if(this.canMerge(t)){var e=mst.get(t);if(e&&e.length){var n=qot(e[0][0],1),r=qot(n[0],2)[1],o=qot(yp.Node.children(t,r,{reverse:!0}),1),i=qot(o[0],2)[1];yp.Editor.withoutNormalizing(t,function(){for(var n,o,u,a,s,c,l=new Map,f=[],d=1/0,p=-1/0,h=1/0,v=-1/0,g=0;g<e.length;g+=1)for(var y=0;y<e[g].length;y+=1){var m=qot(e[g][y],2),b=qot(m[0],2),E=b[0],w=b[1],S=m[1].ttb,C=w.join(",");if(1===S&&!l.has(C)){l.set(C,{path:w,x:g,y:y,element:E});var D=E.rowSpan,O=void 0===D?1:D,A=E.colSpan,x=g,T=g+O-1,N=y,P=y+(void 0===A?1:A)-1;d=Math.min(d,x),p=Math.max(p,T),h=Math.min(h,N),v=Math.max(v,P)}}var k=p-d+1,I=v-h+1;try{for(var B=Wot(l),F=B.next();!F.done;F=B.next())w=qot(F.value,2)[1].path,yp.Path.equals(r,w)||f.push(w)}catch(t){n={error:t}}finally{try{F&&!F.done&&(o=B.return)&&o.call(B)}finally{if(n)throw n.error}}f.sort(function(t,e){for(var n=0;n<Math.min(t.length,e.length);n+=1)if(t[n]!==e[n])return e[n]-t[n];return e.length-t.length});try{for(var R=Wot(f),_=R.next();!_.done;_=R.next()){w=_.value;try{if(!yp.Editor.hasPath(t,w))continue;try{for(var j=(s=void 0,Wot(yp.Node.children(t,w,{reverse:!0}))),L=j.next();!L.done;L=j.next()){var M=qot(L.value,2)[1];yp.Transforms.moveNodes(t,{to:yp.Path.next(i),at:M})}}catch(t){s={error:t}}finally{try{L&&!L.done&&(c=j.return)&&c.call(j)}finally{if(s)throw s.error}}yp.Transforms.removeNodes(t,{at:w})}catch(t){}}}catch(t){u={error:t}}finally{try{_&&!_.done&&(a=R.return)&&a.call(R)}finally{if(u)throw u.error}}yp.Transforms.setNodes(t,{rowSpan:k,colSpan:I},{at:r})})}}},t}(),vct={};!function(){if(dct)return vct;dct=1;var t=vot(),e=got(),n=wot(),r=Fet(),o=Prt(),i=Irt(),u=Iet(),a=mot(),s=Cnt(),c=Cot(),l=Zat(),f=c("slice"),d=s("species"),p=Array,h=Math.max;t({target:"Array",proto:!0,forced:!f},{slice:function(t,s){var c,f,v,g=u(this),y=i(g),m=o(t,y),b=o(void 0===s?y:s,y);if(e(g)&&(c=g.constructor,(n(c)&&(c===p||e(c.prototype))||r(c)&&null===(c=c[d]))&&(c=void 0),c===p||void 0===c))return l(g,m,b);for(f=new(void 0===c?p:c)(h(b-m,0)),v=0;m<b;m++,v++)m in g&&a(f,v,g[m]);return f.length=v,f}})}();var gct,yct,mct,bct,Ect,wct,Sct,Cct,Dct,Oct,Act,xct={};function Tct(){if(yct)return gct;yct=1,hut();var t=Ftt(),e=lrt(),n=put(),r=ktt(),o=Cnt(),i=znt(),u=o("species"),a=RegExp.prototype;return gct=function(s,c,l,f){var d=o(s),p=!r(function(){var t={};return t[d]=function(){return 7},7!==""[s](t)}),h=p&&!r(function(){var t=!1,e=/a/;return"split"===s&&((e={}).constructor={},e.constructor[u]=function(){return e},e.flags="",e[d]=/./[d]),e.exec=function(){return t=!0,null},e[d](""),!t});if(!p||!h||l){var v=/./[d],g=c(d,""[s],function(e,r,o,i,u){var s=r.exec;return s===n||s===a.exec?p&&!u?{done:!0,value:t(v,r,o,i)}:{done:!0,value:t(e,o,r,i)}:{done:!1}});e(String.prototype,s,g[0]),e(a,d,g[1])}f&&i(a[d],"sham",!0)}}function Nct(){if(wct)return Ect;wct=1;var t=Lnt(),e=function(){if(bct)return mct;bct=1;var t=wot(),e=$et(),n=TypeError;return mct=function(r){if(t(r))return r;throw new n(e(r)+" is not a constructor")}}(),n=Pet(),r=Cnt()("species");return Ect=function(o,i){var u,a=t(o).constructor;return void 0===a||n(u=t(a)[r])?i:e(u)}}function Pct(){if(Cct)return Sct;Cct=1;var t=Hut().charAt;return Sct=function(e,n,r){return n+(r?t(e,n).length:1)}}function kct(){if(Oct)return Dct;Oct=1;var t=Ftt(),e=Lnt(),n=Bet(),r=Tet(),o=put(),i=TypeError;return Dct=function(u,a){var s=u.exec;if(n(s)){var c=t(s,u,a);return null!==c&&e(c),c}if("RegExp"===r(u))return t(o,u,a);throw new i("RegExp#exec called on incompatible receiver")}}!function(){if(Act)return xct;Act=1;var t=Ftt(),e=xet(),n=Tct(),r=Lnt(),o=Fet(),i=ket(),u=Nct(),a=Pct(),s=krt(),c=wit(),l=Vet(),f=kct(),d=dut(),p=ktt(),h=d.UNSUPPORTED_Y,v=Math.min,g=e([].push),y=e("".slice),m=!p(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}),b="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;n("split",function(e,n,d){var p="0".split(void 0,0).length?function(e,r){return void 0===e&&0===r?[]:t(n,this,e,r)}:n;return[function(n,r){var u=i(this),a=o(n)?l(n,e):void 0;return a?t(a,n,u,r):t(p,c(u),n,r)},function(t,e){var o=r(this),i=c(t);if(!b){var l=d(p,o,i,e,p!==n);if(l.done)return l.value}var m=u(o,RegExp),E=o.unicode,w=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(h?"g":"y"),S=new m(h?"^(?:"+o.source+")":o,w),C=void 0===e?4294967295:e>>>0;if(0===C)return[];if(0===i.length)return null===f(S,i)?[i]:[];for(var D=0,O=0,A=[];O<i.length;){S.lastIndex=h?0:O;var x,T=f(S,h?y(i,O):i);if(null===T||(x=v(s(S.lastIndex+(h?O:0)),i.length))===D)O=a(i,O,E);else{if(g(A,y(i,D,O)),A.length===C)return A;for(var N=1;N<=T.length-1;N++)if(g(A,T[N]),A.length===C)return A;O=D=x}}return g(A,y(i,D)),A}]},b||!m,h)}();var Ict,Bct=function(){function t(){this.title=dI("tableModule.splitCell"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M362.667 494.933v53.334l25.6-25.6zm0-241.066L460.8 352V78.933H57.6v98.134h305.067zm0 535.466v57.6H57.6v98.134h403.2V691.2zM661.333 494.933v53.334l-25.6-25.6zm0-241.066L563.2 352V78.933h403.2v98.134H661.333zm0 535.466v57.6H966.4v98.134H563.2V691.2z"/><path d="M753.067 341.333 693.333 281.6 512 460.8 330.667 281.6l-59.734 59.733 181.334 181.334L270.933 704l59.734 59.733L512 582.4l181.333 181.333L753.067 704 571.733 522.667z"/></svg>',this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){var e=qot(yp.Editor.nodes(t,{match:function(t){return eP.checkNodeType(t,"table-cell")}}),1)[0];if(!e)return!0;var n=qot(e,1)[0],r=n.rowSpan,o=void 0===r?1:r,i=n.colSpan;return!(o>1||(void 0===i?1:i)>1)},t.prototype.exec=function(t,e){this.isDisabled(t)||this.split(t)},t.prototype.split=function(t,e){void 0===e&&(e={});var n=qot(yp.Editor.nodes(t,{match:Cit(t,"table","th","td"),at:e.at}),2),r=n[0],o=n[1];if(r&&o){var i=Yst(qot(r,1)[0]),u=qot(o,2),a=u[0],s=u[1],c=a.rowSpan,l=void 0===c?1:c,f=a.colSpan,d=void 0===f?1:f;1===l&&1===d||yp.Editor.withoutNormalizing(t,function(){yp.Transforms.setNodes(t,{rowSpan:1,colSpan:1},{at:s});for(var e=1;e<d;e+=1){var n={type:"table-cell",children:[{text:""}]};0===s[s.length-2]&&i&&(n.isHeader=!0);var r=s.slice(0,-1),o=s[s.length-1]+e,u=Kot(Kot([],qot(r),!1),[o],!1);try{yp.Transforms.insertNodes(t,n,{at:u})}catch(e){try{var a=qot(yp.Editor.node(t,r),1)[0].children.length,c=Kot(Kot([],qot(r),!1),[a],!1);yp.Transforms.insertNodes(t,n,{at:c})}catch(t){console.warn("插入同行单元格失败: ".concat(t instanceof Error?t.message:String(t)))}}}for(var f=1;f<l;f+=1){var p=s[s.length-2]+f,h=Kot(Kot([],qot(s.slice(0,-2)),!1),[p],!1);try{var v=qot(yp.Editor.node(t,h),1)[0];if(!v){console.warn("目标行 ".concat(p," 不存在"));continue}for(e=0;e<d;e+=1){n={type:"table-cell",children:[{text:""}]},o=s[s.length-1]+e,u=Kot(Kot([],qot(h),!1),[o],!1);try{var g=v.children.length;if(o>=g){var y=Kot(Kot([],qot(h),!1),[g],!1);yp.Transforms.insertNodes(t,n,{at:y})}else yp.Transforms.insertNodes(t,n,{at:u})}catch(e){try{var m=v.children.length;c=Kot(Kot([],qot(h),!1),[m],!1),yp.Transforms.insertNodes(t,n,{at:c})}catch(t){console.warn("插入单元格到第".concat(f,"行失败: ").concat(t instanceof Error?t.message:String(t)))}}}}catch(t){console.warn("处理第".concat(f,"行时出错: ").concat(t instanceof Error?t.message:String(t)))}}})}},t}(),Fct=function(){function t(){this.title=dI("tableModule.header"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M704 128l-64 0L384 128 320 128 0 128l0 256 0 64 0 192 0 64 0 256 320 0 64 0 256 0 64 0 320 0 0-256 0-64L1024 448 1024 384 1024 128 704 128zM640 640 384 640 384 448l256 0L640 640zM64 448l256 0 0 192L64 640 64 448zM320 896 64 896l0-192 256 0L320 896zM640 896 384 896l0-192 256 0L640 896zM960 896l-256 0 0-192 256 0L960 896zM960 640l-256 0L704 448l256 0L960 640z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(t){var e=eP.getSelectedNodeByType(t,"table");return null!=e&&Yst(e)},t.prototype.isActive=function(t){return!!this.getValue(t)},t.prototype.isDisabled=function(t){var e=t.selection;return null==e||!yp.Range.isCollapsed(e)||null==eP.getSelectedNodeByType(t,"table")},t.prototype.exec=function(t,e){if(!this.isDisabled(t)){var n=!e,r=eP.getSelectedNodeByType(t,"table");null!=r&&Kst(r).forEach(function(e){return yp.Transforms.setNodes(t,{isHeader:n},{at:eP.findPath(t,e)})})}},t}(),Rct={key:"insertTable",factory:function(){return new fct}},_ct={key:"deleteTable",factory:function(){return new Wst}},jct={key:"insertTableRow",factory:function(){return new tct}},Lct={key:"deleteTableRow",factory:function(){return new Gst}},Mct={key:"insertTableCol",factory:function(){return new Qst}},zct={key:"deleteTableCol",factory:function(){return new Vst}},Hct={key:"tableHeader",factory:function(){return new Fct}},$ct={key:"tableFullWidth",factory:function(){return new qst}},Uct={key:"mergeTableCell",factory:function(){return new hct}},Vct={key:"splitTableCell",factory:function(){return new Bct}},Gct={key:"setTableProperty",factory:function(){return new Est}},Wct={key:"setTableCellProperty",factory:function(){return new wst}},qct={};!function(){if(Ict)return qct;Ict=1;var t=vot(),e=Lot().filter;t({target:"Array",proto:!0,forced:!Cot()("filter")},{filter:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}})}();var Kct,Yct,Xct,Jct,Zct,Qct={};!function(){if(Zct)return Qct;Zct=1;var t=function(){if(Yct)return Kct;Yct=1;var t=Btt(),e=Function.prototype,n=e.apply,r=e.call;return Kct="object"==typeof Reflect&&Reflect.apply||(t?r.bind(n):function(){return r.apply(n,arguments)}),Kct}(),e=Ftt(),n=xet(),r=Tct(),o=ktt(),i=Lnt(),u=Bet(),a=Fet(),s=Nrt(),c=krt(),l=wit(),f=ket(),d=Pct(),p=Vet(),h=function(){if(Jct)return Xct;Jct=1;var t=xet(),e=Ent(),n=Math.floor,r=t("".charAt),o=t("".replace),i=t("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,a=/\$([$&'`]|\d{1,2})/g;return Xct=function(t,s,c,l,f,d){var p=c+t.length,h=l.length,v=a;return void 0!==f&&(f=e(f),v=u),o(d,v,function(e,o){var u;switch(r(o,0)){case"$":return"$";case"&":return t;case"`":return i(s,0,c);case"'":return i(s,p);case"<":u=f[i(o,1,-1)];break;default:var a=+o;if(0===a)return e;if(a>h){var d=n(a/10);return 0===d?e:d<=h?void 0===l[d-1]?r(o,1):l[d-1]+r(o,1):e}u=l[a-1]}return void 0===u?"":u})}}(),v=sct(),g=kct(),y=Cnt()("replace"),m=Math.max,b=Math.min,E=n([].concat),w=n([].push),S=n("".indexOf),C=n("".slice),D=function(t){return void 0===t?t:String(t)},O="$0"==="a".replace(/./,"$0"),A=!!/./[y]&&""===/./[y]("a","$0");r("replace",function(n,r,o){var O=A?"$":"$0";return[function(t,n){var o=f(this),i=a(t)?p(t,y):void 0;return i?e(i,t,o,n):e(r,l(o),t,n)},function(e,n){var a=i(this),f=l(e);if("string"==typeof n&&-1===S(n,O)&&-1===S(n,"$<")){var p=o(r,a,f,n);if(p.done)return p.value}var y=u(n);y||(n=l(n));var A,x=l(v(a)),T=-1!==S(x,"g");T&&(A=-1!==S(x,"u"),a.lastIndex=0);for(var N,P=[];null!==(N=g(a,f))&&(w(P,N),T);)""===l(N[0])&&(a.lastIndex=d(f,c(a.lastIndex),A));for(var k="",I=0,B=0;B<P.length;B++){for(var F,R=l((N=P[B])[0]),_=m(b(s(N.index),f.length),0),j=[],L=1;L<N.length;L++)w(j,D(N[L]));var M=N.groups;if(y){var z=E([R],j,_,f);void 0!==M&&w(z,M),F=l(t(n,void 0,z))}else F=h(R,f,_,j,M,n);_>=I&&(k+=C(f,I,_)+F,I=_+R.length)}return k+C(f,I)}]},!!o(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})||!O||A)}();var tlt,elt,nlt,rlt,olt,ilt,ult,alt,slt={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=Rp(t);0===(e=e.filter(function(t){return"paragraph"===eP.getNodeType(t)||!!yp.Text.isText(t)||!!n.isInline(t)})).length&&(e=[{text:r.text().replace(/\s+/gm," ")}]);var o=parseInt(r.attr("colSpan")||"1",10),i=parseInt(r.attr("rowSpan")||"1",10),u="none"===wat(r,"display"),a=r.attr("width")||"auto";return{type:"table-cell",isHeader:"th"===Eat(r),colSpan:o,rowSpan:i,width:a,children:e,hidden:u}}},clt={selector:"tr:not([data-w-e-type])",parseElemHtml:function(t,e,n){for(var r=[],o=0;o<e.length;o+=1){var i=e[o];if("table-cell"===eP.getNodeType(i)){var u=i;if(u.hidden)continue;r.push(u)}}return{type:"table-row",children:r}}},llt={selector:"table:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r,o,i=Rp(t),u="auto";"100%"===wat(i,"width")&&(u="100%"),"100%"===i.attr("width")&&(u="100%");var a={type:"table",width:u,height:parseInt(wat(i,"height")||"0",10),children:e.filter(function(t){return"table-row"===eP.getNodeType(t)})},s=(null===(r=i.find("tr")[0])||void 0===r?void 0:r.children)||[],c=(null===(o=i.find("colgroup")[0])||void 0===o?void 0:o.children)||null,l=e[e.length-1].children.length;if(c&&c.length===l)a.columnWidths=Array.from(c).map(function(t){return parseInt(t.getAttribute("width"),10)});else if(s.length>0){var f=[];Array.from(s).forEach(function(t){var e=parseInt(Rp(t).attr("colSpan")||"1",10),n=parseInt(wat(Rp(t),"width")||"90",10);f.push(n);for(var r=1;r<e;r+=1)f.push(90)}),a.columnWidths=f}return a}},flt=null===(tlt=null===window||void 0===window?void 0:window.getComputedStyle(document.documentElement))||void 0===tlt?void 0:tlt.getPropertyValue("--w-e-textarea-border-color"),dlt={};function plt(t){var e=t.selection;if(null==e)return!1;var n=qot(yp.Editor.nodes(t,{match:function(t){return eP.checkNodeType(t,"table-cell")}}),1)[0];if(n){var r=qot(n,2)[1],o=yp.Editor.start(t,r);if(yp.Point.equals(e.anchor,o))return!0}return!1}function hlt(t,e){var n=e.offset;if(0===n)return!1;var r=yp.Editor.node(t,e);if(!yp.Text.isText(r[0]))return!1;var o=yp.Node.string(r[0]);return!(n>=o.length)&&"\n"===o[n-1]&&"\r"===o[n]}function vlt(t,e,n){var r=t.selection;if(null==r||"line"===e)return!1;var o=qot(yp.Editor.nodes(t,{match:function(t){return eP.checkNodeType(t,"table-cell")}}),1)[0],i=r.anchor;if("backward"===n&&0===r.anchor.offset&&(i=yp.Editor.before(t,r)),"forward"===n&&yp.Editor.isEnd(t,r.anchor,r.anchor.path)&&(i=yp.Editor.after(t,r)),null==i)return!1;var u=yp.Editor.above(t,{at:i,match:function(t){return eP.checkNodeType(t,"table-cell")}});if(null==u||null==o||!yp.Path.equals(u[1],o[1]))return!1;var a=yp.Editor.node(t,i);if(!yp.Text.isText(a[0])||a[0].text.length<2)return!1;var s="backward"===n?[i.offset-2,i.offset]:[i.offset,i.offset+2],c=yp.Node.string(a[0]);return"\n\r"===c.slice.apply(c,Kot([],qot(s),!1))?(yp.Transforms.insertText(t,c.slice(0,s[0])+c.slice(s[1]),{at:{anchor:yp.Editor.start(t,i.path),focus:yp.Editor.end(t,i.path)}}),!0):!!hlt(t,i)&&(yp.Transforms.insertText(t,c.slice(0,r.anchor.offset-1)+c.slice(r.anchor.offset+1),{at:{anchor:yp.Editor.start(t,i.path),focus:yp.Editor.end(t,i.path)}}),!0)}function glt(t,e){return!!Kot([],qot(yp.Editor.nodes(t,{at:e,match:function(t){return"table"===eP.getNodeType(t)}})),!1).find(function(){return!0})}!function(){if(ilt)return dlt;ilt=1;var t=vot(),e=function(){if(nlt)return elt;nlt=1;var t=xet(),e=ket(),n=wit(),r=/"/g,o=t("".replace);return elt=function(t,i,u,a){var s=n(e(t)),c="<"+i;return""!==u&&(c+=" "+u+'="'+o(n(a),r,"&quot;")+'"'),c+">"+s+"</"+i+">"}}(),n=function(){if(olt)return rlt;olt=1;var t=ktt();return rlt=function(e){return t(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})}}();t({target:"String",proto:!0,forced:n("anchor")},{anchor:function(t){return e(this,"a","name",t)}})}(),alt||(alt=1,ult||(ult=1,rst()("WeakSet",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},ost())));var ylt={selector:"table",preParseHtml:function(t){var e=Rp(t);if("table"!==Eat(e))return t;var n=e.find("tbody");if(0===n.length)return t;var r=e.find("tr");e.append(r),n.remove();for(var o=e.find("td, th"),i=0;i<o.length;i+=1){var u=o[i],a=(c=Rp(u)).attr("style");a&&/display\s*:\s*none/i.test(a)&&c.remove()}var s=e.find("td, th");for(i=0;i<s.length;i+=1){var c,l=(c=Rp(u=s[i])).html()||"";l=(l=(l=l.replace(/<o:p[^>]*>[\s\S]*?<\/o:p>/gi,"")).replace(/<\/o:p>/gi,"")).replace(/<p[^>]*>([\s\S]*?)<\/p>/gi,function(t,e){var n=e.trim();return n&&"&nbsp;"!==n?e:""}),c.html(l)}return e[0]}};function mlt(t){var e,n,r=[],o=0;try{for(var i=Wot(t),u=i.next();!u.done;u=i.next())o+=u.value,r.push(o)}catch(t){e={error:t}}finally{try{u&&!u.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return r}function blt(t){var e,n,r=[],o=t.reduce(function(t,e){return t+e},0);try{for(var i=Wot(t),u=i.next();!u.done;u=i.next()){var a=u.value;r.push(a/o)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return r}var Elt=null,wlt=!1,Slt=!1,Clt=0,Dlt=0,Olt=null,Alt=Rp(window);function xlt(t,e,n){var r=t.reduce(function(t,e){return t+e},0),o=t[e],i=Math.max(10,n),u=r-o+i;if(u<10*t.length)return t.map(function(){return 10});var a=r-o,s=u-i;if(s<=0){var c=t.map(function(){return 10});return c[e]=Math.max(10,u-10*(t.length-1)),c}var l=a>0?s/a:1,f=t.map(function(t,n){if(n===e)return Math.floor(100*i)/100;var r=t*l;return Math.max(10,Math.floor(100*r)/100)}),d=u-f.reduce(function(t,e){return t+e},0);return Math.abs(d)>.01&&(f[e]=Math.max(10,f[e]+d)),f}Alt.on("mousedown",function(t){var e=t.target;if(e.closest('[data-block-type="table-cell"]'))wlt=!0;else if("DIV"===e.tagName&&e.closest(".column-resizer-item")){if(null===Olt)return;var n=qot(yp.Editor.nodes(Olt,{match:Cit(Olt,"table")}),1),r=qot(n[0],1)[0],o=r.columnWidths,i=void 0===o?[]:o,u=r.resizingIndex,a=void 0===u?-1:u;Slt=!0;var s=t.clientX;Clt=s,Dlt=i[a],document.body.style.cursor="col-resize",t.preventDefault()}Alt.on("mousemove",Tlt),Alt.on("mouseup",Nlt)});var Tlt=Th(function(t){if(Slt&&null!==Olt){t.preventDefault();var e,n=t.clientX,r=n-Clt,o=qot(yp.Editor.nodes(Olt,{match:Cit(Olt,"table")}),1),i=qot(o[0],1)[0],u=i.columnWidths,a=void 0===u?[]:u,s=i.resizingIndex,c=void 0===s?-1:s,l=c===a.length-1;if(l)e=xlt(a,c,Dlt+r);else{var f=document.querySelector(".table");e=f?function(t,e,n,r){var o=Kot([],qot(t),!1);if(e<0||e>=t.length)return o;var i=0===e?0:r[e-1],u=i+10,a=(e+1<t.length?r[e+1]:r[e])-10,s=Math.max(u,Math.min(a,n))-i,c=e+1;if(c<t.length){var l=t[e]+t[c]-s;o[e]=Math.floor(100*s)/100,o[c]=Math.floor(100*l)/100}return o}(a,c,n-f.getBoundingClientRect().left,mlt(a)):function(t,e,n){var r=Kot([],qot(t),!1),o=e+1;if(o>=r.length)return r;var i=r[e],u=r[o],a=i+u-10,s=i+n,c=i+u-(s=Math.max(10,Math.min(a,s)));return r[e]=Math.floor(100*s)/100,r[o]=Math.floor(100*c)/100,r}(a,c,r)}if(l){var d=document.querySelector(".table-container");if(d){var p=e.reduce(function(t,e){return t+e},0),h=10*a.length,v=d.clientWidth-1;if(p<h)e=a.map(function(){return 10});else if(p>v){var g=e.slice(0,-1).reduce(function(t,e){return t+e},0),y=(e=xlt(a,c,Math.max(10,v-g))).reduce(function(t,e){return t+e},0);if(y>v){var m=v/y;e=e.map(function(t){return Math.max(10,Math.floor(t*m*100)/100)})}}}}yp.Transforms.setNodes(Olt,{columnWidths:e},{mode:"highest"})}},100);function Nlt(t){wlt=!1,Slt=!1,Olt=null,document.body.style.cursor="",Alt.off("mousemove",Tlt),Alt.off("mouseup",Nlt)}function Plt(t,e){"mouseenter"===e.type?yp.Transforms.setNodes(t,{isResizing:!0},{mode:"highest"}):yp.Transforms.setNodes(t,{isResizing:!1},{mode:"highest"})}var klt,Ilt,Blt,Flt={type:"table",renderElem:function(t,e,n){var r=function(t,e){if(t.isDisabled())return!1;var n=t.selection;if(null==n)return!0;if(yp.Range.isCollapsed(n))return!0;var r=n.anchor,o=n.focus,i=eP.findPath(t,e),u=yp.Editor.start(t,i),a=yp.Editor.end(t,i),s=yp.Point.compare(r,a)<=0&&yp.Point.compare(r,u)>=0,c=yp.Point.compare(o,a)<=0&&yp.Point.compare(o,u)>=0;return!!(s&&c&&yp.Path.equals(r.path.slice(0,3),o.path.slice(0,3)))}(n,t),o=t,i=o.width,u=void 0===i?"auto":i,a=o.height,s=o.columnWidths,c=void 0===s?[]:s,l=o.scrollWidth,f=void 0===l?0:l,d=o.isHoverCellBorder,p=o.resizingIndex,h=o.isResizing,v=eP.isNodeSelected(n,t),g=qot(pct.selection(n),1)[0],y=blt(c),m=dv("div",{className:"table-container","data-selected":v,on:{mousedown:function(e){if("DIV"===e.target.tagName&&e.preventDefault(),!n.isDisabled()){e.target.closest('[data-block-type="table-cell"]')&&pct.unselect(n);var r=eP.findPath(n,t),o=yp.Editor.start(n,r),i=n.selection;null!=i?i.anchor.path[0]!==r[0]&&"DIV"===e.target.tagName&&n.select(o):n.select(o)}}}},dv("table",{width:u,contentEditable:r,className:"table ".concat(g?"table-selection-none":""),style:{width:"100%"===u?u:"".concat(c.reduce(function(t,e){return t+e},0),"px")},on:{mousemove:Oh(function(e){return function(t,e,n,r){if(!t.isDisabled()&&!wlt&&!Slt){var o=e,i=o.width,u=void 0===i?"auto":i,a=o.columnWidths,s=void 0===a?[]:a,c=o.isHoverCellBorder,l=o.resizingIndex,f=n.clientX,d=n.target;if(aN(d)&&f>(v=d.getBoundingClientRect()).x+5&&f<v.x+v.width-5)return void(c&&yp.Transforms.setNodes(t,{isHoverCellBorder:!1,resizingIndex:-1},{mode:"highest"}));if(aN(d)){var p=d.closest(".table");if(p)for(var h=n.clientX,v=p.getBoundingClientRect(),g=mlt("100%"===u?blt(s).map(function(t){return t*r}):s),y=0;y<g.length;y+=1)if(h-v.x>=g[y]-5&&h-v.x<g[y]+5){if(l===y)return;return void yp.Transforms.setNodes(t,{isHoverCellBorder:!0,resizingIndex:y},{mode:"highest"})}}!0===c&&yp.Transforms.setNodes(t,{isHoverCellBorder:!1,resizingIndex:-1},{mode:"highest"})}}(n,t,e,f)},25)}},dv("colgroup",{contentEditable:!1},c.map(function(t){return dv("col",{width:t})})),dv("tbody",null,e)),dv("div",{className:"column-resizer",contentEditable:!1},c.map(function(t,e){var r=t;return"100%"===u&&(r=y[e]*f),dv("div",{className:"column-resizer-item",style:{minWidth:"".concat(r,"px")}},dv("div",{className:"resizer-line-hotzone ".concat(d&&e===p?"visible ":"").concat(h&&e===p?"highlight":""),style:{height:"".concat(a,"px")},on:{mouseenter:function(t){return Plt(n,t)},mouseleave:function(t){return Plt(n,t)},mousedown:function(t){return function(t){Slt||(Olt=t)}(n)}}},dv("div",{className:"resizer-line"})))}))),b=Wh("div",{hook:{insert:function(t){var e=t.elm;return function(t,e){if(aN(e)){var n=e.querySelector("table");n&&(Elt=new ResizeObserver(function(e){var n=qot(e,1)[0].contentRect;yp.Transforms.setNodes(t,{scrollWidth:n.width,height:n.height},{mode:"highest"})}),Elt.observe(n))}}(n,e)},destroy:function(){Elt&&(null==Elt||Elt.disconnect(),Elt=null)}}},m);return b}},Rlt={type:"table-row",renderElem:function(t,e,n){return dv("tr",null,e)}},_lt={type:"table-cell",renderElem:function(t,e,n){var r=function(t,e){var n=eP.getParentNode(t,e);if(null==n)return!1;var r=eP.getParentNode(t,n);return null!=r&&Kst(r).some(function(t){return t===e})}(n,t),o=t,i=o.colSpan,u=void 0===i?1:i,a=o.rowSpan,s=void 0===a?1:a,c=o.isHeader,l=void 0!==c&&c,f=o.hidden,d=void 0!==f&&f;return dv(r&&l?"th":"td",{colSpan:u,rowSpan:s,"data-block-type":"table-cell",className:pct.isSelected(n,t)?"w-e-selected":"",style:{display:d?"none":""}},e)}},jlt={};function Llt(t,e){null==t.data&&(t.data={});var n=t.data;null==n.style&&(n.style={}),Object.assign(n.style,e)}!function(){if(Blt)return jlt;Blt=1;var t=vot(),e=function(){if(Ilt)return klt;Ilt=1;var t=Itt(),e=xet(),n=Ftt(),r=ktt(),o=sit(),i=dot(),u=Oet(),a=Ent(),s=Net(),c=Object.assign,l=Object.defineProperty,f=e([].concat);return klt=!c||r(function(){if(t&&1!==c({b:1},c(l({},"a",{enumerable:!0,get:function(){l(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},n={},r=Symbol("assign detection"),i="abcdefghijklmnopqrst";return e[r]=7,i.split("").forEach(function(t){n[t]=t}),7!==c({},e)[r]||o(c({},n)).join("")!==i})?function(e,r){for(var c=a(e),l=arguments.length,d=1,p=i.f,h=u.f;l>d;)for(var v,g=s(arguments[d++]),y=p?f(o(g),p(g)):o(g),m=y.length,b=0;m>b;)v=y[b++],t&&!n(h,g,v)||(c[v]=g[v]);return c}:c,klt}();t({target:"Object",stat:!0,arity:2,forced:Object.assign!==e},{assign:e})}();var Mlt={renderStyle:function(t,e){var n,r;if(!yp.Element.isElement(t))return e;var o=t,i=o.backgroundColor,u=o.borderWidth,a=o.borderStyle,s=o.borderColor,c=o.textAlign,l={};i&&(l.backgroundColor=i),u&&(l.borderWidth="".concat(u,"px")),a&&(l.borderStyle="none"===a?"":a),s&&(l.borderColor=s),c&&(l.textAlign=c);var f=e;return"table"===t.type?Llt(null===(r=(null===(n=f.children)||void 0===n?void 0:n[0]).children)||void 0===r?void 0:r[0],l):Llt(f,l),f},styleToHtml:function(t,e){if("table"!==t.type&&"table-cell"!==t.type)return e;var n=t.backgroundColor,r=t.borderWidth,o=t.borderStyle,i=t.borderColor,u=t.textAlign;if(!(n||r||o||i||u))return e;var a=Rp(e);return n&&a.css("background-color",n),r&&a.css("border-width","".concat(r,"px")),o&&a.css("border-style","none"===o?"":o),i&&a.css("border-color",i),u&&a.css("text-align",u),function(t){return 0===t.length?"":t[0].outerHTML}(a)},parseStyleHtml:function(t,e,n){if(!["TABLE","TD","TH"].includes(t.tagName))return e;var r=Rp(t),o=e,i=wat(r,"background-color");i||(i=wat(r,"background")),i&&(o.backgroundColor=i);var u=wat(r,"border");u||"TD"!==t.tagName||(u="1px solid ".concat(flt));var a=qot((null==u?void 0:u.split(" "))||[],3),s=a[0],c=a[1],l=a[2];(s=wat(r,"border-width")||s)&&(o.borderWidth=s.replace(/[^\d]/g,"")),(c=wat(r,"border-style")||c)&&(o.borderStyle="none"===c?"":c),(l=wat(r,"border-color")||l)&&(o.borderColor=l);var f=wat(r,"text-align");return(f=wat(r,"text-align")||f)&&(o.textAlign=f),e},renderElems:[Flt,Rlt,_lt],elemsToHtml:[{type:"table",elemToHtml:function(t,e){var n=t,r=n.width,o=void 0===r?"auto":r,i=n.columnWidths,u=n.height,a=void 0===u?"auto":u,s=null==i?void 0:i.map(function(t){return"<col width=".concat(t,"></col>")}).join(""),c=s?'<colgroup contentEditable="false">'.concat(s,"</colgroup>"):"";return'<table style="width: '.concat(o,";table-layout: fixed;height:").concat(a,'">').concat(c,"<tbody>").concat(e,"</tbody></table>")}},{type:"table-row",elemToHtml:function(t,e){return"<tr>".concat(e,"</tr>")}},{type:"table-cell",elemToHtml:function(t,e){var n=t,r=n.colSpan,o=void 0===r?1:r,i=n.rowSpan,u=void 0===i?1:i,a=n.isHeader,s=void 0!==a&&a,c=n.width,l=void 0===c?"auto":c,f=n.hidden;if(void 0!==f&&f)return"";var d=s?"th":"td";return"<".concat(d,' colSpan="').concat(o,'" rowSpan="').concat(u,'" width="').concat(l,'">').concat(e,"</").concat(d,">")}}],preParseHtml:[ylt],parseElemsHtml:[slt,clt,llt],menus:[Rct,_ct,jct,Lct,Mct,zct,Hct,$ct,Uct,Vct,Gct,Wct],editorPlugin:function(t){var e=t.insertBreak,n=t.deleteBackward,r=t.deleteForward,o=t.deleteFragment,i=t.normalizeNode,u=t.insertData,a=t.handleTab,s=t.selectAll,c=t;c.insertBreak=function(){null==eP.getSelectedNodeByType(c,"table")?e():c.insertText("\n\r")},c.deleteBackward=function(t){if(!plt(c)&&!vlt(c,t,"backward")){var e=c.selection;if(e){var r=yp.Editor.before(c,e),o=yp.Editor.above(c,{at:e,match:function(t){return eP.checkNodeType(t,"table-cell")}});if(r){var i=glt(c,r);if(!o&&i&&eP.getSelectedNodeByType(c,"paragraph"))return}}n(t)}},c.handleTab=function(){var e;if(eP.getSelectedNodeByType(c,"table")){var n=yp.Editor.above(t);eP.checkNodeType(n[0],"table-cell")&&yp.Transforms.select(t,n[1]);var r=yp.Editor.next(t);if(r)r[0]&&r[0].text&&(r=null!==(e=yp.Editor.above(t,{at:r[1]}))&&void 0!==e?e:r),yp.Transforms.select(t,r[1]);else{var o=c.children||[],i=o.length;if(eP.checkNodeType(o[i-1],"table")){var u=eP.genEmptyParagraph();yp.Transforms.insertNodes(c,u,{at:[i]}),c.handleTab()}}}else a()},c.deleteForward=function(t){if(!plt(c)&&!vlt(c,t,"forward")){var e=c.selection;if(e){var n=yp.Editor.after(c,e),o=yp.Editor.above(c,{at:e,match:function(t){return eP.checkNodeType(t,"table-cell")}});if(n){var i=glt(c,n);if(!o&&i&&eP.getSelectedNodeByType(c,"paragraph"))return}}r(t)}},c.deleteFragment=function(t){var e=c.selection;if(e){var n,r=!1,i={anchor:e.anchor,focus:e.focus},u=yp.Point.isBefore(i.anchor,i.focus);hlt(c,e.anchor)&&((n=yp.Editor[u?"before":"after"](c,e.anchor))&&(i.anchor=n),r=!0),hlt(c,e.focus)&&((n=yp.Editor[u?"after":"before"](c,e.focus))&&(i.focus=n),r=!0),r&&yp.Transforms.setSelection(c,i),o(t)}},c.normalizeNode=function(t){var e=qot(t,2),n=e[0],r=e[1];if("table"!==eP.getNodeType(n))return i([n,r]);if(eP.isLastNode(c,n)){var o=eP.genEmptyParagraph();yp.Transforms.insertNodes(c,o,{at:[r[0]+1]})}},c.insertData=function(t){if(null!=eP.getSelectedNodeByType(c,"table")){var e=t.getData("text/plain");"\n"===e||/<img[^>]+>/.test(t.getData("text/html"))?u(t):yp.Editor.insertText(c,e)}else u(t)},c.selectAll=function(){var t=c.selection;if(null!=t){var e=eP.getSelectedNodeByType(c,"table-cell");if(null!=e){var n=t.anchor,r=t.focus;if(yp.Path.equals(n.path.slice(0,3),r.path.slice(0,3)))if(0!==yp.Node.string(e).length){var o=eP.findPath(c,e),i={anchor:yp.Editor.start(c,o),focus:yp.Editor.end(c,o)};c.select(i)}else s();else s()}else s()}else s()},function(t){var e=t.apply;t.apply=function(n){if(!yp.Operation.isSelectionOperation(n)||!n.newProperties)return e(n);var r=Vot(Vot({},t.selection),n.newProperties);if(!yp.Range.isRange(r))return pct.unselect(t),e(n);var o=function(t){return yp.Element.isElement(t)&&("table-cell"===t.type||"th"===t.type||"td"===t.type)},i=qot(yp.Editor.nodes(t,{match:o,at:yp.Range.start(r),mode:"lowest"}),1)[0],u=qot(yp.Editor.nodes(t,{match:o,at:yp.Range.end(r),mode:"lowest"}),1)[0];if(!i||!u)return pct.unselect(t),e(n);var a=qot(i,2)[1],s=qot(u,2)[1];if(yp.Path.equals(a,s)||!Dit(t,[a,s],"table"))return pct.unselect(t),e(n);try{var c=Oit(t,{at:a});if(!c||0===c.length)return pct.unselect(t),e(n);for(var l=xit.valueOf(0,0),f=xit.valueOf(0,0),d=!1,p=!1,h=0;h<c.length;h+=1)if(c[h])for(var v=0;v<c[h].length;v+=1)if(c[h][v]){var g=qot(c[h][v],1),y=qot(g[0],2)[1];yp.Path.equals(a,y)&&(l.x=h,l.y=v,d=!0),yp.Path.equals(s,y)&&(f.x=h,f.y=v,p=!0)}if(!d||!p)return pct.unselect(t),e(n);for(var m=xit.valueOf(Math.min(l.x,f.x),Math.min(l.y,f.y)),b=xit.valueOf(Math.max(l.x,f.x),Math.max(l.y,f.y));;){var E=xit.valueOf(m.x,m.y),w=xit.valueOf(b.x,b.y);for(h=E.x;h<=w.x&&h<c.length;h+=1)if(c[h])for(v=E.y;v<=w.y&&v<c[h].length;v+=1)if(c[h][v]){var S=qot(c[h][v],2)[1];if(S){var C=S.rtl,D=S.ltr,O=S.btt,A=S.ttb;E.x=Math.min(E.x,h-(A-1)),E.y=Math.min(E.y,v-(C-1)),w.x=Math.max(w.x,h+(O-1)),w.y=Math.max(w.y,v+(D-1))}}if(xit.equals(m,E)&&xit.equals(b,w))break;m=E,b=w}var x=[],T=new WeakSet;for(h=m.x;h<=b.x&&h<c.length;h+=1)if(c[h]){var N=[];for(v=m.y;v<=b.y&&v<c[h].length;v+=1)if(c[h][v]){var P=qot(c[h][v],1),k=qot(P[0],1)[0];k&&(T.add(k),N.push(c[h][v]))}N.length>0&&x.push(N)}mst.set(t,x),bst.set(t,T)}catch(r){return pct.unselect(t),e(n)}e(n)}}(c),c.getTableSelection=function(){return mst.get(c)||null};var l=c.addMark,f=c.removeMark,d=Vot({},yp.Transforms);return c.addMark=function(t,e){var n=mst.get(c);if(n&&n.length>0){var r=c.selection;n.forEach(function(n){n.forEach(function(n){var r=qot(n[0],2)[1],o=yp.Editor.start(c,r),i=yp.Editor.end(c,r);yp.Transforms.select(c,{anchor:o,focus:i}),l(t,e)})}),r&&yp.Transforms.select(c,r)}else l(t,e)},c.removeMark=function(t){var e=mst.get(c);if(e&&e.length>0){var n=c.selection;e.forEach(function(e){e.forEach(function(e){var n=qot(e[0],2)[1],r=yp.Editor.start(c,n),o=yp.Editor.end(c,n);yp.Transforms.select(c,{anchor:r,focus:o}),f(t)})}),n&&yp.Transforms.select(c,n)}else f(t)},yp.Transforms.setNodes=function(t,e,n){if(void 0===n&&(n={}),t===c){var r=mst.get(c);if(r&&r.length>0)return"hidden"in e||"rowSpan"in e||"colSpan"in e?void d.setNodes(t,e,n):void r.forEach(function(r){r.forEach(function(r){var o=qot(r[0],2)[1];d.setNodes(t,e,Vot(Vot({},n),{at:o}))})})}d.setNodes(t,e,n)},c}};lI("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),lI("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var zlt,Hlt,$lt,Ult,Vlt,Glt,Wlt,qlt,Klt,Ylt,Xlt,Jlt,Zlt,Qlt,tft,eft,nft,rft,oft="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},ift={};function uft(){return Hlt?zlt:(Hlt=1,zlt=function(t){try{return!!t()}catch(t){return!0}})}function aft(){if(Ult)return $lt;Ult=1;var t=uft();return $lt=!t(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function sft(){if(Glt)return Vlt;Glt=1;var t=uft();return Vlt=!t(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})}function cft(){if(qlt)return Wlt;qlt=1;var t=sft(),e=Function.prototype,n=e.call,r=t&&e.bind.bind(n,n);return Wlt=t?r:function(t){return function(){return n.apply(t,arguments)}},Wlt}function lft(){return Ylt?Klt:(Ylt=1,Klt=function(t){return null==t})}function fft(){if(Jlt)return Xlt;Jlt=1;var t=lft(),e=TypeError;return Xlt=function(n){if(t(n))throw new e("Can't call method on "+n);return n}}function dft(){if(Qlt)return Zlt;Qlt=1;var t=fft(),e=Object;return Zlt=function(n){return e(t(n))}}function pft(){if(eft)return tft;eft=1;var t=cft(),e=dft(),n=t({}.hasOwnProperty);return tft=Object.hasOwn||function(t,r){return n(e(t),r)}}function hft(){if(rft)return nft;rft=1;var t=aft(),e=pft(),n=Function.prototype,r=t&&Object.getOwnPropertyDescriptor,o=e(n,"name"),i=o&&"something"===function(){}.name,u=o&&(!t||t&&r(n,"name").configurable);return nft={EXISTS:o,PROPER:i,CONFIGURABLE:u}}var vft,gft,yft={exports:{}};function mft(){if(gft)return vft;gft=1;var t="object"==typeof document&&document.all;return vft=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(t){return"function"==typeof t}}var bft,Eft,wft,Sft,Cft,Dft,Oft,Aft,xft,Tft,Nft,Pft,kft,Ift={exports:{}};function Bft(){return Eft?bft:(Eft=1,bft=!1)}function Fft(){if(Sft)return wft;Sft=1;var t=function(t){return t&&t.Math===Math&&t};return wft=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof oft&&oft)||t("object"==typeof wft&&wft)||function(){return this}()||Function("return this")()}function Rft(){if(Dft)return Cft;Dft=1;var t=Fft(),e=Object.defineProperty;return Cft=function(n,r){try{e(t,n,{value:r,configurable:!0,writable:!0})}catch(e){t[n]=r}return r}}function _ft(){if(Oft)return Ift.exports;Oft=1;var t=Bft(),e=Fft(),n=Rft(),r="__core-js_shared__",o=Ift.exports=e[r]||n(r,{});return(o.versions||(o.versions=[])).push({version:"3.44.0",mode:t?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.44.0/LICENSE",source:"https://github.com/zloirock/core-js"}),Ift.exports}function jft(){if(xft)return Aft;xft=1;var t=cft(),e=mft(),n=_ft(),r=t(Function.toString);return e(n.inspectSource)||(n.inspectSource=function(t){return r(t)}),Aft=n.inspectSource}function Lft(){if(Nft)return Tft;Nft=1;var t=Fft(),e=mft(),n=t.WeakMap;return Tft=e(n)&&/native code/.test(String(n))}function Mft(){if(kft)return Pft;kft=1;var t=mft();return Pft=function(e){return"object"==typeof e?null!==e:t(e)}}var zft,Hft,$ft,Uft,Vft,Gft,Wft,qft,Kft,Yft,Xft,Jft,Zft,Qft,tdt,edt,ndt,rdt,odt,idt,udt,adt,sdt,cdt,ldt,fdt,ddt,pdt,hdt,vdt,gdt,ydt,mdt,bdt,Edt,wdt,Sdt,Cdt,Ddt,Odt,Adt,xdt,Tdt,Ndt,Pdt,kdt,Idt,Bdt,Fdt,Rdt,_dt,jdt,Ldt,Mdt,zdt,Hdt,$dt,Udt={};function Vdt(){if(Hft)return zft;Hft=1;var t=Fft(),e=Mft(),n=t.document,r=e(n)&&e(n.createElement);return zft=function(t){return r?n.createElement(t):{}}}function Gdt(){if(Uft)return $ft;Uft=1;var t=aft(),e=uft(),n=Vdt();return $ft=!t&&!e(function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a})}function Wdt(){if(Gft)return Vft;Gft=1;var t=aft(),e=uft();return Vft=t&&e(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}function qdt(){if(qft)return Wft;qft=1;var t=Mft(),e=String,n=TypeError;return Wft=function(r){if(t(r))return r;throw new n(e(r)+" is not an object")}}function Kdt(){if(Yft)return Kft;Yft=1;var t=sft(),e=Function.prototype.call;return Kft=t?e.bind(e):function(){return e.apply(e,arguments)},Kft}function Ydt(){if(Jft)return Xft;Jft=1;var t=Fft(),e=mft();return Xft=function(n,r){return arguments.length<2?(o=t[n],e(o)?o:void 0):t[n]&&t[n][r];var o},Xft}function Xdt(){if(Qft)return Zft;Qft=1;var t=cft();return Zft=t({}.isPrototypeOf)}function Jdt(){if(edt)return tdt;edt=1;var t=Fft().navigator,e=t&&t.userAgent;return tdt=e?String(e):""}function Zdt(){if(rdt)return ndt;rdt=1;var t,e,n=Fft(),r=Jdt(),o=n.process,i=n.Deno,u=o&&o.versions||i&&i.version,a=u&&u.v8;return a&&(e=(t=a.split("."))[0]>0&&t[0]<4?1:+(t[0]+t[1])),!e&&r&&(!(t=r.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=r.match(/Chrome\/(\d+)/))&&(e=+t[1]),ndt=e}function Qdt(){if(idt)return odt;idt=1;var t=Zdt(),e=uft(),n=Fft().String;return odt=!!Object.getOwnPropertySymbols&&!e(function(){var e=Symbol("symbol detection");return!n(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&t&&t<41})}function tpt(){if(adt)return udt;adt=1;var t=Qdt();return udt=t&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function ept(){if(cdt)return sdt;cdt=1;var t=Ydt(),e=mft(),n=Xdt(),r=tpt(),o=Object;return sdt=r?function(t){return"symbol"==typeof t}:function(r){var i=t("Symbol");return e(i)&&n(i.prototype,o(r))}}function npt(){if(fdt)return ldt;fdt=1;var t=String;return ldt=function(e){try{return t(e)}catch(t){return"Object"}}}function rpt(){if(pdt)return ddt;pdt=1;var t=mft(),e=npt(),n=TypeError;return ddt=function(r){if(t(r))return r;throw new n(e(r)+" is not a function")}}function opt(){if(vdt)return hdt;vdt=1;var t=rpt(),e=lft();return hdt=function(n,r){var o=n[r];return e(o)?void 0:t(o)}}function ipt(){if(bdt)return mdt;bdt=1;var t=_ft();return mdt=function(e,n){return t[e]||(t[e]=n||{})}}function upt(){if(wdt)return Edt;wdt=1;var t=cft(),e=0,n=Math.random(),r=t(1.1.toString);return Edt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+r(++e+n,36)}}function apt(){if(Cdt)return Sdt;Cdt=1;var t=Fft(),e=ipt(),n=pft(),r=upt(),o=Qdt(),i=tpt(),u=t.Symbol,a=e("wks"),s=i?u.for||u:u&&u.withoutSetter||r;return Sdt=function(t){return n(a,t)||(a[t]=o&&n(u,t)?u[t]:s("Symbol."+t)),a[t]}}function spt(){if(Odt)return Ddt;Odt=1;var t=Kdt(),e=Mft(),n=ept(),r=opt(),o=function(){if(ydt)return gdt;ydt=1;var t=Kdt(),e=mft(),n=Mft(),r=TypeError;return gdt=function(o,i){var u,a;if("string"===i&&e(u=o.toString)&&!n(a=t(u,o)))return a;if(e(u=o.valueOf)&&!n(a=t(u,o)))return a;if("string"!==i&&e(u=o.toString)&&!n(a=t(u,o)))return a;throw new r("Can't convert object to primitive value")},gdt}(),i=apt(),u=TypeError,a=i("toPrimitive");return Ddt=function(i,s){if(!e(i)||n(i))return i;var c,l=r(i,a);if(l){if(void 0===s&&(s="default"),c=t(l,i,s),!e(c)||n(c))return c;throw new u("Can't convert object to primitive value")}return void 0===s&&(s="number"),o(i,s)}}function cpt(){if(xdt)return Adt;xdt=1;var t=spt(),e=ept();return Adt=function(n){var r=t(n,"string");return e(r)?r:r+""}}function lpt(){if(Tdt)return Udt;Tdt=1;var t=aft(),e=Gdt(),n=Wdt(),r=qdt(),o=cpt(),i=TypeError,u=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s="enumerable",c="configurable",l="writable";return Udt.f=t?n?function(t,e,n){if(r(t),e=o(e),r(n),"function"==typeof t&&"prototype"===e&&"value"in n&&l in n&&!n[l]){var i=a(t,e);i&&i[l]&&(t[e]=n.value,n={configurable:c in n?n[c]:i[c],enumerable:s in n?n[s]:i[s],writable:!1})}return u(t,e,n)}:u:function(t,n,a){if(r(t),n=o(n),r(a),e)try{return u(t,n,a)}catch(t){}if("get"in a||"set"in a)throw new i("Accessors not supported");return"value"in a&&(t[n]=a.value),t},Udt}function fpt(){return Pdt?Ndt:(Pdt=1,Ndt=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}})}function dpt(){if(Idt)return kdt;Idt=1;var t=aft(),e=lpt(),n=fpt();return kdt=t?function(t,r,o){return e.f(t,r,n(1,o))}:function(t,e,n){return t[e]=n,t}}function ppt(){if(Fdt)return Bdt;Fdt=1;var t=ipt(),e=upt(),n=t("keys");return Bdt=function(t){return n[t]||(n[t]=e(t))}}function hpt(){return _dt?Rdt:(_dt=1,Rdt={})}function vpt(){if(Ldt)return jdt;Ldt=1;var t,e,n,r=Lft(),o=Fft(),i=Mft(),u=dpt(),a=pft(),s=_ft(),c=ppt(),l=hpt(),f="Object already initialized",d=o.TypeError,p=o.WeakMap;if(r||s.state){var h=s.state||(s.state=new p);h.get=h.get,h.has=h.has,h.set=h.set,t=function(t,e){if(h.has(t))throw new d(f);return e.facade=t,h.set(t,e),e},e=function(t){return h.get(t)||{}},n=function(t){return h.has(t)}}else{var v=c("state");l[v]=!0,t=function(t,e){if(a(t,v))throw new d(f);return e.facade=t,u(t,v,e),e},e=function(t){return a(t,v)?t[v]:{}},n=function(t){return a(t,v)}}return jdt={set:t,get:e,has:n,enforce:function(r){return n(r)?e(r):t(r,{})},getterFor:function(t){return function(n){var r;if(!i(n)||(r=e(n)).type!==t)throw new d("Incompatible receiver, "+t+" required");return r}}}}function gpt(){if(Mdt)return yft.exports;Mdt=1;var t=cft(),e=uft(),n=mft(),r=pft(),o=aft(),i=hft().CONFIGURABLE,u=jft(),a=vpt(),s=a.enforce,c=a.get,l=String,f=Object.defineProperty,d=t("".slice),p=t("".replace),h=t([].join),v=o&&!e(function(){return 8!==f(function(){},"length",{value:8}).length}),g=String(String).split("String"),y=yft.exports=function(t,e,n){"Symbol("===d(l(e),0,7)&&(e="["+p(l(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!r(t,"name")||i&&t.name!==e)&&(o?f(t,"name",{value:e,configurable:!0}):t.name=e),v&&n&&r(n,"arity")&&t.length!==n.arity&&f(t,"length",{value:n.arity});try{n&&r(n,"constructor")&&n.constructor?o&&f(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var u=s(t);return r(u,"source")||(u.source=h(g,"string"==typeof e?e:"")),t};return Function.prototype.toString=y(function(){return n(this)&&c(this).source||u(this)},"toString"),yft.exports}function ypt(){if(Hdt)return zdt;Hdt=1;var t=gpt(),e=lpt();return zdt=function(n,r,o){return o.get&&t(o.get,r,{getter:!0}),o.set&&t(o.set,r,{setter:!0}),e.f(n,r,o)}}!function(){if($dt)return ift;$dt=1;var t=aft(),e=hft().EXISTS,n=cft(),r=ypt(),o=Function.prototype,i=n(o.toString),u=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,a=n(u.exec);t&&!e&&r(o,"name",{configurable:!0,get:function(){try{return a(u,i(this))[1]}catch(t){return""}}})}();var mpt,bpt,Ept,wpt,Spt,Cpt,Dpt,Opt,Apt,xpt,Tpt={},Npt={},Ppt={};function kpt(){if(Ept)return bpt;Ept=1;var t=cft(),e=t({}.toString),n=t("".slice);return bpt=function(t){return n(e(t),8,-1)}}function Ipt(){if(Spt)return wpt;Spt=1;var t=cft(),e=uft(),n=kpt(),r=Object,o=t("".split);return wpt=e(function(){return!r("z").propertyIsEnumerable(0)})?function(t){return"String"===n(t)?o(t,""):r(t)}:r}function Bpt(){if(Dpt)return Cpt;Dpt=1;var t=Ipt(),e=fft();return Cpt=function(n){return t(e(n))}}function Fpt(){if(Opt)return Npt;Opt=1;var t=aft(),e=Kdt(),n=function(){if(mpt)return Ppt;mpt=1;var t={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,n=e&&!t.call({1:2},1);return Ppt.f=n?function(t){var n=e(this,t);return!!n&&n.enumerable}:t,Ppt}(),r=fpt(),o=Bpt(),i=cpt(),u=pft(),a=Gdt(),s=Object.getOwnPropertyDescriptor;return Npt.f=t?s:function(t,c){if(t=o(t),c=i(c),a)try{return s(t,c)}catch(t){}if(u(t,c))return r(!e(n.f,t,c),t[c])},Npt}function Rpt(){if(xpt)return Apt;xpt=1;var t=mft(),e=lpt(),n=gpt(),r=Rft();return Apt=function(o,i,u,a){a||(a={});var s=a.enumerable,c=void 0!==a.name?a.name:i;if(t(u)&&n(u,c,a),a.global)s?o[i]=u:r(i,u);else{try{a.unsafe?o[i]&&(s=!0):delete o[i]}catch(t){}s?o[i]=u:e.f(o,i,{value:u,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return o}}var _pt,jpt,Lpt,Mpt,zpt,Hpt,$pt,Upt,Vpt,Gpt,Wpt,qpt,Kpt,Ypt,Xpt,Jpt,Zpt,Qpt={};function tht(){if(Mpt)return Lpt;Mpt=1;var t=function(){if(jpt)return _pt;jpt=1;var t=Math.ceil,e=Math.floor;return _pt=Math.trunc||function(n){var r=+n;return(r>0?e:t)(r)}}();return Lpt=function(e){var n=+e;return n!=n||0===n?0:t(n)}}function eht(){if(Hpt)return zpt;Hpt=1;var t=tht(),e=Math.max,n=Math.min;return zpt=function(r,o){var i=t(r);return i<0?e(i+o,0):n(i,o)}}function nht(){if(Gpt)return Vpt;Gpt=1;var t=function(){if(Upt)return $pt;Upt=1;var t=tht(),e=Math.min;return $pt=function(n){var r=t(n);return r>0?e(r,9007199254740991):0}}();return Vpt=function(e){return t(e.length)}}function rht(){if(Ypt)return Kpt;Ypt=1;var t=cft(),e=pft(),n=Bpt(),r=function(){if(qpt)return Wpt;qpt=1;var t=Bpt(),e=eht(),n=nht(),r=function(r){return function(o,i,u){var a=t(o),s=n(a);if(0===s)return!r&&-1;var c,l=e(u,s);if(r&&i!=i){for(;s>l;)if((c=a[l++])!=c)return!0}else for(;s>l;l++)if((r||l in a)&&a[l]===i)return r||l||0;return!r&&-1}};return Wpt={includes:r(!0),indexOf:r(!1)}}().indexOf,o=hpt(),i=t([].push);return Kpt=function(t,u){var a,s=n(t),c=0,l=[];for(a in s)!e(o,a)&&e(s,a)&&i(l,a);for(;u.length>c;)e(s,a=u[c++])&&(~r(l,a)||i(l,a));return l}}function oht(){return Jpt?Xpt:(Jpt=1,Xpt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function iht(){if(Zpt)return Qpt;Zpt=1;var t=rht(),e=oht().concat("length","prototype");return Qpt.f=Object.getOwnPropertyNames||function(n){return t(n,e)},Qpt}var uht,aht,sht,cht,lht,fht,dht,pht,hht,vht,ght,yht,mht={};function bht(){if(lht)return cht;lht=1;var t=pft(),e=function(){if(sht)return aht;sht=1;var t=Ydt(),e=cft(),n=iht(),r=(uht||(uht=1,mht.f=Object.getOwnPropertySymbols),mht),o=qdt(),i=e([].concat);return aht=t("Reflect","ownKeys")||function(t){var e=n.f(o(t)),u=r.f;return u?i(e,u(t)):e}}(),n=Fpt(),r=lpt();return cht=function(o,i,u){for(var a=e(i),s=r.f,c=n.f,l=0;l<a.length;l++){var f=a[l];t(o,f)||u&&t(u,f)||s(o,f,c(i,f))}}}function Eht(){if(dht)return fht;dht=1;var t=uft(),e=mft(),n=/#|\.prototype\./,r=function(n,r){var s=i[o(n)];return s===a||s!==u&&(e(r)?t(r):!!r)},o=r.normalize=function(t){return String(t).replace(n,".").toLowerCase()},i=r.data={},u=r.NATIVE="N",a=r.POLYFILL="P";return fht=r}function wht(){if(hht)return pht;hht=1;var t=Fft(),e=Fpt().f,n=dpt(),r=Rpt(),o=Rft(),i=bht(),u=Eht();return pht=function(a,s){var c,l,f,d,p,h=a.target,v=a.global,g=a.stat;if(c=v?t:g?t[h]||o(h,{}):t[h]&&t[h].prototype)for(l in s){if(d=s[l],f=a.dontCallGetSet?(p=e(c,l))&&p.value:c[l],!u(v?l:h+(g?".":"#")+l,a.forced)&&void 0!==f){if(typeof d==typeof f)continue;i(d,f)}(a.sham||f&&f.sham)&&n(d,"sham",!0),r(c,l,d,a)}}}function Sht(){if(ght)return vht;ght=1;var t=uft();return vht=function(e,n){var r=[][e];return!!r&&t(function(){r.call(null,n||function(){return 1},1)})}}!function(){if(yht)return Tpt;yht=1;var t=wht(),e=cft(),n=Ipt(),r=Bpt(),o=Sht(),i=e([].join);t({target:"Array",proto:!0,forced:n!==Object||!o("join",",")},{join:function(t){return i(r(this),void 0===t?",":t)}})}();var Cht,Dht,Oht,Aht,xht,Tht,Nht,Pht,kht,Iht,Bht={};function Fht(){if(Dht)return Cht;Dht=1;var t={};return t[apt()("toStringTag")]="z",Cht="[object z]"===String(t)}function Rht(){if(Aht)return Oht;Aht=1;var t=Fht(),e=mft(),n=kpt(),r=apt()("toStringTag"),o=Object,i="Arguments"===n(function(){return arguments}());return Oht=t?n:function(t){var u,a,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(a=function(t,e){try{return t[e]}catch(t){}}(u=o(t),r))?a:i?n(u):"Object"===(s=n(u))&&e(u.callee)?"Arguments":s}}function _ht(){if(Tht)return xht;Tht=1;var t=Rht(),e=String;return xht=function(n){if("Symbol"===t(n))throw new TypeError("Cannot convert a Symbol value to a string");return e(n)}}function jht(){if(Pht)return Nht;Pht=1;var t=qdt();return Nht=function(){var e=t(this),n="";return e.hasIndices&&(n+="d"),e.global&&(n+="g"),e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.dotAll&&(n+="s"),e.unicode&&(n+="u"),e.unicodeSets&&(n+="v"),e.sticky&&(n+="y"),n}}var Lht,Mht,zht,Hht,$ht,Uht,Vht,Ght,Wht,qht,Kht,Yht,Xht,Jht,Zht,Qht,tvt,evt,nvt,rvt,ovt,ivt,uvt,avt,svt,cvt,lvt,fvt,dvt,pvt,hvt,vvt,gvt,yvt,mvt,bvt,Evt,wvt,Svt,Cvt,Dvt,Ovt,Avt={};function xvt(){if($ht)return Hht;$ht=1;var t=Ydt();return Hht=t("document","documentElement")}function Tvt(){if(Vht)return Uht;Vht=1;var t,e=qdt(),n=function(){if(zht)return Avt;zht=1;var t=aft(),e=Wdt(),n=lpt(),r=qdt(),o=Bpt(),i=function(){if(Mht)return Lht;Mht=1;var t=rht(),e=oht();return Lht=Object.keys||function(n){return t(n,e)}}();return Avt.f=t&&!e?Object.defineProperties:function(t,e){r(t);for(var u,a=o(e),s=i(e),c=s.length,l=0;c>l;)n.f(t,u=s[l++],a[u]);return t},Avt}(),r=oht(),o=hpt(),i=xvt(),u=Vdt(),a=ppt(),s="prototype",c="script",l=a("IE_PROTO"),f=function(){},d=function(t){return"<"+c+">"+t+"</"+c+">"},p=function(t){t.write(d("")),t.close();var e=t.parentWindow.Object;return t=null,e},h=function(){try{t=new ActiveXObject("htmlfile")}catch(t){}var e,n,o;h="undefined"!=typeof document?document.domain&&t?p(t):(n=u("iframe"),o="java"+c+":",n.style.display="none",i.appendChild(n),n.src=String(o),(e=n.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F):p(t);for(var a=r.length;a--;)delete h[s][r[a]];return h()};return o[l]=!0,Uht=Object.create||function(t,r){var o;return null!==t?(f[s]=e(t),o=new f,f[s]=null,o[l]=t):o=h(),void 0===r?o:n.f(o,r)}}function Nvt(){return evt?tvt:(evt=1,tvt={})}function Pvt(){if(ivt)return ovt;ivt=1;var t=pft(),e=mft(),n=dft(),r=ppt(),o=function(){if(rvt)return nvt;rvt=1;var t=uft();return nvt=!t(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})}(),i=r("IE_PROTO"),u=Object,a=u.prototype;return ovt=o?u.getPrototypeOf:function(r){var o=n(r);if(t(o,i))return o[i];var s=o.constructor;return e(s)&&o instanceof s?s.prototype:o instanceof u?a:null}}function kvt(){if(avt)return uvt;avt=1;var t,e,n,r=uft(),o=mft(),i=Mft(),u=Tvt(),a=Pvt(),s=Rpt(),c=apt(),l=Bft(),f=c("iterator"),d=!1;return[].keys&&("next"in(n=[].keys())?(e=a(a(n)))!==Object.prototype&&(t=e):d=!0),!i(t)||r(function(){var e={};return t[f].call(e)!==e})?t={}:l&&(t=u(t)),o(t[f])||s(t,f,function(){return this}),uvt={IteratorPrototype:t,BUGGY_SAFARI_ITERATORS:d}}function Ivt(){if(cvt)return svt;cvt=1;var t=lpt().f,e=pft(),n=apt()("toStringTag");return svt=function(r,o,i){r&&!i&&(r=r.prototype),r&&!e(r,n)&&t(r,n,{configurable:!0,value:o})}}function Bvt(){if(yvt)return gvt;yvt=1;var t=function(){if(vvt)return hvt;vvt=1;var t=Mft();return hvt=function(e){return t(e)||null===e}}(),e=String,n=TypeError;return gvt=function(r){if(t(r))return r;throw new n("Can't set "+e(r)+" as a prototype")}}function Fvt(){if(bvt)return mvt;bvt=1;var t=function(){if(pvt)return dvt;pvt=1;var t=cft(),e=rpt();return dvt=function(n,r,o){try{return t(e(Object.getOwnPropertyDescriptor(n,r)[o]))}catch(t){}}}(),e=Mft(),n=fft(),r=Bvt();return mvt=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 n(t),r(u),e(t)?(i?o(t,u):t.__proto__=u,t):t}}():void 0)}function Rvt(){if(wvt)return Evt;wvt=1;var t=wht(),e=Kdt(),n=Bft(),r=hft(),o=mft(),i=function(){if(fvt)return lvt;fvt=1;var t=kvt().IteratorPrototype,e=Tvt(),n=fpt(),r=Ivt(),o=Nvt(),i=function(){return this};return lvt=function(u,a,s,c){var l=a+" Iterator";return u.prototype=e(t,{next:n(+!c,s)}),r(u,l,!1,!0),o[l]=i,u}}(),u=Pvt(),a=Fvt(),s=Ivt(),c=dpt(),l=Rpt(),f=apt(),d=Nvt(),p=kvt(),h=r.PROPER,v=r.CONFIGURABLE,g=p.IteratorPrototype,y=p.BUGGY_SAFARI_ITERATORS,m=f("iterator"),b="keys",E="values",w="entries",S=function(){return this};return Evt=function(r,f,p,C,D,O,A){i(p,f,C);var x,T,N,P=function(t){if(t===D&&R)return R;if(!y&&t&&t in B)return B[t];switch(t){case b:case E:case w:return function(){return new p(this,t)}}return function(){return new p(this)}},k=f+" Iterator",I=!1,B=r.prototype,F=B[m]||B["@@iterator"]||D&&B[D],R=!y&&F||P(D),_="Array"===f&&B.entries||F;if(_&&(x=u(_.call(new r)))!==Object.prototype&&x.next&&(n||u(x)===g||(a?a(x,g):o(x[m])||l(x,m,S)),s(x,k,!0,!0),n&&(d[k]=S)),h&&D===E&&F&&F.name!==E&&(!n&&v?c(B,"name",E):(I=!0,R=function(){return e(F,this)})),D)if(T={values:P(E),keys:O?R:P(b),entries:P(w)},A)for(N in T)(y||I||!(N in B))&&l(B,N,T[N]);else t({target:f,proto:!0,forced:y||I},T);return n&&!A||B[m]===R||l(B,m,R,{name:D}),d[f]=R,T}}function _vt(){return Cvt?Svt:(Cvt=1,Svt=function(t,e){return{value:t,done:e}})}function jvt(){if(Ovt)return Dvt;Ovt=1;var t=Bpt(),e=function(){if(Qht)return Zht;Qht=1;var t=apt(),e=Tvt(),n=lpt().f,r=t("unscopables"),o=Array.prototype;return void 0===o[r]&&n(o,r,{configurable:!0,value:e(null)}),Zht=function(t){o[r][t]=!0}}(),n=Nvt(),r=vpt(),o=lpt().f,i=Rvt(),u=_vt(),a=Bft(),s=aft(),c="Array Iterator",l=r.set,f=r.getterFor(c);Dvt=i(Array,"Array",function(e,n){l(this,{type:c,target:t(e),index:0,kind:n})},function(){var t=f(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=null,u(void 0,!0);switch(t.kind){case"keys":return u(n,!1);case"values":return u(e[n],!1)}return u([n,e[n]],!1)},"values");var d=n.Arguments=n.Array;if(e("keys"),e("values"),e("entries"),!a&&s&&"values"!==d.name)try{o(d,"name",{value:"values"})}catch(t){}return Dvt}!function(){if(Jht)return Bht;Jht=1;var t=wht(),e=function(){if(Xht)return Yht;Xht=1;var t,e,n=Kdt(),r=cft(),o=_ht(),i=jht(),u=function(){if(Iht)return kht;Iht=1;var t=uft(),e=Fft().RegExp,n=t(function(){var t=e("a","y");return t.lastIndex=2,null!==t.exec("abcd")}),r=n||t(function(){return!e("a","y").sticky}),o=n||t(function(){var t=e("^r","gy");return t.lastIndex=2,null!==t.exec("str")});return kht={BROKEN_CARET:o,MISSED_STICKY:r,UNSUPPORTED_Y:n}}(),a=ipt(),s=Tvt(),c=vpt().get,l=function(){if(Wht)return Ght;Wht=1;var t=uft(),e=Fft().RegExp;return Ght=t(function(){var t=e(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})}(),f=function(){if(Kht)return qht;Kht=1;var t=uft(),e=Fft().RegExp;return qht=t(function(){var t=e("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})}(),d=a("native-string-replace",String.prototype.replace),p=RegExp.prototype.exec,h=p,v=r("".charAt),g=r("".indexOf),y=r("".replace),m=r("".slice),b=(e=/b*/g,n(p,t=/a/,"a"),n(p,e,"a"),0!==t.lastIndex||0!==e.lastIndex),E=u.BROKEN_CARET,w=void 0!==/()??/.exec("")[1];return(b||w||E||l||f)&&(h=function(t){var e,r,u,a,l,f,S,C=this,D=c(C),O=o(t),A=D.raw;if(A)return A.lastIndex=C.lastIndex,e=n(h,A,O),C.lastIndex=A.lastIndex,e;var x=D.groups,T=E&&C.sticky,N=n(i,C),P=C.source,k=0,I=O;if(T&&(N=y(N,"y",""),-1===g(N,"g")&&(N+="g"),I=m(O,C.lastIndex),C.lastIndex>0&&(!C.multiline||C.multiline&&"\n"!==v(O,C.lastIndex-1))&&(P="(?: "+P+")",I=" "+I,k++),r=new RegExp("^(?:"+P+")",N)),w&&(r=new RegExp("^"+P+"$(?!\\s)",N)),b&&(u=C.lastIndex),a=n(p,T?r:C,I),T?a?(a.input=m(a.input,k),a[0]=m(a[0],k),a.index=C.lastIndex,C.lastIndex+=a[0].length):C.lastIndex=0:b&&a&&(C.lastIndex=C.global?a.index+a[0].length:u),w&&a&&a.length>1&&n(d,a[0],r,function(){for(l=1;l<arguments.length-2;l++)void 0===arguments[l]&&(a[l]=void 0)}),a&&x)for(a.groups=f=s(null),l=0;l<x.length;l++)f[(S=x[l])[0]]=a[S[1]];return a}),Yht=h}();t({target:"RegExp",proto:!0,forced:/./.exec!==e},{exec:e})}(),rh&&(Rp.fn.append=rh),Vp&&(Rp.fn.on=Vp),ch&&(Rp.fn.remove=ch),Up&&(Rp.fn.val=Up),ph&&(Rp.fn.click=ph),Yp&&(Rp.fn.hide=Yp),jvt();var Lvt,Mvt,zvt,Hvt,$vt,Uvt,Vvt,Gvt,Wvt,qvt,Kvt,Yvt,Xvt,Jvt,Zvt,Qvt,tgt,egt={};function ngt(){if(Hvt)return zvt;Hvt=1;var t=function(){if(Mvt)return Lvt;Mvt=1;var t=kpt(),e=cft();return Lvt=function(n){if("Function"===t(n))return e(n)}}(),e=rpt(),n=sft(),r=t(t.bind);return zvt=function(t,o){return e(t),void 0===o?t:n?r(t,o):function(){return t.apply(o,arguments)}},zvt}function rgt(){if(Uvt)return $vt;Uvt=1;var t=kpt();return $vt=Array.isArray||function(e){return"Array"===t(e)}}function ogt(){if(Gvt)return Vvt;Gvt=1;var t=cft(),e=uft(),n=mft(),r=Rht(),o=Ydt(),i=jft(),u=function(){},a=o("Reflect","construct"),s=/^\s*(?:class|function)\b/,c=t(s.exec),l=!s.test(u),f=function(t){if(!n(t))return!1;try{return a(u,[],t),!0}catch(t){return!1}},d=function(t){if(!n(t))return!1;switch(r(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return l||!!c(s,i(t))}catch(t){return!0}};return d.sham=!0,Vvt=!a||e(function(){var t;return f(f.call)||!f(Object)||!f(function(){t=!0})||t})?d:f}function igt(){if(Yvt)return Kvt;Yvt=1;var t=function(){if(qvt)return Wvt;qvt=1;var t=rgt(),e=ogt(),n=Mft(),r=apt()("species"),o=Array;return Wvt=function(i){var u;return t(i)&&(u=i.constructor,(e(u)&&(u===o||t(u.prototype))||n(u)&&null===(u=u[r]))&&(u=void 0)),void 0===u?o:u}}();return Kvt=function(e,n){return new(t(e))(0===n?0:n)}}function ugt(){if(Jvt)return Xvt;Jvt=1;var t=ngt(),e=cft(),n=Ipt(),r=dft(),o=nht(),i=igt(),u=e([].push),a=function(e){var a=1===e,s=2===e,c=3===e,l=4===e,f=6===e,d=7===e,p=5===e||f;return function(h,v,g,y){for(var m,b,E=r(h),w=n(E),S=o(w),C=t(v,g),D=0,O=y||i,A=a?O(h,S):s||d?O(h,0):void 0;S>D;D++)if((p||D in w)&&(b=C(m=w[D],D,E),e))if(a)A[D]=b;else if(b)switch(e){case 3:return!0;case 5:return m;case 6:return D;case 2:u(A,m)}else switch(e){case 4:return!1;case 7:u(A,m)}return f?-1:c||l?l:A}};return Xvt={forEach:a(0),map:a(1),filter:a(2),some:a(3),every:a(4),find:a(5),findIndex:a(6),filterReject:a(7)}}function agt(){if(Qvt)return Zvt;Qvt=1;var t=uft(),e=apt(),n=Zdt(),r=e("species");return Zvt=function(e){return n>=51||!t(function(){var t=[];return(t.constructor={})[r]=function(){return{foo:1}},1!==t[e](Boolean).foo})}}!function(){if(tgt)return egt;tgt=1;var t=wht(),e=ugt().map;t({target:"Array",proto:!0,forced:!agt()("map")},{map:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}})}();var sgt,cgt,lgt,fgt,dgt,pgt={};function hgt(){if(fgt)return lgt;fgt=1;var t=cft();return lgt=t([].slice)}!function(){if(dgt)return pgt;dgt=1;var t=wht(),e=rgt(),n=ogt(),r=Mft(),o=eht(),i=nht(),u=Bpt(),a=function(){if(cgt)return sgt;cgt=1;var t=aft(),e=lpt(),n=fpt();return sgt=function(r,o,i){t?e.f(r,o,n(0,i)):r[o]=i}}(),s=apt(),c=agt(),l=hgt(),f=c("slice"),d=s("species"),p=Array,h=Math.max;t({target:"Array",proto:!0,forced:!f},{slice:function(t,s){var c,f,v,g=u(this),y=i(g),m=o(t,y),b=o(void 0===s?y:s,y);if(e(g)&&(c=g.constructor,(n(c)&&(c===p||e(c.prototype))||r(c)&&null===(c=c[d]))&&(c=void 0),c===p||void 0===c))return l(g,m,b);for(f=new(void 0===c?p:c)(h(b-m,0)),v=0;m<b;m++,v++)m in g&&a(f,v,g[m]);return f.length=v,f}})}();var vgt,ggt,ygt,mgt={};!function(){if(ygt)return mgt;ygt=1;var t=Fht(),e=Rpt(),n=function(){if(ggt)return vgt;ggt=1;var t=Fht(),e=Rht();return vgt=t?{}.toString:function(){return"[object "+e(this)+"]"}}();t||e(Object.prototype,"toString",n,{unsafe:!0})}();var bgt,Egt,wgt,Sgt,Cgt,Dgt,Ogt,Agt,xgt,Tgt,Ngt,Pgt,kgt,Igt,Bgt,Fgt,Rgt,_gt,jgt,Lgt,Mgt,zgt,Hgt,$gt,Ugt,Vgt,Ggt,Wgt,qgt,Kgt,Ygt,Xgt,Jgt,Zgt,Qgt,tyt,eyt,nyt,ryt,oyt,iyt={};function uyt(){if(Egt)return bgt;Egt=1;var t=Fft(),e=Jdt(),n=kpt(),r=function(t){return e.slice(0,t.length)===t};return bgt=r("Bun/")?"BUN":r("Cloudflare-Workers")?"CLOUDFLARE":r("Deno/")?"DENO":r("Node.js/")?"NODE":t.Bun&&"string"==typeof Bun.version?"BUN":t.Deno&&"object"==typeof Deno.version?"DENO":"process"===n(t.process)?"NODE":t.window&&t.document?"BROWSER":"REST"}function ayt(){if(Sgt)return wgt;Sgt=1;var t=uyt();return wgt="NODE"===t}function syt(){if(Tgt)return xgt;Tgt=1;var t=Xdt(),e=TypeError;return xgt=function(n,r){if(t(r,n))return n;throw new e("Incorrect invocation")}}function cyt(){if(Igt)return kgt;Igt=1;var t=qdt(),e=function(){if(Pgt)return Ngt;Pgt=1;var t=ogt(),e=npt(),n=TypeError;return Ngt=function(r){if(t(r))return r;throw new n(e(r)+" is not a constructor")}}(),n=lft(),r=apt()("species");return kgt=function(o,i){var u,a=t(o).constructor;return void 0===a||n(u=t(a)[r])?i:e(u)}}function lyt(){if(Lgt)return jgt;Lgt=1;var t=Jdt();return jgt=/(?:ipad|iphone|ipod).*applewebkit/i.test(t)}function fyt(){if(zgt)return Mgt;zgt=1;var t,e,n,r,o=Fft(),i=function(){if(Fgt)return Bgt;Fgt=1;var t=sft(),e=Function.prototype,n=e.apply,r=e.call;return Bgt="object"==typeof Reflect&&Reflect.apply||(t?r.bind(n):function(){return r.apply(n,arguments)}),Bgt}(),u=ngt(),a=mft(),s=pft(),c=uft(),l=xvt(),f=hgt(),d=Vdt(),p=function(){if(_gt)return Rgt;_gt=1;var t=TypeError;return Rgt=function(e,n){if(e<n)throw new t("Not enough arguments");return e}}(),h=lyt(),v=ayt(),g=o.setImmediate,y=o.clearImmediate,m=o.process,b=o.Dispatch,E=o.Function,w=o.MessageChannel,S=o.String,C=0,D={},O="onreadystatechange";c(function(){t=o.location});var A=function(t){if(s(D,t)){var e=D[t];delete D[t],e()}},x=function(t){return function(){A(t)}},T=function(t){A(t.data)},N=function(e){o.postMessage(S(e),t.protocol+"//"+t.host)};return g&&y||(g=function(t){p(arguments.length,1);var n=a(t)?t:E(t),r=f(arguments,1);return D[++C]=function(){i(n,void 0,r)},e(C),C},y=function(t){delete D[t]},v?e=function(t){m.nextTick(x(t))}:b&&b.now?e=function(t){b.now(x(t))}:w&&!h?(r=(n=new w).port2,n.port1.onmessage=T,e=u(r.postMessage,r)):o.addEventListener&&a(o.postMessage)&&!o.importScripts&&t&&"file:"!==t.protocol&&!c(N)?(e=N,o.addEventListener("message",T,!1)):e=O in d("script")?function(t){l.appendChild(d("script"))[O]=function(){l.removeChild(this),A(t)}}:function(t){setTimeout(x(t),0)}),Mgt={set:g,clear:y}}function dyt(){if(Vgt)return Ugt;Vgt=1;var t=function(){this.head=null,this.tail=null};return t.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}},Ugt=t}function pyt(){if(Xgt)return Ygt;Xgt=1;var t,e,n,r,o,i=Fft(),u=function(){if($gt)return Hgt;$gt=1;var t=Fft(),e=aft(),n=Object.getOwnPropertyDescriptor;return Hgt=function(r){if(!e)return t[r];var o=n(t,r);return o&&o.value}}(),a=ngt(),s=fyt().set,c=dyt(),l=lyt(),f=function(){if(Wgt)return Ggt;Wgt=1;var t=Jdt();return Ggt=/ipad|iphone|ipod/i.test(t)&&"undefined"!=typeof Pebble}(),d=function(){if(Kgt)return qgt;Kgt=1;var t=Jdt();return qgt=/web0s(?!.*chrome)/i.test(t)}(),p=ayt(),h=i.MutationObserver||i.WebKitMutationObserver,v=i.document,g=i.process,y=i.Promise,m=u("queueMicrotask");if(!m){var b=new c,E=function(){var e,n;for(p&&(e=g.domain)&&e.exit();n=b.get();)try{n()}catch(e){throw b.head&&t(),e}e&&e.enter()};l||p||d||!h||!v?!f&&y&&y.resolve?((r=y.resolve(void 0)).constructor=y,o=a(r.then,r),t=function(){o(E)}):p?t=function(){g.nextTick(E)}:(s=a(s,i),t=function(){s(E)}):(e=!0,n=v.createTextNode(""),new h(E).observe(n,{characterData:!0}),t=function(){n.data=e=!e}),m=function(e){b.head||t(),b.add(e)}}return Ygt=m}function hyt(){return tyt?Qgt:(tyt=1,Qgt=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}})}function vyt(){if(nyt)return eyt;nyt=1;var t=Fft();return eyt=t.Promise}function gyt(){if(oyt)return ryt;oyt=1;var t=Fft(),e=vyt(),n=mft(),r=Eht(),o=jft(),i=apt(),u=uyt(),a=Bft(),s=Zdt(),c=e&&e.prototype,l=i("species"),f=!1,d=n(t.PromiseRejectionEvent),p=r("Promise",function(){var t=o(e),n=t!==String(e);if(!n&&66===s)return!0;if(a&&(!c.catch||!c.finally))return!0;if(!s||s<51||!/native code/.test(t)){var r=new e(function(t){t(1)}),i=function(t){t(function(){},function(){})};if((r.constructor={})[l]=i,!(f=r.then(function(){})instanceof i))return!0}return!(n||"BROWSER"!==u&&"DENO"!==u||d)});return ryt={CONSTRUCTOR:p,REJECTION_EVENT:d,SUBCLASSING:f}}var yyt,myt,byt={};function Eyt(){if(yyt)return byt;yyt=1;var t=rpt(),e=TypeError,n=function(n){var r,o;this.promise=new n(function(t,n){if(void 0!==r||void 0!==o)throw new e("Bad Promise constructor");r=t,o=n}),this.resolve=t(r),this.reject=t(o)};return byt.f=function(t){return new n(t)},byt}var wyt,Syt,Cyt,Dyt,Oyt,Ayt,xyt,Tyt,Nyt,Pyt,kyt,Iyt,Byt,Fyt,Ryt,_yt={};function jyt(){if(Dyt)return Cyt;Dyt=1;var t=Rht(),e=opt(),n=lft(),r=Nvt(),o=apt()("iterator");return Cyt=function(i){if(!n(i))return e(i,o)||e(i,"@@iterator")||r[t(i)]}}function Lyt(){if(Pyt)return Nyt;Pyt=1;var t=ngt(),e=Kdt(),n=qdt(),r=npt(),o=function(){if(Syt)return wyt;Syt=1;var t=apt(),e=Nvt(),n=t("iterator"),r=Array.prototype;return wyt=function(t){return void 0!==t&&(e.Array===t||r[n]===t)}}(),i=nht(),u=Xdt(),a=function(){if(Ayt)return Oyt;Ayt=1;var t=Kdt(),e=rpt(),n=qdt(),r=npt(),o=jyt(),i=TypeError;return Oyt=function(u,a){var s=arguments.length<2?o(u):a;if(e(s))return n(t(s,u));throw new i(r(u)+" is not iterable")},Oyt}(),s=jyt(),c=function(){if(Tyt)return xyt;Tyt=1;var t=Kdt(),e=qdt(),n=opt();return xyt=function(r,o,i){var u,a;e(r);try{if(!(u=n(r,"return"))){if("throw"===o)throw i;return i}u=t(u,r)}catch(t){a=!0,u=t}if("throw"===o)throw i;if(a)throw u;return e(u),i}}(),l=TypeError,f=function(t,e){this.stopped=t,this.result=e},d=f.prototype;return Nyt=function(p,h,v){var g,y,m,b,E,w,S,C=v&&v.that,D=!(!v||!v.AS_ENTRIES),O=!(!v||!v.IS_RECORD),A=!(!v||!v.IS_ITERATOR),x=!(!v||!v.INTERRUPTED),T=t(h,C),N=function(t){return g&&c(g,"normal"),new f(!0,t)},P=function(t){return D?(n(t),x?T(t[0],t[1],N):T(t[0],t[1])):x?T(t,N):T(t)};if(O)g=p.iterator;else if(A)g=p;else{if(!(y=s(p)))throw new l(r(p)+" is not iterable");if(o(y)){for(m=0,b=i(p);b>m;m++)if((E=P(p[m]))&&u(d,E))return E;return new f(!1)}g=a(p,y)}for(w=O?p.next:g.next;!(S=e(w,g)).done;){try{E=P(S.value)}catch(t){c(g,"throw",t)}if("object"==typeof E&&E&&u(d,E))return E}return new f(!1)}}function Myt(){if(Iyt)return kyt;Iyt=1;var t=apt()("iterator"),e=!1;try{var n=0,r={next:function(){return{done:!!n++}},return:function(){e=!0}};r[t]=function(){return this},Array.from(r,function(){throw 2})}catch(t){}return kyt=function(n,r){try{if(!r&&!e)return!1}catch(t){return!1}var o=!1;try{var i={};i[t]=function(){return{next:function(){return{done:o=!0}}}},n(i)}catch(t){}return o}}function zyt(){if(Fyt)return Byt;Fyt=1;var t=vyt(),e=Myt(),n=gyt().CONSTRUCTOR;return Byt=n||!e(function(e){t.all(e).then(void 0,function(){})})}var Hyt,$yt,Uyt,Vyt,Gyt,Wyt,qyt,Kyt={},Yyt={},Xyt={},Jyt={};qyt||(qyt=1,function(){if(myt)return iyt;myt=1;var t,e,n,r,o=wht(),i=Bft(),u=ayt(),a=Fft(),s=function(){if(Dgt)return Cgt;Dgt=1;var t=Fft();return Cgt=t}(),c=Kdt(),l=Rpt(),f=Fvt(),d=Ivt(),p=function(){if(Agt)return Ogt;Agt=1;var t=Ydt(),e=ypt(),n=apt(),r=aft(),o=n("species");return Ogt=function(n){var i=t(n);r&&i&&!i[o]&&e(i,o,{configurable:!0,get:function(){return this}})}}(),h=rpt(),v=mft(),g=Mft(),y=syt(),m=cyt(),b=fyt().set,E=pyt(),w=(Zgt||(Zgt=1,Jgt=function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}}),Jgt),S=hyt(),C=dyt(),D=vpt(),O=vyt(),A=gyt(),x=Eyt(),T="Promise",N=A.CONSTRUCTOR,P=A.REJECTION_EVENT,k=A.SUBCLASSING,I=D.getterFor(T),B=D.set,F=O&&O.prototype,R=O,_=F,j=a.TypeError,L=a.document,M=a.process,z=x.f,H=z,$=!!(L&&L.createEvent&&a.dispatchEvent),U="unhandledrejection",V=function(t){var e;return!(!g(t)||!v(e=t.then))&&e},G=function(t,e){var n,r,o,i=e.value,u=1===e.state,a=u?t.ok:t.fail,s=t.resolve,l=t.reject,f=t.domain;try{a?(u||(2===e.rejection&&X(e),e.rejection=1),!0===a?n=i:(f&&f.enter(),n=a(i),f&&(f.exit(),o=!0)),n===t.promise?l(new j("Promise-chain cycle")):(r=V(n))?c(r,n,s,l):s(n)):l(i)}catch(t){f&&!o&&f.exit(),l(t)}},W=function(t,e){t.notified||(t.notified=!0,E(function(){for(var n,r=t.reactions;n=r.get();)G(n,t);t.notified=!1,e&&!t.rejection&&K(t)}))},q=function(t,e,n){var r,o;$?((r=L.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),a.dispatchEvent(r)):r={promise:e,reason:n},!P&&(o=a["on"+t])?o(r):t===U&&w("Unhandled promise rejection",n)},K=function(t){c(b,a,function(){var e,n=t.facade,r=t.value;if(Y(t)&&(e=S(function(){u?M.emit("unhandledRejection",r,n):q(U,n,r)}),t.rejection=u||Y(t)?2:1,e.error))throw e.value})},Y=function(t){return 1!==t.rejection&&!t.parent},X=function(t){c(b,a,function(){var e=t.facade;u?M.emit("rejectionHandled",e):q("rejectionhandled",e,t.value)})},J=function(t,e,n){return function(r){t(e,r,n)}},Z=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,W(t,!0))},Q=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw new j("Promise can't be resolved itself");var r=V(e);r?E(function(){var n={done:!1};try{c(r,e,J(Q,n,t),J(Z,n,t))}catch(e){Z(n,e,t)}}):(t.value=e,t.state=1,W(t,!1))}catch(e){Z({done:!1},e,t)}}};if(N&&(_=(R=function(e){y(this,_),h(e),c(t,this);var n=I(this);try{e(J(Q,n),J(Z,n))}catch(t){Z(n,t)}}).prototype,(t=function(t){B(this,{type:T,done:!1,notified:!1,parent:!1,reactions:new C,rejection:!1,state:0,value:null})}).prototype=l(_,"then",function(t,e){var n=I(this),r=z(m(this,R));return n.parent=!0,r.ok=!v(t)||t,r.fail=v(e)&&e,r.domain=u?M.domain:void 0,0===n.state?n.reactions.add(r):E(function(){G(r,n)}),r.promise}),e=function(){var e=new t,n=I(e);this.promise=e,this.resolve=J(Q,n),this.reject=J(Z,n)},x.f=z=function(t){return t===R||t===n?new e(t):H(t)},!i&&v(O)&&F!==Object.prototype)){r=F.then,k||l(F,"then",function(t,e){var n=this;return new R(function(t,e){c(r,n,t,e)}).then(t,e)},{unsafe:!0});try{delete F.constructor}catch(t){}f&&f(F,_)}o({global:!0,constructor:!0,wrap:!0,forced:N},{Promise:R}),n=s.Promise,d(R,T,!1,!0),p(T)}(),function(){if(Ryt)return _yt;Ryt=1;var t=wht(),e=Kdt(),n=rpt(),r=Eyt(),o=hyt(),i=Lyt();t({target:"Promise",stat:!0,forced:zyt()},{all:function(t){var u=this,a=r.f(u),s=a.resolve,c=a.reject,l=o(function(){var r=n(u.resolve),o=[],a=0,l=1;i(t,function(t){var n=a++,i=!1;l++,e(r,u,t).then(function(t){i||(i=!0,o[n]=t,--l||s(o))},c)}),--l||s(o)});return l.error&&c(l.value),a.promise}})}(),function(){if(Hyt)return Kyt;Hyt=1;var t=wht(),e=Bft(),n=gyt().CONSTRUCTOR,r=vyt(),o=Ydt(),i=mft(),u=Rpt(),a=r&&r.prototype;if(t({target:"Promise",proto:!0,forced:n,real:!0},{catch:function(t){return this.then(void 0,t)}}),!e&&i(r)){var s=o("Promise").prototype.catch;a.catch!==s&&u(a,"catch",s,{unsafe:!0})}}(),function(){if($yt)return Yyt;$yt=1;var t=wht(),e=Kdt(),n=rpt(),r=Eyt(),o=hyt(),i=Lyt();t({target:"Promise",stat:!0,forced:zyt()},{race:function(t){var u=this,a=r.f(u),s=a.reject,c=o(function(){var r=n(u.resolve);i(t,function(t){e(r,u,t).then(a.resolve,s)})});return c.error&&s(c.value),a.promise}})}(),function(){if(Uyt)return Xyt;Uyt=1;var t=wht(),e=Eyt();t({target:"Promise",stat:!0,forced:gyt().CONSTRUCTOR},{reject:function(t){var n=e.f(this);return(0,n.reject)(t),n.promise}})}(),function(){if(Wyt)return Jyt;Wyt=1;var t=wht(),e=Ydt(),n=Bft(),r=vyt(),o=gyt().CONSTRUCTOR,i=function(){if(Gyt)return Vyt;Gyt=1;var t=qdt(),e=Mft(),n=Eyt();return Vyt=function(r,o){if(t(r),e(o)&&o.constructor===r)return o;var i=n.f(r);return(0,i.resolve)(o),i.promise}}(),u=e("Promise"),a=n&&!o;t({target:"Promise",stat:!0,forced:n||o},{resolve:function(t){return i(a&&this===u?r:this,t)}})}());var Zyt,Qyt,tmt,emt,nmt,rmt={};!function(){if(nmt)return rmt;nmt=1;var t=hft().PROPER,e=Rpt(),n=qdt(),r=_ht(),o=uft(),i=function(){if(emt)return tmt;emt=1;var t=Kdt(),e=pft(),n=Xdt(),r=function(){if(Qyt)return Zyt;Qyt=1;var t=Fft(),e=uft(),n=t.RegExp,r=!e(function(){var t=!0;try{n(".","d")}catch(e){t=!1}var e={},r="",o=t?"dgimsy":"gimsy",i=function(t,n){Object.defineProperty(e,t,{get:function(){return r+=n,!0}})},u={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in t&&(u.hasIndices="d"),u)i(a,u[a]);return Object.getOwnPropertyDescriptor(n.prototype,"flags").get.call(e)!==o||r!==o});return Zyt={correct:r}}(),o=jht(),i=RegExp.prototype;return tmt=r.correct?function(t){return t.flags}:function(u){return r.correct||!n(i,u)||e(u,"flags")?u.flags:t(o,u)}}(),u="toString",a=RegExp.prototype,s=a[u],c=o(function(){return"/a/b"!==s.call({source:"a",flags:"b"})}),l=t&&s.name!==u;(c||l)&&e(a,u,function(){var t=n(this);return"/"+r(t.source)+"/"+r(i(t))},{unsafe:!0})}();var omt,imt,umt,amt={};!function(){if(umt)return amt;umt=1;var t=function(){if(imt)return omt;imt=1;var t=cft(),e=tht(),n=_ht(),r=fft(),o=t("".charAt),i=t("".charCodeAt),u=t("".slice),a=function(t){return function(a,s){var c,l,f=n(r(a)),d=e(s),p=f.length;return d<0||d>=p?t?"":void 0:(c=i(f,d))<55296||c>56319||d+1===p||(l=i(f,d+1))<56320||l>57343?t?o(f,d):c:t?u(f,d,d+2):l-56320+(c-55296<<10)+65536}};return omt={codeAt:a(!1),charAt:a(!0)}}().charAt,e=_ht(),n=vpt(),r=Rvt(),o=_vt(),i="String Iterator",u=n.set,a=n.getterFor(i);r(String,"String",function(t){u(this,{type:i,string:e(t),index:0})},function(){var e,n=a(this),r=n.string,i=n.index;return i>=r.length?o(void 0,!0):(e=t(r,i),n.index+=e.length,o(e,!1))})}();var smt,cmt,lmt,fmt,dmt={};function pmt(){if(cmt)return smt;cmt=1;var t=uft();return smt=!t(function(){return Object.isExtensible(Object.preventExtensions({}))})}function hmt(){if(fmt)return lmt;fmt=1;var t=Rpt();return lmt=function(e,n,r){for(var o in n)t(e,o,n[o],r);return e}}var vmt,gmt,ymt,mmt,bmt,Emt,wmt,Smt,Cmt,Dmt,Omt,Amt,xmt,Tmt,Nmt={exports:{}},Pmt={};function kmt(){if(Emt)return Nmt.exports;Emt=1;var t=wht(),e=cft(),n=hpt(),r=Mft(),o=pft(),i=lpt().f,u=iht(),a=function(){if(vmt)return Pmt;vmt=1;var t=kpt(),e=Bpt(),n=iht().f,r=hgt(),o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];return Pmt.f=function(i){return o&&"Window"===t(i)?function(t){try{return n(t)}catch(t){return r(o)}}(i):n(e(i))},Pmt}(),s=function(){if(bmt)return mmt;bmt=1;var t=uft(),e=Mft(),n=kpt(),r=function(){if(ymt)return gmt;ymt=1;var t=uft();return gmt=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 mmt=i||r?function(t){return!!e(t)&&(!r||"ArrayBuffer"!==n(t))&&(!o||o(t))}:o}(),c=upt(),l=pmt(),f=!1,d=c("meta"),p=0,h=function(t){i(t,d,{value:{objectID:"O"+p++,weakData:{}}})},v=Nmt.exports={enable:function(){v.enable=function(){},f=!0;var n=u.f,r=e([].splice),o={};o[d]=1,n(o).length&&(u.f=function(t){for(var e=n(t),o=0,i=e.length;o<i;o++)if(e[o]===d){r(e,o,1);break}return e},t({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:a.f}))},fastKey:function(t,e){if(!r(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,d)){if(!s(t))return"F";if(!e)return"E";h(t)}return t[d].objectID},getWeakData:function(t,e){if(!o(t,d)){if(!s(t))return!0;if(!e)return!1;h(t)}return t[d].weakData},onFreeze:function(t){return l&&f&&s(t)&&!o(t,d)&&h(t),t}};return n[d]=!0,Nmt.exports}function Imt(){if(Dmt)return Cmt;Dmt=1;var t=wht(),e=Fft(),n=cft(),r=Eht(),o=Rpt(),i=kmt(),u=Lyt(),a=syt(),s=mft(),c=lft(),l=Mft(),f=uft(),d=Myt(),p=Ivt(),h=function(){if(Smt)return wmt;Smt=1;var t=mft(),e=Mft(),n=Fvt();return wmt=function(r,o,i){var u,a;return n&&t(u=o.constructor)&&u!==i&&e(a=u.prototype)&&a!==i.prototype&&n(r,a),r}}();return Cmt=function(v,g,y){var m=-1!==v.indexOf("Map"),b=-1!==v.indexOf("Weak"),E=m?"set":"add",w=e[v],S=w&&w.prototype,C=w,D={},O=function(t){var e=n(S[t]);o(S,t,"add"===t?function(t){return e(this,0===t?0:t),this}:"delete"===t?function(t){return!(b&&!l(t))&&e(this,0===t?0:t)}:"get"===t?function(t){return b&&!l(t)?void 0:e(this,0===t?0:t)}:"has"===t?function(t){return!(b&&!l(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this})};if(r(v,!s(w)||!(b||S.forEach&&!f(function(){(new w).entries().next()}))))C=y.getConstructor(g,v,m,E),i.enable();else if(r(v,!0)){var A=new C,x=A[E](b?{}:-0,1)!==A,T=f(function(){A.has(1)}),N=d(function(t){new w(t)}),P=!b&&f(function(){for(var t=new w,e=5;e--;)t[E](e,e);return!t.has(-0)});N||((C=g(function(t,e){a(t,S);var n=h(new w,t,C);return c(e)||u(e,n[E],{that:n,AS_ENTRIES:m}),n})).prototype=S,S.constructor=C),(T||P)&&(O("delete"),O("has"),m&&O("get")),(P||x)&&O(E),b&&S.clear&&delete S.clear}return D[v]=C,t({global:!0,constructor:!0,forced:C!==w},D),p(C,v),b||y.setStrong(C,v,m),C}}Tmt||(Tmt=1,function(){if(xmt)return dmt;xmt=1;var t,e=pmt(),n=Fft(),r=cft(),o=hmt(),i=kmt(),u=Imt(),a=function(){if(Amt)return Omt;Amt=1;var t=cft(),e=hmt(),n=kmt().getWeakData,r=syt(),o=qdt(),i=lft(),u=Mft(),a=Lyt(),s=ugt(),c=pft(),l=vpt(),f=l.set,d=l.getterFor,p=s.find,h=s.findIndex,v=t([].splice),g=0,y=function(t){return t.frozen||(t.frozen=new m)},m=function(){this.entries=[]},b=function(t,e){return p(t.entries,function(t){return t[0]===e})};return m.prototype={get:function(t){var e=b(this,t);if(e)return e[1]},has:function(t){return!!b(this,t)},set:function(t,e){var n=b(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=h(this.entries,function(e){return e[0]===t});return~e&&v(this.entries,e,1),!!~e}},Omt={getConstructor:function(t,s,l,p){var h=t(function(t,e){r(t,v),f(t,{type:s,id:g++,frozen:null}),i(e)||a(e,t[p],{that:t,AS_ENTRIES:l})}),v=h.prototype,m=d(s),b=function(t,e,r){var i=m(t),u=n(o(e),!0);return!0===u?y(i).set(e,r):u[i.id]=r,t};return e(v,{delete:function(t){var e=m(this);if(!u(t))return!1;var r=n(t);return!0===r?y(e).delete(t):r&&c(r,e.id)&&delete r[e.id]},has:function(t){var e=m(this);if(!u(t))return!1;var r=n(t);return!0===r?y(e).has(t):r&&c(r,e.id)}}),e(v,l?{get:function(t){var e=m(this);if(u(t)){var r=n(t);if(!0===r)return y(e).get(t);if(r)return r[e.id]}},set:function(t,e){return b(this,t,e)}}:{add:function(t){return b(this,t,!0)}}),h}}}(),s=Mft(),c=vpt().enforce,l=uft(),f=Lft(),d=Object,p=Array.isArray,h=d.isExtensible,v=d.isFrozen,g=d.isSealed,y=d.freeze,m=d.seal,b=!n.ActiveXObject&&"ActiveXObject"in n,E=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},w=u("WeakMap",E,a),S=w.prototype,C=r(S.set);if(f)if(b){t=a.getConstructor(E,"WeakMap",!0),i.enable();var D=r(S.delete),O=r(S.has),A=r(S.get);o(S,{delete:function(e){if(s(e)&&!h(e)){var n=c(this);return n.frozen||(n.frozen=new t),D(this,e)||n.frozen.delete(e)}return D(this,e)},has:function(e){if(s(e)&&!h(e)){var n=c(this);return n.frozen||(n.frozen=new t),O(this,e)||n.frozen.has(e)}return O(this,e)},get:function(e){if(s(e)&&!h(e)){var n=c(this);return n.frozen||(n.frozen=new t),O(this,e)?A(this,e):n.frozen.get(e)}return A(this,e)},set:function(e,n){if(s(e)&&!h(e)){var r=c(this);r.frozen||(r.frozen=new t),O(this,e)?C(this,e,n):r.frozen.set(e,n)}else C(this,e,n);return this}})}else e&&l(function(){var t=y([]);return C(new w,t,1),!v(t)})&&o(S,{set:function(t,e){var n;return p(t)&&(v(t)?n=y:g(t)&&(n=m)),C(this,t,e),n&&n(t),this}})}());var Bmt,Fmt,Rmt,_mt,jmt,Lmt,Mmt,zmt={};function Hmt(){return Fmt?Bmt:(Fmt=1,Bmt={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 $mt(){if(_mt)return Rmt;_mt=1;var t=Vdt()("span").classList,e=t&&t.constructor&&t.constructor.prototype;return Rmt=e===Object.prototype?void 0:e}!function(){if(Mmt)return zmt;Mmt=1;var t=Fft(),e=Hmt(),n=$mt(),r=function(){if(Lmt)return jmt;Lmt=1;var t=ugt().forEach,e=Sht()("forEach");return jmt=e?[].forEach:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)},jmt}(),o=dpt(),i=function(t){if(t&&t.forEach!==r)try{o(t,"forEach",r)}catch(e){t.forEach=r}};for(var u in e)e[u]&&i(t[u]&&t[u].prototype);i(n)}();var Umt,Vmt={};!function(){if(Umt)return Vmt;Umt=1;var t=Fft(),e=Hmt(),n=$mt(),r=jvt(),o=dpt(),i=Ivt(),u=apt()("iterator"),a=r.values,s=function(t,n){if(t){if(t[u]!==a)try{o(t,u,a)}catch(e){t[u]=a}if(i(t,n,!0),e[n])for(var s in r)if(t[s]!==r[s])try{o(t,s,r[s])}catch(e){t[s]=r[s]}}};for(var c in e)s(t[c]&&t[c].prototype,c);s(n,"DOMTokenList")}();var Gmt=function(){return Gmt=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},Gmt.apply(this,arguments)};function Wmt(t,e,n,r){return new(n||(n=Promise))(function(e,o){function i(t){try{a(r.next(t))}catch(t){o(t)}}function u(t){try{a(r.throw(t))}catch(t){o(t)}}function a(t){var r;t.done?e(t.value):(r=t.value,r instanceof n?r:new n(function(t){t(r)})).then(i,u)}a((r=r.apply(t,[])).next())})}function qmt(t,e){var n,r,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=a(0),u.throw=a(1),u.return=a(2),"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function a(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;u&&(u=0,a[0]&&(i=0)),i;)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 i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}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,s])}}}function Kmt(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=function(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.")}(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 Ymt=new WeakMap;function Xmt(t){return t.getMenuConfig("uploadImage")}function Jmt(t,e){return Wmt(this,0,void 0,function(){return qmt(this,function(n){return[2,new Promise(function(n){var r=new FileReader;r.readAsDataURL(e),r.onload=function(){var o=r.result;if(o){var i=o.toString(),u=0===i.indexOf("data:image")?"":i;jY(t,i,e.name,u),n("ok")}}})]})})}function Zmt(t,e){return Wmt(this,0,void 0,function(){var n,r;return qmt(this,function(o){switch(o.label){case 0:return n=function(t){var e=Ymt.get(t);if(null!=e)return e;var n=Xmt(t),r=n.onSuccess,o=n.onProgress,i=n.onFailed,u=n.customInsert,a=n.onError;return e=NB(Gmt(Gmt({},n),{onProgress:function(e){t.showProgressBar(e),o&&o(e)},onSuccess:function(e,n){if(u)return u(n,function(e,n,r){return jY(t,e,n,r)}),void r(e,n);var o=n.errno,a=void 0===o?1:o,s=n.data,c=void 0===s?{}:s;if(0===a){if(Array.isArray(c))c.forEach(function(e){var n=e.url,r=void 0===n?"":n,o=e.alt,i=void 0===o?"":o,u=e.href;jY(t,r,i,void 0===u?"":u)});else{var l=c.url,f=void 0===l?"":l,d=c.alt,p=void 0===d?"":d,h=c.href;jY(t,f,p,void 0===h?"":h)}r(e,n)}else i(e,n)},onError:function(t,e,n){a(t,e,n)}})),Ymt.set(t,e),e}(t),r=e.map(function(t){return{name:t.name,type:t.type,size:t.size,data:t}}),n.addFiles(r),[4,n.upload()];case 1:return o.sent(),[2]}})})}function Qmt(t,e){return Wmt(this,0,void 0,function(){var n,r,o,i,u,a,s,c,l,f,d,p,h,v,g;return qmt(this,function(y){switch(y.label){case 0:if(null==e)return[2];n=Array.prototype.slice.call(e),r=Xmt(t),o=r.customUpload,i=r.base64LimitSize,u=[],y.label=1;case 1:y.trys.push([1,10,11,16]),a=!0,s=Kmt(n),y.label=2;case 2:return[4,s.next()];case 3:return c=y.sent(),(p=c.done)?[3,9]:(g=c.value,a=!1,f=(l=g).size,i&&f<=i?[4,Jmt(t,l)]:[3,5]);case 4:return y.sent(),[3,8];case 5:return o?[4,o(l,function(e,n,r){return jY(t,e,n,r)})]:[3,7];case 6:return y.sent(),[3,8];case 7:u.push(l),y.label=8;case 8:return a=!0,[3,2];case 9:return[3,16];case 10:return d=y.sent(),h={error:d},[3,16];case 11:return y.trys.push([11,,14,15]),a||p||!(v=s.return)?[3,13]:[4,v.call(s)];case 12:y.sent(),y.label=13;case 13:return[3,15];case 14:if(h)throw h.error;return[7];case 15:return[7];case 16:return u.length>0?[4,Zmt(t,u)]:[3,18];case 17:y.sent(),y.label=18;case 18:return[2]}})})}var tbt=function(){function t(){this.title=dI("uploadImgModule.uploadImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M828.708571 585.045333a48.761905 48.761905 0 0 0-48.737523 48.761905v18.529524l-72.143238-72.167619a135.972571 135.972571 0 0 0-191.585524 0l-34.133334 34.133333-120.880762-120.953905a138.898286 138.898286 0 0 0-191.585523 0l-72.167619 72.167619V292.400762a48.786286 48.786286 0 0 1 48.761904-48.761905h341.23581a48.737524 48.737524 0 0 0 34.474667-83.285333 48.737524 48.737524 0 0 0-34.474667-14.287238H146.236952A146.212571 146.212571 0 0 0 0 292.400762v585.289143A146.358857 146.358857 0 0 0 146.236952 1024h584.996572a146.212571 146.212571 0 0 0 146.236952-146.310095V633.807238a48.786286 48.786286 0 0 0-48.761905-48.761905zM146.261333 926.45181a48.737524 48.737524 0 0 1-48.761904-48.761905v-174.128762l141.409523-141.458286a38.497524 38.497524 0 0 1 53.126096 0l154.526476 154.624 209.627428 209.724953H146.236952z m633.734096-48.761905c-0.073143 9.337905-3.145143 18.383238-8.777143 25.843809l-219.843048-220.94019 34.133333-34.133334a37.546667 37.546667 0 0 1 53.613715 0l140.873143 141.897143V877.714286zM1009.615238 160.231619L863.329524 13.897143a48.737524 48.737524 0 0 0-16.091429-10.24c-11.849143-4.87619-25.161143-4.87619-37.059047 0a48.761905 48.761905 0 0 0-16.067048 10.24l-146.236952 146.334476a49.005714 49.005714 0 0 0 69.217523 69.241905l62.902858-63.390476v272.627809a48.761905 48.761905 0 1 0 97.475047 0V166.083048l62.902857 63.390476a48.737524 48.737524 0 0 0 69.217524 0 48.761905 48.761905 0 0 0 0-69.241905z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){return FY(t)},t.prototype.getMenuConfig=function(t){return t.getMenuConfig("uploadImage")},t.prototype.exec=function(t,e){var n=this.getMenuConfig(t),r=n.allowedFileTypes,o=void 0===r?[]:r,i=n.customBrowseAndUpload;if(i)i(function(e,n,r){return jY(t,e,n,r)});else{var u="";o.length>0&&(u='accept="'.concat(o.join(", "),'"'));var a=Rp("body"),s=Rp('<input type="file" '.concat(u," multiple/>"));s.hide(),a.append(s),s.click(),s.on("change",function(){var e=s[0].files;Qmt(t,e)})}},t}(),ebt={menus:[{key:"uploadImage",factory:function(){return new tbt},config:{server:"",fieldName:"wangeditor-uploaded-image",maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:["image/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,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"),n)},base64LimitSize:0}}],editorPlugin:function(t){var e=t.insertData,n=t;return n.insertData=function(r){if(FY(n))e(r);else if(r.getData("text/plain"))e(r);else{var o=r.files;o.length<=0?e(r):Array.prototype.slice.call(o).some(function(t){return"image"===function(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}(t.type.split("/"),1)[0]})?Qmt(t,o):e(r)}},n}};lI("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"}}),lI("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",edit:"编辑视频",width:"宽度",height:"高度"}});var nbt,rbt,obt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},ibt={};function ubt(){if(rbt)return nbt;rbt=1;var t=function(t){return t&&t.Math===Math&&t};return nbt=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof obt&&obt)||t("object"==typeof nbt&&nbt)||function(){return this}()||Function("return this")()}var abt,sbt,cbt,lbt,fbt,dbt,pbt,hbt,vbt={};function gbt(){return sbt?abt:(sbt=1,abt=function(t){try{return!!t()}catch(t){return!0}})}function ybt(){if(lbt)return cbt;lbt=1;var t=gbt();return cbt=!t(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function mbt(){if(dbt)return fbt;dbt=1;var t=gbt();return fbt=!t(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})}function bbt(){if(hbt)return pbt;hbt=1;var t=mbt(),e=Function.prototype.call;return pbt=t?e.bind(e):function(){return e.apply(e,arguments)},pbt}var Ebt,wbt,Sbt,Cbt,Dbt,Obt,Abt,xbt,Tbt,Nbt,Pbt,kbt,Ibt,Bbt,Fbt,Rbt,_bt,jbt,Lbt,Mbt,zbt,Hbt,$bt,Ubt,Vbt,Gbt,Wbt,qbt,Kbt,Ybt,Xbt,Jbt,Zbt,Qbt,tEt,eEt,nEt,rEt,oEt,iEt,uEt,aEt={};function sEt(){return Sbt?wbt:(Sbt=1,wbt=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}})}function cEt(){if(Dbt)return Cbt;Dbt=1;var t=mbt(),e=Function.prototype,n=e.call,r=t&&e.bind.bind(n,n);return Cbt=t?r:function(t){return function(){return n.apply(t,arguments)}},Cbt}function lEt(){if(Abt)return Obt;Abt=1;var t=cEt(),e=t({}.toString),n=t("".slice);return Obt=function(t){return n(e(t),8,-1)}}function fEt(){if(Tbt)return xbt;Tbt=1;var t=cEt(),e=gbt(),n=lEt(),r=Object,o=t("".split);return xbt=e(function(){return!r("z").propertyIsEnumerable(0)})?function(t){return"String"===n(t)?o(t,""):r(t)}:r}function dEt(){return Pbt?Nbt:(Pbt=1,Nbt=function(t){return null==t})}function pEt(){if(Ibt)return kbt;Ibt=1;var t=dEt(),e=TypeError;return kbt=function(n){if(t(n))throw new e("Can't call method on "+n);return n}}function hEt(){if(Fbt)return Bbt;Fbt=1;var t=fEt(),e=pEt();return Bbt=function(n){return t(e(n))}}function vEt(){if(_bt)return Rbt;_bt=1;var t="object"==typeof document&&document.all;return Rbt=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(t){return"function"==typeof t}}function gEt(){if(Lbt)return jbt;Lbt=1;var t=vEt();return jbt=function(e){return"object"==typeof e?null!==e:t(e)}}function yEt(){if(zbt)return Mbt;zbt=1;var t=ubt(),e=vEt();return Mbt=function(n,r){return arguments.length<2?(o=t[n],e(o)?o:void 0):t[n]&&t[n][r];var o},Mbt}function mEt(){if($bt)return Hbt;$bt=1;var t=cEt();return Hbt=t({}.isPrototypeOf)}function bEt(){if(Vbt)return Ubt;Vbt=1;var t=ubt().navigator,e=t&&t.userAgent;return Ubt=e?String(e):""}function EEt(){if(Wbt)return Gbt;Wbt=1;var t,e,n=ubt(),r=bEt(),o=n.process,i=n.Deno,u=o&&o.versions||i&&i.version,a=u&&u.v8;return a&&(e=(t=a.split("."))[0]>0&&t[0]<4?1:+(t[0]+t[1])),!e&&r&&(!(t=r.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=r.match(/Chrome\/(\d+)/))&&(e=+t[1]),Gbt=e}function wEt(){if(Kbt)return qbt;Kbt=1;var t=EEt(),e=gbt(),n=ubt().String;return qbt=!!Object.getOwnPropertySymbols&&!e(function(){var e=Symbol("symbol detection");return!n(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&t&&t<41})}function SEt(){if(Xbt)return Ybt;Xbt=1;var t=wEt();return Ybt=t&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function CEt(){if(Zbt)return Jbt;Zbt=1;var t=yEt(),e=vEt(),n=mEt(),r=SEt(),o=Object;return Jbt=r?function(t){return"symbol"==typeof t}:function(r){var i=t("Symbol");return e(i)&&n(i.prototype,o(r))}}function DEt(){if(tEt)return Qbt;tEt=1;var t=String;return Qbt=function(e){try{return t(e)}catch(t){return"Object"}}}function OEt(){if(nEt)return eEt;nEt=1;var t=vEt(),e=DEt(),n=TypeError;return eEt=function(r){if(t(r))return r;throw new n(e(r)+" is not a function")}}function AEt(){if(oEt)return rEt;oEt=1;var t=OEt(),e=dEt();return rEt=function(n,r){var o=n[r];return e(o)?void 0:t(o)}}var xEt,TEt,NEt,PEt,kEt,IEt,BEt,FEt,REt,_Et,jEt,LEt,MEt,zEt,HEt,$Et,UEt,VEt,GEt,WEt,qEt,KEt,YEt,XEt,JEt={exports:{}};function ZEt(){return TEt?xEt:(TEt=1,xEt=!1)}function QEt(){if(PEt)return NEt;PEt=1;var t=ubt(),e=Object.defineProperty;return NEt=function(n,r){try{e(t,n,{value:r,configurable:!0,writable:!0})}catch(e){t[n]=r}return r}}function twt(){if(kEt)return JEt.exports;kEt=1;var t=ZEt(),e=ubt(),n=QEt(),r="__core-js_shared__",o=JEt.exports=e[r]||n(r,{});return(o.versions||(o.versions=[])).push({version:"3.44.0",mode:t?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.44.0/LICENSE",source:"https://github.com/zloirock/core-js"}),JEt.exports}function ewt(){if(BEt)return IEt;BEt=1;var t=twt();return IEt=function(e,n){return t[e]||(t[e]=n||{})}}function nwt(){if(REt)return FEt;REt=1;var t=pEt(),e=Object;return FEt=function(n){return e(t(n))}}function rwt(){if(jEt)return _Et;jEt=1;var t=cEt(),e=nwt(),n=t({}.hasOwnProperty);return _Et=Object.hasOwn||function(t,r){return n(e(t),r)}}function owt(){if(MEt)return LEt;MEt=1;var t=cEt(),e=0,n=Math.random(),r=t(1.1.toString);return LEt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+r(++e+n,36)}}function iwt(){if(HEt)return zEt;HEt=1;var t=ubt(),e=ewt(),n=rwt(),r=owt(),o=wEt(),i=SEt(),u=t.Symbol,a=e("wks"),s=i?u.for||u:u&&u.withoutSetter||r;return zEt=function(t){return n(a,t)||(a[t]=o&&n(u,t)?u[t]:s("Symbol."+t)),a[t]}}function uwt(){if(UEt)return $Et;UEt=1;var t=bbt(),e=gEt(),n=CEt(),r=AEt(),o=function(){if(uEt)return iEt;uEt=1;var t=bbt(),e=vEt(),n=gEt(),r=TypeError;return iEt=function(o,i){var u,a;if("string"===i&&e(u=o.toString)&&!n(a=t(u,o)))return a;if(e(u=o.valueOf)&&!n(a=t(u,o)))return a;if("string"!==i&&e(u=o.toString)&&!n(a=t(u,o)))return a;throw new r("Can't convert object to primitive value")},iEt}(),i=iwt(),u=TypeError,a=i("toPrimitive");return $Et=function(i,s){if(!e(i)||n(i))return i;var c,l=r(i,a);if(l){if(void 0===s&&(s="default"),c=t(l,i,s),!e(c)||n(c))return c;throw new u("Can't convert object to primitive value")}return void 0===s&&(s="number"),o(i,s)}}function awt(){if(GEt)return VEt;GEt=1;var t=uwt(),e=CEt();return VEt=function(n){var r=t(n,"string");return e(r)?r:r+""}}function swt(){if(qEt)return WEt;qEt=1;var t=ubt(),e=gEt(),n=t.document,r=e(n)&&e(n.createElement);return WEt=function(t){return r?n.createElement(t):{}}}function cwt(){if(YEt)return KEt;YEt=1;var t=ybt(),e=gbt(),n=swt();return KEt=!t&&!e(function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a})}function lwt(){if(XEt)return vbt;XEt=1;var t=ybt(),e=bbt(),n=function(){if(Ebt)return aEt;Ebt=1;var t={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,n=e&&!t.call({1:2},1);return aEt.f=n?function(t){var n=e(this,t);return!!n&&n.enumerable}:t,aEt}(),r=sEt(),o=hEt(),i=awt(),u=rwt(),a=cwt(),s=Object.getOwnPropertyDescriptor;return vbt.f=t?s:function(t,c){if(t=o(t),c=i(c),a)try{return s(t,c)}catch(t){}if(u(t,c))return r(!e(n.f,t,c),t[c])},vbt}var fwt,dwt,pwt,hwt,vwt,gwt,ywt,mwt={};function bwt(){if(dwt)return fwt;dwt=1;var t=ybt(),e=gbt();return fwt=t&&e(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}function Ewt(){if(hwt)return pwt;hwt=1;var t=gEt(),e=String,n=TypeError;return pwt=function(r){if(t(r))return r;throw new n(e(r)+" is not an object")}}function wwt(){if(vwt)return mwt;vwt=1;var t=ybt(),e=cwt(),n=bwt(),r=Ewt(),o=awt(),i=TypeError,u=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s="enumerable",c="configurable",l="writable";return mwt.f=t?n?function(t,e,n){if(r(t),e=o(e),r(n),"function"==typeof t&&"prototype"===e&&"value"in n&&l in n&&!n[l]){var i=a(t,e);i&&i[l]&&(t[e]=n.value,n={configurable:c in n?n[c]:i[c],enumerable:s in n?n[s]:i[s],writable:!1})}return u(t,e,n)}:u:function(t,n,a){if(r(t),n=o(n),r(a),e)try{return u(t,n,a)}catch(t){}if("get"in a||"set"in a)throw new i("Accessors not supported");return"value"in a&&(t[n]=a.value),t},mwt}function Swt(){if(ywt)return gwt;ywt=1;var t=ybt(),e=wwt(),n=sEt();return gwt=t?function(t,r,o){return e.f(t,r,n(1,o))}:function(t,e,n){return t[e]=n,t}}var Cwt,Dwt,Owt,Awt,xwt,Twt,Nwt,Pwt,kwt,Iwt,Bwt,Fwt,Rwt,_wt,jwt,Lwt={exports:{}};function Mwt(){if(Dwt)return Cwt;Dwt=1;var t=ybt(),e=rwt(),n=Function.prototype,r=t&&Object.getOwnPropertyDescriptor,o=e(n,"name"),i=o&&"something"===function(){}.name,u=o&&(!t||t&&r(n,"name").configurable);return Cwt={EXISTS:o,PROPER:i,CONFIGURABLE:u}}function zwt(){if(Awt)return Owt;Awt=1;var t=cEt(),e=vEt(),n=twt(),r=t(Function.toString);return e(n.inspectSource)||(n.inspectSource=function(t){return r(t)}),Owt=n.inspectSource}function Hwt(){if(Twt)return xwt;Twt=1;var t=ubt(),e=vEt(),n=t.WeakMap;return xwt=e(n)&&/native code/.test(String(n))}function $wt(){if(Pwt)return Nwt;Pwt=1;var t=ewt(),e=owt(),n=t("keys");return Nwt=function(t){return n[t]||(n[t]=e(t))}}function Uwt(){return Iwt?kwt:(Iwt=1,kwt={})}function Vwt(){if(Fwt)return Bwt;Fwt=1;var t,e,n,r=Hwt(),o=ubt(),i=gEt(),u=Swt(),a=rwt(),s=twt(),c=$wt(),l=Uwt(),f="Object already initialized",d=o.TypeError,p=o.WeakMap;if(r||s.state){var h=s.state||(s.state=new p);h.get=h.get,h.has=h.has,h.set=h.set,t=function(t,e){if(h.has(t))throw new d(f);return e.facade=t,h.set(t,e),e},e=function(t){return h.get(t)||{}},n=function(t){return h.has(t)}}else{var v=c("state");l[v]=!0,t=function(t,e){if(a(t,v))throw new d(f);return e.facade=t,u(t,v,e),e},e=function(t){return a(t,v)?t[v]:{}},n=function(t){return a(t,v)}}return Bwt={set:t,get:e,has:n,enforce:function(r){return n(r)?e(r):t(r,{})},getterFor:function(t){return function(n){var r;if(!i(n)||(r=e(n)).type!==t)throw new d("Incompatible receiver, "+t+" required");return r}}}}function Gwt(){if(Rwt)return Lwt.exports;Rwt=1;var t=cEt(),e=gbt(),n=vEt(),r=rwt(),o=ybt(),i=Mwt().CONFIGURABLE,u=zwt(),a=Vwt(),s=a.enforce,c=a.get,l=String,f=Object.defineProperty,d=t("".slice),p=t("".replace),h=t([].join),v=o&&!e(function(){return 8!==f(function(){},"length",{value:8}).length}),g=String(String).split("String"),y=Lwt.exports=function(t,e,n){"Symbol("===d(l(e),0,7)&&(e="["+p(l(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!r(t,"name")||i&&t.name!==e)&&(o?f(t,"name",{value:e,configurable:!0}):t.name=e),v&&n&&r(n,"arity")&&t.length!==n.arity&&f(t,"length",{value:n.arity});try{n&&r(n,"constructor")&&n.constructor?o&&f(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var u=s(t);return r(u,"source")||(u.source=h(g,"string"==typeof e?e:"")),t};return Function.prototype.toString=y(function(){return n(this)&&c(this).source||u(this)},"toString"),Lwt.exports}function Wwt(){if(jwt)return _wt;jwt=1;var t=vEt(),e=wwt(),n=Gwt(),r=QEt();return _wt=function(o,i,u,a){a||(a={});var s=a.enumerable,c=void 0!==a.name?a.name:i;if(t(u)&&n(u,c,a),a.global)s?o[i]=u:r(i,u);else{try{a.unsafe?o[i]&&(s=!0):delete o[i]}catch(t){}s?o[i]=u:e.f(o,i,{value:u,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return o}}var qwt,Kwt,Ywt,Xwt,Jwt,Zwt,Qwt,tSt,eSt,nSt,rSt,oSt,iSt,uSt,aSt,sSt,cSt,lSt={};function fSt(){if(Xwt)return Ywt;Xwt=1;var t=function(){if(Kwt)return qwt;Kwt=1;var t=Math.ceil,e=Math.floor;return qwt=Math.trunc||function(n){var r=+n;return(r>0?e:t)(r)}}();return Ywt=function(e){var n=+e;return n!=n||0===n?0:t(n)}}function dSt(){if(Zwt)return Jwt;Zwt=1;var t=fSt(),e=Math.max,n=Math.min;return Jwt=function(r,o){var i=t(r);return i<0?e(i+o,0):n(i,o)}}function pSt(){if(tSt)return Qwt;tSt=1;var t=fSt(),e=Math.min;return Qwt=function(n){var r=t(n);return r>0?e(r,9007199254740991):0}}function hSt(){if(nSt)return eSt;nSt=1;var t=pSt();return eSt=function(e){return t(e.length)}}function vSt(){if(oSt)return rSt;oSt=1;var t=hEt(),e=dSt(),n=hSt(),r=function(r){return function(o,i,u){var a=t(o),s=n(a);if(0===s)return!r&&-1;var c,l=e(u,s);if(r&&i!=i){for(;s>l;)if((c=a[l++])!=c)return!0}else for(;s>l;l++)if((r||l in a)&&a[l]===i)return r||l||0;return!r&&-1}};return rSt={includes:r(!0),indexOf:r(!1)}}function gSt(){if(uSt)return iSt;uSt=1;var t=cEt(),e=rwt(),n=hEt(),r=vSt().indexOf,o=Uwt(),i=t([].push);return iSt=function(t,u){var a,s=n(t),c=0,l=[];for(a in s)!e(o,a)&&e(s,a)&&i(l,a);for(;u.length>c;)e(s,a=u[c++])&&(~r(l,a)||i(l,a));return l}}function ySt(){return sSt?aSt:(sSt=1,aSt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function mSt(){if(cSt)return lSt;cSt=1;var t=gSt(),e=ySt().concat("length","prototype");return lSt.f=Object.getOwnPropertyNames||function(n){return t(n,e)},lSt}var bSt,ESt,wSt,SSt,CSt,DSt,OSt,ASt,xSt,TSt,NSt,PSt,kSt,ISt,BSt,FSt,RSt,_St,jSt,LSt,MSt,zSt,HSt,$St,USt,VSt,GSt,WSt,qSt={};function KSt(){if(CSt)return SSt;CSt=1;var t=rwt(),e=function(){if(wSt)return ESt;wSt=1;var t=yEt(),e=cEt(),n=mSt(),r=(bSt||(bSt=1,qSt.f=Object.getOwnPropertySymbols),qSt),o=Ewt(),i=e([].concat);return ESt=t("Reflect","ownKeys")||function(t){var e=n.f(o(t)),u=r.f;return u?i(e,u(t)):e}}(),n=lwt(),r=wwt();return SSt=function(o,i,u){for(var a=e(i),s=r.f,c=n.f,l=0;l<a.length;l++){var f=a[l];t(o,f)||u&&t(u,f)||s(o,f,c(i,f))}}}function YSt(){if(OSt)return DSt;OSt=1;var t=gbt(),e=vEt(),n=/#|\.prototype\./,r=function(n,r){var s=i[o(n)];return s===a||s!==u&&(e(r)?t(r):!!r)},o=r.normalize=function(t){return String(t).replace(n,".").toLowerCase()},i=r.data={},u=r.NATIVE="N",a=r.POLYFILL="P";return DSt=r}function XSt(){if(xSt)return ASt;xSt=1;var t=ubt(),e=lwt().f,n=Swt(),r=Wwt(),o=QEt(),i=KSt(),u=YSt();return ASt=function(a,s){var c,l,f,d,p,h=a.target,v=a.global,g=a.stat;if(c=v?t:g?t[h]||o(h,{}):t[h]&&t[h].prototype)for(l in s){if(d=s[l],f=a.dontCallGetSet?(p=e(c,l))&&p.value:c[l],!u(v?l:h+(g?".":"#")+l,a.forced)&&void 0!==f){if(typeof d==typeof f)continue;i(d,f)}(a.sham||f&&f.sham)&&n(d,"sham",!0),r(c,l,d,a)}}}function JSt(){if(NSt)return TSt;NSt=1;var t=lEt();return TSt=Array.isArray||function(e){return"Array"===t(e)}}function ZSt(){if(BSt)return ISt;BSt=1;var t=ybt(),e=wwt(),n=sEt();return ISt=function(r,o,i){t?e.f(r,o,n(0,i)):r[o]=i}}function QSt(){if(RSt)return FSt;RSt=1;var t={};return t[iwt()("toStringTag")]="z",FSt="[object z]"===String(t)}function tCt(){if(jSt)return _St;jSt=1;var t=QSt(),e=vEt(),n=lEt(),r=iwt()("toStringTag"),o=Object,i="Arguments"===n(function(){return arguments}());return _St=t?n:function(t){var u,a,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(a=function(t,e){try{return t[e]}catch(t){}}(u=o(t),r))?a:i?n(u):"Object"===(s=n(u))&&e(u.callee)?"Arguments":s}}function eCt(){if(MSt)return LSt;MSt=1;var t=cEt(),e=gbt(),n=vEt(),r=tCt(),o=yEt(),i=zwt(),u=function(){},a=o("Reflect","construct"),s=/^\s*(?:class|function)\b/,c=t(s.exec),l=!s.test(u),f=function(t){if(!n(t))return!1;try{return a(u,[],t),!0}catch(t){return!1}},d=function(t){if(!n(t))return!1;switch(r(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return l||!!c(s,i(t))}catch(t){return!0}};return d.sham=!0,LSt=!a||e(function(){var t;return f(f.call)||!f(Object)||!f(function(){t=!0})||t})?d:f}function nCt(){if(USt)return $St;USt=1;var t=function(){if(HSt)return zSt;HSt=1;var t=JSt(),e=eCt(),n=gEt(),r=iwt()("species"),o=Array;return zSt=function(i){var u;return t(i)&&(u=i.constructor,(e(u)&&(u===o||t(u.prototype))||n(u)&&null===(u=u[r]))&&(u=void 0)),void 0===u?o:u}}();return $St=function(e,n){return new(t(e))(0===n?0:n)}}function rCt(){if(GSt)return VSt;GSt=1;var t=gbt(),e=iwt(),n=EEt(),r=e("species");return VSt=function(e){return n>=51||!t(function(){var t=[];return(t.constructor={})[r]=function(){return{foo:1}},1!==t[e](Boolean).foo})}}!function(){if(WSt)return ibt;WSt=1;var t=XSt(),e=gbt(),n=JSt(),r=gEt(),o=nwt(),i=hSt(),u=function(){if(kSt)return PSt;kSt=1;var t=TypeError;return PSt=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}}(),a=ZSt(),s=nCt(),c=rCt(),l=iwt(),f=EEt(),d=l("isConcatSpreadable"),p=f>=51||!e(function(){var t=[];return t[d]=!1,t.concat()[0]!==t}),h=function(t){if(!r(t))return!1;var e=t[d];return void 0!==e?!!e:n(t)};t({target:"Array",proto:!0,arity:1,forced:!p||!c("concat")},{concat:function(t){var e,n,r,c,l,f=o(this),d=s(f,0),p=0;for(e=-1,r=arguments.length;e<r;e++)if(h(l=-1===e?f:arguments[e]))for(c=i(l),u(p+c),n=0;n<c;n++,p++)n in l&&a(d,p,l[n]);else u(p+1),a(d,p++,l);return d.length=p,d}})}();var oCt,iCt,uCt,aCt,sCt,cCt,lCt,fCt,dCt,pCt={};function hCt(){if(iCt)return oCt;iCt=1;var t=tCt(),e=String;return oCt=function(n){if("Symbol"===t(n))throw new TypeError("Cannot convert a Symbol value to a string");return e(n)}}function vCt(){return aCt?uCt:(aCt=1,uCt="\t\n\v\f\r                 \u2028\u2029\ufeff")}!function(){if(dCt)return pCt;dCt=1;var t=XSt(),e=function(){if(cCt)return sCt;cCt=1;var t=cEt(),e=pEt(),n=hCt(),r=vCt(),o=t("".replace),i=RegExp("^["+r+"]+"),u=RegExp("(^|[^"+r+"])["+r+"]+$"),a=function(t){return function(r){var a=n(e(r));return 1&t&&(a=o(a,i,"")),2&t&&(a=o(a,u,"$1")),a}};return sCt={start:a(1),end:a(2),trim:a(3)}}().trim,n=function(){if(fCt)return lCt;fCt=1;var t=Mwt().PROPER,e=gbt(),n=vCt();return lCt=function(r){return e(function(){return!!n[r]()||"​…᠎"!=="​…᠎"[r]()||t&&n[r].name!==r})}}();t({target:"String",proto:!0,forced:n("trim")},{trim:function(){return e(this)}})}();var gCt,yCt,mCt={};function bCt(t){return t.length?t[0].tagName.toLowerCase():""}function ECt(t,e,n,r){void 0===e&&(e="auto"),void 0===n&&(n="auto"),void 0===r&&(r={});var o=Rp(t),i=r.width,u=void 0===i?"":i,a=r.height,s=void 0===a?"":a,c="";return u&&(c+="width: ".concat(u,";")),s&&(c+="height: ".concat(s,";")),o.attr("width",e),o.attr("height",n),o.attr("style",c),o[0].outerHTML}yCt||(yCt=1,function(){if(gCt)return mCt;gCt=1;var t=XSt(),e=ubt();t({global:!0,forced:e.globalThis!==e},{globalThis:e})}()),rh&&(Rp.fn.append=rh),Vp&&(Rp.fn.on=Vp),hh&&(Rp.fn.focus=hh),Mp&&(Rp.fn.attr=Mp),Up&&(Rp.fn.val=Up),th&&(Rp.fn.html=th),ih&&(Rp.fn.parent=ih),Lp&&(Rp.fn.hasClass=Lp),lh&&(Rp.fn.empty=lh);var wCt,SCt,CCt,DCt={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,s=void 0===a?"auto":a,c=n.height,l=void 0===c?"auto":c,f=n.style,d=void 0===f?{}:f,p=n.textAlign,h='<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 "))h+=ECt(o,s,l,d);else{var v=d.width,g=void 0===v?"":v,y=d.height,m=void 0===y?"":y,b="";g&&(b+="width: ".concat(g,";")),m&&(b+="height: ".concat(m,";")),h+='<video poster="'.concat(u,'" controls="true" width="').concat(s,'" height="').concat(l,'" style="').concat(b,'"><source src="').concat(o,'" type="video/mp4"/></video>')}return h+"\n</div>"}},OCt={};function ACt(){if(SCt)return wCt;SCt=1;var t=Gwt(),e=wwt();return wCt=function(n,r,o){return o.get&&t(o.get,r,{getter:!0}),o.set&&t(o.set,r,{setter:!0}),e.f(n,r,o)}}!function(){if(CCt)return OCt;CCt=1;var t=ybt(),e=Mwt().EXISTS,n=cEt(),r=ACt(),o=Function.prototype,i=n(o.toString),u=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,a=n(u.exec);t&&!e&&r(o,"name",{configurable:!0,get:function(){try{return a(u,i(this))[1]}catch(t){return""}}})}();var xCt,TCt,NCt,PCt,kCt,ICt,BCt={};function FCt(){if(PCt)return NCt;PCt=1;var t=function(){if(TCt)return xCt;TCt=1;var t=lEt(),e=cEt();return xCt=function(n){if("Function"===t(n))return e(n)}}(),e=OEt(),n=mbt(),r=t(t.bind);return NCt=function(t,o){return e(t),void 0===o?t:n?r(t,o):function(){return t.apply(o,arguments)}},NCt}function RCt(){if(ICt)return kCt;ICt=1;var t=FCt(),e=cEt(),n=fEt(),r=nwt(),o=hSt(),i=nCt(),u=e([].push),a=function(e){var a=1===e,s=2===e,c=3===e,l=4===e,f=6===e,d=7===e,p=5===e||f;return function(h,v,g,y){for(var m,b,E=r(h),w=n(E),S=o(w),C=t(v,g),D=0,O=y||i,A=a?O(h,S):s||d?O(h,0):void 0;S>D;D++)if((p||D in w)&&(b=C(m=w[D],D,E),e))if(a)A[D]=b;else if(b)switch(e){case 3:return!0;case 5:return m;case 6:return D;case 2:u(A,m)}else switch(e){case 4:return!1;case 7:u(A,m)}return f?-1:c||l?l:A}};return kCt={forEach:a(0),map:a(1),filter:a(2),some:a(3),every:a(4),find:a(5),findIndex:a(6),filterReject:a(7)}}var _Ct,jCt,LCt,MCt,zCt,HCt,$Ct,UCt,VCt,GCt,WCt={};function qCt(){if(zCt)return MCt;zCt=1;var t=yEt();return MCt=t("document","documentElement")}function KCt(){if($Ct)return HCt;$Ct=1;var t,e=Ewt(),n=function(){if(LCt)return WCt;LCt=1;var t=ybt(),e=bwt(),n=wwt(),r=Ewt(),o=hEt(),i=function(){if(jCt)return _Ct;jCt=1;var t=gSt(),e=ySt();return _Ct=Object.keys||function(n){return t(n,e)}}();return WCt.f=t&&!e?Object.defineProperties:function(t,e){r(t);for(var u,a=o(e),s=i(e),c=s.length,l=0;c>l;)n.f(t,u=s[l++],a[u]);return t},WCt}(),r=ySt(),o=Uwt(),i=qCt(),u=swt(),a=$wt(),s="prototype",c="script",l=a("IE_PROTO"),f=function(){},d=function(t){return"<"+c+">"+t+"</"+c+">"},p=function(t){t.write(d("")),t.close();var e=t.parentWindow.Object;return t=null,e},h=function(){try{t=new ActiveXObject("htmlfile")}catch(t){}var e,n,o;h="undefined"!=typeof document?document.domain&&t?p(t):(n=u("iframe"),o="java"+c+":",n.style.display="none",i.appendChild(n),n.src=String(o),(e=n.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F):p(t);for(var a=r.length;a--;)delete h[s][r[a]];return h()};return o[l]=!0,HCt=Object.create||function(t,r){var o;return null!==t?(f[s]=e(t),o=new f,f[s]=null,o[l]=t):o=h(),void 0===r?o:n.f(o,r)}}function YCt(){if(VCt)return UCt;VCt=1;var t=iwt(),e=KCt(),n=wwt().f,r=t("unscopables"),o=Array.prototype;return void 0===o[r]&&n(o,r,{configurable:!0,value:e(null)}),UCt=function(t){o[r][t]=!0}}!function(){if(GCt)return BCt;GCt=1;var t=XSt(),e=RCt().find,n=YCt(),r="find",o=!0;r in[]&&Array(1)[r](function(){o=!1}),t({target:"Array",proto:!0,forced:o},{find:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}}),n(r)}();var XCt,JCt,ZCt,QCt={};!function(){if(ZCt)return QCt;ZCt=1;var t=QSt(),e=Wwt(),n=function(){if(JCt)return XCt;JCt=1;var t=QSt(),e=tCt();return XCt=t?{}.toString:function(){return"[object "+e(this)+"]"}}();t||e(Object.prototype,"toString",n,{unsafe:!0})}();var tDt,eDt,nDt,rDt,oDt,iDt,uDt,aDt,sDt,cDt,lDt,fDt={};function dDt(){if(eDt)return tDt;eDt=1;var t=Ewt();return tDt=function(){var e=t(this),n="";return e.hasIndices&&(n+="d"),e.global&&(n+="g"),e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.dotAll&&(n+="s"),e.unicode&&(n+="u"),e.unicodeSets&&(n+="v"),e.sticky&&(n+="y"),n}}function pDt(){if(cDt)return sDt;cDt=1;var t,e,n=bbt(),r=cEt(),o=hCt(),i=dDt(),u=function(){if(rDt)return nDt;rDt=1;var t=gbt(),e=ubt().RegExp,n=t(function(){var t=e("a","y");return t.lastIndex=2,null!==t.exec("abcd")}),r=n||t(function(){return!e("a","y").sticky}),o=n||t(function(){var t=e("^r","gy");return t.lastIndex=2,null!==t.exec("str")});return nDt={BROKEN_CARET:o,MISSED_STICKY:r,UNSUPPORTED_Y:n}}(),a=ewt(),s=KCt(),c=Vwt().get,l=function(){if(iDt)return oDt;iDt=1;var t=gbt(),e=ubt().RegExp;return oDt=t(function(){var t=e(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})}(),f=function(){if(aDt)return uDt;aDt=1;var t=gbt(),e=ubt().RegExp;return uDt=t(function(){var t=e("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})}(),d=a("native-string-replace",String.prototype.replace),p=RegExp.prototype.exec,h=p,v=r("".charAt),g=r("".indexOf),y=r("".replace),m=r("".slice),b=(e=/b*/g,n(p,t=/a/,"a"),n(p,e,"a"),0!==t.lastIndex||0!==e.lastIndex),E=u.BROKEN_CARET,w=void 0!==/()??/.exec("")[1];return(b||w||E||l||f)&&(h=function(t){var e,r,u,a,l,f,S,C=this,D=c(C),O=o(t),A=D.raw;if(A)return A.lastIndex=C.lastIndex,e=n(h,A,O),C.lastIndex=A.lastIndex,e;var x=D.groups,T=E&&C.sticky,N=n(i,C),P=C.source,k=0,I=O;if(T&&(N=y(N,"y",""),-1===g(N,"g")&&(N+="g"),I=m(O,C.lastIndex),C.lastIndex>0&&(!C.multiline||C.multiline&&"\n"!==v(O,C.lastIndex-1))&&(P="(?: "+P+")",I=" "+I,k++),r=new RegExp("^(?:"+P+")",N)),w&&(r=new RegExp("^"+P+"$(?!\\s)",N)),b&&(u=C.lastIndex),a=n(p,T?r:C,I),T?a?(a.input=m(a.input,k),a[0]=m(a[0],k),a.index=C.lastIndex,C.lastIndex+=a[0].length):C.lastIndex=0:b&&a&&(C.lastIndex=C.global?a.index+a[0].length:u),w&&a&&a.length>1&&n(d,a[0],r,function(){for(l=1;l<arguments.length-2;l++)void 0===arguments[l]&&(a[l]=void 0)}),a&&x)for(a.groups=f=s(null),l=0;l<x.length;l++)f[(S=x[l])[0]]=a[S[1]];return a}),sDt=h}function hDt(){if(lDt)return fDt;lDt=1;var t=XSt(),e=pDt();return t({target:"RegExp",proto:!0,forced:/./.exec!==e},{exec:e}),fDt}hDt();var vDt=function(){return vDt=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},vDt.apply(this,arguments)};function gDt(t,e,n,r){return new(n||(n=Promise))(function(o,i){function u(t){try{s(r.next(t))}catch(t){i(t)}}function a(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(u,a)}s((r=r.apply(t,e||[])).next())})}function yDt(t,e){var n,r,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=a(0),u.throw=a(1),u.return=a(2),"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function a(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;u&&(u=0,a[0]&&(i=0)),i;)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 i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}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,s])}}}function mDt(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 bDt(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=function(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.")}(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 EDt,wDt,SDt,CDt,DDt,ODt,ADt,xDt,TDt,NDt,PDt,kDt,IDt,BDt,FDt,RDt,_Dt,jDt={};function LDt(){if(wDt)return EDt;wDt=1;var t=mbt(),e=Function.prototype,n=e.apply,r=e.call;return EDt="object"==typeof Reflect&&Reflect.apply||(t?r.bind(n):function(){return r.apply(n,arguments)}),EDt}function MDt(){if(ODt)return DDt;ODt=1;var t=cEt(),e=fSt(),n=hCt(),r=pEt(),o=t("".charAt),i=t("".charCodeAt),u=t("".slice),a=function(t){return function(a,s){var c,l,f=n(r(a)),d=e(s),p=f.length;return d<0||d>=p?t?"":void 0:(c=i(f,d))<55296||c>56319||d+1===p||(l=i(f,d+1))<56320||l>57343?t?o(f,d):c:t?u(f,d,d+2):l-56320+(c-55296<<10)+65536}};return DDt={codeAt:a(!1),charAt:a(!0)}}function zDt(){if(BDt)return IDt;BDt=1;var t=bbt(),e=rwt(),n=mEt(),r=function(){if(kDt)return PDt;kDt=1;var t=ubt(),e=gbt(),n=t.RegExp,r=!e(function(){var t=!0;try{n(".","d")}catch(e){t=!1}var e={},r="",o=t?"dgimsy":"gimsy",i=function(t,n){Object.defineProperty(e,t,{get:function(){return r+=n,!0}})},u={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in t&&(u.hasIndices="d"),u)i(a,u[a]);return Object.getOwnPropertyDescriptor(n.prototype,"flags").get.call(e)!==o||r!==o});return PDt={correct:r}}(),o=dDt(),i=RegExp.prototype;return IDt=r.correct?function(t){return t.flags}:function(u){return r.correct||!n(i,u)||e(u,"flags")?u.flags:t(o,u)}}!function(){if(_Dt)return jDt;_Dt=1;var t=LDt(),e=bbt(),n=cEt(),r=function(){if(CDt)return SDt;CDt=1,hDt();var t=bbt(),e=Wwt(),n=pDt(),r=gbt(),o=iwt(),i=Swt(),u=o("species"),a=RegExp.prototype;return SDt=function(s,c,l,f){var d=o(s),p=!r(function(){var t={};return t[d]=function(){return 7},7!==""[s](t)}),h=p&&!r(function(){var t=!1,e=/a/;return"split"===s&&((e={}).constructor={},e.constructor[u]=function(){return e},e.flags="",e[d]=/./[d]),e.exec=function(){return t=!0,null},e[d](""),!t});if(!p||!h||l){var v=/./[d],g=c(d,""[s],function(e,r,o,i,u){var s=r.exec;return s===n||s===a.exec?p&&!u?{done:!0,value:t(v,r,o,i)}:{done:!0,value:t(e,o,r,i)}:{done:!1}});e(String.prototype,s,g[0]),e(a,d,g[1])}f&&i(a[d],"sham",!0)}}(),o=gbt(),i=Ewt(),u=vEt(),a=gEt(),s=fSt(),c=pSt(),l=hCt(),f=pEt(),d=function(){if(xDt)return ADt;xDt=1;var t=MDt().charAt;return ADt=function(e,n,r){return n+(r?t(e,n).length:1)}}(),p=AEt(),h=function(){if(NDt)return TDt;NDt=1;var t=cEt(),e=nwt(),n=Math.floor,r=t("".charAt),o=t("".replace),i=t("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,a=/\$([$&'`]|\d{1,2})/g;return TDt=function(t,s,c,l,f,d){var p=c+t.length,h=l.length,v=a;return void 0!==f&&(f=e(f),v=u),o(d,v,function(e,o){var u;switch(r(o,0)){case"$":return"$";case"&":return t;case"`":return i(s,0,c);case"'":return i(s,p);case"<":u=f[i(o,1,-1)];break;default:var a=+o;if(0===a)return e;if(a>h){var d=n(a/10);return 0===d?e:d<=h?void 0===l[d-1]?r(o,1):l[d-1]+r(o,1):e}u=l[a-1]}return void 0===u?"":u})}}(),v=zDt(),g=function(){if(RDt)return FDt;RDt=1;var t=bbt(),e=Ewt(),n=vEt(),r=lEt(),o=pDt(),i=TypeError;return FDt=function(u,a){var s=u.exec;if(n(s)){var c=t(s,u,a);return null!==c&&e(c),c}if("RegExp"===r(u))return t(o,u,a);throw new i("RegExp#exec called on incompatible receiver")}}(),y=iwt()("replace"),m=Math.max,b=Math.min,E=n([].concat),w=n([].push),S=n("".indexOf),C=n("".slice),D=function(t){return void 0===t?t:String(t)},O="$0"==="a".replace(/./,"$0"),A=!!/./[y]&&""===/./[y]("a","$0");r("replace",function(n,r,o){var O=A?"$":"$0";return[function(t,n){var o=f(this),i=a(t)?p(t,y):void 0;return i?e(i,t,o,n):e(r,l(o),t,n)},function(e,n){var a=i(this),f=l(e);if("string"==typeof n&&-1===S(n,O)&&-1===S(n,"$<")){var p=o(r,a,f,n);if(p.done)return p.value}var y=u(n);y||(n=l(n));var A,x=l(v(a)),T=-1!==S(x,"g");T&&(A=-1!==S(x,"u"),a.lastIndex=0);for(var N,P=[];null!==(N=g(a,f))&&(w(P,N),T);)""===l(N[0])&&(a.lastIndex=d(f,c(a.lastIndex),A));for(var k="",I=0,B=0;B<P.length;B++){for(var F,R=l((N=P[B])[0]),_=m(b(s(N.index),f.length),0),j=[],L=1;L<N.length;L++)w(j,D(N[L]));var M=N.groups;if(y){var z=E([R],j,_,f);void 0!==M&&w(z,M),F=l(t(n,void 0,z))}else F=h(R,f,_,j,M,n);_>=I&&(k+=C(f,I,_)+F,I=_+R.length)}return k+C(f,I)}]},!!o(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})||!O||A)}();var HDt,$Dt,UDt,VDt,GDt,WDt,qDt,KDt,YDt,XDt={};function JDt(){return $Dt?HDt:($Dt=1,HDt={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 ZDt(){if(VDt)return UDt;VDt=1;var t=swt()("span").classList,e=t&&t.constructor&&t.constructor.prototype;return UDt=e===Object.prototype?void 0:e}function QDt(){if(WDt)return GDt;WDt=1;var t=gbt();return GDt=function(e,n){var r=[][e];return!!r&&t(function(){r.call(null,n||function(){return 1},1)})}}function tOt(t){return void 0===t&&(t="r"),"".concat(t,"-").concat(vh())}function eOt(t){var e={};return t.trim().split(";").forEach(function(t){if(t){var n=mDt(t.split(":"),2),r=n[0],o=n[1];r&&o&&(e[r.trim()]=o.trim())}}),e}function nOt(){return tOt("w-e-insert-video")}!function(){if(YDt)return XDt;YDt=1;var t=ubt(),e=JDt(),n=ZDt(),r=function(){if(KDt)return qDt;KDt=1;var t=RCt().forEach,e=QDt()("forEach");return qDt=e?[].forEach:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)},qDt}(),o=Swt(),i=function(t){if(t&&t.forEach!==r)try{o(t,"forEach",r)}catch(e){t.forEach=r}};for(var u in e)e[u]&&i(t[u]&&t[u].prototype);i(n)}();var rOt=function(){function t(){this.title=dI("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=nOt(),this.heightInputId=nOt(),this.buttonId=nOt()}return t.prototype.getSelectedVideoNode=function(t){return eP.getSelectedNodeByType(t,"video")},t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.exec=function(t,e){},t.prototype.isDisabled=function(t){return null==t.selection||null==this.getSelectedVideoNode(t)},t.prototype.getModalPositionNode=function(t){return this.getSelectedVideoNode(t)},t.prototype.getModalContentElem=function(t){var e=this,n=e.widthInputId,r=e.heightInputId,o=e.buttonId,i=mDt(CI(dI("videoModule.width"),n,"auto"),2),u=i[0],a=Rp(i[1]),s=mDt(CI(dI("videoModule.height"),r,"auto"),2),c=s[0],l=Rp(s[1]),f=mDt(DI(o,dI("videoModule.ok")),1)[0],d=this.getSelectedVideoNode(t);if(null==this.$content){var p=Rp("<div></div>");p.on("click","#".concat(o),function(e){e.preventDefault();var o=p.find("#".concat(n)).val().trim(),i=p.find("#".concat(r)).val().trim(),u=function(t){return/^\d+(\.\d+)?%$/.test(t)},a=function(t){return/^\d+(\.\d+)?$/.test(t)},s="auto",c="auto";u(o)?s=o:a(o)&&(s="".concat(parseInt(o,10),"px")),u(i)?c=i:a(i)&&(c="".concat(parseInt(i,10),"px"));var l=d.style,f=void 0===l?{}:l;t.restoreSelection();var h={style:vDt(vDt({},f),{width:s,height:c})};yp.Transforms.setNodes(t,h,{match:function(t){return eP.checkNodeType(t,"video")}}),t.hidePanelOrModal()}),this.$content=p}var h=this.$content;if(h.empty(),h.append(u),h.append(c),h.append(f),null==d)return h[0];var v=d.style,g=void 0===v?{}:v,y=g.width,m=void 0===y?"":y,b=g.height,E=void 0===b?"":b;return a.val(m),l.val(E),setTimeout(function(){a.focus()}),h[0]},t}();function oOt(){return tOt("w-e-edit-video")}var iOt,uOt,aOt,sOt,cOt,lOt,fOt,dOt,pOt,hOt,vOt,gOt,yOt,mOt,bOt,EOt,wOt,SOt,COt,DOt,OOt,AOt,xOt,TOt,NOt,POt,kOt,IOt,BOt,FOt,ROt,_Ot,jOt,LOt,MOt,zOt,HOt,$Ot,UOt,VOt,GOt,WOt,qOt,KOt,YOt,XOt,JOt,ZOt,QOt,tAt,eAt=function(){function t(){this.title=dI("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=oOt(),this.posterInputId=oOt(),this.buttonId=oOt()}return t.prototype.getSelectedVideoNode=function(t){return eP.getSelectedNodeByType(t,"video")},t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.exec=function(t,e){},t.prototype.isDisabled=function(t){return null==t.selection||null==this.getSelectedVideoNode(t)},t.prototype.getModalPositionNode=function(t){return this.getSelectedVideoNode(t)},t.prototype.getModalContentElem=function(t){var e=this,n=this,r=n.srcInputId,o=n.posterInputId,i=n.buttonId,u=mDt(CI(dI("videoModule.videoSrc"),r,dI("videoModule.videoSrcPlaceHolder")),2),a=u[0],s=u[1],c=mDt(CI(dI("videoModule.videoPoster"),o,dI("videoModule.videoPosterPlaceHolder")),2),l=c[0],f=c[1],d=Rp(s),p=Rp(f),h=mDt(DI(i,dI("videoModule.ok")),1)[0];if(null==this.$content){var v=Rp("<div></div>");v.on("click","#".concat(i),function(n){return gDt(e,void 0,void 0,function(){var e,i,u,a;return yDt(this,function(s){return n.preventDefault(),e=v.find("#".concat(r)).val().trim(),i=v.find("#".concat(o)).val().trim(),u=tOt("video-"),a={src:e,poster:i,key:u},t.restoreSelection(),yp.Transforms.setNodes(t,a,{match:function(t){return eP.checkNodeType(t,"video")}}),t.hidePanelOrModal(),[2]})})}),this.$content=v}var g=this.$content;g.empty(),g.append(a),g.append(l),g.append(h);var y=this.getSelectedVideoNode(t);if(null==y)return g[0];var m=y.src,b=void 0===m?"":m,E=y.poster,w=void 0===E?"":E;return d.val(b),p.val(w),setTimeout(function(){d.focus()}),g[0]},t}(),nAt={};function rAt(){if(uOt)return iOt;uOt=1;var t=ubt(),e=bEt(),n=lEt(),r=function(t){return e.slice(0,t.length)===t};return iOt=r("Bun/")?"BUN":r("Cloudflare-Workers")?"CLOUDFLARE":r("Deno/")?"DENO":r("Node.js/")?"NODE":t.Bun&&"string"==typeof Bun.version?"BUN":t.Deno&&"object"==typeof Deno.version?"DENO":"process"===n(t.process)?"NODE":t.window&&t.document?"BROWSER":"REST"}function oAt(){if(sOt)return aOt;sOt=1;var t=rAt();return aOt="NODE"===t}function iAt(){if(gOt)return vOt;gOt=1;var t=function(){if(hOt)return pOt;hOt=1;var t=gEt();return pOt=function(e){return t(e)||null===e}}(),e=String,n=TypeError;return vOt=function(r){if(t(r))return r;throw new n("Can't set "+e(r)+" as a prototype")}}function uAt(){if(mOt)return yOt;mOt=1;var t=function(){if(dOt)return fOt;dOt=1;var t=cEt(),e=OEt();return fOt=function(n,r,o){try{return t(e(Object.getOwnPropertyDescriptor(n,r)[o]))}catch(t){}}}(),e=gEt(),n=pEt(),r=iAt();return yOt=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 n(t),r(u),e(t)?(i?o(t,u):t.__proto__=u,t):t}}():void 0)}function aAt(){if(EOt)return bOt;EOt=1;var t=wwt().f,e=rwt(),n=iwt()("toStringTag");return bOt=function(r,o,i){r&&!i&&(r=r.prototype),r&&!e(r,n)&&t(r,n,{configurable:!0,value:o})}}function sAt(){if(SOt)return wOt;SOt=1;var t=yEt(),e=ACt(),n=iwt(),r=ybt(),o=n("species");return wOt=function(n){var i=t(n);r&&i&&!i[o]&&e(i,o,{configurable:!0,get:function(){return this}})}}function cAt(){if(DOt)return COt;DOt=1;var t=mEt(),e=TypeError;return COt=function(n,r){if(t(r,n))return n;throw new e("Incorrect invocation")}}function lAt(){if(TOt)return xOt;TOt=1;var t=Ewt(),e=function(){if(AOt)return OOt;AOt=1;var t=eCt(),e=DEt(),n=TypeError;return OOt=function(r){if(t(r))return r;throw new n(e(r)+" is not a constructor")}}(),n=dEt(),r=iwt()("species");return xOt=function(o,i){var u,a=t(o).constructor;return void 0===a||n(u=t(a)[r])?i:e(u)}}function fAt(){if(POt)return NOt;POt=1;var t=cEt();return NOt=t([].slice)}function dAt(){if(FOt)return BOt;FOt=1;var t=bEt();return BOt=/(?:ipad|iphone|ipod).*applewebkit/i.test(t)}function pAt(){if(_Ot)return ROt;_Ot=1;var t,e,n,r,o=ubt(),i=LDt(),u=FCt(),a=vEt(),s=rwt(),c=gbt(),l=qCt(),f=fAt(),d=swt(),p=function(){if(IOt)return kOt;IOt=1;var t=TypeError;return kOt=function(e,n){if(e<n)throw new t("Not enough arguments");return e}}(),h=dAt(),v=oAt(),g=o.setImmediate,y=o.clearImmediate,m=o.process,b=o.Dispatch,E=o.Function,w=o.MessageChannel,S=o.String,C=0,D={},O="onreadystatechange";c(function(){t=o.location});var A=function(t){if(s(D,t)){var e=D[t];delete D[t],e()}},x=function(t){return function(){A(t)}},T=function(t){A(t.data)},N=function(e){o.postMessage(S(e),t.protocol+"//"+t.host)};return g&&y||(g=function(t){p(arguments.length,1);var n=a(t)?t:E(t),r=f(arguments,1);return D[++C]=function(){i(n,void 0,r)},e(C),C},y=function(t){delete D[t]},v?e=function(t){m.nextTick(x(t))}:b&&b.now?e=function(t){b.now(x(t))}:w&&!h?(r=(n=new w).port2,n.port1.onmessage=T,e=u(r.postMessage,r)):o.addEventListener&&a(o.postMessage)&&!o.importScripts&&t&&"file:"!==t.protocol&&!c(N)?(e=N,o.addEventListener("message",T,!1)):e=O in d("script")?function(t){l.appendChild(d("script"))[O]=function(){l.removeChild(this),A(t)}}:function(t){setTimeout(x(t),0)}),ROt={set:g,clear:y}}function hAt(){if(zOt)return MOt;zOt=1;var t=function(){this.head=null,this.tail=null};return t.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}},MOt=t}function vAt(){if(WOt)return GOt;WOt=1;var t,e,n,r,o,i=ubt(),u=function(){if(LOt)return jOt;LOt=1;var t=ubt(),e=ybt(),n=Object.getOwnPropertyDescriptor;return jOt=function(r){if(!e)return t[r];var o=n(t,r);return o&&o.value}}(),a=FCt(),s=pAt().set,c=hAt(),l=dAt(),f=function(){if($Ot)return HOt;$Ot=1;var t=bEt();return HOt=/ipad|iphone|ipod/i.test(t)&&"undefined"!=typeof Pebble}(),d=function(){if(VOt)return UOt;VOt=1;var t=bEt();return UOt=/web0s(?!.*chrome)/i.test(t)}(),p=oAt(),h=i.MutationObserver||i.WebKitMutationObserver,v=i.document,g=i.process,y=i.Promise,m=u("queueMicrotask");if(!m){var b=new c,E=function(){var e,n;for(p&&(e=g.domain)&&e.exit();n=b.get();)try{n()}catch(e){throw b.head&&t(),e}e&&e.enter()};l||p||d||!h||!v?!f&&y&&y.resolve?((r=y.resolve(void 0)).constructor=y,o=a(r.then,r),t=function(){o(E)}):p?t=function(){g.nextTick(E)}:(s=a(s,i),t=function(){s(E)}):(e=!0,n=v.createTextNode(""),new h(E).observe(n,{characterData:!0}),t=function(){n.data=e=!e}),m=function(e){b.head||t(),b.add(e)}}return GOt=m}function gAt(){return XOt?YOt:(XOt=1,YOt=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}})}function yAt(){if(ZOt)return JOt;ZOt=1;var t=ubt();return JOt=t.Promise}function mAt(){if(tAt)return QOt;tAt=1;var t=ubt(),e=yAt(),n=vEt(),r=YSt(),o=zwt(),i=iwt(),u=rAt(),a=ZEt(),s=EEt(),c=e&&e.prototype,l=i("species"),f=!1,d=n(t.PromiseRejectionEvent),p=r("Promise",function(){var t=o(e),n=t!==String(e);if(!n&&66===s)return!0;if(a&&(!c.catch||!c.finally))return!0;if(!s||s<51||!/native code/.test(t)){var r=new e(function(t){t(1)}),i=function(t){t(function(){},function(){})};if((r.constructor={})[l]=i,!(f=r.then(function(){})instanceof i))return!0}return!(n||"BROWSER"!==u&&"DENO"!==u||d)});return QOt={CONSTRUCTOR:p,REJECTION_EVENT:d,SUBCLASSING:f}}var bAt,EAt,wAt={};function SAt(){if(bAt)return wAt;bAt=1;var t=OEt(),e=TypeError,n=function(n){var r,o;this.promise=new n(function(t,n){if(void 0!==r||void 0!==o)throw new e("Bad Promise constructor");r=t,o=n}),this.resolve=t(r),this.reject=t(o)};return wAt.f=function(t){return new n(t)},wAt}var CAt,DAt,OAt,AAt,xAt,TAt,NAt,PAt,kAt,IAt,BAt,FAt,RAt,_At,jAt,LAt,MAt,zAt={};function HAt(){return DAt?CAt:(DAt=1,CAt={})}function $At(){if(TAt)return xAt;TAt=1;var t=tCt(),e=AEt(),n=dEt(),r=HAt(),o=iwt()("iterator");return xAt=function(i){if(!n(i))return e(i,o)||e(i,"@@iterator")||r[t(i)]}}function UAt(){if(FAt)return BAt;FAt=1;var t=FCt(),e=bbt(),n=Ewt(),r=DEt(),o=function(){if(AAt)return OAt;AAt=1;var t=iwt(),e=HAt(),n=t("iterator"),r=Array.prototype;return OAt=function(t){return void 0!==t&&(e.Array===t||r[n]===t)}}(),i=hSt(),u=mEt(),a=function(){if(PAt)return NAt;PAt=1;var t=bbt(),e=OEt(),n=Ewt(),r=DEt(),o=$At(),i=TypeError;return NAt=function(u,a){var s=arguments.length<2?o(u):a;if(e(s))return n(t(s,u));throw new i(r(u)+" is not iterable")},NAt}(),s=$At(),c=function(){if(IAt)return kAt;IAt=1;var t=bbt(),e=Ewt(),n=AEt();return kAt=function(r,o,i){var u,a;e(r);try{if(!(u=n(r,"return"))){if("throw"===o)throw i;return i}u=t(u,r)}catch(t){a=!0,u=t}if("throw"===o)throw i;if(a)throw u;return e(u),i}}(),l=TypeError,f=function(t,e){this.stopped=t,this.result=e},d=f.prototype;return BAt=function(p,h,v){var g,y,m,b,E,w,S,C=v&&v.that,D=!(!v||!v.AS_ENTRIES),O=!(!v||!v.IS_RECORD),A=!(!v||!v.IS_ITERATOR),x=!(!v||!v.INTERRUPTED),T=t(h,C),N=function(t){return g&&c(g,"normal"),new f(!0,t)},P=function(t){return D?(n(t),x?T(t[0],t[1],N):T(t[0],t[1])):x?T(t,N):T(t)};if(O)g=p.iterator;else if(A)g=p;else{if(!(y=s(p)))throw new l(r(p)+" is not iterable");if(o(y)){for(m=0,b=i(p);b>m;m++)if((E=P(p[m]))&&u(d,E))return E;return new f(!1)}g=a(p,y)}for(w=O?p.next:g.next;!(S=e(w,g)).done;){try{E=P(S.value)}catch(t){c(g,"throw",t)}if("object"==typeof E&&E&&u(d,E))return E}return new f(!1)}}function VAt(){if(_At)return RAt;_At=1;var t=iwt()("iterator"),e=!1;try{var n=0,r={next:function(){return{done:!!n++}},return:function(){e=!0}};r[t]=function(){return this},Array.from(r,function(){throw 2})}catch(t){}return RAt=function(n,r){try{if(!r&&!e)return!1}catch(t){return!1}var o=!1;try{var i={};i[t]=function(){return{next:function(){return{done:o=!0}}}},n(i)}catch(t){}return o}}function GAt(){if(LAt)return jAt;LAt=1;var t=yAt(),e=VAt(),n=mAt().CONSTRUCTOR;return jAt=n||!e(function(e){t.all(e).then(void 0,function(){})})}var WAt,qAt,KAt,YAt,XAt,JAt,ZAt,QAt={},txt={},ext={},nxt={};function rxt(t,e){return gDt(this,arguments,void 0,function(t,e,n,r,o){var i,u,a,s,c,l,f;return void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o=""),yDt(this,function(d){switch(d.label){case 0:return e?(t.restoreSelection(),i=t.getMenuConfig("insertVideo"),u=i.onInsertedVideo,a=i.checkVideo,s=i.parseVideoSrc,[4,a(e,n)]):[2];case 1:return"string"==typeof(c=d.sent())?(t.alert(c,"error"),[2]):null==c?[2]:[4,s(e)];case 2:return 0!==(l=d.sent()).trim().indexOf("<iframe ")&&(l=l.replace(/</g,"&lt;").replace(/>/g,"&gt;")),f={type:"video",src:l,poster:n,children:[{text:""}],style:{width:r,height:o}},Promise.resolve().then(function(){eP.isSelectedEmptyParagraph(t)&&yp.Transforms.removeNodes(t,{mode:"highest"}),yp.Transforms.insertNodes(t,f,{mode:"highest"})}),u(f),[2]}})})}function oxt(){return tOt("w-e-insert-video")}ZAt||(ZAt=1,function(){if(EAt)return nAt;EAt=1;var t,e,n,r,o=XSt(),i=ZEt(),u=oAt(),a=ubt(),s=function(){if(lOt)return cOt;lOt=1;var t=ubt();return cOt=t}(),c=bbt(),l=Wwt(),f=uAt(),d=aAt(),p=sAt(),h=OEt(),v=vEt(),g=gEt(),y=cAt(),m=lAt(),b=pAt().set,E=vAt(),w=(KOt||(KOt=1,qOt=function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}}),qOt),S=gAt(),C=hAt(),D=Vwt(),O=yAt(),A=mAt(),x=SAt(),T="Promise",N=A.CONSTRUCTOR,P=A.REJECTION_EVENT,k=A.SUBCLASSING,I=D.getterFor(T),B=D.set,F=O&&O.prototype,R=O,_=F,j=a.TypeError,L=a.document,M=a.process,z=x.f,H=z,$=!!(L&&L.createEvent&&a.dispatchEvent),U="unhandledrejection",V=function(t){var e;return!(!g(t)||!v(e=t.then))&&e},G=function(t,e){var n,r,o,i=e.value,u=1===e.state,a=u?t.ok:t.fail,s=t.resolve,l=t.reject,f=t.domain;try{a?(u||(2===e.rejection&&X(e),e.rejection=1),!0===a?n=i:(f&&f.enter(),n=a(i),f&&(f.exit(),o=!0)),n===t.promise?l(new j("Promise-chain cycle")):(r=V(n))?c(r,n,s,l):s(n)):l(i)}catch(t){f&&!o&&f.exit(),l(t)}},W=function(t,e){t.notified||(t.notified=!0,E(function(){for(var n,r=t.reactions;n=r.get();)G(n,t);t.notified=!1,e&&!t.rejection&&K(t)}))},q=function(t,e,n){var r,o;$?((r=L.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),a.dispatchEvent(r)):r={promise:e,reason:n},!P&&(o=a["on"+t])?o(r):t===U&&w("Unhandled promise rejection",n)},K=function(t){c(b,a,function(){var e,n=t.facade,r=t.value;if(Y(t)&&(e=S(function(){u?M.emit("unhandledRejection",r,n):q(U,n,r)}),t.rejection=u||Y(t)?2:1,e.error))throw e.value})},Y=function(t){return 1!==t.rejection&&!t.parent},X=function(t){c(b,a,function(){var e=t.facade;u?M.emit("rejectionHandled",e):q("rejectionhandled",e,t.value)})},J=function(t,e,n){return function(r){t(e,r,n)}},Z=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,W(t,!0))},Q=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw new j("Promise can't be resolved itself");var r=V(e);r?E(function(){var n={done:!1};try{c(r,e,J(Q,n,t),J(Z,n,t))}catch(e){Z(n,e,t)}}):(t.value=e,t.state=1,W(t,!1))}catch(e){Z({done:!1},e,t)}}};if(N&&(_=(R=function(e){y(this,_),h(e),c(t,this);var n=I(this);try{e(J(Q,n),J(Z,n))}catch(t){Z(n,t)}}).prototype,(t=function(t){B(this,{type:T,done:!1,notified:!1,parent:!1,reactions:new C,rejection:!1,state:0,value:null})}).prototype=l(_,"then",function(t,e){var n=I(this),r=z(m(this,R));return n.parent=!0,r.ok=!v(t)||t,r.fail=v(e)&&e,r.domain=u?M.domain:void 0,0===n.state?n.reactions.add(r):E(function(){G(r,n)}),r.promise}),e=function(){var e=new t,n=I(e);this.promise=e,this.resolve=J(Q,n),this.reject=J(Z,n)},x.f=z=function(t){return t===R||t===n?new e(t):H(t)},!i&&v(O)&&F!==Object.prototype)){r=F.then,k||l(F,"then",function(t,e){var n=this;return new R(function(t,e){c(r,n,t,e)}).then(t,e)},{unsafe:!0});try{delete F.constructor}catch(t){}f&&f(F,_)}o({global:!0,constructor:!0,wrap:!0,forced:N},{Promise:R}),n=s.Promise,d(R,T,!1,!0),p(T)}(),function(){if(MAt)return zAt;MAt=1;var t=XSt(),e=bbt(),n=OEt(),r=SAt(),o=gAt(),i=UAt();t({target:"Promise",stat:!0,forced:GAt()},{all:function(t){var u=this,a=r.f(u),s=a.resolve,c=a.reject,l=o(function(){var r=n(u.resolve),o=[],a=0,l=1;i(t,function(t){var n=a++,i=!1;l++,e(r,u,t).then(function(t){i||(i=!0,o[n]=t,--l||s(o))},c)}),--l||s(o)});return l.error&&c(l.value),a.promise}})}(),function(){if(WAt)return QAt;WAt=1;var t=XSt(),e=ZEt(),n=mAt().CONSTRUCTOR,r=yAt(),o=yEt(),i=vEt(),u=Wwt(),a=r&&r.prototype;if(t({target:"Promise",proto:!0,forced:n,real:!0},{catch:function(t){return this.then(void 0,t)}}),!e&&i(r)){var s=o("Promise").prototype.catch;a.catch!==s&&u(a,"catch",s,{unsafe:!0})}}(),function(){if(qAt)return txt;qAt=1;var t=XSt(),e=bbt(),n=OEt(),r=SAt(),o=gAt(),i=UAt();t({target:"Promise",stat:!0,forced:GAt()},{race:function(t){var u=this,a=r.f(u),s=a.reject,c=o(function(){var r=n(u.resolve);i(t,function(t){e(r,u,t).then(a.resolve,s)})});return c.error&&s(c.value),a.promise}})}(),function(){if(KAt)return ext;KAt=1;var t=XSt(),e=SAt();t({target:"Promise",stat:!0,forced:mAt().CONSTRUCTOR},{reject:function(t){var n=e.f(this);return(0,n.reject)(t),n.promise}})}(),function(){if(JAt)return nxt;JAt=1;var t=XSt(),e=yEt(),n=ZEt(),r=yAt(),o=mAt().CONSTRUCTOR,i=function(){if(XAt)return YAt;XAt=1;var t=Ewt(),e=gEt(),n=SAt();return YAt=function(r,o){if(t(r),e(o)&&o.constructor===r)return o;var i=n.f(r);return(0,i.resolve)(o),i.promise}}(),u=e("Promise"),a=n&&!o;t({target:"Promise",stat:!0,forced:n||o},{resolve:function(t){return i(a&&this===u?r:this,t)}})}());var ixt,uxt,axt,sxt,cxt,lxt,fxt,dxt,pxt,hxt,vxt,gxt,yxt,mxt,bxt,Ext=function(){function t(){this.title=dI("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=oxt(),this.posterInputId=oxt(),this.buttonId=oxt()}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.exec=function(t,e){},t.prototype.isDisabled=function(t){var e=t.selection;return null==e||!yp.Range.isCollapsed(e)||!!eP.getSelectedElems(t).some(function(e){var n=eP.getNodeType(e);return"pre"===n||"list-item"===n||!!t.isVoid(e)})},t.prototype.getModalPositionNode=function(t){return null},t.prototype.getModalContentElem=function(t){var e=this,n=this,r=n.srcInputId,o=n.posterInputId,i=n.buttonId,u=mDt(CI(dI("videoModule.videoSrc"),r,dI("videoModule.videoSrcPlaceHolder")),2),a=u[0],s=u[1],c=mDt(CI(dI("videoModule.videoPoster"),o,dI("videoModule.videoPosterPlaceHolder")),2),l=c[0],f=c[1],d=Rp(s),p=Rp(f),h=mDt(DI(i,dI("videoModule.ok")),1)[0];if(null==this.$content){var v=Rp("<div></div>");v.on("click","#".concat(i),function(n){return gDt(e,void 0,void 0,function(){var e,i;return yDt(this,function(u){switch(u.label){case 0:return n.preventDefault(),e=v.find("#".concat(r)).val().trim(),i=v.find("#".concat(o)).val().trim(),[4,rxt(t,e,i)];case 1:return u.sent(),t.hidePanelOrModal(),[2]}})})}),this.$content=v}var g=this.$content;return g.empty(),g.append(a),g.append(l),g.append(h),d.val(""),p.val(""),setTimeout(function(){d.focus()}),g[0]},t}(),wxt={};function Sxt(){if(cxt)return sxt;cxt=1;var t=rwt(),e=vEt(),n=nwt(),r=$wt(),o=function(){if(axt)return uxt;axt=1;var t=gbt();return uxt=!t(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})}(),i=r("IE_PROTO"),u=Object,a=u.prototype;return sxt=o?u.getPrototypeOf:function(r){var o=n(r);if(t(o,i))return o[i];var s=o.constructor;return e(s)&&o instanceof s?s.prototype:o instanceof u?a:null}}function Cxt(){if(fxt)return lxt;fxt=1;var t,e,n,r=gbt(),o=vEt(),i=gEt(),u=KCt(),a=Sxt(),s=Wwt(),c=iwt(),l=ZEt(),f=c("iterator"),d=!1;return[].keys&&("next"in(n=[].keys())?(e=a(a(n)))!==Object.prototype&&(t=e):d=!0),!i(t)||r(function(){var e={};return t[f].call(e)!==e})?t={}:l&&(t=u(t)),o(t[f])||s(t,f,function(){return this}),lxt={IteratorPrototype:t,BUGGY_SAFARI_ITERATORS:d}}function Dxt(){if(vxt)return hxt;vxt=1;var t=XSt(),e=bbt(),n=ZEt(),r=Mwt(),o=vEt(),i=function(){if(pxt)return dxt;pxt=1;var t=Cxt().IteratorPrototype,e=KCt(),n=sEt(),r=aAt(),o=HAt(),i=function(){return this};return dxt=function(u,a,s,c){var l=a+" Iterator";return u.prototype=e(t,{next:n(+!c,s)}),r(u,l,!1,!0),o[l]=i,u}}(),u=Sxt(),a=uAt(),s=aAt(),c=Swt(),l=Wwt(),f=iwt(),d=HAt(),p=Cxt(),h=r.PROPER,v=r.CONFIGURABLE,g=p.IteratorPrototype,y=p.BUGGY_SAFARI_ITERATORS,m=f("iterator"),b="keys",E="values",w="entries",S=function(){return this};return hxt=function(r,f,p,C,D,O,A){i(p,f,C);var x,T,N,P=function(t){if(t===D&&R)return R;if(!y&&t&&t in B)return B[t];switch(t){case b:case E:case w:return function(){return new p(this,t)}}return function(){return new p(this)}},k=f+" Iterator",I=!1,B=r.prototype,F=B[m]||B["@@iterator"]||D&&B[D],R=!y&&F||P(D),_="Array"===f&&B.entries||F;if(_&&(x=u(_.call(new r)))!==Object.prototype&&x.next&&(n||u(x)===g||(a?a(x,g):o(x[m])||l(x,m,S)),s(x,k,!0,!0),n&&(d[k]=S)),h&&D===E&&F&&F.name!==E&&(!n&&v?c(B,"name",E):(I=!0,R=function(){return e(F,this)})),D)if(T={values:P(E),keys:O?R:P(b),entries:P(w)},A)for(N in T)(y||I||!(N in B))&&l(B,N,T[N]);else t({target:f,proto:!0,forced:y||I},T);return n&&!A||B[m]===R||l(B,m,R,{name:D}),d[f]=R,T}}function Oxt(){return yxt?gxt:(yxt=1,gxt=function(t,e){return{value:t,done:e}})}function Axt(){if(bxt)return mxt;bxt=1;var t=hEt(),e=YCt(),n=HAt(),r=Vwt(),o=wwt().f,i=Dxt(),u=Oxt(),a=ZEt(),s=ybt(),c="Array Iterator",l=r.set,f=r.getterFor(c);mxt=i(Array,"Array",function(e,n){l(this,{type:c,target:t(e),index:0,kind:n})},function(){var t=f(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=null,u(void 0,!0);switch(t.kind){case"keys":return u(n,!1);case"values":return u(e[n],!1)}return u([n,e[n]],!1)},"values");var d=n.Arguments=n.Array;if(e("keys"),e("values"),e("entries"),!a&&s&&"values"!==d.name)try{o(d,"name",{value:"values"})}catch(t){}return mxt}!function(){if(ixt)return wxt;ixt=1;var t=XSt(),e=cEt(),n=fEt(),r=hEt(),o=QDt(),i=e([].join);t({target:"Array",proto:!0,forced:n!==Object||!o("join",",")},{join:function(t){return i(r(this),void 0===t?",":t)}})}(),Axt();var xxt,Txt={};!function(){if(xxt)return Txt;xxt=1;var t=XSt(),e=RCt().map;t({target:"Array",proto:!0,forced:!rCt()("map")},{map:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}})}();var Nxt,Pxt={};!function(){if(Nxt)return Pxt;Nxt=1;var t=XSt(),e=JSt(),n=eCt(),r=gEt(),o=dSt(),i=hSt(),u=hEt(),a=ZSt(),s=iwt(),c=rCt(),l=fAt(),f=c("slice"),d=s("species"),p=Array,h=Math.max;t({target:"Array",proto:!0,forced:!f},{slice:function(t,s){var c,f,v,g=u(this),y=i(g),m=o(t,y),b=o(void 0===s?y:s,y);if(e(g)&&(c=g.constructor,(n(c)&&(c===p||e(c.prototype))||r(c)&&null===(c=c[d]))&&(c=void 0),c===p||void 0===c))return l(g,m,b);for(f=new(void 0===c?p:c)(h(b-m,0)),v=0;m<b;m++,v++)m in g&&a(f,v,g[m]);return f.length=v,f}})}();var kxt,Ixt={};!function(){if(kxt)return Ixt;kxt=1;var t=MDt().charAt,e=hCt(),n=Vwt(),r=Dxt(),o=Oxt(),i="String Iterator",u=n.set,a=n.getterFor(i);r(String,"String",function(t){u(this,{type:i,string:e(t),index:0})},function(){var e,n=a(this),r=n.string,i=n.index;return i>=r.length?o(void 0,!0):(e=t(r,i),n.index+=e.length,o(e,!1))})}();var Bxt,Fxt,Rxt,_xt,jxt={};function Lxt(){if(Fxt)return Bxt;Fxt=1;var t=gbt();return Bxt=!t(function(){return Object.isExtensible(Object.preventExtensions({}))})}function Mxt(){if(_xt)return Rxt;_xt=1;var t=Wwt();return Rxt=function(e,n,r){for(var o in n)t(e,o,n[o],r);return e}}var zxt,Hxt,$xt,Uxt,Vxt,Gxt,Wxt,qxt,Kxt,Yxt,Xxt,Jxt,Zxt,Qxt,tTt={exports:{}},eTt={};function nTt(){if(Gxt)return tTt.exports;Gxt=1;var t=XSt(),e=cEt(),n=Uwt(),r=gEt(),o=rwt(),i=wwt().f,u=mSt(),a=function(){if(zxt)return eTt;zxt=1;var t=lEt(),e=hEt(),n=mSt().f,r=fAt(),o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];return eTt.f=function(i){return o&&"Window"===t(i)?function(t){try{return n(t)}catch(t){return r(o)}}(i):n(e(i))},eTt}(),s=function(){if(Vxt)return Uxt;Vxt=1;var t=gbt(),e=gEt(),n=lEt(),r=function(){if($xt)return Hxt;$xt=1;var t=gbt();return Hxt=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 Uxt=i||r?function(t){return!!e(t)&&(!r||"ArrayBuffer"!==n(t))&&(!o||o(t))}:o}(),c=owt(),l=Lxt(),f=!1,d=c("meta"),p=0,h=function(t){i(t,d,{value:{objectID:"O"+p++,weakData:{}}})},v=tTt.exports={enable:function(){v.enable=function(){},f=!0;var n=u.f,r=e([].splice),o={};o[d]=1,n(o).length&&(u.f=function(t){for(var e=n(t),o=0,i=e.length;o<i;o++)if(e[o]===d){r(e,o,1);break}return e},t({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:a.f}))},fastKey:function(t,e){if(!r(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,d)){if(!s(t))return"F";if(!e)return"E";h(t)}return t[d].objectID},getWeakData:function(t,e){if(!o(t,d)){if(!s(t))return!0;if(!e)return!1;h(t)}return t[d].weakData},onFreeze:function(t){return l&&f&&s(t)&&!o(t,d)&&h(t),t}};return n[d]=!0,tTt.exports}function rTt(){if(Yxt)return Kxt;Yxt=1;var t=XSt(),e=ubt(),n=cEt(),r=YSt(),o=Wwt(),i=nTt(),u=UAt(),a=cAt(),s=vEt(),c=dEt(),l=gEt(),f=gbt(),d=VAt(),p=aAt(),h=function(){if(qxt)return Wxt;qxt=1;var t=vEt(),e=gEt(),n=uAt();return Wxt=function(r,o,i){var u,a;return n&&t(u=o.constructor)&&u!==i&&e(a=u.prototype)&&a!==i.prototype&&n(r,a),r}}();return Kxt=function(v,g,y){var m=-1!==v.indexOf("Map"),b=-1!==v.indexOf("Weak"),E=m?"set":"add",w=e[v],S=w&&w.prototype,C=w,D={},O=function(t){var e=n(S[t]);o(S,t,"add"===t?function(t){return e(this,0===t?0:t),this}:"delete"===t?function(t){return!(b&&!l(t))&&e(this,0===t?0:t)}:"get"===t?function(t){return b&&!l(t)?void 0:e(this,0===t?0:t)}:"has"===t?function(t){return!(b&&!l(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this})};if(r(v,!s(w)||!(b||S.forEach&&!f(function(){(new w).entries().next()}))))C=y.getConstructor(g,v,m,E),i.enable();else if(r(v,!0)){var A=new C,x=A[E](b?{}:-0,1)!==A,T=f(function(){A.has(1)}),N=d(function(t){new w(t)}),P=!b&&f(function(){for(var t=new w,e=5;e--;)t[E](e,e);return!t.has(-0)});N||((C=g(function(t,e){a(t,S);var n=h(new w,t,C);return c(e)||u(e,n[E],{that:n,AS_ENTRIES:m}),n})).prototype=S,S.constructor=C),(T||P)&&(O("delete"),O("has"),m&&O("get")),(P||x)&&O(E),b&&S.clear&&delete S.clear}return D[v]=C,t({global:!0,constructor:!0,forced:C!==w},D),p(C,v),b||y.setStrong(C,v,m),C}}Qxt||(Qxt=1,function(){if(Zxt)return jxt;Zxt=1;var t,e=Lxt(),n=ubt(),r=cEt(),o=Mxt(),i=nTt(),u=rTt(),a=function(){if(Jxt)return Xxt;Jxt=1;var t=cEt(),e=Mxt(),n=nTt().getWeakData,r=cAt(),o=Ewt(),i=dEt(),u=gEt(),a=UAt(),s=RCt(),c=rwt(),l=Vwt(),f=l.set,d=l.getterFor,p=s.find,h=s.findIndex,v=t([].splice),g=0,y=function(t){return t.frozen||(t.frozen=new m)},m=function(){this.entries=[]},b=function(t,e){return p(t.entries,function(t){return t[0]===e})};return m.prototype={get:function(t){var e=b(this,t);if(e)return e[1]},has:function(t){return!!b(this,t)},set:function(t,e){var n=b(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=h(this.entries,function(e){return e[0]===t});return~e&&v(this.entries,e,1),!!~e}},Xxt={getConstructor:function(t,s,l,p){var h=t(function(t,e){r(t,v),f(t,{type:s,id:g++,frozen:null}),i(e)||a(e,t[p],{that:t,AS_ENTRIES:l})}),v=h.prototype,m=d(s),b=function(t,e,r){var i=m(t),u=n(o(e),!0);return!0===u?y(i).set(e,r):u[i.id]=r,t};return e(v,{delete:function(t){var e=m(this);if(!u(t))return!1;var r=n(t);return!0===r?y(e).delete(t):r&&c(r,e.id)&&delete r[e.id]},has:function(t){var e=m(this);if(!u(t))return!1;var r=n(t);return!0===r?y(e).has(t):r&&c(r,e.id)}}),e(v,l?{get:function(t){var e=m(this);if(u(t)){var r=n(t);if(!0===r)return y(e).get(t);if(r)return r[e.id]}},set:function(t,e){return b(this,t,e)}}:{add:function(t){return b(this,t,!0)}}),h}}}(),s=gEt(),c=Vwt().enforce,l=gbt(),f=Hwt(),d=Object,p=Array.isArray,h=d.isExtensible,v=d.isFrozen,g=d.isSealed,y=d.freeze,m=d.seal,b=!n.ActiveXObject&&"ActiveXObject"in n,E=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},w=u("WeakMap",E,a),S=w.prototype,C=r(S.set);if(f)if(b){t=a.getConstructor(E,"WeakMap",!0),i.enable();var D=r(S.delete),O=r(S.has),A=r(S.get);o(S,{delete:function(e){if(s(e)&&!h(e)){var n=c(this);return n.frozen||(n.frozen=new t),D(this,e)||n.frozen.delete(e)}return D(this,e)},has:function(e){if(s(e)&&!h(e)){var n=c(this);return n.frozen||(n.frozen=new t),O(this,e)||n.frozen.has(e)}return O(this,e)},get:function(e){if(s(e)&&!h(e)){var n=c(this);return n.frozen||(n.frozen=new t),O(this,e)?A(this,e):n.frozen.get(e)}return A(this,e)},set:function(e,n){if(s(e)&&!h(e)){var r=c(this);r.frozen||(r.frozen=new t),O(this,e)?C(this,e,n):r.frozen.set(e,n)}else C(this,e,n);return this}})}else e&&l(function(){var t=y([]);return C(new w,t,1),!v(t)})&&o(S,{set:function(t,e){var n;return p(t)&&(v(t)?n=y:g(t)&&(n=m)),C(this,t,e),n&&n(t),this}})}());var oTt,iTt={};function uTt(t){return t.getMenuConfig("uploadVideo")}!function(){if(oTt)return iTt;oTt=1;var t=ubt(),e=JDt(),n=ZDt(),r=Axt(),o=Swt(),i=aAt(),u=iwt()("iterator"),a=r.values,s=function(t,n){if(t){if(t[u]!==a)try{o(t,u,a)}catch(e){t[u]=a}if(i(t,n,!0),e[n])for(var s in r)if(t[s]!==r[s])try{o(t,s,r[s])}catch(e){t[s]=r[s]}}};for(var c in e)s(t[c]&&t[c].prototype,c);s(n,"DOMTokenList")}();var aTt=new WeakMap;function sTt(t,e){return gDt(this,void 0,void 0,function(){var n,r;return yDt(this,function(o){switch(o.label){case 0:return n=function(t){var e=aTt.get(t);if(null!=e)return e;var n=uTt(t),r=n.onSuccess,o=n.onProgress,i=n.onFailed,u=n.customInsert,a=n.onError;return e=NB(vDt(vDt({},n),{onProgress:function(e){t.showProgressBar(e),o&&o(e)},onSuccess:function(e,n){if(u)return u(n,function(e,n){return rxt(t,e,n)}),void r(e,n);var o=n.errno,a=void 0===o?1:o,s=n.data,c=void 0===s?{}:s;if(0===a){var l=c.url,f=void 0===l?"":l,d=c.poster;rxt(t,f,void 0===d?"":d),r(e,n)}else i(e,n)},onError:function(t,e,n){a(t,e,n)}})),aTt.set(t,e),e}(t),r=e.map(function(t){return{name:t.name,type:t.type,size:t.size,data:t}}),n.addFiles(r),[4,n.upload()];case 1:return o.sent(),[2]}})})}var cTt=function(){function t(){this.title=dI("videoModule.uploadVideo"),this.iconSvg='<svg viewBox="0 0 1056 1024"><path d="M805.902261 521.819882a251.441452 251.441452 0 0 0-251.011972 246.600033 251.051015 251.051015 0 1 0 502.023944 8.823877 253.237463 253.237463 0 0 0-251.011972-255.42391z m59.463561 240.001647v129.898403h-116.701631v-129.898403h-44.041298l101.279368-103.504859 101.279368 103.504859z" p-id="6802"></path><path d="M788.254507 0.000781H99.094092A98.663439 98.663439 0 0 0 0.001171 99.093701v590.067495a98.663439 98.663439 0 0 0 99.092921 99.092921h411.7549a266.434235 266.434235 0 0 1-2.186448-41.815807 275.843767 275.843767 0 0 1 275.180024-270.729042 270.650955 270.650955 0 0 1 103.504859 19.834201V99.093701A101.51363 101.51363 0 0 0 788.254507 0.000781zM295.054441 640.747004V147.507894l394.146189 246.600033z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.exec=function(t,e){var n=this.getMenuConfig(t),r=n.allowedFileTypes,o=void 0===r?[]:r,i=n.customBrowseAndUpload;if(i)i(function(e,n){return rxt(t,e,n)});else{var u="";o.length>0&&(u='accept="'.concat(o.join(", "),'"'));var a=Rp("body"),s=Rp('<input type="file" '.concat(u," multiple/>"));s.hide(),a.append(s),s.click(),s.on("change",function(){var e=s[0].files;!function(t,e){gDt(this,void 0,void 0,function(){var n,r,o,i,u,a,s,c,l,f,d,p;return yDt(this,function(h){switch(h.label){case 0:if(null==e)return[2];n=Array.prototype.slice.call(e),r=[],o=uTt(t).customUpload,h.label=1;case 1:h.trys.push([1,8,9,14]),i=!0,u=bDt(n),h.label=2;case 2:return[4,u.next()];case 3:return a=h.sent(),(l=a.done)?[3,7]:(p=a.value,i=!1,s=p,o?[4,o(s,function(e,n){return rxt(t,e,n)})]:[3,5]);case 4:return h.sent(),[3,6];case 5:r.push(s),h.label=6;case 6:return i=!0,[3,2];case 7:return[3,14];case 8:return c=h.sent(),f={error:c},[3,14];case 9:return h.trys.push([9,,12,13]),i||l||!(d=u.return)?[3,11]:[4,d.call(u)];case 10:h.sent(),h.label=11;case 11:return[3,13];case 12:if(f)throw f.error;return[7];case 13:return[7];case 14:return r.length>0?[4,sTt(t,r)]:[3,16];case 15:h.sent(),h.label=16;case 16:return[2]}})})}(t,e)})}},t.prototype.isDisabled=function(t){var e=t.selection;return null==e||!yp.Range.isCollapsed(e)||!!eP.getSelectedElems(t).some(function(e){var n=eP.getNodeType(e);return"pre"===n||"list-item"===n||!!t.isVoid(e)})},t.prototype.getMenuConfig=function(t){return t.getMenuConfig("uploadVideo")},t}(),lTt={key:"insertVideo",factory:function(){return new Ext},config:{onInsertedVideo:function(t){},checkVideo:function(t,e){return!0},parseVideoSrc:function(t){return t}}},fTt={key:"uploadVideo",factory:function(){return new cTt},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)}}},dTt={key:"editVideoSize",factory:function(){return new rOt}},pTt={key:"editVideoSrc",factory:function(){return new eAt}};function hTt(t,e,n,r,o,i){return void 0===e&&(e=""),void 0===n&&(n="auto"),void 0===r&&(r="auto"),void 0===o&&(o={}),void 0===i&&(i="center"),{type:"video",src:t,poster:e,width:n,height:r,style:o,children:[{text:""}],textAlign:i}}var vTt,gTt={selector:'div[data-w-e-type="video"]',parseElemHtml:function(t,e,n){var r=Rp(t),o="",i="",u="auto",a="auto",s={},c=r.find("iframe");if(c.length>0)return u=c.attr("width")||"auto",a=c.attr("height")||"auto",s=eOt(s=c.attr("style")||""),hTt(o=c[0].outerHTML,i,u,a,s,eOt(r.attr("style")||"")["text-align"]||"center");var l=r.find("video");return(o=l.attr("src")||"")||l.length>0&&(o=l.find("source").attr("src")||""),u=l.attr("width")||"auto",a=l.attr("height")||"auto",hTt(o,i=l.attr("poster")||"",u,a,s=eOt(s=l.attr("style")||""),eOt(r.attr("style")||"")["text-align"]||"center")}},yTt={};!function(){if(vTt)return yTt;vTt=1;var t=XSt(),e=vSt().includes,n=gbt(),r=YCt();t({target:"Array",proto:!0,forced:n(function(){return!Array(1).includes()})},{includes:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}}),r("includes")}();var mTt={renderElems:[{type:"video",renderElem:function(t,e,n){var r,o=t,i=o.src,u=void 0===i?"":i,a=o.poster,s=void 0===a?"":a,c=o.key,l=void 0===c?"":c,f=o.width,d=void 0===f?"auto":f,p=o.height,h=void 0===p?"auto":p,v=o.style,g=void 0===v?{}:v,y=o.textAlign,m=void 0===y?"center":y,b=eP.isNodeSelected(n,t);if(0===u.trim().indexOf("<iframe ")){r=dv("div",{className:"w-e-textarea-video-container","data-selected":b?"true":"",style:{textAlign:m},innerHTML:ECt(u,d,h,g)})}else{var E=dv("video",{key:l,poster:s,controls:!0,style:g},dv("source",{src:u,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),r=dv("div",{className:"w-e-textarea-video-container","data-selected":b?"true":"",style:{textAlign:m}},E)}return Wh("div",{props:{contentEditable:!1},on:{mousedown:function(t){return t.preventDefault()}}},r)}}],elemsToHtml:[DCt],preParseHtml:[{selector:"iframe,video,p",preParseHtml:function(t){var e=Rp(t),n=e;if("p"===bCt(e)){var r=e.children();if(1===r.length){var o=r[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(n=Rp(o))}}var u=bCt(n);if("iframe"!==u&&"video"!==u)return n[0];if("video"===n.parent().attr("data-w-e-type"))return n[0];var a=Rp('<div data-w-e-type="video" data-w-e-is-void style="text-align: center;"></div>');return a.append(n),a[0]}}],parseElemsHtml:[gTt],menus:[lTt,fTt,dTt,pTt],editorPlugin:function(t){var e=t.isVoid,n=t.normalizeNode,r=t;return r.isVoid=function(t){return"video"===t.type||e(t)},r.normalizeNode=function(t){var e=mDt(t,2),o=e[0],i=e[1];return"video"===eP.getNodeType(o)&&eP.isLastNode(r,o)&&yp.Transforms.insertNodes(r,eP.genEmptyParagraph(),{at:[i[0]+1]}),n([o,i])},r}},bTt=function(){return bTt=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},bTt.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var ETt=function(){function t(){throw new Error("不能实例化\nCan not construct a instance")}return t.setEditorConfig=function(t){void 0===t&&(t={}),this.editorConfig=bTt(bTt({},this.editorConfig),t)},t.setSimpleEditorConfig=function(t){void 0===t&&(t={}),this.simpleEditorConfig=bTt(bTt({},this.simpleEditorConfig),t)},t.setToolbarConfig=function(t){void 0===t&&(t={}),this.toolbarConfig=bTt(bTt({},this.toolbarConfig),t)},t.setSimpleToolbarConfig=function(t){void 0===t&&(t={}),this.simpleToolbarConfig=bTt(bTt({},this.simpleToolbarConfig),t)},t.registerPlugin=function(t){this.plugins.push(t)},t.registerMenu=function(t,e){!function(t,e){var n=t.key,r=t.factory,o=t.config,i=rC(rC({},o),e||{});if(null!=dC[n])throw new Error("Duplicated key '".concat(n,"' in menu items"));dC[n]=r,function(t,e){null!=e&&(sC[t]=e)}(n,i)}(t,e)},t.registerRenderElem=function(t){!function(t){var e=t.type,n=t.renderElem;uB[e||""]=n}(t)},t.registerRenderStyle=function(t){!function(t){iB.push(t)}(t)},t.registerElemToHtml=function(t){!function(t){var e=t.type,n=t.elemToHtml;LN[e||""]=n}(t)},t.registerStyleToHtml=function(t){!function(t){jN.push(t)}(t)},t.registerPreParseHtml=function(t){!function(t){AN.push(t)}(t)},t.registerParseElemHtml=function(t){!function(t){var e=t.selector,n=t.parseElemHtml;TN[e]=n}(t)},t.registerParseStyleHtml=function(t){!function(t){xN.push(t)}(t)},t.registerModule=function(t){wTt(t)},t.editorConfig={},t.simpleEditorConfig={},t.toolbarConfig={},t.simpleToolbarConfig={},t.plugins=[],t}();function wTt(t){var e=t.menus,n=t.renderElems,r=t.renderStyle,o=t.elemsToHtml,i=t.styleToHtml,u=t.preParseHtml,a=t.parseElemsHtml,s=t.parseStyleHtml,c=t.editorPlugin;e&&e.forEach(function(t){return ETt.registerMenu(t)}),n&&n.forEach(function(t){return ETt.registerRenderElem(t)}),r&&ETt.registerRenderStyle(r),o&&o.forEach(function(t){return ETt.registerElemToHtml(t)}),i&&ETt.registerStyleToHtml(i),u&&u.forEach(function(t){return ETt.registerPreParseHtml(t)}),a&&a.forEach(function(t){return ETt.registerParseElemHtml(t)}),s&&ETt.registerParseStyleHtml(s),c&&ETt.registerPlugin(c)}FJ.forEach(function(t){return wTt(t)}),wTt(gtt),wTt(Mlt),wTt(mTt),wTt(ebt),wTt(Q2);var STt='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>';var CTt={link:{menuKeys:["editLink","unLink","viewLink"]},image:{menuKeys:["imageWidth30","imageWidth50","imageWidth100","editorImageSizeMenu","editImage","viewImageLink","deleteImage"]},pre:{menuKeys:["enter","codeBlock","codeSelectLang"]},table:{menuKeys:["enter","tableHeader","tableFullWidth","insertTableRow","deleteTableRow","insertTableCol","deleteTableCol","deleteTable","mergeTableCell","splitTableCell","setTableProperty","setTableCellProperty"]},divider:{menuKeys:["enter"]},video:{menuKeys:["enter","editVideoSize","editVideoSrc"]}};var DTt={hoverbarKeys:bTt(bTt({},CTt),{text:{menuKeys:["formatPainter","headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};ETt.setEditorConfig(bTt(bTt({},DTt),{decorate:q1}));var OTt={hoverbarKeys:CTt};ETt.setSimpleEditorConfig(bTt(bTt({},OTt),{decorate:q1}));var ATt={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:dI("editor.more"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>',menuKeys:["through","code","sup","sub","clearStyle"]},"color","bgColor","|","fontSize","fontFamily","lineHeight","|","bulletedList","numberedList","todo",{key:"group-justify",title:dI("editor.justify"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:dI("editor.indent"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',menuKeys:["indent","delIndent"]},"|","emotion","insertLink",{key:"group-image",title:dI("editor.image"),iconSvg:STt,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:dI("editor.video"),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>',menuKeys:["insertVideo","uploadVideo"]},"insertTable","codeBlock","divider","|","undo","redo","|","formatPainter","fullScreen"]};ETt.setToolbarConfig(ATt);var xTt={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:dI("editor.image"),iconSvg:STt,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};ETt.setSimpleToolbarConfig(xTt);t.Boot=ETt,t.DomEditor=eP,t.SlateEditor=yp.Editor,t.SlateElement=yp.Element,t.SlateLocation=yp.Location,t.SlateNode=yp.Node,t.SlatePath=yp.Path,t.SlatePoint=yp.Point,t.SlateRange=yp.Range,t.SlateText=yp.Text,t.SlateTransforms=yp.Transforms,t.Toolbar=AB,t.createEditor=function(t){void 0===t&&(t={});var e=t.selector,n=void 0===e?"":e,r=t.content,o=void 0===r?[]:r,i=t.html,u=t.config,a=void 0===u?{}:u,s=t.mode,c="simple"===(void 0===s?"default":s)?ETt.simpleEditorConfig:ETt.editorConfig,l=bTt(bTt({},c.hoverbarKeys||{}),a.hoverbarKeys||{});return bB({selector:n,config:bTt(bTt(bTt({},c),a),{hoverbarKeys:l}),content:o,html:i,plugins:ETt.plugins})},t.createToolbar=function(t){var e=t.selector,n=t.editor,r=t.config,o=void 0===r?{}:r,i=t.mode,u=void 0===i?"default":i;if(!e)throw new Error("Cannot find 'selector' when create toolbar");var a="simple"===u?ETt.simpleToolbarConfig:ETt.toolbarConfig,s=function(t,e){if(null==t)throw new Error("Cannot create toolbar, because editor is null");var n=e.selector,r=e.config,o=void 0===r?{}:r;if(function(t,e){return FN(t,"data-w-e-toolbar",e)}(t,n))throw new Error("Repeated create toolbar by selector '".concat(n,"'"));var i=rC({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},o||{}),u=new AB(n,i);return hO.set(u,t),vO.set(t,u),u}(n,{selector:e,config:bTt(bTt({},a),o)});return s},t.createUploader=NB,t.default={},t.genModalButtonElems=DI,t.genModalInputElems=CI,t.genModalTextareaElems=function(t,e,n){var r=Rp('<label class="babel-container"></label>');r.append("<span>".concat(t,"</span>"));var o=Rp('<textarea type="text" id="'.concat(e,'" placeholder="').concat(n||"",'"></textarea>'));return r.append(o),[r[0],o[0]]},t.i18nAddResources=lI,t.i18nChangeLanguage=function(t){sI.changeLanguage(t)},t.i18nGetResources=function(t){return sI.getResourceBundle(t,cI)},t.t=dI,Object.defineProperty(t,"__esModule",{value:!0})});
27
+ */e.exports&&(e.exports=t),void 0!==b&&(b.Prism=t),t.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))}),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(e,n){var r={};r["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};o["language-"+n]={pattern:/[\s\S]+/,inside:t.languages[n]};var i={};i[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:o},t.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(e,n){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:t.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(t),t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},t.languages.javascript=t.languages.extend("clike",{"class-name":[t.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,t.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:t.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),t.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),t.languages.js=t.languages.javascript,function(){if(void 0!==t&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},n="data-src-status",r="loading",o="loaded",i="pre[data-src]:not(["+n+'="'+o+'"]):not(['+n+'="'+r+'"])';t.hooks.add("before-highlightall",function(e){e.selector+=", "+i}),t.hooks.add("before-sanity-check",function(a){var s=a.element;if(s.matches(i)){a.code="",s.setAttribute(n,r);var u=s.appendChild(document.createElement("CODE"));u.textContent="Loading…";var l=s.getAttribute("data-src"),c=a.language;if("none"===c){var d=(/\.(\w+)$/.exec(l)||[,"none"])[1];c=e[d]||d}t.util.setLanguage(u,c),t.util.setLanguage(s,c);var f=t.plugins.autoloader;f&&f.loadLanguages(c),function(e,t,n){var r=new XMLHttpRequest;r.open("GET",e,!0),r.onreadystatechange=function(){4==r.readyState&&(r.status<400&&r.responseText?t(r.responseText):r.status>=400?n("✖ Error "+r.status+" while fetching file: "+r.statusText):n("✖ Error: File does not exist or is empty"))},r.send(null)}(l,function(e){s.setAttribute(n,o);var r=function(e){var t=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(e||"");if(t){var n=Number(t[1]),r=t[2],o=t[3];return r?o?[n,Number(o)]:[n,void 0]:[n,n]}}(s.getAttribute("data-range"));if(r){var i=e.split(/\r\n?|\n/g),a=r[0],l=null==r[1]?i.length:r[1];a<0&&(a+=i.length),a=Math.max(0,Math.min(a-1,i.length)),l<0&&(l+=i.length),l=Math.max(0,Math.min(l,i.length)),e=i.slice(a,l).join("\n"),s.hasAttribute("data-start")||s.setAttribute("data-start",String(a+1))}u.textContent=e,t.highlightElement(u)},function(e){s.setAttribute(n,"failed"),u.textContent=e})}}),t.plugins.fileHighlight={highlight:function(e){for(var n,r=(e||document).querySelectorAll(i),o=0;n=r[o++];)t.highlightElement(n)}};var a=!1;t.fileHighlight=function(){a||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),a=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}}()}(Ux)),Ux.exports),Wx=E(Vx);!function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(e,t){return e=e.replace(/<S>/g,function(){return n}).replace(/<BRACES>/g,function(){return r}).replace(/<SPREAD>/g,function(){return o}),RegExp(e,t)}o=i(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var a=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(a).join(""):""},s=function(t){for(var n=[],r=0;r<t.length;r++){var o=t[r],i=!1;if("string"!=typeof o&&("tag"===o.type&&o.content[0]&&"tag"===o.content[0].type?"</"===o.content[0].content[0].content?n.length>0&&n[n.length-1].tagName===a(o.content[0].content[1])&&n.pop():"/>"===o.content[o.content.length-1].content||n.push({tagName:a(o.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===o.type&&"{"===o.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===o.type&&"}"===o.content?n[n.length-1].openedBraces--:i=!0),(i||"string"==typeof o)&&n.length>0&&0===n[n.length-1].openedBraces){var u=a(o);r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(u+=a(t[r+1]),t.splice(r+1,1)),r>0&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(u=a(t[r-1])+u,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",u,null,u)}o.content&&"string"!=typeof o.content&&s(o.content)}};e.hooks.add("after-tokenize",function(e){"jsx"!==e.language&&"tsx"!==e.language||s(e.tokens)})}(Prism);var Gx;Gx||(Gx=1,function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(Prism)),Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),Prism.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete Prism.languages.go["class-name"];var qx;qx||(qx=1,function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,o=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:o,punctuation:i};var a={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},s=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:a}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:a}}];e.languages.insertBefore("php","variable",{string:s,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:s,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:o,punctuation:i}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",function(t){/<\?/.test(t.code)&&e.languages["markup-templating"].buildPlaceholders(t,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g)}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"php")})}(Prism)),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}}),Prism.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete Prism.languages.c.boolean;var Kx;Kx||(Kx=1,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python);var Yx;Yx||(Yx=1,function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[r,{pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:r.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+n+/[A-Z]\w*\b/.source),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+n+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:r.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+n+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:r.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism));var Xx;Xx||(Xx=1,function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return t.source});e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return n})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(Prism));var Zx;Zx||(Zx=1,function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,function(e,n){return"(?:"+t[+n]+")"})}function n(e,n,r){return RegExp(t(e,n),"")}function r(e,t){for(var n=0;n<t;n++)e=e.replace(/<<self>>/g,function(){return"(?:"+e+")"});return e.replace(/<<self>>/g,"[^\\s\\S]")}var o="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",i="class enum interface record struct",a="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",s="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function u(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var l=u(i),c=RegExp(u(o+" "+i+" "+a+" "+s)),d=u(i+" "+a+" "+s),f=u(o+" "+i+" "+s),p=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),h=r(/\((?:[^()]|<<self>>)*\)/.source,2),g=/@?\b[A-Za-z_]\w*\b/.source,v=t(/<<0>>(?:\s*<<1>>)?/.source,[g,p]),m=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[d,v]),y=/\[\s*(?:,\s*)*\]/.source,b=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[m,y]),E=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[p,h,y]),C=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[E]),w=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[C,m,y]),D={keyword:c,punctuation:/[<>()?,.:[\]]/},A=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,S=/"(?:\\.|[^\\"\r\n])*"/.source,x=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[x]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[S]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[m]),lookbehind:!0,inside:D},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[g,w]),lookbehind:!0,inside:D},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[g]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[l,v]),lookbehind:!0,inside:D},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[m]),lookbehind:!0,inside:D},{pattern:n(/(\bwhere\s+)<<0>>/.source,[g]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:D},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[w,f,g]),inside:D}],keyword:c,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[g]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[g]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[h]),lookbehind:!0,alias:"class-name",inside:D},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[w,m]),inside:D,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[w]),lookbehind:!0,inside:D,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[g,p]),inside:{function:n(/^<<0>>/.source,[g]),generic:{pattern:RegExp(p),alias:"class-name",inside:D}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[l,v,g,w,c.source,h,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[v,h]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:c,"class-name":{pattern:RegExp(w),greedy:!0,inside:D},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var T=S+"|"+A,O=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[T]),N=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[O]),2),B=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,k=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[m,N]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[B,k]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[B]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[N]),inside:e.languages.csharp},"class-name":{pattern:RegExp(m),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var F=/:[^}\r\n]+/.source,P=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[O]),2),I=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[P,F]),_=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[T]),2),R=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[_,F]);function L(t,r){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[r,F]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[I]),lookbehind:!0,greedy:!0,inside:L(I,P)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[R]),lookbehind:!0,greedy:!0,inside:L(R,_)}],char:{pattern:RegExp(A),greedy:!0}}),e.languages.dotnet=e.languages.cs=e.languages.csharp}(Prism)),Prism.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},Prism.languages.vb=Prism.languages["visual-basic"],Prism.languages.vba=Prism.languages["visual-basic"],Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/};var Jx;Jx||(Jx=1,function(e){e.languages.ruby=e.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),e.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var t={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete e.languages.ruby.function;var n="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",r=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;e.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+n+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+r),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+r+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),e.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+n),greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+n),greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete e.languages.ruby.string,e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),e.languages.rb=e.languages.ruby}(Prism)),Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach(function(e){e.inside.interpolation.inside=Prism.languages.swift}),function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=r.variable[1].inside,a=0;a<o.length;a++)i[o[a]]=e.languages.bash[o[a]];e.languages.sh=e.languages.bash,e.languages.shell=e.languages.bash}(Prism),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,function(){return t}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return r}),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(t){["url","bold","italic","strike","code-snippet"].forEach(function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])})}),e.hooks.add("after-tokenize",function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var o=t[n];if("code"===o.type){var i=o.content[1],a=o.content[3];if(i&&a&&"code-language"===i.type&&"code-block"===a.type&&"string"==typeof i.content){var s=i.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),u="language-"+(s=(/[a-z][\w-]*/i.exec(s)||[""])[0].toLowerCase());a.alias?"string"==typeof a.alias?a.alias=[a.alias,u]:a.alias.push(u):a.alias=[u]}}else e(o.content)}}(e.tokens)}),e.hooks.add("wrap",function(t){if("code-block"===t.type){for(var n="",r=0,o=t.classes.length;r<o;r++){var i=t.classes[r],l=/language-(.+)/.exec(i);if(l){n=l[1];break}}var c=e.languages[n];if(c)t.content=e.highlight(function(e){var t=e.replace(a,"");return t=t.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(e,t){var n;if("#"===(t=t.toLowerCase())[0])return n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),u(n);var r=s[t];return r||e}),t}(t.content),c,n);else if(n&&"none"!==n&&e.plugins.autoloader){var d="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());t.attributes.id=d,e.plugins.autoloader.loadLanguages(n,function(){var t=document.getElementById(d);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))})}}});var a=RegExp(e.languages.markup.tag.pattern.source,"gi"),s={amp:"&",lt:"<",gt:">",quot:'"'},u=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Prism),Prism.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/},function(e){var t={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};e.languages.groovy=e.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),e.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}}}),e.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),e.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),t.inside.expression.inside=e.languages.groovy}(Prism),Prism.languages.abap={comment:/^\*.*/m,string:/(`|')(?:\\.|(?!\1)[^\\\r\n])*\1/,"string-template":{pattern:/([|}])(?:\\.|[^\\|{\r\n])*(?=[|{])/,lookbehind:!0,alias:"string"},"eol-comment":{pattern:/(^|\s)".*/m,lookbehind:!0,alias:"comment"},keyword:{pattern:/(\s|\.|^)(?:\*-INPUT|\?TO|ABAP-SOURCE|ABBREVIATED|ABS|ABSTRACT|ACCEPT|ACCEPTING|ACCESSPOLICY|ACCORDING|ACOS|ACTIVATION|ACTUAL|ADD|ADD-CORRESPONDING|ADJACENT|AFTER|ALIAS|ALIASES|ALIGN|ALL|ALLOCATE|ALPHA|ANALYSIS|ANALYZER|AND|ANY|APPEND|APPENDAGE|APPENDING|APPLICATION|ARCHIVE|AREA|ARITHMETIC|AS|ASCENDING|ASIN|ASPECT|ASSERT|ASSIGN|ASSIGNED|ASSIGNING|ASSOCIATION|ASYNCHRONOUS|AT|ATAN|ATTRIBUTES|AUTHORITY|AUTHORITY-CHECK|AVG|BACK|BACKGROUND|BACKUP|BACKWARD|BADI|BASE|BEFORE|BEGIN|BETWEEN|BIG|BINARY|BINDING|BIT|BIT-AND|BIT-NOT|BIT-OR|BIT-XOR|BLACK|BLANK|BLANKS|BLOB|BLOCK|BLOCKS|BLUE|BOUND|BOUNDARIES|BOUNDS|BOXED|BREAK-POINT|BT|BUFFER|BY|BYPASSING|BYTE|BYTE-CA|BYTE-CN|BYTE-CO|BYTE-CS|BYTE-NA|BYTE-NS|BYTE-ORDER|C|CA|CALL|CALLING|CASE|CAST|CASTING|CATCH|CEIL|CENTER|CENTERED|CHAIN|CHAIN-INPUT|CHAIN-REQUEST|CHANGE|CHANGING|CHANNELS|CHAR-TO-HEX|CHARACTER|CHARLEN|CHECK|CHECKBOX|CIRCULAR|CI_|CLASS|CLASS-CODING|CLASS-DATA|CLASS-EVENTS|CLASS-METHODS|CLASS-POOL|CLEANUP|CLEAR|CLIENT|CLOB|CLOCK|CLOSE|CN|CNT|CO|COALESCE|CODE|CODING|COLLECT|COLOR|COLUMN|COLUMNS|COL_BACKGROUND|COL_GROUP|COL_HEADING|COL_KEY|COL_NEGATIVE|COL_NORMAL|COL_POSITIVE|COL_TOTAL|COMMENT|COMMENTS|COMMIT|COMMON|COMMUNICATION|COMPARING|COMPONENT|COMPONENTS|COMPRESSION|COMPUTE|CONCAT|CONCATENATE|COND|CONDENSE|CONDITION|CONNECT|CONNECTION|CONSTANTS|CONTEXT|CONTEXTS|CONTINUE|CONTROL|CONTROLS|CONV|CONVERSION|CONVERT|COPIES|COPY|CORRESPONDING|COS|COSH|COUNT|COUNTRY|COVER|CP|CPI|CREATE|CREATING|CRITICAL|CS|CURRENCY|CURRENCY_CONVERSION|CURRENT|CURSOR|CURSOR-SELECTION|CUSTOMER|CUSTOMER-FUNCTION|DANGEROUS|DATA|DATABASE|DATAINFO|DATASET|DATE|DAYLIGHT|DBMAXLEN|DD\/MM\/YY|DD\/MM\/YYYY|DDMMYY|DEALLOCATE|DECIMALS|DECIMAL_SHIFT|DECLARATIONS|DEEP|DEFAULT|DEFERRED|DEFINE|DEFINING|DEFINITION|DELETE|DELETING|DEMAND|DEPARTMENT|DESCENDING|DESCRIBE|DESTINATION|DETAIL|DIALOG|DIRECTORY|DISCONNECT|DISPLAY|DISPLAY-MODE|DISTANCE|DISTINCT|DIV|DIVIDE|DIVIDE-CORRESPONDING|DIVISION|DO|DUMMY|DUPLICATE|DUPLICATES|DURATION|DURING|DYNAMIC|DYNPRO|E|EACH|EDIT|EDITOR-CALL|ELSE|ELSEIF|EMPTY|ENABLED|ENABLING|ENCODING|END|END-ENHANCEMENT-SECTION|END-LINES|END-OF-DEFINITION|END-OF-FILE|END-OF-PAGE|END-OF-SELECTION|ENDAT|ENDCASE|ENDCATCH|ENDCHAIN|ENDCLASS|ENDDO|ENDENHANCEMENT|ENDEXEC|ENDFOR|ENDFORM|ENDFUNCTION|ENDIAN|ENDIF|ENDING|ENDINTERFACE|ENDLOOP|ENDMETHOD|ENDMODULE|ENDON|ENDPROVIDE|ENDSELECT|ENDTRY|ENDWHILE|ENGINEERING|ENHANCEMENT|ENHANCEMENT-POINT|ENHANCEMENT-SECTION|ENHANCEMENTS|ENTRIES|ENTRY|ENVIRONMENT|EQ|EQUAL|EQUIV|ERRORMESSAGE|ERRORS|ESCAPE|ESCAPING|EVENT|EVENTS|EXACT|EXCEPT|EXCEPTION|EXCEPTION-TABLE|EXCEPTIONS|EXCLUDE|EXCLUDING|EXEC|EXECUTE|EXISTS|EXIT|EXIT-COMMAND|EXP|EXPAND|EXPANDING|EXPIRATION|EXPLICIT|EXPONENT|EXPORT|EXPORTING|EXTEND|EXTENDED|EXTENSION|EXTRACT|FAIL|FETCH|FIELD|FIELD-GROUPS|FIELD-SYMBOL|FIELD-SYMBOLS|FIELDS|FILE|FILTER|FILTER-TABLE|FILTERS|FINAL|FIND|FIRST|FIRST-LINE|FIXED-POINT|FKEQ|FKGE|FLOOR|FLUSH|FONT|FOR|FORM|FORMAT|FORWARD|FOUND|FRAC|FRAME|FRAMES|FREE|FRIENDS|FROM|FUNCTION|FUNCTION-POOL|FUNCTIONALITY|FURTHER|GAPS|GE|GENERATE|GET|GIVING|GKEQ|GKGE|GLOBAL|GRANT|GREATER|GREEN|GROUP|GROUPS|GT|HANDLE|HANDLER|HARMLESS|HASHED|HAVING|HDB|HEAD-LINES|HEADER|HEADERS|HEADING|HELP-ID|HELP-REQUEST|HIDE|HIGH|HINT|HOLD|HOTSPOT|I|ICON|ID|IDENTIFICATION|IDENTIFIER|IDS|IF|IGNORE|IGNORING|IMMEDIATELY|IMPLEMENTATION|IMPLEMENTATIONS|IMPLEMENTED|IMPLICIT|IMPORT|IMPORTING|IN|INACTIVE|INCL|INCLUDE|INCLUDES|INCLUDING|INCREMENT|INDEX|INDEX-LINE|INFOTYPES|INHERITING|INIT|INITIAL|INITIALIZATION|INNER|INOUT|INPUT|INSERT|INSTANCES|INTENSIFIED|INTERFACE|INTERFACE-POOL|INTERFACES|INTERNAL|INTERVALS|INTO|INVERSE|INVERTED-DATE|IS|ISO|ITERATOR|ITNO|JOB|JOIN|KEEP|KEEPING|KERNEL|KEY|KEYS|KEYWORDS|KIND|LANGUAGE|LAST|LATE|LAYOUT|LE|LEADING|LEAVE|LEFT|LEFT-JUSTIFIED|LEFTPLUS|LEFTSPACE|LEGACY|LENGTH|LESS|LET|LEVEL|LEVELS|LIKE|LINE|LINE-COUNT|LINE-SELECTION|LINE-SIZE|LINEFEED|LINES|LIST|LIST-PROCESSING|LISTBOX|LITTLE|LLANG|LOAD|LOAD-OF-PROGRAM|LOB|LOCAL|LOCALE|LOCATOR|LOG|LOG-POINT|LOG10|LOGFILE|LOGICAL|LONG|LOOP|LOW|LOWER|LPAD|LPI|LT|M|MAIL|MAIN|MAJOR-ID|MAPPING|MARGIN|MARK|MASK|MATCH|MATCHCODE|MAX|MAXIMUM|MEDIUM|MEMBERS|MEMORY|MESH|MESSAGE|MESSAGE-ID|MESSAGES|MESSAGING|METHOD|METHODS|MIN|MINIMUM|MINOR-ID|MM\/DD\/YY|MM\/DD\/YYYY|MMDDYY|MOD|MODE|MODIF|MODIFIER|MODIFY|MODULE|MOVE|MOVE-CORRESPONDING|MULTIPLY|MULTIPLY-CORRESPONDING|NA|NAME|NAMETAB|NATIVE|NB|NE|NESTED|NESTING|NEW|NEW-LINE|NEW-PAGE|NEW-SECTION|NEXT|NO|NO-DISPLAY|NO-EXTENSION|NO-GAP|NO-GAPS|NO-GROUPING|NO-HEADING|NO-SCROLLING|NO-SIGN|NO-TITLE|NO-TOPOFPAGE|NO-ZERO|NODE|NODES|NON-UNICODE|NON-UNIQUE|NOT|NP|NS|NULL|NUMBER|NUMOFCHAR|O|OBJECT|OBJECTS|OBLIGATORY|OCCURRENCE|OCCURRENCES|OCCURS|OF|OFF|OFFSET|OLE|ON|ONLY|OPEN|OPTION|OPTIONAL|OPTIONS|OR|ORDER|OTHER|OTHERS|OUT|OUTER|OUTPUT|OUTPUT-LENGTH|OVERFLOW|OVERLAY|PACK|PACKAGE|PAD|PADDING|PAGE|PAGES|PARAMETER|PARAMETER-TABLE|PARAMETERS|PART|PARTIALLY|PATTERN|PERCENTAGE|PERFORM|PERFORMING|PERSON|PF|PF-STATUS|PINK|PLACES|POOL|POSITION|POS_HIGH|POS_LOW|PRAGMAS|PRECOMPILED|PREFERRED|PRESERVING|PRIMARY|PRINT|PRINT-CONTROL|PRIORITY|PRIVATE|PROCEDURE|PROCESS|PROGRAM|PROPERTY|PROTECTED|PROVIDE|PUBLIC|PUSHBUTTON|PUT|QUEUE-ONLY|QUICKINFO|RADIOBUTTON|RAISE|RAISING|RANGE|RANGES|RAW|READ|READ-ONLY|READER|RECEIVE|RECEIVED|RECEIVER|RECEIVING|RED|REDEFINITION|REDUCE|REDUCED|REF|REFERENCE|REFRESH|REGEX|REJECT|REMOTE|RENAMING|REPLACE|REPLACEMENT|REPLACING|REPORT|REQUEST|REQUESTED|RESERVE|RESET|RESOLUTION|RESPECTING|RESPONSIBLE|RESULT|RESULTS|RESUMABLE|RESUME|RETRY|RETURN|RETURNCODE|RETURNING|RIGHT|RIGHT-JUSTIFIED|RIGHTPLUS|RIGHTSPACE|RISK|RMC_COMMUNICATION_FAILURE|RMC_INVALID_STATUS|RMC_SYSTEM_FAILURE|ROLE|ROLLBACK|ROUND|ROWS|RTTI|RUN|SAP|SAP-SPOOL|SAVING|SCALE_PRESERVING|SCALE_PRESERVING_SCIENTIFIC|SCAN|SCIENTIFIC|SCIENTIFIC_WITH_LEADING_ZERO|SCREEN|SCROLL|SCROLL-BOUNDARY|SCROLLING|SEARCH|SECONDARY|SECONDS|SECTION|SELECT|SELECT-OPTIONS|SELECTION|SELECTION-SCREEN|SELECTION-SET|SELECTION-SETS|SELECTION-TABLE|SELECTIONS|SELECTOR|SEND|SEPARATE|SEPARATED|SET|SHARED|SHIFT|SHORT|SHORTDUMP-ID|SIGN|SIGN_AS_POSTFIX|SIMPLE|SIN|SINGLE|SINH|SIZE|SKIP|SKIPPING|SMART|SOME|SORT|SORTABLE|SORTED|SOURCE|SPACE|SPECIFIED|SPLIT|SPOOL|SPOTS|SQL|SQLSCRIPT|SQRT|STABLE|STAMP|STANDARD|START-OF-SELECTION|STARTING|STATE|STATEMENT|STATEMENTS|STATIC|STATICS|STATUSINFO|STEP-LOOP|STOP|STRLEN|STRUCTURE|STRUCTURES|STYLE|SUBKEY|SUBMATCHES|SUBMIT|SUBROUTINE|SUBSCREEN|SUBSTRING|SUBTRACT|SUBTRACT-CORRESPONDING|SUFFIX|SUM|SUMMARY|SUMMING|SUPPLIED|SUPPLY|SUPPRESS|SWITCH|SWITCHSTATES|SYMBOL|SYNCPOINTS|SYNTAX|SYNTAX-CHECK|SYNTAX-TRACE|SYSTEM-CALL|SYSTEM-EXCEPTIONS|SYSTEM-EXIT|TAB|TABBED|TABLE|TABLES|TABLEVIEW|TABSTRIP|TAN|TANH|TARGET|TASK|TASKS|TEST|TESTING|TEXT|TEXTPOOL|THEN|THROW|TIME|TIMES|TIMESTAMP|TIMEZONE|TITLE|TITLE-LINES|TITLEBAR|TO|TOKENIZATION|TOKENS|TOP-LINES|TOP-OF-PAGE|TRACE-FILE|TRACE-TABLE|TRAILING|TRANSACTION|TRANSFER|TRANSFORMATION|TRANSLATE|TRANSPORTING|TRMAC|TRUNC|TRUNCATE|TRUNCATION|TRY|TYPE|TYPE-POOL|TYPE-POOLS|TYPES|ULINE|UNASSIGN|UNDER|UNICODE|UNION|UNIQUE|UNIT|UNIT_CONVERSION|UNIX|UNPACK|UNTIL|UNWIND|UP|UPDATE|UPPER|USER|USER-COMMAND|USING|UTF-8|VALID|VALUE|VALUE-REQUEST|VALUES|VARY|VARYING|VERIFICATION-MESSAGE|VERSION|VIA|VIEW|VISIBLE|WAIT|WARNING|WHEN|WHENEVER|WHERE|WHILE|WIDTH|WINDOW|WINDOWS|WITH|WITH-HEADING|WITH-TITLE|WITHOUT|WORD|WORK|WRITE|WRITER|X|XML|XOR|XSD|XSTRLEN|YELLOW|YES|YYMMDD|Z|ZERO|ZONE)(?![\w-])/i,lookbehind:!0},number:/\b\d+\b/,operator:{pattern:/(\s)(?:\*\*?|<[=>]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/};var Qx=["comment","prolog","doctype","cdata","punctuation","namespace","property","tag","boolean","number","constant","symbol","deleted","selector","attr-name","string","builtin","inserted","operator","entity","url","string","atrule","attr-value","keyword","function","class-name","regex","important","variable","bold","italic","entity","char"];function eT(e){return"string"==typeof e?e.length:"string"==typeof e.content?e.content.length:e.content.reduce(function(e,t){return e+eT(t)},0)}var tT=function(e){var t,n,r,o=Op(e,2),i=o[0],a=o[1],s=[],u=function(e){if(!mp.Text.isText(e))return null;var t=uv.getParentNode(null,e);if(t&&"code"===uv.getNodeType(t)){var n=uv.getParentNode(null,t);if(n&&"pre"===uv.getNodeType(n))return t}return null}(i);if(null==u)return s;var l=u.language,c=void 0===l?"":l;if(!c)return s;var d=function(e,t){if(!t)return[];var n=Wx.languages[t];return n?Wx.tokenize(e.text,n):[]}(i,c),f=0;try{for(var p=Tp(d),h=p.next();!h.done;h=p.next()){var g=h.value,v=f+eT(g);"string"!=typeof g&&s.push(((r={})[g.type]=!0,r.anchor={path:a,offset:f},r.focus={path:a,offset:v},r)),f=v}}catch(e){t={error:e}}finally{try{h&&!h.done&&(n=p.return)&&n.call(p)}finally{if(t)throw t.error}}return s};var nT={type:"code",elemToHtml:function(e,t){var n=e.language,r=void 0===n?"":n,o=r?'class="language-'.concat(r,'"'):"";return"<code ".concat(o,">").concat(t,"</code>")}};var rT=function(){function e(){this.title=Ay("highLightModule.selectLang"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 64v896h896V64H64z m487.6 698.8c0 87.2-51.2 127-125.8 127-67.4 0-106.4-34.8-126.4-77l68.6-41.4c13.2 23.4 25.2 43.2 54.2 43.2 27.6 0 45.2-10.8 45.2-53V475.4h84.2v287.4z m199.2 127c-78.2 0-128.8-37.2-153.4-86l68.6-39.6c18 29.4 41.6 51.2 83 51.2 34.8 0 57.2-17.4 57.2-41.6 0-28.8-22.8-39-61.4-56l-21-9c-60.8-25.8-101-58.4-101-127 0-63.2 48.2-111.2 123.2-111.2 53.6 0 92 18.6 119.6 67.4L800 580c-14.4-25.8-30-36-54.2-36-24.6 0-40.2 15.6-40.2 36 0 25.2 15.6 35.4 51.8 51.2l21 9c71.6 30.6 111.8 62 111.8 132.4 0 75.6-59.6 117.2-139.4 117.2z"></path></svg>',this.tag="select",this.width=95,this.selectPanelWidth=115,this.defaultCodeLang=""}return e.prototype.getOptions=function(e){var t=this,n=[],r=e.getMenuConfig("codeSelectLang").codeLangs,o=void 0===r?[]:r;n.push({text:"plain text",value:""}),o.forEach(function(e){var r=e.text,o=e.value;e.selected&&(t.defaultCodeLang=o),n.push({text:r,value:o})});var i=this.getValue(e);return n.forEach(function(e){e.value===i?e.selected=!0:e.selected=void 0}),n},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.getSelectCodeElem(e);if(null==t)return this.defaultCodeLang;if(!mp.Element.isElement(t))return this.defaultCodeLang;var n=t.language.toString(),r=e.getMenuConfig("codeSelectLang").codeLangs;return(void 0===r?[]:r).some(function(e){return e.value===n})?n:this.defaultCodeLang},e.prototype.isDisabled=function(e){return null==e.selection||!this.getSelectCodeElem(e)},e.prototype.exec=function(e,t){if(null!=this.getSelectCodeElem(e)){var n={language:t.toString()};mp.Transforms.setNodes(e,n,{match:function(e){return uv.checkNodeType(e,"code")}})}},e.prototype.getSelectCodeElem=function(e){var t=uv.getSelectedNodeByType(e,"code");if(null==t)return null;var n=uv.getParentNode(e,t);return mp.Element.isElement(n)?"pre"!==n.type?null:t:null},e}(),oT={key:"codeSelectLang",factory:function(){return new rT},config:{codeLangs:[{text:"CSS",value:"css"},{text:"HTML",value:"html"},{text:"XML",value:"xml"},{text:"Javascript",value:"javascript"},{text:"Typescript",value:"typescript"},{text:"JSX",value:"jsx"},{text:"Go",value:"go"},{text:"PHP",value:"php"},{text:"C",value:"c"},{text:"Python",value:"python"},{text:"Java",value:"java"},{text:"C++",value:"cpp"},{text:"C#",value:"csharp"},{text:"Visual Basic",value:"visual-basic"},{text:"SQL",value:"sql"},{text:"Ruby",value:"ruby"},{text:"Swift",value:"swift"},{text:"Bash",value:"bash"},{text:"Lua",value:"lua"},{text:"Groovy",value:"groovy"},{text:"Markdown",value:"markdown"},{text:"ABAP",value:"abap"}]}};Lh&&(Ph.fn.attr=Lh);var iT={renderStyle:function(e,t){var n=e,r=t,o="";return Qx.forEach(function(e){n[e]&&(o=e)}),o&&function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.props&&(n.props={}),Object.assign(n.props,{className:t})}(r,o="token ".concat(o)),r},parseStyleHtml:function(e,t,n){var r=Ph(e);if(!mp.Element.isElement(t))return t;if("code"!==uv.getNodeType(t))return t;var o=t,i=r.attr("class")||"";return 0===i.indexOf("language-")?o.language=i.split("-")[1]||"":o.language=i.toLowerCase(),o},menus:[oT],elemsToHtml:[nT]};wy("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),wy("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var aT=new WeakMap;function sT(e){var t,n=e.children||[],r=n.length;if(0===r)return"";for(var o=0;o<r&&!t;o+=1){var i=n[o];mp.Text.isText(i)&&(t=i)}return null==t?"":t.color||""}function uT(e,t,n){for(var r=t.type,o=Ap(t,["type"]),i=void 0!==n?n:o.level||0,a=uv.findPath(e,t),s=a;;){if(0===s.length||0===a[a.length-1])return null;s=mp.Path.previous(s);var u=mp.Editor.node(e,s);if(!u)return null;var l=Op(u,1)[0],c=l.level,d=void 0===c?0:c;if(uv.getNodeType(l)!==r)return null;if(d===i)return l}}function lT(e,t,n){var r=uT(e,t,n);return!!r&&r.ordered===t.ordered}var cT=[];var dT={type:"list-item",elemToHtml:function(e,t){var n="",r="",o=e.ordered,i=void 0!==o&&o?"ol":"ul",a=function(e){var t=aT.get(e);if(null==t)return 0;var n=e,r=n.type,o=n.ordered,i=void 0!==o&&o,a=n.level,s=void 0===a?0:a,u=uv.findPath(t,e);if(0===u[0])return s+1;var l=mp.Path.previous(u),c=mp.Editor.node(t,l);if(!c)return 0;var d=Op(c,1)[0];if(uv.getNodeType(d)!==r)return s+1;var f=d,p=f.ordered,h=void 0!==p&&p,g=f.level,v=void 0===g?0:g;return v<s?s-v:v>s?lT(t,e)?0:1:v===s?h===i?0:1:0}(e);if(a>0)for(var s=0;s<a;s+=1)n+="<".concat(i,">"),cT.push(i);var u=function(e){var t=aT.get(e);if(null==t)return 0;var n=e,r=n.type,o=n.ordered,i=void 0!==o&&o,a=n.level,s=void 0===a?0:a,u=uv.findPath(t,e);if(u[0]===t.children.length-1)return s+1;var l=mp.Path.next(u),c=mp.Editor.node(t,l);if(!c)return 0;var d=Op(c,1)[0];if(uv.getNodeType(d)!==r)return s+1;var f=d,p=f.ordered,h=void 0!==p&&p,g=f.level,v=void 0===g?0:g;return v<s?lT(t,d)?s-v:s-v+1:v>s?0:v===s?h===i?0:1:0}(e);if(u>0)for(s=0;s<u;s+=1){var l=cT.pop();r+="</".concat(l,">")}var c=sT(e),d=c?' style="color:'.concat(c,'"'):"";return{html:"<li".concat(d,">").concat(t,"</li>"),prefix:n,suffix:r}}},fT=function(){function e(){this.type="list-item",this.tag="button"}return e.prototype.getListNode=function(e){var t=this.type;return uv.getSelectedNodeByType(e,t)},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){var t=this.getListNode(e);if(null==t)return!1;var n=t.ordered;return(void 0!==n&&n)===this.ordered},e.prototype.isDisabled=function(e){return null==e.selection||!!uv.getSelectedElems(e).some(function(t){if(mp.Editor.isVoid(e,t)&&mp.Editor.isBlock(e,t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)})},e.prototype.exec=function(e,t){this.isActive(e)?mp.Transforms.setNodes(e,{type:"paragraph",ordered:void 0,level:void 0}):mp.Transforms.setNodes(e,{type:"list-item",ordered:this.ordered,indent:void 0})},e}(),pT=function(e){function t(){var t=e.apply(this,Np([],Op(arguments),!1))||this;return t.ordered=!1,t.title=Ay("listModule.unOrderedList"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M384 64h640v128H384V64z m0 384h640v128H384v-128z m0 384h640v128H384v-128zM0 128a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z"></path></svg>',t}return wp(t,e),t}(fT),hT=function(e){function t(){var t=e.apply(this,Np([],Op(arguments),!1))||this;return t.ordered=!0,t.title=Ay("listModule.orderedList"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M384 832h640v128H384z m0-384h640v128H384z m0-384h640v128H384zM192 0v256H128V64H64V0zM128 526.016v50.016h128v64H64v-146.016l128-60V384H64v-64h192v146.016zM256 704v320H64v-64h128v-64H64v-64h128v-64H64v-64z"></path></svg>',t}return wp(t,e),t}(fT),gT={key:"bulletedList",factory:function(){return new pT}},vT={key:"numberedList",factory:function(){return new hT}};function mT(e){return e.length?e[0].tagName.toLowerCase():""}tg&&(Ph.fn.append=tg),Lh&&(Ph.fn.attr=Lh),rg&&(Ph.fn.parent=rg);var yT={selector:"li:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Ph(e);0===(t=t.filter(function(e){return!!mp.Text.isText(e)||!!n.isInline(e)})).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=function(e){return"ol"===mT(e.parent())}(r),i=function(e){for(var t=0,n=e.parent(),r=mT(n);"ul"===r||"ol"===r;)r=mT(n=n.parent()),t+=1;return t-1}(r);return{type:"list-item",ordered:o,level:i,children:t}}};var bT={selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(e,t,n){return t.flat(1/0)}};function ET(e){return mp.Editor.nodes(e,{at:e.selection||void 0,match:function(t){return 1===uv.findPath(e,t).length}})}var CT={type:"list-item",renderElem:function(e,t,n){aT.set(e,n);var r=e,o=r.level,i=void 0===o?0:o,a=r.ordered,s=void 0!==a&&a,u={margin:"5px 0 5px ".concat(20*i,"px"),display:"flex",alignItems:"flex-start"},l="";if(s){var c=function(e,t){var n=t,r=n.type,o=n.level,i=void 0===o?0:o,a=n.ordered,s=void 0!==a&&a,u=1,l=t,c=uv.findPath(e,l);if(0===c[0])return 1;for(;c[0]>0;){var d=mp.Path.previous(c),f=mp.Editor.node(e,d);if(null==f)break;var p=f[0],h=p.level,g=void 0===h?0:h,v=p.type,m=p.ordered;if(v!==r)break;if(g<i)break;if(g===i){if(m!==s)break;u+=1}l=p,c=d}return u}(n,e);l="".concat(c,".")}else l=function(e){void 0===e&&(e=0);var t="";switch(e){case 0:t="•";break;case 1:t="◦";break;default:t="▪"}return t}(i);return eE("div",{style:u},eE("span",{contentEditable:!1,style:{marginRight:"0.5em",color:sT(e)},"data-w-e-reserve":!0},l),eE("span",{style:{flex:"1",wordBreak:"break-word"}},t))}},wT={renderElems:[CT],editorPlugin:function(e){var t=e.deleteBackward,n=e.handleTab,r=e.normalizeNode,o=e.insertBreak,i=e;return i.insertBreak=function(){var t=Op(mp.Editor.nodes(e,{match:function(e){return uv.checkNodeType(e,"list-item")},universal:!0}),1),n=t[0];return n?""!==n[0].children[0].text?o():void mp.Transforms.setNodes(i,{type:"paragraph",ordered:void 0,level:void 0}):o()},i.deleteBackward=function(n){var r=i.selection;if(null!=r)if(mp.Range.isExpanded(r))t(n);else{var o=uv.getSelectedNodeByType(i,"list-item");if(null!=o)if(0!==r.focus.offset)t(n);else{var a=o,s=a.level,u=void 0===s?0:s,l=a.ordered,c=void 0!==l&&l;if(u>0){var d=uT(e,o,u-1);d&&d.ordered!==c?mp.Transforms.setNodes(i,{level:u-1,ordered:!c}):mp.Transforms.setNodes(i,{level:u-1})}else mp.Transforms.setNodes(i,{type:"paragraph",ordered:void 0,level:void 0})}else t(n)}else t(n)},i.handleTab=function(){var e,t,r,o,a=i.selection;if(null!=a){if(mp.Range.isCollapsed(a)){var s=uv.getSelectedNodeByType(i,"list-item");if(null==s)return void n();if(0===a.focus.offset){var u=s.level,l=void 0===u?0:u;return void mp.Transforms.setNodes(i,{level:l+1})}}if(mp.Range.isExpanded(a)){var c=0,d=!1;try{for(var f=Tp(ET(i)),p=f.next();!p.done;p=f.next()){var h=Op(p.value,1)[0];"list-item"===uv.getNodeType(h)?c+=1:d=!0}}catch(t){e={error:t}}finally{try{p&&!p.done&&(t=f.return)&&t.call(f)}finally{if(e)throw e.error}}if(d||c<=1)return void n();try{for(var g=Tp(ET(i)),v=g.next();!v.done;v=g.next()){var m=Op(v.value,2),y=(h=m[0],m[1]),b=h.level;l=void 0===b?0:b;mp.Transforms.setNodes(i,{level:l+1},{at:y})}}catch(e){r={error:e}}finally{try{v&&!v.done&&(o=g.return)&&o.call(g)}finally{if(r)throw r.error}}}else n()}else n()},i.normalizeNode=function(e){var t=Op(e,2),n=t[0],o=t[1],a=uv.getNodeType(n);return"bulleted-list"!==a&&"numbered-list"!==a||mp.Transforms.unwrapNodes(i,{at:o}),r([n,o])},i},menus:[gT,vT],elemsToHtml:[dT],parseElemsHtml:[bT,yT]};wy("en",{tableModule:{modal:{border:"Border",borderWidth:"Width",bgColor:"Back color",align:"Text Align",ok:"OK"},color:{default:"Default color",clear:"Clear back color"},borderStyle:{none:"None",solid:"Solid",dotted:"Dotted",dashed:"Dashed",double:"Double",groove:"Groove",ridge:"Ridge",inset:"Inset",outset:"Outset"},deleteCol:"Delete column",deleteRow:"Delete row",deleteTable:"Delete table",widthAuto:"Width auto",insertCol:"Insert column",insertRow:"Insert row",insertTable:"Insert table",header:"Header",mergeCell:"merge cell",splitCell:"split cell",tableProperty:"Table property",cellProperty:"Cell property"}}),wy("zh-CN",{tableModule:{modal:{border:"边框",borderWidth:"宽度",bgColor:"背景色",align:"对齐方式",ok:"确定"},color:{default:"默认颜色",clear:"清除背景色"},borderStyle:{none:"无样式",solid:"实线",dotted:"点状虚线",dashed:"虚线",double:"双线",groove:"凹槽边框",ridge:"菱形边框",inset:"凹边框",outset:"凸边框"},deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头",mergeCell:"合并单元格",splitCell:"拆分单元格",tableProperty:"表格属性",cellProperty:"单元格属性"}});var DT={type:"table",elemToHtml:function(e,t){var n=e,r=n.width,o=void 0===r?"auto":r,i=n.columnWidths,a=n.height,s=void 0===a?"auto":a,u=null==i?void 0:i.map(function(e){return"<col width=".concat(e,"></col>")}).join(""),l=u?'<colgroup contentEditable="false">'.concat(u,"</colgroup>"):"";return'<table style="width: '.concat(o,";table-layout: fixed;height:").concat(s,'">').concat(l,"<tbody>").concat(t,"</tbody></table>")}},AT={type:"table-row",elemToHtml:function(e,t){return"<tr>".concat(t,"</tr>")}},ST={type:"table-cell",elemToHtml:function(e,t){var n=e,r=n.colSpan,o=void 0===r?1:r,i=n.rowSpan,a=void 0===i?1:i,s=n.isHeader,u=void 0!==s&&s,l=n.width,c=void 0===l?"auto":l,d=n.hidden;if(void 0!==d&&d)return"";var f=u?"th":"td";return"<".concat(f,' colSpan="').concat(o,'" rowSpan="').concat(a,'" width="').concat(c,'">').concat(t,"</").concat(f,">")}},xT='<svg viewBox="0 0 1024 1024"><path d="M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z"></path></svg>',TT={blocks:{td:"table-cell",th:"table-cell",content:"paragraph",tr:"table-row",table:"table",tbody:"table-body"}};function OT(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=TT,o=t.map(function(e){var t;return null===(t=null==r?void 0:r.blocks)||void 0===t?void 0:t[e]});return function(e){return function(e){return!mp.Editor.isEditor(e)&&mp.Element.isElement(e)&&"type"in e}(e)&&o.includes(e.type)}}function NT(e,t){for(var n=Op(t,2),r=n[0],o=n[1],i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];var s=Op(mp.Node.common(e,r,o),2),u=s[0],l=s[1];return!!OT.apply(void 0,Np([e],Op(i),!1))(u,l)||!!mp.Editor.above(e,{match:OT.apply(void 0,Np([e],Op(i),!1)),at:l})}function BT(e,t){var n,r;void 0===t&&(t={});var o=[];try{for(var i=Tp(function(e,t){var n,r,o,i,a,s,u,l,c,d,f,p,h,g,v,m,y,b;return void 0===t&&(t={}),xp(this,function(E){switch(E.label){case 0:if(n=Op(mp.Editor.nodes(e,{match:OT(e,"table"),at:t.at}),1),!(r=n[0]))return[2,[]];o=Op(r,2),i=o[1],E.label=1;case 1:E.trys.push([1,6,7,8]),a=Tp(mp.Editor.nodes(e,{match:OT(e,"table"),at:i})),s=a.next(),E.label=2;case 2:if(s.done)return[3,5];u=Op(s.value,2),l=u[1],c=[];try{for(y=void 0,d=Tp(mp.Editor.nodes(e,{match:OT(e,"tr"),at:l})),f=d.next();!f.done;f=d.next())p=Op(f.value,2),h=p[1],c.push(Np([],Op(mp.Editor.nodes(e,{match:OT(e,"th","td"),at:h})),!1))}catch(e){y={error:e}}finally{try{f&&!f.done&&(b=d.return)&&b.call(d)}finally{if(y)throw y.error}}return[4,c];case 3:E.sent(),E.label=4;case 4:return s=a.next(),[3,2];case 5:return[3,8];case 6:return g=E.sent(),v={error:g},[3,8];case 7:try{s&&!s.done&&(m=a.return)&&m.call(a)}finally{if(v)throw v.error}return[7];case 8:return[2]}})}(e,{at:t.at})),a=i.next();!a.done;a=i.next()){for(var s=a.value,u=[],l=0,c=0;c<s.length;c+=1)s[c]&&(l=Math.max(l,s[c].length));for(c=0;c<s.length;c+=1)if(u[c]||(u[c]=[]),s[c])for(var d=0;d<s[c].length;d+=1)if(s[c][d]&&s[c][d][0]){for(var f=Op(s[c][d],1)[0],p=f.rowSpan,h=void 0===p?1:p,g=f.colSpan,v=void 0===g?1:g,m=d;u[c]&&u[c][m];)m+=1;for(var y=0;y<v;y+=1)for(var b=0;b<h;b+=1){var E=c+b,C=m+y;u[E]||(u[E]=[]),u[E][C]||(u[E][C]=[s[c][d],{rtl:y+1,ltr:v-y,ttb:b+1,btt:h-b}])}}o.push.apply(o,Np([],Op(u),!1))}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return o}var kT=function(){function e(e,t){this.x=e,this.y=t}return e.valueOf=function(e,t){return new this(e,t)},e.equals=function(e,t){return e.x===t.x&&e.y===t.y},e}();function FT(e){return e.length?e[0].tagName.toLowerCase():""}function PT(e,t){for(var n="",r=(e.attr("style")||"").split(";"),o=r.length,i=0;i<o;i+=1){var a=r[i];if(a){var s=a.split(":");s[0].trim()===t&&(n=s[1].trim())}}return n}tg&&Ph.fn&&(Ph.fn.append=tg),$h&&Ph.fn&&(Ph.fn.on=$h),fg&&Ph.fn&&(Ph.fn.focus=fg),Lh&&Ph.fn&&(Ph.fn.attr=Lh),zh&&Ph.fn&&(Ph.fn.val=zh),Jh&&Ph.fn&&(Ph.fn.html=Jh),Hh&&Ph.fn&&(Ph.fn.dataset=Hh),Ih&&Ph.fn&&(Ph.fn.addClass=Ih),_h&&Ph.fn&&(Ph.fn.removeClass=_h),ag&&Ph.fn&&(Ph.fn.children=ag),Xh&&Ph.fn&&(Ph.fn.each=Xh),ig&&Ph.fn&&(Ph.fn.find=ig),jh&&Ph.fn&&(Ph.fn.data=jh),qh&&Ph.fn&&(Ph.fn.hide=qh),Kh&&Ph.fn&&(Ph.fn.show=Kh);var IT=new WeakMap,_T=new WeakMap,RT=function(){function e(){this.title=Ay("tableModule.tableProperty"),this.iconSvg='<svg viewBox="0 0 20 20"><path d="M8 2v5h4V2h1v5h5v1h-5v4h.021l-.172.351-1.916.28-.151.027c-.287.063-.54.182-.755.341L8 13v5H7v-5H2v-1h5V8H2V7h5V2h1zm4 6H8v4h4V8z" opacity=".6"/><path d="m15.5 11.5 1.323 2.68 2.957.43-2.14 2.085.505 2.946L15.5 18.25l-2.645 1.39.505-2.945-2.14-2.086 2.957-.43L15.5 11.5zM17 1a2 2 0 0 1 2 2v9.475l-.85-.124-.857-1.736a2.048 2.048 0 0 0-.292-.44L17 3H3v14h7.808l.402.392L10.935 19H3a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h14z"/></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.menu="table",this.borderStyle=[{value:"none",label:Ay("tableModule.borderStyle.none")},{value:"solid",label:Ay("tableModule.borderStyle.solid")},{value:"dotted",label:Ay("tableModule.borderStyle.dotted")},{value:"dashed",label:Ay("tableModule.borderStyle.dashed")},{value:"double",label:Ay("tableModule.borderStyle.double")},{value:"groove",label:Ay("tableModule.borderStyle.groove")},{value:"ridge",label:Ay("tableModule.borderStyle.ridge")},{value:"inset",label:Ay("tableModule.borderStyle.inset")},{value:"outset",label:Ay("tableModule.borderStyle.outset")}],this.textAlignOptions=[{value:"left",label:Ay("justify.left"),svg:'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>'},{value:"center",label:Ay("justify.center"),svg:'<svg viewBox="0 0 1024 1024"><path d="M870.4 793.6v102.4H153.6v-102.4h716.8z m102.4-230.4v102.4H51.2v-102.4h921.6z m-102.4-230.4v102.4H153.6v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>'},{value:"right",label:Ay("justify.right"),svg:'<svg viewBox="0 0 1024 1024"><path d="M972.8 793.6v102.4H256v-102.4h716.8z m0-230.4v102.4H51.2v-102.4h921.6z m0-230.4v102.4H256v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>'},{value:"justify",label:Ay("justify.justify"),svg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>'}]}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==uv.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){},e.prototype.getModalContentNode=function(e){return Op(mp.Editor.nodes(e,{match:OT(e,"table")}),1)[0]},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this.getModalContentNode(e);if(!n)return null;var r=Op(n,2),o=r[0],i=r[1],a=Ph('<div>\n <label class="babel-container">\n <span>'.concat(Ay("tableModule.modal.border"),'</span>\n <span class="babel-container-border">\n <select name="borderStyle">\n ').concat(this.borderStyle.map(function(e){return'<option value="'.concat(e.value,'">').concat(e.label,"</option>")}).join(""),'\n </select>\n <span class="color-group" data-mark="color">\n <span class="color-group-block"></span>\n <input name="borderColor" type="hidden">\n </span>\n <input name="borderWidth" type="number" placeholder="').concat(Ay("tableModule.modal.borderWidth"),'">\n </span>\n </label>\n <div class="babel-container">\n <span>').concat(Ay("tableModule.modal.bgColor"),'</span>\n <span class="babel-container-background">\n <span class="color-group" data-mark="bgColor">\n <span class="color-group-block"></span>\n <input name="backgroundColor" type="hidden">\n </span>\n </span>\n </div>\n <label class="babel-container">\n <span>').concat(Ay("tableModule.modal.align"),'</span>\n <span class="babel-container-align">\n <select name="textAlign">\n ').concat(this.textAlignOptions.map(function(e){return'<option value="'.concat(e.value,'">').concat(e.label,"</option>")}).join(""),'\n </select>\n </span>\n </label>\n <div class="button-container">\n <button type="button">').concat(Ay("tableModule.modal.ok"),"</button>\n </div>\n </div>"));a.find("[name]").each(function(e){Ph(e).val(o[Ph(e).attr("name")])});var s=function(e,t){t?Ph(".color-group-block",e).css("background-color",t).empty():Ph(".color-group-block",e).css("background-color","").html(xT)};return a.find(".color-group").each(function(n){var r=Ph('[type="hidden"]',n).val()||"";s(n,r);var o=Ph(n);o.on("click",function(){a.find(".color-group .w-e-drop-panel").hide();var i=o.data("panel");i?i.show():(i=t.getPanelContentElem(e,{mark:o.data("mark"),selectedColor:r,callback:function(e){Ph('[type="hidden"]',n).val(e||""),s(n,e),i.hide()}}),o.append(i),o.data("panel",i))})}),a.find("button").on("click",function(){var n=Array.from(a.find("[name]")).reduce(function(e,t){return e[Ph(t).attr("name")]=Ph(t).val(),e},{}),r=IT.get(e);"cell"===t.menu&&(null==r?void 0:r.length)?r.forEach(function(t){t.forEach(function(t){mp.Transforms.setNodes(e,n,{at:t[0][1]})})}):mp.Transforms.setNodes(e,n,{at:i}),setTimeout(function(){e.focus()})}),a[0]},e.prototype.getPanelContentElem=function(e,t){var n=t.mark,r=t.selectedColor,o=t.callback,i=Ph('<ul class="w-e-panel-content-color"></ul>');i.on("click","li",function(e){var t=e.target;if(t){e.preventDefault(),e.stopPropagation();var n=Ph(t).attr("data-value");o(n)}});var a=e.getMenuConfig(n).colors;(void 0===a?[]:a).forEach(function(e){var t=Ph('<div class="color-block" data-value="'.concat(e,'"></div>'));t.css("background-color",e);var n=Ph('<li data-value="'.concat(e,'"></li>'));r===e&&n.addClass("active"),n.append(t),i.append(n)});var s="";"color"===n&&(s=Ay("tableModule.color.default")),"bgColor"===n&&(s=Ay("tableModule.color.clear"));var u=Ph('\n <li data-value="" class="clear">\n '.concat(xT,"\n ").concat(s,"\n </li>\n "));i.prepend(u);var l=Ph('<div class="w-e-drop-panel"></div>');return l.append(i),l},e}(),LT=function(e){function t(){var t=e.apply(this,Np([],Op(arguments),!1))||this;return t.title=Ay("tableModule.cellProperty"),t.iconSvg='<svg viewBox="0 0 20 20"><path d="m11.105 18-.17 1H2.5A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1h15A1.5 1.5 0 0 1 19 2.5v9.975l-.85-.124-.15-.302V8h-5v4h.021l-.172.351-1.916.28-.151.027c-.287.063-.54.182-.755.341L8 13v5h3.105zM2 12h5V8H2v4zm10-4H8v4h4V8zM2 2v5h5V2H2zm0 16h5v-5H2v5zM13 7h5V2h-5v5zM8 2v5h4V2H8z" opacity=".6"/><path d="m15.5 11.5 1.323 2.68 2.957.43-2.14 2.085.505 2.946L15.5 18.25l-2.645 1.39.505-2.945-2.14-2.086 2.957-.43L15.5 11.5zM13 6a1 1 0 0 1 1 1v3.172a2.047 2.047 0 0 0-.293.443l-.858 1.736-1.916.28-.151.027A1.976 1.976 0 0 0 9.315 14H7a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h6zm-1 2H8v4h4V8z"/></svg>',t.tag="button",t.showModal=!0,t.modalWidth=300,t.menu="cell",t}return wp(t,e),t.prototype.getModalContentNode=function(e){return Op(mp.Editor.nodes(e,{match:OT(e,"td")}),1)[0]},t}(RT),MT=function(){function e(){this.title=Ay("tableModule.deleteCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 510.976L393.216 445.44v-13.1072L327.68 366.7968V510.976z m327.68-78.4384l65.536-65.536V507.904L655.36 442.368v-9.8304z m393.216 484.9664V0H0v917.504h1048.576z m-65.536-131.072h-262.144v-52.4288l-13.1072 13.1072-52.4288-52.4288v91.7504H393.216v-91.7504l-52.4288 52.4288-13.1072-13.1072v52.4288H65.536V65.536H327.68v121.2416l36.0448-36.0448 29.4912 29.4912V62.2592h262.144V180.224l49.152-49.152 16.384 16.384V62.2592h262.144V786.432z m-294.912-108.1344l-160.5632-160.5632-167.1168 167.1168-78.6432-78.6432 167.1168-167.1168L288.3584 278.528l78.6432-78.6432 160.5632 160.5632 163.84-163.84 78.6432 78.6432-163.84 163.84 160.5632 160.5632-78.6432 78.6432z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||(!mp.Range.isCollapsed(t)||null==uv.getSelectedNodeByType(e,"table-cell"))},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=Op(mp.Editor.nodes(e,{match:function(e){return uv.checkNodeType(e,"table-cell")},universal:!0}),1),r=Op(n[0],2),o=r[0],i=r[1],a=uv.getParentNode(e,o),s=(null==a?void 0:a.children.length)||0;if(!a||s<=1)mp.Transforms.removeNodes(e,{mode:"highest"});else if(null!=uv.getParentNode(e,a)){var u=BT(e),l=0;e:for(var c=0;c<u.length;c+=1)for(var d=0;d<u[c].length;d+=1){var f=Op(u[c][d],1),p=Op(f[0],2)[1];if(mp.Path.equals(i,p)){l=d;break e}}mp.Editor.withoutNormalizing(e,function(){for(var t,n,r=new Set,o=new Set,i=0;i<u.length;i+=1)if(u[i]&&u[i][l]){var a=Op(u[i][l],2),s=Op(a[0],2)[1],c=a[1],d=c.rtl,f=c.ltr,p=c.ttb,h=c.btt,g=s.join(",");if(d>1||f>1||p>1||h>1){var v=i-(p-1),m=l-(d-1);if(v<0||v>=u.length||!u[v]||!u[v][m])continue;var y=Op(u[v][m],1),b=Op(y[0],2),E=b[0],C=b[1],w=C.join(",");if(!o.has(w)){o.add(w);var D=E.rowSpan,A=void 0===D?1:D,S=E.colSpan,x=void 0===S?1:S,T=Math.max(x-1,1);mp.Transforms.setNodes(e,{rowSpan:A,colSpan:T},{at:C})}}else r.add(g)}var O=Array.from(r);O.sort(function(e,t){var n=e.split(",").map(Number),r=t.split(",").map(Number);return n[n.length-2]!==r[r.length-2]?r[r.length-2]-n[n.length-2]:r[r.length-1]-n[n.length-1]});try{for(var N=Tp(O),B=N.next();!B.done;B=N.next()){var k=B.value.split(",").map(Number);try{mp.Editor.hasPath(e,k)&&mp.Transforms.removeNodes(e,{at:k})}catch(e){console.warn("删除单元格失败:",k,e)}}}catch(e){t={error:e}}finally{try{B&&!B.done&&(n=N.return)&&n.call(N)}finally{if(t)throw t.error}}var F=Op(mp.Editor.nodes(e,{match:function(e){return uv.checkNodeType(e,"table")},universal:!0}),1),P=F[0];if(P){var I=Op(P,2),_=I[0],R=I[1],L=_.columnWidths,M=Np([],Op(void 0===L?[]:L),!1);M.splice(l,1),mp.Transforms.setNodes(e,{columnWidths:M},{at:R})}})}}},e}(),jT=function(){function e(){this.title=Ay("tableModule.deleteRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M907.6736 586.5472L747.1104 425.984l163.84-163.84-78.6432-78.6432-163.84 163.84L507.904 186.7776 429.2608 262.144l163.84 163.84-167.1168 167.1168 78.6432 78.6432 167.1168-167.1168 160.5632 160.5632 75.3664-78.6432zM0 917.504V0h1048.576v917.504H0z m983.04-327.68h-22.9376l-65.536-65.536H983.04V327.68h-91.7504l65.536-65.536h26.2144V65.536H65.536v196.608h317.8496l65.536 65.536H65.536v196.608h380.1088l-65.536 65.536H65.536v196.608H983.04v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||(!mp.Range.isCollapsed(t)||null==uv.getSelectedNodeByType(e,"table-row"))},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=Op(mp.Editor.nodes(e,{match:function(e){return uv.checkNodeType(e,"table-row")},universal:!0}),1),r=Op(n[0],2),o=r[0],i=r[1],a=uv.getParentNode(e,o);if(((null==a?void 0:a.children.length)||0)<=1)mp.Transforms.removeNodes(e,{mode:"highest"});else{var s=Op(mp.Editor.nodes(e,{match:function(e){return uv.checkNodeType(e,"table-cell")},universal:!0}),1),u=Op(s[0],2)[1],l=BT(e),c=0;e:for(var d=0;d<l.length;d+=1)for(var f=0;f<l[d].length;f+=1){var p=Op(l[d][f],1),h=Op(p[0],2)[1];if(mp.Path.equals(u,h)){c=d;break e}}mp.Editor.withoutNormalizing(e,function(){for(var t,n,r=[],o=0;o<l[c].length;o+=1){var a=Op(l[c][o],2),s=Op(a[0],1)[0].hidden,u=a[1],d=u.ttb,f=u.btt,p=u.rtl;if(d>1||f>1){var h=c-(d-1);if(h<0||h>=l.length||!l[h]||!l[h][o])continue;var g=Op(l[h][o],1),v=Op(g[0],2),m=v[0],y=v[1],b=m,E=b.rowSpan,C=void 0===E?1:E,w=b.colSpan,D=void 0===w?1:w;if(s)mp.Transforms.setNodes(e,{rowSpan:Math.max(C-1,1),colSpan:D},{at:y});else if(1===d&&1===p){if(c+1<l.length&&C>1){var A={type:"table-cell",rowSpan:C-1,colSpan:D,hidden:!1,children:b.children.map(function(e){return Dp({},e)})};b.isHeader&&(A.isHeader=b.isHeader),b.width&&(A.width=b.width),b.backgroundColor&&(A.backgroundColor=b.backgroundColor),b.borderWidth&&(A.borderWidth=b.borderWidth),b.borderStyle&&(A.borderStyle=b.borderStyle),b.borderColor&&(A.borderColor=b.borderColor),b.textAlign&&(A.textAlign=b.textAlign),r.push({cell:A,columnIndex:o})}else mp.Transforms.setNodes(e,{rowSpan:Math.max(C-1,1),colSpan:D},{at:y})}else mp.Transforms.setNodes(e,{rowSpan:Math.max(C-1,1),colSpan:D},{at:y})}}if(mp.Transforms.removeNodes(e,{at:i}),r.length>0){var S=i;try{r.sort(function(e,t){return e.columnIndex-t.columnIndex});try{for(var x=Tp(r),T=x.next();!T.done;T=x.next()){var O=T.value,N=O.cell,B=O.columnIndex;try{var k=Np(Np([],Op(S),!1),[B],!1);mp.Transforms.insertNodes(e,N,{at:k})}catch(t){try{var F=Op(mp.Editor.node(e,S),1)[0].children.length,P=Np(Np([],Op(S),!1),[F],!1);mp.Transforms.insertNodes(e,N,{at:P})}catch(e){console.warn("插入新单元格失败:",e)}}}}catch(e){t={error:e}}finally{try{T&&!T.done&&(n=x.return)&&n.call(x)}finally{if(t)throw t.error}}}catch(e){console.warn("插入新单元格失败:",e)}}})}}},e}(),HT=function(){function e(){this.title=Ay("tableModule.deleteTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==uv.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){this.isDisabled(e)||mp.Transforms.removeNodes(e,{mode:"highest"})},e}(),zT=function(){function e(){this.title=Ay("tableModule.widthAuto"),this.iconSvg='<svg viewBox="0 0 1228 1024"><path d="M862.514337 563.200461H404.581995v121.753478a13.311987 13.311987 0 0 1-6.655993 11.468789 10.23999 10.23999 0 0 1-12.083188-1.433599l-204.799795-179.199821a13.721586 13.721586 0 0 1 0-20.479979l204.799795-179.302221a10.23999 10.23999 0 0 1 12.185588-1.535998 13.209587 13.209587 0 0 1 6.553593 11.673588v115.097485h457.932342V319.693504a11.571188 11.571188 0 0 1 18.841582-10.239989l204.799795 179.19982a13.721586 13.721586 0 0 1 0 20.47998l-204.799795 179.199821a10.23999 10.23999 0 0 1-12.185588 1.535998 13.311987 13.311987 0 0 1-6.655994-11.571188V563.200461zM136.499064 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785H15.155185A15.155185 15.155185 0 0 1 0 1008.844815V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086294a15.155185 15.155185 0 0 1 15.257585 15.155185zM1228.798771 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785h-106.188693a15.155185 15.155185 0 0 1-15.155185-15.052785V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086293A15.155185 15.155185 0 0 1 1228.798771 15.053809z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){var t=uv.getSelectedNodeByType(e,"table");return!!t&&("100%"===t.width||"auto"===t.width)},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||(!mp.Range.isCollapsed(t)||null==uv.getSelectedNodeByType(e,"table"))},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n={width:t?"auto":"100%"};mp.Transforms.setNodes(e,n,{mode:"highest"})}},e}();function $T(e){var t=e.children||[];return 0===t.length?[]:(t[0]||{}).children||[]}function UT(e){return $T(e).every(function(e){return!!e.isHeader})}var VT=function(){function e(){this.title=Ay("tableModule.insertCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 193.3312v186.7776H140.9024v91.7504H327.68v186.7776h88.4736V471.8592h190.0544V380.1088H416.1536V193.3312zM0 917.504V0h1048.576v917.504H0zM655.36 65.536H65.536v720.896H655.36V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 262.144h-262.144v196.608h262.144V327.68z m0 262.144h-262.144v196.608h262.144v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;if(null==t)return!0;if(!mp.Range.isCollapsed(t))return!0;var n=uv.getSelectedNodeByType(e,"table");if(null==n)return!0;try{var r=Op(mp.Editor.nodes(e,{match:function(e){return uv.checkNodeType(e,"table-cell")},universal:!0}),1),o=r[0];if(!o)return!0;for(var i=Op(o,2)[1],a=BT(e),s=-1,u=0;u<a.length;u+=1){for(var l=0;l<a[u].length;l+=1){var c=Op(a[u][l],1),d=Op(c[0],2)[1];if(mp.Path.equals(i,d)){s=l;break}}if(-1!==s)break}if(-1===s)return!0;var f=n.columnWidths,p=(void 0===f?[]:f)[s];if(p&&p<20)return!0}catch(e){return!0}return!1},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=Op(mp.Editor.nodes(e,{match:function(e){return uv.checkNodeType(e,"table-cell")},universal:!0}),1),r=Op(n[0],2),o=r[0],i=r[1],a=uv.getParentNode(e,o);if(null!=a){var s=uv.getParentNode(e,a);if(null!=s){for(var u=BT(e),l=0,c=0;c<u.length;c+=1)for(var d=0;d<u[c].length;d+=1){var f=Op(u[c][d],1),p=Op(f[0],2)[1];if(mp.Path.equals(i,p)){l=d;break}}mp.Editor.withoutNormalizing(e,function(){for(var t=new Set,n=new Set,r=0;r<u.length;r+=1)if(u[r]&&u[r][l]){var o=Op(u[r][l],2);Op(o[0],1);var i=o[1],a=i.rtl,c=i.ltr,d=i.ttb,f=i.btt;if(a>1||c>1||d>1||f>1){var p=r-(d-1),h=l-(a-1);if(p<0||p>=u.length||!u[p]||!u[p][h])continue;var g=Op(u[p][h],1),v=Op(g[0],2),m=v[0],y=v[1],b=y.join(",");if(t.has(b))n.add(r);else{t.add(b);var E=m.rowSpan,C=void 0===E?1:E,w=m.colSpan,D=(void 0===w?1:w)+1;m.hidden||mp.Transforms.setNodes(e,{colSpan:D},{at:y});for(var A=0;A<C;A+=1)n.add(p+A)}}}for(r=0;r<u.length;r+=1)if(!n.has(r)&&u[r]&&u[r][l]){var S={type:"table-cell",children:[{text:""}]};0===r&&UT(s)&&(S.isHeader=!0);var x=Op(u[r][l],1),T=Op(x[0],2)[1];mp.Transforms.insertNodes(e,S,{at:T})}var O=Op(mp.Editor.nodes(e,{match:function(e){return uv.checkNodeType(e,"table")},universal:!0}),1),N=O[0];if(N){var B=Op(N,2),k=B[0],F=B[1],P=k.columnWidths,I=void 0===P?[]:P,_=Np([],Op(I),!1),R=e.getMenuConfig("insertTable").minWidth,L=void 0===R?60:R,M=I[l]||parseInt(L,10)||60,j=Math.floor(M/2),H=M-j;_.splice(l,0,j),_[l+1]=H,mp.Transforms.setNodes(e,{columnWidths:_},{at:F})}})}}}},e}(),WT=function(){function e(){this.title=Ay("tableModule.insertRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M707.7888 521.0112h-147.456v-147.456H488.2432v147.456h-147.456v68.8128h147.456v147.456h72.0896v-147.456h147.456zM0 917.504V0h1048.576v917.504H0zM327.68 65.536H65.536v196.608H327.68V65.536z m327.68 0H393.216v196.608h262.144V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 258.8672H65.536v462.0288H983.04V324.4032z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||(!mp.Range.isCollapsed(t)||null==uv.getSelectedNodeByType(e,"table"))},e.prototype.exec=function(e,t){var n;if(!this.isDisabled(e)){var r=Op(mp.Editor.nodes(e,{match:function(e){return uv.checkNodeType(e,"table-cell")},universal:!0}),1),o=Op(r[0],2)[1],i=BT(e),a=0;e:for(var s=0;s<i.length;s+=1)for(var u=0;u<i[s].length;u+=1){var l=Op(i[s][u],1),c=Op(l[0],2)[1];if(mp.Path.equals(o,c)){a=s;break e}}var d=(null===(n=i[a])||void 0===n?void 0:n.length)||0;0!==d&&mp.Editor.withoutNormalizing(e,function(){for(var t=a+1,n=t>=0&&t<i.length,r=[],s=0;n&&s<i[a].length;s+=1){var u=Op(i[a][s],2)[1],l=u.ttb,c=u.btt;if(l>1||c>1){var f=a-(l-1);if(f<0||f>=i.length||!i[f]||!i[f][s])continue;var p=Op(i[f][s],1),h=Op(p[0],2),g=h[0],v=h[1],m=g.rowSpan||1;r.push(s),g.hidden||mp.Transforms.setNodes(e,{rowSpan:m+1},{at:v})}}for(var y={type:"table-row",children:[]},b=0;b<d;b+=1)if(!r.includes(b)){y.children.push({type:"table-cell",children:[{text:""}]})}var E=mp.Path.parent(o),C=mp.Path.next(E);mp.Transforms.insertNodes(e,y,{at:C})})}},e}();var GT=function(){function e(){this.title=Ay("tableModule.insertTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64v896h1024V64H0z m384 576v-192h256v192h-256z m256 64v192h-256v-192h256z m0-512v192h-256V192h256zM320 192v192H64V192h256z m-256 256h256v192H64v-192z m640 0h256v192h-256v-192z m0-64V192h256v192h-256zM64 704h256v192H64v-192z m640 192v-192h256v192h-256z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||(!mp.Range.isCollapsed(t)||!!uv.getSelectedElems(e).some(function(t){var n=uv.getNodeType(t);return"pre"===n||("table"===n||("list-item"===n||!!e.isVoid(t)))}))},e.prototype.getPanelContentElem=function(e){var t=this;if(this.$content)return this.$content[0];for(var n=Ph('<div class="w-e-panel-content-table"></div>'),r=Ph("<span>0 &times; 0</span>"),o=Ph("<table></table>"),i=0;i<10;i+=1){for(var a=Ph("<tr></tr>"),s=0;s<10;s+=1){var u=Ph("<td></td>");u.attr("data-x",s.toString()),u.attr("data-y",i.toString()),a.append(u),u.on("mouseenter",function(e){var t=e.target;if(null!=t){var n=Ph(t).dataset(),i=n.x,a=n.y;r[0].innerHTML="".concat(i+1," &times; ").concat(a+1),o.children().each(function(e){Ph(e).children().each(function(e){var t=Ph(e),n=t.dataset(),r=n.x,o=n.y;r<=i&&o<=a?t.addClass("active"):t.removeClass("active")})})}}),u.on("click",function(n){n.preventDefault();var r=n.target;if(null!=r){var o=Ph(r).dataset(),i=o.x,a=o.y;t.insertTable(e,a+1,i+1)}})}o.append(a)}return n.append(o),n.append(r),this.$content=n,n[0]},e.prototype.insertTable=function(e,t,n){var r=parseInt(t,10),o=parseInt(n,10);if(r&&o&&!(r<=0||o<=0)){if(uv.isSelectedEmptyParagraph(e)&&mp.Transforms.removeNodes(e,{mode:"highest"}),0===e.children.length){mp.Transforms.insertNodes(e,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}var i=function(e,t,n){for(var r,o=[],i=e.getMenuConfig("insertTable"),a=i.minWidth,s=void 0===a?60:a,u=i.tableFullWidth,l=i.tableHeader,c=Array(n).fill(parseInt(s,10)||60),d=0;d<t;d+=1){for(var f=[],p=0;p<n;p+=1){var h={type:"table-cell",children:[{text:""}]};0===d&&(h.isHeader=null===(r=null==l?void 0:l.selected)||void 0===r||r),f.push(h)}o.push({type:"table-row",children:f})}return{type:"table",width:(null==u?void 0:u.selected)?"100%":"auto",children:o,columnWidths:c}}(e,r,o);mp.Transforms.insertNodes(e,i,{mode:"highest"})}},e}(),qT={isInTable:function(e,t){return void 0===t&&(t={}),!!Op(mp.Editor.nodes(e,{match:OT(e,"table"),at:t.at}),1)[0]},selection:function(e){var t,n,r,o,i,a,s,u;return xp(this,function(l){switch(l.label){case 0:t=IT.get(e),n=0,l.label=1;case 1:if(!(t&&n<t.length))return[3,4];for(r=[],o=0;o<t[n].length;o+=1)i=Op(t[n][o],2),a=i[0],s=i[1],u=s.ltr,1===s.ttb&&r.push(a),o+=u-1;return[4,r];case 2:l.sent(),l.label=3;case 3:return n+=1,[3,1];case 4:return[2]}})},unselect:function(e){_T.delete(e),IT.delete(e)},isSelected:function(e,t){var n=_T.get(e);return!!n&&n.has(t)}},KT=function(){function e(){this.title=Ay("tableModule.mergeCell"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M482.2 508.4 331.3 389c-3-2.4-7.3-.2-7.3 3.6V478H184V184h204v128c0 2.2 1.8 4 4 4h60c2.2 0 4-1.8 4-4V144c0-15.5-12.5-28-28-28H144c-15.5 0-28 12.5-28 28v736c0 15.5 12.5 28 28 28h284c15.5 0 28-12.5 28-28V712c0-2.2-1.8-4-4-4h-60c-2.2 0-4 1.8-4 4v128H184V546h140v85.4c0 3.8 4.4 6 7.3 3.6l150.9-119.4c2.4-1.8 2.4-5.4 0-7.2zM880 116H596c-15.5 0-28 12.5-28 28v168c0 2.2 1.8 4 4 4h60c2.2 0 4-1.8 4-4V184h204v294H700v-85.4c0-3.8-4.3-6-7.3-3.6l-151 119.4c-2.3 1.8-2.3 5.3 0 7.1l151 119.5c2.9 2.3 7.3.2 7.3-3.6V546h140v294H636V712c0-2.2-1.8-4-4-4h-60c-2.2 0-4 1.8-4 4v168c0 15.5 12.5 28 28 28h284c15.5 0 28-12.5 28-28V144c0-15.5-12.5-28-28-28z"/></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return!this.canMerge(e)},e.prototype.exec=function(e,t){this.isDisabled(e)||(this.merge(e),qT.unselect(e))},e.prototype.canMerge=function(e){var t=IT.get(e);if(!t||!t.length)return!1;var n=Op(t[t.length-1][t[t.length-1].length-1],1),r=Op(n[0],2)[1],o=Op(t[0][0],1);return!!NT(e,[Op(o[0],2)[1],r],"table")},e.prototype.merge=function(e){if(this.canMerge(e)){var t=IT.get(e);if(t&&t.length){var n=Op(t[0][0],1),r=Op(n[0],2)[1],o=Op(mp.Node.children(e,r,{reverse:!0}),1),i=Op(o[0],2)[1];mp.Editor.withoutNormalizing(e,function(){for(var n,o,a,s,u,l,c=new Map,d=[],f=1/0,p=-1/0,h=1/0,g=-1/0,v=0;v<t.length;v+=1)for(var m=0;m<t[v].length;m+=1){var y=Op(t[v][m],2),b=Op(y[0],2),E=b[0],C=b[1],w=y[1].ttb,D=C.join(",");if(1===w&&!c.has(D)){c.set(D,{path:C,x:v,y:m,element:E});var A=E.rowSpan,S=void 0===A?1:A,x=E.colSpan,T=v,O=v+S-1,N=m,B=m+(void 0===x?1:x)-1;f=Math.min(f,T),p=Math.max(p,O),h=Math.min(h,N),g=Math.max(g,B)}}var k=p-f+1,F=g-h+1;try{for(var P=Tp(c),I=P.next();!I.done;I=P.next()){C=Op(I.value,2)[1].path;mp.Path.equals(r,C)||d.push(C)}}catch(e){n={error:e}}finally{try{I&&!I.done&&(o=P.return)&&o.call(P)}finally{if(n)throw n.error}}d.sort(function(e,t){for(var n=0;n<Math.min(e.length,t.length);n+=1)if(e[n]!==t[n])return t[n]-e[n];return t.length-e.length});try{for(var _=Tp(d),R=_.next();!R.done;R=_.next()){C=R.value;try{if(!mp.Editor.hasPath(e,C))continue;try{for(var L=(u=void 0,Tp(mp.Node.children(e,C,{reverse:!0}))),M=L.next();!M.done;M=L.next()){var j=Op(M.value,2)[1];mp.Transforms.moveNodes(e,{to:mp.Path.next(i),at:j})}}catch(e){u={error:e}}finally{try{M&&!M.done&&(l=L.return)&&l.call(L)}finally{if(u)throw u.error}}mp.Transforms.removeNodes(e,{at:C})}catch(e){}}}catch(e){a={error:e}}finally{try{R&&!R.done&&(s=_.return)&&s.call(_)}finally{if(a)throw a.error}}mp.Transforms.setNodes(e,{rowSpan:k,colSpan:F},{at:r})})}}},e}(),YT=function(){function e(){this.title=Ay("tableModule.splitCell"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M362.667 494.933v53.334l25.6-25.6zm0-241.066L460.8 352V78.933H57.6v98.134h305.067zm0 535.466v57.6H57.6v98.134h403.2V691.2zM661.333 494.933v53.334l-25.6-25.6zm0-241.066L563.2 352V78.933h403.2v98.134H661.333zm0 535.466v57.6H966.4v98.134H563.2V691.2z"/><path d="M753.067 341.333 693.333 281.6 512 460.8 330.667 281.6l-59.734 59.733 181.334 181.334L270.933 704l59.734 59.733L512 582.4l181.333 181.333L753.067 704 571.733 522.667z"/></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=Op(mp.Editor.nodes(e,{match:function(e){return uv.checkNodeType(e,"table-cell")}}),1),n=t[0];if(!n)return!0;var r=Op(n,1)[0],o=r.rowSpan,i=void 0===o?1:o,a=r.colSpan;return!(i>1||(void 0===a?1:a)>1)},e.prototype.exec=function(e,t){this.isDisabled(e)||this.split(e)},e.prototype.split=function(e,t){void 0===t&&(t={});var n=Op(mp.Editor.nodes(e,{match:OT(e,"table","th","td"),at:t.at}),2),r=n[0],o=n[1];if(r&&o){var i=UT(Op(r,1)[0]),a=Op(o,2),s=a[0],u=a[1],l=s.rowSpan,c=void 0===l?1:l,d=s.colSpan,f=void 0===d?1:d;1===c&&1===f||mp.Editor.withoutNormalizing(e,function(){mp.Transforms.setNodes(e,{rowSpan:1,colSpan:1},{at:u});for(var t=1;t<f;t+=1){var n={type:"table-cell",children:[{text:""}]};0===u[u.length-2]&&i&&(n.isHeader=!0);var r=u.slice(0,-1),o=u[u.length-1]+t,a=Np(Np([],Op(r),!1),[o],!1);try{mp.Transforms.insertNodes(e,n,{at:a})}catch(t){try{var s=Op(mp.Editor.node(e,r),1)[0].children.length,l=Np(Np([],Op(r),!1),[s],!1);mp.Transforms.insertNodes(e,n,{at:l})}catch(e){console.warn("插入同行单元格失败: ".concat(e instanceof Error?e.message:String(e)))}}}for(var d=1;d<c;d+=1){var p=u[u.length-2]+d,h=Np(Np([],Op(u.slice(0,-2)),!1),[p],!1);try{var g=Op(mp.Editor.node(e,h),1)[0];if(!g){console.warn("目标行 ".concat(p," 不存在"));continue}for(t=0;t<f;t+=1){n={type:"table-cell",children:[{text:""}]},o=u[u.length-1]+t,a=Np(Np([],Op(h),!1),[o],!1);try{var v=g.children.length;if(o>=v){var m=Np(Np([],Op(h),!1),[v],!1);mp.Transforms.insertNodes(e,n,{at:m})}else mp.Transforms.insertNodes(e,n,{at:a})}catch(t){try{var y=g.children.length;l=Np(Np([],Op(h),!1),[y],!1);mp.Transforms.insertNodes(e,n,{at:l})}catch(e){console.warn("插入单元格到第".concat(d,"行失败: ").concat(e instanceof Error?e.message:String(e)))}}}}catch(e){console.warn("处理第".concat(d,"行时出错: ").concat(e instanceof Error?e.message:String(e)))}}})}},e}(),XT=function(){function e(){this.title=Ay("tableModule.header"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M704 128l-64 0L384 128 320 128 0 128l0 256 0 64 0 192 0 64 0 256 320 0 64 0 256 0 64 0 320 0 0-256 0-64L1024 448 1024 384 1024 128 704 128zM640 640 384 640 384 448l256 0L640 640zM64 448l256 0 0 192L64 640 64 448zM320 896 64 896l0-192 256 0L320 896zM640 896 384 896l0-192 256 0L640 896zM960 896l-256 0 0-192 256 0L960 896zM960 640l-256 0L704 448l256 0L960 640z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){var t=uv.getSelectedNodeByType(e,"table");return null!=t&&UT(t)},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||(!mp.Range.isCollapsed(t)||null==uv.getSelectedNodeByType(e,"table"))},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=!t,r=uv.getSelectedNodeByType(e,"table");if(null!=r)$T(r).forEach(function(t){return mp.Transforms.setNodes(e,{isHeader:n},{at:uv.findPath(e,t)})})}},e}(),ZT={key:"insertTable",factory:function(){return new GT}},JT={key:"deleteTable",factory:function(){return new HT}},QT={key:"insertTableRow",factory:function(){return new WT}},eO={key:"deleteTableRow",factory:function(){return new jT}},tO={key:"insertTableCol",factory:function(){return new VT}},nO={key:"deleteTableCol",factory:function(){return new MT}},rO={key:"tableHeader",factory:function(){return new XT}},oO={key:"tableFullWidth",factory:function(){return new zT}},iO={key:"mergeTableCell",factory:function(){return new KT}},aO={key:"splitTableCell",factory:function(){return new YT}},sO={key:"setTableProperty",factory:function(){return new RT}},uO={key:"setTableCellProperty",factory:function(){return new LT}};var lO={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Ph(e);0===(t=t.filter(function(e){return"paragraph"===uv.getNodeType(e)||(!!mp.Text.isText(e)||!!n.isInline(e))})).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=parseInt(r.attr("colSpan")||"1",10),i=parseInt(r.attr("rowSpan")||"1",10),a="none"===PT(r,"display"),s=r.attr("width")||"auto";return{type:"table-cell",isHeader:"th"===FT(r),colSpan:o,rowSpan:i,width:s,children:t,hidden:a}}};var cO={selector:"tr:not([data-w-e-type])",parseElemHtml:function(e,t,n){for(var r=[],o=0;o<t.length;o+=1){var i=t[o];if("table-cell"===uv.getNodeType(i)){var a=i;if(a.hidden)continue;r.push(a)}}return{type:"table-row",children:r}}};var dO,fO={selector:"table:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r,o,i=Ph(e),a="auto";"100%"===PT(i,"width")&&(a="100%"),"100%"===i.attr("width")&&(a="100%");var s={type:"table",width:a,height:parseInt(PT(i,"height")||"0",10),children:t.filter(function(e){return"table-row"===uv.getNodeType(e)})},u=(null===(r=i.find("tr")[0])||void 0===r?void 0:r.children)||[],l=(null===(o=i.find("colgroup")[0])||void 0===o?void 0:o.children)||null,c=t[t.length-1].children.length;if(l&&l.length===c)s.columnWidths=Array.from(l).map(function(e){return parseInt(e.getAttribute("width"),10)});else if(u.length>0){var d=[];Array.from(u).forEach(function(e){var t=parseInt(Ph(e).attr("colSpan")||"1",10),n=parseInt(PT(Ph(e),"width")||"90",10);d.push(n);for(var r=1;r<t;r+=1)d.push(90)}),s.columnWidths=d}return s}},pO=null===(dO=null===window||void 0===window?void 0:window.getComputedStyle(document.documentElement))||void 0===dO?void 0:dO.getPropertyValue("--w-e-textarea-border-color");function hO(e){var t=e.selection;if(null==t)return!1;var n=Op(mp.Editor.nodes(e,{match:function(e){return uv.checkNodeType(e,"table-cell")}}),1),r=n[0];if(r){var o=Op(r,2)[1],i=mp.Editor.start(e,o);if(mp.Point.equals(t.anchor,i))return!0}return!1}function gO(e,t){var n=t.offset;if(0===n)return!1;var r=mp.Editor.node(e,t);if(!mp.Text.isText(r[0]))return!1;var o=mp.Node.string(r[0]);return!(n>=o.length)&&("\n"===o[n-1]&&"\r"===o[n])}function vO(e,t,n){var r=e.selection;if(null==r||"line"===t)return!1;var o=Op(mp.Editor.nodes(e,{match:function(e){return uv.checkNodeType(e,"table-cell")}}),1),i=o[0],a=r.anchor;if("backward"===n&&0===r.anchor.offset&&(a=mp.Editor.before(e,r)),"forward"===n&&mp.Editor.isEnd(e,r.anchor,r.anchor.path)&&(a=mp.Editor.after(e,r)),null==a)return!1;var s=mp.Editor.above(e,{at:a,match:function(e){return uv.checkNodeType(e,"table-cell")}});if(null==s||null==i||!mp.Path.equals(s[1],i[1]))return!1;var u=mp.Editor.node(e,a);if(!mp.Text.isText(u[0])||u[0].text.length<2)return!1;var l="backward"===n?[a.offset-2,a.offset]:[a.offset,a.offset+2],c=mp.Node.string(u[0]);return"\n\r"===c.slice.apply(c,Np([],Op(l),!1))?(mp.Transforms.insertText(e,c.slice(0,l[0])+c.slice(l[1]),{at:{anchor:mp.Editor.start(e,a.path),focus:mp.Editor.end(e,a.path)}}),!0):!!gO(e,a)&&(mp.Transforms.insertText(e,c.slice(0,r.anchor.offset-1)+c.slice(r.anchor.offset+1),{at:{anchor:mp.Editor.start(e,a.path),focus:mp.Editor.end(e,a.path)}}),!0)}function mO(e,t){var n=mp.Editor.nodes(e,{at:t,match:function(e){return"table"===uv.getNodeType(e)}});return!!Np([],Op(n),!1).find(function(){return!0})}var yO={selector:"table",preParseHtml:function(e){var t=Ph(e);if("table"!==FT(t))return e;var n=t.find("tbody");if(0===n.length)return e;var r=t.find("tr");t.append(r),n.remove();for(var o=t.find("td, th"),i=0;i<o.length;i+=1){var a=(u=Ph(o[i])).attr("style");if(a){/display\s*:\s*none/i.test(a)&&u.remove()}}var s=t.find("td, th");for(i=0;i<s.length;i+=1){var u,l=(u=Ph(s[i])).html()||"";l=(l=(l=l.replace(/<o:p[^>]*>[\s\S]*?<\/o:p>/gi,"")).replace(/<\/o:p>/gi,"")).replace(/<p[^>]*>([\s\S]*?)<\/p>/gi,function(e,t){var n=t.trim();return n&&"&nbsp;"!==n?t:""}),u.html(l)}return t[0]}};function bO(e){var t,n,r=[],o=0;try{for(var i=Tp(e),a=i.next();!a.done;a=i.next()){o+=a.value,r.push(o)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}function EO(e){var t,n,r=[],o=e.reduce(function(e,t){return e+t},0);try{for(var i=Tp(e),a=i.next();!a.done;a=i.next()){var s=a.value;r.push(s/o)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}var CO=null;var wO=!1,DO=!1,AO=0,SO=0,xO=null,TO=Ph(window);function OO(e,t,n){var r=e.reduce(function(e,t){return e+t},0),o=e[t],i=Math.max(10,n),a=r-o+i;if(a<10*e.length)return e.map(function(){return 10});var s=r-o,u=a-i;if(u<=0){var l=e.map(function(){return 10});return l[t]=Math.max(10,a-10*(e.length-1)),l}var c=s>0?u/s:1,d=e.map(function(e,n){if(n===t)return Math.floor(100*i)/100;var r=e*c;return Math.max(10,Math.floor(100*r)/100)}),f=d.reduce(function(e,t){return e+t},0),p=a-f;return Math.abs(p)>.01&&(d[t]=Math.max(10,d[t]+p)),d}TO.on("mousedown",function(e){var t=e.target;if(t.closest('[data-block-type="table-cell"]'))wO=!0;else if("DIV"===t.tagName&&t.closest(".column-resizer-item")){if(null===xO)return;var n=Op(mp.Editor.nodes(xO,{match:OT(xO,"table")}),1),r=Op(n[0],1)[0],o=r.columnWidths,i=void 0===o?[]:o,a=r.resizingIndex,s=void 0===a?-1:a;DO=!0;var u=e.clientX;AO=u,SO=i[s],document.body.style.cursor="col-resize",e.preventDefault()}TO.on("mousemove",NO),TO.on("mouseup",BO)});var NO=Yy(function(e){if(DO&&null!==xO){e.preventDefault();var t,n=e.clientX,r=n-AO,o=Op(mp.Editor.nodes(xO,{match:OT(xO,"table")}),1),i=Op(o[0],1)[0],a=i.columnWidths,s=void 0===a?[]:a,u=i.resizingIndex,l=void 0===u?-1:u,c=l===s.length-1;if(c){t=OO(s,l,SO+r)}else{var d=document.querySelector(".table");if(d)t=function(e,t,n,r){var o=Np([],Op(e),!1);if(t<0||t>=e.length)return o;var i=0===t?0:r[t-1],a=i+10,s=(t+1<e.length?r[t+1]:r[t])-10,u=Math.max(a,Math.min(s,n))-i,l=t+1;if(l<e.length){var c=e[t]+e[l]-u;o[t]=Math.floor(100*u)/100,o[l]=Math.floor(100*c)/100}return o}(s,l,n-d.getBoundingClientRect().left,bO(s));else t=function(e,t,n){var r=Np([],Op(e),!1),o=t+1;if(o>=r.length)return r;var i=r[t],a=r[o],s=i+a-10,u=i+n,l=i+a-(u=Math.max(10,Math.min(s,u)));return r[t]=Math.floor(100*u)/100,r[o]=Math.floor(100*l)/100,r}(s,l,r)}if(c){var f=document.querySelector(".table-container");if(f){var p=t.reduce(function(e,t){return e+t},0),h=10*s.length,g=f.clientWidth-1;if(p<h)t=s.map(function(){return 10});else if(p>g){var v=t.slice(0,-1).reduce(function(e,t){return e+t},0),m=(t=OO(s,l,Math.max(10,g-v))).reduce(function(e,t){return e+t},0);if(m>g){var y=g/m;t=t.map(function(e){return Math.max(10,Math.floor(e*y*100)/100)})}}}}mp.Transforms.setNodes(xO,{columnWidths:t},{mode:"highest"})}},100);function BO(e){wO=!1,DO=!1,xO=null,document.body.style.cursor="",TO.off("mousemove",NO),TO.off("mouseup",BO)}function kO(e,t){"mouseenter"===t.type?mp.Transforms.setNodes(e,{isResizing:!0},{mode:"highest"}):mp.Transforms.setNodes(e,{isResizing:!1},{mode:"highest"})}var FO={type:"table",renderElem:function(e,t,n){var r=function(e,t){if(e.isDisabled())return!1;var n=e.selection;if(null==n)return!0;if(mp.Range.isCollapsed(n))return!0;var r=n.anchor,o=n.focus,i=uv.findPath(e,t),a=mp.Editor.start(e,i),s=mp.Editor.end(e,i),u=mp.Point.compare(r,s)<=0&&mp.Point.compare(r,a)>=0,l=mp.Point.compare(o,s)<=0&&mp.Point.compare(o,a)>=0;return!!(u&&l&&mp.Path.equals(r.path.slice(0,3),o.path.slice(0,3)))}(n,e),o=e,i=o.width,a=void 0===i?"auto":i,s=o.height,u=o.columnWidths,l=void 0===u?[]:u,c=o.scrollWidth,d=void 0===c?0:c,f=o.isHoverCellBorder,p=o.resizingIndex,h=o.isResizing,g=uv.isNodeSelected(n,e),v=Op(qT.selection(n),1)[0],m=EO(l),y=eE("div",{className:"table-container","data-selected":g,on:{mousedown:function(t){if("DIV"===t.target.tagName&&t.preventDefault(),!n.isDisabled()){t.target.closest('[data-block-type="table-cell"]')&&qT.unselect(n);var r=uv.findPath(n,e),o=mp.Editor.start(n,r),i=n.selection;if(null!=i)i.anchor.path[0]!==r[0]&&"DIV"===t.target.tagName&&n.select(o);else n.select(o)}}}},eE("table",{width:a,contentEditable:r,className:"table ".concat(v?"table-selection-none":""),style:{width:"100%"===a?a:"".concat(l.reduce(function(e,t){return e+t},0),"px")},on:{mousemove:Bm(function(t){return function(e,t,n,r){if(!e.isDisabled()&&!wO&&!DO){var o=t,i=o.width,a=void 0===i?"auto":i,s=o.columnWidths,u=void 0===s?[]:s,l=o.isHoverCellBorder,c=o.resizingIndex,d=n.clientX,f=n.target;if(bg(f)&&d>(g=f.getBoundingClientRect()).x+5&&d<g.x+g.width-5)return void(l&&mp.Transforms.setNodes(e,{isHoverCellBorder:!1,resizingIndex:-1},{mode:"highest"}));if(bg(f)){var p=f.closest(".table");if(p)for(var h=n.clientX,g=p.getBoundingClientRect(),v="100%"===a?EO(u).map(function(e){return e*r}):u,m=bO(v),y=0;y<m.length;y+=1)if(h-g.x>=m[y]-5&&h-g.x<m[y]+5){if(c===y)return;return void mp.Transforms.setNodes(e,{isHoverCellBorder:!0,resizingIndex:y},{mode:"highest"})}}!0===l&&mp.Transforms.setNodes(e,{isHoverCellBorder:!1,resizingIndex:-1},{mode:"highest"})}}(n,e,t,d)},25)}},eE("colgroup",{contentEditable:!1},l.map(function(e){return eE("col",{width:e})})),eE("tbody",null,t)),eE("div",{className:"column-resizer",contentEditable:!1},l.map(function(e,t){var r=e;return"100%"===a&&(r=m[t]*d),eE("div",{className:"column-resizer-item",style:{minWidth:"".concat(r,"px")}},eE("div",{className:"resizer-line-hotzone ".concat(f&&t===p?"visible ":"").concat(h&&t===p?"highlight":""),style:{height:"".concat(s,"px")},on:{mouseenter:function(e){return kO(n,e)},mouseleave:function(e){return kO(n,e)},mousedown:function(e){return function(e){DO||(xO=e)}(n)}}},eE("div",{className:"resizer-line"})))}))),b=Ib("div",{hook:{insert:function(e){var t=e.elm;return function(e,t){if(bg(t)){var n=t.querySelector("table");n&&(CO=new ResizeObserver(function(t){var n=Op(t,1)[0].contentRect;mp.Transforms.setNodes(e,{scrollWidth:n.width,height:n.height},{mode:"highest"})}),CO.observe(n))}}(n,t)},destroy:function(){CO&&(null==CO||CO.disconnect(),CO=null)}}},y);return b}},PO={type:"table-row",renderElem:function(e,t,n){return eE("tr",null,t)}},IO={type:"table-cell",renderElem:function(e,t,n){var r=function(e,t){var n=uv.getParentNode(e,t);if(null==n)return!1;var r=uv.getParentNode(e,n);return null!=r&&$T(r).some(function(e){return e===t})}(n,e),o=e,i=o.colSpan,a=void 0===i?1:i,s=o.rowSpan,u=void 0===s?1:s,l=o.isHeader,c=void 0!==l&&l,d=o.hidden,f=void 0!==d&&d,p=qT.isSelected(n,e);return eE(r&&c?"th":"td",{colSpan:a,rowSpan:u,"data-block-type":"table-cell",className:p?"w-e-selected":"",style:{display:f?"none":""}},t)}};function _O(e,t){null==e.data&&(e.data={});var n=e.data;null==n.style&&(n.style={}),Object.assign(n.style,t)}var RO={renderStyle:function(e,t){var n,r;if(!mp.Element.isElement(e))return t;var o=e,i=o.backgroundColor,a=o.borderWidth,s=o.borderStyle,u=o.borderColor,l=o.textAlign,c={};i&&(c.backgroundColor=i),a&&(c.borderWidth="".concat(a,"px")),s&&(c.borderStyle="none"===s?"":s),u&&(c.borderColor=u),l&&(c.textAlign=l);var d=t;return"table"===e.type?_O(null===(r=(null===(n=d.children)||void 0===n?void 0:n[0]).children)||void 0===r?void 0:r[0],c):_O(d,c),d},styleToHtml:function(e,t){if("table"!==e.type&&"table-cell"!==e.type)return t;var n=e.backgroundColor,r=e.borderWidth,o=e.borderStyle,i=e.borderColor,a=e.textAlign;if(!(n||r||o||i||a))return t;var s=Ph(t);return n&&s.css("background-color",n),r&&s.css("border-width","".concat(r,"px")),o&&s.css("border-style","none"===o?"":o),i&&s.css("border-color",i),a&&s.css("text-align",a),function(e){return 0===e.length?"":e[0].outerHTML}(s)},parseStyleHtml:function(e,t,n){if(!["TABLE","TD","TH"].includes(e.tagName))return t;var r=Ph(e),o=t,i=PT(r,"background-color");i||(i=PT(r,"background")),i&&(o.backgroundColor=i);var a=PT(r,"border");a||"TD"!==e.tagName||(a="1px solid ".concat(pO));var s=Op((null==a?void 0:a.split(" "))||[],3),u=s[0],l=s[1],c=s[2];(u=PT(r,"border-width")||u)&&(o.borderWidth=u.replace(/[^\d]/g,"")),(l=PT(r,"border-style")||l)&&(o.borderStyle="none"===l?"":l),(c=PT(r,"border-color")||c)&&(o.borderColor=c);var d=PT(r,"text-align");return(d=PT(r,"text-align")||d)&&(o.textAlign=d),t},renderElems:[FO,PO,IO],elemsToHtml:[DT,AT,ST],preParseHtml:[yO],parseElemsHtml:[lO,cO,fO],menus:[ZT,JT,QT,eO,tO,nO,rO,oO,iO,aO,sO,uO],editorPlugin:function(e){var t=e.insertBreak,n=e.deleteBackward,r=e.deleteForward,o=e.deleteFragment,i=e.normalizeNode,a=e.insertData,s=e.handleTab,u=e.selectAll,l=e;l.insertBreak=function(){null==uv.getSelectedNodeByType(l,"table")?t():l.insertText("\n\r")},l.deleteBackward=function(e){if(!hO(l)&&!vO(l,e,"backward")){var t=l.selection;if(t){var r=mp.Editor.before(l,t),o=mp.Editor.above(l,{at:t,match:function(e){return uv.checkNodeType(e,"table-cell")}});if(r){var i=mO(l,r);if(!o&&i&&uv.getSelectedNodeByType(l,"paragraph"))return}}n(e)}},l.handleTab=function(){var t;if(uv.getSelectedNodeByType(l,"table")){var n=mp.Editor.above(e);uv.checkNodeType(n[0],"table-cell")&&mp.Transforms.select(e,n[1]);var r=mp.Editor.next(e);if(r)r[0]&&r[0].text&&(r=null!==(t=mp.Editor.above(e,{at:r[1]}))&&void 0!==t?t:r),mp.Transforms.select(e,r[1]);else{var o=l.children||[],i=o.length;if(uv.checkNodeType(o[i-1],"table")){var a=uv.genEmptyParagraph();mp.Transforms.insertNodes(l,a,{at:[i]}),l.handleTab()}}}else s()},l.deleteForward=function(e){if(!hO(l)&&!vO(l,e,"forward")){var t=l.selection;if(t){var n=mp.Editor.after(l,t),o=mp.Editor.above(l,{at:t,match:function(e){return uv.checkNodeType(e,"table-cell")}});if(n){var i=mO(l,n);if(!o&&i&&uv.getSelectedNodeByType(l,"paragraph"))return}}r(e)}},l.deleteFragment=function(e){var t=l.selection;if(t){var n,r=!1,i={anchor:t.anchor,focus:t.focus},a=mp.Point.isBefore(i.anchor,i.focus);if(gO(l,t.anchor))(n=mp.Editor[a?"before":"after"](l,t.anchor))&&(i.anchor=n),r=!0;if(gO(l,t.focus))(n=mp.Editor[a?"after":"before"](l,t.focus))&&(i.focus=n),r=!0;r&&mp.Transforms.setSelection(l,i),o(e)}},l.normalizeNode=function(e){var t=Op(e,2),n=t[0],r=t[1];if("table"!==uv.getNodeType(n))return i([n,r]);if(uv.isLastNode(l,n)){var o=uv.genEmptyParagraph();mp.Transforms.insertNodes(l,o,{at:[r[0]+1]})}},l.insertData=function(e){if(null!=uv.getSelectedNodeByType(l,"table")){var t=e.getData("text/plain");"\n"===t||/<img[^>]+>/.test(e.getData("text/html"))?a(e):mp.Editor.insertText(l,t)}else a(e)},l.selectAll=function(){var e=l.selection;if(null!=e){var t=uv.getSelectedNodeByType(l,"table-cell");if(null!=t){var n=e.anchor,r=e.focus;if(mp.Path.equals(n.path.slice(0,3),r.path.slice(0,3)))if(0!==mp.Node.string(t).length){var o=uv.findPath(l,t),i={anchor:mp.Editor.start(l,o),focus:mp.Editor.end(l,o)};l.select(i)}else u();else u()}else u()}else u()},function(e){var t=e.apply;e.apply=function(n){if(!mp.Operation.isSelectionOperation(n)||!n.newProperties)return t(n);var r=Dp(Dp({},e.selection),n.newProperties);if(!mp.Range.isRange(r))return qT.unselect(e),t(n);var o=function(e){return mp.Element.isElement(e)&&("table-cell"===e.type||"th"===e.type||"td"===e.type)},i=Op(mp.Editor.nodes(e,{match:o,at:mp.Range.start(r),mode:"lowest"}),1)[0],a=Op(mp.Editor.nodes(e,{match:o,at:mp.Range.end(r),mode:"lowest"}),1)[0];if(!i||!a)return qT.unselect(e),t(n);var s=Op(i,2)[1],u=Op(a,2)[1];if(mp.Path.equals(s,u)||!NT(e,[s,u],"table"))return qT.unselect(e),t(n);try{var l=BT(e,{at:s});if(!l||0===l.length)return qT.unselect(e),t(n);for(var c=kT.valueOf(0,0),d=kT.valueOf(0,0),f=!1,p=!1,h=0;h<l.length;h+=1)if(l[h])for(var g=0;g<l[h].length;g+=1)if(l[h][g]){var v=Op(l[h][g],1),m=Op(v[0],2)[1];mp.Path.equals(s,m)&&(c.x=h,c.y=g,f=!0),mp.Path.equals(u,m)&&(d.x=h,d.y=g,p=!0)}if(!f||!p)return qT.unselect(e),t(n);for(var y=kT.valueOf(Math.min(c.x,d.x),Math.min(c.y,d.y)),b=kT.valueOf(Math.max(c.x,d.x),Math.max(c.y,d.y));;){var E=kT.valueOf(y.x,y.y),C=kT.valueOf(b.x,b.y);for(h=E.x;h<=C.x&&h<l.length;h+=1)if(l[h])for(g=E.y;g<=C.y&&g<l[h].length;g+=1)if(l[h][g]){var w=Op(l[h][g],2)[1];if(w){var D=w.rtl,A=w.ltr,S=w.btt,x=w.ttb;E.x=Math.min(E.x,h-(x-1)),E.y=Math.min(E.y,g-(D-1)),C.x=Math.max(C.x,h+(S-1)),C.y=Math.max(C.y,g+(A-1))}}if(kT.equals(y,E)&&kT.equals(b,C))break;y=E,b=C}var T=[],O=new WeakSet;for(h=y.x;h<=b.x&&h<l.length;h+=1)if(l[h]){var N=[];for(g=y.y;g<=b.y&&g<l[h].length;g+=1)if(l[h][g]){var B=Op(l[h][g],1),k=Op(B[0],1)[0];k&&(O.add(k),N.push(l[h][g]))}N.length>0&&T.push(N)}IT.set(e,T),_T.set(e,O)}catch(r){return qT.unselect(e),t(n)}t(n)}}(l),l.getTableSelection=function(){return IT.get(l)||null};var c=l.addMark,d=l.removeMark,f=Dp({},mp.Transforms);return l.addMark=function(e,t){var n=IT.get(l);if(n&&n.length>0){var r=l.selection;n.forEach(function(n){n.forEach(function(n){var r=Op(n[0],2)[1],o=mp.Editor.start(l,r),i=mp.Editor.end(l,r);mp.Transforms.select(l,{anchor:o,focus:i}),c(e,t)})}),r&&mp.Transforms.select(l,r)}else c(e,t)},l.removeMark=function(e){var t=IT.get(l);if(t&&t.length>0){var n=l.selection;t.forEach(function(t){t.forEach(function(t){var n=Op(t[0],2)[1],r=mp.Editor.start(l,n),o=mp.Editor.end(l,n);mp.Transforms.select(l,{anchor:r,focus:o}),d(e)})}),n&&mp.Transforms.select(l,n)}else d(e)},mp.Transforms.setNodes=function(e,t,n){if(void 0===n&&(n={}),e===l){var r=IT.get(l);if(r&&r.length>0)return"hidden"in t||"rowSpan"in t||"colSpan"in t?void f.setNodes(e,t,n):void r.forEach(function(r){r.forEach(function(r){var o=Op(r[0],2)[1];f.setNodes(e,t,Dp(Dp({},n),{at:o}))})})}f.setNodes(e,t,n)},l}};wy("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),wy("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});tg&&(Ph.fn.append=tg),$h&&(Ph.fn.on=$h),sg&&(Ph.fn.remove=sg),zh&&(Ph.fn.val=zh),dg&&(Ph.fn.click=dg),qh&&(Ph.fn.hide=qh);var LO=new WeakMap;function MO(e){return e.getMenuConfig("uploadImage")}function jO(e,t){return Sp(this,void 0,void 0,function(){return xp(this,function(n){return[2,new Promise(function(n){var r=new FileReader;r.readAsDataURL(t),r.onload=function(){var o=r.result;if(o){var i=o.toString(),a=0===i.indexOf("data:image")?"":i;yS(e,i,t.name,a),n("ok")}}})]})})}function HO(e,t){return Sp(this,void 0,void 0,function(){var n,r;return xp(this,function(o){switch(o.label){case 0:return n=function(e){var t=LO.get(e);if(null!=t)return t;var n=MO(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,s=n.onError;return t=yD(Dp(Dp({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,function(t,n,r){return yS(e,t,n,r)}),void r(t,n);var o=n.errno,s=void 0===o?1:o,u=n.data,l=void 0===u?{}:u;if(0===s){if(Array.isArray(l))l.forEach(function(t){var n=t.url,r=void 0===n?"":n,o=t.alt,i=void 0===o?"":o,a=t.href;yS(e,r,i,void 0===a?"":a)});else{var c=l.url,d=void 0===c?"":c,f=l.alt,p=void 0===f?"":f,h=l.href;yS(e,d,p,void 0===h?"":h)}r(t,n)}else i(t,n)},onError:function(e,t,n){s(e,t,n)}})),LO.set(e,t),t}(e),r=t.map(function(e){return{name:e.name,type:e.type,size:e.size,data:e}}),n.addFiles(r),[4,n.upload()];case 1:return o.sent(),[2]}})})}function zO(e,t){return Sp(this,void 0,void 0,function(){var n,r,o,i,a,s,u,l,c,d,f,p,h,g,v;return xp(this,function(m){switch(m.label){case 0:if(null==t)return[2];n=Array.prototype.slice.call(t),r=MO(e),o=r.customUpload,i=r.base64LimitSize,a=[],m.label=1;case 1:m.trys.push([1,10,11,16]),s=!0,u=Bp(n),m.label=2;case 2:return[4,u.next()];case 3:return l=m.sent(),(p=l.done)?[3,9]:(v=l.value,s=!1,d=(c=v).size,i&&d<=i?[4,jO(e,c)]:[3,5]);case 4:return m.sent(),[3,8];case 5:return o?[4,o(c,function(t,n,r){return yS(e,t,n,r)})]:[3,7];case 6:return m.sent(),[3,8];case 7:a.push(c),m.label=8;case 8:return s=!0,[3,2];case 9:return[3,16];case 10:return f=m.sent(),h={error:f},[3,16];case 11:return m.trys.push([11,,14,15]),s||p||!(g=u.return)?[3,13]:[4,g.call(u)];case 12:m.sent(),m.label=13;case 13:return[3,15];case 14:if(h)throw h.error;return[7];case 15:return[7];case 16:return a.length>0?[4,HO(e,a)]:[3,18];case 17:m.sent(),m.label=18;case 18:return[2]}})})}var $O=function(){function e(){this.title=Ay("uploadImgModule.uploadImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M828.708571 585.045333a48.761905 48.761905 0 0 0-48.737523 48.761905v18.529524l-72.143238-72.167619a135.972571 135.972571 0 0 0-191.585524 0l-34.133334 34.133333-120.880762-120.953905a138.898286 138.898286 0 0 0-191.585523 0l-72.167619 72.167619V292.400762a48.786286 48.786286 0 0 1 48.761904-48.761905h341.23581a48.737524 48.737524 0 0 0 34.474667-83.285333 48.737524 48.737524 0 0 0-34.474667-14.287238H146.236952A146.212571 146.212571 0 0 0 0 292.400762v585.289143A146.358857 146.358857 0 0 0 146.236952 1024h584.996572a146.212571 146.212571 0 0 0 146.236952-146.310095V633.807238a48.786286 48.786286 0 0 0-48.761905-48.761905zM146.261333 926.45181a48.737524 48.737524 0 0 1-48.761904-48.761905v-174.128762l141.409523-141.458286a38.497524 38.497524 0 0 1 53.126096 0l154.526476 154.624 209.627428 209.724953H146.236952z m633.734096-48.761905c-0.073143 9.337905-3.145143 18.383238-8.777143 25.843809l-219.843048-220.94019 34.133333-34.133334a37.546667 37.546667 0 0 1 53.613715 0l140.873143 141.897143V877.714286zM1009.615238 160.231619L863.329524 13.897143a48.737524 48.737524 0 0 0-16.091429-10.24c-11.849143-4.87619-25.161143-4.87619-37.059047 0a48.761905 48.761905 0 0 0-16.067048 10.24l-146.236952 146.334476a49.005714 49.005714 0 0 0 69.217523 69.241905l62.902858-63.390476v272.627809a48.761905 48.761905 0 1 0 97.475047 0V166.083048l62.902857 63.390476a48.737524 48.737524 0 0 0 69.217524 0 48.761905 48.761905 0 0 0 0-69.241905z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return gS(e)},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadImage")},e.prototype.exec=function(e,t){var n=this.getMenuConfig(e),r=n.allowedFileTypes,o=void 0===r?[]:r,i=n.customBrowseAndUpload;if(i)i(function(t,n,r){return yS(e,t,n,r)});else{var a="";o.length>0&&(a='accept="'.concat(o.join(", "),'"'));var s=Ph("body"),u=Ph('<input type="file" '.concat(a," multiple/>"));u.hide(),s.append(u),u.click(),u.on("change",function(){var t=u[0].files;zO(e,t)})}},e}();var UO={menus:[{key:"uploadImage",factory:function(){return new $O},config:{server:"",fieldName:"wangeditor-uploaded-image",maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:["image/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'".concat(e.name,"' upload failed"),t)},onError:function(e,t,n){console.error("'".concat(e.name,"' upload error"),n)},base64LimitSize:0}}],editorPlugin:function(e){var t=e.insertData,n=e;return n.insertData=function(r){if(gS(n))t(r);else if(r.getData("text/plain"))t(r);else{var o=r.files;if(o.length<=0)t(r);else Array.prototype.slice.call(o).some(function(e){return"image"===Op(e.type.split("/"),1)[0]})?zO(e,o):t(r)}},n}};function VO(e){return e.length?e[0].tagName.toLowerCase():""}function WO(e,t,n,r){void 0===t&&(t="auto"),void 0===n&&(n="auto"),void 0===r&&(r={});var o=Ph(e),i=r.width,a=void 0===i?"":i,s=r.height,u=void 0===s?"":s,l="";return a&&(l+="width: ".concat(a,";")),u&&(l+="height: ".concat(u,";")),o.attr("width",t),o.attr("height",n),o.attr("style",l),o[0].outerHTML}wy("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"}}),wy("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",edit:"编辑视频",width:"宽度",height:"高度"}}),tg&&(Ph.fn.append=tg),$h&&(Ph.fn.on=$h),fg&&(Ph.fn.focus=fg),Lh&&(Ph.fn.attr=Lh),zh&&(Ph.fn.val=zh),Jh&&(Ph.fn.html=Jh),rg&&(Ph.fn.parent=rg),Rh&&(Ph.fn.hasClass=Rh),ug&&(Ph.fn.empty=ug);var GO={type:"video",elemToHtml:function(e,t){var n=e,r=n.src,o=void 0===r?"":r,i=n.poster,a=void 0===i?"":i,s=n.width,u=void 0===s?"auto":s,l=n.height,c=void 0===l?"auto":l,d=n.style,f=void 0===d?{}:d,p=n.textAlign,h='<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 ")){h+=WO(o,u,c,f)}else{var g=f.width,v=void 0===g?"":g,m=f.height,y=void 0===m?"":m,b="";v&&(b+="width: ".concat(v,";")),y&&(b+="height: ".concat(y,";")),h+='<video poster="'.concat(a,'" controls="true" width="').concat(u,'" height="').concat(c,'" style="').concat(b,'"><source src="').concat(o,'" type="video/mp4"/></video>')}return h+="\n</div>"}};function qO(e){return void 0===e&&(e="r"),"".concat(e,"-").concat(hg())}function KO(e){var t={};return e.trim().split(";").forEach(function(e){if(e){var n=Op(e.split(":"),2),r=n[0],o=n[1];r&&o&&(t[r.trim()]=o.trim())}}),t}function YO(){return qO("w-e-insert-video")}var XO=function(){function e(){this.title=Ay("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=YO(),this.heightInputId=YO(),this.buttonId=YO()}return e.prototype.getSelectedVideoNode=function(e){return uv.getSelectedNodeByType(e,"video")},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedVideoNode(e)},e.prototype.getModalPositionNode=function(e){return this.getSelectedVideoNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=t.widthInputId,r=t.heightInputId,o=t.buttonId,i=Op(_y(Ay("videoModule.width"),n,"auto"),2),a=i[0],s=Ph(i[1]),u=Op(_y(Ay("videoModule.height"),r,"auto"),2),l=u[0],c=Ph(u[1]),d=Op(Ry(o,Ay("videoModule.ok")),1)[0],f=this.getSelectedVideoNode(e);if(null==this.$content){var p=Ph("<div></div>");p.on("click","#".concat(o),function(t){t.preventDefault();var o=p.find("#".concat(n)).val().trim(),i=p.find("#".concat(r)).val().trim(),a=function(e){return/^\d+(\.\d+)?%$/.test(e)},s=function(e){return/^\d+(\.\d+)?$/.test(e)},u="auto",l="auto";a(o)?u=o:s(o)&&(u="".concat(parseInt(o,10),"px")),a(i)?l=i:s(i)&&(l="".concat(parseInt(i,10),"px"));var c=f.style,d=void 0===c?{}:c;e.restoreSelection();var h={style:Dp(Dp({},d),{width:u,height:l})};mp.Transforms.setNodes(e,h,{match:function(e){return uv.checkNodeType(e,"video")}}),e.hidePanelOrModal()}),this.$content=p}var h=this.$content;if(h.empty(),h.append(a),h.append(l),h.append(d),null==f)return h[0];var g=f.style,v=void 0===g?{}:g,m=v.width,y=void 0===m?"":m,b=v.height,E=void 0===b?"":b;return s.val(y),c.val(E),setTimeout(function(){s.focus()}),h[0]},e}();function ZO(){return qO("w-e-edit-video")}var JO=function(){function e(){this.title=Ay("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=ZO(),this.posterInputId=ZO(),this.buttonId=ZO()}return e.prototype.getSelectedVideoNode=function(e){return uv.getSelectedNodeByType(e,"video")},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedVideoNode(e)},e.prototype.getModalPositionNode=function(e){return this.getSelectedVideoNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.posterInputId,i=n.buttonId,a=Op(_y(Ay("videoModule.videoSrc"),r,Ay("videoModule.videoSrcPlaceHolder")),2),s=a[0],u=a[1],l=Op(_y(Ay("videoModule.videoPoster"),o,Ay("videoModule.videoPosterPlaceHolder")),2),c=l[0],d=l[1],f=Ph(u),p=Ph(d),h=Op(Ry(i,Ay("videoModule.ok")),1)[0];if(null==this.$content){var g=Ph("<div></div>");g.on("click","#".concat(i),function(n){return Sp(t,void 0,void 0,function(){var t,i,a,s;return xp(this,function(u){return n.preventDefault(),t=g.find("#".concat(r)).val().trim(),i=g.find("#".concat(o)).val().trim(),a=qO("video-"),s={src:t,poster:i,key:a},e.restoreSelection(),mp.Transforms.setNodes(e,s,{match:function(e){return uv.checkNodeType(e,"video")}}),e.hidePanelOrModal(),[2]})})}),this.$content=g}var v=this.$content;v.empty(),v.append(s),v.append(c),v.append(h);var m=this.getSelectedVideoNode(e);if(null==m)return v[0];var y=m.src,b=void 0===y?"":y,E=m.poster,C=void 0===E?"":E;return f.val(b),p.val(C),setTimeout(function(){f.focus()}),v[0]},e}();function QO(e,t){return Sp(this,arguments,void 0,function(e,t,n,r,o){var i,a,s,u,l,c,d;return void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o=""),xp(this,function(f){switch(f.label){case 0:return t?(e.restoreSelection(),i=e.getMenuConfig("insertVideo"),a=i.onInsertedVideo,s=i.checkVideo,u=i.parseVideoSrc,[4,s(t,n)]):[2];case 1:return"string"==typeof(l=f.sent())?(e.alert(l,"error"),[2]):null==l?[2]:[4,u(t)];case 2:return 0!==(c=f.sent()).trim().indexOf("<iframe ")&&(c=function(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;")}(c)),d={type:"video",src:c,poster:n,children:[{text:""}],style:{width:r,height:o}},Promise.resolve().then(function(){uv.isSelectedEmptyParagraph(e)&&mp.Transforms.removeNodes(e,{mode:"highest"}),mp.Transforms.insertNodes(e,d,{mode:"highest"})}),a(d),[2]}})})}function eN(){return qO("w-e-insert-video")}var tN=function(){function e(){this.title=Ay("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=eN(),this.posterInputId=eN(),this.buttonId=eN()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||(!mp.Range.isCollapsed(t)||!!uv.getSelectedElems(e).some(function(t){var n=uv.getNodeType(t);return"pre"===n||("list-item"===n||!!e.isVoid(t))}))},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.posterInputId,i=n.buttonId,a=Op(_y(Ay("videoModule.videoSrc"),r,Ay("videoModule.videoSrcPlaceHolder")),2),s=a[0],u=a[1],l=Op(_y(Ay("videoModule.videoPoster"),o,Ay("videoModule.videoPosterPlaceHolder")),2),c=l[0],d=l[1],f=Ph(u),p=Ph(d),h=Op(Ry(i,Ay("videoModule.ok")),1)[0];if(null==this.$content){var g=Ph("<div></div>");g.on("click","#".concat(i),function(n){return Sp(t,void 0,void 0,function(){var t,i;return xp(this,function(a){switch(a.label){case 0:return n.preventDefault(),t=g.find("#".concat(r)).val().trim(),i=g.find("#".concat(o)).val().trim(),[4,QO(e,t,i)];case 1:return a.sent(),e.hidePanelOrModal(),[2]}})})}),this.$content=g}var v=this.$content;return v.empty(),v.append(s),v.append(c),v.append(h),f.val(""),p.val(""),setTimeout(function(){f.focus()}),v[0]},e}();function nN(e){return e.getMenuConfig("uploadVideo")}var rN=new WeakMap;function oN(e,t){return Sp(this,void 0,void 0,function(){var n,r;return xp(this,function(o){switch(o.label){case 0:return n=function(e){var t=rN.get(e);if(null!=t)return t;var n=nN(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,s=n.onError;return t=yD(Dp(Dp({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,function(t,n){return QO(e,t,n)}),void r(t,n);var o=n.errno,s=void 0===o?1:o,u=n.data,l=void 0===u?{}:u;if(0===s){var c=l.url,d=void 0===c?"":c,f=l.poster;QO(e,d,void 0===f?"":f),r(t,n)}else i(t,n)},onError:function(e,t,n){s(e,t,n)}})),rN.set(e,t),t}(e),r=t.map(function(e){return{name:e.name,type:e.type,size:e.size,data:e}}),n.addFiles(r),[4,n.upload()];case 1:return o.sent(),[2]}})})}var iN=function(){function e(){this.title=Ay("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(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){var n=this.getMenuConfig(e),r=n.allowedFileTypes,o=void 0===r?[]:r,i=n.customBrowseAndUpload;if(i)i(function(t,n){return QO(e,t,n)});else{var a="";o.length>0&&(a='accept="'.concat(o.join(", "),'"'));var s=Ph("body"),u=Ph('<input type="file" '.concat(a," multiple/>"));u.hide(),s.append(u),u.click(),u.on("change",function(){var t=u[0].files;!function(e,t){Sp(this,void 0,void 0,function(){var n,r,o,i,a,s,u,l,c,d,f,p;return xp(this,function(h){switch(h.label){case 0:if(null==t)return[2];n=Array.prototype.slice.call(t),r=[],o=nN(e).customUpload,h.label=1;case 1:h.trys.push([1,8,9,14]),i=!0,a=Bp(n),h.label=2;case 2:return[4,a.next()];case 3:return s=h.sent(),(c=s.done)?[3,7]:(p=s.value,i=!1,u=p,o?[4,o(u,function(t,n){return QO(e,t,n)})]:[3,5]);case 4:return h.sent(),[3,6];case 5:r.push(u),h.label=6;case 6:return i=!0,[3,2];case 7:return[3,14];case 8:return l=h.sent(),d={error:l},[3,14];case 9:return h.trys.push([9,,12,13]),i||c||!(f=a.return)?[3,11]:[4,f.call(a)];case 10:h.sent(),h.label=11;case 11:return[3,13];case 12:if(d)throw d.error;return[7];case 13:return[7];case 14:return r.length>0?[4,oN(e,r)]:[3,16];case 15:h.sent(),h.label=16;case 16:return[2]}})})}(e,t)})}},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||(!mp.Range.isCollapsed(t)||!!uv.getSelectedElems(e).some(function(t){var n=uv.getNodeType(t);return"pre"===n||("list-item"===n||!!e.isVoid(t))}))},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadVideo")},e}();function aN(e,t,n,r,o,i){return void 0===t&&(t=""),void 0===n&&(n="auto"),void 0===r&&(r="auto"),void 0===o&&(o={}),void 0===i&&(i="center"),{type:"video",src:e,poster:t,width:n,height:r,style:o,children:[{text:""}],textAlign:i}}var sN={selector:'div[data-w-e-type="video"]',parseElemHtml:function(e,t,n){var r=Ph(e),o="",i="",a="auto",s="auto",u={},l=r.find("iframe");if(l.length>0)return a=l.attr("width")||"auto",s=l.attr("height")||"auto",u=KO(u=l.attr("style")||""),aN(o=l[0].outerHTML,i,a,s,u,KO(r.attr("style")||"")["text-align"]||"center");var c=r.find("video");return(o=c.attr("src")||"")||c.length>0&&(o=c.find("source").attr("src")||""),a=c.attr("width")||"auto",s=c.attr("height")||"auto",aN(o,i=c.attr("poster")||"",a,s,u=KO(u=c.attr("style")||""),KO(r.attr("style")||"")["text-align"]||"center")}};var uN={selector:"iframe,video,p",preParseHtml:function(e){var t=Ph(e),n=t;if("p"===VO(t)){var r=t.children();if(1===r.length){var o=r[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(n=Ph(o))}}var a=VO(n);if("iframe"!==a&&"video"!==a)return n[0];if("video"===n.parent().attr("data-w-e-type"))return n[0];var s=Ph('<div data-w-e-type="video" data-w-e-is-void style="text-align: center;"></div>');return s.append(n),s[0]}};var lN={type:"video",renderElem:function(e,t,n){var r,o=e,i=o.src,a=void 0===i?"":i,s=o.poster,u=void 0===s?"":s,l=o.key,c=void 0===l?"":l,d=o.width,f=void 0===d?"auto":d,p=o.height,h=void 0===p?"auto":p,g=o.style,v=void 0===g?{}:g,m=o.textAlign,y=void 0===m?"center":m,b=uv.isNodeSelected(n,e);if(0===a.trim().indexOf("<iframe ")){r=eE("div",{className:"w-e-textarea-video-container","data-selected":b?"true":"",style:{textAlign:y},innerHTML:WO(a,f,h,v)})}else{var E=eE("video",{key:c,poster:u,controls:!0,style:v},eE("source",{src:a,type:"video/mp4"}),"Sorry, your browser doesn't support embedded videos.\n 抱歉,浏览器不支持 video 视频");"auto"!==f&&(E.data.width=f),"auto"!==h&&(E.data.height=h),r=eE("div",{className:"w-e-textarea-video-container","data-selected":b?"true":"",style:{textAlign:y}},E)}var C=Ib("div",{props:{contentEditable:!1},on:{mousedown:function(e){return e.preventDefault()}}},r);return C}},cN={renderElems:[lN],elemsToHtml:[GO],preParseHtml:[uN],parseElemsHtml:[sN],menus:[{key:"insertVideo",factory:function(){return new tN},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:"uploadVideo",factory:function(){return new iN},config:{server:"",fieldName:"wangeditor-uploaded-video",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["video/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'".concat(e.name,"' upload failed"),t)},onError:function(e,t,n){console.error("'".concat(e.name," upload error"),t,n)}}},{key:"editVideoSize",factory:function(){return new XO}},{key:"editVideoSrc",factory:function(){return new JO}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(e){return"video"===e.type||t(e)},r.normalizeNode=function(e){var t=Op(e,2),o=t[0],i=t[1];"video"===uv.getNodeType(o)&&(uv.isLastNode(r,o)&&mp.Transforms.insertNodes(r,uv.genEmptyParagraph(),{at:[i[0]+1]}));return n([o,i])},r}},dN=function(){function e(){throw new Error("不能实例化\nCan not construct a instance")}return e.setEditorConfig=function(e){void 0===e&&(e={}),this.editorConfig=Dp(Dp({},this.editorConfig),e)},e.setSimpleEditorConfig=function(e){void 0===e&&(e={}),this.simpleEditorConfig=Dp(Dp({},this.simpleEditorConfig),e)},e.setToolbarConfig=function(e){void 0===e&&(e={}),this.toolbarConfig=Dp(Dp({},this.toolbarConfig),e)},e.setSimpleToolbarConfig=function(e){void 0===e&&(e={}),this.simpleToolbarConfig=Dp(Dp({},this.simpleToolbarConfig),e)},e.registerPlugin=function(e){this.plugins.push(e)},e.registerMenu=function(e,t){qp(e,t)},e.registerRenderElem=function(e){var t,n,r;n=(t=e).type,r=t.renderElem,oE[n||""]=r},e.registerRenderStyle=function(e){!function(e){tE.push(e)}(e)},e.registerElemToHtml=function(e){!function(e){var t=e.type,n=e.elemToHtml;Kg[t||""]=n}(e)},e.registerStyleToHtml=function(e){!function(e){Wg.push(e)}(e)},e.registerPreParseHtml=function(e){var t;t=e,Ig.push(t)},e.registerParseElemHtml=function(e){!function(e){var t=e.selector,n=e.parseElemHtml;Rg[t]=n}(e)},e.registerParseStyleHtml=function(e){!function(e){_g.push(e)}(e)},e.registerModule=function(e){fN(e)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e}();function fN(e){var t=e.menus,n=e.renderElems,r=e.renderStyle,o=e.elemsToHtml,i=e.styleToHtml,a=e.preParseHtml,s=e.parseElemsHtml,u=e.parseStyleHtml,l=e.editorPlugin;t&&t.forEach(function(e){return dN.registerMenu(e)}),n&&n.forEach(function(e){return dN.registerRenderElem(e)}),r&&dN.registerRenderStyle(r),o&&o.forEach(function(e){return dN.registerElemToHtml(e)}),i&&dN.registerStyleToHtml(i),a&&a.forEach(function(e){return dN.registerPreParseHtml(e)}),s&&s.forEach(function(e){return dN.registerParseElemHtml(e)}),u&&dN.registerParseStyleHtml(u),l&&dN.registerPlugin(l)}zx.forEach(function(e){return fN(e)}),fN(wT),fN(RO),fN(cN),fN(UO),fN(iT);var pN='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>';var hN={link:{menuKeys:["editLink","unLink","viewLink"]},image:{menuKeys:["imageWidth30","imageWidth50","imageWidth100","editorImageSizeMenu","editImage","viewImageLink","deleteImage"]},pre:{menuKeys:["enter","codeBlock","codeSelectLang"]},table:{menuKeys:["enter","tableHeader","tableFullWidth","insertTableRow","deleteTableRow","insertTableCol","deleteTableCol","deleteTable","mergeTableCell","splitTableCell","setTableProperty","setTableCellProperty"]},divider:{menuKeys:["enter"]},video:{menuKeys:["enter","editVideoSize","editVideoSrc"]}};var gN,vN={hoverbarKeys:(gN=["formatPainter","headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"],null!=Gp.textToFormula&&gN.push("|","textToFormula"),Dp(Dp({},hN),{text:{menuKeys:gN}}))};dN.setEditorConfig(Dp(Dp({},vN),{decorate:tT}));var mN={hoverbarKeys:hN};dN.setSimpleEditorConfig(Dp(Dp({},mN),{decorate:tT}));var yN={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:Ay("editor.more"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>',menuKeys:["through","code","sup","sub","clearStyle"]},"color","bgColor","|","fontSize","fontFamily","lineHeight","|","bulletedList","numberedList","todo",{key:"group-justify",title:Ay("editor.justify"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:Ay("editor.indent"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',menuKeys:["indent","delIndent"]},"|","emotion","insertLink",{key:"group-image",title:Ay("editor.image"),iconSvg:pN,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:Ay("editor.video"),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>',menuKeys:["insertVideo","uploadVideo"]},"insertTable","codeBlock","divider","|","undo","redo","|","formatPainter","fullScreen"]};dN.setToolbarConfig(yN);var bN={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:Ay("editor.image"),iconSvg:pN,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};dN.setSimpleToolbarConfig(bN);e.Boot=dN,e.DomEditor=uv,e.SlateEditor=mp.Editor,e.SlateElement=mp.Element,e.SlateLocation=mp.Location,e.SlateNode=mp.Node,e.SlatePath=mp.Path,e.SlatePoint=mp.Point,e.SlateRange=mp.Range,e.SlateText=mp.Text,e.SlateTransforms=mp.Transforms,e.Toolbar=CE,e.createEditor=function(e){void 0===e&&(e={});var t=e.selector,n=void 0===t?"":t,r=e.content,o=void 0===r?[]:r,i=e.html,a=e.config,s=void 0===a?{}:a,u=e.mode,l="simple"===(void 0===u?"default":u)?dN.simpleEditorConfig:dN.editorConfig,c=Dp(Dp({},l.hoverbarKeys||{}),s.hoverbarKeys||{});return EE({selector:n,config:Dp(Dp(Dp({},l),s),{hoverbarKeys:c}),content:o,html:i,plugins:dN.plugins})},e.createToolbar=function(e){var t=e.selector,n=e.editor,r=e.config,o=void 0===r?{}:r,i=e.mode,a=void 0===i?"default":i;if(!t)throw new Error("Cannot find 'selector' when create toolbar");var s="simple"===a?dN.simpleToolbarConfig:dN.toolbarConfig;return wE(n,{selector:t,config:Dp(Dp({},s),o)})},e.createUploader=yD,e.default={},e.genModalButtonElems=Ry,e.genModalInputElems=_y,e.genModalTextareaElems=function(e,t,n){var r=Ph('<label class="babel-container"></label>');r.append("<span>".concat(e,"</span>"));var o=Ph('<textarea type="text" id="'.concat(t,'" placeholder="').concat(n||"",'"></textarea>'));return r.append(o),[r[0],o[0]]},e.i18nAddResources=wy,e.i18nChangeLanguage=function(e){Ey.changeLanguage(e)},e.i18nGetResources=function(e){return Ey.getResourceBundle(e,Cy)},e.t=Ay,Object.defineProperty(e,"__esModule",{value:!0})});
34
28
  //# sourceMappingURL=index.js.map