@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.mjs CHANGED
@@ -1,10 +1,10 @@
1
- var t,e,r,n,o,i,u,a,s,c,l,f,d,p,h,v,g,y,m="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function b(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function E(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if("function"==typeof e){var r=function t(){var r=!1;try{r=this instanceof t}catch{}return r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(e){var n=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,n.get?n:{enumerable:!0,get:function(){return t[e]}})}),r}function w(){return e?t:(e=1,t=function(t){try{return!!t()}catch(t){return!0}})}function S(){if(n)return r;n=1;var t=w();return r=!t(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})}function C(){if(i)return o;i=1;var t=S(),e=Function.prototype,r=e.call,n=t&&e.bind.bind(r,r);return o=t?n:function(t){return function(){return r.apply(t,arguments)}},o}function D(){if(a)return u;a=1;var t=C(),e=t({}.toString),r=t("".slice);return u=function(t){return r(e(t),8,-1)},u}function O(){if(c)return s;c=1;var t=C(),e=w(),r=D(),n=Object,o=t("".split);return s=e(function(){return!n("z").propertyIsEnumerable(0)})?function(t){return"String"===r(t)?o(t,""):n(t)}:n,s}function A(){return f||(f=1,l=function(t){return null==t}),l}function x(){if(p)return d;p=1;var t=A(),e=TypeError;return d=function(r){if(t(r))throw new e("Can't call method on "+r);return r},d}function T(){if(v)return h;v=1;var t=O(),e=x();return h=function(r){return t(e(r))},h}function N(){if(y)return g;y=1;var t=function(t){return t&&t.Math===Math&&t};return g=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof m&&m)||t("object"==typeof g&&g)||function(){return this}()||Function("return this")()}var k,P,B,I,F,R,L,_,j,M,z,H,$,U,V,G,W,q,K,Y,X,J,Z,Q,tt,et,rt,nt,ot,it={exports:{}};function ut(){return P?k:(P=1,k=!1)}function at(){if(I)return B;I=1;var t=N(),e=Object.defineProperty;return B=function(r,n){try{e(t,r,{value:n,configurable:!0,writable:!0})}catch(e){t[r]=n}return n}}function st(){if(F)return it.exports;F=1;var t=ut(),e=N(),r=at(),n="__core-js_shared__",o=it.exports=e[n]||r(n,{});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"}),it.exports}function ct(){if(L)return R;L=1;var t=st();return R=function(e,r){return t[e]||(t[e]=r||{})}}function lt(){if(j)return _;j=1;var t=x(),e=Object;return _=function(r){return e(t(r))}}function ft(){if(z)return M;z=1;var t=C(),e=lt(),r=t({}.hasOwnProperty);return M=Object.hasOwn||function(t,n){return r(e(t),n)},M}function dt(){if($)return H;$=1;var t=C(),e=0,r=Math.random(),n=t(1.1.toString);return H=function(t){return"Symbol("+(void 0===t?"":t)+")_"+n(++e+r,36)}}function pt(){if(W)return G;W=1;var t,e,r=N(),n=function(){if(V)return U;V=1;var t=N().navigator,e=t&&t.userAgent;return U=e?String(e):""}(),o=r.process,i=r.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&&n&&(!(t=n.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=n.match(/Chrome\/(\d+)/))&&(e=+t[1]),G=e}function ht(){if(K)return q;K=1;var t=pt(),e=w(),r=N().String;return q=!!Object.getOwnPropertySymbols&&!e(function(){var e=Symbol("symbol detection");return!r(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&t&&t<41}),q}function vt(){if(X)return Y;X=1;var t=ht();return Y=t&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function gt(){if(Z)return J;Z=1;var t=N(),e=ct(),r=ft(),n=dt(),o=ht(),i=vt(),u=t.Symbol,a=e("wks"),s=i?u.for||u:u&&u.withoutSetter||n;return J=function(t){return r(a,t)||(a[t]=o&&r(u,t)?u[t]:s("Symbol."+t)),a[t]}}function yt(){if(tt)return Q;tt=1;var t="object"==typeof document&&document.all;return Q=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(t){return"function"==typeof t}}function mt(){if(rt)return et;rt=1;var t=yt();return et=function(e){return"object"==typeof e?null!==e:t(e)},et}function bt(){if(ot)return nt;ot=1;var t=mt(),e=String,r=TypeError;return nt=function(n){if(t(n))return n;throw new r(e(n)+" is not an object")}}var Et,wt,St,Ct,Dt={};function Ot(){if(wt)return Et;wt=1;var t=w();return Et=!t(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function At(){if(Ct)return St;Ct=1;var t=Ot(),e=w();return St=t&&e(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}var xt,Tt,Nt,kt,Pt,Bt,It,Ft,Rt,Lt,_t,jt,Mt,zt,Ht,$t,Ut,Vt,Gt,Wt,qt,Kt,Yt,Xt,Jt,Zt,Qt,te,ee,re,ne,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,ke,Pe,Be,Ie,Fe,Re,Le,_e={};function je(){if(Tt)return xt;Tt=1;var t=N(),e=mt(),r=t.document,n=e(r)&&e(r.createElement);return xt=function(t){return n?r.createElement(t):{}},xt}function Me(){if(kt)return Nt;kt=1;var t=Ot(),e=w(),r=je();return Nt=!t&&!e(function(){return 7!==Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a})}function ze(){if(Bt)return Pt;Bt=1;var t=S(),e=Function.prototype.call;return Pt=t?e.bind(e):function(){return e.apply(e,arguments)},Pt}function He(){if(Ft)return It;Ft=1;var t=N(),e=yt();return It=function(r,n){return arguments.length<2?(o=t[r],e(o)?o:void 0):t[r]&&t[r][n];var o},It}function $e(){if(Lt)return Rt;Lt=1;var t=C();return Rt=t({}.isPrototypeOf)}function Ue(){if(jt)return _t;jt=1;var t=He(),e=yt(),r=$e(),n=vt(),o=Object;return _t=n?function(t){return"symbol"==typeof t}:function(n){var i=t("Symbol");return e(i)&&r(i.prototype,o(n))},_t}function Ve(){if(zt)return Mt;zt=1;var t=String;return Mt=function(e){try{return t(e)}catch(t){return"Object"}}}function Ge(){if($t)return Ht;$t=1;var t=yt(),e=Ve(),r=TypeError;return Ht=function(n){if(t(n))return n;throw new r(e(n)+" is not a function")}}function We(){if(Vt)return Ut;Vt=1;var t=Ge(),e=A();return Ut=function(r,n){var o=r[n];return e(o)?void 0:t(o)},Ut}function qe(){if(Kt)return qt;Kt=1;var t=ze(),e=mt(),r=Ue(),n=We(),o=function(){if(Wt)return Gt;Wt=1;var t=ze(),e=yt(),r=mt(),n=TypeError;return Gt=function(o,i){var u,a;if("string"===i&&e(u=o.toString)&&!r(a=t(u,o)))return a;if(e(u=o.valueOf)&&!r(a=t(u,o)))return a;if("string"!==i&&e(u=o.toString)&&!r(a=t(u,o)))return a;throw new n("Can't convert object to primitive value")},Gt}(),i=gt(),u=TypeError,a=i("toPrimitive");return qt=function(i,s){if(!e(i)||r(i))return i;var c,l=n(i,a);if(l){if(void 0===s&&(s="default"),c=t(l,i,s),!e(c)||r(c))return c;throw new u("Can't convert object to primitive value")}return void 0===s&&(s="number"),o(i,s)}}function Ke(){if(Xt)return Yt;Xt=1;var t=qe(),e=Ue();return Yt=function(r){var n=t(r,"string");return e(n)?n:n+""}}function Ye(){if(Jt)return _e;Jt=1;var t=Ot(),e=Me(),r=At(),n=bt(),o=Ke(),i=TypeError,u=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s="enumerable",c="configurable",l="writable";return _e.f=t?r?function(t,e,r){if(n(t),e=o(e),n(r),"function"==typeof t&&"prototype"===e&&"value"in r&&l in r&&!r[l]){var i=a(t,e);i&&i[l]&&(t[e]=r.value,r={configurable:c in r?r[c]:i[c],enumerable:s in r?r[s]:i[s],writable:!1})}return u(t,e,r)}:u:function(t,r,a){if(n(t),r=o(r),n(a),e)try{return u(t,r,a)}catch(t){}if("get"in a||"set"in a)throw new i("Accessors not supported");return"value"in a&&(t[r]=a.value),t},_e}function Xe(){if(ee)return te;ee=1;var t=function(){if(Qt)return Zt;Qt=1;var t=Math.ceil,e=Math.floor;return Zt=Math.trunc||function(r){var n=+r;return(n>0?e:t)(n)},Zt}();return te=function(e){var r=+e;return r!=r||0===r?0:t(r)}}function Je(){if(ie)return oe;ie=1;var t=Xe(),e=Math.min;return oe=function(r){var n=t(r);return n>0?e(n,9007199254740991):0}}function Ze(){if(ae)return ue;ae=1;var t=Je();return ue=function(e){return t(e.length)}}function Qe(){if(ce)return se;ce=1;var t=T(),e=function(){if(ne)return re;ne=1;var t=Xe(),e=Math.max,r=Math.min;return re=function(n,o){var i=t(n);return i<0?e(i+o,0):r(i,o)},re}(),r=Ze(),n=function(n){return function(o,i,u){var a=t(o),s=r(a);if(0===s)return!n&&-1;var c,l=e(u,s);if(n&&i!=i){for(;s>l;)if((c=a[l++])!=c)return!0}else for(;s>l;l++)if((n||l in a)&&a[l]===i)return n||l||0;return!n&&-1}};return se={includes:n(!0),indexOf:n(!1)}}function tr(){return fe?le:(fe=1,le={})}function er(){if(pe)return de;pe=1;var t=C(),e=ft(),r=T(),n=Qe().indexOf,o=tr(),i=t([].push);return de=function(t,u){var a,s=r(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++])&&(~n(l,a)||i(l,a));return l},de}function rr(){return ve?he:(ve=1,he=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function nr(){if(me)return Dt;me=1;var t=Ot(),e=At(),r=Ye(),n=bt(),o=T(),i=function(){if(ye)return ge;ye=1;var t=er(),e=rr();return ge=Object.keys||function(r){return t(r,e)},ge}();return Dt.f=t&&!e?Object.defineProperties:function(t,e){n(t);for(var u,a=o(e),s=i(e),c=s.length,l=0;c>l;)r.f(t,u=s[l++],a[u]);return t},Dt}function or(){if(Se)return we;Se=1;var t=ct(),e=dt(),r=t("keys");return we=function(t){return r[t]||(r[t]=e(t))}}function ir(){if(De)return Ce;De=1;var t,e=bt(),r=nr(),n=rr(),o=tr(),i=function(){if(Ee)return be;Ee=1;var t=He();return be=t("document","documentElement")}(),u=je(),a=or(),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,r,o;h="undefined"!=typeof document?document.domain&&t?p(t):(r=u("iframe"),o="java"+c+":",r.style.display="none",i.appendChild(r),r.src=String(o),(e=r.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F):p(t);for(var a=n.length;a--;)delete h[s][n[a]];return h()};return o[l]=!0,Ce=Object.create||function(t,n){var o;return null!==t?(f[s]=e(t),o=new f,f[s]=null,o[l]=t):o=h(),void 0===n?o:r.f(o,n)},Ce}function ur(){return Te?xe:(Te=1,xe={})}function ar(){return Be?Pe:(Be=1,Pe=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}})}function sr(){if(Fe)return Ie;Fe=1;var t=Ot(),e=Ye(),r=ar();return Ie=t?function(t,n,o){return e.f(t,n,r(1,o))}:function(t,e,r){return t[e]=r,t}}function cr(){if(Le)return Re;Le=1;var t,e,r,n=function(){if(ke)return Ne;ke=1;var t=N(),e=yt(),r=t.WeakMap;return Ne=e(r)&&/native code/.test(String(r))}(),o=N(),i=mt(),u=sr(),a=ft(),s=st(),c=or(),l=tr(),f="Object already initialized",d=o.TypeError,p=o.WeakMap;if(n||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)||{}},r=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]:{}},r=function(t){return a(t,v)}}return Re={set:t,get:e,has:r,enforce:function(n){return r(n)?e(n):t(n,{})},getterFor:function(t){return function(r){var n;if(!i(r)||(n=e(r)).type!==t)throw new d("Incompatible receiver, "+t+" required");return n}}},Re}var lr,fr,dr={},pr={};function hr(){if(fr)return dr;fr=1;var t=Ot(),e=ze(),r=function(){if(lr)return pr;lr=1;var t={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,r=e&&!t.call({1:2},1);return pr.f=r?function(t){var r=e(this,t);return!!r&&r.enumerable}:t,pr}(),n=ar(),o=T(),i=Ke(),u=ft(),a=Me(),s=Object.getOwnPropertyDescriptor;return dr.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 n(!e(r.f,t,c),t[c])},dr}var vr,gr,yr,mr,br,Er,wr,Sr={exports:{}};function Cr(){if(gr)return vr;gr=1;var t=Ot(),e=ft(),r=Function.prototype,n=t&&Object.getOwnPropertyDescriptor,o=e(r,"name"),i=o&&"something"===function(){}.name,u=o&&(!t||t&&n(r,"name").configurable);return vr={EXISTS:o,PROPER:i,CONFIGURABLE:u}}function Dr(){if(mr)return yr;mr=1;var t=C(),e=yt(),r=st(),n=t(Function.toString);return e(r.inspectSource)||(r.inspectSource=function(t){return n(t)}),yr=r.inspectSource}function Or(){if(br)return Sr.exports;br=1;var t=C(),e=w(),r=yt(),n=ft(),o=Ot(),i=Cr().CONFIGURABLE,u=Dr(),a=cr(),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=Sr.exports=function(t,e,r){"Symbol("===d(l(e),0,7)&&(e="["+p(l(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!n(t,"name")||i&&t.name!==e)&&(o?f(t,"name",{value:e,configurable:!0}):t.name=e),v&&r&&n(r,"arity")&&t.length!==r.arity&&f(t,"length",{value:r.arity});try{r&&n(r,"constructor")&&r.constructor?o&&f(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var u=s(t);return n(u,"source")||(u.source=h(g,"string"==typeof e?e:"")),t};return Function.prototype.toString=y(function(){return r(this)&&c(this).source||u(this)},"toString"),Sr.exports}function Ar(){if(wr)return Er;wr=1;var t=yt(),e=Ye(),r=Or(),n=at();return Er=function(o,i,u,a){a||(a={});var s=a.enumerable,c=void 0!==a.name?a.name:i;if(t(u)&&r(u,c,a),a.global)s?o[i]=u:n(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},Er}var xr,Tr={};var Nr,kr,Pr,Br,Ir,Fr,Rr,Lr,_r,jr,Mr,zr,Hr,$r,Ur,Vr,Gr,Wr,qr,Kr,Yr,Xr,Jr,Zr,Qr,tn,en,rn,nn,on,un,an,sn,cn={};function ln(){if(Pr)return kr;Pr=1;var t=He(),e=C(),r=function(){if(xr)return Tr;xr=1;var t=er(),e=rr().concat("length","prototype");return Tr.f=Object.getOwnPropertyNames||function(r){return t(r,e)},Tr}(),n=(Nr||(Nr=1,cn.f=Object.getOwnPropertySymbols),cn),o=bt(),i=e([].concat);return kr=t("Reflect","ownKeys")||function(t){var e=r.f(o(t)),u=n.f;return u?i(e,u(t)):e},kr}function fn(){if(Ir)return Br;Ir=1;var t=ft(),e=ln(),r=hr(),n=Ye();return Br=function(o,i,u){for(var a=e(i),s=n.f,c=r.f,l=0;l<a.length;l++){var f=a[l];t(o,f)||u&&t(u,f)||s(o,f,c(i,f))}},Br}function dn(){if(_r)return Lr;_r=1;var t=N(),e=hr().f,r=sr(),n=Ar(),o=at(),i=fn(),u=function(){if(Rr)return Fr;Rr=1;var t=w(),e=yt(),r=/#|\.prototype\./,n=function(r,n){var s=i[o(r)];return s===a||s!==u&&(e(n)?t(n):!!n)},o=n.normalize=function(t){return String(t).replace(r,".").toLowerCase()},i=n.data={},u=n.NATIVE="N",a=n.POLYFILL="P";return Fr=n}();return Lr=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)&&r(d,"sham",!0),n(c,l,d,a)}}}function pn(){if(Hr)return zr;Hr=1;var t=ft(),e=yt(),r=lt(),n=or(),o=function(){if(Mr)return jr;Mr=1;var t=w();return jr=!t(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),jr}(),i=n("IE_PROTO"),u=Object,a=u.prototype;return zr=o?u.getPrototypeOf:function(n){var o=r(n);if(t(o,i))return o[i];var s=o.constructor;return e(s)&&o instanceof s?s.prototype:o instanceof u?a:null},zr}function hn(){if(Ur)return $r;Ur=1;var t,e,r,n=w(),o=yt(),i=mt(),u=ir(),a=pn(),s=Ar(),c=gt(),l=ut(),f=c("iterator"),d=!1;return[].keys&&("next"in(r=[].keys())?(e=a(a(r)))!==Object.prototype&&(t=e):d=!0),!i(t)||n(function(){var e={};return t[f].call(e)!==e})?t={}:l&&(t=u(t)),o(t[f])||s(t,f,function(){return this}),$r={IteratorPrototype:t,BUGGY_SAFARI_ITERATORS:d}}function vn(){if(Gr)return Vr;Gr=1;var t=Ye().f,e=ft(),r=gt()("toStringTag");return Vr=function(n,o,i){n&&!i&&(n=n.prototype),n&&!e(n,r)&&t(n,r,{configurable:!0,value:o})}}function gn(){if(Qr)return Zr;Qr=1;var t=function(){if(Jr)return Xr;Jr=1;var t=mt();return Xr=function(e){return t(e)||null===e}}(),e=String,r=TypeError;return Zr=function(n){if(t(n))return n;throw new r("Can't set "+e(n)+" as a prototype")}}function yn(){if(en)return tn;en=1;var t=function(){if(Yr)return Kr;Yr=1;var t=C(),e=Ge();return Kr=function(r,n,o){try{return t(e(Object.getOwnPropertyDescriptor(r,n)[o]))}catch(t){}}}(),e=mt(),r=x(),n=gn();return tn=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 r(t),n(u),e(t)?(i?o(t,u):t.__proto__=u,t):t}}():void 0),tn}function mn(){if(nn)return rn;nn=1;var t=dn(),e=ze(),r=ut(),n=Cr(),o=yt(),i=function(){if(qr)return Wr;qr=1;var t=hn().IteratorPrototype,e=ir(),r=ar(),n=vn(),o=ur(),i=function(){return this};return Wr=function(u,a,s,c){var l=a+" Iterator";return u.prototype=e(t,{next:r(+!c,s)}),n(u,l,!1,!0),o[l]=i,u}}(),u=pn(),a=yn(),s=vn(),c=sr(),l=Ar(),f=gt(),d=ur(),p=hn(),h=n.PROPER,v=n.CONFIGURABLE,g=p.IteratorPrototype,y=p.BUGGY_SAFARI_ITERATORS,m=f("iterator"),b="keys",E="values",w="entries",S=function(){return this};return rn=function(n,f,p,C,D,O,A){i(p,f,C);var x,T,N,k=function(t){if(t===D&&R)return R;if(!y&&t&&t in I)return I[t];switch(t){case b:case E:case w:return function(){return new p(this,t)}}return function(){return new p(this)}},P=f+" Iterator",B=!1,I=n.prototype,F=I[m]||I["@@iterator"]||D&&I[D],R=!y&&F||k(D),L="Array"===f&&I.entries||F;if(L&&(x=u(L.call(new n)))!==Object.prototype&&x.next&&(r||u(x)===g||(a?a(x,g):o(x[m])||l(x,m,S)),s(x,P,!0,!0),r&&(d[P]=S)),h&&D===E&&F&&F.name!==E&&(!r&&v?c(I,"name",E):(B=!0,R=function(){return e(F,this)})),D)if(T={values:k(E),keys:O?R:k(b),entries:k(w)},A)for(N in T)(y||B||!(N in I))&&l(I,N,T[N]);else t({target:f,proto:!0,forced:y||B},T);return r&&!A||I[m]===R||l(I,m,R,{name:D}),d[f]=R,T}}function bn(){return un?on:(un=1,on=function(t,e){return{value:t,done:e}})}function En(){if(sn)return an;sn=1;var t=T(),e=function(){if(Ae)return Oe;Ae=1;var t=gt(),e=ir(),r=Ye().f,n=t("unscopables"),o=Array.prototype;return void 0===o[n]&&r(o,n,{configurable:!0,value:e(null)}),Oe=function(t){o[n][t]=!0}}(),r=ur(),n=cr(),o=Ye().f,i=mn(),u=bn(),a=ut(),s=Ot(),c="Array Iterator",l=n.set,f=n.getterFor(c);an=i(Array,"Array",function(e,r){l(this,{type:c,target:t(e),index:0,kind:r})},function(){var t=f(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=null,u(void 0,!0);switch(t.kind){case"keys":return u(r,!1);case"values":return u(e[r],!1)}return u([r,e[r]],!1)},"values");var d=r.Arguments=r.Array;if(e("keys"),e("values"),e("entries"),!a&&s&&"values"!==d.name)try{o(d,"name",{value:"values"})}catch(t){}return an}En();var wn,Sn,Cn,Dn,On,An,xn,Tn={};function Nn(){if(Sn)return wn;Sn=1;var t={};return t[gt()("toStringTag")]="z",wn="[object z]"===String(t)}function kn(){if(Dn)return Cn;Dn=1;var t=Nn(),e=yt(),r=D(),n=gt()("toStringTag"),o=Object,i="Arguments"===r(function(){return arguments}());return Cn=t?r: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),n))?a:i?r(u):"Object"===(s=r(u))&&e(u.callee)?"Arguments":s},Cn}!function(){if(xn)return Tn;xn=1;var t=Nn(),e=Ar(),r=function(){if(An)return On;An=1;var t=Nn(),e=kn();return On=t?{}.toString:function(){return"[object "+e(this)+"]"}}();t||e(Object.prototype,"toString",r,{unsafe:!0})}();var Pn,Bn,In,Fn,Rn,Ln,_n,jn,Mn,zn,Hn,$n,Un,Vn={};function Gn(){if(Bn)return Pn;Bn=1;var t=kn(),e=String;return Pn=function(r){if("Symbol"===t(r))throw new TypeError("Cannot convert a Symbol value to a string");return e(r)}}function Wn(){if(Fn)return In;Fn=1;var t=bt();return In=function(){var e=t(this),r="";return e.hasIndices&&(r+="d"),e.global&&(r+="g"),e.ignoreCase&&(r+="i"),e.multiline&&(r+="m"),e.dotAll&&(r+="s"),e.unicode&&(r+="u"),e.unicodeSets&&(r+="v"),e.sticky&&(r+="y"),r}}function qn(){if($n)return Hn;$n=1;var t,e,r=ze(),n=C(),o=Gn(),i=Wn(),u=function(){if(Ln)return Rn;Ln=1;var t=w(),e=N().RegExp,r=t(function(){var t=e("a","y");return t.lastIndex=2,null!==t.exec("abcd")}),n=r||t(function(){return!e("a","y").sticky}),o=r||t(function(){var t=e("^r","gy");return t.lastIndex=2,null!==t.exec("str")});return Rn={BROKEN_CARET:o,MISSED_STICKY:n,UNSUPPORTED_Y:r}}(),a=ct(),s=ir(),c=cr().get,l=function(){if(jn)return _n;jn=1;var t=w(),e=N().RegExp;return _n=t(function(){var t=e(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)}),_n}(),f=function(){if(zn)return Mn;zn=1;var t=w(),e=N().RegExp;return Mn=t(function(){var t=e("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}),Mn}(),d=a("native-string-replace",String.prototype.replace),p=RegExp.prototype.exec,h=p,v=n("".charAt),g=n("".indexOf),y=n("".replace),m=n("".slice),b=(e=/b*/g,r(p,t=/a/,"a"),r(p,e,"a"),0!==t.lastIndex||0!==e.lastIndex),E=u.BROKEN_CARET,S=void 0!==/()??/.exec("")[1];return(b||S||E||l||f)&&(h=function(t){var e,n,u,a,l,f,w,C=this,D=c(C),O=o(t),A=D.raw;if(A)return A.lastIndex=C.lastIndex,e=r(h,A,O),C.lastIndex=A.lastIndex,e;var x=D.groups,T=E&&C.sticky,N=r(i,C),k=C.source,P=0,B=O;if(T&&(N=y(N,"y",""),-1===g(N,"g")&&(N+="g"),B=m(O,C.lastIndex),C.lastIndex>0&&(!C.multiline||C.multiline&&"\n"!==v(O,C.lastIndex-1))&&(k="(?: "+k+")",B=" "+B,P++),n=new RegExp("^(?:"+k+")",N)),S&&(n=new RegExp("^"+k+"$(?!\\s)",N)),b&&(u=C.lastIndex),a=r(p,T?n:C,B),T?a?(a.input=m(a.input,P),a[0]=m(a[0],P),a.index=C.lastIndex,C.lastIndex+=a[0].length):C.lastIndex=0:b&&a&&(C.lastIndex=C.global?a.index+a[0].length:u),S&&a&&a.length>1&&r(d,a[0],n,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[(w=x[l])[0]]=a[w[1]];return a}),Hn=h}function Kn(){if(Un)return Vn;Un=1;var t=dn(),e=qn();return t({target:"RegExp",proto:!0,forced:/./.exec!==e},{exec:e}),Vn}Kn();var Yn,Xn,Jn,Zn={};function Qn(){if(Xn)return Yn;Xn=1;var t=C(),e=Xe(),r=Gn(),n=x(),o=t("".charAt),i=t("".charCodeAt),u=t("".slice),a=function(t){return function(a,s){var c,l,f=r(n(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 Yn={codeAt:a(!1),charAt:a(!0)}}!function(){if(Jn)return Zn;Jn=1;var t=Qn().charAt,e=Gn(),r=cr(),n=mn(),o=bn(),i="String Iterator",u=r.set,a=r.getterFor(i);n(String,"String",function(t){u(this,{type:i,string:e(t),index:0})},function(){var e,r=a(this),n=r.string,i=r.index;return i>=n.length?o(void 0,!0):(e=t(n,i),r.index+=e.length,o(e,!1))})}();var to,eo,ro,no,oo,io,uo,ao,so,co,lo,fo={};function po(){if(no)return ro;no=1;var t=Qn().charAt;return ro=function(e,r,n){return r+(n?t(e,r).length:1)},ro}function ho(){if(ao)return uo;ao=1;var t=ze(),e=ft(),r=$e(),n=function(){if(io)return oo;io=1;var t=N(),e=w(),r=t.RegExp,n=!e(function(){var t=!0;try{r(".","d")}catch(e){t=!1}var e={},n="",o=t?"dgimsy":"gimsy",i=function(t,r){Object.defineProperty(e,t,{get:function(){return n+=r,!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(r.prototype,"flags").get.call(e)!==o||n!==o});return oo={correct:n}}(),o=Wn(),i=RegExp.prototype;return uo=n.correct?function(t){return t.flags}:function(u){return n.correct||!r(i,u)||e(u,"flags")?u.flags:t(o,u)},uo}!function(){if(lo)return fo;lo=1;var t=ze(),e=C(),r=function(){if(eo)return to;eo=1,Kn();var t=ze(),e=Ar(),r=qn(),n=w(),o=gt(),i=sr(),u=o("species"),a=RegExp.prototype;return to=function(s,c,l,f){var d=o(s),p=!n(function(){var t={};return t[d]=function(){return 7},7!==""[s](t)}),h=p&&!n(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,n,o,i,u){var s=n.exec;return s===r||s===a.exec?p&&!u?{done:!0,value:t(v,n,o,i)}:{done:!0,value:t(e,o,n,i)}:{done:!1}});e(String.prototype,s,g[0]),e(a,d,g[1])}f&&i(a[d],"sham",!0)},to}(),n=bt(),o=mt(),i=Je(),u=Gn(),a=x(),s=We(),c=po(),l=ho(),f=function(){if(co)return so;co=1;var t=ze(),e=bt(),r=yt(),n=D(),o=qn(),i=TypeError;return so=function(u,a){var s=u.exec;if(r(s)){var c=t(s,u,a);return null!==c&&e(c),c}if("RegExp"===n(u))return t(o,u,a);throw new i("RegExp#exec called on incompatible receiver")},so}(),d=e("".indexOf);r("match",function(e,r,p){return[function(r){var n=a(this),i=o(r)?s(r,e):void 0;return i?t(i,r,n):new RegExp(r)[e](u(n))},function(t){var e=n(this),o=u(t),a=p(r,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 vo,go,yo,mo,bo,Eo,wo,So,Co,Do,Oo,Ao,xo,To,No,ko,Po,Bo,Io,Fo,Ro,Lo,_o,jo,Mo,zo,Ho,$o={},Uo={};function Vo(){if(go)return vo;go=1;var t=mt(),e=sr();return vo=function(r,n){t(n)&&"cause"in n&&e(r,"cause",n.cause)},vo}function Go(){if(So)return wo;So=1;var t=sr(),e=function(){if(mo)return yo;mo=1;var t=C(),e=Error,r=t("".replace),n=String(new e("zxcasd").stack),o=/\n\s*at [^:]*:[^\n]*/,i=o.test(n);return yo=function(t,n){if(i&&"string"==typeof t&&!e.prepareStackTrace)for(;n--;)t=r(t,o,"");return t}}(),r=function(){if(Eo)return bo;Eo=1;var t=w(),e=ar();return bo=!t(function(){var t=new Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",e(1,7)),7!==t.stack)})}(),n=Error.captureStackTrace;return wo=function(o,i,u,a){r&&(n?n(o,i):t(o,"stack",e(u,a)))},wo}function Wo(){if(Ao)return Oo;Ao=1;var t=function(){if(Do)return Co;Do=1;var t=D(),e=C();return Co=function(r){if("Function"===t(r))return e(r)},Co}(),e=Ge(),r=S(),n=t(t.bind);return Oo=function(t,o){return e(t),void 0===o?t:r?n(t,o):function(){return t.apply(o,arguments)}},Oo}function qo(){if(To)return xo;To=1;var t=gt(),e=ur(),r=t("iterator"),n=Array.prototype;return xo=function(t){return void 0!==t&&(e.Array===t||n[r]===t)},xo}function Ko(){if(ko)return No;ko=1;var t=kn(),e=We(),r=A(),n=ur(),o=gt()("iterator");return No=function(i){if(!r(i))return e(i,o)||e(i,"@@iterator")||n[t(i)]},No}function Yo(){if(Bo)return Po;Bo=1;var t=ze(),e=Ge(),r=bt(),n=Ve(),o=Ko(),i=TypeError;return Po=function(u,a){var s=arguments.length<2?o(u):a;if(e(s))return r(t(s,u));throw new i(n(u)+" is not iterable")},Po}function Xo(){if(Fo)return Io;Fo=1;var t=ze(),e=bt(),r=We();return Io=function(n,o,i){var u,a;e(n);try{if(!(u=r(n,"return"))){if("throw"===o)throw i;return i}u=t(u,n)}catch(t){a=!0,u=t}if("throw"===o)throw i;if(a)throw u;return e(u),i},Io}function Jo(){if(Lo)return Ro;Lo=1;var t=Wo(),e=ze(),r=bt(),n=Ve(),o=qo(),i=Ze(),u=$e(),a=Yo(),s=Ko(),c=Xo(),l=TypeError,f=function(t,e){this.stopped=t,this.result=e},d=f.prototype;return Ro=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)},k=function(t){return D?(r(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(n(p)+" is not iterable");if(o(y)){for(m=0,b=i(p);b>m;m++)if((E=k(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=k(S.value)}catch(t){c(g,"throw",t)}if("object"==typeof E&&E&&u(d,E))return E}return new f(!1)},Ro}function Zo(){if(jo)return _o;jo=1;var t=Gn();return _o=function(e,r){return void 0===e?arguments.length<2?"":r:t(e)},_o}function Qo(){return zo||(zo=1,function(){if(Mo)return Uo;Mo=1;var t=dn(),e=$e(),r=pn(),n=yn(),o=fn(),i=ir(),u=sr(),a=ar(),s=Vo(),c=Go(),l=Jo(),f=Zo(),d=gt()("toStringTag"),p=Error,h=[].push,v=function(t,o){var a,y=e(g,this);n?a=n(new p,y?r(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};n?n(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})}()),$o}Ho||(Ho=1,Qo());var ti,ei,ri={};ei||(ei=1,function(){if(ti)return ri;ti=1;var t=dn(),e=N();t({global:!0,forced:e.globalThis!==e},{globalThis:e})}());var ni,oi,ii,ui,ai,si,ci={};function li(){return oi?ni:(oi=1,ni={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(ui)return ii;ui=1;var t=je()("span").classList,e=t&&t.constructor&&t.constructor.prototype;return ii=e===Object.prototype?void 0:e}if(function(){if(ai)return ci;ai=1;var t=N(),e=li(),r=fi(),n=En(),o=sr(),i=vn(),u=gt()("iterator"),a=n.values,s=function(t,r){if(t){if(t[u]!==a)try{o(t,u,a)}catch(e){t[u]=a}if(i(t,r,!0),e[r])for(var s in n)if(t[s]!==n[s])try{o(t,s,n[s])}catch(e){t[s]=n[s]}}};for(var c in e)s(t[c]&&t[c].prototype,c);s(r,"DOMTokenList")}(),"undefined"==typeof global){if("ActiveXObject"in window){console.error("抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器\n Sorry, wangEditor V5+ versions do not support IE browser.")}di(),pi()}else global&&(null===(si=global.navigator)||void 0===si?void 0:si.userAgent.match("QQBrowser"))&&(di(),pi());function di(){"undefined"==typeof globalThis&&(window.globalThis=window)}function pi(){"undefined"==typeof AggregateError&&(window.AggregateError=function(t,e){var r=new Error(e);return r.errors=t,r})}var hi,vi,gi,yi,mi,bi,Ei,wi,Si,Ci,Di,Oi,Ai,xi,Ti,Ni,ki={};function Pi(){if(vi)return hi;vi=1;var t=function(t){return t&&t.Math===Math&&t};return hi=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof m&&m)||t("object"==typeof hi&&hi)||function(){return this}()||Function("return this")()}function Bi(){return yi?gi:(yi=1,gi=function(t){try{return!!t()}catch(t){return!0}})}function Ii(){return bi?mi:(bi=1,mi=!Bi()(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))}function Fi(){if(wi)return Ei;wi=1;var t=Ii(),e=Function.prototype,r=e.apply,n=e.call;return Ei="object"==typeof Reflect&&Reflect.apply||(t?n.bind(r):function(){return n.apply(r,arguments)}),Ei}function Ri(){if(Ci)return Si;Ci=1;var t=Ii(),e=Function.prototype,r=e.call,n=t&&e.bind.bind(r,r);return Si=t?n:function(t){return function(){return r.apply(t,arguments)}},Si}function Li(){if(Oi)return Di;Oi=1;var t=Ri(),e=t({}.toString),r=t("".slice);return Di=function(t){return r(e(t),8,-1)},Di}function _i(){if(xi)return Ai;xi=1;var t=Li(),e=Ri();return Ai=function(r){if("Function"===t(r))return e(r)},Ai}function ji(){if(Ni)return Ti;Ni=1;var t="object"==typeof document&&document.all;return Ti=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(t){return"function"==typeof t}}var Mi,zi,Hi,$i,Ui={};function Vi(){return zi?Mi:(zi=1,Mi=!Bi()(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))}function Gi(){if($i)return Hi;$i=1;var t=Ii(),e=Function.prototype.call;return Hi=t?e.bind(e):function(){return e.apply(e,arguments)},Hi}var Wi,qi,Ki,Yi,Xi,Ji,Zi,Qi,tu,eu,ru,nu,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={};function ku(){if(Wi)return Nu;Wi=1;var t={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,r=e&&!t.call({1:2},1);return Nu.f=r?function(t){var r=e(this,t);return!!r&&r.enumerable}:t,Nu}function Pu(){return Ki?qi:(Ki=1,qi=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}})}function Bu(){if(Xi)return Yi;Xi=1;var t=Ri(),e=Bi(),r=Li(),n=Object,o=t("".split);return Yi=e(function(){return!n("z").propertyIsEnumerable(0)})?function(t){return"String"===r(t)?o(t,""):n(t)}:n,Yi}function Iu(){return Zi||(Zi=1,Ji=function(t){return null==t}),Ji}function Fu(){if(tu)return Qi;tu=1;var t=Iu(),e=TypeError;return Qi=function(r){if(t(r))throw new e("Can't call method on "+r);return r},Qi}function Ru(){if(ru)return eu;ru=1;var t=Bu(),e=Fu();return eu=function(r){return t(e(r))},eu}function Lu(){if(ou)return nu;ou=1;var t=ji();return nu=function(e){return"object"==typeof e?null!==e:t(e)},nu}function _u(){return uu?iu:(uu=1,iu={})}function ju(){if(su)return au;su=1;var t=_u(),e=Pi(),r=ji(),n=function(t){return r(t)?t:void 0};return au=function(r,o){return arguments.length<2?n(t[r])||n(e[r]):t[r]&&t[r][o]||e[r]&&e[r][o]},au}function Mu(){return lu?cu:(lu=1,cu=Ri()({}.isPrototypeOf))}function zu(){if(du)return fu;du=1;var t=Pi().navigator,e=t&&t.userAgent;return fu=e?String(e):""}function Hu(){if(hu)return pu;hu=1;var t,e,r=Pi(),n=zu(),o=r.process,i=r.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&&n&&(!(t=n.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=n.match(/Chrome\/(\d+)/))&&(e=+t[1]),pu=e}function $u(){if(gu)return vu;gu=1;var t=Hu(),e=Bi(),r=Pi().String;return vu=!!Object.getOwnPropertySymbols&&!e(function(){var e=Symbol("symbol detection");return!r(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&t&&t<41}),vu}function Uu(){return mu?yu:(mu=1,yu=$u()&&!Symbol.sham&&"symbol"==typeof Symbol.iterator)}function Vu(){if(Eu)return bu;Eu=1;var t=ju(),e=ji(),r=Mu(),n=Object;return bu=Uu()?function(t){return"symbol"==typeof t}:function(o){var i=t("Symbol");return e(i)&&r(i.prototype,n(o))},bu}function Gu(){if(Su)return wu;Su=1;var t=String;return wu=function(e){try{return t(e)}catch(t){return"Object"}}}function Wu(){if(Du)return Cu;Du=1;var t=ji(),e=Gu(),r=TypeError;return Cu=function(n){if(t(n))return n;throw new r(e(n)+" is not a function")}}function qu(){if(Au)return Ou;Au=1;var t=Wu(),e=Iu();return Ou=function(r,n){var o=r[n];return e(o)?void 0:t(o)},Ou}function Ku(){if(Tu)return xu;Tu=1;var t=Gi(),e=ji(),r=Lu(),n=TypeError;return xu=function(o,i){var u,a;if("string"===i&&e(u=o.toString)&&!r(a=t(u,o)))return a;if(e(u=o.valueOf)&&!r(a=t(u,o)))return a;if("string"!==i&&e(u=o.toString)&&!r(a=t(u,o)))return a;throw new n("Can't convert object to primitive value")},xu}var Yu,Xu,Ju,Zu,Qu,ta,ea,ra,na,oa,ia,ua,aa,sa,ca,la,fa,da,pa,ha,va,ga,ya,ma,ba,Ea,wa,Sa,Ca={exports:{}};function Da(){return Xu?Yu:(Xu=1,Yu=!0)}function Oa(){if(Zu)return Ju;Zu=1;var t=Pi(),e=Object.defineProperty;return Ju=function(r,n){try{e(t,r,{value:n,configurable:!0,writable:!0})}catch(e){t[r]=n}return n}}function Aa(){if(Qu)return Ca.exports;Qu=1;var t=Da(),e=Pi(),r=Oa(),n="__core-js_shared__",o=Ca.exports=e[n]||r(n,{});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"}),Ca.exports}function xa(){if(ea)return ta;ea=1;var t=Aa();return ta=function(e,r){return t[e]||(t[e]=r||{})}}function Ta(){if(na)return ra;na=1;var t=Fu(),e=Object;return ra=function(r){return e(t(r))}}function Na(){if(ia)return oa;ia=1;var t=Ri(),e=Ta(),r=t({}.hasOwnProperty);return oa=Object.hasOwn||function(t,n){return r(e(t),n)},oa}function ka(){if(aa)return ua;aa=1;var t=Ri(),e=0,r=Math.random(),n=t(1.1.toString);return ua=function(t){return"Symbol("+(void 0===t?"":t)+")_"+n(++e+r,36)}}function Pa(){if(ca)return sa;ca=1;var t=Pi(),e=xa(),r=Na(),n=ka(),o=$u(),i=Uu(),u=t.Symbol,a=e("wks"),s=i?u.for||u:u&&u.withoutSetter||n;return sa=function(t){return r(a,t)||(a[t]=o&&r(u,t)?u[t]:s("Symbol."+t)),a[t]}}function Ba(){if(fa)return la;fa=1;var t=Gi(),e=Lu(),r=Vu(),n=qu(),o=Ku(),i=TypeError,u=Pa()("toPrimitive");return la=function(a,s){if(!e(a)||r(a))return a;var c,l=n(a,u);if(l){if(void 0===s&&(s="default"),c=t(l,a,s),!e(c)||r(c))return c;throw new i("Can't convert object to primitive value")}return void 0===s&&(s="number"),o(a,s)}}function Ia(){if(pa)return da;pa=1;var t=Ba(),e=Vu();return da=function(r){var n=t(r,"string");return e(n)?n:n+""}}function Fa(){if(va)return ha;va=1;var t=Pi(),e=Lu(),r=t.document,n=e(r)&&e(r.createElement);return ha=function(t){return n?r.createElement(t):{}},ha}function Ra(){if(ya)return ga;ya=1;var t=Vi(),e=Bi(),r=Fa();return ga=!t&&!e(function(){return 7!==Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a})}function La(){if(ma)return Ui;ma=1;var t=Vi(),e=Gi(),r=ku(),n=Pu(),o=Ru(),i=Ia(),u=Na(),a=Ra(),s=Object.getOwnPropertyDescriptor;return Ui.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 n(!e(r.f,t,c),t[c])},Ui}function _a(){if(Ea)return ba;Ea=1;var t=Bi(),e=ji(),r=/#|\.prototype\./,n=function(r,n){var s=i[o(r)];return s===a||s!==u&&(e(n)?t(n):!!n)},o=n.normalize=function(t){return String(t).replace(r,".").toLowerCase()},i=n.data={},u=n.NATIVE="N",a=n.POLYFILL="P";return ba=n}function ja(){if(Sa)return wa;Sa=1;var t=_i(),e=Wu(),r=Ii(),n=t(t.bind);return wa=function(t,o){return e(t),void 0===o?t:r?n(t,o):function(){return t.apply(o,arguments)}},wa}var Ma,za,Ha,$a,Ua,Va,Ga,Wa,qa,Ka,Ya,Xa,Ja,Za,Qa,ts,es,rs,ns,os,is,us,as,ss,cs,ls,fs,ds,ps,hs,vs,gs,ys,ms,bs,Es,ws,Ss,Cs={};function Ds(){return za?Ma:(za=1,Ma=Vi()&&Bi()(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}))}function Os(){if($a)return Ha;$a=1;var t=Lu(),e=String,r=TypeError;return Ha=function(n){if(t(n))return n;throw new r(e(n)+" is not an object")}}function As(){if(Ua)return Cs;Ua=1;var t=Vi(),e=Ra(),r=Ds(),n=Os(),o=Ia(),i=TypeError,u=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s="enumerable",c="configurable",l="writable";return Cs.f=t?r?function(t,e,r){if(n(t),e=o(e),n(r),"function"==typeof t&&"prototype"===e&&"value"in r&&l in r&&!r[l]){var i=a(t,e);i&&i[l]&&(t[e]=r.value,r={configurable:c in r?r[c]:i[c],enumerable:s in r?r[s]:i[s],writable:!1})}return u(t,e,r)}:u:function(t,r,a){if(n(t),r=o(r),n(a),e)try{return u(t,r,a)}catch(t){}if("get"in a||"set"in a)throw new i("Accessors not supported");return"value"in a&&(t[r]=a.value),t},Cs}function xs(){if(Ga)return Va;Ga=1;var t=Vi(),e=As(),r=Pu();return Va=t?function(t,n,o){return e.f(t,n,r(1,o))}:function(t,e,r){return t[e]=r,t}}function Ts(){if(qa)return Wa;qa=1;var t=Pi(),e=Fi(),r=_i(),n=ji(),o=La().f,i=_a(),u=_u(),a=ja(),s=xs(),c=Na(),l=function(t){var r=function(n,o,i){if(this instanceof r){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,o)}return new t(n,o,i)}return e(t,this,arguments)};return r.prototype=t.prototype,r};return Wa=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&&n(g)?r(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 Ns(){if(Ya)return Ka;Ya=1;var t=Li();return Ka=Array.isArray||function(e){return"Array"===t(e)}}function ks(){if(Ja)return Xa;Ja=1;var t=Math.ceil,e=Math.floor;return Xa=Math.trunc||function(r){var n=+r;return(n>0?e:t)(n)},Xa}function Ps(){if(Qa)return Za;Qa=1;var t=ks();return Za=function(e){var r=+e;return r!=r||0===r?0:t(r)}}function Bs(){if(es)return ts;es=1;var t=Ps(),e=Math.min;return ts=function(r){var n=t(r);return n>0?e(n,9007199254740991):0}}function Is(){if(ns)return rs;ns=1;var t=Bs();return rs=function(e){return t(e.length)}}function Fs(){if(is)return os;is=1;var t=TypeError;return os=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e},os}function Rs(){if(as)return us;as=1;var t=Vi(),e=As(),r=Pu();return us=function(n,o,i){t?e.f(n,o,r(0,i)):n[o]=i}}function Ls(){if(cs)return ss;cs=1;var t={};return t[Pa()("toStringTag")]="z",ss="[object z]"===String(t)}function _s(){if(fs)return ls;fs=1;var t=Ls(),e=ji(),r=Li(),n=Pa()("toStringTag"),o=Object,i="Arguments"===r(function(){return arguments}());return ls=t?r: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),n))?a:i?r(u):"Object"===(s=r(u))&&e(u.callee)?"Arguments":s},ls}function js(){if(ps)return ds;ps=1;var t=Ri(),e=ji(),r=Aa(),n=t(Function.toString);return e(r.inspectSource)||(r.inspectSource=function(t){return n(t)}),ds=r.inspectSource}function Ms(){if(vs)return hs;vs=1;var t=Ri(),e=Bi(),r=ji(),n=_s(),o=ju(),i=js(),u=function(){},a=o("Reflect","construct"),s=/^\s*(?:class|function)\b/,c=t(s.exec),l=!s.test(u),f=function(t){if(!r(t))return!1;try{return a(u,[],t),!0}catch(t){return!1}},d=function(t){if(!r(t))return!1;switch(n(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return l||!!c(s,i(t))}catch(t){return!0}};return d.sham=!0,hs=!a||e(function(){var t;return f(f.call)||!f(Object)||!f(function(){t=!0})||t})?d:f}function zs(){if(ys)return gs;ys=1;var t=Ns(),e=Ms(),r=Lu(),n=Pa()("species"),o=Array;return gs=function(i){var u;return t(i)&&(u=i.constructor,(e(u)&&(u===o||t(u.prototype))||r(u)&&null===(u=u[n]))&&(u=void 0)),void 0===u?o:u},gs}function Hs(){if(bs)return ms;bs=1;var t=zs();return ms=function(e,r){return new(t(e))(0===r?0:r)}}function $s(){if(ws)return Es;ws=1;var t=Bi(),e=Pa(),r=Hu(),n=e("species");return Es=function(e){return r>=51||!t(function(){var t=[];return(t.constructor={})[n]=function(){return{foo:1}},1!==t[e](Boolean).foo})},Es}var Us,Vs,Gs={},Ws={};function qs(){if(Vs)return Us;Vs=1;var t=_s(),e=String;return Us=function(r){if("Symbol"===t(r))throw new TypeError("Cannot convert a Symbol value to a string");return e(r)}}var Ks,Ys,Xs,Js,Zs,Qs,tc,ec,rc,nc,oc,ic,uc,ac,sc,cc,lc,fc,dc,pc={};function hc(){if(Ys)return Ks;Ys=1;var t=Ps(),e=Math.max,r=Math.min;return Ks=function(n,o){var i=t(n);return i<0?e(i+o,0):r(i,o)},Ks}function vc(){if(Js)return Xs;Js=1;var t=Ru(),e=hc(),r=Is(),n=function(n){return function(o,i,u){var a=t(o),s=r(a);if(0===s)return!n&&-1;var c,l=e(u,s);if(n&&i!=i){for(;s>l;)if((c=a[l++])!=c)return!0}else for(;s>l;l++)if((n||l in a)&&a[l]===i)return n||l||0;return!n&&-1}};return Xs={includes:n(!0),indexOf:n(!1)}}function gc(){return Qs?Zs:(Qs=1,Zs={})}function yc(){if(ec)return tc;ec=1;var t=Ri(),e=Na(),r=Ru(),n=vc().indexOf,o=gc(),i=t([].push);return tc=function(t,u){var a,s=r(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++])&&(~n(l,a)||i(l,a));return l},tc}function mc(){return nc?rc:(nc=1,rc=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function bc(){if(ic)return oc;ic=1;var t=yc(),e=mc();return oc=Object.keys||function(r){return t(r,e)},oc}function Ec(){if(uc)return pc;uc=1;var t=Vi(),e=Ds(),r=As(),n=Os(),o=Ru(),i=bc();return pc.f=t&&!e?Object.defineProperties:function(t,e){n(t);for(var u,a=o(e),s=i(e),c=s.length,l=0;c>l;)r.f(t,u=s[l++],a[u]);return t},pc}function wc(){return sc?ac:(sc=1,ac=ju()("document","documentElement"))}function Sc(){if(lc)return cc;lc=1;var t=xa(),e=ka(),r=t("keys");return cc=function(t){return r[t]||(r[t]=e(t))}}function Cc(){if(dc)return fc;dc=1;var t,e=Os(),r=Ec(),n=mc(),o=gc(),i=wc(),u=Fa(),a="prototype",s="script",c=Sc()("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,r,o;p="undefined"!=typeof document?document.domain&&t?d(t):(r=u("iframe"),o="java"+s+":",r.style.display="none",i.appendChild(r),r.src=String(o),(e=r.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F):d(t);for(var c=n.length;c--;)delete p[a][n[c]];return p()};return o[c]=!0,fc=Object.create||function(t,n){var o;return null!==t?(l[a]=e(t),o=new l,l[a]=null,o[c]=t):o=p(),void 0===n?o:r.f(o,n)},fc}var Dc,Oc={};function Ac(){if(Dc)return Oc;Dc=1;var t=yc(),e=mc().concat("length","prototype");return Oc.f=Object.getOwnPropertyNames||function(r){return t(r,e)},Oc}var xc,Tc,Nc,kc={};function Pc(){return Tc?xc:(Tc=1,xc=Ri()([].slice))}function Bc(){if(Nc)return kc;Nc=1;var t=Li(),e=Ru(),r=Ac().f,n=Pc(),o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];return kc.f=function(i){return o&&"Window"===t(i)?function(t){try{return r(t)}catch(t){return n(o)}}(i):r(e(i))},kc}var Ic,Fc,Rc,Lc,_c,jc={};function Mc(){return Ic||(Ic=1,jc.f=Object.getOwnPropertySymbols),jc}function zc(){if(Rc)return Fc;Rc=1;var t=xs();return Fc=function(e,r,n,o){return o&&o.enumerable?e[r]=n:t(e,r,n),e}}function Hc(){if(_c)return Lc;_c=1;var t=As();return Lc=function(e,r,n){return t.f(e,r,n)}}var $c,Uc,Vc,Gc,Wc,qc,Kc,Yc,Xc,Jc,Zc,Qc,tl,el,rl,nl,ol={};function il(){if($c)return ol;$c=1;var t=Pa();return ol.f=t,ol}function ul(){if(Vc)return Uc;Vc=1;var t=_u(),e=Na(),r=il(),n=As().f;return Uc=function(o){var i=t.Symbol||(t.Symbol={});e(i,o)||n(i,o,{value:r.f(o)})}}function al(){if(Wc)return Gc;Wc=1;var t=Gi(),e=ju(),r=Pa(),n=zc();return Gc=function(){var o=e("Symbol"),i=o&&o.prototype,u=i&&i.valueOf,a=r("toPrimitive");i&&!i[a]&&n(i,a,function(e){return t(u,this)},{arity:1})}}function sl(){if(Kc)return qc;Kc=1;var t=Ls(),e=_s();return qc=t?{}.toString:function(){return"[object "+e(this)+"]"}}function cl(){if(Xc)return Yc;Xc=1;var t=Ls(),e=As().f,r=xs(),n=Na(),o=sl(),i=Pa()("toStringTag");return Yc=function(u,a,s,c){var l=s?u:u&&u.prototype;l&&(n(l,i)||e(l,i,{configurable:!0,value:a}),c&&!t&&r(l,"toString",o))},Yc}function ll(){if(Zc)return Jc;Zc=1;var t=Pi(),e=ji(),r=t.WeakMap;return Jc=e(r)&&/native code/.test(String(r))}function fl(){if(tl)return Qc;tl=1;var t,e,r,n=ll(),o=Pi(),i=Lu(),u=xs(),a=Na(),s=Aa(),c=Sc(),l=gc(),f="Object already initialized",d=o.TypeError,p=o.WeakMap;if(n||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)||{}},r=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]:{}},r=function(t){return a(t,v)}}return Qc={set:t,get:e,has:r,enforce:function(n){return r(n)?e(n):t(n,{})},getterFor:function(t){return function(r){var n;if(!i(r)||(n=e(r)).type!==t)throw new d("Incompatible receiver, "+t+" required");return n}}},Qc}function dl(){if(rl)return el;rl=1;var t=ja(),e=Ri(),r=Bu(),n=Ta(),o=Is(),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=n(h),w=r(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 el={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 pl,hl,vl,gl={};function yl(){return hl?pl:(hl=1,pl=$u()&&!!Symbol.for&&!!Symbol.keyFor)}var ml,bl={};var El,wl,Sl,Cl={};function Dl(){if(wl)return El;wl=1;var t=Ri(),e=Ns(),r=ji(),n=Li(),o=qs(),i=t([].push);return El=function(t){if(r(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"!==n(c)&&"String"!==n(c)||i(a,o(c))}var l=a.length,f=!0;return function(t,r){if(f)return f=!1,r;if(e(this))return r;for(var n=0;n<l;n++)if(a[n]===t)return r}}},El}var Ol,Al,xl={};function Tl(){return Al||(Al=1,function(){if(nl)return Ws;nl=1;var t=Ts(),e=Pi(),r=Gi(),n=Ri(),o=Da(),i=Vi(),u=$u(),a=Bi(),s=Na(),c=Mu(),l=Os(),f=Ru(),d=Ia(),p=qs(),h=Pu(),v=Cc(),g=bc(),y=Ac(),m=Bc(),b=Mc(),E=La(),w=As(),S=Ec(),C=ku(),D=zc(),O=Hc(),A=xa(),x=Sc(),T=gc(),N=ka(),k=Pa(),P=il(),B=ul(),I=al(),F=cl(),R=fl(),L=dl().forEach,_=x("hidden"),j="Symbol",M="prototype",z=R.set,H=R.getterFor(j),$=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=n([].push),Q=A("symbols"),tt=A("op-symbols"),et=A("wks"),rt=!q||!q[M]||!q[M].findChild,nt=function(t,e,r){var n=K($,e);n&&delete $[e],Y(t,e,r),n&&t!==$&&Y($,e,n)},ot=i&&a(function(){return 7!==v(Y({},"a",{get:function(){return Y(this,"a",{value:7}).a}})).a})?nt:Y,it=function(t,e){var r=Q[t]=v(V);return z(r,{type:j,tag:t,description:e}),i||(r.description=e),r},ut=function(t,e,r){t===$&&ut(tt,e,r),l(t);var n=d(e);return l(r),s(Q,n)?(r.enumerable?(s(t,_)&&t[_][n]&&(t[_][n]=!1),r=v(r,{enumerable:h(0,!1)})):(s(t,_)||Y(t,_,h(1,v(null))),t[_][n]=!0),ot(t,n,r)):Y(t,n,r)},at=function(t,e){l(t);var n=f(e),o=g(n).concat(ft(n));return L(o,function(e){i&&!r(st,n,e)||ut(t,e,n[e])}),t},st=function(t){var e=d(t),n=r(J,this,e);return!(this===$&&s(Q,e)&&!s(tt,e))&&(!(n||!s(this,e)||!s(Q,e)||s(this,_)&&this[_][e])||n)},ct=function(t,e){var r=f(t),n=d(e);if(r!==$||!s(Q,n)||s(tt,n)){var o=K(r,n);return!o||!s(Q,n)||s(r,_)&&r[_][n]||(o.enumerable=!0),o}},lt=function(t){var e=X(f(t)),r=[];return L(e,function(t){s(Q,t)||s(T,t)||Z(r,t)}),r},ft=function(t){var e=t===$,r=X(e?tt:f(t)),n=[];return L(r,function(t){!s(Q,t)||e&&!s($,t)||Z(n,Q[t])}),n};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,n=N(t),o=function(t){var i=void 0===this?e:this;i===$&&r(o,tt,t),s(i,_)&&s(i[_],n)&&(i[_][n]=!1);var u=h(1,t);try{ot(i,n,u)}catch(t){if(!(t instanceof G))throw t;nt(i,n,u)}};return i&&rt&&ot($,n,{configurable:!0,set:o}),it(n,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,P.f=function(t){return it(k(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}),L(g(et),function(t){B(t)}),t({target:j,stat:!0,forced:!u},{useSetter:function(){rt=!0},useSimple:function(){rt=!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}),I(),F(U,j),T[_]=!0}(),function(){if(vl)return gl;vl=1;var t=Ts(),e=ju(),r=Na(),n=qs(),o=xa(),i=yl(),u=o("string-to-symbol-registry"),a=o("symbol-to-string-registry");t({target:"Symbol",stat:!0,forced:!i},{for:function(t){var o=n(t);if(r(u,o))return u[o];var i=e("Symbol")(o);return u[o]=i,a[i]=o,i}})}(),function(){if(ml)return bl;ml=1;var t=Ts(),e=Na(),r=Vu(),n=Gu(),o=xa(),i=yl(),u=o("symbol-to-string-registry");t({target:"Symbol",stat:!0,forced:!i},{keyFor:function(t){if(!r(t))throw new TypeError(n(t)+" is not a symbol");if(e(u,t))return u[t]}})}(),function(){if(Sl)return Cl;Sl=1;var t=Ts(),e=ju(),r=Fi(),n=Gi(),o=Ri(),i=Bi(),u=ji(),a=Vu(),s=Pc(),c=Dl(),l=$u(),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=n(i,this,f(t),e)),!a(e))return e},r(d,null,o)},D=function(t,e,r){var n=h(r,e-1),o=h(r,e+1);return p(b,t)&&!p(E,o)||p(E,t)&&!p(b,n)?"\\u"+y(v(t,0),16):t};d&&t({target:"JSON",stat:!0,arity:3,forced:w||S},{stringify:function(t,e,n){var o=s(arguments),i=r(w?C:d,null,o);return S&&"string"==typeof i?g(i,m,D):i}})}(),function(){if(Ol)return xl;Ol=1;var t=Ts(),e=$u(),r=Bi(),n=Mc(),o=Ta();t({target:"Object",stat:!0,forced:!e||r(function(){n.f(1)})},{getOwnPropertySymbols:function(t){var e=n.f;return e?e(o(t)):[]}})}()),Gs}var Nl,kl={};function Pl(){return Nl||(Nl=1,ul()("asyncDispose")),kl}var Bl;var Il,Fl={};function Rl(){return Il||(Il=1,ul()("dispose")),Fl}var Ll;var _l;var jl,Ml={};function zl(){return jl||(jl=1,ul()("iterator")),Ml}var Hl;var $l;var Ul;var Vl;var Gl;var Wl;var ql,Kl={};var Yl,Xl={};var Jl;var Zl,Ql,tf,ef={};function rf(){return tf?Ql:(tf=1,function(){if(Ss)return ki;Ss=1;var t=Ts(),e=Bi(),r=Ns(),n=Lu(),o=Ta(),i=Is(),u=Fs(),a=Rs(),s=Hs(),c=$s(),l=Pa(),f=Hu(),d=l("isConcatSpreadable"),p=f>=51||!e(function(){var t=[];return t[d]=!1,t.concat()[0]!==t}),h=function(t){if(!n(t))return!1;var e=t[d];return void 0!==e?!!e:r(t)};t({target:"Array",proto:!0,arity:1,forced:!p||!c("concat")},{concat:function(t){var e,r,n,c,l,f=o(this),d=s(f,0),p=0;for(e=-1,n=arguments.length;e<n;e++)if(h(l=-1===e?f:arguments[e]))for(c=i(l),u(p+c),r=0;r<c;r++,p++)r in l&&a(d,p,l[r]);else u(p+1),a(d,p++,l);return d.length=p,d}})}(),Tl(),Pl(),Bl||(Bl=1,ul()("asyncIterator")),Rl(),Ll||(Ll=1,ul()("hasInstance")),_l||(_l=1,ul()("isConcatSpreadable")),zl(),Hl||(Hl=1,ul()("match")),$l||($l=1,ul()("matchAll")),Ul||(Ul=1,ul()("replace")),Vl||(Vl=1,ul()("search")),Gl||(Gl=1,ul()("species")),Wl||(Wl=1,ul()("split")),function(){if(ql)return Kl;ql=1;var t=ul(),e=al();t("toPrimitive"),e()}(),function(){if(Yl)return Xl;Yl=1;var t=ju(),e=ul(),r=cl();e("toStringTag"),r(t("Symbol"),"Symbol")}(),Jl||(Jl=1,ul()("unscopables")),function(){if(Zl)return ef;Zl=1;var t=Pi();cl()(t.JSON,"JSON",!0)}(),Ql=_u().Symbol)}var nf,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,kf,Pf,Bf,If,Ff,Rf,Lf,_f={};function jf(){return of?nf:(of=1,nf=function(){})}function Mf(){return af?uf:(af=1,uf={})}function zf(){if(cf)return sf;cf=1;var t=Vi(),e=Na(),r=Function.prototype,n=t&&Object.getOwnPropertyDescriptor,o=e(r,"name"),i=o&&"something"===function(){}.name,u=o&&(!t||t&&n(r,"name").configurable);return sf={EXISTS:o,PROPER:i,CONFIGURABLE:u}}function Hf(){return ff||(ff=1,lf=!Bi()(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),lf}function $f(){if(pf)return df;pf=1;var t=Na(),e=ji(),r=Ta(),n=Sc(),o=Hf(),i=n("IE_PROTO"),u=Object,a=u.prototype;return df=o?u.getPrototypeOf:function(n){var o=r(n);if(t(o,i))return o[i];var s=o.constructor;return e(s)&&o instanceof s?s.prototype:o instanceof u?a:null},df}function Uf(){if(vf)return hf;vf=1;var t,e,r,n=Bi(),o=ji(),i=Lu(),u=Cc(),a=$f(),s=zc(),c=Pa(),l=Da(),f=c("iterator"),d=!1;return[].keys&&("next"in(r=[].keys())?(e=a(a(r)))!==Object.prototype&&(t=e):d=!0),!i(t)||n(function(){var e={};return t[f].call(e)!==e})?t={}:l&&(t=u(t)),o(t[f])||s(t,f,function(){return this}),hf={IteratorPrototype:t,BUGGY_SAFARI_ITERATORS:d}}function Vf(){if(yf)return gf;yf=1;var t=Uf().IteratorPrototype,e=Cc(),r=Pu(),n=cl(),o=Mf(),i=function(){return this};return gf=function(u,a,s,c){var l=a+" Iterator";return u.prototype=e(t,{next:r(+!c,s)}),n(u,l,!1,!0),o[l]=i,u}}function Gf(){if(bf)return mf;bf=1;var t=Ri(),e=Wu();return mf=function(r,n,o){try{return t(e(Object.getOwnPropertyDescriptor(r,n)[o]))}catch(t){}}}function Wf(){if(wf)return Ef;wf=1;var t=Lu();return Ef=function(e){return t(e)||null===e}}function qf(){if(Cf)return Sf;Cf=1;var t=Wf(),e=String,r=TypeError;return Sf=function(n){if(t(n))return n;throw new r("Can't set "+e(n)+" as a prototype")}}function Kf(){if(Of)return Df;Of=1;var t=Gf(),e=Lu(),r=Fu(),n=qf();return Df=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 r(t),n(u),e(t)?(i?o(t,u):t.__proto__=u,t):t}}():void 0),Df}function Yf(){if(xf)return Af;xf=1;var t=Ts(),e=Gi(),r=Da(),n=zf(),o=ji(),i=Vf(),u=$f(),a=Kf(),s=cl(),c=xs(),l=zc(),f=Pa(),d=Mf(),p=Uf(),h=n.PROPER,v=n.CONFIGURABLE,g=p.IteratorPrototype,y=p.BUGGY_SAFARI_ITERATORS,m=f("iterator"),b="keys",E="values",w="entries",S=function(){return this};return Af=function(n,f,p,C,D,O,A){i(p,f,C);var x,T,N,k=function(t){if(t===D&&R)return R;if(!y&&t&&t in I)return I[t];switch(t){case b:case E:case w:return function(){return new p(this,t)}}return function(){return new p(this)}},P=f+" Iterator",B=!1,I=n.prototype,F=I[m]||I["@@iterator"]||D&&I[D],R=!y&&F||k(D),L="Array"===f&&I.entries||F;if(L&&(x=u(L.call(new n)))!==Object.prototype&&x.next&&(r||u(x)===g||(a?a(x,g):o(x[m])||l(x,m,S)),s(x,P,!0,!0),r&&(d[P]=S)),h&&D===E&&F&&F.name!==E&&(!r&&v?c(I,"name",E):(B=!0,R=function(){return e(F,this)})),D)if(T={values:k(E),keys:O?R:k(b),entries:k(w)},A)for(N in T)(y||B||!(N in I))&&l(I,N,T[N]);else t({target:f,proto:!0,forced:y||B},T);return r&&!A||I[m]===R||l(I,m,R,{name:D}),d[f]=R,T}}function Xf(){return Nf?Tf:(Nf=1,Tf=function(t,e){return{value:t,done:e}})}function Jf(){if(Pf)return kf;Pf=1;var t=Ru(),e=jf(),r=Mf(),n=fl(),o=As().f,i=Yf(),u=Xf(),a=Da(),s=Vi(),c="Array Iterator",l=n.set,f=n.getterFor(c);kf=i(Array,"Array",function(e,r){l(this,{type:c,target:t(e),index:0,kind:r})},function(){var t=f(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=null,u(void 0,!0);switch(t.kind){case"keys":return u(r,!1);case"values":return u(e[r],!1)}return u([r,e[r]],!1)},"values");var d=r.Arguments=r.Array;if(e("keys"),e("values"),e("entries"),!a&&s&&"values"!==d.name)try{o(d,"name",{value:"values"})}catch(t){}return kf}function Zf(){return If?Bf:(If=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 Qf(){if(Ff)return _f;Ff=1,Jf();var t=Zf(),e=Pi(),r=cl(),n=Mf();for(var o in t)r(e[o],o),n[o]=n.Array;return _f}function td(){if(Lf)return Rf;Lf=1;var t=rf();return Qf(),Rf=t}var ed,rd={};var nd;var od;var id,ud,ad;function sd(){if(ad)return ud;ad=1;var t=td();return function(){if(ed)return rd;ed=1;var t=Pa(),e=As().f,r=t("metadata"),n=Function.prototype;void 0===n[r]&&e(n,r,{value:null})}(),nd||(nd=1,Pl()),od||(od=1,Rl()),id||(id=1,ul()("metadata")),ud=t}var cd,ld,fd;function dd(){if(ld)return cd;ld=1;var t=ju(),e=Ri(),r=t("Symbol"),n=r.keyFor,o=e(r.prototype.valueOf);return cd=r.isRegisteredSymbol||function(t){try{return void 0!==n(o(t))}catch(t){return!1}}}var pd,hd,vd;function gd(){if(hd)return pd;hd=1;for(var t=xa(),e=ju(),r=Ri(),n=Vu(),o=Pa(),i=e("Symbol"),u=i.isWellKnownSymbol,a=e("Object","getOwnPropertyNames"),s=r(i.prototype.valueOf),c=t("wks"),l=0,f=a(i),d=f.length;l<d;l++)try{var p=f[l];n(i[p])&&o(p)}catch(t){}return pd=function(t){if(u&&u(t))return!0;try{for(var e=s(t),r=0,n=a(c),o=n.length;r<o;r++)if(c[n[r]]==e)return!0}catch(t){}return!1},pd}var yd;var md;var bd;var Ed;var wd;var Sd;var Cd;var Dd,Od,Ad,xd,Td;function Nd(){if(Ad)return Od;Ad=1;var t=sd();return fd||(fd=1,Ts()({target:"Symbol",stat:!0},{isRegisteredSymbol:dd()})),vd||(vd=1,Ts()({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:gd()})),yd||(yd=1,ul()("customMatcher")),md||(md=1,ul()("observable")),bd||(bd=1,Ts()({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:dd()})),Ed||(Ed=1,Ts()({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:gd()})),wd||(wd=1,ul()("matcher")),Sd||(Sd=1,ul()("metadataKey")),Cd||(Cd=1,ul()("patternMatch")),Dd||(Dd=1,ul()("replaceAll")),Od=t}function kd(){return Td?xd:(Td=1,xd=Nd())}var Pd,Bd,Id,Fd,Rd,Ld,_d,jd,Md,zd,Hd,$d,Ud,Vd=b(kd()),Gd={};function Wd(){if(Bd)return Pd;Bd=1;var t=Ri(),e=Ps(),r=qs(),n=Fu(),o=t("".charAt),i=t("".charCodeAt),u=t("".slice),a=function(t){return function(a,s){var c,l,f=r(n(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 Pd={codeAt:a(!1),charAt:a(!0)}}function qd(){return Rd?Fd:(Rd=1,Jf(),function(){if(Id)return Gd;Id=1;var t=Wd().charAt,e=qs(),r=fl(),n=Yf(),o=Xf(),i="String Iterator",u=r.set,a=r.getterFor(i);n(String,"String",function(t){u(this,{type:i,string:e(t),index:0})},function(){var e,r=a(this),n=r.string,i=r.index;return i>=n.length?o(void 0,!0):(e=t(n,i),r.index+=e.length,o(e,!1))})}(),zl(),Fd=il().f("iterator"))}function Kd(){if(_d)return Ld;_d=1;var t=qd();return Qf(),Ld=t}function Yd(){return Md?jd:(Md=1,jd=Kd())}function Xd(){return Hd?zd:(Hd=1,zd=Yd())}function Jd(){return Ud?$d:(Ud=1,$d=Xd())}var Zd=b(Jd());function Qd(t){return Qd="function"==typeof Vd&&"symbol"==typeof Zd?function(t){return typeof t}:function(t){return t&&"function"==typeof Vd&&t.constructor===Vd&&t!==Vd.prototype?"symbol":typeof t},Qd(t)}var tp,ep={};if(function(){if(tp)return ep;tp=1;var t=dn(),e=w(),r=T(),n=hr().f,o=Ot();t({target:"Object",stat:!0,forced:!o||e(function(){n(1)}),sham:!o},{getOwnPropertyDescriptor:function(t,e){return n(r(t),e)}})}(),"object"===("undefined"==typeof global?"undefined":Qd(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[]})}
1
+ var e,t,n,r,o,i,a,s,u,l,c,d,f,p,h,g,v,m,y="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function b(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function E(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 C(){return t?e:(t=1,e=function(e){try{return!!e()}catch(e){return!0}})}function D(){if(r)return n;r=1;var e=C();return n=!e(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})}function w(){if(i)return o;i=1;var e=D(),t=Function.prototype,n=t.call,r=e&&t.bind.bind(n,n);return o=e?r:function(e){return function(){return n.apply(e,arguments)}},o}function S(){if(s)return a;s=1;var e=w(),t=e({}.toString),n=e("".slice);return a=function(e){return n(t(e),8,-1)}}function A(){if(l)return u;l=1;var e=w(),t=C(),n=S(),r=Object,o=e("".split);return u=t(function(){return!r("z").propertyIsEnumerable(0)})?function(e){return"String"===n(e)?o(e,""):r(e)}:r}function x(){return d?c:(d=1,c=function(e){return null==e})}function O(){if(p)return f;p=1;var e=x(),t=TypeError;return f=function(n){if(e(n))throw new t("Can't call method on "+n);return n}}function N(){if(g)return h;g=1;var e=A(),t=O();return h=function(n){return e(t(n))}}function B(){if(m)return v;m=1;var e=function(e){return e&&e.Math===Math&&e};return v=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof y&&y)||e("object"==typeof v&&v)||function(){return this}()||Function("return this")()}var T,k,F,I,P,_,L,R,M,j,H,z,$,U,V,W,G,q,K,Y,X,Z,J,Q,ee,te,ne,re,oe,ie={exports:{}};function ae(){return k?T:(k=1,T=!1)}function se(){if(I)return F;I=1;var e=B(),t=Object.defineProperty;return F=function(n,r){try{t(e,n,{value:r,configurable:!0,writable:!0})}catch(t){e[n]=r}return r}}function ue(){if(P)return ie.exports;P=1;var e=ae(),t=B(),n=se(),r="__core-js_shared__",o=ie.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"}),ie.exports}function le(){if(L)return _;L=1;var e=ue();return _=function(t,n){return e[t]||(e[t]=n||{})}}function ce(){if(M)return R;M=1;var e=O(),t=Object;return R=function(n){return t(e(n))}}function de(){if(H)return j;H=1;var e=w(),t=ce(),n=e({}.hasOwnProperty);return j=Object.hasOwn||function(e,r){return n(t(e),r)}}function fe(){if($)return z;$=1;var e=w(),t=0,n=Math.random(),r=e(1.1.toString);return z=function(e){return"Symbol("+(void 0===e?"":e)+")_"+r(++t+n,36)}}function pe(){if(G)return W;G=1;var e,t,n=B(),r=function(){if(V)return U;V=1;var e=B().navigator,t=e&&e.userAgent;return U=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]),W=t}function he(){if(K)return q;K=1;var e=pe(),t=C(),n=B().String;return q=!!Object.getOwnPropertySymbols&&!t(function(){var t=Symbol("symbol detection");return!n(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41}),q}function ge(){if(X)return Y;X=1;var e=he();return Y=e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function ve(){if(J)return Z;J=1;var e=B(),t=le(),n=de(),r=fe(),o=he(),i=ge(),a=e.Symbol,s=t("wks"),u=i?a.for||a:a&&a.withoutSetter||r;return Z=function(e){return n(s,e)||(s[e]=o&&n(a,e)?a[e]:u("Symbol."+e)),s[e]}}function me(){if(ee)return Q;ee=1;var e="object"==typeof document&&document.all;return Q=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(e){return"function"==typeof e}}function ye(){if(ne)return te;ne=1;var e=me();return te=function(t){return"object"==typeof t?null!==t:e(t)}}function be(){if(oe)return re;oe=1;var e=ye(),t=String,n=TypeError;return re=function(r){if(e(r))return r;throw new n(t(r)+" is not an object")}}var Ee,Ce,De,we,Se={};function Ae(){if(Ce)return Ee;Ce=1;var e=C();return Ee=!e(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function xe(){if(we)return De;we=1;var e=Ae(),t=C();return De=e&&t(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}var Oe,Ne,Be,Te,ke,Fe,Ie,Pe,_e,Le,Re,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,Dt,wt,St,At,xt,Ot,Nt,Bt,Tt,kt,Ft,It,Pt,_t,Lt,Rt={};function Mt(){if(Ne)return Oe;Ne=1;var e=B(),t=ye(),n=e.document,r=t(n)&&t(n.createElement);return Oe=function(e){return r?n.createElement(e):{}}}function jt(){if(Te)return Be;Te=1;var e=Ae(),t=C(),n=Mt();return Be=!e&&!t(function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a})}function Ht(){if(Fe)return ke;Fe=1;var e=D(),t=Function.prototype.call;return ke=e?t.bind(t):function(){return t.apply(t,arguments)},ke}function zt(){if(Pe)return Ie;Pe=1;var e=B(),t=me();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 $t(){if(Le)return _e;Le=1;var e=w();return _e=e({}.isPrototypeOf)}function Ut(){if(Me)return Re;Me=1;var e=zt(),t=me(),n=$t(),r=ge(),o=Object;return Re=r?function(e){return"symbol"==typeof e}:function(r){var i=e("Symbol");return t(i)&&n(i.prototype,o(r))}}function Vt(){if(He)return je;He=1;var e=String;return je=function(t){try{return e(t)}catch(e){return"Object"}}}function Wt(){if($e)return ze;$e=1;var e=me(),t=Vt(),n=TypeError;return ze=function(r){if(e(r))return r;throw new n(t(r)+" is not a function")}}function Gt(){if(Ve)return Ue;Ve=1;var e=Wt(),t=x();return Ue=function(n,r){var o=n[r];return t(o)?void 0:e(o)},Ue}function qt(){if(Ke)return qe;Ke=1;var e=Ht(),t=ye(),n=Ut(),r=Gt(),o=function(){if(Ge)return We;Ge=1;var e=Ht(),t=me(),n=ye(),r=TypeError;return We=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")},We}(),i=ve(),a=TypeError,s=i("toPrimitive");return qe=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 Kt(){if(Xe)return Ye;Xe=1;var e=qt(),t=Ut();return Ye=function(n){var r=e(n,"string");return t(r)?r:r+""}}function Yt(){if(Ze)return Rt;Ze=1;var e=Ae(),t=jt(),n=xe(),r=be(),o=Kt(),i=TypeError,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,u="enumerable",l="configurable",c="writable";return Rt.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},Rt}function Xt(){if(tt)return et;tt=1;var e=function(){if(Qe)return Je;Qe=1;var e=Math.ceil,t=Math.floor;return Je=Math.trunc||function(n){var r=+n;return(r>0?t:e)(r)},Je}();return et=function(t){var n=+t;return n!=n||0===n?0:e(n)}}function Zt(){if(it)return ot;it=1;var e=Xt(),t=Math.min;return ot=function(n){var r=e(n);return r>0?t(r,9007199254740991):0}}function Jt(){if(st)return at;st=1;var e=Zt();return at=function(t){return e(t.length)}}function Qt(){if(lt)return ut;lt=1;var e=N(),t=function(){if(rt)return nt;rt=1;var e=Xt(),t=Math.max,n=Math.min;return nt=function(r,o){var i=e(r);return i<0?t(i+o,0):n(i,o)},nt}(),n=Jt(),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 ut={includes:r(!0),indexOf:r(!1)}}function en(){return dt?ct:(dt=1,ct={})}function tn(){if(pt)return ft;pt=1;var e=w(),t=de(),n=N(),r=Qt().indexOf,o=en(),i=e([].push);return ft=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},ft}function nn(){return gt?ht:(gt=1,ht=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function rn(){if(yt)return Se;yt=1;var e=Ae(),t=xe(),n=Yt(),r=be(),o=N(),i=function(){if(mt)return vt;mt=1;var e=tn(),t=nn();return vt=Object.keys||function(n){return e(n,t)},vt}();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 on(){if(Dt)return Ct;Dt=1;var e=le(),t=fe(),n=e("keys");return Ct=function(e){return n[e]||(n[e]=t(e))}}function an(){if(St)return wt;St=1;var e,t=be(),n=rn(),r=nn(),o=en(),i=function(){if(Et)return bt;Et=1;var e=zt();return bt=e("document","documentElement")}(),a=Mt(),s=on(),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,wt=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)},wt}function sn(){return Nt?Ot:(Nt=1,Ot={})}function un(){return Ft?kt:(Ft=1,kt=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}})}function ln(){if(Pt)return It;Pt=1;var e=Ae(),t=Yt(),n=un();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 cn(){if(Lt)return _t;Lt=1;var e,t,n,r=function(){if(Tt)return Bt;Tt=1;var e=B(),t=me(),n=e.WeakMap;return Bt=t(n)&&/native code/.test(String(n))}(),o=B(),i=ye(),a=ln(),s=de(),u=ue(),l=on(),c=en(),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 _t={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 dn,fn,pn={},hn={};function gn(){if(fn)return pn;fn=1;var e=Ae(),t=Ht(),n=function(){if(dn)return hn;dn=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,n=t&&!e.call({1:2},1);return hn.f=n?function(e){var n=t(this,e);return!!n&&n.enumerable}:e,hn}(),r=un(),o=N(),i=Kt(),a=de(),s=jt(),u=Object.getOwnPropertyDescriptor;return pn.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])},pn}var vn,mn,yn,bn,En,Cn,Dn,wn={exports:{}};function Sn(){if(mn)return vn;mn=1;var e=Ae(),t=de(),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 vn={EXISTS:o,PROPER:i,CONFIGURABLE:a}}function An(){if(bn)return yn;bn=1;var e=w(),t=me(),n=ue(),r=e(Function.toString);return t(n.inspectSource)||(n.inspectSource=function(e){return r(e)}),yn=n.inspectSource}function xn(){if(En)return wn.exports;En=1;var e=w(),t=C(),n=me(),r=de(),o=Ae(),i=Sn().CONFIGURABLE,a=An(),s=cn(),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=wn.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"),wn.exports}function On(){if(Dn)return Cn;Dn=1;var e=me(),t=Yt(),n=xn(),r=se();return Cn=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},Cn}var Nn,Bn={};var Tn,kn,Fn,In,Pn,_n,Ln,Rn,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={};function cr(){if(Fn)return kn;Fn=1;var e=zt(),t=w(),n=function(){if(Nn)return Bn;Nn=1;var e=tn(),t=nn().concat("length","prototype");return Bn.f=Object.getOwnPropertyNames||function(n){return e(n,t)},Bn}(),r=(Tn||(Tn=1,lr.f=Object.getOwnPropertySymbols),lr),o=be(),i=t([].concat);return kn=e("Reflect","ownKeys")||function(e){var t=n.f(o(e)),a=r.f;return a?i(t,a(e)):t},kn}function dr(){if(Pn)return In;Pn=1;var e=de(),t=cr(),n=gn(),r=Yt();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 fr(){if(Mn)return Rn;Mn=1;var e=B(),t=gn().f,n=ln(),r=On(),o=se(),i=dr(),a=function(){if(Ln)return _n;Ln=1;var e=C(),t=me(),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 _n=r}();return Rn=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 pr(){if($n)return zn;$n=1;var e=de(),t=me(),n=ce(),r=on(),o=function(){if(Hn)return jn;Hn=1;var e=C();return jn=!e(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),jn}(),i=r("IE_PROTO"),a=Object,s=a.prototype;return zn=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},zn}function hr(){if(Vn)return Un;Vn=1;var e,t,n,r=C(),o=me(),i=ye(),a=an(),s=pr(),u=On(),l=ve(),c=ae(),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}),Un={IteratorPrototype:e,BUGGY_SAFARI_ITERATORS:f}}function gr(){if(Gn)return Wn;Gn=1;var e=Yt().f,t=de(),n=ve()("toStringTag");return Wn=function(r,o,i){r&&!i&&(r=r.prototype),r&&!t(r,n)&&e(r,n,{configurable:!0,value:o})}}function vr(){if(er)return Qn;er=1;var e=function(){if(Jn)return Zn;Jn=1;var e=ye();return Zn=function(t){return e(t)||null===t}}(),t=String,n=TypeError;return Qn=function(r){if(e(r))return r;throw new n("Can't set "+t(r)+" as a prototype")}}function mr(){if(nr)return tr;nr=1;var e=function(){if(Xn)return Yn;Xn=1;var e=w(),t=Wt();return Yn=function(n,r,o){try{return e(t(Object.getOwnPropertyDescriptor(n,r)[o]))}catch(e){}}}(),t=ye(),n=O(),r=vr();return tr=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),tr}function yr(){if(or)return rr;or=1;var e=fr(),t=Ht(),n=ae(),r=Sn(),o=me(),i=function(){if(Kn)return qn;Kn=1;var e=hr().IteratorPrototype,t=an(),n=un(),r=gr(),o=sn(),i=function(){return this};return qn=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=pr(),s=mr(),u=gr(),l=ln(),c=On(),d=ve(),f=sn(),p=hr(),h=r.PROPER,g=r.CONFIGURABLE,v=p.IteratorPrototype,m=p.BUGGY_SAFARI_ITERATORS,y=d("iterator"),b="keys",E="values",C="entries",D=function(){return this};return rr=function(r,d,p,w,S,A,x){i(p,d,w);var O,N,B,T=function(e){if(e===S&&_)return _;if(!m&&e&&e in I)return I[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,I=r.prototype,P=I[y]||I["@@iterator"]||S&&I[S],_=!m&&P||T(S),L="Array"===d&&I.entries||P;if(L&&(O=a(L.call(new r)))!==Object.prototype&&O.next&&(n||a(O)===v||(s?s(O,v):o(O[y])||c(O,y,D)),u(O,k,!0,!0),n&&(f[k]=D)),h&&S===E&&P&&P.name!==E&&(!n&&g?l(I,"name",E):(F=!0,_=function(){return t(P,this)})),S)if(N={values:T(E),keys:A?_:T(b),entries:T(C)},x)for(B in N)(m||F||!(B in I))&&c(I,B,N[B]);else e({target:d,proto:!0,forced:m||F},N);return n&&!x||I[y]===_||c(I,y,_,{name:S}),f[d]=_,N}}function br(){return ar?ir:(ar=1,ir=function(e,t){return{value:e,done:t}})}function Er(){if(ur)return sr;ur=1;var e=N(),t=function(){if(xt)return At;xt=1;var e=ve(),t=an(),n=Yt().f,r=e("unscopables"),o=Array.prototype;return void 0===o[r]&&n(o,r,{configurable:!0,value:t(null)}),At=function(e){o[r][e]=!0}}(),n=sn(),r=cn(),o=Yt().f,i=yr(),a=br(),s=ae(),u=Ae(),l="Array Iterator",c=r.set,d=r.getterFor(l);sr=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 sr}Er();var Cr,Dr,wr,Sr,Ar,xr,Or,Nr={};function Br(){if(Dr)return Cr;Dr=1;var e={};return e[ve()("toStringTag")]="z",Cr="[object z]"===String(e)}function Tr(){if(Sr)return wr;Sr=1;var e=Br(),t=me(),n=S(),r=ve()("toStringTag"),o=Object,i="Arguments"===n(function(){return arguments}());return wr=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},wr}!function(){if(Or)return Nr;Or=1;var e=Br(),t=On(),n=function(){if(xr)return Ar;xr=1;var e=Br(),t=Tr();return Ar=e?{}.toString:function(){return"[object "+t(this)+"]"}}();e||t(Object.prototype,"toString",n,{unsafe:!0})}();var kr,Fr,Ir,Pr,_r,Lr,Rr,Mr,jr,Hr,zr,$r,Ur,Vr={};function Wr(){if(Fr)return kr;Fr=1;var e=Tr(),t=String;return kr=function(n){if("Symbol"===e(n))throw new TypeError("Cannot convert a Symbol value to a string");return t(n)}}function Gr(){if(Pr)return Ir;Pr=1;var e=be();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 qr(){if($r)return zr;$r=1;var e,t,n=Ht(),r=w(),o=Wr(),i=Gr(),a=function(){if(Lr)return _r;Lr=1;var e=C(),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 _r={BROKEN_CARET:o,MISSED_STICKY:r,UNSUPPORTED_Y:n}}(),s=le(),u=an(),l=cn().get,c=function(){if(Mr)return Rr;Mr=1;var e=C(),t=B().RegExp;return Rr=e(function(){var e=t(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)})}(),d=function(){if(Hr)return jr;Hr=1;var e=C(),t=B().RegExp;return jr=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,D=void 0!==/()??/.exec("")[1];return(b||D||E||c||d)&&(h=function(e){var t,r,a,s,c,d,C,w=this,S=l(w),A=o(e),x=S.raw;if(x)return x.lastIndex=w.lastIndex,t=n(h,x,A),w.lastIndex=x.lastIndex,t;var O=S.groups,N=E&&w.sticky,B=n(i,w),T=w.source,k=0,F=A;if(N&&(B=m(B,"y",""),-1===v(B,"g")&&(B+="g"),F=y(A,w.lastIndex),w.lastIndex>0&&(!w.multiline||w.multiline&&"\n"!==g(A,w.lastIndex-1))&&(T="(?: "+T+")",F=" "+F,k++),r=new RegExp("^(?:"+T+")",B)),D&&(r=new RegExp("^"+T+"$(?!\\s)",B)),b&&(a=w.lastIndex),s=n(p,N?r:w,F),N?s?(s.input=y(s.input,k),s[0]=y(s[0],k),s.index=w.lastIndex,w.lastIndex+=s[0].length):w.lastIndex=0:b&&s&&(w.lastIndex=w.global?s.index+s[0].length:a),D&&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&&O)for(s.groups=d=u(null),c=0;c<O.length;c++)d[(C=O[c])[0]]=s[C[1]];return s}),zr=h}function Kr(){if(Ur)return Vr;Ur=1;var e=fr(),t=qr();return e({target:"RegExp",proto:!0,forced:/./.exec!==t},{exec:t}),Vr}Kr();var Yr,Xr,Zr,Jr={};function Qr(){if(Xr)return Yr;Xr=1;var e=w(),t=Xt(),n=Wr(),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 Yr={codeAt:s(!1),charAt:s(!0)}}!function(){if(Zr)return Jr;Zr=1;var e=Qr().charAt,t=Wr(),n=cn(),r=yr(),o=br(),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 eo,to,no,ro,oo,io,ao,so,uo,lo,co,fo={};function po(){if(ro)return no;ro=1;var e=Qr().charAt;return no=function(t,n,r){return n+(r?e(t,n).length:1)},no}function ho(){if(so)return ao;so=1;var e=Ht(),t=de(),n=$t(),r=function(){if(io)return oo;io=1;var e=B(),t=C(),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 oo={correct:r}}(),o=Gr(),i=RegExp.prototype;return ao=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(co)return fo;co=1;var e=Ht(),t=w(),n=function(){if(to)return eo;to=1,Kr();var e=Ht(),t=On(),n=qr(),r=C(),o=ve(),i=ln(),a=o("species"),s=RegExp.prototype;return eo=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)},eo}(),r=be(),o=ye(),i=Zt(),a=Wr(),s=O(),u=Gt(),l=po(),c=ho(),d=function(){if(lo)return uo;lo=1;var e=Ht(),t=be(),n=me(),r=S(),o=qr(),i=TypeError;return uo=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")},uo}(),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 go,vo,mo,yo,bo,Eo,Co,Do,wo,So,Ao,xo,Oo,No,Bo,To,ko,Fo,Io,Po,_o,Lo,Ro,Mo,jo,Ho,zo,$o={},Uo={};function Vo(){if(vo)return go;vo=1;var e=ye(),t=ln();return go=function(n,r){e(r)&&"cause"in r&&t(n,"cause",r.cause)},go}function Wo(){if(Do)return Co;Do=1;var e=ln(),t=function(){if(yo)return mo;yo=1;var e=w(),t=Error,n=e("".replace),r=String(new t("zxcasd").stack),o=/\n\s*at [^:]*:[^\n]*/,i=o.test(r);return mo=function(e,r){if(i&&"string"==typeof e&&!t.prepareStackTrace)for(;r--;)e=n(e,o,"");return e}}(),n=function(){if(Eo)return bo;Eo=1;var e=C(),t=un();return bo=!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 Co=function(o,i,a,s){n&&(r?r(o,i):e(o,"stack",t(a,s)))},Co}function Go(){if(xo)return Ao;xo=1;var e=function(){if(So)return wo;So=1;var e=S(),t=w();return wo=function(n){if("Function"===e(n))return t(n)},wo}(),t=Wt(),n=D(),r=e(e.bind);return Ao=function(e,o){return t(e),void 0===o?e:n?r(e,o):function(){return e.apply(o,arguments)}},Ao}function qo(){if(No)return Oo;No=1;var e=ve(),t=sn(),n=e("iterator"),r=Array.prototype;return Oo=function(e){return void 0!==e&&(t.Array===e||r[n]===e)}}function Ko(){if(To)return Bo;To=1;var e=Tr(),t=Gt(),n=x(),r=sn(),o=ve()("iterator");return Bo=function(i){if(!n(i))return t(i,o)||t(i,"@@iterator")||r[e(i)]}}function Yo(){if(Fo)return ko;Fo=1;var e=Ht(),t=Wt(),n=be(),r=Vt(),o=Ko(),i=TypeError;return ko=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")},ko}function Xo(){if(Po)return Io;Po=1;var e=Ht(),t=be(),n=Gt();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 Zo(){if(Lo)return _o;Lo=1;var e=Go(),t=Ht(),n=be(),r=Vt(),o=qo(),i=Jt(),a=$t(),s=Yo(),u=Ko(),l=Xo(),c=TypeError,d=function(e,t){this.stopped=e,this.result=t},f=d.prototype;return _o=function(p,h,g){var v,m,y,b,E,C,D,w=g&&g.that,S=!(!g||!g.AS_ENTRIES),A=!(!g||!g.IS_RECORD),x=!(!g||!g.IS_ITERATOR),O=!(!g||!g.INTERRUPTED),N=e(h,w),B=function(e){return v&&l(v,"normal"),new d(!0,e)},T=function(e){return S?(n(e),O?N(e[0],e[1],B):N(e[0],e[1])):O?N(e,B):N(e)};if(A)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=T(p[y]))&&a(f,E))return E;return new d(!1)}v=s(p,m)}for(C=A?p.next:v.next;!(D=t(C,v)).done;){try{E=T(D.value)}catch(e){l(v,"throw",e)}if("object"==typeof E&&E&&a(f,E))return E}return new d(!1)},_o}function Jo(){if(Mo)return Ro;Mo=1;var e=Wr();return Ro=function(t,n){return void 0===t?arguments.length<2?"":n:e(t)},Ro}function Qo(){return Ho||(Ho=1,function(){if(jo)return Uo;jo=1;var e=fr(),t=$t(),n=pr(),r=mr(),o=dr(),i=an(),a=ln(),s=un(),u=Vo(),l=Wo(),c=Zo(),d=Jo(),f=ve()("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})}()),$o}zo||(zo=1,Qo());var ei,ti,ni={};ti||(ti=1,function(){if(ei)return ni;ei=1;var e=fr(),t=B();e({global:!0,forced:t.globalThis!==t},{globalThis:t})}());var ri,oi,ii,ai,si,ui,li={};function ci(){return oi?ri:(oi=1,ri={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 ii;ai=1;var e=Mt()("span").classList,t=e&&e.constructor&&e.constructor.prototype;return ii=t===Object.prototype?void 0:t}if(function(){if(si)return li;si=1;var e=B(),t=ci(),n=di(),r=Er(),o=ln(),i=gr(),a=ve()("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.")}fi(),pi()}else global&&(null===(ui=global.navigator)||void 0===ui?void 0:ui.userAgent.match("QQBrowser"))&&(fi(),pi());function fi(){"undefined"==typeof globalThis&&(window.globalThis=window)}function pi(){"undefined"==typeof AggregateError&&(window.AggregateError=function(e,t){var n=new Error(t);return n.errors=e,n})}var hi,gi,vi,mi,yi,bi,Ei,Ci,Di,wi,Si,Ai,xi,Oi,Ni,Bi,Ti={};function ki(){if(gi)return hi;gi=1;var e=function(e){return e&&e.Math===Math&&e};return hi=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof y&&y)||e("object"==typeof hi&&hi)||function(){return this}()||Function("return this")()}function Fi(){return mi?vi:(mi=1,vi=function(e){try{return!!e()}catch(e){return!0}})}function Ii(){return bi?yi:(bi=1,yi=!Fi()(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))}function Pi(){if(Ci)return Ei;Ci=1;var e=Ii(),t=Function.prototype,n=t.apply,r=t.call;return Ei="object"==typeof Reflect&&Reflect.apply||(e?r.bind(n):function(){return r.apply(n,arguments)}),Ei}function _i(){if(wi)return Di;wi=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(Ai)return Si;Ai=1;var e=_i(),t=e({}.toString),n=e("".slice);return Si=function(e){return n(t(e),8,-1)}}function Ri(){if(Oi)return xi;Oi=1;var e=Li(),t=_i();return xi=function(n){if("Function"===e(n))return t(n)},xi}function Mi(){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 ji,Hi,zi,$i,Ui={};function Vi(){return Hi?ji:(Hi=1,ji=!Fi()(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))}function Wi(){if($i)return zi;$i=1;var e=Ii(),t=Function.prototype.call;return zi=e?t.bind(t):function(){return t.apply(t,arguments)},zi}var Gi,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,Da,wa,Sa,Aa,xa,Oa,Na,Ba={};function Ta(){if(Gi)return Ba;Gi=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 ka(){return Ki?qi:(Ki=1,qi=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}})}function Fa(){if(Xi)return Yi;Xi=1;var e=_i(),t=Fi(),n=Li(),r=Object,o=e("".split);return Yi=t(function(){return!r("z").propertyIsEnumerable(0)})?function(e){return"String"===n(e)?o(e,""):r(e)}:r}function Ia(){return Ji?Zi:(Ji=1,Zi=function(e){return null==e})}function Pa(){if(ea)return Qi;ea=1;var e=Ia(),t=TypeError;return Qi=function(n){if(e(n))throw new t("Can't call method on "+n);return n}}function _a(){if(na)return ta;na=1;var e=Fa(),t=Pa();return ta=function(n){return e(t(n))}}function La(){if(oa)return ra;oa=1;var e=Mi();return ra=function(t){return"object"==typeof t?null!==t:e(t)}}function Ra(){return aa?ia:(aa=1,ia={})}function Ma(){if(ua)return sa;ua=1;var e=Ra(),t=ki(),n=Mi(),r=function(e){return n(e)?e:void 0};return sa=function(n,o){return arguments.length<2?r(e[n])||r(t[n]):e[n]&&e[n][o]||t[n]&&t[n][o]},sa}function ja(){return ca?la:(ca=1,la=_i()({}.isPrototypeOf))}function Ha(){if(fa)return da;fa=1;var e=ki().navigator,t=e&&e.userAgent;return da=t?String(t):""}function za(){if(ha)return pa;ha=1;var e,t,n=ki(),r=Ha(),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]),pa=t}function $a(){if(va)return ga;va=1;var e=za(),t=Fi(),n=ki().String;return ga=!!Object.getOwnPropertySymbols&&!t(function(){var t=Symbol("symbol detection");return!n(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41}),ga}function Ua(){return ya?ma:(ya=1,ma=$a()&&!Symbol.sham&&"symbol"==typeof Symbol.iterator)}function Va(){if(Ea)return ba;Ea=1;var e=Ma(),t=Mi(),n=ja(),r=Object;return ba=Ua()?function(e){return"symbol"==typeof e}:function(o){var i=e("Symbol");return t(i)&&n(i.prototype,r(o))}}function Wa(){if(Da)return Ca;Da=1;var e=String;return Ca=function(t){try{return e(t)}catch(e){return"Object"}}}function Ga(){if(Sa)return wa;Sa=1;var e=Mi(),t=Wa(),n=TypeError;return wa=function(r){if(e(r))return r;throw new n(t(r)+" is not a function")}}function qa(){if(xa)return Aa;xa=1;var e=Ga(),t=Ia();return Aa=function(n,r){var o=n[r];return t(o)?void 0:e(o)},Aa}function Ka(){if(Na)return Oa;Na=1;var e=Wi(),t=Mi(),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 Ya,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,Ds,ws={exports:{}};function Ss(){return Xa?Ya:(Xa=1,Ya=!0)}function As(){if(Ja)return Za;Ja=1;var e=ki(),t=Object.defineProperty;return Za=function(n,r){try{t(e,n,{value:r,configurable:!0,writable:!0})}catch(t){e[n]=r}return r}}function xs(){if(Qa)return ws.exports;Qa=1;var e=Ss(),t=ki(),n=As(),r="__core-js_shared__",o=ws.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"}),ws.exports}function Os(){if(ts)return es;ts=1;var e=xs();return es=function(t,n){return e[t]||(e[t]=n||{})}}function Ns(){if(rs)return ns;rs=1;var e=Pa(),t=Object;return ns=function(n){return t(e(n))}}function Bs(){if(is)return os;is=1;var e=_i(),t=Ns(),n=e({}.hasOwnProperty);return os=Object.hasOwn||function(e,r){return n(t(e),r)}}function Ts(){if(ss)return as;ss=1;var e=_i(),t=0,n=Math.random(),r=e(1.1.toString);return as=function(e){return"Symbol("+(void 0===e?"":e)+")_"+r(++t+n,36)}}function ks(){if(ls)return us;ls=1;var e=ki(),t=Os(),n=Bs(),r=Ts(),o=$a(),i=Ua(),a=e.Symbol,s=t("wks"),u=i?a.for||a:a&&a.withoutSetter||r;return us=function(e){return n(s,e)||(s[e]=o&&n(a,e)?a[e]:u("Symbol."+e)),s[e]}}function Fs(){if(ds)return cs;ds=1;var e=Wi(),t=La(),n=Va(),r=qa(),o=Ka(),i=TypeError,a=ks()("toPrimitive");return cs=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(ps)return fs;ps=1;var e=Fs(),t=Va();return fs=function(n){var r=e(n,"string");return t(r)?r:r+""}}function Ps(){if(gs)return hs;gs=1;var e=ki(),t=La(),n=e.document,r=t(n)&&t(n.createElement);return hs=function(e){return r?n.createElement(e):{}}}function _s(){if(ms)return vs;ms=1;var e=Vi(),t=Fi(),n=Ps();return vs=!e&&!t(function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a})}function Ls(){if(ys)return Ui;ys=1;var e=Vi(),t=Wi(),n=Ta(),r=ka(),o=_a(),i=Is(),a=Bs(),s=_s(),u=Object.getOwnPropertyDescriptor;return Ui.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])},Ui}function Rs(){if(Es)return bs;Es=1;var e=Fi(),t=Mi(),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 bs=r}function Ms(){if(Ds)return Cs;Ds=1;var e=Ri(),t=Ga(),n=Ii(),r=e(e.bind);return Cs=function(e,o){return t(e),void 0===o?e:n?r(e,o):function(){return e.apply(o,arguments)}},Cs}var js,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,Du,wu={};function Su(){return Hs?js:(Hs=1,js=Vi()&&Fi()(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}))}function Au(){if($s)return zs;$s=1;var e=La(),t=String,n=TypeError;return zs=function(r){if(e(r))return r;throw new n(t(r)+" is not an object")}}function xu(){if(Us)return wu;Us=1;var e=Vi(),t=_s(),n=Su(),r=Au(),o=Is(),i=TypeError,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,u="enumerable",l="configurable",c="writable";return wu.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},wu}function Ou(){if(Ws)return Vs;Ws=1;var e=Vi(),t=xu(),n=ka();return Vs=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(qs)return Gs;qs=1;var e=ki(),t=Pi(),n=Ri(),r=Mi(),o=Ls().f,i=Rs(),a=Ra(),s=Ms(),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 Gs=function(t,d){var f,p,h,g,v,m,y,b,E,C=t.target,D=t.global,w=t.stat,S=t.proto,A=D?e:w?e[C]:e[C]&&e[C].prototype,x=D?a:a[C]||u(a,C,{})[C],O=x.prototype;for(g in d)p=!(f=i(D?g:C+(w?".":"#")+g,t.forced))&&A&&l(A,g),m=x[g],p&&(y=t.dontCallGetSet?(E=o(A,g))&&E.value:A[g]),v=p&&y?y:d[g],(f||S||typeof m!=typeof v)&&(b=t.bind&&p?s(v,e):t.wrap&&p?c(v):S&&r(v)?n(v):v,(t.sham||v&&v.sham||m&&m.sham)&&u(b,"sham",!0),u(x,g,b),S&&(l(a,h=C+"Prototype")||u(a,h,{}),u(a[h],g,v),t.real&&O&&(f||!O[g])&&u(O,g,v)))}}function Bu(){if(Ys)return Ks;Ys=1;var e=Li();return Ks=Array.isArray||function(t){return"Array"===e(t)}}function Tu(){if(Zs)return Xs;Zs=1;var e=Math.ceil,t=Math.floor;return Xs=Math.trunc||function(n){var r=+n;return(r>0?t:e)(r)},Xs}function ku(){if(Qs)return Js;Qs=1;var e=Tu();return Js=function(t){var n=+t;return n!=n||0===n?0:e(n)}}function Fu(){if(tu)return eu;tu=1;var e=ku(),t=Math.min;return eu=function(n){var r=e(n);return r>0?t(r,9007199254740991):0}}function Iu(){if(ru)return nu;ru=1;var e=Fu();return nu=function(t){return e(t.length)}}function Pu(){if(iu)return ou;iu=1;var e=TypeError;return ou=function(t){if(t>9007199254740991)throw e("Maximum allowed index exceeded");return t}}function _u(){if(su)return au;su=1;var e=Vi(),t=xu(),n=ka();return au=function(r,o,i){e?t.f(r,o,n(0,i)):r[o]=i}}function Lu(){if(lu)return uu;lu=1;var e={};return e[ks()("toStringTag")]="z",uu="[object z]"===String(e)}function Ru(){if(du)return cu;du=1;var e=Lu(),t=Mi(),n=Li(),r=ks()("toStringTag"),o=Object,i="Arguments"===n(function(){return arguments}());return cu=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},cu}function Mu(){if(pu)return fu;pu=1;var e=_i(),t=Mi(),n=xs(),r=e(Function.toString);return t(n.inspectSource)||(n.inspectSource=function(e){return r(e)}),fu=n.inspectSource}function ju(){if(gu)return hu;gu=1;var e=_i(),t=Fi(),n=Mi(),r=Ru(),o=Ma(),i=Mu(),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,hu=!s||t(function(){var e;return d(d.call)||!d(Object)||!d(function(){e=!0})||e})?f:d}function Hu(){if(mu)return vu;mu=1;var e=Bu(),t=ju(),n=La(),r=ks()("species"),o=Array;return vu=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},vu}function zu(){if(bu)return yu;bu=1;var e=Hu();return yu=function(t,n){return new(e(t))(0===n?0:n)}}function $u(){if(Cu)return Eu;Cu=1;var e=Fi(),t=ks(),n=za(),r=t("species");return Eu=function(t){return n>=51||!e(function(){var e=[];return(e.constructor={})[r]=function(){return{foo:1}},1!==e[t](Boolean).foo})},Eu}var Uu,Vu,Wu={},Gu={};function qu(){if(Vu)return Uu;Vu=1;var e=Ru(),t=String;return Uu=function(n){if("Symbol"===e(n))throw new TypeError("Cannot convert a Symbol value to a string");return t(n)}}var Ku,Yu,Xu,Zu,Ju,Qu,el,tl,nl,rl,ol,il,al,sl,ul,ll,cl,dl,fl,pl={};function hl(){if(Yu)return Ku;Yu=1;var e=ku(),t=Math.max,n=Math.min;return Ku=function(r,o){var i=e(r);return i<0?t(i+o,0):n(i,o)},Ku}function gl(){if(Zu)return Xu;Zu=1;var e=_a(),t=hl(),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 Xu={includes:r(!0),indexOf:r(!1)}}function vl(){return Qu?Ju:(Qu=1,Ju={})}function ml(){if(tl)return el;tl=1;var e=_i(),t=Bs(),n=_a(),r=gl().indexOf,o=vl(),i=e([].push);return el=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},el}function yl(){return rl?nl:(rl=1,nl=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function bl(){if(il)return ol;il=1;var e=ml(),t=yl();return ol=Object.keys||function(n){return e(n,t)},ol}function El(){if(al)return pl;al=1;var e=Vi(),t=Su(),n=xu(),r=Au(),o=_a(),i=bl();return pl.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},pl}function Cl(){return ul?sl:(ul=1,sl=Ma()("document","documentElement"))}function Dl(){if(cl)return ll;cl=1;var e=Os(),t=Ts(),n=e("keys");return ll=function(e){return n[e]||(n[e]=t(e))}}function wl(){if(fl)return dl;fl=1;var e,t=Au(),n=El(),r=yl(),o=vl(),i=Cl(),a=Ps(),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,dl=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)},dl}var Sl,Al={};function xl(){if(Sl)return Al;Sl=1;var e=ml(),t=yl().concat("length","prototype");return Al.f=Object.getOwnPropertyNames||function(n){return e(n,t)},Al}var Ol,Nl,Bl,Tl={};function kl(){return Nl?Ol:(Nl=1,Ol=_i()([].slice))}function Fl(){if(Bl)return Tl;Bl=1;var e=Li(),t=_a(),n=xl().f,r=kl(),o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];return Tl.f=function(i){return o&&"Window"===e(i)?function(e){try{return n(e)}catch(e){return r(o)}}(i):n(t(i))},Tl}var Il,Pl,_l,Ll,Rl,Ml={};function jl(){return Il||(Il=1,Ml.f=Object.getOwnPropertySymbols),Ml}function Hl(){if(_l)return Pl;_l=1;var e=Ou();return Pl=function(t,n,r,o){return o&&o.enumerable?t[n]=r:e(t,n,r),t}}function zl(){if(Rl)return Ll;Rl=1;var e=xu();return Ll=function(t,n,r){return e.f(t,n,r)}}var $l,Ul,Vl,Wl,Gl,ql,Kl,Yl,Xl,Zl,Jl,Ql,ec,tc,nc,rc,oc={};function ic(){if($l)return oc;$l=1;var e=ks();return oc.f=e,oc}function ac(){if(Vl)return Ul;Vl=1;var e=Ra(),t=Bs(),n=ic(),r=xu().f;return Ul=function(o){var i=e.Symbol||(e.Symbol={});t(i,o)||r(i,o,{value:n.f(o)})}}function sc(){if(Gl)return Wl;Gl=1;var e=Wi(),t=Ma(),n=ks(),r=Hl();return Wl=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 uc(){if(Kl)return ql;Kl=1;var e=Lu(),t=Ru();return ql=e?{}.toString:function(){return"[object "+t(this)+"]"}}function lc(){if(Xl)return Yl;Xl=1;var e=Lu(),t=xu().f,n=Ou(),r=Bs(),o=uc(),i=ks()("toStringTag");return Yl=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 cc(){if(Jl)return Zl;Jl=1;var e=ki(),t=Mi(),n=e.WeakMap;return Zl=t(n)&&/native code/.test(String(n))}function dc(){if(ec)return Ql;ec=1;var e,t,n,r=cc(),o=ki(),i=La(),a=Ou(),s=Bs(),u=xs(),l=Dl(),c=vl(),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 Ql={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 fc(){if(nc)return tc;nc=1;var e=Ms(),t=_i(),n=Fa(),r=Ns(),o=Iu(),i=zu(),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),D=o(C),w=e(g,v),S=0,A=m||i,x=s?A(h,D):u||f?A(h,0):void 0;D>S;S++)if((p||S in C)&&(b=w(y=C[S],S,E),t))if(s)x[S]=b;else if(b)switch(t){case 3:return!0;case 5:return y;case 6:return S;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 tc={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 pc,hc,gc,vc={};function mc(){return hc?pc:(hc=1,pc=$a()&&!!Symbol.for&&!!Symbol.keyFor)}var yc,bc={};var Ec,Cc,Dc,wc={};function Sc(){if(Cc)return Ec;Cc=1;var e=_i(),t=Bu(),n=Mi(),r=Li(),o=qu(),i=e([].push);return Ec=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}}},Ec}var Ac,xc,Oc={};function Nc(){return xc||(xc=1,function(){if(rc)return Gu;rc=1;var e=Nu(),t=ki(),n=Wi(),r=_i(),o=Ss(),i=Vi(),a=$a(),s=Fi(),u=Bs(),l=ja(),c=Au(),d=_a(),f=Is(),p=qu(),h=ka(),g=wl(),v=bl(),m=xl(),y=Fl(),b=jl(),E=Ls(),C=xu(),D=El(),w=Ta(),S=Hl(),A=zl(),x=Os(),O=Dl(),N=vl(),B=Ts(),T=ks(),k=ic(),F=ac(),I=sc(),P=lc(),_=dc(),L=fc().forEach,R=O("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=w.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,R)&&e[R][r]&&(e[R][r]=!1),n=g(n,{enumerable:h(0,!1)})):(u(e,R)||Y(e,R,h(1,g(null))),e[R][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 L(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,R)&&this[R][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,R)&&n[R][r]||(o.enumerable=!0),o}},ce=function(e){var t=X(d(e)),n=[];return L(t,function(e){u(Q,e)||u(N,e)||J(n,e)}),n},de=function(e){var t=e===$,n=X(t?ee:d(e)),r=[];return L(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=B(e),o=function(e){var i=void 0===this?t:this;i===$&&n(o,ee,e),u(i,R)&&u(i[R],r)&&(i[R][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)},S(V=U[j],"toString",function(){return z(this).tag}),S(U,"withoutSetter",function(e){return ie(B(e),e)}),w.f=ue,C.f=ae,D.f=se,E.f=le,m.f=y.f=ce,b.f=de,k.f=function(e){return ie(T(e),e)},i&&(A(V,"description",{configurable:!0,get:function(){return z(this).description}}),o||S($,"propertyIsEnumerable",ue,{unsafe:!0}))),e({global:!0,constructor:!0,wrap:!0,forced:!a,sham:!a},{Symbol:U}),L(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}),I(),P(U,M),N[R]=!0}(),function(){if(gc)return vc;gc=1;var e=Nu(),t=Ma(),n=Bs(),r=qu(),o=Os(),i=mc(),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(yc)return bc;yc=1;var e=Nu(),t=Bs(),n=Va(),r=Wa(),o=Os(),i=mc(),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 wc;Dc=1;var e=Nu(),t=Ma(),n=Pi(),r=Wi(),o=_i(),i=Fi(),a=Mi(),s=Va(),u=kl(),l=Sc(),c=$a(),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))}),D=i(function(){return'"\\udf06\\ud834"'!==f("\udf06\ud834")||'"\\udead"'!==f("\udead")}),w=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)},S=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||D},{stringify:function(e,t,r){var o=u(arguments),i=n(C?w:f,null,o);return D&&"string"==typeof i?v(i,y,S):i}})}(),function(){if(Ac)return Oc;Ac=1;var e=Nu(),t=$a(),n=Fi(),r=jl(),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)):[]}})}()),Wu}var Bc,Tc={};function kc(){return Bc||(Bc=1,ac()("asyncDispose")),Tc}var Fc;var Ic,Pc={};function _c(){return Ic||(Ic=1,ac()("dispose")),Pc}var Lc;var Rc;var Mc,jc={};function Hc(){return Mc||(Mc=1,ac()("iterator")),jc}var zc;var $c;var Uc;var Vc;var Wc;var Gc;var qc,Kc={};var Yc,Xc={};var Zc;var Jc,Qc,ed,td={};function nd(){return ed?Qc:(ed=1,function(){if(Du)return Ti;Du=1;var e=Nu(),t=Fi(),n=Bu(),r=La(),o=Ns(),i=Iu(),a=Pu(),s=_u(),u=zu(),l=$u(),c=ks(),d=za(),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(),kc(),Fc||(Fc=1,ac()("asyncIterator")),_c(),Lc||(Lc=1,ac()("hasInstance")),Rc||(Rc=1,ac()("isConcatSpreadable")),Hc(),zc||(zc=1,ac()("match")),$c||($c=1,ac()("matchAll")),Uc||(Uc=1,ac()("replace")),Vc||(Vc=1,ac()("search")),Wc||(Wc=1,ac()("species")),Gc||(Gc=1,ac()("split")),function(){if(qc)return Kc;qc=1;var e=ac(),t=sc();e("toPrimitive"),t()}(),function(){if(Yc)return Xc;Yc=1;var e=Ma(),t=ac(),n=lc();t("toStringTag"),n(e("Symbol"),"Symbol")}(),Zc||(Zc=1,ac()("unscopables")),function(){if(Jc)return td;Jc=1;var e=ki();lc()(e.JSON,"JSON",!0)}(),Qc=Ra().Symbol)}var rd,od,id,ad,sd,ud,ld,cd,dd,fd,pd,hd,gd,vd,md,yd,bd,Ed,Cd,Dd,wd,Sd,Ad,xd,Od,Nd,Bd,Td,kd,Fd,Id,Pd,_d,Ld={};function Rd(){return od?rd:(od=1,rd=function(){})}function Md(){return ad?id:(ad=1,id={})}function jd(){if(ud)return sd;ud=1;var e=Vi(),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 sd={EXISTS:o,PROPER:i,CONFIGURABLE:a}}function Hd(){return cd||(cd=1,ld=!Fi()(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),ld}function zd(){if(fd)return dd;fd=1;var e=Bs(),t=Mi(),n=Ns(),r=Dl(),o=Hd(),i=r("IE_PROTO"),a=Object,s=a.prototype;return dd=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},dd}function $d(){if(hd)return pd;hd=1;var e,t,n,r=Fi(),o=Mi(),i=La(),a=wl(),s=zd(),u=Hl(),l=ks(),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}),pd={IteratorPrototype:e,BUGGY_SAFARI_ITERATORS:f}}function Ud(){if(vd)return gd;vd=1;var e=$d().IteratorPrototype,t=wl(),n=ka(),r=lc(),o=Md(),i=function(){return this};return gd=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 Vd(){if(yd)return md;yd=1;var e=_i(),t=Ga();return md=function(n,r,o){try{return e(t(Object.getOwnPropertyDescriptor(n,r)[o]))}catch(e){}}}function Wd(){if(Ed)return bd;Ed=1;var e=La();return bd=function(t){return e(t)||null===t}}function Gd(){if(Dd)return Cd;Dd=1;var e=Wd(),t=String,n=TypeError;return Cd=function(r){if(e(r))return r;throw new n("Can't set "+t(r)+" as a prototype")}}function qd(){if(Sd)return wd;Sd=1;var e=Vd(),t=La(),n=Pa(),r=Gd();return wd=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),wd}function Kd(){if(xd)return Ad;xd=1;var e=Nu(),t=Wi(),n=Ss(),r=jd(),o=Mi(),i=Ud(),a=zd(),s=qd(),u=lc(),l=Ou(),c=Hl(),d=ks(),f=Md(),p=$d(),h=r.PROPER,g=r.CONFIGURABLE,v=p.IteratorPrototype,m=p.BUGGY_SAFARI_ITERATORS,y=d("iterator"),b="keys",E="values",C="entries",D=function(){return this};return Ad=function(r,d,p,w,S,A,x){i(p,d,w);var O,N,B,T=function(e){if(e===S&&_)return _;if(!m&&e&&e in I)return I[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,I=r.prototype,P=I[y]||I["@@iterator"]||S&&I[S],_=!m&&P||T(S),L="Array"===d&&I.entries||P;if(L&&(O=a(L.call(new r)))!==Object.prototype&&O.next&&(n||a(O)===v||(s?s(O,v):o(O[y])||c(O,y,D)),u(O,k,!0,!0),n&&(f[k]=D)),h&&S===E&&P&&P.name!==E&&(!n&&g?l(I,"name",E):(F=!0,_=function(){return t(P,this)})),S)if(N={values:T(E),keys:A?_:T(b),entries:T(C)},x)for(B in N)(m||F||!(B in I))&&c(I,B,N[B]);else e({target:d,proto:!0,forced:m||F},N);return n&&!x||I[y]===_||c(I,y,_,{name:S}),f[d]=_,N}}function Yd(){return Nd?Od:(Nd=1,Od=function(e,t){return{value:e,done:t}})}function Xd(){if(Td)return Bd;Td=1;var e=_a(),t=Rd(),n=Md(),r=dc(),o=xu().f,i=Kd(),a=Yd(),s=Ss(),u=Vi(),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 Zd(){return Fd?kd:(Fd=1,kd={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 Jd(){if(Id)return Ld;Id=1,Xd();var e=Zd(),t=ki(),n=lc(),r=Md();for(var o in e)n(t[o],o),r[o]=r.Array;return Ld}function Qd(){if(_d)return Pd;_d=1;var e=nd();return Jd(),Pd=e}var ef,tf={};var nf;var rf;var of,af,sf;function uf(){if(sf)return af;sf=1;var e=Qd();return function(){if(ef)return tf;ef=1;var e=ks(),t=xu().f,n=e("metadata"),r=Function.prototype;void 0===r[n]&&t(r,n,{value:null})}(),nf||(nf=1,kc()),rf||(rf=1,_c()),of||(of=1,ac()("metadata")),af=e}var lf,cf,df;function ff(){if(cf)return lf;cf=1;var e=Ma(),t=_i(),n=e("Symbol"),r=n.keyFor,o=t(n.prototype.valueOf);return lf=n.isRegisteredSymbol||function(e){try{return void 0!==r(o(e))}catch(e){return!1}}}var pf,hf,gf;function vf(){if(hf)return pf;hf=1;for(var e=Os(),t=Ma(),n=_i(),r=Va(),o=ks(),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 pf=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},pf}var mf;var yf;var bf;var Ef;var Cf;var Df;var wf;var Sf,Af,xf,Of,Nf;function Bf(){if(xf)return Af;xf=1;var e=uf();return df||(df=1,Nu()({target:"Symbol",stat:!0},{isRegisteredSymbol:ff()})),gf||(gf=1,Nu()({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:vf()})),mf||(mf=1,ac()("customMatcher")),yf||(yf=1,ac()("observable")),bf||(bf=1,Nu()({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:ff()})),Ef||(Ef=1,Nu()({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:vf()})),Cf||(Cf=1,ac()("matcher")),Df||(Df=1,ac()("metadataKey")),wf||(wf=1,ac()("patternMatch")),Sf||(Sf=1,ac()("replaceAll")),Af=e}function Tf(){return Nf?Of:(Nf=1,Of=Bf())}var kf,Ff,If,Pf,_f,Lf,Rf,Mf,jf,Hf,zf,$f,Uf,Vf=b(Tf()),Wf={};function Gf(){if(Ff)return kf;Ff=1;var e=_i(),t=ku(),n=qu(),r=Pa(),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 kf={codeAt:s(!1),charAt:s(!0)}}function qf(){return _f?Pf:(_f=1,Xd(),function(){if(If)return Wf;If=1;var e=Gf().charAt,t=qu(),n=dc(),r=Kd(),o=Yd(),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))})}(),Hc(),Pf=ic().f("iterator"))}function Kf(){if(Rf)return Lf;Rf=1;var e=qf();return Jd(),Lf=e}function Yf(){return jf?Mf:(jf=1,Mf=Kf())}function Xf(){return zf?Hf:(zf=1,Hf=Yf())}function Zf(){return Uf?$f:(Uf=1,$f=Xf())}var Jf=b(Zf());function Qf(e){return Qf="function"==typeof Vf&&"symbol"==typeof Jf?function(e){return typeof e}:function(e){return e&&"function"==typeof Vf&&e.constructor===Vf&&e!==Vf.prototype?"symbol":typeof e},Qf(e)}var ep,tp={};if(function(){if(ep)return tp;ep=1;var e=fr(),t=C(),n=N(),r=gn().f,o=Ae();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":Qf(global))){var np=Object.getOwnPropertyDescriptor(global,"window");global.window&&!np.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[]})}
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
- */function np(t){return"[object Object]"===Object.prototype.toString.call(t)}function op(t){var e,r;return!1!==np(t)&&(void 0===(e=t.constructor)||!1!==np(r=e.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))}function ip(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map(function(t){return"'"+t+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function up(t){return!!t&&!!t[Gp]}function ap(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 r=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return r===Object||"function"==typeof r&&Function.toString.call(r)===Wp}(t)||Array.isArray(t)||!!t[Vp]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Vp])||dp(t)||pp(t))}function sp(t,e,r){void 0===r&&(r=!1),0===cp(t)?(r?Object.keys:qp)(t).forEach(function(n){r&&"symbol"==typeof n||e(n,t[n],t)}):t.forEach(function(r,n){return e(n,r,t)})}function cp(t){var e=t[Gp];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:dp(t)?2:pp(t)?3:0}function lp(t,e){return 2===cp(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function fp(t,e,r){var n=cp(t);2===n?t.set(e,r):3===n?t.add(r):t[e]=r}function dp(t){return zp&&t instanceof Map}function pp(t){return Hp&&t instanceof Set}function hp(t){return t.o||t.t}function vp(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Kp(t);delete e[Gp];for(var r=qp(e),n=0;n<r.length;n++){var o=r[n],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 gp(t,e){return void 0===e&&(e=!1),mp(t)||up(t)||!ap(t)||(cp(t)>1&&(t.set=t.add=t.clear=t.delete=yp),Object.freeze(t),e&&sp(t,function(t,e){return gp(e,!0)},!0)),t}function yp(){ip(2)}function mp(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function bp(t){var e=Yp[t];return e||ip(18,t),e}function Ep(){return jp}function wp(t,e){e&&(bp("Patches"),t.u=[],t.s=[],t.v=e)}function Sp(t){Cp(t),t.p.forEach(Op),t.p=null}function Cp(t){t===jp&&(jp=t.l)}function Dp(t){return jp={p:[],l:jp,h:t,m:!0,_:0}}function Op(t){var e=t[Gp];0===e.i||1===e.i?e.j():e.g=!0}function Ap(t,e){e._=e.p.length;var r=e.p[0],n=void 0!==t&&t!==r;return e.h.O||bp("ES5").S(e,t,n),n?(r[Gp].P&&(Sp(e),ip(4)),ap(t)&&(t=xp(e,t),e.l||Np(e,t)),e.u&&bp("Patches").M(r[Gp].t,t,e.u,e.s)):t=xp(e,r,[]),Sp(e),e.u&&e.v(e.u,e.s),t!==Up?t:void 0}function xp(t,e,r){if(mp(e))return e;var n=e[Gp];if(!n)return sp(e,function(o,i){return Tp(t,n,e,o,i,r)},!0),e;if(n.A!==t)return e;if(!n.P)return Np(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=4===n.i||5===n.i?n.o=vp(n.k):n.o,i=o,u=!1;3===n.i&&(i=new Set(o),o.clear(),u=!0),sp(i,function(e,i){return Tp(t,n,o,e,i,r,u)}),Np(t,o,!1),r&&t.u&&bp("Patches").N(n,r,t.u,t.s)}return n.o}function Tp(t,e,r,n,o,i,u){if(up(o)){var a=xp(t,o,i&&e&&3!==e.i&&!lp(e.R,n)?i.concat(n):void 0);if(fp(r,n,a),!up(a))return;t.m=!1}else u&&r.add(o);if(ap(o)&&!mp(o)){if(!t.h.D&&t._<1)return;xp(t,o),e&&e.A.l||Np(t,o)}}function Np(t,e,r){void 0===r&&(r=!1),!t.l&&t.h.D&&t.m&&gp(e,r)}function kp(t,e){var r=t[Gp];return(r?hp(r):t)[e]}function Pp(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Object.getPrototypeOf(r)}}function Bp(t){t.P||(t.P=!0,t.l&&Bp(t.l))}function Ip(t){t.o||(t.o=vp(t.t))}function Fp(t,e,r){var n=dp(e)?bp("MapSet").F(e,r):pp(e)?bp("MapSet").T(e,r):t.O?function(t,e){var r=Array.isArray(t),n={i:r?1:0,A:e?e.A:Ep(),P:!1,I:!1,R:{},l:e,t:t,k:null,o:null,j:null,C:!1},o=n,i=Xp;r&&(o=[n],i=Jp);var u=Proxy.revocable(o,i),a=u.revoke,s=u.proxy;return n.k=s,n.j=a,s}(e,r):bp("ES5").J(e,r);return(r?r.A:Ep()).p.push(n),n}function Rp(t){return up(t)||ip(22,t),function t(e){if(!ap(e))return e;var r,n=e[Gp],o=cp(e);if(n){if(!n.P&&(n.i<4||!bp("ES5").K(n)))return n.t;n.I=!0,r=Lp(e,o),n.I=!1}else r=Lp(e,o);return sp(r,function(e,o){n&&function(t,e){return 2===cp(t)?t.get(e):t[e]}(n.t,e)===o||fp(r,e,t(o))}),3===o?new Set(r):r}(t)}function Lp(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return vp(t)}var _p,jp,Mp="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),zp="undefined"!=typeof Map,Hp="undefined"!=typeof Set,$p="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Up=Mp?Symbol.for("immer-nothing"):((_p={})["immer-nothing"]=!0,_p),Vp=Mp?Symbol.for("immer-draftable"):"__$immer_draftable",Gp=Mp?Symbol.for("immer-state"):"__$immer_state",Wp=""+Object.prototype.constructor,qp="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Kp=Object.getOwnPropertyDescriptors||function(t){var e={};return qp(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},Yp={},Xp={get:function(t,e){if(e===Gp)return t;var r=hp(t);if(!lp(r,e))return function(t,e,r){var n,o=Pp(e,r);return o?"value"in o?o.value:null===(n=o.get)||void 0===n?void 0:n.call(t.k):void 0}(t,r,e);var n=r[e];return t.I||!ap(n)?n:n===kp(t.t,e)?(Ip(t),t.o[e]=Fp(t.A.h,n,t)):n},has:function(t,e){return e in hp(t)},ownKeys:function(t){return Reflect.ownKeys(hp(t))},set:function(t,e,r){var n=Pp(hp(t),e);if(null==n?void 0:n.set)return n.set.call(t.k,r),!0;if(!t.P){var o=kp(hp(t),e),i=null==o?void 0:o[Gp];if(i&&i.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}(r,o)&&(void 0!==r||lp(t.t,e)))return!0;Ip(t),Bp(t)}return t.o[e]===r&&(void 0!==r||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==kp(t.t,e)||e in t.t?(t.R[e]=!1,Ip(t),Bp(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=hp(t),n=Reflect.getOwnPropertyDescriptor(r,e);return n?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:n.enumerable,value:r[e]}:n},defineProperty:function(){ip(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){ip(12)}},Jp={};sp(Xp,function(t,e){Jp[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Jp.deleteProperty=function(t,e){return Jp.set.call(this,t,e,void 0)},Jp.set=function(t,e,r){return Xp.set.call(this,t[0],e,r,t[0])};var Zp=function(){function t(t){var e=this;this.O=$p,this.D=!0,this.produce=function(t,r,n){if("function"==typeof t&&"function"!=typeof r){var o=r;r=t;var i=e;return function(t){var e=this;void 0===t&&(t=o);for(var n=arguments.length,u=Array(n>1?n-1:0),a=1;a<n;a++)u[a-1]=arguments[a];return i.produce(t,function(t){var n;return(n=r).call.apply(n,[e,t].concat(u))})}}var u;if("function"!=typeof r&&ip(6),void 0!==n&&"function"!=typeof n&&ip(7),ap(t)){var a=Dp(e),s=Fp(e,t,void 0),c=!0;try{u=r(s),c=!1}finally{c?Sp(a):Cp(a)}return"undefined"!=typeof Promise&&u instanceof Promise?u.then(function(t){return wp(a,n),Ap(t,a)},function(t){throw Sp(a),t}):(wp(a,n),Ap(u,a))}if(!t||"object"!=typeof t){if(void 0===(u=r(t))&&(u=t),u===Up&&(u=void 0),e.D&&gp(u,!0),n){var l=[],f=[];bp("Patches").M(t,u,l,f),n(l,f)}return u}ip(21,t)},this.produceWithPatches=function(t,r){if("function"==typeof t)return function(r){for(var n=arguments.length,o=Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return e.produceWithPatches(r,function(e){return t.apply(void 0,[e].concat(o))})};var n,o,i=e.produce(t,r,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==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){ap(t)||ip(8),up(t)&&(t=Rp(t));var e=Dp(this),r=Fp(this,t,void 0);return r[Gp].C=!0,Cp(e),r},e.finishDraft=function(t,e){var r=(t&&t[Gp]).A;return wp(r,e),Ap(void 0,r)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!$p&&ip(20),this.O=t},e.applyPatches=function(t,e){var r;for(r=e.length-1;r>=0;r--){var n=e[r];if(0===n.path.length&&"replace"===n.op){t=n.value;break}}r>-1&&(e=e.slice(r+1));var o=bp("Patches").$;return up(t)?o(t,e):this.produce(t,function(t){return o(t,e)})},t}(),Qp=new Zp,th=Qp.produce;Qp.produceWithPatches.bind(Qp),Qp.setAutoFreeze.bind(Qp),Qp.setUseProxies.bind(Qp),Qp.applyPatches.bind(Qp);var eh=Qp.createDraft.bind(Qp),rh=Qp.finishDraft.bind(Qp);function nh(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var oh=new WeakMap,ih=new WeakMap,uh=new WeakMap,ah=new WeakMap,sh=new WeakMap,ch=new WeakMap,lh=new WeakMap;function fh(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function dh(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?fh(Object(r),!0).forEach(function(e){nh(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):fh(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function ph(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var hh,vh=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=!e,n=e?wh(t):t,o=hh.None,i=hh.None,u=0,a=null;for(var s of n){var c=s.codePointAt(0);if(!c)break;var l=Ih(s,c);if([o,i]=r?[i,l]:[l,o],Fh(o,hh.ZWJ)&&Fh(i,hh.ExtPict)&&!jh(r?t.substring(0,u):t.substring(0,t.length-u)))break;if(Fh(o,hh.RI)&&Fh(i,hh.RI)&&!(a=null!==a?!a:!!r||zh(t.substring(0,t.length-u))))break;if(o!==hh.None&&i!==hh.None&&Lh(o,i))break;u+=s.length}return u||1},gh=/\s/,yh=/[\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]/,mh=/['\u2018\u2019]/,bh=(t,e,r)=>{if(r){var n=t.length-e;return[t.slice(n,t.length),t.slice(0,n)]}return[t.slice(0,e),t.slice(e)]},Eh=function t(e,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(gh.test(e))return!1;if(mh.test(e)){var o=vh(r,n),[i,u]=bh(r,o,n);if(t(i,u,n))return!0}return!yh.test(e)},wh=function*(t){for(var e=t.length-1,r=0;r<t.length;r++){var n=t.charAt(e-r);if(Ch(n.charCodeAt(0))){var o=t.charAt(e-r-1);if(Sh(o.charCodeAt(0))){yield o+n,r++;continue}}yield n}},Sh=t=>t>=55296&&t<=56319,Ch=t=>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"}(hh||(hh={}));var Dh=/^(?:[\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])$/,Oh=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,Ah=/^(?:[\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])$/,xh=/^[\u1100-\u115F\uA960-\uA97C]$/,Th=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,Nh=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,kh=/^[\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]$/,Ph=/^[\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]$/,Bh=/^(?:[\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])$/,Ih=(t,e)=>{var r=hh.Any;return-1!==t.search(Dh)&&(r|=hh.Extend),8205===e&&(r|=hh.ZWJ),e>=127462&&e<=127487&&(r|=hh.RI),-1!==t.search(Oh)&&(r|=hh.Prepend),-1!==t.search(Ah)&&(r|=hh.SpacingMark),-1!==t.search(xh)&&(r|=hh.L),-1!==t.search(Th)&&(r|=hh.V),-1!==t.search(Nh)&&(r|=hh.T),-1!==t.search(kh)&&(r|=hh.LV),-1!==t.search(Ph)&&(r|=hh.LVT),-1!==t.search(Bh)&&(r|=hh.ExtPict),r};function Fh(t,e){return 0!==(t&e)}var Rh=[[hh.L,hh.L|hh.V|hh.LV|hh.LVT],[hh.LV|hh.V,hh.V|hh.T],[hh.LVT|hh.T,hh.T],[hh.Any,hh.Extend|hh.ZWJ],[hh.Any,hh.SpacingMark],[hh.Prepend,hh.Any],[hh.ZWJ,hh.ExtPict],[hh.RI,hh.RI]];function Lh(t,e){return-1===Rh.findIndex(r=>Fh(t,r[0])&&Fh(e,r[1]))}var _h=/(?:[\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$/,jh=t=>-1!==t.search(_h),Mh=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,zh=t=>{var e=t.match(Mh);return null!==e&&e[0].length/2%2==1},Hh=t=>op(t)&&tv.isNodeList(t.children)&&!Kh.isEditor(t),$h={isAncestor:t=>op(t)&&tv.isNodeList(t.children),isElement:Hh,isElementList:t=>Array.isArray(t)&&t.every(t=>$h.isElement(t)),isElementProps:t=>void 0!==t.children,isElementType:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"type";return Hh(t)&&t[r]===e},matches(t,e){for(var r in e)if("children"!==r&&t[r]!==e[r])return!1;return!0}},Uh=["text"],Vh=["text"];function Gh(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function Wh(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Gh(Object(r),!0).forEach(function(e){nh(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Gh(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}var qh=new WeakMap,Kh={above(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{voids:r=!1,mode:n="lowest",at:o=t.selection,match:i}=e;if(o){var u=Kh.path(t,o),a="lowest"===n;for(var[s,c]of Kh.levels(t,{at:u,voids:r,match:i,reverse:a}))if(!wv.isText(s)&&!ov.equals(u,c))return[s,c]}},addMark(t,e,r){t.addMark(e,r)},after(t,e){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o={anchor:Kh.point(t,e,{edge:"end"}),focus:Kh.end(t,[])},{distance:i=1}=n,u=0;for(var a of Kh.positions(t,Wh(Wh({},n),{},{at:o}))){if(u>i)break;0!==u&&(r=a),u++}return r},before(t,e){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o={anchor:Kh.start(t,[]),focus:Kh.point(t,e,{edge:"start"})},{distance:i=1}=n,u=0;for(var a of Kh.positions(t,Wh(Wh({},n),{},{at:o,reverse:!0}))){if(u>i)break;0!==u&&(r=a),u++}return r},deleteBackward(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:r="character"}=e;t.deleteBackward(r)},deleteForward(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:r="character"}=e;t.deleteForward(r)},deleteFragment(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{direction:r="forward"}=e;t.deleteFragment(r)},edges:(t,e)=>[Kh.start(t,e),Kh.end(t,e)],end:(t,e)=>Kh.point(t,e,{edge:"end"}),first(t,e){var r=Kh.path(t,e,{edge:"start"});return Kh.node(t,r)},fragment(t,e){var r=Kh.range(t,e);return tv.fragment(t,r)},hasBlocks:(t,e)=>e.children.some(e=>Kh.isBlock(t,e)),hasInlines:(t,e)=>e.children.some(e=>wv.isText(e)||Kh.isInline(t,e)),hasTexts:(t,e)=>e.children.every(t=>wv.isText(t)),insertBreak(t){t.insertBreak()},insertSoftBreak(t){t.insertSoftBreak()},insertFragment(t,e){t.insertFragment(e)},insertNode(t,e){t.insertNode(e)},insertText(t,e){t.insertText(e)},isBlock:(t,e)=>$h.isElement(e)&&!t.isInline(e),isEditor(t){var e=qh.get(t);if(void 0!==e)return e;if(!op(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||op(t.marks))&&(null===t.selection||dv.isRange(t.selection))&&tv.isNodeList(t.children)&&nv.isOperationList(t.operations);return qh.set(t,r),r},isEnd(t,e,r){var n=Kh.end(t,r);return sv.equals(e,n)},isEdge:(t,e,r)=>Kh.isStart(t,e,r)||Kh.isEnd(t,e,r),isEmpty(t,e){var{children:r}=e,[n]=r;return 0===r.length||1===r.length&&wv.isText(n)&&""===n.text&&!t.isVoid(e)},isInline:(t,e)=>$h.isElement(e)&&t.isInline(e),isNormalizing(t){var e=ah.get(t);return void 0===e||e},isStart(t,e,r){if(0!==e.offset)return!1;var n=Kh.start(t,r);return sv.equals(e,n)},isVoid:(t,e)=>$h.isElement(e)&&t.isVoid(e),last(t,e){var r=Kh.path(t,e,{edge:"end"});return Kh.node(t,r)},leaf(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=Kh.path(t,e,r);return[tv.leaf(t,n),n]},*levels(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:r=t.selection,reverse:n=!1,voids:o=!1}=e,{match:i}=e;if(null==i&&(i=()=>!0),r){var u=[],a=Kh.path(t,r);for(var[s,c]of tv.levels(t,a))if(i(s,c)&&(u.push([s,c]),!o&&Kh.isVoid(t,s)))break;n&&u.reverse(),yield*u}},marks(t){var{marks:e,selection:r}=t;if(!r)return null;if(e)return e;if(dv.isExpanded(r)){var[n]=Kh.nodes(t,{match:wv.isText});if(n){var[o]=n;return ph(o,Uh)}return{}}var{anchor:i}=r,{path:u}=i,[a]=Kh.leaf(t,u);if(0===i.offset){var s=Kh.previous(t,{at:u,match:wv.isText}),c=Kh.above(t,{match:e=>Kh.isBlock(t,e)});if(s&&c){var[l,f]=s,[,d]=c;ov.isAncestor(d,f)&&(a=l)}}return ph(a,Vh)},next(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:r="lowest",voids:n=!1}=e,{match:o,at:i=t.selection}=e;if(i){var u=Kh.after(t,i,{voids:n});if(u){var[,a]=Kh.last(t,[]),s=[u.path,a];if(ov.isPath(i)&&0===i.length)throw new Error("Cannot get the next node from the root node!");if(null==o)if(ov.isPath(i)){var[c]=Kh.parent(t,i);o=t=>c.children.includes(t)}else o=()=>!0;var[l]=Kh.nodes(t,{at:s,match:o,mode:r,voids:n});return l}}},node(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=Kh.path(t,e,r);return[tv.get(t,n),n]},*nodes(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:r=t.selection,mode:n="all",universal:o=!1,reverse:i=!1,voids:u=!1}=e,{match:a}=e;if(a||(a=()=>!0),r){var s,c;if(Xh.isSpan(r))s=r[0],c=r[1];else{var l=Kh.path(t,r,{edge:"start"}),f=Kh.path(t,r,{edge:"end"});s=i?f:l,c=i?l:f}var d,p=tv.nodes(t,{reverse:i,from:s,to:c,pass:e=>{var[r]=e;return!u&&Kh.isVoid(t,r)}}),h=[];for(var[v,g]of p){var y=d&&0===ov.compare(g,d[1]);if("highest"!==n||!y)if(a(v,g))if("lowest"===n&&y)d=[v,g];else{var m="lowest"===n?d:[v,g];m&&(o?h.push(m):yield m),d=[v,g]}else if(o&&!y&&wv.isText(v))return}"lowest"===n&&d&&(o?h.push(d):yield d),o&&(yield*h)}},normalize(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{force:r=!1}=e,n=t=>oh.get(t)||[],o=t=>{var e=n(t).pop(),r=e.join(",");return(t=>ih.get(t)||new Set)(t).delete(r),e};if(Kh.isNormalizing(t)){if(r){var i=Array.from(tv.nodes(t),t=>{var[,e]=t;return e}),u=new Set(i.map(t=>t.join(",")));oh.set(t,i),ih.set(t,u)}0!==n(t).length&&Kh.withoutNormalizing(t,()=>{for(var e of n(t))if(tv.has(t,e)){var r=Kh.node(t,e),[i,u]=r;$h.isElement(i)&&0===i.children.length&&t.normalizeNode(r)}for(var a=42*n(t).length,s=0;0!==n(t).length;){if(s>a)throw new Error("\n Could not completely normalize the editor after ".concat(a," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.\n "));var c=o(t);if(tv.has(t,c)){var l=Kh.node(t,c);t.normalizeNode(l)}s++}})}},parent(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=Kh.path(t,e,r),o=ov.parent(n);return Kh.node(t,o)},path(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{depth:n,edge:o}=r;if(ov.isPath(e))if("start"===o){var[,i]=tv.first(t,e);e=i}else if("end"===o){var[,u]=tv.last(t,e);e=u}return dv.isRange(e)&&(e="start"===o?dv.start(e):"end"===o?dv.end(e):ov.common(e.anchor.path,e.focus.path)),sv.isPoint(e)&&(e=e.path),null!=n&&(e=e.slice(0,n)),e},hasPath:(t,e)=>tv.has(t,e),pathRef(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:n="forward"}=r,o={current:e,affinity:n,unref(){var{current:e}=o;return Kh.pathRefs(t).delete(o),o.current=null,e}};return Kh.pathRefs(t).add(o),o},pathRefs(t){var e=sh.get(t);return e||(e=new Set,sh.set(t,e)),e},point(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{edge:n="start"}=r;if(ov.isPath(e)){var o;if("end"===n){var[,i]=tv.last(t,e);o=i}else{var[,u]=tv.first(t,e);o=u}var a=tv.get(t,o);if(!wv.isText(a))throw new Error("Cannot get the ".concat(n," point in the node at path [").concat(e,"] because it has no ").concat(n," text node."));return{path:o,offset:"end"===n?a.text.length:0}}if(dv.isRange(e)){var[s,c]=dv.edges(e);return"start"===n?s:c}return e},pointRef(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:n="forward"}=r,o={current:e,affinity:n,unref(){var{current:e}=o;return Kh.pointRefs(t).delete(o),o.current=null,e}};return Kh.pointRefs(t).add(o),o},pointRefs(t){var e=ch.get(t);return e||(e=new Set,ch.set(t,e)),e},*positions(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:r=t.selection,unit:n="offset",reverse:o=!1,voids:i=!1}=e;if(r){var u=Kh.range(t,r),[a,s]=dv.edges(u),c=o?s:a,l=!1,f="",d=0,p=0,h=0;for(var[v,g]of Kh.nodes(t,{at:r,reverse:o,voids:i})){if($h.isElement(v)){if(!i&&t.isVoid(v)){yield Kh.start(t,g);continue}if(t.isInline(v))continue;if(Kh.hasInlines(t,v)){var y=ov.isAncestor(g,s.path)?s:Kh.end(t,g),m=ov.isAncestor(g,a.path)?a:Kh.start(t,g);f=Kh.string(t,{anchor:m,focus:y},{voids:i}),l=!0}}if(wv.isText(v)){var b=ov.equals(g,c.path);for(b?(p=o?c.offset:v.text.length-c.offset,h=c.offset):(p=v.text.length,h=o?p:0),(b||l||"offset"===n)&&(yield{path:g,offset:h},l=!1);;){if(0===d){if(""===f)break;d=E(f,n,o),f=bh(f,d,o)[1]}if(h=o?h-d:h+d,(p-=d)<0){d=-p;break}d=0,yield{path:g,offset:h}}}}}function E(t,e,r){return"character"===e?vh(t,r):"word"===e?function(t){for(var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=0,n=!1;t.length>0;){var o=vh(t,e),[i,u]=bh(t,o,e);if(Eh(i,u,e))n=!0,r+=o;else{if(n)break;r+=o}t=u}return r}(t,r):"line"===e||"block"===e?t.length:1}},previous(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:r="lowest",voids:n=!1}=e,{match:o,at:i=t.selection}=e;if(i){var u=Kh.before(t,i,{voids:n});if(u){var[,a]=Kh.first(t,[]),s=[u.path,a];if(ov.isPath(i)&&0===i.length)throw new Error("Cannot get the previous node from the root node!");if(null==o)if(ov.isPath(i)){var[c]=Kh.parent(t,i);o=t=>c.children.includes(t)}else o=()=>!0;var[l]=Kh.nodes(t,{reverse:!0,at:s,match:o,mode:r,voids:n});return l}}},range:(t,e,r)=>dv.isRange(e)&&!r?e:{anchor:Kh.start(t,e),focus:Kh.end(t,r||e)},rangeRef(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:n="forward"}=r,o={current:e,affinity:n,unref(){var{current:e}=o;return Kh.rangeRefs(t).delete(o),o.current=null,e}};return Kh.rangeRefs(t).add(o),o},rangeRefs(t){var e=lh.get(t);return e||(e=new Set,lh.set(t,e)),e},removeMark(t,e){t.removeMark(e)},setNormalizing(t,e){ah.set(t,e)},start:(t,e)=>Kh.point(t,e,{edge:"start"}),string(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:n=!1}=r,o=Kh.range(t,e),[i,u]=dv.edges(o),a="";for(var[s,c]of Kh.nodes(t,{at:o,match:wv.isText,voids:n})){var l=s.text;ov.equals(c,u.path)&&(l=l.slice(0,u.offset)),ov.equals(c,i.path)&&(l=l.slice(i.offset)),a+=l}return a},unhangRange(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:n=!1}=r,[o,i]=dv.edges(e);if(0!==o.offset||0!==i.offset||dv.isCollapsed(e))return e;var u=Kh.above(t,{at:i,match:e=>Kh.isBlock(t,e)}),a=u?u[1]:[],s={anchor:Kh.start(t,o),focus:i},c=!0;for(var[l,f]of Kh.nodes(t,{at:s,match:wv.isText,reverse:!0,voids:n}))if(c)c=!1;else if(""!==l.text||ov.isBefore(f,a)){i={path:f,offset:l.text.length};break}return{anchor:o,focus:i}},void(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Kh.above(t,Wh(Wh({},e),{},{match:e=>Kh.isVoid(t,e)}))},withoutNormalizing(t,e){var r=Kh.isNormalizing(t);Kh.setNormalizing(t,!1);try{e()}finally{Kh.setNormalizing(t,r)}Kh.normalize(t)}},Yh={isLocation:t=>ov.isPath(t)||sv.isPoint(t)||dv.isRange(t)},Xh={isSpan:t=>Array.isArray(t)&&2===t.length&&t.every(ov.isPath)},Jh=["children"],Zh=["text"],Qh=new WeakMap,tv={ancestor(t,e){var r=tv.get(t,e);if(wv.isText(r))throw new Error("Cannot get the ancestor node at path [".concat(e,"] because it refers to a text node instead: ").concat(vv.stringify(r)));return r},*ancestors(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var n of ov.ancestors(e,r)){var o=[tv.ancestor(t,n),n];yield o}},child(t,e){if(wv.isText(t))throw new Error("Cannot get the child of a text node: ".concat(vv.stringify(t)));var r=t.children[e];if(null==r)throw new Error("Cannot get child at index `".concat(e,"` in node: ").concat(vv.stringify(t)));return r},*children(t,e){for(var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{reverse:n=!1}=r,o=tv.ancestor(t,e),{children:i}=o,u=n?i.length-1:0;n?u>=0:u<i.length;){var a=tv.child(o,u),s=e.concat(u);yield[a,s],u=n?u-1:u+1}},common(t,e,r){var n=ov.common(e,r);return[tv.get(t,n),n]},descendant(t,e){var r=tv.get(t,e);if(Kh.isEditor(r))throw new Error("Cannot get the descendant node at path [".concat(e,"] because it refers to the root editor node instead: ").concat(vv.stringify(r)));return r},*descendants(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[r,n]of tv.nodes(t,e))0!==n.length&&(yield[r,n])},*elements(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[r,n]of tv.nodes(t,e))$h.isElement(r)&&(yield[r,n])},extractProps:t=>$h.isAncestor(t)?ph(t,Jh):ph(t,Zh),first(t,e){for(var r=e.slice(),n=tv.get(t,r);n&&!wv.isText(n)&&0!==n.children.length;)n=n.children[0],r.push(0);return[n,r]},fragment(t,e){if(wv.isText(t))throw new Error("Cannot get a fragment starting from a root text node: ".concat(vv.stringify(t)));var r=th({children:t.children},t=>{var[r,n]=dv.edges(e),o=tv.nodes(t,{reverse:!0,pass:t=>{var[,r]=t;return!dv.includes(e,r)}});for(var[,i]of o){if(!dv.includes(e,i)){var u=tv.parent(t,i),a=i[i.length-1];u.children.splice(a,1)}if(ov.equals(i,n.path)){var s=tv.leaf(t,i);s.text=s.text.slice(0,n.offset)}if(ov.equals(i,r.path)){var c=tv.leaf(t,i);c.text=c.text.slice(r.offset)}}Kh.isEditor(t)&&(t.selection=null)});return r.children},get(t,e){for(var r=t,n=0;n<e.length;n++){var o=e[n];if(wv.isText(r)||!r.children[o])throw new Error("Cannot find a descendant at path [".concat(e,"] in node: ").concat(vv.stringify(t)));r=r.children[o]}return r},has(t,e){for(var r=t,n=0;n<e.length;n++){var o=e[n];if(wv.isText(r)||!r.children[o])return!1;r=r.children[o]}return!0},isNode:t=>wv.isText(t)||$h.isElement(t)||Kh.isEditor(t),isNodeList(t){if(!Array.isArray(t))return!1;var e=Qh.get(t);if(void 0!==e)return e;var r=t.every(t=>tv.isNode(t));return Qh.set(t,r),r},last(t,e){for(var r=e.slice(),n=tv.get(t,r);n&&!wv.isText(n)&&0!==n.children.length;){var o=n.children.length-1;n=n.children[o],r.push(o)}return[n,r]},leaf(t,e){var r=tv.get(t,e);if(!wv.isText(r))throw new Error("Cannot get the leaf node at path [".concat(e,"] because it refers to a non-leaf node: ").concat(vv.stringify(r)));return r},*levels(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var n of ov.levels(e,r)){var o=tv.get(t,n);yield[o,n]}},matches:(t,e)=>$h.isElement(t)&&$h.isElementProps(e)&&$h.matches(t,e)||wv.isText(t)&&wv.isTextProps(e)&&wv.matches(t,e),*nodes(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{pass:r,reverse:n=!1}=e,{from:o=[],to:i}=e,u=new Set,a=[],s=t;!i||!(n?ov.isBefore(a,i):ov.isAfter(a,i));)if(u.has(s)||(yield[s,a]),u.has(s)||wv.isText(s)||0===s.children.length||null!=r&&!1!==r([s,a])){if(0===a.length)break;if(!n){var c=ov.next(a);if(tv.has(t,c)){a=c,s=tv.get(t,a);continue}}if(n&&0!==a[a.length-1])a=ov.previous(a),s=tv.get(t,a);else a=ov.parent(a),s=tv.get(t,a),u.add(s)}else{u.add(s);var l=n?s.children.length-1:0;ov.isAncestor(a,o)&&(l=o[a.length]),a=a.concat(l),s=tv.get(t,a)}},parent(t,e){var r=ov.parent(e),n=tv.get(t,r);if(wv.isText(n))throw new Error("Cannot get the parent of path [".concat(e,"] because it does not exist in the root."));return n},string:t=>wv.isText(t)?t.text:t.children.map(tv.string).join(""),*texts(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[r,n]of tv.nodes(t,e))wv.isText(r)&&(yield[r,n])}};function ev(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function rv(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ev(Object(r),!0).forEach(function(e){nh(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ev(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}var nv={isNodeOperation:t=>nv.isOperation(t)&&t.type.endsWith("_node"),isOperation(t){if(!op(t))return!1;switch(t.type){case"insert_node":case"remove_node":return ov.isPath(t.path)&&tv.isNode(t.node);case"insert_text":case"remove_text":return"number"==typeof t.offset&&"string"==typeof t.text&&ov.isPath(t.path);case"merge_node":return"number"==typeof t.position&&ov.isPath(t.path)&&op(t.properties);case"move_node":return ov.isPath(t.path)&&ov.isPath(t.newPath);case"set_node":return ov.isPath(t.path)&&op(t.properties)&&op(t.newProperties);case"set_selection":return null===t.properties&&dv.isRange(t.newProperties)||null===t.newProperties&&dv.isRange(t.properties)||op(t.properties)&&op(t.newProperties);case"split_node":return ov.isPath(t.path)&&"number"==typeof t.position&&op(t.properties);default:return!1}},isOperationList:t=>Array.isArray(t)&&t.every(t=>nv.isOperation(t)),isSelectionOperation:t=>nv.isOperation(t)&&t.type.endsWith("_selection"),isTextOperation:t=>nv.isOperation(t)&&t.type.endsWith("_text"),inverse(t){switch(t.type){case"insert_node":return rv(rv({},t),{},{type:"remove_node"});case"insert_text":return rv(rv({},t),{},{type:"remove_text"});case"merge_node":return rv(rv({},t),{},{type:"split_node",path:ov.previous(t.path)});case"move_node":var{newPath:e,path:r}=t;if(ov.equals(e,r))return t;if(ov.isSibling(r,e))return rv(rv({},t),{},{path:e,newPath:r});var n=ov.transform(r,t),o=ov.transform(ov.next(r),t);return rv(rv({},t),{},{path:n,newPath:o});case"remove_node":return rv(rv({},t),{},{type:"insert_node"});case"remove_text":return rv(rv({},t),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:u}=t;return rv(rv({},t),{},{properties:u,newProperties:i});case"set_selection":var{properties:a,newProperties:s}=t;return rv(rv({},t),{},null==a?{properties:s,newProperties:null}:null==s?{properties:null,newProperties:a}:{properties:s,newProperties:a});case"split_node":return rv(rv({},t),{},{type:"merge_node",path:ov.next(t.path)})}}},ov={ancestors(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:r=!1}=e,n=ov.levels(t,e);return n=r?n.slice(1):n.slice(0,-1)},common(t,e){for(var r=[],n=0;n<t.length&&n<e.length;n++){var o=t[n];if(o!==e[n])break;r.push(o)}return r},compare(t,e){for(var r=Math.min(t.length,e.length),n=0;n<r;n++){if(t[n]<e[n])return-1;if(t[n]>e[n])return 1}return 0},endsAfter(t,e){var r=t.length-1,n=t.slice(0,r),o=e.slice(0,r),i=t[r],u=e[r];return ov.equals(n,o)&&i>u},endsAt(t,e){var r=t.length,n=t.slice(0,r),o=e.slice(0,r);return ov.equals(n,o)},endsBefore(t,e){var r=t.length-1,n=t.slice(0,r),o=e.slice(0,r),i=t[r],u=e[r];return ov.equals(n,o)&&i<u},equals:(t,e)=>t.length===e.length&&t.every((t,r)=>t===e[r]),hasPrevious:t=>t[t.length-1]>0,isAfter:(t,e)=>1===ov.compare(t,e),isAncestor:(t,e)=>t.length<e.length&&0===ov.compare(t,e),isBefore:(t,e)=>-1===ov.compare(t,e),isChild:(t,e)=>t.length===e.length+1&&0===ov.compare(t,e),isCommon:(t,e)=>t.length<=e.length&&0===ov.compare(t,e),isDescendant:(t,e)=>t.length>e.length&&0===ov.compare(t,e),isParent:(t,e)=>t.length+1===e.length&&0===ov.compare(t,e),isPath:t=>Array.isArray(t)&&(0===t.length||"number"==typeof t[0]),isSibling(t,e){if(t.length!==e.length)return!1;var r=t.slice(0,-1),n=e.slice(0,-1);return t[t.length-1]!==e[e.length-1]&&ov.equals(r,n)},levels(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:r=!1}=e,n=[],o=0;o<=t.length;o++)n.push(t.slice(0,o));return r&&n.reverse(),n},next(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(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(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(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(t,e){if(!ov.isAncestor(e,t)&&!ov.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(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return th(t,n=>{var{affinity:o="forward"}=r;if(t&&0!==(null==t?void 0:t.length)){if(null===n)return null;switch(e.type){case"insert_node":var{path:i}=e;(ov.equals(i,n)||ov.endsBefore(i,n)||ov.isAncestor(i,n))&&(n[i.length-1]+=1);break;case"remove_node":var{path:u}=e;if(ov.equals(u,n)||ov.isAncestor(u,n))return null;ov.endsBefore(u,n)&&(n[u.length-1]-=1);break;case"merge_node":var{path:a,position:s}=e;ov.equals(a,n)||ov.endsBefore(a,n)?n[a.length-1]-=1:ov.isAncestor(a,n)&&(n[a.length-1]-=1,n[a.length]+=s);break;case"split_node":var{path:c,position:l}=e;if(ov.equals(c,n)){if("forward"===o)n[n.length-1]+=1;else if("backward"!==o)return null}else ov.endsBefore(c,n)?n[c.length-1]+=1:ov.isAncestor(c,n)&&t[c.length]>=l&&(n[c.length-1]+=1,n[c.length]-=l);break;case"move_node":var{path:f,newPath:d}=e;if(ov.equals(f,d))return;if(ov.isAncestor(f,n)||ov.equals(f,n)){var p=d.slice();return ov.endsBefore(f,d)&&f.length<d.length&&(p[f.length-1]-=1),p.concat(n.slice(f.length))}ov.isSibling(f,d)&&(ov.isAncestor(d,n)||ov.equals(d,n))?ov.endsBefore(f,n)?n[f.length-1]-=1:n[f.length-1]+=1:ov.endsBefore(d,n)||ov.equals(d,n)||ov.isAncestor(d,n)?(ov.endsBefore(f,n)&&(n[f.length-1]-=1),n[d.length-1]+=1):ov.endsBefore(f,n)&&(ov.equals(d,n)&&(n[d.length-1]+=1),n[f.length-1]-=1)}}})}},iv={transform(t,e){var{current:r,affinity:n}=t;if(null!=r){var o=ov.transform(r,e,{affinity:n});t.current=o,null==o&&t.unref()}}};function uv(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function av(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?uv(Object(r),!0).forEach(function(e){nh(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):uv(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}var sv={compare(t,e){var r=ov.compare(t.path,e.path);return 0===r?t.offset<e.offset?-1:t.offset>e.offset?1:0:r},isAfter:(t,e)=>1===sv.compare(t,e),isBefore:(t,e)=>-1===sv.compare(t,e),equals:(t,e)=>t.offset===e.offset&&ov.equals(t.path,e.path),isPoint:t=>op(t)&&"number"==typeof t.offset&&ov.isPath(t.path),transform(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return th(t,t=>{if(null===t)return null;var{affinity:n="forward"}=r,{path:o,offset:i}=t;switch(e.type){case"insert_node":case"move_node":t.path=ov.transform(o,e,r);break;case"insert_text":ov.equals(e.path,o)&&(e.offset<i||e.offset===i&&"forward"===n)&&(t.offset+=e.text.length);break;case"merge_node":ov.equals(e.path,o)&&(t.offset+=e.position),t.path=ov.transform(o,e,r);break;case"remove_text":ov.equals(e.path,o)&&e.offset<=i&&(t.offset-=Math.min(i-e.offset,e.text.length));break;case"remove_node":if(ov.equals(e.path,o)||ov.isAncestor(e.path,o))return null;t.path=ov.transform(o,e,r);break;case"split_node":if(ov.equals(e.path,o)){if(e.position===i&&null==n)return null;(e.position<i||e.position===i&&"forward"===n)&&(t.offset-=e.position,t.path=ov.transform(o,e,av(av({},r),{},{affinity:"forward"})))}else t.path=ov.transform(o,e,r)}})}},cv={transform(t,e){var{current:r,affinity:n}=t;if(null!=r){var o=sv.transform(r,e,{affinity:n});t.current=o,null==o&&t.unref()}}},lv=["anchor","focus"];function fv(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}var dv={edges(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:r=!1}=e,{anchor:n,focus:o}=t;return dv.isBackward(t)===r?[n,o]:[o,n]},end(t){var[,e]=dv.edges(t);return e},equals:(t,e)=>sv.equals(t.anchor,e.anchor)&&sv.equals(t.focus,e.focus),includes(t,e){if(dv.isRange(e)){if(dv.includes(t,e.anchor)||dv.includes(t,e.focus))return!0;var[r,n]=dv.edges(t),[o,i]=dv.edges(e);return sv.isBefore(r,o)&&sv.isAfter(n,i)}var[u,a]=dv.edges(t),s=!1,c=!1;return sv.isPoint(e)?(s=sv.compare(e,u)>=0,c=sv.compare(e,a)<=0):(s=ov.compare(e,u.path)>=0,c=ov.compare(e,a.path)<=0),s&&c},intersection(t,e){var r=ph(t,lv),[n,o]=dv.edges(t),[i,u]=dv.edges(e),a=sv.isBefore(n,i)?i:n,s=sv.isBefore(o,u)?o:u;return sv.isBefore(s,a)?null:function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?fv(Object(r),!0).forEach(function(e){nh(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):fv(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({anchor:a,focus:s},r)},isBackward(t){var{anchor:e,focus:r}=t;return sv.isAfter(e,r)},isCollapsed(t){var{anchor:e,focus:r}=t;return sv.equals(e,r)},isExpanded:t=>!dv.isCollapsed(t),isForward:t=>!dv.isBackward(t),isRange:t=>op(t)&&sv.isPoint(t.anchor)&&sv.isPoint(t.focus),*points(t){yield[t.anchor,"anchor"],yield[t.focus,"focus"]},start(t){var[e]=dv.edges(t);return e},transform(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return th(t,t=>{if(null===t)return null;var n,o,{affinity:i="inward"}=r;if("inward"===i){var u=dv.isCollapsed(t);dv.isForward(t)?(n="forward",o=u?n:"backward"):(n="backward",o=u?n:"forward")}else"outward"===i?dv.isForward(t)?(n="backward",o="forward"):(n="forward",o="backward"):(n=i,o=i);var a=sv.transform(t.anchor,e,{affinity:n}),s=sv.transform(t.focus,e,{affinity:o});if(!a||!s)return null;t.anchor=a,t.focus=s})}},pv={transform(t,e){var{current:r,affinity:n}=t;if(null!=r){var o=dv.transform(r,e,{affinity:n});t.current=o,null==o&&t.unref()}}},hv=void 0,vv={setScrubber(t){hv=t},stringify:t=>JSON.stringify(t,hv)},gv=(t,e)=>{for(var r in t){var n=t[r],o=e[r];if(op(n)&&op(o)){if(!gv(n,o))return!1}else if(Array.isArray(n)&&Array.isArray(o)){if(n.length!==o.length)return!1;for(var i=0;i<n.length;i++)if(n[i]!==o[i])return!1}else if(n!==o)return!1}for(var u in e)if(void 0===t[u]&&void 0!==e[u])return!1;return!0},yv=["text"],mv=["anchor","focus"];function bv(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function Ev(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?bv(Object(r),!0).forEach(function(e){nh(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):bv(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}var wv={equals(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{loose:n=!1}=r;function o(t){return ph(t,yv)}return gv(n?o(t):t,n?o(e):e)},isText:t=>op(t)&&"string"==typeof t.text,isTextList:t=>Array.isArray(t)&&t.every(t=>wv.isText(t)),isTextProps:t=>void 0!==t.text,matches(t,e){for(var r in e)if("text"!==r&&(!t.hasOwnProperty(r)||t[r]!==e[r]))return!1;return!0},decorations(t,e){var r=[Ev({},t)];for(var n of e){var o=ph(n,mv),[i,u]=dv.edges(n),a=[],s=0,c=i.offset,l=u.offset;for(var f of r){var{length:d}=f.text,p=s;if(s+=d,c<=p&&s<=l)Object.assign(f,o),a.push(f);else if(c!==l&&(c===s||l===p)||c>s||l<p||l===p&&0!==p)a.push(f);else{var h=f,v=void 0,g=void 0;if(l<s){var y=l-p;g=Ev(Ev({},h),{},{text:h.text.slice(y)}),h=Ev(Ev({},h),{},{text:h.text.slice(0,y)})}if(c>p){var m=c-p;v=Ev(Ev({},h),{},{text:h.text.slice(0,m)}),h=Ev(Ev({},h),{},{text:h.text.slice(m)})}Object.assign(h,o),v&&a.push(v),a.push(h),g&&a.push(g)}}r=a}return r}};function Sv(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function Cv(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Sv(Object(r),!0).forEach(function(e){nh(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Sv(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}var Dv={transform(t,e){t.children=eh(t.children);var r=t.selection&&eh(t.selection);try{r=((t,e,r)=>{switch(r.type){case"insert_node":var{path:n,node:o}=r,i=tv.parent(t,n),u=n[n.length-1];if(u>i.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(n,"] because the destination is past the end of the node."));if(i.children.splice(u,0,o),e)for(var[a,s]of dv.points(e))e[s]=sv.transform(a,r);break;case"insert_text":var{path:c,offset:l,text:f}=r;if(0===f.length)break;var d=tv.leaf(t,c),p=d.text.slice(0,l),h=d.text.slice(l);if(d.text=p+f+h,e)for(var[v,g]of dv.points(e))e[g]=sv.transform(v,r);break;case"merge_node":var{path:y}=r,m=tv.get(t,y),b=ov.previous(y),E=tv.get(t,b),w=tv.parent(t,y),S=y[y.length-1];if(wv.isText(m)&&wv.isText(E))E.text+=m.text;else{if(wv.isText(m)||wv.isText(E))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(y,"] to nodes of different interfaces: ").concat(vv.stringify(m)," ").concat(vv.stringify(E)));E.children.push(...m.children)}if(w.children.splice(S,1),e)for(var[C,D]of dv.points(e))e[D]=sv.transform(C,r);break;case"move_node":var{path:O,newPath:A}=r;if(ov.isAncestor(O,A))throw new Error("Cannot move a path [".concat(O,"] to new path [").concat(A,"] because the destination is inside itself."));var x=tv.get(t,O),T=tv.parent(t,O),N=O[O.length-1];T.children.splice(N,1);var k=ov.transform(O,r),P=tv.get(t,ov.parent(k)),B=k[k.length-1];if(P.children.splice(B,0,x),e)for(var[I,F]of dv.points(e))e[F]=sv.transform(I,r);break;case"remove_node":var{path:R}=r,L=R[R.length-1];if(tv.parent(t,R).children.splice(L,1),e)for(var[_,j]of dv.points(e)){var M=sv.transform(_,r);if(null!=e&&null!=M)e[j]=M;else{var z=void 0,H=void 0;for(var[$,U]of tv.texts(t)){if(-1!==ov.compare(U,R)){H=[$,U];break}z=[$,U]}var V=!1;z&&H&&(V=ov.equals(H[1],R)?!ov.hasPrevious(H[1]):ov.common(z[1],R).length<ov.common(H[1],R).length),z&&!V?(_.path=z[1],_.offset=z[0].text.length):H?(_.path=H[1],_.offset=0):e=null}}break;case"remove_text":var{path:G,offset:W,text:q}=r;if(0===q.length)break;var K=tv.leaf(t,G),Y=K.text.slice(0,W),X=K.text.slice(W+q.length);if(K.text=Y+X,e)for(var[J,Z]of dv.points(e))e[Z]=sv.transform(J,r);break;case"set_node":var{path:Q,properties:tt,newProperties:et}=r;if(0===Q.length)throw new Error("Cannot set properties on the root node!");var rt=tv.get(t,Q);for(var nt in et){if("children"===nt||"text"===nt)throw new Error('Cannot set the "'.concat(nt,'" property of nodes!'));var ot=et[nt];null==ot?delete rt[nt]:rt[nt]=ot}for(var it in tt)et.hasOwnProperty(it)||delete rt[it];break;case"set_selection":var{newProperties:ut}=r;if(null==ut)e=ut;else{if(null==e){if(!dv.isRange(ut))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(vv.stringify(ut)," when there is no current selection."));e=Cv({},ut)}for(var at in ut){var st=ut[at];if(null==st){if("anchor"===at||"focus"===at)throw new Error('Cannot remove the "'.concat(at,'" selection property'));delete e[at]}else e[at]=st}}break;case"split_node":var{path:ct,position:lt,properties:ft}=r;if(0===ct.length)throw new Error('Cannot apply a "split_node" operation at path ['.concat(ct,"] because the root node cannot be split."));var dt,pt=tv.get(t,ct),ht=tv.parent(t,ct),vt=ct[ct.length-1];if(wv.isText(pt)){var gt=pt.text.slice(0,lt),yt=pt.text.slice(lt);pt.text=gt,dt=Cv(Cv({},ft),{},{text:yt})}else{var mt=pt.children.slice(0,lt),bt=pt.children.slice(lt);pt.children=mt,dt=Cv(Cv({},ft),{},{children:bt})}if(ht.children.splice(vt+1,0,dt),e)for(var[Et,wt]of dv.points(e))e[wt]=sv.transform(Et,r)}return e})(t,r,e)}finally{t.children=rh(t.children),t.selection=r?up(r)?rh(r):r:null}}},Ov=["text"],Av=["children"];function xv(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function Tv(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?xv(Object(r),!0).forEach(function(e){nh(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):xv(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}var Nv={insertNodes(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Kh.withoutNormalizing(t,()=>{var{hanging:n=!1,voids:o=!1,mode:i="lowest"}=r,{at:u,match:a,select:s}=r;if(tv.isNode(e)&&(e=[e]),0!==e.length){var[c]=e;if(u||(u=t.selection?t.selection:t.children.length>0?Kh.end(t,[]):[0],s=!0),null==s&&(s=!1),dv.isRange(u))if(n||(u=Kh.unhangRange(t,u)),dv.isCollapsed(u))u=u.anchor;else{var[,l]=dv.edges(u),f=Kh.pointRef(t,l);zv.delete(t,{at:u}),u=f.unref()}if(sv.isPoint(u)){null==a&&(a=wv.isText(c)?t=>wv.isText(t):t.isInline(c)?e=>wv.isText(e)||Kh.isInline(t,e):e=>Kh.isBlock(t,e));var[d]=Kh.nodes(t,{at:u.path,match:a,mode:i,voids:o});if(!d)return;var[,p]=d,h=Kh.pathRef(t,p),v=Kh.isEnd(t,u,p);zv.splitNodes(t,{at:u,match:a,mode:i,voids:o});var g=h.unref();u=v?ov.next(g):g}var y=ov.parent(u),m=u[u.length-1];if(o||!Kh.void(t,{at:y})){for(var b of e){var E=y.concat(m);m++,t.apply({type:"insert_node",path:E,node:b}),u=ov.next(u)}if(u=ov.previous(u),s){var w=Kh.end(t,u);w&&zv.select(t,w)}}}})},liftNodes(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Kh.withoutNormalizing(t,()=>{var{at:r=t.selection,mode:n="lowest",voids:o=!1}=e,{match:i}=e;if(null==i&&(i=ov.isPath(r)?Bv(t,r):e=>Kh.isBlock(t,e)),r){var u=Kh.nodes(t,{at:r,match:i,mode:n,voids:o}),a=Array.from(u,e=>{var[,r]=e;return Kh.pathRef(t,r)});for(var s of a){var c=s.unref();if(c.length<2)throw new Error("Cannot lift node at a path [".concat(c,"] because it has a depth of less than `2`."));var l=Kh.node(t,ov.parent(c)),[f,d]=l,p=c[c.length-1],{length:h}=f.children;if(1===h){var v=ov.next(d);zv.moveNodes(t,{at:c,to:v,voids:o}),zv.removeNodes(t,{at:d,voids:o})}else if(0===p)zv.moveNodes(t,{at:c,to:d,voids:o});else if(p===h-1){var g=ov.next(d);zv.moveNodes(t,{at:c,to:g,voids:o})}else{var y=ov.next(c),m=ov.next(d);zv.splitNodes(t,{at:y,voids:o}),zv.moveNodes(t,{at:c,to:m,voids:o})}}}})},mergeNodes(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Kh.withoutNormalizing(t,()=>{var{match:r,at:n=t.selection}=e,{hanging:o=!1,voids:i=!1,mode:u="lowest"}=e;if(n){if(null==r)if(ov.isPath(n)){var[a]=Kh.parent(t,n);r=t=>a.children.includes(t)}else r=e=>Kh.isBlock(t,e);if(!o&&dv.isRange(n)&&(n=Kh.unhangRange(t,n)),dv.isRange(n))if(dv.isCollapsed(n))n=n.anchor;else{var[,s]=dv.edges(n),c=Kh.pointRef(t,s);zv.delete(t,{at:n}),n=c.unref(),null==e.at&&zv.select(t,n)}var[l]=Kh.nodes(t,{at:n,match:r,voids:i,mode:u}),f=Kh.previous(t,{at:n,match:r,voids:i,mode:u});if(l&&f){var[d,p]=l,[h,v]=f;if(0!==p.length&&0!==v.length){var g,y,m=ov.next(v),b=ov.common(p,v),E=ov.isSibling(p,v),w=Array.from(Kh.levels(t,{at:p}),t=>{var[e]=t;return e}).slice(b.length).slice(0,-1),S=Kh.above(t,{at:p,mode:"highest",match:e=>w.includes(e)&&kv(t,e)}),C=S&&Kh.pathRef(t,S[1]);if(wv.isText(d)&&wv.isText(h)){var D=ph(d,Ov);y=h.text.length,g=D}else{if(!$h.isElement(d)||!$h.isElement(h))throw new Error("Cannot merge the node at path [".concat(p,"] with the previous sibling because it is not the same kind: ").concat(vv.stringify(d)," ").concat(vv.stringify(h)));D=ph(d,Av);y=h.children.length,g=D}E||zv.moveNodes(t,{at:p,to:m,voids:i}),C&&zv.removeNodes(t,{at:C.current,voids:i}),$h.isElement(h)&&Kh.isEmpty(t,h)||wv.isText(h)&&""===h.text&&0!==v[v.length-1]?zv.removeNodes(t,{at:v,voids:i}):t.apply({type:"merge_node",path:m,position:y,properties:g}),C&&C.unref()}}}})},moveNodes(t,e){Kh.withoutNormalizing(t,()=>{var{to:r,at:n=t.selection,mode:o="lowest",voids:i=!1}=e,{match:u}=e;if(n){null==u&&(u=ov.isPath(n)?Bv(t,n):e=>Kh.isBlock(t,e));var a=Kh.pathRef(t,r),s=Kh.nodes(t,{at:n,match:u,mode:o,voids:i}),c=Array.from(s,e=>{var[,r]=e;return Kh.pathRef(t,r)});for(var l of c){var f=l.unref(),d=a.current;0!==f.length&&t.apply({type:"move_node",path:f,newPath:d}),a.current&&ov.isSibling(d,f)&&ov.isAfter(d,f)&&(a.current=ov.next(a.current))}a.unref()}})},removeNodes(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Kh.withoutNormalizing(t,()=>{var{hanging:r=!1,voids:n=!1,mode:o="lowest"}=e,{at:i=t.selection,match:u}=e;if(i){null==u&&(u=ov.isPath(i)?Bv(t,i):e=>Kh.isBlock(t,e)),!r&&dv.isRange(i)&&(i=Kh.unhangRange(t,i));var a=Kh.nodes(t,{at:i,match:u,mode:o,voids:n}),s=Array.from(a,e=>{var[,r]=e;return Kh.pathRef(t,r)});for(var c of s){var l=c.unref();if(l){var[f]=Kh.node(t,l);t.apply({type:"remove_node",path:l,node:f})}}}})},setNodes(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Kh.withoutNormalizing(t,()=>{var{match:n,at:o=t.selection,compare:i,merge:u}=r,{hanging:a=!1,mode:s="lowest",split:c=!1,voids:l=!1}=r;if(o){if(null==n&&(n=ov.isPath(o)?Bv(t,o):e=>Kh.isBlock(t,e)),!a&&dv.isRange(o)&&(o=Kh.unhangRange(t,o)),c&&dv.isRange(o)){if(dv.isCollapsed(o)&&Kh.leaf(t,o.anchor)[0].text.length>0)return;var f=Kh.rangeRef(t,o,{affinity:"inward"}),[d,p]=dv.edges(o),h="lowest"===s?"lowest":"highest",v=Kh.isEnd(t,p,p.path);zv.splitNodes(t,{at:p,match:n,mode:h,voids:l,always:!v});var g=Kh.isStart(t,d,d.path);zv.splitNodes(t,{at:d,match:n,mode:h,voids:l,always:!g}),o=f.unref(),null==r.at&&zv.select(t,o)}for(var[y,m]of(i||(i=(t,e)=>t!==e),Kh.nodes(t,{at:o,match:n,mode:s,voids:l}))){var b={},E={};if(0!==m.length){var w=!1;for(var S in e)"children"!==S&&"text"!==S&&i(e[S],y[S])&&(w=!0,y.hasOwnProperty(S)&&(b[S]=y[S]),u?null!=e[S]&&(E[S]=u(y[S],e[S])):null!=e[S]&&(E[S]=e[S]));w&&t.apply({type:"set_node",path:m,properties:b,newProperties:E})}}}})},splitNodes(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Kh.withoutNormalizing(t,()=>{var{mode:r="lowest",voids:n=!1}=e,{match:o,at:i=t.selection,height:u=0,always:a=!1}=e;if(null==o&&(o=e=>Kh.isBlock(t,e)),dv.isRange(i)&&(i=Pv(t,i)),ov.isPath(i)){var s=i,c=Kh.point(t,s),[l]=Kh.parent(t,s);o=t=>t===l,u=c.path.length-s.length+1,i=c,a=!0}if(i){var f,d=Kh.pointRef(t,i,{affinity:"backward"});try{var[p]=Kh.nodes(t,{at:i,match:o,mode:r,voids:n});if(!p)return;var h=Kh.void(t,{at:i,mode:"highest"});if(!n&&h){var[v,g]=h;if($h.isElement(v)&&t.isInline(v)){var y=Kh.after(t,g);if(!y){var m=ov.next(g);zv.insertNodes(t,{text:""},{at:m,voids:n}),y=Kh.point(t,m)}i=y,a=!0}u=i.path.length-g.length+1,a=!0}f=Kh.pointRef(t,i);var b=i.path.length-u,[,E]=p,w=i.path.slice(0,b),S=0===u?i.offset:i.path[b]+0;for(var[C,D]of Kh.levels(t,{at:w,reverse:!0,voids:n})){var O=!1;if(D.length<E.length||0===D.length||!n&&Kh.isVoid(t,C))break;var A=d.current,x=Kh.isEnd(t,A,D);if(a||!d||!Kh.isEdge(t,A,D)){O=!0;var T=tv.extractProps(C);t.apply({type:"split_node",path:D,position:S,properties:T})}S=D[D.length-1]+(O||x?1:0)}if(null==e.at){var N=f.current||Kh.end(t,[]);zv.select(t,N)}}finally{var k;d.unref(),null===(k=f)||void 0===k||k.unref()}}})},unsetNodes(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Array.isArray(e)||(e=[e]);var n={};for(var o of e)n[o]=null;zv.setNodes(t,n,r)},unwrapNodes(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Kh.withoutNormalizing(t,()=>{var{mode:r="lowest",split:n=!1,voids:o=!1}=e,{at:i=t.selection,match:u}=e;if(i){null==u&&(u=ov.isPath(i)?Bv(t,i):e=>Kh.isBlock(t,e)),ov.isPath(i)&&(i=Kh.range(t,i));var a=dv.isRange(i)?Kh.rangeRef(t,i):null,s=Kh.nodes(t,{at:i,match:u,mode:r,voids:o}),c=Array.from(s,e=>{var[,r]=e;return Kh.pathRef(t,r)}).reverse(),l=function(e){var r=e.unref(),[i]=Kh.node(t,r),u=Kh.range(t,r);n&&a&&(u=dv.intersection(a.current,u)),zv.liftNodes(t,{at:u,match:t=>$h.isAncestor(i)&&i.children.includes(t),voids:o})};for(var f of c)l(f);a&&a.unref()}})},wrapNodes(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Kh.withoutNormalizing(t,()=>{var{mode:n="lowest",split:o=!1,voids:i=!1}=r,{match:u,at:a=t.selection}=r;if(a){if(null==u&&(u=ov.isPath(a)?Bv(t,a):t.isInline(e)?e=>Kh.isInline(t,e)||wv.isText(e):e=>Kh.isBlock(t,e)),o&&dv.isRange(a)){var[s,c]=dv.edges(a),l=Kh.rangeRef(t,a,{affinity:"inward"});zv.splitNodes(t,{at:c,match:u,voids:i}),zv.splitNodes(t,{at:s,match:u,voids:i}),a=l.unref(),null==r.at&&zv.select(t,a)}var f=Array.from(Kh.nodes(t,{at:a,match:t.isInline(e)?e=>Kh.isBlock(t,e):t=>Kh.isEditor(t),mode:"lowest",voids:i}));for(var[,d]of f){var p=dv.isRange(a)?dv.intersection(a,Kh.range(t,d)):a;if(p){var h=Array.from(Kh.nodes(t,{at:p,match:u,mode:n,voids:i}));if(h.length>0){var v=function(){var[r]=h,n=h[h.length-1],[,o]=r,[,u]=n;if(0===o.length&&0===u.length)return"continue";var a=ov.equals(o,u)?ov.parent(o):ov.common(o,u),s=Kh.range(t,o,u),c=Kh.node(t,a),[l]=c,f=a.length+1,d=ov.next(u.slice(0,f)),p=Tv(Tv({},e),{},{children:[]});zv.insertNodes(t,p,{at:d,voids:i}),zv.moveNodes(t,{at:s,match:t=>$h.isAncestor(l)&&l.children.includes(t),to:d.concat(0),voids:i})}();if("continue"===v)continue}}}}})}},kv=(t,e)=>{if($h.isElement(e)){var r=e;return!!Kh.isVoid(t,e)||1===r.children.length&&kv(t,r.children[0])}return!Kh.isEditor(e)},Pv=(t,e)=>{if(dv.isCollapsed(e))return e.anchor;var[,r]=dv.edges(e),n=Kh.pointRef(t,r);return zv.delete(t,{at:e}),n.unref()},Bv=(t,e)=>{var[r]=Kh.node(t,e);return t=>t===r};function Iv(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function Fv(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Iv(Object(r),!0).forEach(function(e){nh(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Iv(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}var Rv={collapse(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{edge:r="anchor"}=e,{selection:n}=t;if(n)if("anchor"===r)zv.select(t,n.anchor);else if("focus"===r)zv.select(t,n.focus);else if("start"===r){var[o]=dv.edges(n);zv.select(t,o)}else if("end"===r){var[,i]=dv.edges(n);zv.select(t,i)}},deselect(t){var{selection:e}=t;e&&t.apply({type:"set_selection",properties:e,newProperties:null})},move(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{selection:r}=t,{distance:n=1,unit:o="character",reverse:i=!1}=e,{edge:u=null}=e;if(r){"start"===u&&(u=dv.isBackward(r)?"focus":"anchor"),"end"===u&&(u=dv.isBackward(r)?"anchor":"focus");var{anchor:a,focus:s}=r,c={distance:n,unit:o},l={};if(null==u||"anchor"===u){var f=i?Kh.before(t,a,c):Kh.after(t,a,c);f&&(l.anchor=f)}if(null==u||"focus"===u){var d=i?Kh.before(t,s,c):Kh.after(t,s,c);d&&(l.focus=d)}zv.setSelection(t,l)}},select(t,e){var{selection:r}=t;if(e=Kh.range(t,e),r)zv.setSelection(t,e);else{if(!dv.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(vv.stringify(e)));t.apply({type:"set_selection",properties:r,newProperties:e})}},setPoint(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{selection:n}=t,{edge:o="both"}=r;if(n){"start"===o&&(o=dv.isBackward(n)?"focus":"anchor"),"end"===o&&(o=dv.isBackward(n)?"anchor":"focus");var{anchor:i,focus:u}=n,a="anchor"===o?i:u;zv.setSelection(t,{["anchor"===o?"anchor":"focus"]:Fv(Fv({},a),e)})}},setSelection(t,e){var{selection:r}=t,n={},o={};if(r){for(var i in e)("anchor"===i&&null!=e.anchor&&!sv.equals(e.anchor,r.anchor)||"focus"===i&&null!=e.focus&&!sv.equals(e.focus,r.focus)||"anchor"!==i&&"focus"!==i&&e[i]!==r[i])&&(n[i]=r[i],o[i]=e[i]);Object.keys(n).length>0&&t.apply({type:"set_selection",properties:n,newProperties:o})}}},Lv={delete(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Kh.withoutNormalizing(t,()=>{var{reverse:r=!1,unit:n="character",distance:o=1,voids:i=!1}=e,{at:u=t.selection,hanging:a=!1}=e;if(u){var s=!1;if(dv.isRange(u)&&dv.isCollapsed(u)&&(s=!0,u=u.anchor),sv.isPoint(u)){var c=Kh.void(t,{at:u,mode:"highest"});if(!i&&c){var[,l]=c;u=l}else{var f={unit:n,distance:o};u={anchor:u,focus:r?Kh.before(t,u,f)||Kh.start(t,[]):Kh.after(t,u,f)||Kh.end(t,[])},a=!0}}if(ov.isPath(u))zv.removeNodes(t,{at:u,voids:i});else if(!dv.isCollapsed(u)){if(!a){var[,d]=dv.edges(u),p=Kh.end(t,[]);sv.equals(d,p)||(u=Kh.unhangRange(t,u,{voids:i}))}var[h,v]=dv.edges(u),g=Kh.above(t,{match:e=>Kh.isBlock(t,e),at:h,voids:i}),y=Kh.above(t,{match:e=>Kh.isBlock(t,e),at:v,voids:i}),m=g&&y&&!ov.equals(g[1],y[1]),b=ov.equals(h.path,v.path),E=i?null:Kh.void(t,{at:h,mode:"highest"}),w=i?null:Kh.void(t,{at:v,mode:"highest"});if(E){var S=Kh.before(t,h);S&&g&&ov.isAncestor(g[1],S.path)&&(h=S)}if(w){var C=Kh.after(t,v);C&&y&&ov.isAncestor(y[1],C.path)&&(v=C)}var D,O=[];for(var A of Kh.nodes(t,{at:u,voids:i})){var[x,T]=A;D&&0===ov.compare(T,D)||(!i&&Kh.isVoid(t,x)||!ov.isCommon(T,h.path)&&!ov.isCommon(T,v.path))&&(O.push(A),D=T)}var N=Array.from(O,e=>{var[,r]=e;return Kh.pathRef(t,r)}),k=Kh.pointRef(t,h),P=Kh.pointRef(t,v),B="";if(!b&&!E){var I=k.current,[F]=Kh.leaf(t,I),{path:R}=I,{offset:L}=h,_=F.text.slice(L);_.length>0&&(t.apply({type:"remove_text",path:R,offset:L,text:_}),B=_)}for(var j of N){var M=j.unref();zv.removeNodes(t,{at:M,voids:i})}if(!w){var z=P.current,[H]=Kh.leaf(t,z),{path:$}=z,U=b?h.offset:0,V=H.text.slice(U,v.offset);V.length>0&&(t.apply({type:"remove_text",path:$,offset:U,text:V}),B=V)}!b&&m&&P.current&&k.current&&zv.mergeNodes(t,{at:P.current,hanging:!0,voids:i}),s&&r&&"character"===n&&B.length>1&&B.match(/[\u0E00-\u0E7F]+/)&&zv.insertText(t,B.slice(0,B.length-o));var G=k.unref(),W=P.unref(),q=r?G||W:W||G;null==e.at&&q&&zv.select(t,q)}}})},insertFragment(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Kh.withoutNormalizing(t,()=>{var{hanging:n=!1,voids:o=!1}=r,{at:i=t.selection}=r;if(e.length&&i){if(dv.isRange(i))if(n||(i=Kh.unhangRange(t,i)),dv.isCollapsed(i))i=i.anchor;else{var[,u]=dv.edges(i);if(!o&&Kh.void(t,{at:u}))return;var a=Kh.pointRef(t,u);zv.delete(t,{at:i}),i=a.unref()}else ov.isPath(i)&&(i=Kh.start(t,i));if(o||!Kh.void(t,{at:i})){var s=Kh.above(t,{at:i,match:e=>Kh.isInline(t,e),mode:"highest",voids:o});if(s){var[,c]=s;if(Kh.isEnd(t,i,c))i=Kh.after(t,c);else if(Kh.isStart(t,i,c)){i=Kh.before(t,c)}}var l=Kh.above(t,{match:e=>Kh.isBlock(t,e),at:i,voids:o}),[,f]=l,d=Kh.isStart(t,i,f),p=Kh.isEnd(t,i,f),h=d&&p,v=!d||d&&p,g=!p,[,y]=tv.first({children:e},[]),[,m]=tv.last({children:e},[]),b=[],E=e=>{var[r,n]=e;return!(0===n.length)&&(!!h||!(v&&ov.isAncestor(n,y)&&$h.isElement(r)&&!t.isVoid(r)&&!t.isInline(r))&&!(g&&ov.isAncestor(n,m)&&$h.isElement(r)&&!t.isVoid(r)&&!t.isInline(r)))};for(var w of tv.nodes({children:e},{pass:E}))E(w)&&b.push(w);var S=[],C=[],D=[],O=!0,A=!1;for(var[x]of b)$h.isElement(x)&&!t.isInline(x)?(O=!1,A=!0,C.push(x)):O?S.push(x):D.push(x);var[T]=Kh.nodes(t,{at:i,match:e=>wv.isText(e)||Kh.isInline(t,e),mode:"highest",voids:o}),[,N]=T,k=Kh.isStart(t,i,N),P=Kh.isEnd(t,i,N),B=Kh.pathRef(t,p&&!D.length?ov.next(f):f),I=Kh.pathRef(t,P?ov.next(N):N);zv.splitNodes(t,{at:i,match:e=>A?Kh.isBlock(t,e):wv.isText(e)||Kh.isInline(t,e),mode:A?"lowest":"highest",always:A&&(!d||S.length>0)&&(!p||D.length>0),voids:o});var F,R=Kh.pathRef(t,!k||k&&P?ov.next(N):N);if(zv.insertNodes(t,S,{at:R.current,match:e=>wv.isText(e)||Kh.isInline(t,e),mode:"highest",voids:o}),h&&!S.length&&C.length&&!D.length&&zv.delete(t,{at:f,voids:o}),zv.insertNodes(t,C,{at:B.current,match:e=>Kh.isBlock(t,e),mode:"lowest",voids:o}),zv.insertNodes(t,D,{at:I.current,match:e=>wv.isText(e)||Kh.isInline(t,e),mode:"highest",voids:o}),!r.at)if(D.length>0&&I.current?F=ov.previous(I.current):C.length>0&&B.current?F=ov.previous(B.current):R.current&&(F=ov.previous(R.current)),F){var L=Kh.end(t,F);zv.select(t,L)}R.unref(),B.unref(),I.unref()}}})},insertText(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Kh.withoutNormalizing(t,()=>{var{voids:n=!1}=r,{at:o=t.selection}=r;if(o){if(ov.isPath(o)&&(o=Kh.range(t,o)),dv.isRange(o))if(dv.isCollapsed(o))o=o.anchor;else{var i=dv.end(o);if(!n&&Kh.void(t,{at:i}))return;var u=dv.start(o),a=Kh.pointRef(t,u),s=Kh.pointRef(t,i);zv.delete(t,{at:o,voids:n});var c=a.unref(),l=s.unref();o=c||l,zv.setSelection(t,{anchor:o,focus:o})}if(n||!Kh.void(t,{at:o})){var{path:f,offset:d}=o;e.length>0&&t.apply({type:"insert_text",path:f,offset:d,text:e})}}})}};function _v(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function jv(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?_v(Object(r),!0).forEach(function(e){nh(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):_v(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}var Mv,zv=jv(jv(jv(jv({},Dv),Nv),Rv),Lv),Hv={exports:{}};var $v,Uv,Vv=(Mv||(Mv=1,function(t,e){var r="__lodash_hash_undefined__",n=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]",b="[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]",k=/\w*$/,P=/^\[object .+?Constructor\]$/,B=/^(?:0|[1-9]\d*)$/,I={};I[o]=I["[object Array]"]=I[b]=I[E]=I[i]=I[u]=I[w]=I[S]=I[C]=I[D]=I[O]=I[c]=I[l]=I[f]=I[p]=I[h]=I[v]=I[g]=I[A]=I[x]=I[T]=I[N]=!0,I["[object Error]"]=I[a]=I[y]=!1;var F="object"==typeof m&&m&&m.Object===Object&&m,R="object"==typeof self&&self&&self.Object===Object&&self,L=F||R||Function("return this")(),_=e&&!e.nodeType&&e,j=_&&t&&!t.nodeType&&t,M=j&&j.exports===_;function z(t,e){return t.set(e[0],e[1]),t}function H(t,e){return t.add(e),t}function $(t,e,r,n){for(var o=-1,i=t?t.length:0;++o<i;)r=e(r,t[o],o,t);return r}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,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r}function G(t,e){return function(r){return t(e(r))}}function W(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}var q=Array.prototype,K=Function.prototype,Y=Object.prototype,X=L["__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.*?")+"$"),rt=M?L.Buffer:void 0,nt=L.Symbol,ot=L.Uint8Array,it=G(Object.getPrototypeOf,Object),ut=Object.create,at=Y.propertyIsEnumerable,st=q.splice,ct=Object.getOwnPropertySymbols,lt=rt?rt.isBuffer:void 0,ft=G(Object.keys,Object),dt=_t(L,"DataView"),pt=_t(L,"Map"),ht=_t(L,"Promise"),vt=_t(L,"Set"),gt=_t(L,"WeakMap"),yt=_t(Object,"create"),mt=$t(dt),bt=$t(pt),Et=$t(ht),wt=$t(vt),St=$t(gt),Ct=nt?nt.prototype:void 0,Dt=Ct?Ct.valueOf:void 0;function Ot(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function At(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function xt(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Tt(t){this.__data__=new At(t)}function Nt(t,e){var r=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 r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],n=r.length,i=!!n;for(var u in t)!Q.call(t,u)||i&&("length"==u||zt(u,n))||r.push(u);return r}function kt(t,e,r){var n=t[e];Q.call(t,e)&&Ut(n,r)&&(void 0!==r||e in t)||(t[e]=r)}function Pt(t,e){for(var r=t.length;r--;)if(Ut(t[r][0],e))return r;return-1}function Bt(t,e,r,n,d,y,m){var P;if(n&&(P=y?n(t,d,y,m):n(t)),void 0!==P)return P;if(!Kt(t))return t;var B=Vt(t);if(B){if(P=function(t){var e=t.length,r=t.constructor(e);return e&&"string"==typeof t[0]&&Q.call(t,"index")&&(r.index=t.index,r.input=t.input),r}(t),!e)return function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}(t,P)}else{var F=Mt(t),R=F==a||F==s;if(Wt(t))return function(t,e){if(e)return t.slice();var r=new t.constructor(t.length);return t.copy(r),r}(t,e);if(F==f||F==o||R&&!y){if(U(t))return y?t:{};if(P=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,jt(t),e)}(t,function(t,e){return t&&Rt(e,Yt(e),t)}(P,t))}else{if(!I[F])return y?t:{};P=function(t,e,r,n){var o=t.constructor;switch(e){case b:return Ft(t);case i:case u:return new o(+t);case E:return function(t,e){var r=e?Ft(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,n);case w:case S:case C:case D:case O:case A:case x:case T:case N:return function(t,e){var r=e?Ft(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}(t,n);case c:return function(t,e,r){var n=e?r(V(t),!0):V(t);return $(n,z,new t.constructor)}(t,n,r);case l:case v:return new o(t);case p:return function(t){var e=new t.constructor(t.source,k.exec(t));return e.lastIndex=t.lastIndex,e}(t);case h:return function(t,e,r){var n=e?r(W(t),!0):W(t);return $(n,H,new t.constructor)}(t,n,r);case g:return function(t){return Dt?Object(Dt.call(t)):{}}(t)}}(t,F,Bt,e)}}m||(m=new Tt);var L=m.get(t);if(L)return L;if(m.set(t,P),!B)var _=r?function(t){return function(t,e,r){var n=e(t);return Vt(t)?n:function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}(n,r(t))}(t,Yt,jt)}(t):Yt(t);return function(t,e){for(var r=-1,n=t?t.length:0;++r<n&&!1!==e(t[r],r,t););}(_||t,function(o,i){_&&(o=t[i=o]),kt(P,i,Bt(o,e,r,n,i,t,m))}),P}function It(t){return!(!Kt(t)||(e=t,J&&J in e))&&(qt(t)||U(t)?et:P).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,r,n){r||(r={});for(var o=-1,i=e.length;++o<i;){var u=e[o];kt(r,u,t[u])}return r}function Lt(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function _t(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return It(r)?r: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 n=e[t];return n===r?void 0:n}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?r:e,this},At.prototype.clear=function(){this.__data__=[]},At.prototype.delete=function(t){var e=this.__data__,r=Pt(e,t);return!(r<0||(r==e.length-1?e.pop():st.call(e,r,1),0))},At.prototype.get=function(t){var e=this.__data__,r=Pt(e,t);return r<0?void 0:e[r][1]},At.prototype.has=function(t){return Pt(this.__data__,t)>-1},At.prototype.set=function(t,e){var r=this.__data__,n=Pt(r,t);return n<0?r.push([t,e]):r[n][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 Lt(this,t).delete(t)},xt.prototype.get=function(t){return Lt(this,t).get(t)},xt.prototype.has=function(t){return Lt(this,t).has(t)},xt.prototype.set=function(t,e){return Lt(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 r=this.__data__;if(r instanceof At){var n=r.__data__;if(!pt||n.length<199)return n.push([t,e]),this;r=this.__data__=new xt(n)}return r.set(t,e),this};var jt=ct?G(ct,Object):function(){return[]},Mt=function(t){return tt.call(t)};function zt(t,e){return!!(e=null==e?n:e)&&("number"==typeof t||B.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),r=e==f?t.constructor:void 0,n=r?$t(r):void 0;if(n)switch(n){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<=n}(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 r in Object(t))Q.call(t,r)&&"constructor"!=r&&e.push(r);return e}(t)}t.exports=function(t){return Bt(t,!0,!0)}}(Hv,Hv.exports)),Hv.exports),Gv=b(Vv);var Wv=function(){if(Uv)return $v;Uv=1;var t=9007199254740991,e="[object Arguments]",r="[object Function]",n="[object GeneratorFunction]",o=/^(?:0|[1-9]\d*)$/;function i(t,e){for(var r=-1,n=t?t.length:0;++r<n&&!1!==e(t[r],r,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,r){var n=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 r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],o=n.length,i=!!o;for(var u in t)!c.call(t,u)||i&&("length"==u||m(u,o))||n.push(u);return n}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 r=t.length,n=-1,o=Object(t);++n<r&&!1!==e(o[n],n,o););return t}),g=function(t,e,r){for(var n=-1,o=Object(t),i=r(t),u=i.length;u--;){var a=i[++n];if(!1===e(o[a],a,o))break}return t};function y(t){if(r=(e=t)&&e.constructor,n="function"==typeof r&&r.prototype||s,e!==n)return d(t);var e,r,n,o=[];for(var i in Object(t))c.call(t,i)&&"constructor"!=i&&o.push(i);return o}function m(e,r){return!!(r=null==r?t:r)&&("number"==typeof e||o.test(e))&&e>-1&&e%1==0&&e<r}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==r||e==n}(e)}function w(t){return E(t)?p(t):y(t)}function S(t){return t}return $v=function(t,e){return(b(t)?i:v)(t,"function"==typeof e?e:S)}}(),qv=b(Wv);function Kv(t){return null!==t&&"object"==typeof t&&"constructor"in t&&t.constructor===Object}function Yv(t={},e={}){Object.keys(e).forEach(r=>{void 0===t[r]?t[r]=e[r]:Kv(e[r])&&Kv(t[r])&&Object.keys(e[r]).length>0&&Yv(t[r],e[r])})}const Xv={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 Jv(){const t="undefined"!=typeof document?document:{};return Yv(t,Xv),t}const Zv={document:Xv,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 Qv(){const t="undefined"!=typeof window?window:{};return Yv(t,Zv),t}class tg 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 eg(t=[]){const e=[];return t.forEach(t=>{Array.isArray(t)?e.push(...eg(t)):e.push(t)}),e}function rg(t,e){return Array.prototype.filter.call(t,e)}function ng(t){return t.toLowerCase().replace(/-(.)/g,(t,e)=>e.toUpperCase())}function og(t,e){const r=Qv(),n=Jv();let o=[];if(!e&&t instanceof tg)return t;if(!t)return new tg(o);if("string"==typeof t){const r=t.trim();if(r.indexOf("<")>=0&&r.indexOf(">")>=0){let t="div";0===r.indexOf("<li")&&(t="ul"),0===r.indexOf("<tr")&&(t="tbody"),0!==r.indexOf("<td")&&0!==r.indexOf("<th")||(t="tr"),0===r.indexOf("<tbody")&&(t="table"),0===r.indexOf("<option")&&(t="select");const e=n.createElement(t);e.innerHTML=r;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 r=[],n=e.querySelectorAll(t);for(let t=0;t<n.length;t+=1)r.push(n[t]);return r}(t.trim(),e||n)}else if(t.nodeType||t===r||t===n)o.push(t);else if(Array.isArray(t)){if(t instanceof tg)return t;o=t}return new tg(function(t){const e=[];for(let r=0;r<t.length;r+=1)-1===e.indexOf(t[r])&&e.push(t[r]);return e}(o))}function ig(...t){const e=eg(t.map(t=>t.split(" ")));return this.forEach(t=>{t.classList.add(...e)}),this}function ug(...t){const e=eg(t.map(t=>t.split(" ")));return this.forEach(t=>{t.classList.remove(...e)}),this}function ag(...t){const e=eg(t.map(t=>t.split(" ")));return rg(this,t=>e.filter(e=>t.classList.contains(e)).length>0).length>0}function sg(t,e){if(1===arguments.length&&"string"==typeof t)return this[0]?this[0].getAttribute(t):void 0;for(let r=0;r<this.length;r+=1)if(2===arguments.length)this[r].setAttribute(t,e);else for(const e in t)this[r][e]=t[e],this[r].setAttribute(e,t[e]);return this}function cg(t){for(let e=0;e<this.length;e+=1)this[e].removeAttribute(t);return this}function lg(t,e){let r;if(void 0===e){if(r=this[0],!r)return;if(r.dom7ElementDataStorage&&t in r.dom7ElementDataStorage)return r.dom7ElementDataStorage[t];const e=r.getAttribute(`data-${t}`);return e||void 0}for(let n=0;n<this.length;n+=1)r=this[n],r.dom7ElementDataStorage||(r.dom7ElementDataStorage={}),r.dom7ElementDataStorage[t]=e;return this}function fg(){const t=this[0];if(!t)return;const e={};if(t.dataset)for(const r in t.dataset)e[r]=t.dataset[r];else for(let r=0;r<t.attributes.length;r+=1){const n=t.attributes[r];n.name.indexOf("data-")>=0&&(e[ng(n.name.split("data-")[1])]=n.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 dg(t){if(void 0===t){const t=this[0];if(!t)return;if(t.multiple&&"select"===t.nodeName.toLowerCase()){const e=[];for(let r=0;r<t.selectedOptions.length;r+=1)e.push(t.selectedOptions[r].value);return e}return t.value}for(let e=0;e<this.length;e+=1){const r=this[e];if(Array.isArray(t)&&r.multiple&&"select"===r.nodeName.toLowerCase())for(let e=0;e<r.options.length;e+=1)r.options[e].selected=t.indexOf(r.options[e].value)>=0;else r.value=t}return this}function pg(...t){let[e,r,n,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),og(e).is(r))n.apply(e,o);else{const t=og(e).parents();for(let e=0;e<t.length;e+=1)og(t[e]).is(r)&&n.apply(t[e],o)}}function u(t){const e=t&&t.target&&t.target.dom7EventData||[];e.indexOf(t)<0&&e.unshift(t),n.apply(this,e)}"function"==typeof t[1]&&([e,n,o]=t,r=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(r)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:n,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:n,proxyListener:u}),e.addEventListener(t,u,o)}}return this}function hg(...t){let[e,r,n,o]=t;"function"==typeof t[1]&&([e,n,o]=t,r=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(!r&&i.dom7Listeners?u=i.dom7Listeners[e]:r&&i.dom7LiveListeners&&(u=i.dom7LiveListeners[e]),u&&u.length)for(let t=u.length-1;t>=0;t-=1){const r=u[t];n&&r.listener===n||n&&r.listener&&r.listener.dom7proxy&&r.listener.dom7proxy===n?(i.removeEventListener(e,r.proxyListener,o),u.splice(t,1)):n||(i.removeEventListener(e,r.proxyListener,o),u.splice(t,1))}}}return this}function vg(){const t=Qv();return this[0]===t?t.innerWidth:this.length>0?parseFloat(this.css("width")):null}function gg(){const t=Qv();return this[0]===t?t.innerHeight:this.length>0?parseFloat(this.css("height")):null}function yg(){if(this.length>0){const t=Qv(),e=Jv(),r=this[0],n=r.getBoundingClientRect(),o=e.body,i=r.clientTop||o.clientTop||0,u=r.clientLeft||o.clientLeft||0,a=r===t?t.scrollY:r.scrollTop,s=r===t?t.scrollX:r.scrollLeft;return{top:n.top+a-i,left:n.left+s-u}}return null}function mg(){for(let t=0;t<this.length;t+=1)this[t].style.display="none";return this}function bg(){const t=Qv();for(let e=0;e<this.length;e+=1){const r=this[e];"none"===r.style.display&&(r.style.display=""),"none"===t.getComputedStyle(r,null).getPropertyValue("display")&&(r.style.display="block")}return this}function Eg(t,e){const r=Qv();let n;if(1===arguments.length){if("string"!=typeof t){for(n=0;n<this.length;n+=1)for(const e in t)this[n].style[e]=t[e];return this}if(this[0])return r.getComputedStyle(this[0],null).getPropertyValue(t)}if(2===arguments.length&&"string"==typeof t){for(n=0;n<this.length;n+=1)this[n].style[t]=e;return this}return this}function wg(t){return t?(this.forEach((e,r)=>{t.apply(e,[e,r])}),this):this}function Sg(t){return og(rg(this,t))}function Cg(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 Dg(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 Og(t){const e=Qv(),r=Jv(),n=this[0];let o,i;if(!n||void 0===t)return!1;if("string"==typeof t){if(n.matches)return n.matches(t);if(n.webkitMatchesSelector)return n.webkitMatchesSelector(t);if(n.msMatchesSelector)return n.msMatchesSelector(t);for(o=og(t),i=0;i<o.length;i+=1)if(o[i]===n)return!0;return!1}if(t===r)return n===r;if(t===e)return n===e;if(t.nodeType||t instanceof tg){for(o=t.nodeType?[t]:t,i=0;i<o.length;i+=1)if(o[i]===n)return!0;return!1}return!1}function Ag(...t){let e;const r=Jv();for(let n=0;n<t.length;n+=1){e=t[n];for(let t=0;t<this.length;t+=1)if("string"==typeof e){const n=r.createElement("div");for(n.innerHTML=e;n.firstChild;)this[t].appendChild(n.firstChild)}else if(e instanceof tg)for(let r=0;r<e.length;r+=1)this[t].appendChild(e[r]);else this[t].appendChild(e)}return this}function xg(t){const e=Jv();let r,n;for(r=0;r<this.length;r+=1)if("string"==typeof t){const o=e.createElement("div");for(o.innerHTML=t,n=o.childNodes.length-1;n>=0;n-=1)this[r].insertBefore(o.childNodes[n],this[r].childNodes[0])}else if(t instanceof tg)for(n=0;n<t.length;n+=1)this[r].insertBefore(t[n],this[r].childNodes[0]);else this[r].insertBefore(t,this[r].childNodes[0]);return this}function Tg(t){const e=[];for(let r=0;r<this.length;r+=1)null!==this[r].parentNode&&(t?og(this[r].parentNode).is(t)&&e.push(this[r].parentNode):e.push(this[r].parentNode));return og(e)}function Ng(t){const e=[];for(let r=0;r<this.length;r+=1){let n=this[r].parentNode;for(;n;)t?og(n).is(t)&&e.push(n):e.push(n),n=n.parentNode}return og(e)}function kg(t){const e=[];for(let r=0;r<this.length;r+=1){const n=this[r].querySelectorAll(t);for(let t=0;t<n.length;t+=1)e.push(n[t])}return og(e)}function Pg(t){const e=[];for(let r=0;r<this.length;r+=1){const n=this[r].children;for(let r=0;r<n.length;r+=1)t&&!og(n[r]).is(t)||e.push(n[r])}return og(e)}function Bg(){for(let t=0;t<this.length;t+=1)this[t].parentNode&&this[t].parentNode.removeChild(this[t]);return this}function Ig(){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}og.fn=tg.prototype;const Fg="resize scroll".split(" ");function Rg(t){return function(...e){if(void 0===e[0]){for(let e=0;e<this.length;e+=1)Fg.indexOf(t)<0&&(t in this[e]?this[e][t]():og(this[e]).trigger(t));return this}return this.on(t,...e)}}const Lg=Rg("click"),_g=Rg("focus");let jg=(t=21)=>{let e="",r=crypto.getRandomValues(new Uint8Array(t|=0));for(;t--;)e+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&r[t]];return e};var Mg,zg;var Hg,$g,Ug=function(){if(zg)return Mg;zg=1;var t=9007199254740991,e="[object Arguments]",r="[object Map]",n="[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}",b="[\\ud800-\\udbff][\\udc00-\\udfff]",E="\\u200d",w="(?:"+h+"|"+v+")"+"?",S="["+d+"]?",C=S+w+("(?:"+E+"(?:"+[g,y,b].join("|")+")"+S+w+")*"),D="(?:"+[g+h+"?",h,y,b,p].join("|")+")",O=RegExp(v+"(?="+v+")|"+D+C,"g"),A=RegExp("["+E+c+l+f+d+"]"),x="object"==typeof m&&m&&m.Object===Object&&m,T="object"==typeof self&&self&&self.Object===Object&&self,N=x||T||Function("return this")();function k(t,e){return function(t,e){for(var r=-1,n=t?t.length:0,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}(e,function(e){return t[e]})}function P(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r}function B(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}function I(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,L=Function.prototype,_=Object.prototype,j=N["__core-js_shared__"],M=function(){var t=/[^.]+$/.exec(j&&j.keys&&j.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),z=L.toString,H=_.hasOwnProperty,$=_.toString,U=RegExp("^"+z.call(H).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),V=N.Symbol,G=V?V.iterator:void 0,W=_.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),rt=lt(J),nt=lt(Z);function ot(t,r){var n=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 r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],o=n.length,i=!!o;for(var u in t)!H.call(t,u)||i&&("length"==u||ct(u,o))||n.push(u);return n}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(r=(e=t)&&e.constructor,n="function"==typeof r&&r.prototype||_,e!==n)return q(t);var e,r,n,o=[];for(var i in Object(t))H.call(t,i)&&"constructor"!=i&&o.push(i);return o}function at(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return it(r)?r:void 0}var st=function(t){return $.call(t)};function ct(e,r){return!!(r=null==r?t:r)&&("number"==typeof e||s.test(e))&&e>-1&&e%1==0&&e<r}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)!=r||X&&st(X.resolve())!=n||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 r;case et:return n;case rt:return o;case nt: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?k(t,function(t){return dt(t)?ot(t):ut(t)}(t)):[]}return Mg=function(t){if(!t)return[];if(dt(t))return function(t){return"string"==typeof t||!ft(t)&&vt(t)&&"[object String]"==$.call(t)}(t)?I(t):function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}(t);if(G&&t[G])return function(t){for(var e,r=[];!(e=t.next()).done;)r.push(e.value);return r}(t[G]());var e=st(t);return(e==r?P:e==o?B:gt)(t)},Mg}(),Vg=b(Ug);var Gg,Wg,qg=function(){if($g)return Hg;$g=1;var t=/^\s+|\s+$/g,e=/^[-+]0x[0-9a-f]+$/i,r=/^0b[01]+$/i,n=/^0o[0-7]+$/i,o=parseInt,i="object"==typeof m&&m&&m.Object===Object&&m,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=r.test(i);return a||n.test(i)?o(i.slice(2),a?2:8):e.test(i)?NaN:+i}return Hg=function(t,e,r){var n,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 r=n,i=o;return n=o=void 0,h=e,u=t.apply(i,r)}function b(t){var r=t-s;return void 0===s||r>=e||r<0||g&&t-h>=i}function E(){var t=f();if(b(t))return w(t);a=setTimeout(E,function(t){var r=e-(t-s);return g?l(r,i-(t-h)):r}(t))}function w(t){return a=void 0,y&&n?m(t):(n=o=void 0,u)}function S(){var t=f(),r=b(t);if(n=arguments,o=this,s=t,r){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(r)&&(v=!!r.leading,i=(g="maxWait"in r)?c(p(r.maxWait)||0,e):i,y="trailing"in r?!!r.trailing:y),S.cancel=function(){void 0!==a&&clearTimeout(a),h=0,n=s=o=a=void 0},S.flush=function(){return void 0===a?u:w(f())},S},Hg}(),Kg=b(qg);function Yg(){if(Wg)return Gg;Wg=1;var t="Expected a function",e=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,n=/^0b[01]+$/i,o=/^0o[0-7]+$/i,i=parseInt,u="object"==typeof m&&m&&m.Object===Object&&m,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,r,n){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 r=o,n=i;return o=i=void 0,p=t,a=e.apply(n,r)}function E(t){var e=t-c;return void 0===c||e>=r||e<0||y&&t-p>=u}function w(){var t=d();if(E(t))return S(t);s=setTimeout(w,function(t){var e=r-(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,r),g?b(t):a}(c);if(y)return s=setTimeout(w,r),b(c)}return void 0===s&&(s=setTimeout(w,r)),a}return r=v(r)||0,h(n)&&(g=!!n.leading,u=(y="maxWait"in n)?l(v(n.maxWait)||0,r):u,m="trailing"in n?!!n.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=n.test(t);return a||o.test(t)?i(t.slice(2),a?2:8):r.test(t)?NaN:+t}return Gg=function(e,r,n){var o=!0,i=!0;if("function"!=typeof e)throw new TypeError(t);return h(n)&&(o="leading"in n?!!n.leading:o,i="trailing"in n?!!n.trailing:i),p(e,r,{leading:o,maxWait:r,trailing:i})}}var Xg,Jg=b(Yg()),Zg={};var Qg=function(){if(Xg)return Zg;Xg=1,Object.defineProperty(Zg,"__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"},r={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"},n={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++)n["f"+o]=111+o;function i(t,e,r){e&&!("byKey"in e)&&(r=e,e=null),Array.isArray(t)||(t=[t]);var n=t.map(function(t){return u(t,e)}),o=function(t){return n.some(function(e){return a(e,t)})};return null==r?o:o(r)}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&&!r[y]&&!n[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 r in t){var n=t[r],o=void 0;if(null!=n&&((null!=(o="key"===r&&null!=e.key?e.key.toLowerCase():"which"===r?91===n&&93===e.which?91:e.which:e[r])||!1!==n)&&o!==n))return!1}return!0}function s(t){return t=c(t),n[t]||t.toUpperCase().charCodeAt(0)}function c(t){return t=t.toLowerCase(),t=r[t]||t}return Zg.default=i,Zg.isHotkey=i,Zg.isCodeHotkey=function(t,e){return i(t,e)},Zg.isKeyHotkey=function(t,e){return i(t,{byKey:!0},e)},Zg.parseHotkey=u,Zg.compareHotkey=a,Zg.toKeyCode=s,Zg.toKeyName=c,Zg}();function ty(t){if(ey(t)){for(;t&&ey(t);){t=ry(t).parent}return null!=t?t:null}return t.parentNode}function ey(t){return 11===t.nodeType}function ry(t,e){var r,n,o;const i=t;return null!==(r=i.parent)&&void 0!==r||(i.parent=null!=e?e:null),null!==(n=i.firstChildNode)&&void 0!==n||(i.firstChildNode=t.firstChild),null!==(o=i.lastChildNode)&&void 0!==o||(i.lastChildNode=t.lastChild),i}const ny={createElement:function(t,e){return document.createElement(t,e)},createElementNS:function(t,e,r){return document.createElementNS(t,e,r)},createTextNode:function(t){return document.createTextNode(t)},createDocumentFragment:function(){return ry(document.createDocumentFragment())},createComment:function(t){return document.createComment(t)},insertBefore:function(t,e,r){if(ey(t)){let e=t;for(;e&&ey(e);){e=ry(e).parent}t=null!=e?e:t}ey(e)&&(e=ry(e,t)),r&&ey(r)&&(r=ry(r).firstChildNode),t.insertBefore(e,r)},removeChild:function(t,e){t.removeChild(e)},appendChild:function(t,e){ey(e)&&(e=ry(e,t)),t.appendChild(e)},parentNode:ty,nextSibling:function(t){var e;if(ey(t)){const r=ry(t),n=ty(r);if(n&&r.lastChildNode){const t=Array.from(n.childNodes),o=t.indexOf(r.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:ey};function oy(t,e,r,n,o){return{sel:t,data:e,children:r,text:n,elm:o,key:void 0===e?void 0:e.key}}const iy=Array.isArray;function uy(t){return"string"==typeof t||"number"==typeof t||t instanceof String||t instanceof Number}function ay(t){return void 0===t}function sy(t){return void 0!==t}const cy=oy("",{},[],void 0,void 0);function ly(t,e){var r,n;const o=t.key===e.key,i=(null===(r=t.data)||void 0===r?void 0:r.is)===(null===(n=e.data)||void 0===n?void 0:n.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 fy(t,e,r){var n;const o={};for(let i=e;i<=r;++i){const e=null===(n=t[i])||void 0===n?void 0:n.key;void 0!==e&&(o[e]=i)}return o}const dy=["create","update","remove","destroy","pre","post"];function py(t,e,r){const n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},o=ny;for(const e of dy)for(const r of t){const t=r[e];void 0!==t&&n[e].push(t)}function i(t){const e=t.id?"#"+t.id:"",r=t.getAttribute("class"),n=r?"."+r.split(" ").join("."):"";return oy(o.tagName(t).toLowerCase()+e+n,{},[],void 0,t)}function u(t){return oy(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 r,i;let u,a=t.data;if(void 0!==a){const e=null===(r=a.hook)||void 0===r?void 0:r.init;sy(e)&&(e(t),a=t.data)}const c=t.children,l=t.sel;if("!"===l)ay(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 r=l.indexOf("#"),f=l.indexOf(".",r),d=r>0?r:l.length,p=f>0?f:l.length,h=-1!==r||-1!==f?l.slice(0,Math.min(d,p)):l,v=t.elm=sy(a)&&sy(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<n.create.length;++u)n.create[u](cy,t);if(!uy(t.text)||iy(c)&&0!==c.length||o.appendChild(v,o.createTextNode(t.text)),iy(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;sy(g)&&(null===(i=g.create)||void 0===i||i.call(g,cy,t),g.insert&&e.push(t))}else t.elm=o.createTextNode(t.text);return t.elm}function c(t,e,r,n,i,u){for(;n<=i;++n){const i=r[n];null!=i&&o.insertBefore(t,s(i,u),e)}}function l(t){var e,r;const o=t.data;if(void 0!==o){null===(r=null===(e=null==o?void 0:o.hook)||void 0===e?void 0:e.destroy)||void 0===r||r.call(e,t);for(let e=0;e<n.destroy.length;++e)n.destroy[e](t);if(void 0!==t.children)for(let e=0;e<t.children.length;++e){const r=t.children[e];null!=r&&"string"!=typeof r&&l(r)}}}function f(t,e,r,i){for(var u,s;r<=i;++r){let i,c;const d=e[r];if(null!=d)if(sy(d.sel)){l(d),i=n.remove.length+1,c=a(d.elm,i);for(let t=0;t<n.remove.length;++t)n.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;sy(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,r){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||sy(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 r=0;r<n.update.length;++r)n.update[r](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;ay(e.text)?sy(b)&&sy(E)?b!==E&&function(t,e,r,n){let i,u,a,l,p=0,h=0,v=e.length-1,g=e[0],y=e[v],m=r.length-1,b=r[0],E=r[m];for(;p<=v&&h<=m;)null==g?g=e[++p]:null==y?y=e[--v]:null==b?b=r[++h]:null==E?E=r[--m]:ly(g,b)?(d(g,b,n),g=e[++p],b=r[++h]):ly(y,E)?(d(y,E,n),y=e[--v],E=r[--m]):ly(g,E)?(d(g,E,n),o.insertBefore(t,g.elm,o.nextSibling(y.elm)),g=e[++p],E=r[--m]):ly(y,b)?(d(y,b,n),o.insertBefore(t,y.elm,g.elm),y=e[--v],b=r[++h]):(void 0===i&&(i=fy(e,p,v)),u=i[b.key],ay(u)?(o.insertBefore(t,s(b,n),g.elm),b=r[++h]):ay(i[E.key])?(o.insertBefore(t,s(E,n),o.nextSibling(y.elm)),E=r[--m]):(a=e[u],a.sel!==b.sel?o.insertBefore(t,s(b,n),g.elm):(d(a,b,n),e[u]=void 0,o.insertBefore(t,a.elm,g.elm)),b=r[++h]));h<=m&&(l=null==r[m+1]?null:r[m+1].elm,c(t,l,r,h,m,n)),p<=v&&f(t,e,p,v)}(m,b,E,r):sy(E)?(sy(t.text)&&o.setTextContent(m,""),c(m,null,E,0,E.length-1,r)):sy(b)?f(m,b,0,b.length-1):sy(t.text)&&o.setTextContent(m,""):t.text!==e.text&&(sy(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 r,a,c;const l=[];for(r=0;r<n.pre.length;++r)n.pre[r]();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),ly(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))),r=0;r<l.length;++r)l[r].data.hook.insert(l[r]);for(r=0;r<n.post.length;++r)n.post[r]();return e}}function hy(t,e,r){if(t.ns="http://www.w3.org/2000/svg","foreignObject"!==r&&void 0!==e)for(let t=0;t<e.length;++t){const r=e[t];if("string"==typeof r)continue;const n=r.data;void 0!==n&&hy(n,r.children,r.sel)}}function vy(t,e,r){let n,o,i,u={};if(void 0!==r?(null!==e&&(u=e),iy(r)?n=r:uy(r)?o=r.toString():r&&r.sel&&(n=[r])):null!=e&&(iy(e)?n=e:uy(e)?o=e.toString():e&&e.sel?n=[e]:u=e),void 0!==n)for(i=0;i<n.length;++i)uy(n[i])&&(n[i]=oy(void 0,void 0,void 0,n[i],void 0));return!t.startsWith("svg")||3!==t.length&&"."!==t[3]&&"#"!==t[3]||hy(u,n,t),oy(t,u,n,o,void 0)}function gy(t,e){let r;const n=e.elm;let o=t.data.attrs,i=e.data.attrs;if((o||i)&&o!==i){for(r in o=o||{},i=i||{},i){const t=i[r];o[r]!==t&&(!0===t?n.setAttribute(r,""):!1===t?n.removeAttribute(r):120!==r.charCodeAt(0)?n.setAttribute(r,t):58===r.charCodeAt(3)?n.setAttributeNS("http://www.w3.org/XML/1998/namespace",r,t):58===r.charCodeAt(5)?109===r.charCodeAt(1)?n.setAttributeNS("http://www.w3.org/2000/xmlns/",r,t):n.setAttributeNS("http://www.w3.org/1999/xlink",r,t):n.setAttribute(r,t))}for(r in o)r in i||n.removeAttribute(r)}}const yy={create:gy,update:gy};function my(t,e){let r,n;const o=e.elm;let i=t.data.class,u=e.data.class;if((i||u)&&i!==u){for(n in i=i||{},u=u||{},i)i[n]&&!Object.prototype.hasOwnProperty.call(u,n)&&o.classList.remove(n);for(n in u)r=u[n],r!==i[n]&&o.classList[r?"add":"remove"](n)}}const by={create:my,update:my},Ey=/[A-Z]/g;function wy(t,e){const r=e.elm;let n,o=t.data.dataset,i=e.data.dataset;if(!o&&!i)return;if(o===i)return;o=o||{},i=i||{};const u=r.dataset;for(n in o)n in i||(u?n in u&&delete u[n]:r.removeAttribute("data-"+n.replace(Ey,"-$&").toLowerCase()));for(n in i)o[n]!==i[n]&&(u?u[n]=i[n]:r.setAttribute("data-"+n.replace(Ey,"-$&").toLowerCase(),i[n]))}const Sy={create:wy,update:wy};function Cy(t,e,r){if("function"==typeof t)t.call(e,r,e);else if("object"==typeof t)for(let n=0;n<t.length;n++)Cy(t[n],e,r)}function Dy(t,e){const r=t.type,n=e.data.on;n&&n[r]&&Cy(n[r],e,t)}function Oy(t,e){const r=t.data.on,n=t.listener,o=t.elm,i=e&&e.data.on,u=e&&e.elm;let a;if(r!==i){if(r&&n)if(i)for(a in r)i[a]||o.removeEventListener(a,n,!1);else for(a in r)o.removeEventListener(a,n,!1);if(i){const n=e.listener=t.listener||function t(e){Dy(e,t.vnode)};if(n.vnode=e,r)for(a in i)r[a]||u.addEventListener(a,n,!1);else for(a in i)u.addEventListener(a,n,!1)}}}const Ay={create:Oy,update:Oy,destroy:Oy};function xy(t,e){let r,n,o;const i=e.elm;let u=t.data.props,a=e.data.props;if((u||a)&&u!==a)for(r in u=u||{},a=a||{},a)n=a[r],o=u[r],o===n||"value"===r&&i[r]===n||(i[r]=n)}const Ty={create:xy,update:xy},Ny="function"==typeof(null===window||void 0===window?void 0:window.requestAnimationFrame)?window.requestAnimationFrame.bind(window):setTimeout;let ky=!1;function Py(t,e,r){!function(t){Ny(function(){Ny(t)})}(function(){t[e]=r})}function By(t,e){let r,n;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(n in i)n in u||("-"===n[0]&&"-"===n[1]?o.style.removeProperty(n):o.style[n]="");for(n in u)if(r=u[n],"delayed"===n&&u.delayed)for(const t in u.delayed)r=u.delayed[t],a&&r===i.delayed[t]||Py(o.style,t,r);else"remove"!==n&&r!==i[n]&&("-"===n[0]&&"-"===n[1]?o.style.setProperty(n,r):o.style[n]=r)}const Iy={pre:function(){ky=!1},create:By,update:By,destroy:function(t){let e,r;const n=t.elm,o=t.data.style;if(o&&(e=o.destroy))for(r in e)n.style[r]=e[r]},remove:function(t,e){const r=t.data.style;if(!r||!r.remove)return void e();let n;ky||(t.elm.offsetLeft,ky=!0);const o=t.elm;let i=0;const u=r.remove;let a=0;const s=[];for(n in u)s.push(n),o.style[n]=u[n];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 Fy(t,e){for(const r of t)null!=r&&!1!==r&&""!==r&&(Array.isArray(r)?Fy(r,e):"string"==typeof r||"number"==typeof r||"boolean"==typeof r?e.push(oy(void 0,void 0,void 0,String(r),void 0)):e.push(r));return e}function Ry(t,e,...r){const n=Fy(r,[]);return"function"==typeof t?t(e,n):1===n.length&&!n[0].sel&&n[0].text?vy(t,e,n[0].text):vy(t,e,n)}var Ly,_y;var jy,My,zy,Hy,$y,Uy=function(){if(_y)return Ly;_y=1;var t,e="[object Symbol]",r=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,n=/[\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+"]",b="["+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="(?:"+b+"|"+E+")",T="(?:"+O+"|"+E+")",N="(?:['’](?:d|ll|m|re|s|t|ve))?",k="(?:['’](?:D|LL|M|RE|S|T|VE))?",P="(?:"+v+"|"+w+")"+"?",B="["+l+"]?",I=B+P+("(?:"+A+"(?:"+[S,C,D].join("|")+")"+B+P+")*"),F="(?:"+[y,C,D].join("|")+")"+I,R="(?:"+[S+v+"?",v,C,D,p].join("|")+")",L=RegExp(d,"g"),_=RegExp(v,"g"),j=RegExp(w+"(?="+w+")|"+R+I,"g"),M=RegExp([O+"?"+b+"+"+N+"(?="+[h,O,"$"].join("|")+")",T+"+"+k+"(?="+[h,O+x,"$"].join("|")+")",O+"?"+x+"+"+N,O+"+"+k,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 m&&m&&m.Object===Object&&m,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(j)||[]}(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 r=t+"";return"0"==r&&1/t==-1/0?"-0":r}function Q(t,e,r){var n=t.length;return r=void 0===r?n:r,!e&&r>=n?t:function(t,e,r){var n=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(r=r>o?o:r)<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var i=Array(o);++n<o;)i[n]=t[n+e];return i}(t,e,r)}function tt(t){return null==t?"":Z(t)}var et,rt,nt=(et=function(t,e,r){return e=e.toLowerCase(),t+(r?ot(tt(e).toLowerCase()):e)},function(t){return function(t,e,r){for(var n=-1,o=t?t.length:0;++n<o;)r=e(r,t[n],n,t);return r}(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(r)||[]}(t):t.match(e)||[]}(function(t){return(t=tt(t))&&t.replace(n,G).replace(_,"")}(t).replace(L,"")),et,"")}),ot=(rt="toUpperCase",function(t){var e=W(t=tt(t))?q(t):void 0,r=e?e[0]:t.charAt(0),n=e?Q(e,1).join(""):t.slice(1);return r[rt]()+n});return Ly=nt}(),Vy=b(Uy),Gy={exports:{}},Wy={};function qy(){if(zy)return Wy;zy=1,Object.defineProperty(Wy,"__esModule",{value:!0}),Wy.justErrorsLogger=Wy.debugLogger=void 0;const t=function(){if(My)return jy;function t(t){return t<10?`0${t}`:t.toString()}return My=1,jy=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,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return console.error(`[Uppy] [${t()}]`,...r)}};Wy.justErrorsLogger=e;const r={debug:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return console.debug(`[Uppy] [${t()}]`,...r)},warn:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return console.warn(`[Uppy] [${t()}]`,...r)},error:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return console.error(`[Uppy] [${t()}]`,...r)}};return Wy.debugLogger=r,Wy}function Ky(){if($y)return Hy;$y=1;return Hy={nanoid:(t=21)=>{let e="",r=0|t;for(;r--;)e+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return e},customAlphabet:(t,e=21)=>(r=e)=>{let n="",o=0|r;for(;o--;)n+=t[Math.random()*t.length|0];return n}},Hy}var Yy,Xy,Jy,Zy,Qy,tm,em,rm,nm,om,im,um,am,sm,cm,lm,fm,dm,pm,hm,vm,gm,ym,mm,bm,Em,wm,Sm,Cm,Dm,Om,Am={};function xm(){return Xy?Yy:(Xy=1,Yy=function(t){if("number"!=typeof t||isNaN(t))throw new TypeError("Expected a number, got "+typeof t);var e=t<0,r=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(e&&(t=-t),t<1)return(e?"-":"")+t+" B";var n=Math.min(Math.floor(Math.log(t)/Math.log(1024)),r.length-1);t=Number(t/Math.pow(1024,n));var o=r[n];return t>=10||t%1==0?(e?"-":"")+t.toFixed(0)+" "+o:(e?"-":"")+t.toFixed(1)+" "+o})}function Tm(){if(Zy)return Jy;function t(t,e){this.text=t=t||"",this.hasWild=~t.indexOf("*"),this.separator=e,this.parts=t.split(e)}return Zy=1,t.prototype.match=function(t){var e,r,n=!0,o=this.parts,i=o.length;if("string"==typeof t||t instanceof String)if(this.hasWild||this.text==t){for(r=(t||"").split(this.separator),e=0;n&&e<i;e++)"*"!==o[e]&&(n=e<r.length&&o[e]===r[e]);n=n&&r}else n=!1;else if("function"==typeof t.splice)for(n=[],e=t.length;e--;)this.match(t[e])&&(n[n.length]=t[e]);else if("object"==typeof t)for(var u in n={},t)this.match(u)&&(n[u]=t[u]);return n},Jy=function(e,r,n){var o=new t(e,n||/[\/\.]/);return void 0!==r?o.match(r):o},Jy}function Nm(){if(em)return Am;em=1,Object.defineProperty(Am,"__esModule",{value:!0}),Am.defaultOptions=Am.RestrictionError=Am.Restricter=void 0;const t=xm(),e=function(){if(tm)return Qy;tm=1;var t=Tm(),e=/[\/\+\.]/;return Qy=function(r,n){function o(n){var o=t(n,r,e);return o&&o.length>=2}return n?o(n.split(";")[0]):o}}();Am.defaultOptions={maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]};class r extends Error{constructor(){super(...arguments),this.isRestriction=!0}}Am.RestrictionError=r,"undefined"==typeof AggregateError&&(globalThis.AggregateError=class extends Error{constructor(t,e){super(e),this.errors=t}});return Am.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(n,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 r(`${this.i18n("youCanOnlyUploadX",{smart_count:s})}`)}if(c){if(!c.some(t=>t.includes("/")?!!n.type&&e(n.type.replace(/;.*?$/,""),t):!("."!==t[0]||!n.extension)&&n.extension.toLowerCase()===t.slice(1).toLowerCase())){const t=c.join(", ");throw new r(this.i18n("youCanOnlyUploadFileTypes",{types:t}))}}if(a&&null!=n.size){const e=o.reduce((t,e)=>t+e.size,n.size);if(e>a)throw new r(this.i18n("exceedsSize",{size:t(a),file:n.name}))}if(i&&null!=n.size&&n.size>i)throw new r(this.i18n("exceedsSize",{size:t(i),file:n.name}));if(u&&null!=n.size&&n.size<u)throw new r(this.i18n("inferiorSize",{size:t(u)}))}validateMinNumberOfFiles(t){const{minNumberOfFiles:e}=this.getOpts().restrictions;if(Object.keys(t).length<e)throw new r(this.i18n("youHaveToAtLeastSelectX",{smart_count:e}))}getMissingRequiredMetaFields(t){const e=new r(this.i18n("missingRequiredMetaFieldOnFile",{fileName:t.name})),{requiredMetaFields:n}=this.getOpts().restrictions,o=Object.prototype.hasOwnProperty,i=[];for(const e of n)o.call(t.meta,e)&&""!==t.meta[e]||i.push(e);return{missingFields:i,error:e}}},Am}function km(){if(nm)return rm;return nm=1,rm=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}function Pm(){if(im)return om;function t(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}im=1;var e=0;function r(t){return"__private_"+e+++"_"+t}const n=km();function o(t,e,r){const n=[];return t.forEach(t=>"string"!=typeof t?n.push(t):e[Symbol.split](t).forEach((t,e,o)=>{""!==t&&n.push(t),e<o.length-1&&n.push(r)})),n}
7
+ */function rp(e){return"[object Object]"===Object.prototype.toString.call(e)}function op(e){var t,n;return!1!==rp(e)&&(void 0===(t=e.constructor)||!1!==rp(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}function ip(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 ap(e){return!!e&&!!e[Wp]}function sp(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)===Gp}(e)||Array.isArray(e)||!!e[Vp]||!!(null===(t=e.constructor)||void 0===t?void 0:t[Vp])||fp(e)||pp(e))}function up(e,t,n){void 0===n&&(n=!1),0===lp(e)?(n?Object.keys:qp)(e).forEach(function(r){n&&"symbol"==typeof r||t(r,e[r],e)}):e.forEach(function(n,r){return t(r,n,e)})}function lp(e){var t=e[Wp];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:fp(e)?2:pp(e)?3:0}function cp(e,t){return 2===lp(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function dp(e,t,n){var r=lp(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function fp(e){return Hp&&e instanceof Map}function pp(e){return zp&&e instanceof Set}function hp(e){return e.o||e.t}function gp(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Kp(e);delete t[Wp];for(var n=qp(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 vp(e,t){return void 0===t&&(t=!1),yp(e)||ap(e)||!sp(e)||(lp(e)>1&&(e.set=e.add=e.clear=e.delete=mp),Object.freeze(e),t&&up(e,function(e,t){return vp(t,!0)},!0)),e}function mp(){ip(2)}function yp(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function bp(e){var t=Yp[e];return t||ip(18,e),t}function Ep(){return Mp}function Cp(e,t){t&&(bp("Patches"),e.u=[],e.s=[],e.v=t)}function Dp(e){wp(e),e.p.forEach(Ap),e.p=null}function wp(e){e===Mp&&(Mp=e.l)}function Sp(e){return Mp={p:[],l:Mp,h:e,m:!0,_:0}}function Ap(e){var t=e[Wp];0===t.i||1===t.i?t.j():t.g=!0}function xp(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.O||bp("ES5").S(t,e,r),r?(n[Wp].P&&(Dp(t),ip(4)),sp(e)&&(e=Op(t,e),t.l||Bp(t,e)),t.u&&bp("Patches").M(n[Wp].t,e,t.u,t.s)):e=Op(t,n,[]),Dp(t),t.u&&t.v(t.u,t.s),e!==Up?e:void 0}function Op(e,t,n){if(yp(t))return t;var r=t[Wp];if(!r)return up(t,function(o,i){return Np(e,r,t,o,i,n)},!0),t;if(r.A!==e)return t;if(!r.P)return Bp(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=gp(r.k):r.o,i=o,a=!1;3===r.i&&(i=new Set(o),o.clear(),a=!0),up(i,function(t,i){return Np(e,r,o,t,i,n,a)}),Bp(e,o,!1),n&&e.u&&bp("Patches").N(r,n,e.u,e.s)}return r.o}function Np(e,t,n,r,o,i,a){if(ap(o)){var s=Op(e,o,i&&t&&3!==t.i&&!cp(t.R,r)?i.concat(r):void 0);if(dp(n,r,s),!ap(s))return;e.m=!1}else a&&n.add(o);if(sp(o)&&!yp(o)){if(!e.h.D&&e._<1)return;Op(e,o),t&&t.A.l||Bp(e,o)}}function Bp(e,t,n){void 0===n&&(n=!1),!e.l&&e.h.D&&e.m&&vp(t,n)}function Tp(e,t){var n=e[Wp];return(n?hp(n):e)[t]}function kp(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 Fp(e){e.P||(e.P=!0,e.l&&Fp(e.l))}function Ip(e){e.o||(e.o=gp(e.t))}function Pp(e,t,n){var r=fp(t)?bp("MapSet").F(t,n):pp(t)?bp("MapSet").T(t,n):e.O?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:Ep(),P:!1,I:!1,R:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,i=Xp;n&&(o=[r],i=Zp);var a=Proxy.revocable(o,i),s=a.revoke,u=a.proxy;return r.k=u,r.j=s,u}(t,n):bp("ES5").J(t,n);return(n?n.A:Ep()).p.push(r),r}function _p(e){return ap(e)||ip(22,e),function e(t){if(!sp(t))return t;var n,r=t[Wp],o=lp(t);if(r){if(!r.P&&(r.i<4||!bp("ES5").K(r)))return r.t;r.I=!0,n=Lp(t,o),r.I=!1}else n=Lp(t,o);return up(n,function(t,o){r&&function(e,t){return 2===lp(e)?e.get(t):e[t]}(r.t,t)===o||dp(n,t,e(o))}),3===o?new Set(n):n}(e)}function Lp(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return gp(e)}var Rp,Mp,jp="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Hp="undefined"!=typeof Map,zp="undefined"!=typeof Set,$p="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Up=jp?Symbol.for("immer-nothing"):((Rp={})["immer-nothing"]=!0,Rp),Vp=jp?Symbol.for("immer-draftable"):"__$immer_draftable",Wp=jp?Symbol.for("immer-state"):"__$immer_state",Gp=""+Object.prototype.constructor,qp="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Kp=Object.getOwnPropertyDescriptors||function(e){var t={};return qp(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},Yp={},Xp={get:function(e,t){if(t===Wp)return e;var n=hp(e);if(!cp(n,t))return function(e,t,n){var r,o=kp(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,n,t);var r=n[t];return e.I||!sp(r)?r:r===Tp(e.t,t)?(Ip(e),e.o[t]=Pp(e.A.h,r,e)):r},has:function(e,t){return t in hp(e)},ownKeys:function(e){return Reflect.ownKeys(hp(e))},set:function(e,t,n){var r=kp(hp(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=Tp(hp(e),t),i=null==o?void 0:o[Wp];if(i&&i.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(n,o)&&(void 0!==n||cp(e.t,t)))return!0;Ip(e),Fp(e)}return e.o[t]===n&&(void 0!==n||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return void 0!==Tp(e.t,t)||t in e.t?(e.R[t]=!1,Ip(e),Fp(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=hp(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){ip(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){ip(12)}},Zp={};up(Xp,function(e,t){Zp[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Zp.deleteProperty=function(e,t){return Zp.set.call(this,e,t,void 0)},Zp.set=function(e,t,n){return Xp.set.call(this,e[0],t,n,e[0])};var Jp=function(){function e(e){var t=this;this.O=$p,this.D=!0,this.produce=function(e,n,r){if("function"==typeof e&&"function"!=typeof n){var o=n;n=e;var i=t;return function(e){var t=this;void 0===e&&(e=o);for(var r=arguments.length,a=Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];return i.produce(e,function(e){var r;return(r=n).call.apply(r,[t,e].concat(a))})}}var a;if("function"!=typeof n&&ip(6),void 0!==r&&"function"!=typeof r&&ip(7),sp(e)){var s=Sp(t),u=Pp(t,e,void 0),l=!0;try{a=n(u),l=!1}finally{l?Dp(s):wp(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then(function(e){return Cp(s,r),xp(e,s)},function(e){throw Dp(s),e}):(Cp(s,r),xp(a,s))}if(!e||"object"!=typeof e){if(void 0===(a=n(e))&&(a=e),a===Up&&(a=void 0),t.D&&vp(a,!0),r){var c=[],d=[];bp("Patches").M(e,a,c,d),r(c,d)}return a}ip(21,e)},this.produceWithPatches=function(e,n){if("function"==typeof e)return function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return t.produceWithPatches(n,function(t){return e.apply(void 0,[t].concat(o))})};var r,o,i=t.produce(e,n,function(e,t){r=e,o=t});return"undefined"!=typeof Promise&&i instanceof Promise?i.then(function(e){return[e,r,o]}):[i,r,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 t=e.prototype;return t.createDraft=function(e){sp(e)||ip(8),ap(e)&&(e=_p(e));var t=Sp(this),n=Pp(this,e,void 0);return n[Wp].C=!0,wp(t),n},t.finishDraft=function(e,t){var n=(e&&e[Wp]).A;return Cp(n,t),xp(void 0,n)},t.setAutoFreeze=function(e){this.D=e},t.setUseProxies=function(e){e&&!$p&&ip(20),this.O=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var o=bp("Patches").$;return ap(e)?o(e,t):this.produce(e,function(e){return o(e,t)})},e}(),Qp=new Jp,eh=Qp.produce;Qp.produceWithPatches.bind(Qp),Qp.setAutoFreeze.bind(Qp),Qp.setUseProxies.bind(Qp),Qp.applyPatches.bind(Qp);var th=Qp.createDraft.bind(Qp),nh=Qp.finishDraft.bind(Qp);function rh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var oh=new WeakMap,ih=new WeakMap,ah=new WeakMap,sh=new WeakMap,uh=new WeakMap,lh=new WeakMap,ch=new WeakMap;function dh(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 fh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dh(Object(n),!0).forEach(function(t){rh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ph(e,t){if(null==e)return{};var n,r,o=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,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}var hh,gh=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!t,r=t?Ch(e):e,o=hh.None,i=hh.None,a=0,s=null;for(var u of r){var l=u.codePointAt(0);if(!l)break;var c=Ih(u,l);if([o,i]=n?[i,c]:[c,o],Ph(o,hh.ZWJ)&&Ph(i,hh.ExtPict)&&!Mh(n?e.substring(0,a):e.substring(0,e.length-a)))break;if(Ph(o,hh.RI)&&Ph(i,hh.RI)&&!(s=null!==s?!s:!!n||Hh(e.substring(0,e.length-a))))break;if(o!==hh.None&&i!==hh.None&&Lh(o,i))break;a+=u.length}return a||1},vh=/\s/,mh=/[\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]/,yh=/['\u2018\u2019]/,bh=(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)]},Eh=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(vh.test(t))return!1;if(yh.test(t)){var o=gh(n,r),[i,a]=bh(n,o,r);if(e(i,a,r))return!0}return!mh.test(t)},Ch=function*(e){for(var t=e.length-1,n=0;n<e.length;n++){var r=e.charAt(t-n);if(wh(r.charCodeAt(0))){var o=e.charAt(t-n-1);if(Dh(o.charCodeAt(0))){yield o+r,n++;continue}}yield r}},Dh=e=>e>=55296&&e<=56319,wh=e=>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"}(hh||(hh={}));var Sh=/^(?:[\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])$/,Ah=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,xh=/^(?:[\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])$/,Oh=/^[\u1100-\u115F\uA960-\uA97C]$/,Nh=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,Bh=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,Th=/^[\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]$/,kh=/^[\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]$/,Fh=/^(?:[\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])$/,Ih=(e,t)=>{var n=hh.Any;return-1!==e.search(Sh)&&(n|=hh.Extend),8205===t&&(n|=hh.ZWJ),t>=127462&&t<=127487&&(n|=hh.RI),-1!==e.search(Ah)&&(n|=hh.Prepend),-1!==e.search(xh)&&(n|=hh.SpacingMark),-1!==e.search(Oh)&&(n|=hh.L),-1!==e.search(Nh)&&(n|=hh.V),-1!==e.search(Bh)&&(n|=hh.T),-1!==e.search(Th)&&(n|=hh.LV),-1!==e.search(kh)&&(n|=hh.LVT),-1!==e.search(Fh)&&(n|=hh.ExtPict),n};function Ph(e,t){return 0!==(e&t)}var _h=[[hh.L,hh.L|hh.V|hh.LV|hh.LVT],[hh.LV|hh.V,hh.V|hh.T],[hh.LVT|hh.T,hh.T],[hh.Any,hh.Extend|hh.ZWJ],[hh.Any,hh.SpacingMark],[hh.Prepend,hh.Any],[hh.ZWJ,hh.ExtPict],[hh.RI,hh.RI]];function Lh(e,t){return-1===_h.findIndex(n=>Ph(e,n[0])&&Ph(t,n[1]))}var Rh=/(?:[\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$/,Mh=e=>-1!==e.search(Rh),jh=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,Hh=e=>{var t=e.match(jh);return null!==t&&t[0].length/2%2==1},zh=e=>op(e)&&eg.isNodeList(e.children)&&!Kh.isEditor(e),$h={isAncestor:e=>op(e)&&eg.isNodeList(e.children),isElement:zh,isElementList:e=>Array.isArray(e)&&e.every(e=>$h.isElement(e)),isElementProps:e=>void 0!==e.children,isElementType:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"type";return zh(e)&&e[n]===t},matches(e,t){for(var n in t)if("children"!==n&&e[n]!==t[n])return!1;return!0}},Uh=["text"],Vh=["text"];function Wh(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 Gh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wh(Object(n),!0).forEach(function(t){rh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var qh=new WeakMap,Kh={above(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{voids:n=!1,mode:r="lowest",at:o=e.selection,match:i}=t;if(o){var a=Kh.path(e,o),s="lowest"===r;for(var[u,l]of Kh.levels(e,{at:a,voids:n,match:i,reverse:s}))if(!Cg.isText(u)&&!og.equals(a,l))return[u,l]}},addMark(e,t,n){e.addMark(t,n)},after(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o={anchor:Kh.point(e,t,{edge:"end"}),focus:Kh.end(e,[])},{distance:i=1}=r,a=0;for(var s of Kh.positions(e,Gh(Gh({},r),{},{at:o}))){if(a>i)break;0!==a&&(n=s),a++}return n},before(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o={anchor:Kh.start(e,[]),focus:Kh.point(e,t,{edge:"start"})},{distance:i=1}=r,a=0;for(var s of Kh.positions(e,Gh(Gh({},r),{},{at:o,reverse:!0}))){if(a>i)break;0!==a&&(n=s),a++}return n},deleteBackward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteBackward(n)},deleteForward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteForward(n)},deleteFragment(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{direction:n="forward"}=t;e.deleteFragment(n)},edges:(e,t)=>[Kh.start(e,t),Kh.end(e,t)],end:(e,t)=>Kh.point(e,t,{edge:"end"}),first(e,t){var n=Kh.path(e,t,{edge:"start"});return Kh.node(e,n)},fragment(e,t){var n=Kh.range(e,t);return eg.fragment(e,n)},hasBlocks:(e,t)=>t.children.some(t=>Kh.isBlock(e,t)),hasInlines:(e,t)=>t.children.some(t=>Cg.isText(t)||Kh.isInline(e,t)),hasTexts:(e,t)=>t.children.every(e=>Cg.isText(e)),insertBreak(e){e.insertBreak()},insertSoftBreak(e){e.insertSoftBreak()},insertFragment(e,t){e.insertFragment(t)},insertNode(e,t){e.insertNode(t)},insertText(e,t){e.insertText(t)},isBlock:(e,t)=>$h.isElement(t)&&!e.isInline(t),isEditor(e){var t=qh.get(e);if(void 0!==t)return t;if(!op(e))return!1;var n="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||op(e.marks))&&(null===e.selection||fg.isRange(e.selection))&&eg.isNodeList(e.children)&&rg.isOperationList(e.operations);return qh.set(e,n),n},isEnd(e,t,n){var r=Kh.end(e,n);return ug.equals(t,r)},isEdge:(e,t,n)=>Kh.isStart(e,t,n)||Kh.isEnd(e,t,n),isEmpty(e,t){var{children:n}=t,[r]=n;return 0===n.length||1===n.length&&Cg.isText(r)&&""===r.text&&!e.isVoid(t)},isInline:(e,t)=>$h.isElement(t)&&e.isInline(t),isNormalizing(e){var t=sh.get(e);return void 0===t||t},isStart(e,t,n){if(0!==t.offset)return!1;var r=Kh.start(e,n);return ug.equals(t,r)},isVoid:(e,t)=>$h.isElement(t)&&e.isVoid(t),last(e,t){var n=Kh.path(e,t,{edge:"end"});return Kh.node(e,n)},leaf(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Kh.path(e,t,n);return[eg.leaf(e,r),r]},*levels(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,reverse:r=!1,voids:o=!1}=t,{match:i}=t;if(null==i&&(i=()=>!0),n){var a=[],s=Kh.path(e,n);for(var[u,l]of eg.levels(e,s))if(i(u,l)&&(a.push([u,l]),!o&&Kh.isVoid(e,u)))break;r&&a.reverse(),yield*a}},marks(e){var{marks:t,selection:n}=e;if(!n)return null;if(t)return t;if(fg.isExpanded(n)){var[r]=Kh.nodes(e,{match:Cg.isText});if(r){var[o]=r;return ph(o,Uh)}return{}}var{anchor:i}=n,{path:a}=i,[s]=Kh.leaf(e,a);if(0===i.offset){var u=Kh.previous(e,{at:a,match:Cg.isText}),l=Kh.above(e,{match:t=>Kh.isBlock(e,t)});if(u&&l){var[c,d]=u,[,f]=l;og.isAncestor(f,d)&&(s=c)}}return ph(s,Vh)},next(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=Kh.after(e,i,{voids:r});if(a){var[,s]=Kh.last(e,[]),u=[a.path,s];if(og.isPath(i)&&0===i.length)throw new Error("Cannot get the next node from the root node!");if(null==o)if(og.isPath(i)){var[l]=Kh.parent(e,i);o=e=>l.children.includes(e)}else o=()=>!0;var[c]=Kh.nodes(e,{at:u,match:o,mode:n,voids:r});return c}}},node(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Kh.path(e,t,n);return[eg.get(e,r),r]},*nodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,mode:r="all",universal:o=!1,reverse:i=!1,voids:a=!1}=t,{match:s}=t;if(s||(s=()=>!0),n){var u,l;if(Xh.isSpan(n))u=n[0],l=n[1];else{var c=Kh.path(e,n,{edge:"start"}),d=Kh.path(e,n,{edge:"end"});u=i?d:c,l=i?c:d}var f,p=eg.nodes(e,{reverse:i,from:u,to:l,pass:t=>{var[n]=t;return!a&&Kh.isVoid(e,n)}}),h=[];for(var[g,v]of p){var m=f&&0===og.compare(v,f[1]);if("highest"!==r||!m)if(s(g,v))if("lowest"===r&&m)f=[g,v];else{var y="lowest"===r?f:[g,v];y&&(o?h.push(y):yield y),f=[g,v]}else if(o&&!m&&Cg.isText(g))return}"lowest"===r&&f&&(o?h.push(f):yield f),o&&(yield*h)}},normalize(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{force:n=!1}=t,r=e=>oh.get(e)||[],o=e=>{var t=r(e).pop(),n=t.join(",");return(e=>ih.get(e)||new Set)(e).delete(n),t};if(Kh.isNormalizing(e)){if(n){var i=Array.from(eg.nodes(e),e=>{var[,t]=e;return t}),a=new Set(i.map(e=>e.join(",")));oh.set(e,i),ih.set(e,a)}0!==r(e).length&&Kh.withoutNormalizing(e,()=>{for(var t of r(e))if(eg.has(e,t)){var n=Kh.node(e,t),[i,a]=n;$h.isElement(i)&&0===i.children.length&&e.normalizeNode(n)}for(var s=42*r(e).length,u=0;0!==r(e).length;){if(u>s)throw new Error("\n Could not completely normalize the editor after ".concat(s," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.\n "));var l=o(e);if(eg.has(e,l)){var c=Kh.node(e,l);e.normalizeNode(c)}u++}})}},parent(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Kh.path(e,t,n),o=og.parent(r);return Kh.node(e,o)},path(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{depth:r,edge:o}=n;if(og.isPath(t))if("start"===o){var[,i]=eg.first(e,t);t=i}else if("end"===o){var[,a]=eg.last(e,t);t=a}return fg.isRange(t)&&(t="start"===o?fg.start(t):"end"===o?fg.end(t):og.common(t.anchor.path,t.focus.path)),ug.isPoint(t)&&(t=t.path),null!=r&&(t=t.slice(0,r)),t},hasPath:(e,t)=>eg.has(e,t),pathRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return Kh.pathRefs(e).delete(o),o.current=null,t}};return Kh.pathRefs(e).add(o),o},pathRefs(e){var t=uh.get(e);return t||(t=new Set,uh.set(e,t)),t},point(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{edge:r="start"}=n;if(og.isPath(t)){var o;if("end"===r){var[,i]=eg.last(e,t);o=i}else{var[,a]=eg.first(e,t);o=a}var s=eg.get(e,o);if(!Cg.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(fg.isRange(t)){var[u,l]=fg.edges(t);return"start"===r?u:l}return t},pointRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return Kh.pointRefs(e).delete(o),o.current=null,t}};return Kh.pointRefs(e).add(o),o},pointRefs(e){var t=lh.get(e);return t||(t=new Set,lh.set(e,t)),t},*positions(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,unit:r="offset",reverse:o=!1,voids:i=!1}=t;if(n){var a=Kh.range(e,n),[s,u]=fg.edges(a),l=o?u:s,c=!1,d="",f=0,p=0,h=0;for(var[g,v]of Kh.nodes(e,{at:n,reverse:o,voids:i})){if($h.isElement(g)){if(!i&&e.isVoid(g)){yield Kh.start(e,v);continue}if(e.isInline(g))continue;if(Kh.hasInlines(e,g)){var m=og.isAncestor(v,u.path)?u:Kh.end(e,v),y=og.isAncestor(v,s.path)?s:Kh.start(e,v);d=Kh.string(e,{anchor:y,focus:m},{voids:i}),c=!0}}if(Cg.isText(g)){var b=og.equals(v,l.path);for(b?(p=o?l.offset:g.text.length-l.offset,h=l.offset):(p=g.text.length,h=o?p:0),(b||c||"offset"===r)&&(yield{path:v,offset:h},c=!1);;){if(0===f){if(""===d)break;f=E(d,r,o),d=bh(d,f,o)[1]}if(h=o?h-f:h+f,(p-=f)<0){f=-p;break}f=0,yield{path:v,offset:h}}}}}function E(e,t,n){return"character"===t?gh(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=gh(e,t),[i,a]=bh(e,o,t);if(Eh(i,a,t))r=!0,n+=o;else{if(r)break;n+=o}e=a}return n}(e,n):"line"===t||"block"===t?e.length:1}},previous(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=Kh.before(e,i,{voids:r});if(a){var[,s]=Kh.first(e,[]),u=[a.path,s];if(og.isPath(i)&&0===i.length)throw new Error("Cannot get the previous node from the root node!");if(null==o)if(og.isPath(i)){var[l]=Kh.parent(e,i);o=e=>l.children.includes(e)}else o=()=>!0;var[c]=Kh.nodes(e,{reverse:!0,at:u,match:o,mode:n,voids:r});return c}}},range:(e,t,n)=>fg.isRange(t)&&!n?t:{anchor:Kh.start(e,t),focus:Kh.end(e,n||t)},rangeRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return Kh.rangeRefs(e).delete(o),o.current=null,t}};return Kh.rangeRefs(e).add(o),o},rangeRefs(e){var t=ch.get(e);return t||(t=new Set,ch.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){sh.set(e,t)},start:(e,t)=>Kh.point(e,t,{edge:"start"}),string(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,o=Kh.range(e,t),[i,a]=fg.edges(o),s="";for(var[u,l]of Kh.nodes(e,{at:o,match:Cg.isText,voids:r})){var c=u.text;og.equals(l,a.path)&&(c=c.slice(0,a.offset)),og.equals(l,i.path)&&(c=c.slice(i.offset)),s+=c}return s},unhangRange(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,[o,i]=fg.edges(t);if(0!==o.offset||0!==i.offset||fg.isCollapsed(t))return t;var a=Kh.above(e,{at:i,match:t=>Kh.isBlock(e,t)}),s=a?a[1]:[],u={anchor:Kh.start(e,o),focus:i},l=!0;for(var[c,d]of Kh.nodes(e,{at:u,match:Cg.isText,reverse:!0,voids:r}))if(l)l=!1;else if(""!==c.text||og.isBefore(d,s)){i={path:d,offset:c.text.length};break}return{anchor:o,focus:i}},void(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Kh.above(e,Gh(Gh({},t),{},{match:t=>Kh.isVoid(e,t)}))},withoutNormalizing(e,t){var n=Kh.isNormalizing(e);Kh.setNormalizing(e,!1);try{t()}finally{Kh.setNormalizing(e,n)}Kh.normalize(e)}},Yh={isLocation:e=>og.isPath(e)||ug.isPoint(e)||fg.isRange(e)},Xh={isSpan:e=>Array.isArray(e)&&2===e.length&&e.every(og.isPath)},Zh=["children"],Jh=["text"],Qh=new WeakMap,eg={ancestor(e,t){var n=eg.get(e,t);if(Cg.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(gg.stringify(n)));return n},*ancestors(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of og.ancestors(t,n)){var o=[eg.ancestor(e,r),r];yield o}},child(e,t){if(Cg.isText(e))throw new Error("Cannot get the child of a text node: ".concat(gg.stringify(e)));var n=e.children[t];if(null==n)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(gg.stringify(e)));return n},*children(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{reverse:r=!1}=n,o=eg.ancestor(e,t),{children:i}=o,a=r?i.length-1:0;r?a>=0:a<i.length;){var s=eg.child(o,a),u=t.concat(a);yield[s,u],a=r?a-1:a+1}},common(e,t,n){var r=og.common(t,n);return[eg.get(e,r),r]},descendant(e,t){var n=eg.get(e,t);if(Kh.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(gg.stringify(n)));return n},*descendants(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of eg.nodes(e,t))0!==r.length&&(yield[n,r])},*elements(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of eg.nodes(e,t))$h.isElement(n)&&(yield[n,r])},extractProps:e=>$h.isAncestor(e)?ph(e,Zh):ph(e,Jh),first(e,t){for(var n=t.slice(),r=eg.get(e,n);r&&!Cg.isText(r)&&0!==r.children.length;)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(Cg.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(gg.stringify(e)));var n=eh({children:e.children},e=>{var[n,r]=fg.edges(t),o=eg.nodes(e,{reverse:!0,pass:e=>{var[,n]=e;return!fg.includes(t,n)}});for(var[,i]of o){if(!fg.includes(t,i)){var a=eg.parent(e,i),s=i[i.length-1];a.children.splice(s,1)}if(og.equals(i,r.path)){var u=eg.leaf(e,i);u.text=u.text.slice(0,r.offset)}if(og.equals(i,n.path)){var l=eg.leaf(e,i);l.text=l.text.slice(n.offset)}}Kh.isEditor(e)&&(e.selection=null)});return n.children},get(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(Cg.isText(n)||!n.children[o])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(gg.stringify(e)));n=n.children[o]}return n},has(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(Cg.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode:e=>Cg.isText(e)||$h.isElement(e)||Kh.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=Qh.get(e);if(void 0!==t)return t;var n=e.every(e=>eg.isNode(e));return Qh.set(e,n),n},last(e,t){for(var n=t.slice(),r=eg.get(e,n);r&&!Cg.isText(r)&&0!==r.children.length;){var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf(e,t){var n=eg.get(e,t);if(!Cg.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(gg.stringify(n)));return n},*levels(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of og.levels(t,n)){var o=eg.get(e,r);yield[o,r]}},matches:(e,t)=>$h.isElement(e)&&$h.isElementProps(t)&&$h.matches(e,t)||Cg.isText(e)&&Cg.isTextProps(t)&&Cg.matches(e,t),*nodes(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{pass:n,reverse:r=!1}=t,{from:o=[],to:i}=t,a=new Set,s=[],u=e;!i||!(r?og.isBefore(s,i):og.isAfter(s,i));)if(a.has(u)||(yield[u,s]),a.has(u)||Cg.isText(u)||0===u.children.length||null!=n&&!1!==n([u,s])){if(0===s.length)break;if(!r){var l=og.next(s);if(eg.has(e,l)){s=l,u=eg.get(e,s);continue}}if(r&&0!==s[s.length-1])s=og.previous(s),u=eg.get(e,s);else s=og.parent(s),u=eg.get(e,s),a.add(u)}else{a.add(u);var c=r?u.children.length-1:0;og.isAncestor(s,o)&&(c=o[s.length]),s=s.concat(c),u=eg.get(e,s)}},parent(e,t){var n=og.parent(t),r=eg.get(e,n);if(Cg.isText(r))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return r},string:e=>Cg.isText(e)?e.text:e.children.map(eg.string).join(""),*texts(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of eg.nodes(e,t))Cg.isText(n)&&(yield[n,r])}};function tg(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 ng(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tg(Object(n),!0).forEach(function(t){rh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var rg={isNodeOperation:e=>rg.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!op(e))return!1;switch(e.type){case"insert_node":case"remove_node":return og.isPath(e.path)&&eg.isNode(e.node);case"insert_text":case"remove_text":return"number"==typeof e.offset&&"string"==typeof e.text&&og.isPath(e.path);case"merge_node":return"number"==typeof e.position&&og.isPath(e.path)&&op(e.properties);case"move_node":return og.isPath(e.path)&&og.isPath(e.newPath);case"set_node":return og.isPath(e.path)&&op(e.properties)&&op(e.newProperties);case"set_selection":return null===e.properties&&fg.isRange(e.newProperties)||null===e.newProperties&&fg.isRange(e.properties)||op(e.properties)&&op(e.newProperties);case"split_node":return og.isPath(e.path)&&"number"==typeof e.position&&op(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every(e=>rg.isOperation(e)),isSelectionOperation:e=>rg.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>rg.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return ng(ng({},e),{},{type:"remove_node"});case"insert_text":return ng(ng({},e),{},{type:"remove_text"});case"merge_node":return ng(ng({},e),{},{type:"split_node",path:og.previous(e.path)});case"move_node":var{newPath:t,path:n}=e;if(og.equals(t,n))return e;if(og.isSibling(n,t))return ng(ng({},e),{},{path:t,newPath:n});var r=og.transform(n,e),o=og.transform(og.next(n),e);return ng(ng({},e),{},{path:r,newPath:o});case"remove_node":return ng(ng({},e),{},{type:"insert_node"});case"remove_text":return ng(ng({},e),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=e;return ng(ng({},e),{},{properties:a,newProperties:i});case"set_selection":var{properties:s,newProperties:u}=e;return ng(ng({},e),{},null==s?{properties:u,newProperties:null}:null==u?{properties:null,newProperties:s}:{properties:u,newProperties:s});case"split_node":return ng(ng({},e),{},{type:"merge_node",path:og.next(e.path)})}}},og={ancestors(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=og.levels(e,t);return r=n?r.slice(1):r.slice(0,-1)},common(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(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(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return og.equals(r,o)&&i>a},endsAt(e,t){var n=e.length,r=e.slice(0,n),o=t.slice(0,n);return og.equals(r,o)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return og.equals(r,o)&&i<a},equals:(e,t)=>e.length===t.length&&e.every((e,n)=>e===t[n]),hasPrevious:e=>e[e.length-1]>0,isAfter:(e,t)=>1===og.compare(e,t),isAncestor:(e,t)=>e.length<t.length&&0===og.compare(e,t),isBefore:(e,t)=>-1===og.compare(e,t),isChild:(e,t)=>e.length===t.length+1&&0===og.compare(e,t),isCommon:(e,t)=>e.length<=t.length&&0===og.compare(e,t),isDescendant:(e,t)=>e.length>t.length&&0===og.compare(e,t),isParent:(e,t)=>e.length+1===t.length&&0===og.compare(e,t),isPath:e=>Array.isArray(e)&&(0===e.length||"number"==typeof e[0]),isSibling(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]&&og.equals(n,r)},levels(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=[],o=0;o<=e.length;o++)r.push(e.slice(0,o));return n&&r.reverse(),r},next(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(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(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(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(e,t){if(!og.isAncestor(t,e)&&!og.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(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return eh(e,r=>{var{affinity:o="forward"}=n;if(e&&0!==(null==e?void 0:e.length)){if(null===r)return null;switch(t.type){case"insert_node":var{path:i}=t;(og.equals(i,r)||og.endsBefore(i,r)||og.isAncestor(i,r))&&(r[i.length-1]+=1);break;case"remove_node":var{path:a}=t;if(og.equals(a,r)||og.isAncestor(a,r))return null;og.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:s,position:u}=t;og.equals(s,r)||og.endsBefore(s,r)?r[s.length-1]-=1:og.isAncestor(s,r)&&(r[s.length-1]-=1,r[s.length]+=u);break;case"split_node":var{path:l,position:c}=t;if(og.equals(l,r)){if("forward"===o)r[r.length-1]+=1;else if("backward"!==o)return null}else og.endsBefore(l,r)?r[l.length-1]+=1:og.isAncestor(l,r)&&e[l.length]>=c&&(r[l.length-1]+=1,r[l.length]-=c);break;case"move_node":var{path:d,newPath:f}=t;if(og.equals(d,f))return;if(og.isAncestor(d,r)||og.equals(d,r)){var p=f.slice();return og.endsBefore(d,f)&&d.length<f.length&&(p[d.length-1]-=1),p.concat(r.slice(d.length))}og.isSibling(d,f)&&(og.isAncestor(f,r)||og.equals(f,r))?og.endsBefore(d,r)?r[d.length-1]-=1:r[d.length-1]+=1:og.endsBefore(f,r)||og.equals(f,r)||og.isAncestor(f,r)?(og.endsBefore(d,r)&&(r[d.length-1]-=1),r[f.length-1]+=1):og.endsBefore(d,r)&&(og.equals(f,r)&&(r[f.length-1]+=1),r[d.length-1]-=1)}}})}},ig={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=og.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}};function ag(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 sg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ag(Object(n),!0).forEach(function(t){rh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ag(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ug={compare(e,t){var n=og.compare(e.path,t.path);return 0===n?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter:(e,t)=>1===ug.compare(e,t),isBefore:(e,t)=>-1===ug.compare(e,t),equals:(e,t)=>e.offset===t.offset&&og.equals(e.path,t.path),isPoint:e=>op(e)&&"number"==typeof e.offset&&og.isPath(e.path),transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return eh(e,e=>{if(null===e)return null;var{affinity:r="forward"}=n,{path:o,offset:i}=e;switch(t.type){case"insert_node":case"move_node":e.path=og.transform(o,t,n);break;case"insert_text":og.equals(t.path,o)&&(t.offset<i||t.offset===i&&"forward"===r)&&(e.offset+=t.text.length);break;case"merge_node":og.equals(t.path,o)&&(e.offset+=t.position),e.path=og.transform(o,t,n);break;case"remove_text":og.equals(t.path,o)&&t.offset<=i&&(e.offset-=Math.min(i-t.offset,t.text.length));break;case"remove_node":if(og.equals(t.path,o)||og.isAncestor(t.path,o))return null;e.path=og.transform(o,t,n);break;case"split_node":if(og.equals(t.path,o)){if(t.position===i&&null==r)return null;(t.position<i||t.position===i&&"forward"===r)&&(e.offset-=t.position,e.path=og.transform(o,t,sg(sg({},n),{},{affinity:"forward"})))}else e.path=og.transform(o,t,n)}})}},lg={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=ug.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},cg=["anchor","focus"];function dg(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 fg={edges(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:o}=e;return fg.isBackward(e)===n?[r,o]:[o,r]},end(e){var[,t]=fg.edges(e);return t},equals:(e,t)=>ug.equals(e.anchor,t.anchor)&&ug.equals(e.focus,t.focus),includes(e,t){if(fg.isRange(t)){if(fg.includes(e,t.anchor)||fg.includes(e,t.focus))return!0;var[n,r]=fg.edges(e),[o,i]=fg.edges(t);return ug.isBefore(n,o)&&ug.isAfter(r,i)}var[a,s]=fg.edges(e),u=!1,l=!1;return ug.isPoint(t)?(u=ug.compare(t,a)>=0,l=ug.compare(t,s)<=0):(u=og.compare(t,a.path)>=0,l=og.compare(t,s.path)<=0),u&&l},intersection(e,t){var n=ph(e,cg),[r,o]=fg.edges(e),[i,a]=fg.edges(t),s=ug.isBefore(r,i)?i:r,u=ug.isBefore(o,a)?o:a;return ug.isBefore(u,s)?null:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dg(Object(n),!0).forEach(function(t){rh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({anchor:s,focus:u},n)},isBackward(e){var{anchor:t,focus:n}=e;return ug.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return ug.equals(t,n)},isExpanded:e=>!fg.isCollapsed(e),isForward:e=>!fg.isBackward(e),isRange:e=>op(e)&&ug.isPoint(e.anchor)&&ug.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=fg.edges(e);return t},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return eh(e,e=>{if(null===e)return null;var r,o,{affinity:i="inward"}=n;if("inward"===i){var a=fg.isCollapsed(e);fg.isForward(e)?(r="forward",o=a?r:"backward"):(r="backward",o=a?r:"forward")}else"outward"===i?fg.isForward(e)?(r="backward",o="forward"):(r="forward",o="backward"):(r=i,o=i);var s=ug.transform(e.anchor,t,{affinity:r}),u=ug.transform(e.focus,t,{affinity:o});if(!s||!u)return null;e.anchor=s,e.focus=u})}},pg={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=fg.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},hg=void 0,gg={setScrubber(e){hg=e},stringify:e=>JSON.stringify(e,hg)},vg=(e,t)=>{for(var n in e){var r=e[n],o=t[n];if(op(r)&&op(o)){if(!vg(r,o))return!1}else if(Array.isArray(r)&&Array.isArray(o)){if(r.length!==o.length)return!1;for(var i=0;i<r.length;i++)if(r[i]!==o[i])return!1}else if(r!==o)return!1}for(var a in t)if(void 0===e[a]&&void 0!==t[a])return!1;return!0},mg=["text"],yg=["anchor","focus"];function bg(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 Eg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bg(Object(n),!0).forEach(function(t){rh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Cg={equals(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{loose:r=!1}=n;function o(e){return ph(e,mg)}return vg(r?o(e):e,r?o(t):t)},isText:e=>op(e)&&"string"==typeof e.text,isTextList:e=>Array.isArray(e)&&e.every(e=>Cg.isText(e)),isTextProps:e=>void 0!==e.text,matches(e,t){for(var n in t)if("text"!==n&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[Eg({},e)];for(var r of t){var o=ph(r,yg),[i,a]=fg.edges(r),s=[],u=0,l=i.offset,c=a.offset;for(var d of n){var{length:f}=d.text,p=u;if(u+=f,l<=p&&u<=c)Object.assign(d,o),s.push(d);else if(l!==c&&(l===u||c===p)||l>u||c<p||c===p&&0!==p)s.push(d);else{var h=d,g=void 0,v=void 0;if(c<u){var m=c-p;v=Eg(Eg({},h),{},{text:h.text.slice(m)}),h=Eg(Eg({},h),{},{text:h.text.slice(0,m)})}if(l>p){var y=l-p;g=Eg(Eg({},h),{},{text:h.text.slice(0,y)}),h=Eg(Eg({},h),{},{text:h.text.slice(y)})}Object.assign(h,o),g&&s.push(g),s.push(h),v&&s.push(v)}}n=s}return n}};function Dg(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 wg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dg(Object(n),!0).forEach(function(t){rh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Sg={transform(e,t){e.children=th(e.children);var n=e.selection&&th(e.selection);try{n=((e,t,n)=>{switch(n.type){case"insert_node":var{path:r,node:o}=n,i=eg.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)for(var[s,u]of fg.points(t))t[u]=ug.transform(s,n);break;case"insert_text":var{path:l,offset:c,text:d}=n;if(0===d.length)break;var f=eg.leaf(e,l),p=f.text.slice(0,c),h=f.text.slice(c);if(f.text=p+d+h,t)for(var[g,v]of fg.points(t))t[v]=ug.transform(g,n);break;case"merge_node":var{path:m}=n,y=eg.get(e,m),b=og.previous(m),E=eg.get(e,b),C=eg.parent(e,m),D=m[m.length-1];if(Cg.isText(y)&&Cg.isText(E))E.text+=y.text;else{if(Cg.isText(y)||Cg.isText(E))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(m,"] to nodes of different interfaces: ").concat(gg.stringify(y)," ").concat(gg.stringify(E)));E.children.push(...y.children)}if(C.children.splice(D,1),t)for(var[w,S]of fg.points(t))t[S]=ug.transform(w,n);break;case"move_node":var{path:A,newPath:x}=n;if(og.isAncestor(A,x))throw new Error("Cannot move a path [".concat(A,"] to new path [").concat(x,"] because the destination is inside itself."));var O=eg.get(e,A),N=eg.parent(e,A),B=A[A.length-1];N.children.splice(B,1);var T=og.transform(A,n),k=eg.get(e,og.parent(T)),F=T[T.length-1];if(k.children.splice(F,0,O),t)for(var[I,P]of fg.points(t))t[P]=ug.transform(I,n);break;case"remove_node":var{path:_}=n,L=_[_.length-1];if(eg.parent(e,_).children.splice(L,1),t)for(var[R,M]of fg.points(t)){var j=ug.transform(R,n);if(null!=t&&null!=j)t[M]=j;else{var H=void 0,z=void 0;for(var[$,U]of eg.texts(e)){if(-1!==og.compare(U,_)){z=[$,U];break}H=[$,U]}var V=!1;H&&z&&(V=og.equals(z[1],_)?!og.hasPrevious(z[1]):og.common(H[1],_).length<og.common(z[1],_).length),H&&!V?(R.path=H[1],R.offset=H[0].text.length):z?(R.path=z[1],R.offset=0):t=null}}break;case"remove_text":var{path:W,offset:G,text:q}=n;if(0===q.length)break;var K=eg.leaf(e,W),Y=K.text.slice(0,G),X=K.text.slice(G+q.length);if(K.text=Y+X,t)for(var[Z,J]of fg.points(t))t[J]=ug.transform(Z,n);break;case"set_node":var{path:Q,properties:ee,newProperties:te}=n;if(0===Q.length)throw new Error("Cannot set properties on the root node!");var ne=eg.get(e,Q);for(var re in te){if("children"===re||"text"===re)throw new Error('Cannot set the "'.concat(re,'" property of nodes!'));var oe=te[re];null==oe?delete ne[re]:ne[re]=oe}for(var ie in ee)te.hasOwnProperty(ie)||delete ne[ie];break;case"set_selection":var{newProperties:ae}=n;if(null==ae)t=ae;else{if(null==t){if(!fg.isRange(ae))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(gg.stringify(ae)," when there is no current selection."));t=wg({},ae)}for(var se in ae){var ue=ae[se];if(null==ue){if("anchor"===se||"focus"===se)throw new Error('Cannot remove the "'.concat(se,'" selection property'));delete t[se]}else t[se]=ue}}break;case"split_node":var{path:le,position:ce,properties:de}=n;if(0===le.length)throw new Error('Cannot apply a "split_node" operation at path ['.concat(le,"] because the root node cannot be split."));var fe,pe=eg.get(e,le),he=eg.parent(e,le),ge=le[le.length-1];if(Cg.isText(pe)){var ve=pe.text.slice(0,ce),me=pe.text.slice(ce);pe.text=ve,fe=wg(wg({},de),{},{text:me})}else{var ye=pe.children.slice(0,ce),be=pe.children.slice(ce);pe.children=ye,fe=wg(wg({},de),{},{children:be})}if(he.children.splice(ge+1,0,fe),t)for(var[Ee,Ce]of fg.points(t))t[Ce]=ug.transform(Ee,n)}return t})(e,n,t)}finally{e.children=nh(e.children),e.selection=n?ap(n)?nh(n):n:null}}},Ag=["text"],xg=["children"];function Og(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 Ng(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Og(Object(n),!0).forEach(function(t){rh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Og(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Bg={insertNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Kh.withoutNormalizing(e,()=>{var{hanging:r=!1,voids:o=!1,mode:i="lowest"}=n,{at:a,match:s,select:u}=n;if(eg.isNode(t)&&(t=[t]),0!==t.length){var[l]=t;if(a||(a=e.selection?e.selection:e.children.length>0?Kh.end(e,[]):[0],u=!0),null==u&&(u=!1),fg.isRange(a))if(r||(a=Kh.unhangRange(e,a)),fg.isCollapsed(a))a=a.anchor;else{var[,c]=fg.edges(a),d=Kh.pointRef(e,c);jg.delete(e,{at:a}),a=d.unref()}if(ug.isPoint(a)){null==s&&(s=Cg.isText(l)?e=>Cg.isText(e):e.isInline(l)?t=>Cg.isText(t)||Kh.isInline(e,t):t=>Kh.isBlock(e,t));var[f]=Kh.nodes(e,{at:a.path,match:s,mode:i,voids:o});if(!f)return;var[,p]=f,h=Kh.pathRef(e,p),g=Kh.isEnd(e,a,p);jg.splitNodes(e,{at:a,match:s,mode:i,voids:o});var v=h.unref();a=g?og.next(v):v}var m=og.parent(a),y=a[a.length-1];if(o||!Kh.void(e,{at:m})){for(var b of t){var E=m.concat(y);y++,e.apply({type:"insert_node",path:E,node:b}),a=og.next(a)}if(a=og.previous(a),u){var C=Kh.end(e,a);C&&jg.select(e,C)}}}})},liftNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Kh.withoutNormalizing(e,()=>{var{at:n=e.selection,mode:r="lowest",voids:o=!1}=t,{match:i}=t;if(null==i&&(i=og.isPath(n)?Fg(e,n):t=>Kh.isBlock(e,t)),n){var a=Kh.nodes(e,{at:n,match:i,mode:r,voids:o}),s=Array.from(a,t=>{var[,n]=t;return Kh.pathRef(e,n)});for(var u of s){var l=u.unref();if(l.length<2)throw new Error("Cannot lift node at a path [".concat(l,"] because it has a depth of less than `2`."));var c=Kh.node(e,og.parent(l)),[d,f]=c,p=l[l.length-1],{length:h}=d.children;if(1===h){var g=og.next(f);jg.moveNodes(e,{at:l,to:g,voids:o}),jg.removeNodes(e,{at:f,voids:o})}else if(0===p)jg.moveNodes(e,{at:l,to:f,voids:o});else if(p===h-1){var v=og.next(f);jg.moveNodes(e,{at:l,to:v,voids:o})}else{var m=og.next(l),y=og.next(f);jg.splitNodes(e,{at:m,voids:o}),jg.moveNodes(e,{at:l,to:y,voids:o})}}}})},mergeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Kh.withoutNormalizing(e,()=>{var{match:n,at:r=e.selection}=t,{hanging:o=!1,voids:i=!1,mode:a="lowest"}=t;if(r){if(null==n)if(og.isPath(r)){var[s]=Kh.parent(e,r);n=e=>s.children.includes(e)}else n=t=>Kh.isBlock(e,t);if(!o&&fg.isRange(r)&&(r=Kh.unhangRange(e,r)),fg.isRange(r))if(fg.isCollapsed(r))r=r.anchor;else{var[,u]=fg.edges(r),l=Kh.pointRef(e,u);jg.delete(e,{at:r}),r=l.unref(),null==t.at&&jg.select(e,r)}var[c]=Kh.nodes(e,{at:r,match:n,voids:i,mode:a}),d=Kh.previous(e,{at:r,match:n,voids:i,mode:a});if(c&&d){var[f,p]=c,[h,g]=d;if(0!==p.length&&0!==g.length){var v,m,y=og.next(g),b=og.common(p,g),E=og.isSibling(p,g),C=Array.from(Kh.levels(e,{at:p}),e=>{var[t]=e;return t}).slice(b.length).slice(0,-1),D=Kh.above(e,{at:p,mode:"highest",match:t=>C.includes(t)&&Tg(e,t)}),w=D&&Kh.pathRef(e,D[1]);if(Cg.isText(f)&&Cg.isText(h)){var S=ph(f,Ag);m=h.text.length,v=S}else{if(!$h.isElement(f)||!$h.isElement(h))throw new Error("Cannot merge the node at path [".concat(p,"] with the previous sibling because it is not the same kind: ").concat(gg.stringify(f)," ").concat(gg.stringify(h)));S=ph(f,xg);m=h.children.length,v=S}E||jg.moveNodes(e,{at:p,to:y,voids:i}),w&&jg.removeNodes(e,{at:w.current,voids:i}),$h.isElement(h)&&Kh.isEmpty(e,h)||Cg.isText(h)&&""===h.text&&0!==g[g.length-1]?jg.removeNodes(e,{at:g,voids:i}):e.apply({type:"merge_node",path:y,position:m,properties:v}),w&&w.unref()}}}})},moveNodes(e,t){Kh.withoutNormalizing(e,()=>{var{to:n,at:r=e.selection,mode:o="lowest",voids:i=!1}=t,{match:a}=t;if(r){null==a&&(a=og.isPath(r)?Fg(e,r):t=>Kh.isBlock(e,t));var s=Kh.pathRef(e,n),u=Kh.nodes(e,{at:r,match:a,mode:o,voids:i}),l=Array.from(u,t=>{var[,n]=t;return Kh.pathRef(e,n)});for(var c of l){var d=c.unref(),f=s.current;0!==d.length&&e.apply({type:"move_node",path:d,newPath:f}),s.current&&og.isSibling(f,d)&&og.isAfter(f,d)&&(s.current=og.next(s.current))}s.unref()}})},removeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Kh.withoutNormalizing(e,()=>{var{hanging:n=!1,voids:r=!1,mode:o="lowest"}=t,{at:i=e.selection,match:a}=t;if(i){null==a&&(a=og.isPath(i)?Fg(e,i):t=>Kh.isBlock(e,t)),!n&&fg.isRange(i)&&(i=Kh.unhangRange(e,i));var s=Kh.nodes(e,{at:i,match:a,mode:o,voids:r}),u=Array.from(s,t=>{var[,n]=t;return Kh.pathRef(e,n)});for(var l of u){var c=l.unref();if(c){var[d]=Kh.node(e,c);e.apply({type:"remove_node",path:c,node:d})}}}})},setNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Kh.withoutNormalizing(e,()=>{var{match:r,at:o=e.selection,compare:i,merge:a}=n,{hanging:s=!1,mode:u="lowest",split:l=!1,voids:c=!1}=n;if(o){if(null==r&&(r=og.isPath(o)?Fg(e,o):t=>Kh.isBlock(e,t)),!s&&fg.isRange(o)&&(o=Kh.unhangRange(e,o)),l&&fg.isRange(o)){if(fg.isCollapsed(o)&&Kh.leaf(e,o.anchor)[0].text.length>0)return;var d=Kh.rangeRef(e,o,{affinity:"inward"}),[f,p]=fg.edges(o),h="lowest"===u?"lowest":"highest",g=Kh.isEnd(e,p,p.path);jg.splitNodes(e,{at:p,match:r,mode:h,voids:c,always:!g});var v=Kh.isStart(e,f,f.path);jg.splitNodes(e,{at:f,match:r,mode:h,voids:c,always:!v}),o=d.unref(),null==n.at&&jg.select(e,o)}for(var[m,y]of(i||(i=(e,t)=>e!==t),Kh.nodes(e,{at:o,match:r,mode:u,voids:c}))){var b={},E={};if(0!==y.length){var C=!1;for(var D in t)"children"!==D&&"text"!==D&&i(t[D],m[D])&&(C=!0,m.hasOwnProperty(D)&&(b[D]=m[D]),a?null!=t[D]&&(E[D]=a(m[D],t[D])):null!=t[D]&&(E[D]=t[D]));C&&e.apply({type:"set_node",path:y,properties:b,newProperties:E})}}}})},splitNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Kh.withoutNormalizing(e,()=>{var{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection,height:a=0,always:s=!1}=t;if(null==o&&(o=t=>Kh.isBlock(e,t)),fg.isRange(i)&&(i=kg(e,i)),og.isPath(i)){var u=i,l=Kh.point(e,u),[c]=Kh.parent(e,u);o=e=>e===c,a=l.path.length-u.length+1,i=l,s=!0}if(i){var d,f=Kh.pointRef(e,i,{affinity:"backward"});try{var[p]=Kh.nodes(e,{at:i,match:o,mode:n,voids:r});if(!p)return;var h=Kh.void(e,{at:i,mode:"highest"});if(!r&&h){var[g,v]=h;if($h.isElement(g)&&e.isInline(g)){var m=Kh.after(e,v);if(!m){var y=og.next(v);jg.insertNodes(e,{text:""},{at:y,voids:r}),m=Kh.point(e,y)}i=m,s=!0}a=i.path.length-v.length+1,s=!0}d=Kh.pointRef(e,i);var b=i.path.length-a,[,E]=p,C=i.path.slice(0,b),D=0===a?i.offset:i.path[b]+0;for(var[w,S]of Kh.levels(e,{at:C,reverse:!0,voids:r})){var A=!1;if(S.length<E.length||0===S.length||!r&&Kh.isVoid(e,w))break;var x=f.current,O=Kh.isEnd(e,x,S);if(s||!f||!Kh.isEdge(e,x,S)){A=!0;var N=eg.extractProps(w);e.apply({type:"split_node",path:S,position:D,properties:N})}D=S[S.length-1]+(A||O?1:0)}if(null==t.at){var B=d.current||Kh.end(e,[]);jg.select(e,B)}}finally{var T;f.unref(),null===(T=d)||void 0===T||T.unref()}}})},unsetNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Array.isArray(t)||(t=[t]);var r={};for(var o of t)r[o]=null;jg.setNodes(e,r,n)},unwrapNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Kh.withoutNormalizing(e,()=>{var{mode:n="lowest",split:r=!1,voids:o=!1}=t,{at:i=e.selection,match:a}=t;if(i){null==a&&(a=og.isPath(i)?Fg(e,i):t=>Kh.isBlock(e,t)),og.isPath(i)&&(i=Kh.range(e,i));var s=fg.isRange(i)?Kh.rangeRef(e,i):null,u=Kh.nodes(e,{at:i,match:a,mode:n,voids:o}),l=Array.from(u,t=>{var[,n]=t;return Kh.pathRef(e,n)}).reverse(),c=function(t){var n=t.unref(),[i]=Kh.node(e,n),a=Kh.range(e,n);r&&s&&(a=fg.intersection(s.current,a)),jg.liftNodes(e,{at:a,match:e=>$h.isAncestor(i)&&i.children.includes(e),voids:o})};for(var d of l)c(d);s&&s.unref()}})},wrapNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Kh.withoutNormalizing(e,()=>{var{mode:r="lowest",split:o=!1,voids:i=!1}=n,{match:a,at:s=e.selection}=n;if(s){if(null==a&&(a=og.isPath(s)?Fg(e,s):e.isInline(t)?t=>Kh.isInline(e,t)||Cg.isText(t):t=>Kh.isBlock(e,t)),o&&fg.isRange(s)){var[u,l]=fg.edges(s),c=Kh.rangeRef(e,s,{affinity:"inward"});jg.splitNodes(e,{at:l,match:a,voids:i}),jg.splitNodes(e,{at:u,match:a,voids:i}),s=c.unref(),null==n.at&&jg.select(e,s)}var d=Array.from(Kh.nodes(e,{at:s,match:e.isInline(t)?t=>Kh.isBlock(e,t):e=>Kh.isEditor(e),mode:"lowest",voids:i}));for(var[,f]of d){var p=fg.isRange(s)?fg.intersection(s,Kh.range(e,f)):s;if(p){var h=Array.from(Kh.nodes(e,{at:p,match:a,mode:r,voids:i}));if(h.length>0){var g=function(){var[n]=h,r=h[h.length-1],[,o]=n,[,a]=r;if(0===o.length&&0===a.length)return"continue";var s=og.equals(o,a)?og.parent(o):og.common(o,a),u=Kh.range(e,o,a),l=Kh.node(e,s),[c]=l,d=s.length+1,f=og.next(a.slice(0,d)),p=Ng(Ng({},t),{},{children:[]});jg.insertNodes(e,p,{at:f,voids:i}),jg.moveNodes(e,{at:u,match:e=>$h.isAncestor(c)&&c.children.includes(e),to:f.concat(0),voids:i})}();if("continue"===g)continue}}}}})}},Tg=(e,t)=>{if($h.isElement(t)){var n=t;return!!Kh.isVoid(e,t)||1===n.children.length&&Tg(e,n.children[0])}return!Kh.isEditor(t)},kg=(e,t)=>{if(fg.isCollapsed(t))return t.anchor;var[,n]=fg.edges(t),r=Kh.pointRef(e,n);return jg.delete(e,{at:t}),r.unref()},Fg=(e,t)=>{var[n]=Kh.node(e,t);return e=>e===n};function Ig(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 Pg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ig(Object(n),!0).forEach(function(t){rh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ig(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var _g={collapse(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{edge:n="anchor"}=t,{selection:r}=e;if(r)if("anchor"===n)jg.select(e,r.anchor);else if("focus"===n)jg.select(e,r.focus);else if("start"===n){var[o]=fg.edges(r);jg.select(e,o)}else if("end"===n){var[,i]=fg.edges(r);jg.select(e,i)}},deselect(e){var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},move(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{selection:n}=e,{distance:r=1,unit:o="character",reverse:i=!1}=t,{edge:a=null}=t;if(n){"start"===a&&(a=fg.isBackward(n)?"focus":"anchor"),"end"===a&&(a=fg.isBackward(n)?"anchor":"focus");var{anchor:s,focus:u}=n,l={distance:r,unit:o},c={};if(null==a||"anchor"===a){var d=i?Kh.before(e,s,l):Kh.after(e,s,l);d&&(c.anchor=d)}if(null==a||"focus"===a){var f=i?Kh.before(e,u,l):Kh.after(e,u,l);f&&(c.focus=f)}jg.setSelection(e,c)}},select(e,t){var{selection:n}=e;if(t=Kh.range(e,t),n)jg.setSelection(e,t);else{if(!fg.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(gg.stringify(t)));e.apply({type:"set_selection",properties:n,newProperties:t})}},setPoint(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{selection:r}=e,{edge:o="both"}=n;if(r){"start"===o&&(o=fg.isBackward(r)?"focus":"anchor"),"end"===o&&(o=fg.isBackward(r)?"anchor":"focus");var{anchor:i,focus:a}=r,s="anchor"===o?i:a;jg.setSelection(e,{["anchor"===o?"anchor":"focus"]:Pg(Pg({},s),t)})}},setSelection(e,t){var{selection:n}=e,r={},o={};if(n){for(var i in t)("anchor"===i&&null!=t.anchor&&!ug.equals(t.anchor,n.anchor)||"focus"===i&&null!=t.focus&&!ug.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})}}},Lg={delete(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Kh.withoutNormalizing(e,()=>{var{reverse:n=!1,unit:r="character",distance:o=1,voids:i=!1}=t,{at:a=e.selection,hanging:s=!1}=t;if(a){var u=!1;if(fg.isRange(a)&&fg.isCollapsed(a)&&(u=!0,a=a.anchor),ug.isPoint(a)){var l=Kh.void(e,{at:a,mode:"highest"});if(!i&&l){var[,c]=l;a=c}else{var d={unit:r,distance:o};a={anchor:a,focus:n?Kh.before(e,a,d)||Kh.start(e,[]):Kh.after(e,a,d)||Kh.end(e,[])},s=!0}}if(og.isPath(a))jg.removeNodes(e,{at:a,voids:i});else if(!fg.isCollapsed(a)){if(!s){var[,f]=fg.edges(a),p=Kh.end(e,[]);ug.equals(f,p)||(a=Kh.unhangRange(e,a,{voids:i}))}var[h,g]=fg.edges(a),v=Kh.above(e,{match:t=>Kh.isBlock(e,t),at:h,voids:i}),m=Kh.above(e,{match:t=>Kh.isBlock(e,t),at:g,voids:i}),y=v&&m&&!og.equals(v[1],m[1]),b=og.equals(h.path,g.path),E=i?null:Kh.void(e,{at:h,mode:"highest"}),C=i?null:Kh.void(e,{at:g,mode:"highest"});if(E){var D=Kh.before(e,h);D&&v&&og.isAncestor(v[1],D.path)&&(h=D)}if(C){var w=Kh.after(e,g);w&&m&&og.isAncestor(m[1],w.path)&&(g=w)}var S,A=[];for(var x of Kh.nodes(e,{at:a,voids:i})){var[O,N]=x;S&&0===og.compare(N,S)||(!i&&Kh.isVoid(e,O)||!og.isCommon(N,h.path)&&!og.isCommon(N,g.path))&&(A.push(x),S=N)}var B=Array.from(A,t=>{var[,n]=t;return Kh.pathRef(e,n)}),T=Kh.pointRef(e,h),k=Kh.pointRef(e,g),F="";if(!b&&!E){var I=T.current,[P]=Kh.leaf(e,I),{path:_}=I,{offset:L}=h,R=P.text.slice(L);R.length>0&&(e.apply({type:"remove_text",path:_,offset:L,text:R}),F=R)}for(var M of B){var j=M.unref();jg.removeNodes(e,{at:j,voids:i})}if(!C){var H=k.current,[z]=Kh.leaf(e,H),{path:$}=H,U=b?h.offset:0,V=z.text.slice(U,g.offset);V.length>0&&(e.apply({type:"remove_text",path:$,offset:U,text:V}),F=V)}!b&&y&&k.current&&T.current&&jg.mergeNodes(e,{at:k.current,hanging:!0,voids:i}),u&&n&&"character"===r&&F.length>1&&F.match(/[\u0E00-\u0E7F]+/)&&jg.insertText(e,F.slice(0,F.length-o));var W=T.unref(),G=k.unref(),q=n?W||G:G||W;null==t.at&&q&&jg.select(e,q)}}})},insertFragment(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Kh.withoutNormalizing(e,()=>{var{hanging:r=!1,voids:o=!1}=n,{at:i=e.selection}=n;if(t.length&&i){if(fg.isRange(i))if(r||(i=Kh.unhangRange(e,i)),fg.isCollapsed(i))i=i.anchor;else{var[,a]=fg.edges(i);if(!o&&Kh.void(e,{at:a}))return;var s=Kh.pointRef(e,a);jg.delete(e,{at:i}),i=s.unref()}else og.isPath(i)&&(i=Kh.start(e,i));if(o||!Kh.void(e,{at:i})){var u=Kh.above(e,{at:i,match:t=>Kh.isInline(e,t),mode:"highest",voids:o});if(u){var[,l]=u;if(Kh.isEnd(e,i,l))i=Kh.after(e,l);else if(Kh.isStart(e,i,l)){i=Kh.before(e,l)}}var c=Kh.above(e,{match:t=>Kh.isBlock(e,t),at:i,voids:o}),[,d]=c,f=Kh.isStart(e,i,d),p=Kh.isEnd(e,i,d),h=f&&p,g=!f||f&&p,v=!p,[,m]=eg.first({children:t},[]),[,y]=eg.last({children:t},[]),b=[],E=t=>{var[n,r]=t;return!(0===r.length)&&(!!h||!(g&&og.isAncestor(r,m)&&$h.isElement(n)&&!e.isVoid(n)&&!e.isInline(n))&&!(v&&og.isAncestor(r,y)&&$h.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)))};for(var C of eg.nodes({children:t},{pass:E}))E(C)&&b.push(C);var D=[],w=[],S=[],A=!0,x=!1;for(var[O]of b)$h.isElement(O)&&!e.isInline(O)?(A=!1,x=!0,w.push(O)):A?D.push(O):S.push(O);var[N]=Kh.nodes(e,{at:i,match:t=>Cg.isText(t)||Kh.isInline(e,t),mode:"highest",voids:o}),[,B]=N,T=Kh.isStart(e,i,B),k=Kh.isEnd(e,i,B),F=Kh.pathRef(e,p&&!S.length?og.next(d):d),I=Kh.pathRef(e,k?og.next(B):B);jg.splitNodes(e,{at:i,match:t=>x?Kh.isBlock(e,t):Cg.isText(t)||Kh.isInline(e,t),mode:x?"lowest":"highest",always:x&&(!f||D.length>0)&&(!p||S.length>0),voids:o});var P,_=Kh.pathRef(e,!T||T&&k?og.next(B):B);if(jg.insertNodes(e,D,{at:_.current,match:t=>Cg.isText(t)||Kh.isInline(e,t),mode:"highest",voids:o}),h&&!D.length&&w.length&&!S.length&&jg.delete(e,{at:d,voids:o}),jg.insertNodes(e,w,{at:F.current,match:t=>Kh.isBlock(e,t),mode:"lowest",voids:o}),jg.insertNodes(e,S,{at:I.current,match:t=>Cg.isText(t)||Kh.isInline(e,t),mode:"highest",voids:o}),!n.at)if(S.length>0&&I.current?P=og.previous(I.current):w.length>0&&F.current?P=og.previous(F.current):_.current&&(P=og.previous(_.current)),P){var L=Kh.end(e,P);jg.select(e,L)}_.unref(),F.unref(),I.unref()}}})},insertText(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Kh.withoutNormalizing(e,()=>{var{voids:r=!1}=n,{at:o=e.selection}=n;if(o){if(og.isPath(o)&&(o=Kh.range(e,o)),fg.isRange(o))if(fg.isCollapsed(o))o=o.anchor;else{var i=fg.end(o);if(!r&&Kh.void(e,{at:i}))return;var a=fg.start(o),s=Kh.pointRef(e,a),u=Kh.pointRef(e,i);jg.delete(e,{at:o,voids:r});var l=s.unref(),c=u.unref();o=l||c,jg.setSelection(e,{anchor:o,focus:o})}if(r||!Kh.void(e,{at:o})){var{path:d,offset:f}=o;t.length>0&&e.apply({type:"insert_text",path:d,offset:f,text:t})}}})}};function Rg(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 Mg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rg(Object(n),!0).forEach(function(t){rh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var jg=Mg(Mg(Mg(Mg({},Sg),Bg),_g),Lg),Hg={isHistory:e=>op(e)&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(0===e.redos.length||rg.isOperationList(e.redos[0].operations))&&(0===e.undos.length||rg.isOperationList(e.undos[0].operations))},zg=new WeakMap,$g=new WeakMap,Ug={isHistoryEditor:e=>Hg.isHistory(e.history)&&Kh.isEditor(e),isMerging:e=>$g.get(e),isSaving:e=>zg.get(e),redo(e){e.redo()},undo(e){e.undo()},withMerging(e,t){var n=Ug.isMerging(e);$g.set(e,!0),t(),$g.set(e,n)},withoutMerging(e,t){var n=Ug.isMerging(e);$g.set(e,!1),t(),$g.set(e,n)},withoutSaving(e,t){var n=Ug.isSaving(e);zg.set(e,!1),t(),zg.set(e,n)}},Vg=e=>{var t=e,{apply:n}=t;return t.history={undos:[],redos:[]},t.redo=()=>{var{history:e}=t,{redos:n}=e;if(n.length>0){var r=n[n.length-1];r.selectionBefore&&jg.setSelection(t,r.selectionBefore),Ug.withoutSaving(t,()=>{Kh.withoutNormalizing(t,()=>{for(var e of r.operations)t.apply(e)})}),e.redos.pop(),t.writeHistory("undos",r)}},t.undo=()=>{var{history:e}=t,{undos:n}=e;if(n.length>0){var r=n[n.length-1];Ug.withoutSaving(t,()=>{Kh.withoutNormalizing(t,()=>{var e=r.operations.map(rg.inverse).reverse();for(var n of e)t.apply(n);r.selectionBefore&&jg.setSelection(t,r.selectionBefore)})}),t.writeHistory("redos",r),e.undos.pop()}},t.apply=e=>{var{operations:r,history:o}=t,{undos:i}=o,a=i[i.length-1],s=a&&a.operations[a.operations.length-1],u=Ug.isSaving(t),l=Ug.isMerging(t);if(null==u&&(u=Gg(e)),u){if(null==l&&(l=null!=a&&(0!==r.length||Wg(e,s))),a&&l)a.operations.push(e);else{var c={operations:[e],selectionBefore:t.selection};t.writeHistory("undos",c)}for(;i.length>100;)i.shift();o.redos=[]}n(e)},t.writeHistory=(e,n)=>{t.history[e].push(n)},t},Wg=(e,t)=>!(!t||"insert_text"!==e.type||"insert_text"!==t.type||e.offset!==t.offset+t.text.length||!og.equals(e.path,t.path))||!(!t||"remove_text"!==e.type||"remove_text"!==t.type||e.offset+e.text.length!==t.offset||!og.equals(e.path,t.path)),Gg=(e,t)=>"set_selection"!==e.type,qg=function(e,t){return qg=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])},qg(e,t)};function Kg(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}qg(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Yg=function(){return Yg=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},Yg.apply(this,arguments)};function Xg(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 Zg(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 Jg(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 Qg(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 ev(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 tv(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 nv(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=Qg(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 rv,ov={exports:{}};var iv,av,sv=(rv||(rv=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]",b="[object ArrayBuffer]",E="[object DataView]",C="[object Float32Array]",D="[object Float64Array]",w="[object Int8Array]",S="[object Int16Array]",A="[object Int32Array]",x="[object Uint8Array]",O="[object Uint8ClampedArray]",N="[object Uint16Array]",B="[object Uint32Array]",T=/\w*$/,k=/^\[object .+?Constructor\]$/,F=/^(?:0|[1-9]\d*)$/,I={};I[o]=I["[object Array]"]=I[b]=I[E]=I[i]=I[a]=I[C]=I[D]=I[w]=I[S]=I[A]=I[l]=I[c]=I[d]=I[p]=I[h]=I[g]=I[v]=I[x]=I[O]=I[N]=I[B]=!0,I["[object Error]"]=I[s]=I[m]=!1;var P="object"==typeof y&&y&&y.Object===Object&&y,_="object"==typeof self&&self&&self.Object===Object&&self,L=P||_||Function("return this")(),R=t&&!t.nodeType&&t,M=R&&e&&!e.nodeType&&e,j=M&&M.exports===R;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=L["__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?L.Buffer:void 0,re=L.Symbol,oe=L.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=Re(L,"DataView"),pe=Re(L,"Map"),he=Re(L,"Promise"),ge=Re(L,"Set"),ve=Re(L,"WeakMap"),me=Re(Object,"create"),ye=$e(fe),be=$e(pe),Ee=$e(he),Ce=$e(ge),De=$e(ve),we=re?re.prototype:void 0,Se=we?we.valueOf:void 0;function Ae(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 Oe(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 Ne(e){this.__data__=new xe(e)}function Be(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 Te(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,y){var k;if(r&&(k=m?r(e,f,m,y):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 P=je(e),_=P==s||P==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(P==d||P==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(!I[P])return m?e:{};k=function(e,t,n,r){var o=e.constructor;switch(t){case b:return Pe(e);case i:case a:return new o(+e);case E:return function(e,t){var n=t?Pe(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,r);case C:case D:case w:case S:case A:case x:case O:case N:case B:return function(e,t){var n=t?Pe(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,T.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 Se?Object(Se.call(e)):{}}(e)}}(e,P,Fe,t)}}y||(y=new Ne);var L=y.get(e);if(L)return L;if(y.set(e,k),!F)var R=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););}(R||e,function(o,i){R&&(o=e[i=o]),Te(k,i,Fe(o,t,n,r,i,e,y))}),k}function Ie(e){return!(!Ke(e)||(t=e,Z&&Z in t))&&(qe(e)||U(e)?te:k).test($e(e));var t}function Pe(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];Te(n,a,e[a])}return n}function Le(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 Re(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Ie(n)?n:void 0}Ae.prototype.clear=function(){this.__data__=me?me(null):{}},Ae.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Ae.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},Ae.prototype.has=function(e){var t=this.__data__;return me?void 0!==t[e]:Q.call(t,e)},Ae.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},Oe.prototype.clear=function(){this.__data__={hash:new Ae,map:new(pe||xe),string:new Ae}},Oe.prototype.delete=function(e){return Le(this,e).delete(e)},Oe.prototype.get=function(e){return Le(this,e).get(e)},Oe.prototype.has=function(e){return Le(this,e).has(e)},Oe.prototype.set=function(e,t){return Le(this,e).set(e,t),this},Ne.prototype.clear=function(){this.__data__=new xe},Ne.prototype.delete=function(e){return this.__data__.delete(e)},Ne.prototype.get=function(e){return this.__data__.get(e)},Ne.prototype.has=function(e){return this.__data__.has(e)},Ne.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 Oe(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 De: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)?Be(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)}}(ov,ov.exports)),ov.exports),uv=b(sv);var lv=function(){if(av)return iv;av=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 D(e){return e}return iv=function(e,t){return(b(e)?i:g)(e,"function"==typeof t?t:D)}}(),cv=b(lv),dv={};var fv="created",pv="destroyed",hv="change",gv="scroll",vv="fullscreen",mv="unFullScreen",yv={};function bv(e,t){var n=e.key,r=e.factory,o=e.config,i=Yg(Yg({},o),t||{});if(null!=yv[n])throw new Error("Duplicated key '".concat(n,"' in menu items"));yv[n]=r,function(e,t){null!=t&&(dv[e]=t)}(n,i)}var Ev=new WeakMap,Cv=new WeakMap,Dv=new WeakMap,wv=new WeakMap,Sv=new WeakMap,Av=new WeakMap,xv=new WeakMap,Ov=new WeakMap,Nv=new WeakMap,Bv=new WeakMap,Tv=new WeakMap,kv=new WeakMap,Fv=new WeakMap,Iv=new WeakMap,Pv=new WeakMap,_v=new WeakMap,Lv=new WeakMap,Rv=new WeakMap,Mv=new WeakMap,jv=new WeakMap,Hv=new WeakMap,zv=new WeakMap,$v=new WeakMap,Uv=new WeakMap,Vv=new WeakMap,Wv=new WeakMap,Gv=new WeakMap,qv=function(e){var t=e;return t.getAllMenuKeys=function(){var e=[];for(var t in yv)e.push(t);return e},t.getConfig=function(){var e=Bv.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},Kv=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function Yv(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function Xv(e={},t={}){Object.keys(t).forEach(n=>{void 0===e[n]?e[n]=t[n]:Yv(t[n])&&Yv(e[n])&&Object.keys(t[n]).length>0&&Xv(e[n],t[n])})}const Zv={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 Jv(){const e="undefined"!=typeof document?document:{};return Xv(e,Zv),e}const Qv={document:Zv,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 em(){const e="undefined"!=typeof window?window:{};return Xv(e,Qv),e}class tm 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 nm(e=[]){const t=[];return e.forEach(e=>{Array.isArray(e)?t.push(...nm(e)):t.push(e)}),t}function rm(e,t){return Array.prototype.filter.call(e,t)}function om(e){return e.toLowerCase().replace(/-(.)/g,(e,t)=>t.toUpperCase())}function im(e,t){const n=em(),r=Jv();let o=[];if(!t&&e instanceof tm)return e;if(!e)return new tm(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 tm)return e;o=e}return new tm(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 am(...e){const t=nm(e.map(e=>e.split(" ")));return this.forEach(e=>{e.classList.add(...t)}),this}function sm(...e){const t=nm(e.map(e=>e.split(" ")));return this.forEach(e=>{e.classList.remove(...t)}),this}function um(...e){const t=nm(e.map(e=>e.split(" ")));return rm(this,e=>t.filter(t=>e.classList.contains(t)).length>0).length>0}function lm(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 cm(e){for(let t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function dm(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 fm(){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[om(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 pm(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 hm(...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),im(t).is(n))r.apply(t,o);else{const e=im(t).parents();for(let t=0;t<e.length;t+=1)im(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 gm(...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 vm(){const e=em();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css("width")):null}function mm(){const e=em();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css("height")):null}function ym(){if(this.length>0){const e=em(),t=Jv(),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 bm(){for(let e=0;e<this.length;e+=1)this[e].style.display="none";return this}function Em(){const e=em();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 Cm(e,t){const n=em();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 Dm(e){return e?(this.forEach((t,n)=>{e.apply(t,[t,n])}),this):this}function wm(e){return im(rm(this,e))}function Sm(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 Am(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 xm(e){const t=em(),n=Jv(),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=im(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 tm){for(o=e.nodeType?[e]:e,i=0;i<o.length;i+=1)if(o[i]===r)return!0;return!1}return!1}function Om(...e){let t;const n=Jv();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 tm)for(let n=0;n<t.length;n+=1)this[e].appendChild(t[n]);else this[e].appendChild(t)}return this}function Nm(e){const t=Jv();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 tm)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 Bm(e){const t=[];for(let n=0;n<this.length;n+=1)null!==this[n].parentNode&&(e?im(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return im(t)}function Tm(e){const t=[];for(let n=0;n<this.length;n+=1){let r=this[n].parentNode;for(;r;)e?im(r).is(e)&&t.push(r):t.push(r),r=r.parentNode}return im(t)}function km(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 im(t)}function Fm(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&&!im(r[n]).is(e)||t.push(r[n])}return im(t)}function Im(){for(let e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function Pm(){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}im.fn=tm.prototype;const _m="resize scroll".split(" ");function Lm(e){return function(...t){if(void 0===t[0]){for(let t=0;t<this.length;t+=1)_m.indexOf(e)<0&&(e in this[t]?this[t][e]():im(this[t]).trigger(e));return this}return this.on(e,...t)}}const Rm=Lm("click"),Mm=Lm("focus"),jm=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];let Hm=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&n[e]];return t};function zm(e){Promise.resolve().then(e)}var $m,Um=function(e){return Object.prototype.toString.call(e)};Cm&&(im.fn.css=Cm),Om&&(im.fn.append=Om),am&&(im.fn.addClass=am),sm&&(im.fn.removeClass=sm),um&&(im.fn.hasClass=um),hm&&(im.fn.on=hm),Mm&&(im.fn.focus=Mm),lm&&(im.fn.attr=lm),cm&&(im.fn.removeAttr=cm),bm&&(im.fn.hide=bm),Em&&(im.fn.show=Em),ym&&(im.fn.offset=ym),vm&&(im.fn.width=vm),mm&&(im.fn.height=mm),Bm&&(im.fn.parent=Bm),Tm&&(im.fn.parents=Tm),xm&&(im.fn.is=xm),fm&&(im.fn.dataset=fm),pm&&(im.fn.val=pm),Am&&(im.fn.text=Am),Sm&&(im.fn.html=Sm),Fm&&(im.fn.children=Fm),Im&&(im.fn.remove=Im),km&&(im.fn.find=km),Dm&&(im.fn.each=Dm),Pm&&(im.fn.empty=Pm),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"}($m||($m={}));var Vm=/\[object HTML([A-Z][a-z]*)*Element\]/,Wm=function(e){return Vm.test(Um(e))},Gm=function(e){return null!=e&&"number"==typeof e.nodeType},qm=function(e){return Gm(e)&&e.nodeType===$m.COMMENT_NODE},Km=function(e){return Gm(e)&&e.nodeType===$m.ELEMENT_NODE},Ym=function(e){return"[object Selection]"===Um(e)},Xm=function(e){return Gm(e)&&e.nodeType===$m.TEXT_NODE},Zm=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},Jm=function(e,t,n){for(var r=e.childNodes,o=r[t],i=t,a=!1,s=!1;(qm(o)||Km(o)&&0===o.childNodes.length||Km(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]},Qm=function(e,t,n){return ev(Jm(e,t,n),1)[0]},ey=function(e){var t,n,r="";if(Xm(e)&&e.nodeValue)return e.nodeValue;if(Km(e)){try{for(var o=Qg(Array.from(e.childNodes)),i=o.next();!i.done;i=o.next()){var a=i.value;r+=ey(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 ty(e,t){if(!Wm(e)||"true"!==e.dataset.slateVoid)for(var n=e.childNodes,r=n.length;r-=1;){var o=n[r],i=o.nodeType;Xm(o)?t(o,e):[$m.ELEMENT_NODE,$m.DOCUMENT_NODE,$m.DOCUMENT_FRAGMENT_NODE].includes(i)&&ty(o,t)}}function ny(e){if(0===e.length)return"";var t=e[0];return t.nodeType!==$m.ELEMENT_NODE?"":t.tagName.toLowerCase()}var ry=new RegExp(String.fromCharCode(160),"g");function oy(e){return e.replace(ry," ")}var iy=["span","b","strong","i","em","s","strike","u","font","sub","sup"],ay=[];var sy=[];var uy={};function ly(e,t){var n=e.length;if(n){var r=e[n-1];if(Cg.isText(r)){var o=Object.keys(r);if(1===o.length&&"text"===o[0])return r.text+=t,!0}}return!1}function cy(e,t,n){return{type:"paragraph",children:[{text:im(e).text().replace(/\s+/gm," ")}]}}function dy(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(Km(e)){if("BR"===e.nodeName)return void(ly(n,"\n")||n.push({text:"\n"}));var r=py(im(e),t);Array.isArray(r)?r.forEach(function(e){return n.push(e)}):n.push(r)}else if(Xm(e)){var o=e.textContent||"";if(""===o.trim()&&o.indexOf("\n")>=0)return;o&&(o=oy(o),ly(n,o)||n.push({text:o}))}}),n)}(e,t),r=function(e){for(var t in uy)if(e[0].matches(t))return uy[t];return cy}(e),o=r(e[0],n,t);return Array.isArray(o)||(o=[o]),o.forEach(function(r){Kh.isVoid(t,r)||(0===n.length&&(r.children=[{text:e.text().replace(/\s+/gm," ")}]),sy.forEach(function(n){r=n(e[0],r,t)}))}),o}function fy(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=oy(n)};return sy.forEach(function(n){r=n(e[0],r,t)}),r}function py(e,t){ay.forEach(function(t){var n=t.selector,r=t.preParseHtml;e[0].matches(n)&&(e=im(r(e[0])))});var n=ny(e);if("span"===n){if(e.attr("data-w-e-type"))return dy(e,t);if(e[0].childNodes.length>1){var r=e[0].childNodes,o=function(e,t){var n={text:""};return sy.forEach(function(r){n=r(e[0],n,t)}),n}(im(e[0]),t),i=o;i.bold,i.italic,i.underline,i.through,i.sub,i.sup,i.code;var a=Xg(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(Km(r)){var o=py(e,n);return Array.isArray(o)?o.map(function(e){return Yg(Yg({},t),e)}):[Yg(Yg({},t),o)]}if(qm(r))return null;var i=Xm(r)?{text:r.textContent||""}:fy(e,n);return[Yg(Yg({},t),i)]}(im(e),a,t);return n||[]})}return 1===e[0].childNodes.length&&"span"===ny(im(e[0].childNodes[0]))?py(im(e[0].childNodes[0]),t):fy(e,t)}if("code"===n)return"pre"===ny(e.parent())?dy(e,t):fy(e,t);if(iy.includes(n)){if(e[0].childNodes.length>0&&3!==e[0].childNodes[0].nodeType){var s=py(im((r=e[0].childNodes)[0]),t),u=fy(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=Xg(c,["text","bold","italic","underline","through","sub","sup","code"]);l=s.map(function(e){return Yg(Yg({},v),e)}),(d||f||p||h||g)&&(l=l.map(function(e){var t=Yg({},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=Yg(Yg({},s),u);return l}return fy(e,t)}return dy(e,t)}function hy(e,t,n){var r=im(n);return!!r.attr(t)||(r.attr(t,"true"),e.on(pv,function(){r.removeAttr(t)}),!1)}function gy(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=im("<div>".concat(t,"</div>"));return Array.from(r.children()).forEach(function(t){var r=py(im(t),e);Array.isArray(r)?r.forEach(function(e){return n.push(e)}):n.push(r)}),n}function vy(e,t){return"w-e-element-".concat(e,"-").concat(t)}var my=[];var yy,by,Ey={};function Cy(e,t,n){var r=n.isInline(e)?"span":"div";return"<".concat(r,">").concat(t,"</").concat(r,">")}function Dy(e,t){var n=e.type,r=void 0===n?"":n,o=e.children,i=void 0===o?[]:o,a=Kh.isVoid(t,e),s="";a||(s=i.map(function(e){return _y(e,t)}).join(""));var u=function(e){return Ey[e]||Cy}(r),l=u(e,s,t),c="";if(c="string"==typeof l?l:l.html||"",a||my.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 wy=function(){if(by)return yy;by=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}",b="[\\ud800-\\udbff][\\udc00-\\udfff]",E="\\u200d",C="(?:"+h+"|"+g+")"+"?",D="["+f+"]?",w=D+C+("(?:"+E+"(?:"+[v,m,b].join("|")+")"+D+C+")*"),S="(?:"+[v+h+"?",h,m,b,p].join("|")+")",A=RegExp(g+"(?="+g+")|"+S+w,"g"),x=RegExp("["+E+l+c+d+f+"]"),O="object"==typeof y&&y&&y.Object===Object&&y,N="object"==typeof self&&self&&self.Object===Object&&self,B=O||N||Function("return this")();function T(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 I(e){return function(e){return x.test(e)}(e)?function(e){return e.match(A)||[]}(e):function(e){return e.split("")}(e)}var P,_,L=Function.prototype,R=Object.prototype,M=B["__core-js_shared__"],j=function(){var e=/[^.]+$/.exec(M&&M.keys&&M.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),H=L.toString,z=R.hasOwnProperty,$=R.toString,U=RegExp("^"+H.call(z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),V=B.Symbol,W=V?V.iterator:void 0,G=R.propertyIsEnumerable,q=(P=Object.keys,_=Object,function(e){return P(_(e))}),K=se(B,"DataView"),Y=se(B,"Map"),X=se(B,"Promise"),Z=se(B,"Set"),J=se(B,"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||R,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?T(e,function(e){return fe(e)?oe(e):ae(e)}(e)):[]}return yy=function(e){if(!e)return[];if(fe(e))return function(e){return"string"==typeof e||!de(e)&&ge(e)&&"[object String]"==$.call(e)}(e)?I(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)},yy}(),Sy=b(wy),Ay=0,xy=function(){this.id="".concat(Ay++)},Oy="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),Ny="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),By="undefined"!=typeof navigator&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent),Ty="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),ky="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),Fy="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent),Iy=!ky&&!Ty&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges,Py={getWindow:function(e){var t=$v.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=zv.get(t);return n||(n=new xy,zv.set(t,n)),n},setNewKey:function(e){var t=new xy;zv.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var o=Lv.get(r);if(null==o){if(Kh.isEditor(r))return n;break}var i=_v.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=Py.toDOMNode(e,e),n=t.getRootNode();return"[object HTMLDocument]"!==Um(n)&&!function(e){return"[object ShadowRoot]"===Um(e)}(n)||null==Reflect.get(n,"getSelection")?t.ownerDocument:n},getParentNode:function(e,t){return Lv.get(t)||null},getParentsNodes:function(e,t){for(var n=[],r=t;r!==e&&null!=r;){var o=Py.getParentNode(e,r);if(null==o)break;n.push(o),r=o}return n},getTopNode:function(e,t){var n=[Py.findPath(e,t)[0]];return eg.get(e,n)},toDOMNode:function(e,t){var n;if(Kh.isEditor(t))n=Rv.get(e);else{var r=Py.findKey(e,t);n=jv.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=Py.toDOMNode(e,e);try{r=Km(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=fg.isBackward(t),i=Py.toDOMPoint(e,n),a=fg.isCollapsed(t)?i:Py.toDOMPoint(e,r),s=Py.getWindow(e).document.createRange(),u=ev(o?a:i,2),l=u[0],c=u[1],d=ev(o?i:a,2),f=d[0],p=d[1],h=!!(Km(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),g=!!(Km(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=ev(Kh.node(e,t.path),1)[0],a=Py.toDOMNode(e,i);Kh.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=Qg(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=Km(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?Mv.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=Py.toSlateNode(e,t.target),s=Py.findPath(e,a);if(Kh.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=Kh.point(e,s,{edge:l?"start":"end"}),d=l?Kh.before(e,c):Kh.after(e,c);if(d)return Kh.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 Py.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((Ym(t)?t.anchorNode:t.startContainer)&&(Ym(t)?(r=t.anchorNode,o=t.anchorOffset,i=t.focusNode,a=t.focusOffset,s=Fy&&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=Py.toSlatePoint(e,[r,o],{exactMatch:u,suppressThrow:l});if(!c)return null;var d=s?c:Py.toSlatePoint(e,[i,a],{exactMatch:u,suppressThrow:l});if(!d)return null;var f={anchor:c,focus:d};return fg.isExpanded(f)&&fg.isForward(f)&&Km(i)&&Kh.void(e,{at:f.focus,mode:"highest"})&&(f=Kh.unhangRange(e,f,{voids:!0})),f},toSlatePoint:function(e,t,n){var r,o=n.exactMatch,i=n.suppressThrow,a=ev(o?t:function(e){var t,n=ev(e,2),r=n[0],o=n[1];if(Km(r)&&r.childNodes.length){var i=o===r.childNodes.length,a=i?o-1:o;for(r=(t=ev(Jm(r,a,i?"backward":"forward"),2))[0],i=(a=t[1])<o;Km(r)&&r.childNodes.length;){var s=i?r.childNodes.length-1:0;r=Qm(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=Py.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();tv(tv([],ev(Sy(m.querySelectorAll("[data-slate-zero-width]"))),!1),ev(Sy(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")||Ny&&(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=Py.toSlateNode(e,c);return{path:Py.findPath(e,y),offset:d}},hasRange:function(e,t){var n=t.anchor,r=t.focus;return Kh.hasPath(e,n.path)&&Kh.hasPath(e,r.path)},getNodeType:function(e){return $h.isElement(e)?e.type:""},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map(function(e){return eg.string(e)}).join("")},getSelectedElems:function(e){var t,n,r=[],o=Kh.nodes(e,{universal:!0});try{for(var i=Qg(o),a=i.next();!a.done;a=i.next()){var s=ev(a.value,1)[0];$h.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=ev(Kh.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=ev(Kh.nodes(e,{match:function(e){return Cg.isText(e)},universal:!0}),1),n=t[0];return null==n?null:n[0]},isNodeSelected:function(e,t){var n=ev(Kh.nodes(e,{match:function(e){return e===t},universal:!0}),1),r=n[0];return null!=r&&ev(r,1)[0]===t},isSelectionAtLineEnd:function(e,t){var n=e.selection;return!!n&&(Kh.isEnd(e,n.anchor,t)||Kh.isEnd(e,n.focus,t))},getTextarea:function(e){var t=Ev.get(e);if(null==t)throw new Error("Cannot find textarea instance by editor");return t},getToolbar:function(e){return wv.get(e)||null},getHoverbar:function(e){return Av.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=Py.getTextarea(e).$textArea,a=null==i?void 0:i[0].childNodes;if(a)try{for(var s=Qg(Array.from(a)),u=s.next();!u.done;u=s.next()){var l=u.value;if(!Xm(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=Kh.nodes(e,{match:function(t){return!(!$h.isElement(t)||e.isInline(t))},universal:!0});try{for(var d=Qg(c),f=d.next();!f.done;f=d.next()){var p=f.value;if(null!=p){var h=p[0];ty(Py.toDOMNode(e,h),function(e,t){var n=im(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=Kh.nodes(e,{match:function(t){return e.isVoid(t)}}),o=0;try{for(var i=Qg(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(fg.isExpanded(t))return!1;var n=Py.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=Kh.node(e,t);if(null==n)return!1;var r=ev(n,1)[0].children;if(1===r.length&&""===r[0].text)return!0;return!1}};function _y(e,t){return $h.isElement(e)?Dy(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=Py.getParentsNodes(t,e).some(function(e){return"pre"===Py.getNodeType(e)});if(o||(r=r.replace(/\n\r|\r\n|\r|\n/g,"<br>")),o&&(r=r.replace(/&nbsp;/g," ")),""===r){var i=Py.getParentNode(null,e);if(!i||0!==i.children.length)return r;r="<br>"}return my.forEach(function(t){return r=t(e,r)}),r}(e,t)}var Ly=function(e,t){var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},Ry=function(e,t,n){var r=Py.toDOMRange(e,t).getBoundingClientRect(),o=Py.toDOMRange(e,n).getBoundingClientRect();return Ly(r,o)&&Ly(o,r)},My=function(e,t){var n,r,o=[];try{for(var i=Qg(Kh.levels(e,{at:t})),a=i.next();!a.done;a=i.next()){var s=ev(a.value,2),u=s[0],l=s[1],c=Py.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 jy(e,t){e.isInline(t)?(e.insertNode(t),"link"===t.type&&e.insertFragment([{text:""}])):jg.insertNodes(e,t,{mode:"highest"})}var Hy,zy,$y,Uy,Vy,Wy,Gy,qy,Ky,Yy,Xy,Zy,Jy,Qy,eb,tb,nb,rb,ob,ib,ab,sb,ub,lb,cb,db,fb,pb,hb,gb,vb,mb,yb,bb,Eb,Cb,Db,wb,Sb,Ab,xb=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,tv([],ev(My(t,e.path)),!1));break;case"insert_node":case"remove_node":d.push.apply(d,tv([],ev(My(t,og.parent(e.path))),!1));break;case"merge_node":var f=og.previous(e.path);d.push.apply(d,tv([],ev(My(t,f)),!1));break;case"move_node":var p=og.common(og.parent(e.path),og.parent(e.newPath));d.push.apply(d,tv([],ev(My(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,tv([],ev(My(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,tv([],ev(My(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=Qg(d),g=h.next();!g.done;g=h.next()){var v=ev(g.value,2),m=v[0],y=v[1],b=ev(Kh.node(t,m),1)[0];zv.set(b,y),"type"in b&&(Iv.has(b)&&Iv.delete(b),Pv.has(b)&&Pv.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&&fg.isCollapsed(e.selection)){var r=Kh.above(e,{match:function(t){return Kh.isBlock(e,t)},at:e.selection});if(r){var o=ev(r,2)[1],a=Kh.range(e,o,e.selection.anchor),s=function(e,t){var n=Kh.range(e,fg.end(t)),r=Array.from(Kh.positions(e,{at:t})),o=0,i=r.length,a=Math.floor(i/2);if(Ry(e,Kh.range(e,r[o]),n))return Kh.range(e,r[o],n);if(r.length<2)return Kh.range(e,r[r.length-1],n);for(;a!==r.length&&a!==o;)Ry(e,Kh.range(e,r[a]),n)?i=a:o=a,a=Math.floor((o+i)/2);return Kh.range(e,r[i],n)}(t,a);fg.isCollapsed(s)||jg.delete(e,{at:s})}}},t.onChange=function(){var e=t.selection;null!=e&&Vv.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=Py.getNodeType(e);if(o.includes(n))return _y(e,t);var r=Pv.get(e);if(r)return r;var i=_y(e,t);return Pv.set(e,i),i}).join("")},t.getText=function(){var e=t.children;return(void 0===e?[]:e).map(function(e){return eg.string(e)}).join("\n")},t.getSelectionText=function(){var n=t.selection;return null==n?"":Kh.string(e,n)},t.getElemsByType=function(e,n){var r,o;void 0===n&&(n=!1);var i=[],a=Kh.nodes(t,{at:[],universal:!0});try{for(var s=Qg(a),u=s.next();!u.done;u=s.next()){var l=ev(u.value,1)[0];if($h.isElement(l))if(n?l.type.indexOf(e)>=0:l.type===e){var c=Py.findKey(t,l),d=vy(l.type,c.id);i.push(Yg(Yg({},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(!$h.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||Cg.isText(a)&&""===a.text},t.clear=function(){jg.delete(t,{at:{anchor:Kh.start(t,[]),focus:Kh.end(t,[])}}),0===t.children.length&&jg.insertNodes(t,[{type:"paragraph",children:[{text:""}]}])},t.getParentNode=function(e){return Py.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!!Xm(e)||!!Km(e)&&!Kv.has(t.toLowerCase())}),0!==o.length){var i=t.selection;if(null!=i){var a=null;if(Py.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(Xm(e)){if(!a||!a.trim())return;t.insertNode({text:a})}else if("BR"!==r){var u=e,l=!1;if(iy.includes(r.toLowerCase()))l=!0;else for(var c in uy)if(u.matches(c)){l=!0;break}if(l){var d=py(im(u),t);return Array.isArray(d)?(d.forEach(function(e){return jy(t,e)}),s+=1):(jy(t,d),s+=1),void(Py.isSelectedVoidNode(t)&&t.move(1))}var f=window.getComputedStyle(u).display;if(!Py.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&&Py.isEmptyPath(t,a)&&jg.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=gy(t,null==e?"":e);if(jg.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(Kh.start(t,[]))}},t},Ob=1,Nb=function(e){var t=e;return t.id="wangEditor-".concat(Ob++),t.isDestroyed=!1,t.isFullScreen=!1,t.focus=function(e){if(Py.toDOMNode(t,t).focus({preventScroll:!0}),Uv.set(t,!0),e){var n=Kh.end(t,[]);jg.select(t,n)}else{var r=Vv.get(t);r?jg.select(t,r):jg.select(t,Kh.start(t,[]))}},t.isFocused=function(){return!!Uv.get(t)},t.blur=function(){Py.toDOMNode(t,t).blur(),jg.deselect(t),Uv.set(t,!1)},t.updateView=function(){Py.getTextarea(t).changeViewState();var e=Py.getToolbar(t);e&&e.changeToolbarState();var n=Py.getHoverbar(t);n&&n.changeHoverbarState()},t.destroy=function(){if(!t.isDestroyed){var e=Py.getTextarea(t);e.destroy(),Ev.delete(t),Cv.delete(e);var n=Py.getToolbar(t);n&&(n.destroy(),wv.delete(t),Dv.delete(n));var r=Py.getHoverbar(t);r&&(r.destroy(),Av.delete(t),Sv.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=im("#".concat(e));if(0!==r.length){var o=r[0];if(!Py.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=Py.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||Py.getTextarea(t).changeProgress(e)},t.hidePanelOrModal=function(){var e=Ov.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 Py.toDOMNode(t,e)},t.fullScreen=function(){if(!t.isFullScreen){var e=null,n=Py.getToolbar(t);n&&(e=n.$box);var r=Py.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=Py.getTextarea(t).$box.parent();setTimeout(function(){e.removeClass("w-e-full-screen-container"),t.isFullScreen=!1,t.emit("unFullScreen")},200)}},t.getEditableContainer=function(){return Py.getTextarea(t).$textAreaContainer[0]},t},Bb={exports:{}},Tb={exports:{}};function kb(){if(zy)return Hy;zy=1;return Hy=function(e){return null!=e}}function Fb(){if(Wy)return Vy;Wy=1;var e=function(){if(Uy)return $y;Uy=1;var e=kb(),t={object:!0,function:!0,undefined:!0};return $y=function(n){return!!e(n)&&hasOwnProperty.call(t,typeof n)}}();return Vy=function(t){if(!e(t))return!1;try{return!!t.constructor&&t.constructor.prototype===t}catch(e){return!1}}}function Ib(){if(Yy)return Ky;Yy=1;var e=function(){if(qy)return Gy;qy=1;var e=Fb();return Gy=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 Ky=function(r){return!!e(r)&&!t.test(n.call(r))}}function Pb(){if(rb)return nb;rb=1;var e=(tb?eb:(tb=1,eb=function(){}))();return nb=function(t){return t!==e&&null!==t},nb}function _b(){return sb||(sb=1,ab=(Qy?Jy:(Qy=1,Jy=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}))()?Object.keys:function(){if(ib)return ob;ib=1;var e=Pb(),t=Object.keys;return ob=function(n){return t(e(n)?Object(n):n)}}()),ab}function Lb(){if(db)return cb;db=1;var e=_b(),t=function(){if(lb)return ub;lb=1;var e=Pb();return ub=function(t){if(!e(t))throw new TypeError("Cannot use null or undefined");return t}}(),n=Math.max;return cb=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},cb}function Rb(){return pb?fb:(pb=1,fb=(Zy||(Zy=1,Xy=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")}),Xy)()?Object.assign:Lb())}function Mb(){return Cb||(Cb=1,Eb=function(){if(mb)return vb;mb=1;var e="razdwatrzy";return vb=function(){return"function"==typeof e.contains&&!0===e.contains("dwa")&&!1===e.contains("foo")}}()()?String.prototype.contains:function(){if(bb)return yb;bb=1;var e=String.prototype.indexOf;return yb=function(t){return e.call(this,t,arguments[1])>-1},yb}()),Eb}function jb(){if(Db)return Tb.exports;Db=1;var e=kb(),t=Ib(),n=Rb(),r=function(){if(gb)return hb;gb=1;var e=Pb(),t=Array.prototype.forEach,n=Object.create;return hb=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},hb}(),o=Mb(),i=Tb.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},Tb.exports}var Hb=(Ab||(Ab=1,function(e,t){var n,r,o,i,a,s,u,l=jb(),c=(Sb||(Sb=1,wb=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e}),wb),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}(Bb,Bb.exports)),Bb.exports),zb=b(Hb);function $b(e){var t=Wv.get(e);return null==t&&(t=zb(),Wv.set(e,t)),t}var Ub=new WeakMap;function Vb(e,t){var n=Ub.get(e);null==n&&(n=new Set,Ub.set(e,n)),n.add(t)}var Wb=function(e){var t=e;return t.on=function(e,n){var r=$b(t);if(r.on(e,n),"destroyed"===e&&Vb(t,n),"destroyed"!==e){var o=function(){return r.off(e,n)};r.on("destroyed",o),Vb(t,o)}},t.once=function(e,n){$b(t).once(e,n)},t.off=function(e,n){$b(t).off(e,n)},t.emit=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=$b(t);if(o.emit.apply(o,tv([e],ev(n),!1)),"destroyed"===e){var i=function(e){return Ub.get(e)||new Set}(t);i.forEach(function(e){return o.off("destroyed",e)}),function(e){Ub.set(e,new Set)}(t)}},t},Gb=function(e){var t=e;return t.setFragmentData=function(e){var n=t.selection;if(n){var r=ev(fg.edges(n),2),o=r[0],i=r[1],a=Kh.void(t,{at:o.path}),s=Kh.void(t,{at:i.path});if(!fg.isCollapsed(n)||a){var u=Py.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=ev(s,1)[0],f=u.cloneRange(),p=Py.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":""}),Xm(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",ey(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=Qg(l),f=d.next();!f.done;f=d.next()){var p=f.value,h=Py.getLeftLengthOfMaxLength(t);c&&h>0&&jg.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},qb=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=Py.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=Py.getLeftLengthOfMaxLength(t);if(!(n<=0))n<eg.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(Py.getLeftLengthOfMaxLength(t)<eg.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=Py.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?Xm(t)?e+(t.textContent||""):Km(t)?Kv.has(n.toLowerCase())?e:e+(t.textContent||""):e:e},"").length||i(e,n)}}else i(e,n)},t};function Kb(e){var t=Py.getTextarea(e).$textAreaContainer,n=t.width(),r=t.height(),o=t.offset();return{top:o.top,left:o.left,width:n,height:r}}function Yb(e){var t={top:"0",left:"0"},n=e.selection;if(null==n)return t;var r=Kb(e);if(null==r)return t;var o=r.top,i=r.left,a=r.width,s=r.height,u=Py.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 Xb(e,t,n){void 0===n&&(n="modal");var r={top:"0",left:"0"};if(null==e.selection)return r;var o=$h.isElement(t)&&e.isVoid(t),i=$h.isElement(t)&&e.isInline(t),a=Hv.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===$m.ELEMENT_NODE){var i=o.toLowerCase();if(jm.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=Kb(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)(D=E)<0&&(D=0),b.top="".concat(D,"px");else if(E>(y-c)/2)b.bottom="".concat(y-E+5,"px");else{var D;(D=E+c)<0&&(D=0),b.top="".concat(D+5,"px")}return b}throw new Error("type '".concat(n,"' is invalid"))}function Zb(e,t){zm(function(){var n=Kb(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 D=t.css("right"),w=parseInt(D.toString(),10)-Math.abs(c);t.css("right","".concat(w,"px"))}}})}var Jb,Qb,eE=function(e){var t=e;return t.select=function(e){jg.select(t,e)},t.deselect=function(){var n=t.selection,r=Py.findDocumentOrShadowRoot(t).getSelection();r&&r.rangeCount>0&&r.removeAllRanges(),n&&jg.deselect(e)},t.move=function(t,n){void 0===n&&(n=!1),t&&(t<0||jg.move(e,{distance:t,unit:"character",reverse:n}))},t.moveReverse=function(e){t.move(e,!0)},t.restoreSelection=function(){var e=Vv.get(t);null!=e&&(t.focus(),jg.select(t,e))},t.getSelectionPosition=function(){return Yb(t)},t.getNodePosition=function(e){return Xb(t,e)},t.isSelectedAll=function(){var e=t.selection;if(null==e)return!1;var n=ev(fg.edges(e),2),r=n[0],o=n[1],i=ev(Kh.edges(t,[]),2),a=i[0],s=i[1];return!(!ug.equals(r,a)||!ug.equals(o,s))},t.selectAll=function(){var e=Kh.start(t,[]),n=Kh.end(t,[]);jg.select(t,{anchor:e,focus:n})},t};var tE=function(){if(Qb)return Jb;Qb=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 y&&y&&y.Object===Object&&y,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 Jb=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 D(){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),D.cancel=function(){void 0!==s&&clearTimeout(s),h=0,r=u=o=s=void 0},D.flush=function(){return void 0===s?a:C(d())},D},Jb}(),nE=b(tE);const rE=e=>"string"==typeof e,oE=()=>{let e,t;const n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},iE=e=>null==e?"":""+e,aE=/###/g,sE=e=>e&&e.indexOf("###")>-1?e.replace(aE,"."):e,uE=e=>!e||rE(e),lE=(e,t,n)=>{const r=rE(t)?t.split("."):t;let o=0;for(;o<r.length-1;){if(uE(e))return{};const t=sE(r[o]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++o}return uE(e)?{}:{obj:e,k:sE(r[o])}},cE=(e,t,n)=>{const{obj:r,k:o}=lE(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=lE(e,a,Object);for(;void 0===s.obj&&a.length;)i=`${a[a.length-1]}.${i}`,a=a.slice(0,a.length-1),s=lE(e,a,Object),s&&s.obj&&void 0!==s.obj[`${s.k}.${i}`]&&(s.obj=void 0);s.obj[`${s.k}.${i}`]=n},dE=(e,t)=>{const{obj:n,k:r}=lE(e,t);if(n)return n[r]},fE=(e,t,n)=>{for(const r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?rE(e[r])||e[r]instanceof String||rE(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):fE(e[r],t[r],n):e[r]=t[r]);return e},pE=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var hE={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const gE=e=>rE(e)?e.replace(/[&<>"'\/]/g,e=>hE[e]):e;const vE=[" ",",","?","!",";"],mE=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),yE=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},bE=e=>e&&e.replace("_","-"),EE={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 CE{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||EE,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:(rE(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new CE(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new CE(this.logger,e)}}var DE=new CE;class wE{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 SE extends wE{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):rE(n)&&o?a.push(...n.split(o)):a.push(n)));const s=dE(this.data,a);return!s&&!t&&!n&&e.indexOf(".")>-1&&(e=a[0],t=a[1],n=a.slice(2).join(".")),!s&&i&&rE(n)?yE(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),cE(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)(rE(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=dE(this.data,a)||{};i.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?fE(s,n,o):s={...s,...n},cE(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 AE={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 xE={};class OE extends wE{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=DE.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=vE.filter(e=>t.indexOf(e)<0&&n.indexOf(e)<0);if(0===r.length)return!0;const o=mE.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:rE(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:rE(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=!rE(d)&&"boolean"!=typeof d&&"number"!=typeof d;if(!(v&&d&&m&&["[object Number]","[object Function]","[object RegExp]"].indexOf(h)<0)||rE(g)&&Array.isArray(d))if(v&&rE(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&&!rE(t.count),f=OE.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=rE(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&&!rE(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=rE(a)?[a]:a;return null!=e&&s&&s.length&&!1!==n.applyPostProcessor&&(e=AE.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 rE(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&&!rE(a.count),d=c&&!a.ordinal&&0===a.count&&this.pluralResolver.shouldUseIntlApi(),f=void 0!==a.context&&(rE(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,!xE[`${p[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(i)&&(xE[`${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&&!rE(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 NE=e=>e.charAt(0).toUpperCase()+e.slice(1);class BE{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=DE.create("languageUtils")}getScriptPartFromCode(e){if(!(e=bE(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=bE(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(rE(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]=NE(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]=NE(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=NE(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)),rE(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 rE(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))):rE(e)&&o(this.formatLanguageCode(e)),n.forEach(e=>{r.indexOf(e)<0&&o(this.formatLanguageCode(e))}),r}}let TE=[{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}],kE={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 FE=["v1","v2","v3"],IE=["v4"],PE={zero:0,one:1,two:2,few:3,many:4,other:5};class _E{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=DE.create("pluralResolver"),this.options.compatibilityJSON&&!IE.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 TE.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:kE[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=bE("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)=>PE[e]-PE[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!FE.includes(this.options.compatibilityJSON)}}const LE=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=dE(e,n);return void 0!==r?r:dE(t,n)})(e,t,n);return!i&&o&&rE(n)&&(i=yE(e,n,r),void 0===i&&(i=yE(t,n,r))),i},RE=e=>e.replace(/\$/g,"$$$$");class ME{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=DE.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:gE,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==r&&r,this.prefix=o?pE(o):i||"{{",this.suffix=a?pE(a):s||"}}",this.formatSeparator=u||",",this.unescapePrefix=l?"":c||"-",this.unescapeSuffix=this.unescapePrefix?"":l||"",this.nestingPrefix=d?pE(d):f||pE("$t("),this.nestingSuffix=p?pE(p):h||pE(")"),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=LE(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(LE(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=>RE(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?RE(this.escape(e)):RE(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=rE(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 rE(i)||this.useRawValueToEscape||(i=iE(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&&!rE(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&&!rE(r))return r;rE(r)||(r=iE(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 jE=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(bE(r),o),t[a]=s),s(n)}};class HE{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=DE.create("formatter"),this.options=e,this.formats={number:jE((e,t)=>{const n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:jE((e,t)=>{const n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)}),datetime:jE((e,t)=>{const n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:jE((e,t)=>{const n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")}),list:jE((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()]=jE(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 zE extends wE{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=DE.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}=lE(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();rE(e)&&(e=this.languageUtils.toResolveHierarchy(e)),rE(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 $E=()=>({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]),rE(e[1])&&(t.defaultValue=e[1]),rE(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}}),UE=e=>(rE(e.ns)&&(e.ns=[e.ns]),rE(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),rE(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),VE=()=>{};class WE extends wE{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=UE(e),this.services={},this.logger=DE,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&&(rE(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=$E();this.options={...r,...this.options,...UE(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?DE.init(o(this.modules.logger),this.options):DE.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=HE);const n=new BE(this.options);this.store=new SE(this.options.resources,this.options);const i=this.services;i.logger=DE,i.resourceStore=this.store,i.languageUtils=n,i.pluralResolver=new _E(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 ME(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new zE(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 OE(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=VE),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=oE(),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]:VE;const n=rE(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=oE();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=VE),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&&AE.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=oE();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=rE(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 rE(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=oE();return this.options.ns?(rE(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=oE();rE(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 BE($E());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 WE(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]:VE;const n=e.forkResourceStore;n&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},o=new WE(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 SE(this.store.data,r),o.services.resourceStore=o.store),o.translator=new OE(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 GE=WE.createInstance();GE.createInstance=WE.createInstance,GE.createInstance,GE.dir,GE.init,GE.loadResources,GE.reloadResources,GE.use,GE.changeLanguage,GE.getFixedT,GE.t,GE.exists,GE.setDefaultNamespace,GE.hasLoadedNamespace,GE.loadNamespaces,GE.loadLanguages;var qE="translation";function KE(e,t){GE.addResourceBundle(e,qE,t,!0,!0)}function YE(e){GE.changeLanguage(e)}function XE(e){return GE.getResourceBundle(e,qE)}function ZE(e){return GE.on("languageChanged",e),function(){return GE.off("languageChanged",e)}}GE.init({lng:"zh-CN",resources:{}});var JE=GE.t.bind(GE);function QE(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&&QE(t)}}function eC(){return im('<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 tC(){return im('<div class="w-e-bar-divider"></div>')}function nC(e,t,n,r,o){if(void 0===r&&(r=""),void 0===o&&(o=!1),t){if(r){var i=Oy?"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 rC=function(){function e(e,t,n){void 0===n&&(n=!1);var r=this;this.$elem=im('<div class="w-e-bar-item"></div>'),this.$button=im('<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=im(c);QE(f),d.append(f)}else d.text(a);nC(d,c,a,u,n),n&&c&&d.append(im('<span class="title">'.concat(a,"</span>"))),i&&d.css("width","".concat(i,"px")),d.attr("data-menu-key",e),this.$elem.append(d),zm(function(){return r.init()})}return e.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on("click",function(t){t.preventDefault(),mC(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())})},e.prototype.exec=function(){var e=mC(this),t=this.menu,n=t.getValue(e);this.setIcon(),this.setTooltip(),t.exec(e,n)},e.prototype.setActive=function(){var e=mC(this),t=this.$button,n="active";this.menu.isActive(e)?t.addClass(n):t.removeClass(n)},e.prototype.setDisabled=function(){var e=mC(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=mC(this),t=this.$button;if(this.menu.getIcon){var n=this.menu.getIcon(e);if(n){t.find("svg").remove();var r=im(n);QE(r),t.append(r)}}},e.prototype.setTooltip=function(){var e=mC(this),t=this.$button;if(this.menu.getTitle){var n=this.menu.getTitle(e),r=this.menu.iconSvg;n&&r&&nC(t,r,n)}},e.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},e}(),oC=function(e){function t(t,n,r){return void 0===r&&(r=!1),e.call(this,t,n,r)||this}return Kg(t,e),t.prototype.onButtonClick=function(){},t}(rC),iC=function(){function e(e){this.isShow=!1,this.showTime=0,this.record(e)}return e.prototype.record=function(e){var t=Ov.get(e);null==t&&(t=new Set,Ov.set(e,t)),t.add(this),Nv.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=Nv.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=Nv.get(this);e&&e.emit("modalOrPanelHide")}},e}(),aC=function(e){function t(t){var n=e.call(this,t)||this;return n.type="dropPanel",n.$elem=im('<div class="w-e-drop-panel"></div>'),n}return Kg(t,e),t.prototype.genSelfElem=function(){return null},t}(iC),sC=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=eC();o.$button.append(i)}return o}return Kg(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=mC(this);if(null==this.dropPanel){var n=new aC(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}(rC),uC=function(e){function t(t,n){void 0===n&&(n=0);var r=e.call(this,t)||this;r.type="modal",r.$elem=im('<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 Kg(t,e),t.prototype.genSelfElem=function(){var e=this,t=im('<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=Nv.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}(iC);function lC(e,t,n){var r=im('<label class="babel-container"></label>');r.append("<span>".concat(e,"</span>"));var o=im('<input type="text" id="'.concat(t,'" placeholder="').concat(n||"",'">'));return r.append(o),[r[0],o[0]]}function cC(e,t,n){var r=im('<label class="babel-container"></label>');r.append("<span>".concat(e,"</span>"));var o=im('<textarea type="text" id="'.concat(t,'" placeholder="').concat(n||"",'"></textarea>'));return r.append(o),[r[0],o[0]]}function dC(e,t){var n=im('<div class="button-container"></div>'),r=im('<button type="button" id="'.concat(e,'">').concat(t,"</button>"));return n.append(r),[n[0],r[0]]}var fC=function(e){function t(t,n,r){void 0===r&&(r=!1);var o=e.call(this,t,n,r)||this;return o.$body=im("body"),o.modal=null,o.menu=n,o}return Kg(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var e=mC(this),t=this.menu.getModalPositionNode(e);return $h.isElement(t)?Xb(e,t,"modal"):Yb(e)},t.prototype.handleModal=function(){var e=mC(this),t=this.menu;if(null==this.modal){var n=new uC(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=mC(this),r=this.menu;if(null!=r.getModalContentElem){var o=Py.getTextarea(n),i=Py.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||Zb(n,e.$elem),setTimeout(function(){n.blur()})}},t}(rC);var pC=function(e){function t(t,n){var r=e.call(this,t)||this;return r.type="selectList",r.$elem=im('<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 Kg(t,e),t.prototype.renderList=function(e){var t=this.$elem;t.empty();var n=im("<ul></ul>");e.forEach(function(e){var t=e.value,r=e.text,o=e.selected,i=e.styleForRenderMenuList,a=im('<li data-value="'.concat(t,'"></li>'));if(i&&a.css(i),o){var s=im('<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(im('<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}(iC);var hC=function(){function e(e,t,n){void 0===n&&(n=!1);var r=this;this.$elem=im('<div class="w-e-bar-item"></div>'),this.$button=im('<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),nC(d,u,i,c,n),this.$elem.append(d),this.menu=t,zm(function(){return r.init()})}return e.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on("click",function(t){t.preventDefault(),mC(e).hidePanelOrModal(),e.trigger()})},e.prototype.trigger=function(){var e=this,t=mC(this);if(!t.isDisabled()&&!this.disabled){var n=this.menu;if(null==this.selectList){this.selectList=new pC(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=im(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=mC(this),n=this.menu;n.exec&&n.exec(t,e)},e.prototype.setSelectedValue=function(){var e=mC(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=eC();o.empty(),o.text(r),o.append(i)},e.prototype.setDisabled=function(){var e=mC(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}(),gC=function(){function e(e){this.$elem=im('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=im('<div class="w-e-bar-item-menus-container"></div>'),this.$button=im('<button type="button"></button>');var t=e.key,n=e.iconSvg,r=e.title,o=this.$elem,i=this.$button;if(n){var a=im(n);QE(a),i.append(a)}else i.text(r);i.attr("data-menu-key",t);var s=eC();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){im(e).hasClass("disabled")&&a++}),r.disconnect(),a===i?n.addClass("disabled"):n.removeClass("disabled"),e.observe(r)}});return r},e}(),vC=new WeakMap;function mC(e){var t=xv.get(e);if(null==t)throw new Error("Can not get editor instance");return t}function yC(e,t,n){void 0===n&&(n=!1);var r=vC.get(t);if(r)return r;var o=t.tag;if("button"===o){var i=t.showDropPanel,a=t.showModal;r=i?new sC(e,t,n):a?new fC(e,t,n):new oC(e,t,n)}if("select"===o&&(r=new hC(e,t,n)),null==r)throw new Error("Invalid tag in menu ".concat(JSON.stringify(t)));return vC.set(t,r),r}function bC(e,t){var n=e.selection;return null!=n&&(!fg.isCollapsed(n)&&(!Py.getSelectedElems(e).some(function(t){if(e.isVoid(t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)})&&!!Cg.isText(t)))}var EC,CC,DC=function(){function e(){var e=this;this.$elem=im('<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=nE(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&&$h.isElement(o)&&t){var u=e.isSamePath(o,e.prevSelectedNode);if(!Kh.isBlock(s,o)&&u)return}e.hideAndClean(),null!=o&&(e.registerItems(a),e.setPosition(o),e.show()),e.prevSelectedNode=o},200),zm(function(){var t=e.getEditorInstance(),n=e.$elem;n.on("mousedown",function(e){return e.preventDefault()},{passive:!1}),Py.getTextarea(t).$textAreaContainer.append(n),t.on(hv,e.changeHoverbarState);var r=e.hideAndClean.bind(e);t.on(gv,r),t.on(vv,r),t.on(mv,r)}),this.lngListen=ZE(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;zm(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=tC();n.append(r)}})},e.prototype.registerSingleItem=function(e){var t=this.getEditorInstance(),n=this.menus,r=n[e];if(null==r){var o=yv[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=yC(e,r);this.hoverbarItems.push(a),xv.set(a,t),this.$elem.append(a.$elem)},e.prototype.setPosition=function(e){var t=this.getEditorInstance(),n=this.$elem;if(n.attr("style",""),$h.isElement(e)){var r=Xb(t,e,"bar");return n.css(r),void Zb(t,n)}if(Cg.isText(e)){r=Yb(t);return n.css(r),void Zb(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 Py.checkNodeType(t,o)},c=ev(Kh.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=Sv.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=bC),t},e.prototype.isSamePath=function(e,t){if(null==e||null==t)return!1;var n=Py.findPath(null,e),r=Py.findPath(null,t);return og.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 wC(){if(CC)return EC;CC=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 y&&y&&y.Object===Object&&y,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 D(e);u=setTimeout(C,function(e){var t=n-(e-l);return m?d(t,a-(e-p)):t}(e))}function D(e){return u=void 0,y&&o?b(e):(o=i=void 0,s)}function w(){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),w.cancel=function(){void 0!==u&&clearTimeout(u),p=0,o=l=i=u=void 0},w.flush=function(){return void 0===u?s:D(f())},w}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 EC=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 SC=b(wC());function AC(e,t){return Gm(t)&&Py.hasDOMNode(e,t,{editable:!0})}function xC(e,t){if(e.getConfig().readOnly)return!1;var n=OC(e,t)&&Py.toSlateNode(e,t);return Kh.isVoid(e,n)}function OC(e,t){return Gm(t)&&Py.hasDOMNode(e,t)}const NC=e=>"object"==typeof e&&null!=e&&1===e.nodeType,BC=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,TC=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return BC(n.overflowY,t)||BC(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},kC=(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,FC=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t},IC=(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(!NC(e))throw new TypeError("Invalid target");const f=document.scrollingElement||document.documentElement,p=[];let h=e;for(;NC(h)&&d(h);){if(h=FC(h),h===f){p.push(h);break}null!=h&&h===document.body&&TC(h)&&!TC(document.documentElement)||null!=h&&TC(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:D,bottom:w,left:S}=e.getBoundingClientRect(),{top:A,right:x,bottom:O,left: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);let B="start"===s||"nearest"===s?C-A:"end"===s?w+O:C+b/2-A+O,T="center"===u?S+E/2-N+x:"end"===u?D+x:S-N;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&&S>=0&&w<=v&&D<=g&&(t===f&&!TC(t)||C>=o&&w<=l&&S>=c&&D<=i))return k;const d=getComputedStyle(t),h=parseInt(d.borderLeftWidth,10),A=parseInt(d.borderTopWidth,10),x=parseInt(d.borderRightWidth,10),O=parseInt(d.borderBottomWidth,10);let N=0,F=0;const I="offsetWidth"in t?t.offsetWidth-t.clientWidth-h-x:0,P="offsetHeight"in t?t.offsetHeight-t.clientHeight-A-O:0,_="offsetWidth"in t?0===t.offsetWidth?0:r/t.offsetWidth:0,L="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(f===t)N="start"===s?B:"end"===s?B-v:"nearest"===s?kC(y,y+v,v,A,O,y+B,y+B+b,b):B-v/2,F="start"===u?T:"center"===u?T-g/2:"end"===u?T-g:kC(m,m+g,g,h,x,m+T,m+T+E,E),N=Math.max(0,N+y),F=Math.max(0,F+m);else{N="start"===s?B-o-A:"end"===s?B-l+O+P:"nearest"===s?kC(o,l,n,A,O+P,B,B+b,b):B-(o+n/2)+P/2,F="start"===u?T-c-h:"center"===u?T-(c+r/2)+I/2:"end"===u?T-i+x+I:kC(c,i,r,h,x+I,T,T+E,E);const{scrollLeft:e,scrollTop:a}=t;N=0===L?0:Math.max(0,Math.min(a+N/L,t.scrollHeight-n/L+P)),F=0===_?0:Math.max(0,Math.min(e+F/_,t.scrollWidth-r/_+I)),B+=a-N,T+=e-F}k.push({el:t,top:N,left:F})}return k};function PC(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(IC(e,t));const r="boolean"==typeof t||null==t?void 0:t.behavior;for(const{el:o,top:i,left:a}of IC(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 _C(e,t,n){void 0===n&&(n=!1);var r=t.selection,o=t.getConfig(),i=Py.findDocumentOrShadowRoot(t).getSelection();if(i&&(!e.isComposing||n)&&t.isFocused()){var a="None"!==i.type;if(r||a){var s=Rv.get(t),u=!1;if(s.contains(i.anchorNode)&&s.contains(i.focusNode)&&(u=!0),a&&u&&r){var l=Py.toSlateRange(t,i,{exactMatch:!0,suppressThrow:!0});if(l&&fg.equals(l,r)){var c=!0;if(fg.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||Py.hasRange(t,r)){e.isUpdatingSelection=!0;var g=r&&Py.toDOMRange(t,r);if(g){fg.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;PC(v,{scrollMode:"if-needed",boundary:o.scroll?s.parentElement:m,block:"end",behavior:"smooth"}),delete v.getBoundingClientRect}}else i.removeAllRanges();setTimeout(function(){g&&Ny&&s.focus(),e.isUpdatingSelection=!1})}else t.selection=Py.toSlateRange(t,i,{exactMatch:!1,suppressThrow:!1})}}}var LC=new WeakMap,RC=new WeakMap;var MC,jC={};var HC=function(){if(MC)return jC;MC=1,Object.defineProperty(jC,"__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 jC.default=i,jC.isHotkey=i,jC.isCodeHotkey=function(e,t){return i(e,t)},jC.isKeyHotkey=function(e,t){return i(e,{byKey:!0},t)},jC.parseHotkey=a,jC.compareHotkey=s,jC.toKeyCode=u,jC.toKeyName=l,jC}(),zC={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"},$C={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"},UC={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},VC=function(e){var t=zC[e],n=$C[e],r=UC[e],o=t&&HC.isKeyHotkey(t),i=n&&HC.isKeyHotkey(n),a=r&&HC.isKeyHotkey(r);return function(e){return!(!o||!o(e))||(!!(Oy&&i&&i(e))||!(Oy||!a||!a(e)))}},WC={isBold:VC("bold"),isCompose:VC("compose"),isMoveBackward:VC("moveBackward"),isMoveForward:VC("moveForward"),isDeleteBackward:VC("deleteBackward"),isDeleteForward:VC("deleteForward"),isDeleteLineBackward:VC("deleteLineBackward"),isDeleteLineForward:VC("deleteLineForward"),isDeleteWordBackward:VC("deleteWordBackward"),isDeleteWordForward:VC("deleteWordForward"),isExtendBackward:VC("extendBackward"),isExtendForward:VC("extendForward"),isExtendLineBackward:VC("extendLineBackward"),isExtendLineForward:VC("extendLineForward"),isItalic:VC("italic"),isMoveLineBackward:VC("moveLineBackward"),isMoveLineForward:VC("moveLineForward"),isMoveWordBackward:VC("moveWordBackward"),isMoveWordForward:VC("moveWordForward"),isRedo:VC("redo"),isSplitBlock:VC("splitBlock"),isTransposeCharacter:VC("transposeCharacter"),isUndo:VC("undo"),isTab:VC("tab"),isSelectAll:VC("selectAll")};function GC(e){e.preventDefault()}var qC={beforeinput:function(e,t,n){var r=e,o=n.getConfig().readOnly;if(Iy&&!o&&AC(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=ev(r.getTargetRanges(),1)[0];if(u){var l=Py.toSlateRange(n,u,{exactMatch:!1,suppressThrow:!1});i&&fg.equals(i,l)||jg.select(n,l)}}if(i&&fg.isExpanded(i)){var c=Py.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 Kh.deleteFragment(n,{direction:p})}}switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":Kh.deleteFragment(n);break;case"deleteContent":case"deleteContentForward":Kh.deleteForward(n);break;case"deleteContentBackward":Kh.deleteBackward(n);break;case"deleteEntireSoftLine":Kh.deleteBackward(n,{unit:"line"}),Kh.deleteForward(n,{unit:"line"});break;case"deleteHardLineBackward":Kh.deleteBackward(n,{unit:"block"});break;case"deleteSoftLineBackward":Kh.deleteBackward(n,{unit:"line"});break;case"deleteHardLineForward":Kh.deleteForward(n,{unit:"block"});break;case"deleteSoftLineForward":Kh.deleteForward(n,{unit:"line"});break;case"deleteWordBackward":Kh.deleteBackward(n,{unit:"word"});break;case"deleteWordForward":Kh.deleteForward(n,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":Kh.insertBreak(n);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if("insertFromPaste"===a&&!Gv.get(n))break;"[object DataTransfer]"===Um(s)?n.insertData(s):"string"==typeof s&&Kh.insertText(n,s)}}}},blur:function(e,t,n){var r=e,o=t.isUpdatingSelection,i=t.latestElement;if(!n.getConfig().readOnly&&!o&&AC(n,r.target)){var a=Py.findDocumentOrShadowRoot(n);if(i!==a.activeElement){var s=r.relatedTarget;if(!(s===Py.toDOMNode(n,n)||Km(s)&&s.hasAttribute("data-slate-spacer"))){if(null!=s&&Gm(s)&&Py.hasDOMNode(n,s)){var u=Py.toSlateNode(n,s);if($h.isElement(u)&&!n.isVoid(u))return}if(By){var l=a.getSelection();null==l||l.removeAllRanges()}Uv.delete(n)}}}},focus:function(e,t,n){var r=Py.toDOMNode(n,n),o=Py.findDocumentOrShadowRoot(n);t.latestElement=o.activeElement,Ny&&e.target!==r?r.focus():Uv.set(n,!0)},click:function(e,t,n){if(!n.getConfig().readOnly&&OC(n,e.target)&&Gm(e.target)){var r=Py.toSlateNode(n,e.target),o=Py.findPath(n,r);if(Kh.hasPath(n,o))if(eg.get(n,o)===r){var i=Kh.start(n,o),a=Kh.end(n,o),s=Kh.void(n,{at:i}),u=Kh.void(n,{at:a});if(s&&u&&og.equals(s[1],u[1])){var l=Kh.range(n,i);jg.select(n,l)}}}},compositionstart:function(e,t,n){if(AC(n,e.target)){var r=n.selection;if(r&&fg.isExpanded(r)&&(Kh.deleteFragment(n),Promise.resolve().then(function(){_C(t,n,!0)})),n.selection){var o=Py.toDOMRange(n,n.selection).startContainer,i=o.textContent||"";LC.set(n,i),RC.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(AC(n,r.target)){t.isComposing=!1;var o=n.selection;if(null!=o){(Fy||Ny)&&Py.cleanExposedTexNodeInSelectionBlock(n);for(var i=fg.isBackward(o)?o.focus:o.anchor,a=ev(Kh.node(n,[i.path[0]]),1)[0],s=0;s<i.path.length;s+=1){var u=ev(Kh.node(n,i.path.slice(0,s+1)),1)[0];if($h.isElement(u)&&((By||Ny)&&"link"===u.type||"code"===u.type)){Py.setNewKey(a);break}}var l=r.data;if(l){if(n.getConfig().maxLength){var c=Py.getLeftLengthOfMaxLength(n);if(c<l.length){var d=Py.toDOMRange(n,o);d.startContainer.nodeType===Node.TEXT_NODE&&(d.startContainer.textContent=LC.get(n)||""),c>0&&Kh.insertText(n,l.slice(0,c)),t.changeViewState()}else Kh.insertText(n,l)}else{var f=Py.findDocumentOrShadowRoot(n).getSelection();f&&function(e,t){if(fg.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=Kh.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=Kh.node(e,a);if(Cg.isText(s[0])&&Cg.isText(o[0]))return!0}}}(n,o)&&(n.selection=Py.toSlateRange(n,f,{exactMatch:!1,suppressThrow:!1})),Kh.insertText(n,l)}By||setTimeout(function(){var e=n.selection;if(null!=e){var t=RC.get(n);if(null!=t)Py.toDOMRange(n,e).startContainer!==t&&(t.textContent=LC.get(n)||"")}})}}}},compositionupdate:function(e,t,n){AC(n,e.target)&&(t.isComposing=!0)},keydown:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&!t.isComposing&&AC(n,r.target)){if(function(e,t){var n=wv.get(e),r=n&&n.getMenus(),o=Av.get(e),i=o&&o.getMenus(),a=Yg(Yg({},r),i);for(var s in a){var u=a[s],l=u.hotkey;if(l&&HC.isHotkey(l,t)&&!u.isDisabled(e)){var c=u.getValue(e);u.exec(e,c)}}}(n,r),WC.isTab(r))return GC(r),void n.handleTab();if(WC.isRedo(r))return GC(r),void("function"==typeof n.redo&&n.redo());if(WC.isUndo(r))return GC(r),void("function"==typeof n.undo&&n.undo());if(WC.isMoveLineBackward(r))return GC(r),void jg.move(n,{unit:"line",reverse:!0});if(WC.isMoveLineForward(r))return GC(r),void jg.move(n,{unit:"line"});if(WC.isExtendLineBackward(r))return GC(r),void jg.move(n,{unit:"line",edge:"focus",reverse:!0});if(WC.isExtendLineForward(r))return GC(r),void jg.move(n,{unit:"line",edge:"focus"});if(WC.isMoveBackward(r))return GC(r),void(o&&fg.isCollapsed(o)?jg.move(n,{reverse:!0}):jg.collapse(n,{edge:"start"}));if(WC.isMoveForward(r))return GC(r),void(o&&fg.isCollapsed(o)?jg.move(n):jg.collapse(n,{edge:"end"}));if(WC.isMoveWordBackward(r))return GC(r),o&&fg.isExpanded(o)&&jg.collapse(n,{edge:"focus"}),void jg.move(n,{unit:"word",reverse:!0});if(WC.isMoveWordForward(r))return GC(r),o&&fg.isExpanded(o)&&jg.collapse(n,{edge:"focus"}),void jg.move(n,{unit:"word"});if(WC.isSelectAll(r))return GC(r),void n.selectAll();if(Iy){if((Fy||By)&&o&&(WC.isDeleteBackward(r)||WC.isDeleteForward(r))&&fg.isCollapsed(o)){var i=eg.parent(n,o.anchor.path);if($h.isElement(i)&&Kh.isVoid(n,i)&&Kh.isInline(n,i))return r.preventDefault(),void jg.delete(n,{unit:"block"})}}else{if(WC.isBold(r)||WC.isItalic(r)||WC.isTransposeCharacter(r))return void GC(r);if(WC.isSplitBlock(r))return GC(r),void Kh.insertBreak(n);if(WC.isDeleteBackward(r))return GC(r),void(o&&fg.isExpanded(o)?Kh.deleteFragment(n,{direction:"backward"}):Kh.deleteBackward(n));if(WC.isDeleteForward(r))return GC(r),void(o&&fg.isExpanded(o)?Kh.deleteFragment(n,{direction:"forward"}):Kh.deleteForward(n));if(WC.isDeleteLineBackward(r))return GC(r),void(o&&fg.isExpanded(o)?Kh.deleteFragment(n,{direction:"backward"}):Kh.deleteBackward(n,{unit:"line"}));if(WC.isDeleteLineForward(r))return GC(r),void(o&&fg.isExpanded(o)?Kh.deleteFragment(n,{direction:"forward"}):Kh.deleteForward(n,{unit:"line"}));if(WC.isDeleteWordBackward(r))return GC(r),void(o&&fg.isExpanded(o)?Kh.deleteFragment(n,{direction:"backward"}):Kh.deleteBackward(n,{unit:"word"}));if(WC.isDeleteWordForward(r))return GC(r),void(o&&fg.isExpanded(o)?Kh.deleteFragment(n,{direction:"forward"}):Kh.deleteForward(n,{unit:"word"}))}}},keypress:function(e,t,n){if(!Iy&&!n.getConfig().readOnly&&AC(n,e.target)){e.preventDefault();var r=e.key;Kh.insertText(n,r)}},copy:function(e,t,n){var r=e;if(AC(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(),AC(n,r.target))){var i=r.clipboardData;if(null!=i&&(n.setFragmentData(i),o))if(fg.isExpanded(o))Kh.deleteFragment(n);else{var a=eg.parent(n,o.anchor.path);Kh.isVoid(n,a)&&jg.delete(n)}}},paste:function(e,t,n){Gv.set(n,!0);var r=e;if(!n.getConfig().readOnly&&AC(n,r.target)){var o=n.getConfig().customPaste;if(o)if(!1===o(n,r))return void Gv.set(n,!1);if(By||!Iy||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(OC(n,e.target)){var r=Py.toSlateNode(n,e.target);Kh.isVoid(n,r)&&e.preventDefault()}},dragstart:function(e,t,n){var r=e;if(OC(n,r.target)&&!n.getConfig().readOnly){var o=Py.toSlateNode(n,r.target),i=Py.findPath(n,o);if(Kh.isVoid(n,o)||Kh.void(n,{at:i,voids:!0})){var a=Kh.range(n,i);jg.select(n,a)}var s=r.dataTransfer;if(null!=s)Py.getSelectedNodeByType(n,"table")||(t.isDraggingInternally=!0,n.setFragmentData(s))}},dragend:function(e,t,n){var r=e;n.getConfig().readOnly||t.isDraggingInternally&&OC(n,r.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,n){var r=e,o=r.dataTransfer;if(!n.getConfig().readOnly&&OC(n,r.target)&&null!=o&&!(Iy&&By&&o.files.length>0)){r.preventDefault();var i=n.selection,a=Py.findEventRange(n,r);jg.select(n,a),t.isDraggingInternally&&(i&&jg.delete(n,{at:i}),t.isDraggingInternally=!1),n.insertData(o),n.isFocused()||n.focus()}}};function KC(e){if(YC(e)){for(;e&&YC(e);){e=XC(e).parent}return null!=e?e:null}return e.parentNode}function YC(e){return 11===e.nodeType}function XC(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 ZC={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 XC(document.createDocumentFragment())},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){if(YC(e)){let t=e;for(;t&&YC(t);){t=XC(t).parent}e=null!=t?t:e}YC(t)&&(t=XC(t,e)),n&&YC(n)&&(n=XC(n).firstChildNode),e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){YC(t)&&(t=XC(t,e)),e.appendChild(t)},parentNode:KC,nextSibling:function(e){var t;if(YC(e)){const n=XC(e),r=KC(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:YC};function JC(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 QC=Array.isArray;function eD(e){return"string"==typeof e||"number"==typeof e||e instanceof String||e instanceof Number}function tD(e){return void 0===e}function nD(e){return void 0!==e}const rD=JC("",{},[],void 0,void 0);function oD(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 iD(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 aD=["create","update","remove","destroy","pre","post"];function sD(e,t,n){const r={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},o=ZC;for(const t of aD)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 JC(o.tagName(e).toLowerCase()+t+r,{},[],void 0,e)}function a(e){return JC(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;nD(t)&&(t(e),s=e.data)}const l=e.children,c=e.sel;if("!"===c)tD(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=nD(s)&&nD(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](rD,e);if(!eD(e.text)||QC(l)&&0!==l.length||o.appendChild(g,o.createTextNode(e.text)),QC(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;nD(v)&&(null===(i=v.create)||void 0===i||i.call(v,rD,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(nD(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;nD(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||nD(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;tD(t.text)?nD(b)&&nD(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]:oD(v,b)?(f(v,b,r),v=t[++p],b=n[++h]):oD(m,E)?(f(m,E,r),m=t[--g],E=n[--y]):oD(v,E)?(f(v,E,r),o.insertBefore(e,v.elm,o.nextSibling(m.elm)),v=t[++p],E=n[--y]):oD(m,b)?(f(m,b,r),o.insertBefore(e,m.elm,v.elm),m=t[--g],b=n[++h]):(void 0===i&&(i=iD(t,p,g)),a=i[b.key],tD(a)?(o.insertBefore(e,u(b,r),v.elm),b=n[++h]):tD(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):nD(E)?(nD(e.text)&&o.setTextContent(y,""),l(y,null,E,0,E.length-1,n)):nD(b)?d(y,b,0,b.length-1):nD(e.text)&&o.setTextContent(y,""):e.text!==t.text&&(nD(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),oD(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 uD(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&&uD(r,n.children,n.sel)}}function lD(e,t,n){let r,o,i,a={};if(void 0!==n?(null!==t&&(a=t),QC(n)?r=n:eD(n)?o=n.toString():n&&n.sel&&(r=[n])):null!=t&&(QC(t)?r=t:eD(t)?o=t.toString():t&&t.sel?r=[t]:a=t),void 0!==r)for(i=0;i<r.length;++i)eD(r[i])&&(r[i]=JC(void 0,void 0,void 0,r[i],void 0));return!e.startsWith("svg")||3!==e.length&&"."!==e[3]&&"#"!==e[3]||uD(a,r,e),JC(e,a,r,o,void 0)}function cD(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 dD={create:cD,update:cD};function fD(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 pD={create:fD,update:fD},hD=/[A-Z]/g;function gD(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(hD,"-$&").toLowerCase()));for(r in i)o[r]!==i[r]&&(a?a[r]=i[r]:n.setAttribute("data-"+r.replace(hD,"-$&").toLowerCase(),i[r]))}const vD={create:gD,update:gD};function mD(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++)mD(e[r],t,n)}function yD(e,t){const n=e.type,r=t.data.on;r&&r[n]&&mD(r[n],t,e)}function bD(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){yD(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 ED={create:bD,update:bD,destroy:bD};function CD(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 DD={create:CD,update:CD},wD="function"==typeof(null===window||void 0===window?void 0:window.requestAnimationFrame)?window.requestAnimationFrame.bind(window):setTimeout;let SD=!1;function AD(e,t,n){!function(e){wD(function(){wD(e)})}(function(){e[t]=n})}function xD(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]||AD(o.style,e,n);else"remove"!==r&&n!==i[r]&&("-"===r[0]&&"-"===r[1]?o.style.setProperty(r,n):o.style[r]=n)}const OD={pre:function(){SD=!1},create:xD,update:xD,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;SD||(e.elm.offsetLeft,SD=!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 ND(e,t){for(const n of e)null!=n&&!1!==n&&""!==n&&(Array.isArray(n)?ND(n,t):"string"==typeof n||"number"==typeof n||"boolean"==typeof n?t.push(JC(void 0,void 0,void 0,String(n),void 0)):t.push(n));return t}function BD(e,t,...n){const r=ND(n,[]);return"function"==typeof e?e(t,r):1===r.length&&!r[0].sel&&r[0].text?lD(e,t,r[0].text):lD(e,t,r)}var TD=[];var kD,FD,ID={};function PD(e,t,n){return BD(n.isInline(e)?"span":"div",null,t)}function _D(e,t){var n,r=Py.findKey(t,e),o=t.isInline(e),i=Kh.isVoid(t,e),a=vy(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 ID[e]||PD}(u);n=i?null:c.map(function(n,r){return jD(n,r,e,t)});var f=d(e,n,t);if(i){s["data-slate-void"]=!0;var p=o?"span":"div",h=ev(eg.texts(e),1),g=ev(h[0],1)[0],v=BD(p,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},jD(g,0,e,t));f=BD(p,{style:{position:"relative"}},f,v),_v.set(g,0),Lv.set(g,e)}return null==f.data&&(f.data={}),Object.assign(f.data,s),i||o||(f=function(e,t){var n=t;return TD.forEach(function(r){n=r(e,t)}),n}(e,f)),zm(function(){var t=Zm(a);null!=t&&(jv.set(r,t),Hv.set(e,t),Mv.set(t,e))}),f}function LD(e,t){return void 0===t&&(t=!1),BD("span",{"data-slate-string":!0},t?e+"\n":e)}function RD(e,t){return void 0===e&&(e=0),void 0===t&&(t=!1),BD("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e},"\ufeff",t?BD("br",null):null)}function MD(e,t,n){if(null==e.text)throw new Error("Current node is not slate Text ".concat(JSON.stringify(e)));var r=Py.findKey(n,e),o=n.getConfig().decorate;if(null==o)throw new Error("Can not get config.decorate");var i,a=Py.findPath(n,e),s=o([e,a]),u=Cg.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=Py.findPath(o,n),s=og.parent(a);if(Kh.isEditor(r))throw new Error("Text node ".concat(JSON.stringify(n)," parent is Editor"));return o.isVoid(r)?RD(eg.string(r).length):""!==i||r.children[r.children.length-1]!==n||o.isInline(r)||""!==Kh.string(o,s)?""===i?RD():t&&"\n"===i.slice(-1)?LD(i,!0):LD(i):RD(0,!0)}(r,o===u.length-1,e,t,n);return i=function(e,t){var n=t;return TD.forEach(function(t){n=t(e,n)}),n}(r,i),BD("span",{"data-slate-leaf":!0},i)}),c=(i=r.id,"w-e-text-".concat(i)),d=BD("span",{"data-slate-node":"text",id:c,key:r.id},l);return zm(function(){var t=Zm(c);null!=t&&(jv.set(r,t),Hv.set(e,t),Mv.set(t,e))}),d}function jD(e,t,n,r){return _v.set(e,t),Lv.set(e,n),$h.isElement(e)?_D(e,r):MD(e,n,r)}var HD=function(){if(FD)return kD;FD=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+"]",b="["+u+"]",E="[^"+o+d+v+s+u+l+"]",C="\\ud83c[\\udffb-\\udfff]",D="[^"+o+"]",w="(?:\\ud83c[\\udde6-\\uddff]){2}",S="[\\ud800-\\udbff][\\udc00-\\udfff]",A="["+l+"]",x="\\u200d",O="(?:"+b+"|"+E+")",N="(?:"+A+"|"+E+")",B="(?:['’](?:d|ll|m|re|s|t|ve))?",T="(?:['’](?:D|LL|M|RE|S|T|VE))?",k="(?:"+g+"|"+C+")"+"?",F="["+c+"]?",I=F+k+("(?:"+x+"(?:"+[D,w,S].join("|")+")"+F+k+")*"),P="(?:"+[m,w,S].join("|")+")"+I,_="(?:"+[D+g+"?",g,w,S,p].join("|")+")",L=RegExp(f,"g"),R=RegExp(g,"g"),M=RegExp(C+"(?="+C+")|"+_+I,"g"),j=RegExp([A+"?"+b+"+"+B+"(?="+[h,A,"$"].join("|")+")",N+"+"+T+"(?="+[h,A+O,"$"].join("|")+")",A+"?"+O+"+"+B,A+"+"+T,v,P].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 y&&y&&y.Object===Object&&y,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(R,"")}(e).replace(L,"")),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 kD=re}(),zD=b(HD);var $D=["props","attrs","style","dataset","on","hook"];function UD(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(!$D.includes(t)){if(t.startsWith("data-")){var a=t.slice(5);return a=zD(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&&UD(e)})}function VD(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),lD("div#".concat(e),{props:{contentEditable:!t}})}(i,s),c=t.children||[];l.children=c.map(function(e,n){if(Iv.has(e)){var r=Iv.get(e);if(r){var o=ev(r,2),i=o[0],a=o[1];if(a)return i!==n&&(_v.set(e,n),Iv.set(e,[n,a])),a}}var s=jD(e,n,t,t);UD(s);var u=t.getConfig().skipCacheTypes,l=void 0===u?["list-item"]:u;return $h.isElement(e)&&l.includes(e.type)||Iv.set(e,[n,s]),s});var d=Tv.get(e);if(null==d&&(d=!0),d){var f=function(e){return im('<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=sD([pD,DD,OD,vD,ED,dD]))(r,l),Tv.set(e,!1),kv.set(e,h)}else{var p=Fv.get(e),h=kv.get(e);if(null==p||null==h)return;r=p.elm,h(p,l)}if(null!=r||null!=(r=Zm(i))){var g;if((d?u:t.isFocused())&&r.focus({preventScroll:!0}),d){var v=(g=r)&&g.ownerDocument&&g.ownerDocument.defaultView||null;v&&$v.set(t,v)}Rv.set(t,r),Hv.set(t,r),Mv.set(r,t),Fv.set(e,l)}}var WD=1,GD=function(){function e(e){var t=this;this.id=WD++,this.$textArea=null,this.$progressBar=im('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=im('<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=SC(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=Py.findDocumentOrShadowRoot(t),a=i.activeElement,s=Py.toDOMNode(t,t),u=i.getSelection();if(a!==s)return Uv.delete(t),void jg.deselect(t);if(e.latestElement=a,Uv.set(t,!0),!u)return jg.deselect(t);var l=u.anchorNode,c=u.focusNode,d=AC(t,l)||xC(t,l),f=AC(t,c)||xC(t,c);if(d&&f){var p=Py.toSlateRange(t,u,{exactMatch:!1,suppressThrow:!1});jg.select(t,p)}}}(t,e)},100);var n=im(e);if(0===n.length)throw new Error("Cannot find textarea DOM by selector '".concat(e,"'"));this.$box=n;var r=im('<div class="w-e-text-container"></div>');r.append(this.$progressBar),r.append(this.$maxLengthInfo),n.append(r);var o=im('<div class="w-e-scroll"></div>');r.append(o),this.$scroll=o,this.$textAreaContainer=r,zm(function(){var e=t.editorInstance,o=Py.getWindow(e);o.document.addEventListener("selectionchange",t.onDOMSelectionChange),e.on(pv,function(){o.document.removeEventListener("selectionchange",t.onDOMSelectionChange)}),r.on("click",function(){return e.hidePanelOrModal()}),e.on(hv,t.changeViewState.bind(t));var i=e.getConfig(),a=i.onChange,s=i.scroll;a&&e.on(hv,function(){return a(e)}),s||(n.css("position","relative"),r.addClass("no-scroll")),t.onFocusAndOnBlur(),e.on(hv,t.changeMaxLengthInfo.bind(t)),t.bindEvent()})}return Object.defineProperty(e.prototype,"editorInstance",{get:function(){var e=Cv.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&&(cv(qC,function(n,o){t.on(o,function(t){n(t,e,r)})}),r.getConfig().scroll&&(n.css("overflow-y","auto"),n.on("scroll",SC(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(hv,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-Py.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;VD(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=im('<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),zm(function(){_C(e,t)})},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e}();function qD(e,t,n,r){if(_v.set(e,t),Lv.set(e,n),$h.isElement(e)){var o=e.children;if((void 0===o?[]:o).forEach(function(t,n){return qD(t,n,e,r)}),Kh.isVoid(r,e)){var i=ev(eg.texts(e),1),a=ev(i[0],1)[0];_v.set(a,0),Lv.set(a,e)}}}var KD={en:"Textarea height < 300px. This may cause modal and hoverbar position error",zh:"编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常"};function YD(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[Gb,Nb,qv,xb,eE,Wb,qb,Vg].reduce(function(e,t){return t(e)},e)}((()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of Kh.pathRefs(e))ig.transform(n,t);for(var r of Kh.pointRefs(e))lg.transform(r,t);for(var o of Kh.rangeRefs(e))pg.transform(o,t);var i,a,s=oh.get(e)||[],u=ih.get(e)||new Set,l=e=>{if(e){var t=e.join(",");a.has(t)||(a.add(t),i.push(e))}};if(og.operationCanTransformPath(t))for(var c of(i=[],a=new Set,s))l(og.transform(c,t));else i=s,a=u;var d=e.getDirtyPaths(t);for(var f of d)l(f);oh.set(e,i),ih.set(e,a),jg.transform(e,t),e.operations.push(t),Kh.normalize(e),"set_selection"===t.type&&(e.marks=null),ah.get(e)||(ah.set(e,!0),Promise.resolve().then(()=>{ah.set(e,!1),e.onChange(),e.operations=[]}))},addMark:(t,n)=>{var{selection:r}=e;if(r)if(fg.isExpanded(r))jg.setNodes(e,{[t]:n},{match:Cg.isText,split:!0});else{var o=fh(fh({},Kh.marks(e)||{}),{},{[t]:n});e.marks=o,ah.get(e)||e.onChange()}},deleteBackward:t=>{var{selection:n}=e;n&&fg.isCollapsed(n)&&jg.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&fg.isCollapsed(n)&&jg.delete(e,{unit:t})},deleteFragment:t=>{var{selection:n}=e;n&&fg.isExpanded(n)&&jg.delete(e,{reverse:"backward"===t})},getFragment:()=>{var{selection:t}=e;return t?eg.fragment(e,t):[]},insertBreak:()=>{jg.splitNodes(e,{always:!0})},insertSoftBreak:()=>{jg.splitNodes(e,{always:!0})},insertFragment:t=>{jg.insertFragment(e,t)},insertNode:t=>{jg.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:r}=e;if(n){if(r){var o=fh({text:t},r);jg.insertNodes(e,o)}else jg.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,r]=t;if(!Cg.isText(n))if($h.isElement(n)&&0===n.children.length)jg.insertNodes(e,{text:""},{at:r.concat(0),voids:!0});else for(var o=!Kh.isEditor(n)&&$h.isElement(n)&&(e.isInline(n)||0===n.children.length||Cg.isText(n.children[0])||e.isInline(n.children[0])),i=0,a=0;a<n.children.length;a++,i++){var s=eg.get(e,r);if(!Cg.isText(s)){var u=n.children[a],l=s.children[i-1],c=a===n.children.length-1;(Cg.isText(u)||$h.isElement(u)&&e.isInline(u))!==o?(jg.removeNodes(e,{at:r.concat(i),voids:!0}),i--):$h.isElement(u)?e.isInline(u)&&(null!=l&&Cg.isText(l)?c&&(jg.insertNodes(e,{text:""},{at:r.concat(i+1),voids:!0}),i++):(jg.insertNodes(e,{text:""},{at:r.concat(i),voids:!0}),i++)):null!=l&&Cg.isText(l)&&(Cg.equals(u,l,{loose:!0})?(jg.mergeNodes(e,{at:r.concat(i),voids:!0}),i--):""===l.text?(jg.removeNodes(e,{at:r.concat(i-1),voids:!0}),i--):""===u.text&&(jg.removeNodes(e,{at:r.concat(i),voids:!0}),i--))}}},removeMark:t=>{var{selection:n}=e;if(n)if(fg.isExpanded(n))jg.unsetNodes(e,t,{match:Cg.isText,split:!0});else{var r=fh({},Kh.marks(e)||{});delete r[t],e.marks=r,ah.get(e)||e.onChange()}},getDirtyPaths:e=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":var{path:t}=e;return og.levels(t);case"insert_node":var{node:n,path:r}=e,o=og.levels(r),i=Cg.isText(n)?[]:Array.from(eg.nodes(n),e=>{var[,t]=e;return r.concat(t)});return[...o,...i];case"merge_node":var{path:a}=e;return[...og.ancestors(a),og.previous(a)];case"move_node":var{path:s,newPath:u}=e;if(og.equals(s,u))return[];var l=[],c=[];for(var d of og.ancestors(s)){var f=og.transform(d,e);l.push(f)}for(var p of og.ancestors(u)){var h=og.transform(p,e);c.push(h)}var g=c[c.length-1],v=u[u.length-1],m=g.concat(v);return[...l,...c,m];case"remove_node":var{path:y}=e;return[...og.ancestors(y)];case"split_node":var{path:b}=e;return[...og.levels(b),og.next(b)];default:return[]}}};return e})());if(n&&function(e,t){return hy(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=uv(dv),n={},r=e.MENU_CONF,o=void 0===r?{}:r;return cv(t,function(e,t){n[t]=Yg(Yg({},e),o[t]||{})}),delete e.MENU_CONF,Yg({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);Bv.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=gy(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 GD(n);Ev.set(l,p),Cv.set(p,l),p.changeViewState(),zm(function(){var e=p.$scroll;null!=e&&e.height()<300&&console.warn("".concat(KD.zh,"\n").concat(KD.en),{element:e,height:e.height()})});var h=void 0;Object.keys(f).length>0&&(h=new DC,Sv.set(h,l),Av.set(l,h)),l.on(hv,function(){l.hidePanelOrModal()}),l.on(gv,function(){l.hidePanelOrModal()})}else l.children.forEach(function(e,t){return qD(e,t,l,l)});var g=c.onCreated,v=c.onDestroyed;return g&&l.on(fv,function(){return g(l)}),v&&l.on(pv,function(){return v(l)}),zm(function(){return l.emit("created")}),l}var XD=function(){function e(e,t){var n=this;this.$toolbar=im('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.lngListen=function(){},this.changeToolbarState=nE(function(){n.toolbarItems.forEach(function(e){e.changeMenuState()})},200),this.config=t;var r=im(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),zm(function(){n.initToolbar(),n.lngListen=ZE(function(){return n.initToolbar()}),n.getEditorInstance().on(hv,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=uv(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=tC();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 gC(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 gC,o=this.menus,i=o[e];if(null==i){var a=yv[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=yC(e,i,r);(this.toolbarItems.push(u),xv.set(u,n),r)?t.appendBarItem(u):t.$toolbar.append(u.$elem)},e.prototype.getEditorInstance=function(){var e=Dv.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 ZD(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 hy(e,"data-w-e-toolbar",t)}(e,n))throw new Error("Repeated create toolbar by selector '".concat(n,"'"));var i=Yg({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},o||{}),a=new XD(n,i);return Dv.set(a,e),wv.set(e,a),a}var JD,QD,ew,tw,nw,rw={exports:{}},ow={};function iw(){if(ew)return ow;ew=1,Object.defineProperty(ow,"__esModule",{value:!0}),ow.justErrorsLogger=ow.debugLogger=void 0;const e=function(){if(QD)return JD;function e(e){return e<10?`0${e}`:e.toString()}return QD=1,JD=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)}};ow.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 ow.debugLogger=n,ow}function aw(){if(nw)return tw;nw=1;return tw={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}},tw}var sw,uw,lw,cw,dw,fw,pw,hw,gw,vw,mw,yw,bw,Ew,Cw,Dw,ww,Sw,Aw,xw,Ow,Nw,Bw,Tw,kw,Fw,Iw,Pw,_w,Lw,Rw,Mw={};function jw(){return uw?sw:(uw=1,sw=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 Hw(){if(cw)return lw;function e(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}return cw=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},lw=function(t,n,r){var o=new e(t,r||/[\/\.]/);return void 0!==n?o.match(n):o},lw}function zw(){if(pw)return Mw;pw=1,Object.defineProperty(Mw,"__esModule",{value:!0}),Mw.defaultOptions=Mw.RestrictionError=Mw.Restricter=void 0;const e=jw(),t=function(){if(fw)return dw;fw=1;var e=Hw(),t=/[\/\+\.]/;return dw=function(n,r){function o(r){var o=e(r,n,t);return o&&o.length>=2}return r?o(r.split(";")[0]):o}}();Mw.defaultOptions={maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]};class n extends Error{constructor(){super(...arguments),this.isRestriction=!0}}Mw.RestrictionError=n,"undefined"==typeof AggregateError&&(globalThis.AggregateError=class extends Error{constructor(e,t){super(t),this.errors=e}});return Mw.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}}},Mw}function $w(){if(gw)return hw;return gw=1,hw=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}function Uw(){if(mw)return vw;function e(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}mw=1;var t=0;function n(e){return"__private_"+t+++"_"+e}const r=$w();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}
8
8
  /**
9
9
  * Takes a string with placeholder variables like `%{smart_count} file selected`
10
10
  * and replaces it with values from options `{smart_count: 5}`
@@ -15,13 +15,7 @@ var t,e,r,n,o,i,u,a,s,c,l,f,d,p,h,v,g,y,m="undefined"!=typeof globalThis?globalT
15
15
  * @param {string} phrase that needs interpolation, with placeholders
16
16
  * @param {object} options with values that will be used to replace placeholders
17
17
  * @returns {any[]} interpolated
18
- */function i(t,e){const r=/\$/g;let n=[t];if(null==e)return n;for(const t of Object.keys(e))if("_"!==t){let i=e[t];"string"==typeof i&&(i=r[Symbol.replace](i,"$$$$")),n=o(n,new RegExp(`%\\{${t}\\}`,"g"),i)}return n}var u=r("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 om=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(!n(this.locale.strings,t))throw new Error(`missing string: ${t}`);const r=this.locale.strings[t];if("object"==typeof r){if(e&&void 0!==e.smart_count){return i(r[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(r,e)}},om}function Bm(){return am||(am=1,um=function(){var t={},e=t._fns={};return t.emit=function(t,r,n,o,i,u,a){var s=function(t){var r=e[t]?e[t]:[],n=t.indexOf(":"),o=-1===n?[t]:[t.substring(0,n),t.substring(n+1)],i=Object.keys(e),u=0,a=i.length;for(;u<a;u++){var s=i[u];if("*"===s&&(r=r.concat(e[s])),2===o.length&&o[0]===s){r=r.concat(e[s]);break}}return r}(t);s.length&&function(t,e,r){var n=0,o=e.length;for(;n<o&&e[n];n++)e[n].event=t,e[n].apply(e[n],r)}(t,s,[r,n,o,i,u,a])},t.on=function(t,r){e[t]||(e[t]=[]),e[t].push(r)},t.once=function(e,r){this.on(e,function n(){r.apply(this,arguments),t.off(e,n)})},t.off=function(t,e){var r=[];if(t&&e)for(var n=this._fns[t],o=0,i=n?n.length:0;o<i;o++)n[o]!==e&&r.push(n[o]);r.length?this._fns[t]=r:delete this._fns[t]},t}),um}function Im(){if(cm)return sm;cm=1;var t=0;function e(e){return"__private_"+t+++"_"+e}var r=e("publish");class n{constructor(){Object.defineProperty(this,r,{value:o}),this.state={},this.callbacks=[]}getState(){return this.state}setState(t){const e={...this.state},n={...this.state,...t};this.state=n,function(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}(this,r)[r](e,n,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),r=0;r<t;r++)e[r]=arguments[r];this.callbacks.forEach(t=>{t(...e)})}return n.VERSION="2.1.1",sm=function(){return new n}}function Fm(){if(fm)return lm;return fm=1,lm=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 Rm(){return pm?dm:(pm=1,dm={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 Lm(){if(Om)return Dm;Om=1;var t=Ky(),e=qy(),r=Nm();let n,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=Pm(),c=Bm(),l=Yg(),f=Im(),d=function(){if(vm)return hm;vm=1;const t=Fm(),e=Rm();return hm=function(r){var n;if(r.type)return r.type;const o=r.name?null==(n=t(r.name).extension)?void 0:n.toLowerCase():null;return o&&o in e?e[o]:"application/octet-stream"}}(),p=Fm(),h=function(){if(ym)return gm;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 ym=1,gm=function(e){let r="uppy";return"string"==typeof e.name&&(r+=`-${t(e.name.toLowerCase())}`),void 0!==e.type&&(r+=`-${e.type}`),e.meta&&"string"==typeof e.meta.relativePath&&(r+=`-${t(e.meta.relativePath.toLowerCase())}`),void 0!==e.data.size&&(r+=`-${e.data.size}`),void 0!==e.data.lastModified&&(r+=`-${e.data.lastModified}`),r},gm}(),v=(bm||(bm=1,mm=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 r=e[1];let[n,o]=r.split(".");return n=parseInt(n,10),o=parseInt(o,10),n<15||15===n&&o<15063||n>18||18===n&&o>=18218}),mm),g=wm?Em:(wm=1,Em=function(t,e){return e.name?e.name:"image"===t.split("/")[0]?`${t.split("/")[0]}.${t.split("/")[1]}`:"noname"}),y=Cm?Sm:(Cm=1,Sm={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"),k=a("startIfAutoProceed"),P=a("addListeners"),B=a("updateOnlineStatus"),I=a("createUpload"),F=a("getUpload"),R=a("removeUpload"),L=a("runUpload");n=Symbol.for("uppy test: getPlugins"),o=Symbol.for("uppy test: createUpload");class _{constructor(t){Object.defineProperty(this,L,{value:K}),Object.defineProperty(this,R,{value:q}),Object.defineProperty(this,F,{value:W}),Object.defineProperty(this,I,{value:G}),Object.defineProperty(this,P,{value:V}),Object.defineProperty(this,k,{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:j}),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,B,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=y;const n={id:"uppy",autoProceed:!1,allowMultipleUploads:!0,allowMultipleUploadBatches:!0,debug:!1,restrictions:r.defaultOptions,meta:{},onBeforeFileAdded:t=>t,onBeforeUpload:t=>t,store:f(),logger:e.justErrorsLogger,infoTimeout:5e3};this.opts={...n,...t,restrictions:{...n.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 r.Restricter(()=>this.opts,this.i18n),i(this,E)[E]=this.store.subscribe((t,e,r)=>{this.emit("state-update",t,e,r),this.updateAll(e)}),this.opts.debug&&"undefined"!=typeof window&&(window[this.opts.id]=this),i(this,P)[P]()}emit(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];i(this,w)[w].emit(t,...r)}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},r={};Object.keys(e).forEach(n=>{const o={...e[n]};o.progress={...o.progress,...t},r[n]=o}),this.setState({files:r,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},r={...this.getState().files};Object.keys(r).forEach(e=>{r[e]={...r[e],meta:{...r[e].meta,...t}}}),this.log("Adding metadata:"),this.log(t),this.setState({meta:e,files:r})}setFileMeta(t,e){const r={...this.getState().files};if(!r[t])return void this.log("Was trying to set metadata for a file that has been removed: ",t);const n={...r[t].meta,...e};r[t]={...r[t],meta:n},this.setState({files:r})}getFile(t){return this.getState().files[t]}getFiles(){const{files:t}=this.getState();return Object.values(t)}getObjectOfFilesPerState(){const{files:t,totalProgress:e,error:r}=this.getState(),n=Object.values(t),o=n.filter(t=>{let{progress:e}=t;return!e.uploadComplete&&e.uploadStarted}),i=n.filter(t=>!t.progress.uploadStarted),u=n.filter(t=>t.progress.uploadStarted||t.progress.preprocess||t.progress.postprocess),a=n.filter(t=>t.progress.uploadStarted),s=n.filter(t=>t.isPaused),c=n.filter(t=>t.progress.uploadComplete),l=n.filter(t=>t.error),f=o.filter(t=>!t.isPaused),d=n.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===n.length&&0===d.length,isAllErrored:!!r&&l.length===n.length,isAllPaused:0!==o.length&&s.length===o.length,isUploadInProgress:o.length>0,isSomeGhost:n.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 r=i(this,N)[N](e,t);return e[r.id]&&e[r.id].isGhost&&(r={...e[r.id],data:t.data,isGhost:!1},this.log(`Replaced the blob in the restored ghost file: ${r.name}, ${r.id}`)),this.setState({files:{...e,[r.id]:r}}),this.emit("file-added",r),this.emit("files-added",[r]),this.log(`Added file: ${r.name}, ${r.id}, mime type: ${r.type}`),i(this,k)[k](),r.id}addFiles(t){i(this,T)[T]();const e={...this.getState().files},r=[],n=[];for(let o=0;o<t.length;o++)try{let n=i(this,N)[N](e,t[o]);e[n.id]&&e[n.id].isGhost&&(n={...e[n.id],data:t[o].data,isGhost:!1},this.log(`Replaced blob in a ghost file: ${n.name}, ${n.id}`)),e[n.id]=n,r.push(n)}catch(t){t.isRestriction||n.push(t)}if(this.setState({files:e}),r.forEach(t=>{this.emit("file-added",t)}),this.emit("files-added",r),r.length>5?this.log(`Added batch of ${r.length} files`):Object.keys(r).forEach(t=>{this.log(`Added file: ${r[t].name}\n id: ${r[t].id}\n type: ${r[t].type}`)}),r.length>0&&i(this,k)[k](),n.length>0){let t="Multiple errors occurred while adding files:\n";if(n.forEach(e=>{t+=`\n * ${e.message}`}),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:n.length}),details:t},"error",this.opts.infoTimeout),"function"==typeof AggregateError)throw new AggregateError(n,t);{const e=new Error(t);throw e.errors=n,e}}}removeFiles(t,e){const{files:r,currentUploads:n}=this.getState(),o={...r},i={...n},u=Object.create(null);function a(t){return void 0===u[t]}t.forEach(t=>{r[t]&&(u[t]=r[t],delete o[t])}),Object.keys(i).forEach(t=>{const e=n[t].fileIDs.filter(a);if(0===e.length)return void delete i[t];const{capabilities:r}=this.getState();if(e.length!==n[t].fileIDs.length&&!r.individualCancellation)throw new Error("individualCancellation is disabled");i[t]={...n[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 r={...t[e],isPaused:!0};t[e]=r}),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 r={...t[e],isPaused:!1,error:null};t[e]=r}),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 r={...t[e],isPaused:!1,error:null};t[e]=r}),this.setState({files:t,error:null}),this.emit("retry-all",e),0===e.length)return Promise.resolve({successful:[],failed:[]});const r=i(this,I)[I](e,{forceAllowNewUpload:!0});return i(this,L)[L](r)}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,I)[I]([t],{forceAllowNewUpload:!0});return i(this,L)[L](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 r=Number.isFinite(e.bytesTotal)&&e.bytesTotal>0;this.setFileState(t.id,{progress:{...this.getFile(t.id).progress,bytesUploaded:e.bytesUploaded,bytesTotal:e.bytesTotal,percentage:r?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),r=t.filter(t=>null==t.progress.bytesTotal);if(0===e.length){const e=100*t.length,n=r.reduce((t,e)=>t+e.progress.percentage,0),o=Math.round(n/e*100);return void this.setState({totalProgress:o})}let n=e.reduce((t,e)=>t+e.progress.bytesTotal,0);const o=n/e.length;n+=o*r.length;let i=0;e.forEach(t=>{i+=t.progress.bytesUploaded}),r.forEach(t=>{i+=o*(t.progress.percentage||0)/100});let u=0===n?0:Math.round(i/n*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 r=new t(this,e),n=r.id;if(!n)throw new Error("Your plugin must have an id");if(!r.type)throw new Error("Your plugin must have a type");const o=this.getPlugin(n);if(o){const t=`Already found a plugin named '${o.id}'. Tried to use: '${n}'.\nUppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(t)}return t.VERSION&&this.log(`Using ${n} v${t.VERSION}`),r.type in i(this,m)[m]?i(this,m)[m][r.type].push(r):i(this,m)[m][r.type]=[r],r.install(),this}getPlugin(t){for(const e of Object.values(i(this,m)[m])){const r=e.find(e=>e.id===t);if(null!=r)return r}}[n](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],r=e.findIndex(e=>e.id===t.id);-1!==r&&e.splice(r,1);const n={plugins:{...this.getState().plugins,[t.id]:void 0}};this.setState(n)}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,B)[B]),window.removeEventListener("offline",i(this,B)[B]))}hideInfo(){const{info:t}=this.getState();this.setState({info:t.slice(1)}),this.emit("info-hidden")}info(t,e,r){void 0===e&&(e="info"),void 0===r&&(r=3e3);const n="object"==typeof t;this.setState({info:[...this.getState().info,{type:e,message:n?t.message:t,details:n?t.details:null}]}),setTimeout(()=>this.hideInfo(),r),this.emit("info-visible")}log(t,e){const{logger:r}=this.opts;switch(e){case"error":r.error(t);break;case"warning":r.warn(t);break;default:r.debug(t)}}restore(t){return this.log(`Core: attempting to restore upload "${t}"`),this.getState().currentUploads[t]?i(this,L)[L](t):(i(this,R)[R](t),Promise.reject(new Error("Nonexistent upload")))}[o](){return i(this,I)[I](...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:r}=this.getState(),n={...r[t],result:{...r[t].result,...e}};this.setState({currentUploads:{...r,[t]:n}})}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 n=this.opts.onBeforeUpload(e);return!1===n?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(n&&"object"==typeof n&&(e=n,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 r.RestrictionError(this.i18n("missingRequiredMetaField"))}).catch(t=>{throw t}).then(()=>{const{currentUploads:t}=this.getState(),r=Object.values(t).flatMap(t=>t.fileIDs),n=[];Object.keys(e).forEach(t=>{const e=this.getFile(t);e.progress.uploadStarted||-1!==r.indexOf(t)||n.push(e.id)});const o=i(this,I)[I](n);return i(this,L)[L](o)}).catch(t=>{throw this.emit("error",t),this.log(t,"error"),t}))}}function j(t,e){const{message:r,details:n=""}=t;t.isRestriction?this.emit("restriction-failed",e,t):this.emit("error",t),this.info({message:r,details:n},"error",this.opts.infoTimeout),this.log(`${r} ${n}`.trim(),"error")}function M(t){const{missingFields:e,error:r}=i(this,b)[b].getMissingRequiredMetaFields(t);return!(e.length>0)||(this.setFileState(t.id,{missingRequiredMetaFields:e}),this.log(r.message),this.emit("restriction-failed",t,r),!1)}function z(t){let e=!0;for(const r of Object.values(t))i(this,A)[A](r)||(e=!1);return e}function H(t){const{allowNewUpload:e}=this.getState();if(!1===e){const e=new r.RestrictionError(this.i18n("noMoreFilesAllowed"));throw i(this,O)[O](e,t),e}}function $(t,e){const n=d(e),o=g(n,e),u=p(o).extension,a=Boolean(e.isRemote),s=h({...e,type:n});if(this.checkIfFileAlreadyExists(s)){const t=new r.RestrictionError(this.i18n("noDuplicates",{fileName:o}));throw i(this,O)[O](t,e),t}const c=e.meta||{};c.name=o,c.type=n;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:n,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 r.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,r)=>{let n=t.message||"Unknown error";t.details&&(n+=` ${t.details}`),this.setState({error:n}),null!=e&&e.id in this.getState().files&&this.setFileState(e.id,{error:n,response:r})};this.on("error",t),this.on("upload-error",(e,r,n)=>{if(t(r,e,n),"object"==typeof r&&r.message){const t=new Error(r.message);t.details=r.message,r.details&&(t.details+=` ${r.details}`),t.message=this.i18n("failedToUpload",{file:null==e?void 0:e.name}),i(this,O)[O](t)}else i(this,O)[O](r)}),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 r=this.getFile(t.id).progress;this.setFileState(t.id,{progress:{...r,postprocess:i(this,D)[D].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:r.bytesTotal},response:e,uploadURL:e.uploadURL,isPaused:!1}),null==t.size&&this.setFileState(t.id,{size:e.bytesUploaded||r.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,B)[B]),window.addEventListener("offline",i(this,B)[B]),setTimeout(i(this,B)[B],3e3))}function G(e,r){void 0===r&&(r={});const{forceAllowNewUpload:n=!1}=r,{allowNewUpload:o,currentUploads:i}=this.getState();if(!o&&!n)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(),r=e[t];const n=r.step||0,o=[...i(this,S)[S],...i(this,C)[C],...i(this,D)[D]];try{for(let i=n;i<o.length&&r;i++){const n=o[i],u={...r,step:i};this.setState({currentUploads:{...e,[t]:u}}),await n(u.fileIDs,t),e=this.getState().currentUploads,r=e[t]}}catch(e){throw i(this,R)[R](t),e}if(r){r.fileIDs.forEach(t=>{const e=this.getFile(t);e&&e.progress.postprocess&&this.emit("postprocess-complete",e)});const n=r.fileIDs.map(t=>this.getFile(t)),o=n.filter(t=>!t.error),i=n.filter(t=>t.error);await this.addResultData(t,{successful:o,failed:i,uploadID:t}),e=this.getState().currentUploads,r=e[t]}let u;return r&&(u=r.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 _.VERSION="2.3.4",Dm=_}var _m,jm,Mm,zm,Hm,$m,Um,Vm,Gm,Wm,qm,Km,Ym,Xm={},Jm=[],Zm=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Qm=Array.isArray;function tb(t,e){for(var r in e)t[r]=e[r];return t}function eb(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function rb(t,e,r){var n,o,i,u={};for(i in e)"key"==i?n=e[i]:"ref"==i?o=e[i]:u[i]=e[i];if(arguments.length>2&&(u.children=arguments.length>3?_m.call(arguments,2):r),"function"==typeof t&&null!=t.defaultProps)for(i in t.defaultProps)void 0===u[i]&&(u[i]=t.defaultProps[i]);return nb(t,u,n,o,null)}function nb(t,e,r,n,o){var i={type:t,props:e,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==o?++Mm:o,__i:-1,__u:0};return null==o&&null!=jm.vnode&&jm.vnode(i),i}function ob(t){return t.children}function ib(t,e){this.props=t,this.context=e}function ub(t,e){if(null==e)return t.__?ub(t.__,t.__i+1):null;for(var r;e<t.__k.length;e++)if(null!=(r=t.__k[e])&&null!=r.__e)return r.__e;return"function"==typeof t.type?ub(t):null}function ab(t){var e,r;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(r=t.__k[e])&&null!=r.__e){t.__e=t.__c.base=r.__e;break}return ab(t)}}function sb(t){(!t.__d&&(t.__d=!0)&&Hm.push(t)&&!cb.__r++||$m!=jm.debounceRendering)&&(($m=jm.debounceRendering)||Um)(cb)}function cb(){for(var t,e,r,n,o,i,u,a=1;Hm.length;)Hm.length>a&&Hm.sort(Vm),t=Hm.shift(),a=Hm.length,t.__d&&(r=void 0,o=(n=(e=t).__v).__e,i=[],u=[],e.__P&&((r=tb({},n)).__v=n.__v+1,jm.vnode&&jm.vnode(r),gb(e.__P,r,n,e.__n,e.__P.namespaceURI,32&n.__u?[o]:null,i,null==o?ub(n):o,!!(32&n.__u),u),r.__v=n.__v,r.__.__k[r.__i]=r,yb(i,r,u),r.__e!=o&&ab(r)));cb.__r=0}function lb(t,e,r,n,o,i,u,a,s,c,l){var f,d,p,h,v,g,y=n&&n.__k||Jm,m=e.length;for(s=function(t,e,r,n,o){var i,u,a,s,c,l=r.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?nb(null,u,null,null,null):Qm(u)?nb(ob,{children:u},null,null,null):null==u.constructor&&u.__b>0?nb(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=db(u,r,s,f))&&(f--,(a=r[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=r[i])&&!(2&a.__u)&&(a.__e==n&&(n=ub(a)),wb(a,a));return n}(r,e,y,s,m),f=0;f<m;f++)null!=(p=r.__k[f])&&(d=-1==p.__i?Xm:y[p.__i]||Xm,p.__i=f,g=gb(t,p,d,o,i,u,a,s,c,l),h=p.__e,p.ref&&d.ref!=p.ref&&(d.ref&&Eb(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=fb(p,s,t):"function"==typeof p.type&&void 0!==g?s=g:h&&(s=h.nextSibling),p.__u&=-7);return r.__e=v,s}function fb(t,e,r){var n,o;if("function"==typeof t.type){for(n=t.__k,o=0;n&&o<n.length;o++)n[o]&&(n[o].__=t,e=fb(n[o],e,r));return e}t.__e!=e&&(e&&t.type&&!r.contains(e)&&(e=ub(t)),r.insertBefore(t.__e,e||null),e=t.__e);do{e=e&&e.nextSibling}while(null!=e&&8==e.nodeType);return e}function db(t,e,r,n){var o,i,u=t.key,a=t.type,s=e[r];if(null===s&&null==t.key||s&&u==s.key&&a==s.type&&!(2&s.__u))return r;if(n>(null==s||2&s.__u?0:1))for(o=r-1,i=r+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 pb(t,e,r){"-"==e[0]?t.setProperty(e,null==r?"":r):t[e]=null==r?"":"number"!=typeof r||Zm.test(e)?r:r+"px"}function hb(t,e,r,n,o){var i,u;t:if("style"==e)if("string"==typeof r)t.style.cssText=r;else{if("string"==typeof n&&(t.style.cssText=n=""),n)for(e in n)r&&e in r||pb(t.style,e,"");if(r)for(e in r)n&&r[e]==n[e]||pb(t.style,e,r[e])}else if("o"==e[0]&&"n"==e[1])i=e!=(e=e.replace(Gm,"$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]=r,r?n?r.u=n.u:(r.u=Wm,t.addEventListener(e,i?Km:qm,i)):t.removeEventListener(e,i?Km:qm,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==r?"":r;break t}catch(t){}"function"==typeof r||(null==r||!1===r&&"-"!=e[4]?t.removeAttribute(e):t.setAttribute(e,"popover"==e&&1==r?"":r))}}function vb(t){return function(e){if(this.l){var r=this.l[e.type+t];if(null==e.t)e.t=Wm++;else if(e.t<r.u)return;return r(jm.event?jm.event(e):e)}}}function gb(t,e,r,n,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&r.__u&&(s=!!(32&r.__u),i=[a=e.__e=r.__e]),(l=jm.__b)&&l(e);t:if("function"==typeof x)try{if(y=e.props,m="prototype"in x&&x.prototype.render,b=(l=x.contextType)&&n[l.__c],E=l?b?b.props.value:l.__:n,r.__c?g=(f=e.__c=r.__c).__=f.__E:(m?e.__c=f=new x(y,E):(e.__c=f=new ib(y,E),f.constructor=x,f.render=Sb),b&&b.sub(f),f.props=y,f.state||(f.state={}),f.context=E,f.__n=n,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=tb({},f.__s)),tb(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==r.__v){for(e.__v!=r.__v&&(f.props=y,f.state=f.__s,f.__d=!1),e.__e=r.__e,e.__k=r.__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=jm.__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&&(n=tb(tb({},n),f.getChildContext())),m&&!d&&null!=f.getSnapshotBeforeUpdate&&(v=f.getSnapshotBeforeUpdate(p,h)),O=l,null!=l&&l.type===ob&&null==l.key&&(O=mb(l.props.children)),a=lb(t,Qm(O)?O:[O],e,r,n,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--;)eb(i[A]);else e.__e=r.__e,e.__k=r.__k;jm.__e(t,e,r)}else null==i&&e.__v==r.__v?(e.__k=r.__k,e.__e=r.__e):a=e.__e=bb(r.__e,e,r,n,o,i,u,s,c);return(l=jm.diffed)&&l(e),128&e.__u?void 0:a}function yb(t,e,r){for(var n=0;n<r.length;n++)Eb(r[n],r[++n],r[++n]);jm.__c&&jm.__c(e,t),t.some(function(e){try{t=e.__h,e.__h=[],t.some(function(t){t.call(e)})}catch(t){jm.__e(t,e.__v)}})}function mb(t){return"object"!=typeof t||null==t||t.__b&&t.__b>0?t:Qm(t)?t.map(mb):tb({},t)}function bb(t,e,r,n,o,i,u,a,s){var c,l,f,d,p,h,v,g=r.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&&(jm.__m&&jm.__m(e,i),a=!1),i=null}if(null==m)g===y||a&&t.data==y||(t.data=y);else{if(i=i&&_m.call(t.childNodes),g=r.props||Xm,!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;hb(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||hb(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=""),lb("template"==e.type?t.content:t,Qm(d)?d:[d],e,r,n,"foreignObject"==m?"http://www.w3.org/1999/xhtml":o,i,u,i?i[0]:r.__k&&ub(r,0),a,s),null!=i)for(c=i.length;c--;)eb(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])&&hb(t,c,h,g[c],o),c="checked",null!=v&&v!=t[c]&&hb(t,c,v,g[c],o))}return t}function Eb(t,e,r){try{if("function"==typeof t){var n="function"==typeof t.__u;n&&t.__u(),n&&null==e||(t.__u=t(e))}else t.current=e}catch(t){jm.__e(t,r)}}function wb(t,e,r){var n,o;if(jm.unmount&&jm.unmount(t),(n=t.ref)&&(n.current&&n.current!=t.__e||Eb(n,null,e)),null!=(n=t.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(t){jm.__e(t,e)}n.base=n.__P=null}if(n=t.__k)for(o=0;o<n.length;o++)n[o]&&wb(n[o],e,r||"function"!=typeof t.type);r||eb(t.__e),t.__c=t.__=t.__e=void 0}function Sb(t,e,r){return this.constructor(t,r)}function Cb(t,e,r){var n,o,i,u;e==document&&(e=document.documentElement),jm.__&&jm.__(t,e),o=(n="function"==typeof r)?null:r&&r.__k||e.__k,i=[],u=[],gb(e,t=(!n&&r||e).__k=rb(ob,null,[t]),o||Xm,Xm,e.namespaceURI,!n&&r?[r]:o?null:e.firstChild?_m.call(e.childNodes):null,i,!n&&r?r:o?o.__e:e.firstChild,n,u),yb(i,t,u)}_m=Jm.slice,jm={__e:function(t,e,r,n){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,n||{}),u=o.__d),u)return o.__E=o}catch(e){t=e}throw t}},Mm=0,zm=function(t){return null!=t&&null==t.constructor},ib.prototype.setState=function(t,e){var r;r=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=tb({},this.state),"function"==typeof t&&(t=t(tb({},r),this.props)),t&&tb(r,t),null!=t&&this.__v&&(e&&this._sb.push(e),sb(this))},ib.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),sb(this))},ib.prototype.render=ob,Hm=[],Um="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Vm=function(t,e){return t.__v.__b-e.__v.__b},cb.__r=0,Gm=/(PointerCapture)$|Capture$/i,Wm=0,qm=vb(!1),Km=vb(!0),Ym=0;var Db,Ob,Ab,xb,Tb,Nb,kb,Pb,Bb,Ib,Fb,Rb=Object.freeze({__proto__:null,Component:ib,Fragment:ob,cloneElement:function(t,e,r){var n,o,i,u,a=tb({},t.props);for(i in t.type&&t.type.defaultProps&&(u=t.type.defaultProps),e)"key"==i?n=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?_m.call(arguments,2):r),nb(t.type,a,n||t.key,o||t.ref,null)},createContext:function(t){function e(t){var r,n;return this.getChildContext||(r=new Set,(n={})[e.__c]=this,this.getChildContext=function(){return n},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(t){this.props.value!=t.value&&r.forEach(function(t){t.__e=!0,sb(t)})},this.sub=function(t){r.add(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){r&&r.delete(t),e&&e.call(t)}}),t.children}return e.__c="__cC"+Ym++,e.__=t,e.Provider=e.__l=(e.Consumer=function(t,e){return t.children(e)}).contextType=e,e},createElement:rb,createRef:function(){return{current:null}},h:rb,hydrate:function t(e,r){Cb(e,r,t)},get isValidElement(){return zm},get options(){return jm},render:Cb,toChildArray:function t(e,r){return r=r||[],null==e||"boolean"==typeof e||(Qm(e)?e.some(function(e){t(e,r)}):r.push(e)),r}}),Lb=E(Rb);function _b(){if(xb)return Ab;xb=1;const t=Ob?Db:(Ob=1,Db=function(t){return(null==t?void 0:t.nodeType)===Node.ELEMENT_NODE});return Ab=function(e,r){return void 0===r&&(r=document),"string"==typeof e?r.querySelector(e):t(e)?e:null}}function jb(){if(Pb)return kb;Pb=1;const t=Pm();return kb=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 Mb(){if(Ib)return Bb;Ib=1;var t=Lb;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 r=0;function n(t){return"__private_"+r+++"_"+t}const o=_b(),i=Nb?Tb:(Nb=1,Tb=function(t){for(var e;t&&!t.dir;)t=t.parentNode;return null==(e=t)?void 0:e.dir}),u=jb();var a=n("updateUI");class s extends u{constructor(){super(...arguments),Object.defineProperty(this,a,{writable:!0,value:void 0})}mount(r,n){const u=n.id,c=o(r);if(c){this.isTargetDOMEl=!0;const n=document.createElement("div");return n.classList.add("uppy-Root"),e(this,a)[a]=function(t){let e=null,r=null;return function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return r=o,e||(e=Promise.resolve().then(()=>(e=null,t(...r)))),e}}(e=>{this.uppy.getPlugin(this.id)&&((0,t.render)(this.render(e),n),this.afterUpdate())}),this.uppy.log(`Installing ${u} to a DOM element '${r}'`),this.opts.replaceTargetContent&&(c.innerHTML=""),(0,t.render)(this.render(this.uppy.getState()),n),this.el=n,c.appendChild(n),n.dir=this.opts.direction||i(n)||"ltr",this.onMount(),this.el}let l;if("object"==typeof r&&r instanceof s)l=r;else if("function"==typeof r){const t=r;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(n),this.onMount(),this.el;this.uppy.log(`Not installing ${u}`);let f=`Invalid target option given to ${u}.`;throw f+="function"==typeof r?" 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 r,n;null!=this.el&&(null==(r=(n=e(this,a))[a])||r.call(n,t))}unmount(){var t;this.isTargetDOMEl&&(null==(t=this.el)||t.remove());this.onUnmount()}onMount(){}onUnmount(){}}return Bb=s}var zb,Hb,$b,Ub,Vb,Gb,Wb,qb,Kb,Yb,Xb=b((Fb||(Fb=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 r.debugLogger}});var r=qy();t.exports=Lm();const n=Mb();e.UIPlugin=n;const o=jb();e.BasePlugin=o;const i=Lm();e.Uppy=i;const u=Mb(),a=jb();i.Uppy=i,i.UIPlugin=u,i.BasePlugin=a,i.debugLogger=r.debugLogger}(Gy,Gy.exports)),Gy.exports)),Jb={};function Zb(){if(Hb)return zb;Hb=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 zb=t}function Qb(){if(Yb)return Kb;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}Yb=1;var r=0;function n(t){return"__private_"+r+++"_"+t}const o=function(){if(Ub)return $b;Ub=1;const t=Zb();return $b=function(){return fetch(...arguments).catch(e=>{throw"AbortError"===e.name?e:new t(e)})},$b}(),i=function(){if(Gb)return Vb;Gb=1;const t=km();class e extends Error{constructor(e,r){void 0===r&&(r={}),super(e),this.cause=r.cause,this.cause&&t(this.cause,"isNetworkError")&&(this.isNetworkError=this.cause.isNetworkError)}}return Vb=e}(),u=function(){if(qb)return Wb;qb=1;class t extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}return Wb=t}();async function a(t){if(401===t.status)throw new u;const e=t.json();if(t.status<200||t.status>300){let r=`Failed request with status: ${t.status}. ${t.statusText}`;try{const t=await e;r=t.message?`${r} message: ${t.message}`:r,r=t.requestId?`${r} request-Id: ${t.requestId}`:r}finally{throw new Error(r)}}return e}var s=n("companionHeaders"),c=n("getPostResponseFunc"),l=n("getUrl"),f=n("errorHandler");t=Symbol.for("uppy test: getCompanionHeaders");class d{constructor(t,r){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=r,this.onReceiveResponse=this.onReceiveResponse.bind(this),this.allowedHeaders=["accept","content-type","uppy-auth-token"],this.preflightDone=!1,e(this,s)[s]=null==r?void 0:r.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||{},r=this.opts.companionUrl,{headers:n}=t;return n.has("i-am")&&n.get("i-am")!==e[r]&&this.uppy.setState({companion:{...e,[r]:n.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,r]=t;return Object.keys(r).forEach(t=>{e.includes(t.toLowerCase())||(this.uppy.log(`[CompanionClient] excluding disallowed header ${t}`),delete r[t])}),r})}get(t,r){return this.preflightAndHeaders(t).then(r=>o(e(this,l)[l](t),{method:"get",headers:r,credentials:this.opts.companionCookiesRule||"same-origin"})).then(e(this,c)[c](r)).then(a).catch(e(this,f)[f]("get",t))}post(t,r,n){const i="post";return this.preflightAndHeaders(t).then(n=>o(e(this,l)[l](t),{method:i,headers:n,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(r)})).then(e(this,c)[c](n)).then(a).catch(e(this,f)[f](i,t))}delete(t,r,n){const i="delete";return this.preflightAndHeaders(t).then(e=>o(`${this.hostname}/${t}`,{method:i,headers:e,credentials:this.opts.companionCookiesRule||"same-origin",body:r?JSON.stringify(r):null})).then(e(this,c)[c](n)).then(a).catch(e(this,f)[f](i,t))}}function p(t){return/^(https?:|)\/\//.test(t)?t:`${this.hostname}/${t}`}function h(t,r){return n=>{var o;return null!=(o=n)&&o.isAuthError||(n=new i(`Could not ${t} ${e(this,l)[l](r)}`,{cause:n})),Promise.reject(n)}}return d.VERSION="2.2.2",d.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${d.VERSION}`},Kb=d}var tE,eE,rE,nE,oE,iE,uE,aE,sE={};function cE(){if(tE)return sE;return tE=1,Object.defineProperty(sE,"__esModule",{value:!0}),sE.getItem=function(t){return Promise.resolve(localStorage.getItem(t))},sE.removeItem=function(t){return new Promise(e=>{localStorage.removeItem(t),e()})},sE.setItem=function(t,e){return new Promise(r=>{localStorage.setItem(t,e),r()})},sE}function lE(){if(aE)return Jb;aE=1,Object.defineProperty(Jb,"__esModule",{value:!0}),Jb.Socket=Jb.SearchProvider=Jb.RequestClient=Jb.Provider=void 0;const t=Qb();Jb.RequestClient=t;const e=function(){if(rE)return eE;rE=1;var t=cE();const e=Qb();return eE=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,r]=t;const n={};return r&&(n["uppy-auth-token"]=r),this.companionKeysParams&&(n["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...e,...n}})}onReceiveResponse(t){t=super.onReceiveResponse(t);const e=this.uppy.getPlugin(this.pluginId),r=e.getPluginState().authenticated?401!==t.status:t.status<400;return e.setPluginState({authenticated:r}),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,r,n){if(e.type="acquirer",e.files=[],n&&(e.opts={...n,...r}),r.serverUrl||r.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(r.companionAllowedHosts){const t=r.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(r.companionUrl)?e.opts.companionAllowedHosts=`https://${r.companionUrl.replace(/^\/\//,"")}`:e.opts.companionAllowedHosts=new URL(r.companionUrl).origin;e.storage=e.opts.storage||t}},eE}();Jb.Provider=e;const r=function(){if(oE)return nE;oE=1;const t=Qb();return nE=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}`:""}`)}},nE}();Jb.SearchProvider=r;const n=function(){if(uE)return iE;let t,e;function r(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}uE=1;var n=0;function o(t){return"__private_"+n+++"_"+t}const i=Bm();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"),iE=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 r(this,s)[s]}[t](){return r(this,c)[c]}[e](){return r(this,u)[u]}open(){r(this,c)[c]=new WebSocket(this.opts.target),r(this,c)[c].onopen=()=>{for(r(this,s)[s]=!0;r(this,u)[u].length>0&&r(this,s)[s];){const t=r(this,u)[u].shift();this.send(t.action,t.payload)}},r(this,c)[c].onclose=()=>{r(this,s)[s]=!1},r(this,c)[c].onmessage=r(this,l)[l]}close(){var t;null==(t=r(this,c)[c])||t.close()}send(t,e){r(this,s)[s]?r(this,c)[c].send(JSON.stringify({action:t,payload:e})):r(this,u)[u].push({action:t,payload:e})}on(t,e){r(this,a)[a].on(t,e)}emit(t,e){r(this,a)[a].emit(t,e)}once(t,e){r(this,a)[a].once(t,e)}},iE}();return Jb.Socket=n,Jb}var fE,dE,pE,hE,vE,gE,yE,mE,bE,EE,wE,SE,CE,DE,OE,AE,xE,TE={};function NE(){if(fE)return TE;function t(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}fE=1,Object.defineProperty(TE,"__esModule",{value:!0}),TE.internalRateLimitedQueue=TE.RateLimitedQueue=void 0;var e=0;function r(t){return"__private_"+e+++"_"+t}var n=r("activeRequests"),o=r("queuedHandlers"),i=r("paused"),u=r("pauseTimer"),a=r("downLimit"),s=r("upperLimit"),c=r("rateLimitingTimer"),l=r("call"),f=r("queueNext"),d=r("next"),p=r("queue"),h=r("dequeue"),v=r("resume"),g=r("increaseLimit");function y(e){t(this,n)[n]+=1;let r,o=!1;try{r=e()}catch(e){throw t(this,n)[n]-=1,e}return{abort:()=>{o||(o=!0,t(this,n)[n]-=1,r(),t(this,f)[f]())},done:()=>{o||(o=!0,t(this,n)[n]-=1,t(this,f)[f]())}}}function m(){queueMicrotask(()=>t(this,d)[d]())}function b(){if(t(this,i)[i]||t(this,n)[n]>=this.limit)return;if(0===t(this,o)[o].length)return;const e=t(this,o)[o].shift(),r=t(this,l)[l](e.fn);e.abort=r.abort,e.done=r.done}function E(e,r){void 0===r&&(r={});const n={fn:e,priority:r.priority||0,abort:()=>{t(this,h)[h](n)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},i=t(this,o)[o].findIndex(t=>n.priority>t.priority);return-1===i?t(this,o)[o].push(n):t(this,o)[o].splice(i,0,n),n}function w(e){const r=t(this,o)[o].indexOf(e);-1!==r&&t(this,o)[o].splice(r,1)}TE.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,n,{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,r){return!t(this,i)[i]&&t(this,n)[n]<this.limit?t(this,l)[l](e):t(this,p)[p](e,r)}wrapPromiseFunction(t,e){var r=this;return function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];let u;const a=new Promise((n,i)=>{u=r.run(()=>{let e,r;try{r=Promise.resolve(t(...o))}catch(t){r=Promise.reject(t)}return r.then(t=>{e?i(e):(u.done(),n(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 TE.internalRateLimitedQueue=S,TE}function kE(){return OE?DE:(OE=1,DE={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}})}var PE=function(){if(xE)return AE;xE=1;var t=Ky(),e=lE(),r=NE();const n=jb(),o=function(){if(pE)return dE;pE=1;const t=Yg();return dE=t(function(t,e,r){const{progress:n,bytesUploaded:o,bytesTotal:i}=e;n&&(t.uppy.log(`Upload progress: ${n}`),t.uppy.emit("upload-progress",r,{uploader:t,bytesUploaded:o,bytesTotal:i}))},300,{leading:!0,trailing:!0})}(),i=vE?hE:(vE=1,hE=function(t){const e=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(t)[1];return`${/^http:\/\//i.test(t)?"ws":"wss"}://${e}`}),u=yE?gE:(yE=1,gE=function(t){const e=[],r=[];function n(t){e.push(t)}function o(t){r.push(t)}return Promise.all(t.map(t=>t.then(n,o))).then(()=>({successful:e,failed:r}))}),a=function(){if(bE)return mE;function t(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}bE=1;var e=0;function r(t){return"__private_"+e+++"_"+t}var n=r("emitter"),o=r("events");return mE=class{constructor(e){Object.defineProperty(this,n,{writable:!0,value:void 0}),Object.defineProperty(this,o,{writable:!0,value:[]}),t(this,n)[n]=e}on(e,r){return t(this,o)[o].push([e,r]),t(this,n)[n].on(e,r)}remove(){for(const[e,r]of t(this,o)[o].splice(0))t(this,n)[n].off(e,r)}},mE}(),s=function(){if(wE)return EE;function t(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}wE=1;var e=0;function r(t){return"__private_"+e+++"_"+t}var n=r("aliveTimer"),o=r("isDone"),i=r("onTimedOut"),u=r("timeout");return EE=class{constructor(e,r){Object.defineProperty(this,n,{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]=r}progress(){t(this,o)[o]||t(this,u)[u]>0&&(clearTimeout(t(this,n)[n]),t(this,n)[n]=setTimeout(t(this,i)[i],t(this,u)[u]))}done(){t(this,o)[o]||(clearTimeout(t(this,n)[n]),t(this,n)[n]=null,t(this,o)[o]=!0)}}}(),c=Zb(),l=CE?SE:(CE=1,SE=function(t){return!!t&&(0!==t.readyState&&4!==t.readyState||0===t.status)}),f=kE();function d(t,e){let r=e;return r||(r=new Error("Upload error")),"string"==typeof r&&(r=new Error(r)),r instanceof Error||(r=Object.assign(new Error("Upload error"),{data:r})),l(t)?(r=new c(r,t),r):(r.request=t,r)}function p(t){return t.data.slice(0,t.data.size,t.meta.type)}class h extends n{constructor(t,e){super(t,e),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=f;const n={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 r={};try{r=JSON.parse(e)}catch(e){t.log(e)}return r},getResponseError(t,e){let r=new Error("Upload error");return l(e)&&(r=new c(r,e)),r},validateStatus:t=>t>=200&&t<300};if(this.opts={...n,...e},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),r.internalRateLimitedQueue in this.opts?this.requests=this.opts[r.internalRateLimitedQueue]:this.requests=new r.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:r}=this.opts,n={...this.opts,...e||{},...t.xhrUpload||{},headers:{}};return"function"==typeof r?n.headers=r(t):Object.assign(n.headers,this.opts.headers),e&&Object.assign(n.headers,e.headers),t.xhrUpload&&Object.assign(n.headers,t.xhrUpload.headers),n}addMetadata(t,e,r){(Array.isArray(r.metaFields)?r.metaFields:Object.keys(e)).forEach(r=>{t.append(r,e[r])})}createFormDataUpload(t,e){const r=new FormData;this.addMetadata(r,t.meta,e);const n=p(t);return t.name?r.append(e.fieldName,n,t.meta.name):r.append(e.fieldName,n),r}createBundledUpload(t,e){const r=new FormData,{meta:n}=this.uppy.getState();return this.addMetadata(r,n,e),t.forEach(t=>{const e=this.getOptions(t),n=p(t);t.name?r.append(e.fieldName,n,t.name):r.append(e.fieldName,n)}),r}upload(e,r,n){const o=this.getOptions(e);return this.uppy.log(`uploading ${r} of ${n}`),new Promise((r,n)=>{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),n(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),n=t[o.responseUrlFieldName],i={status:u.status,body:t,uploadURL:n};return this.uppy.emit("upload-success",e,i),n&&this.uppy.log(`Download ${e.name} from ${n}`),r(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),n(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),n(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(),n(new Error("File removed"))}),this.onCancelAll(e.id,t=>{let{reason:e}=t;"user"===e&&c.abort(),n(new Error("Upload cancelled"))})})}uploadRemote(t){const r=this.getOptions(t);return new Promise((n,u)=>{this.uppy.emit("upload-started",t);const s={};(Array.isArray(r.metaFields)?r.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:r.endpoint,size:t.data.size,fieldname:r.fieldName,metadata:s,httpMethod:r.method,useFormData:r.formData,headers:r.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(),n(`upload ${t.id} was removed`)}),this.onCancelAll(t.id,function(e){let{reason:r}=void 0===e?{}:e;"user"===r&&(f.send("cancel",{}),d.abort()),n(`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=r.getResponseData(e.response.responseText,e.response),i=o[r.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),n()}),f.on("error",e=>{const n=e.response,o=n?r.getResponseError(n.responseText,n):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,r)=>{const{endpoint:n}=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),r(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",n=>{if(l.done(),this.opts.validateStatus(n.target.status,a.responseText,a)){const r=this.opts.getResponseData(a.responseText,a),o={status:n.target.status,body:r};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),r(o)}),a.addEventListener("error",()=>{l.done();const t=this.opts.getResponseError(a.responseText,a)||new Error("Upload error");return c(t),r(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(),n,!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,r)=>{const n=parseInt(r,10)+1,o=t.length;return e.error?Promise.reject(new Error(e.error)):e.isRemote?this.uploadRemote(e,n,o):this.upload(e,n,o)});return u(e)}onFileRemove(t,e){this.uploaderEvents[t].on("file-removed",r=>{t===r.id&&e(r.id)})}onRetry(t,e){this.uploaderEvents[t].on("upload-retry",r=>{t===r&&e()})}onRetryAll(t,e){this.uploaderEvents[t].on("retry-all",()=>{this.uppy.getFile(t)&&e()})}onCancelAll(t,e){var r=this;this.uploaderEvents[t].on("cancel-all",function(){r.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[r.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",AE=h}(),BE=b(PE),IE="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var FE,RE,LE={};function _E(){if(RE)return FE;RE=1;var t=function(t){return t&&t.Math===Math&&t};return FE=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof IE&&IE)||t("object"==typeof FE&&FE)||function(){return this}()||Function("return this")()}var jE,ME,zE,HE,$E,UE,VE,GE,WE={};function qE(){return ME?jE:(ME=1,jE=function(t){try{return!!t()}catch(t){return!0}})}function KE(){if(HE)return zE;HE=1;var t=qE();return zE=!t(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function YE(){if(UE)return $E;UE=1;var t=qE();return $E=!t(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})}function XE(){if(GE)return VE;GE=1;var t=YE(),e=Function.prototype.call;return VE=t?e.bind(e):function(){return e.apply(e,arguments)},VE}var JE,ZE,QE,tw,ew,rw,nw,ow,iw,uw,aw,sw,cw,lw,fw,dw,pw,hw,vw,gw,yw,mw,bw,Ew,ww,Sw,Cw,Dw,Ow,Aw,xw,Tw,Nw,kw,Pw,Bw,Iw,Fw,Rw,Lw,_w,jw={};function Mw(){if(JE)return jw;JE=1;var t={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,r=e&&!t.call({1:2},1);return jw.f=r?function(t){var r=e(this,t);return!!r&&r.enumerable}:t,jw}function zw(){return QE?ZE:(QE=1,ZE=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}})}function Hw(){if(ew)return tw;ew=1;var t=YE(),e=Function.prototype,r=e.call,n=t&&e.bind.bind(r,r);return tw=t?n:function(t){return function(){return r.apply(t,arguments)}},tw}function $w(){if(nw)return rw;nw=1;var t=Hw(),e=t({}.toString),r=t("".slice);return rw=function(t){return r(e(t),8,-1)}}function Uw(){if(iw)return ow;iw=1;var t=Hw(),e=qE(),r=$w(),n=Object,o=t("".split);return ow=e(function(){return!n("z").propertyIsEnumerable(0)})?function(t){return"String"===r(t)?o(t,""):n(t)}:n}function Vw(){return aw?uw:(aw=1,uw=function(t){return null==t})}function Gw(){if(cw)return sw;cw=1;var t=Vw(),e=TypeError;return sw=function(r){if(t(r))throw new e("Can't call method on "+r);return r}}function Ww(){if(fw)return lw;fw=1;var t=Uw(),e=Gw();return lw=function(r){return t(e(r))}}function qw(){if(pw)return dw;pw=1;var t="object"==typeof document&&document.all;return dw=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(t){return"function"==typeof t}}function Kw(){if(vw)return hw;vw=1;var t=qw();return hw=function(e){return"object"==typeof e?null!==e:t(e)}}function Yw(){if(yw)return gw;yw=1;var t=_E(),e=qw();return gw=function(r,n){return arguments.length<2?(o=t[r],e(o)?o:void 0):t[r]&&t[r][n];var o},gw}function Xw(){if(bw)return mw;bw=1;var t=Hw();return mw=t({}.isPrototypeOf)}function Jw(){if(ww)return Ew;ww=1;var t=_E().navigator,e=t&&t.userAgent;return Ew=e?String(e):""}function Zw(){if(Cw)return Sw;Cw=1;var t,e,r=_E(),n=Jw(),o=r.process,i=r.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&&n&&(!(t=n.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=n.match(/Chrome\/(\d+)/))&&(e=+t[1]),Sw=e}function Qw(){if(Ow)return Dw;Ow=1;var t=Zw(),e=qE(),r=_E().String;return Dw=!!Object.getOwnPropertySymbols&&!e(function(){var e=Symbol("symbol detection");return!r(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&t&&t<41})}function tS(){if(xw)return Aw;xw=1;var t=Qw();return Aw=t&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function eS(){if(Nw)return Tw;Nw=1;var t=Yw(),e=qw(),r=Xw(),n=tS(),o=Object;return Tw=n?function(t){return"symbol"==typeof t}:function(n){var i=t("Symbol");return e(i)&&r(i.prototype,o(n))}}function rS(){if(Pw)return kw;Pw=1;var t=String;return kw=function(e){try{return t(e)}catch(t){return"Object"}}}function nS(){if(Iw)return Bw;Iw=1;var t=qw(),e=rS(),r=TypeError;return Bw=function(n){if(t(n))return n;throw new r(e(n)+" is not a function")}}function oS(){if(Rw)return Fw;Rw=1;var t=nS(),e=Vw();return Fw=function(r,n){var o=r[n];return e(o)?void 0:t(o)}}var iS,uS,aS,sS,cS,lS,fS,dS,pS,hS,vS,gS,yS,mS,bS,ES,wS,SS,CS,DS,OS,AS,xS,TS,NS={exports:{}};function kS(){return uS?iS:(uS=1,iS=!1)}function PS(){if(sS)return aS;sS=1;var t=_E(),e=Object.defineProperty;return aS=function(r,n){try{e(t,r,{value:n,configurable:!0,writable:!0})}catch(e){t[r]=n}return n}}function BS(){if(cS)return NS.exports;cS=1;var t=kS(),e=_E(),r=PS(),n="__core-js_shared__",o=NS.exports=e[n]||r(n,{});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"}),NS.exports}function IS(){if(fS)return lS;fS=1;var t=BS();return lS=function(e,r){return t[e]||(t[e]=r||{})}}function FS(){if(pS)return dS;pS=1;var t=Gw(),e=Object;return dS=function(r){return e(t(r))}}function RS(){if(vS)return hS;vS=1;var t=Hw(),e=FS(),r=t({}.hasOwnProperty);return hS=Object.hasOwn||function(t,n){return r(e(t),n)}}function LS(){if(yS)return gS;yS=1;var t=Hw(),e=0,r=Math.random(),n=t(1.1.toString);return gS=function(t){return"Symbol("+(void 0===t?"":t)+")_"+n(++e+r,36)}}function _S(){if(bS)return mS;bS=1;var t=_E(),e=IS(),r=RS(),n=LS(),o=Qw(),i=tS(),u=t.Symbol,a=e("wks"),s=i?u.for||u:u&&u.withoutSetter||n;return mS=function(t){return r(a,t)||(a[t]=o&&r(u,t)?u[t]:s("Symbol."+t)),a[t]}}function jS(){if(wS)return ES;wS=1;var t=XE(),e=Kw(),r=eS(),n=oS(),o=function(){if(_w)return Lw;_w=1;var t=XE(),e=qw(),r=Kw(),n=TypeError;return Lw=function(o,i){var u,a;if("string"===i&&e(u=o.toString)&&!r(a=t(u,o)))return a;if(e(u=o.valueOf)&&!r(a=t(u,o)))return a;if("string"!==i&&e(u=o.toString)&&!r(a=t(u,o)))return a;throw new n("Can't convert object to primitive value")},Lw}(),i=_S(),u=TypeError,a=i("toPrimitive");return ES=function(i,s){if(!e(i)||r(i))return i;var c,l=n(i,a);if(l){if(void 0===s&&(s="default"),c=t(l,i,s),!e(c)||r(c))return c;throw new u("Can't convert object to primitive value")}return void 0===s&&(s="number"),o(i,s)}}function MS(){if(CS)return SS;CS=1;var t=jS(),e=eS();return SS=function(r){var n=t(r,"string");return e(n)?n:n+""}}function zS(){if(OS)return DS;OS=1;var t=_E(),e=Kw(),r=t.document,n=e(r)&&e(r.createElement);return DS=function(t){return n?r.createElement(t):{}}}function HS(){if(xS)return AS;xS=1;var t=KE(),e=qE(),r=zS();return AS=!t&&!e(function(){return 7!==Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a})}function $S(){if(TS)return WE;TS=1;var t=KE(),e=XE(),r=Mw(),n=zw(),o=Ww(),i=MS(),u=RS(),a=HS(),s=Object.getOwnPropertyDescriptor;return WE.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 n(!e(r.f,t,c),t[c])},WE}var US,VS,GS,WS,qS,KS,YS,XS={};function JS(){if(VS)return US;VS=1;var t=KE(),e=qE();return US=t&&e(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}function ZS(){if(WS)return GS;WS=1;var t=Kw(),e=String,r=TypeError;return GS=function(n){if(t(n))return n;throw new r(e(n)+" is not an object")}}function QS(){if(qS)return XS;qS=1;var t=KE(),e=HS(),r=JS(),n=ZS(),o=MS(),i=TypeError,u=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s="enumerable",c="configurable",l="writable";return XS.f=t?r?function(t,e,r){if(n(t),e=o(e),n(r),"function"==typeof t&&"prototype"===e&&"value"in r&&l in r&&!r[l]){var i=a(t,e);i&&i[l]&&(t[e]=r.value,r={configurable:c in r?r[c]:i[c],enumerable:s in r?r[s]:i[s],writable:!1})}return u(t,e,r)}:u:function(t,r,a){if(n(t),r=o(r),n(a),e)try{return u(t,r,a)}catch(t){}if("get"in a||"set"in a)throw new i("Accessors not supported");return"value"in a&&(t[r]=a.value),t},XS}function tC(){if(YS)return KS;YS=1;var t=KE(),e=QS(),r=zw();return KS=t?function(t,n,o){return e.f(t,n,r(1,o))}:function(t,e,r){return t[e]=r,t}}var eC,rC,nC,oC,iC,uC,aC,sC,cC,lC,fC,dC,pC,hC,vC,gC={exports:{}};function yC(){if(rC)return eC;rC=1;var t=KE(),e=RS(),r=Function.prototype,n=t&&Object.getOwnPropertyDescriptor,o=e(r,"name"),i=o&&"something"===function(){}.name,u=o&&(!t||t&&n(r,"name").configurable);return eC={EXISTS:o,PROPER:i,CONFIGURABLE:u}}function mC(){if(oC)return nC;oC=1;var t=Hw(),e=qw(),r=BS(),n=t(Function.toString);return e(r.inspectSource)||(r.inspectSource=function(t){return n(t)}),nC=r.inspectSource}function bC(){if(uC)return iC;uC=1;var t=_E(),e=qw(),r=t.WeakMap;return iC=e(r)&&/native code/.test(String(r))}function EC(){if(sC)return aC;sC=1;var t=IS(),e=LS(),r=t("keys");return aC=function(t){return r[t]||(r[t]=e(t))}}function wC(){return lC?cC:(lC=1,cC={})}function SC(){if(dC)return fC;dC=1;var t,e,r,n=bC(),o=_E(),i=Kw(),u=tC(),a=RS(),s=BS(),c=EC(),l=wC(),f="Object already initialized",d=o.TypeError,p=o.WeakMap;if(n||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)||{}},r=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]:{}},r=function(t){return a(t,v)}}return fC={set:t,get:e,has:r,enforce:function(n){return r(n)?e(n):t(n,{})},getterFor:function(t){return function(r){var n;if(!i(r)||(n=e(r)).type!==t)throw new d("Incompatible receiver, "+t+" required");return n}}}}function CC(){if(pC)return gC.exports;pC=1;var t=Hw(),e=qE(),r=qw(),n=RS(),o=KE(),i=yC().CONFIGURABLE,u=mC(),a=SC(),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=gC.exports=function(t,e,r){"Symbol("===d(l(e),0,7)&&(e="["+p(l(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!n(t,"name")||i&&t.name!==e)&&(o?f(t,"name",{value:e,configurable:!0}):t.name=e),v&&r&&n(r,"arity")&&t.length!==r.arity&&f(t,"length",{value:r.arity});try{r&&n(r,"constructor")&&r.constructor?o&&f(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var u=s(t);return n(u,"source")||(u.source=h(g,"string"==typeof e?e:"")),t};return Function.prototype.toString=y(function(){return r(this)&&c(this).source||u(this)},"toString"),gC.exports}function DC(){if(vC)return hC;vC=1;var t=qw(),e=QS(),r=CC(),n=PS();return hC=function(o,i,u,a){a||(a={});var s=a.enumerable,c=void 0!==a.name?a.name:i;if(t(u)&&r(u,c,a),a.global)s?o[i]=u:n(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 OC,AC,xC,TC,NC,kC,PC,BC,IC,FC,RC,LC,_C,jC,MC,zC,HC,$C={};function UC(){if(TC)return xC;TC=1;var t=function(){if(AC)return OC;AC=1;var t=Math.ceil,e=Math.floor;return OC=Math.trunc||function(r){var n=+r;return(n>0?e:t)(n)},OC}();return xC=function(e){var r=+e;return r!=r||0===r?0:t(r)}}function VC(){if(kC)return NC;kC=1;var t=UC(),e=Math.max,r=Math.min;return NC=function(n,o){var i=t(n);return i<0?e(i+o,0):r(i,o)}}function GC(){if(BC)return PC;BC=1;var t=UC(),e=Math.min;return PC=function(r){var n=t(r);return n>0?e(n,9007199254740991):0}}function WC(){if(FC)return IC;FC=1;var t=GC();return IC=function(e){return t(e.length)}}function qC(){if(LC)return RC;LC=1;var t=Ww(),e=VC(),r=WC(),n=function(n){return function(o,i,u){var a=t(o),s=r(a);if(0===s)return!n&&-1;var c,l=e(u,s);if(n&&i!=i){for(;s>l;)if((c=a[l++])!=c)return!0}else for(;s>l;l++)if((n||l in a)&&a[l]===i)return n||l||0;return!n&&-1}};return RC={includes:n(!0),indexOf:n(!1)}}function KC(){if(jC)return _C;jC=1;var t=Hw(),e=RS(),r=Ww(),n=qC().indexOf,o=wC(),i=t([].push);return _C=function(t,u){var a,s=r(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++])&&(~n(l,a)||i(l,a));return l}}function YC(){return zC?MC:(zC=1,MC=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function XC(){if(HC)return $C;HC=1;var t=KC(),e=YC().concat("length","prototype");return $C.f=Object.getOwnPropertyNames||function(r){return t(r,e)},$C}var JC,ZC,QC,tD,eD,rD,nD,oD,iD,uD,aD,sD,cD,lD,fD,dD,pD,hD,vD,gD,yD,mD,bD,ED,wD,SD,CD,DD,OD={};function AD(){return JC||(JC=1,OD.f=Object.getOwnPropertySymbols),OD}function xD(){if(eD)return tD;eD=1;var t=RS(),e=function(){if(QC)return ZC;QC=1;var t=Yw(),e=Hw(),r=XC(),n=AD(),o=ZS(),i=e([].concat);return ZC=t("Reflect","ownKeys")||function(t){var e=r.f(o(t)),u=n.f;return u?i(e,u(t)):e},ZC}(),r=$S(),n=QS();return tD=function(o,i,u){for(var a=e(i),s=n.f,c=r.f,l=0;l<a.length;l++){var f=a[l];t(o,f)||u&&t(u,f)||s(o,f,c(i,f))}},tD}function TD(){if(nD)return rD;nD=1;var t=qE(),e=qw(),r=/#|\.prototype\./,n=function(r,n){var s=i[o(r)];return s===a||s!==u&&(e(n)?t(n):!!n)},o=n.normalize=function(t){return String(t).replace(r,".").toLowerCase()},i=n.data={},u=n.NATIVE="N",a=n.POLYFILL="P";return rD=n}function ND(){if(iD)return oD;iD=1;var t=_E(),e=$S().f,r=tC(),n=DC(),o=PS(),i=xD(),u=TD();return oD=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)&&r(d,"sham",!0),n(c,l,d,a)}}}function kD(){if(aD)return uD;aD=1;var t=$w();return uD=Array.isArray||function(e){return"Array"===t(e)}}function PD(){if(cD)return sD;cD=1;var t=TypeError;return sD=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}}function BD(){if(fD)return lD;fD=1;var t=KE(),e=QS(),r=zw();return lD=function(n,o,i){t?e.f(n,o,r(0,i)):n[o]=i}}function ID(){if(pD)return dD;pD=1;var t={};return t[_S()("toStringTag")]="z",dD="[object z]"===String(t)}function FD(){if(vD)return hD;vD=1;var t=ID(),e=qw(),r=$w(),n=_S()("toStringTag"),o=Object,i="Arguments"===r(function(){return arguments}());return hD=t?r: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),n))?a:i?r(u):"Object"===(s=r(u))&&e(u.callee)?"Arguments":s}}function RD(){if(yD)return gD;yD=1;var t=Hw(),e=qE(),r=qw(),n=FD(),o=Yw(),i=mC(),u=function(){},a=o("Reflect","construct"),s=/^\s*(?:class|function)\b/,c=t(s.exec),l=!s.test(u),f=function(t){if(!r(t))return!1;try{return a(u,[],t),!0}catch(t){return!1}},d=function(t){if(!r(t))return!1;switch(n(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return l||!!c(s,i(t))}catch(t){return!0}};return d.sham=!0,gD=!a||e(function(){var t;return f(f.call)||!f(Object)||!f(function(){t=!0})||t})?d:f}function LD(){if(wD)return ED;wD=1;var t=function(){if(bD)return mD;bD=1;var t=kD(),e=RD(),r=Kw(),n=_S()("species"),o=Array;return mD=function(i){var u;return t(i)&&(u=i.constructor,(e(u)&&(u===o||t(u.prototype))||r(u)&&null===(u=u[n]))&&(u=void 0)),void 0===u?o:u}}();return ED=function(e,r){return new(t(e))(0===r?0:r)}}function _D(){if(CD)return SD;CD=1;var t=qE(),e=_S(),r=Zw(),n=e("species");return SD=function(e){return r>=51||!t(function(){var t=[];return(t.constructor={})[n]=function(){return{foo:1}},1!==t[e](Boolean).foo})}}!function(){if(DD)return LE;DD=1;var t=ND(),e=qE(),r=kD(),n=Kw(),o=FS(),i=WC(),u=PD(),a=BD(),s=LD(),c=_D(),l=_S(),f=Zw(),d=l("isConcatSpreadable"),p=f>=51||!e(function(){var t=[];return t[d]=!1,t.concat()[0]!==t}),h=function(t){if(!n(t))return!1;var e=t[d];return void 0!==e?!!e:r(t)};t({target:"Array",proto:!0,arity:1,forced:!p||!c("concat")},{concat:function(t){var e,r,n,c,l,f=o(this),d=s(f,0),p=0;for(e=-1,n=arguments.length;e<n;e++)if(h(l=-1===e?f:arguments[e]))for(c=i(l),u(p+c),r=0;r<c;r++,p++)r in l&&a(d,p,l[r]);else u(p+1),a(d,p++,l);return d.length=p,d}})}();var jD,MD,zD,HD={};function $D(){if(MD)return jD;MD=1;var t=KC(),e=YC();return jD=Object.keys||function(r){return t(r,e)}}!function(){if(zD)return HD;zD=1;var t=ND(),e=FS(),r=$D();t({target:"Object",stat:!0,forced:qE()(function(){r(1)})},{keys:function(t){return r(e(t))}})}();var UD,VD,GD,WD={};!function(){if(GD)return WD;GD=1;var t=ID(),e=DC(),r=function(){if(VD)return UD;VD=1;var t=ID(),e=FD();return UD=t?{}.toString:function(){return"[object "+e(this)+"]"}}();t||e(Object.prototype,"toString",r,{unsafe:!0})}();var qD,KD,YD,XD,JD,ZD,QD,tO,eO,rO,nO,oO,iO,uO,aO,sO={};function cO(){return KD?qD:(KD=1,qD={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 lO(){if(XD)return YD;XD=1;var t=zS()("span").classList,e=t&&t.constructor&&t.constructor.prototype;return YD=e===Object.prototype?void 0:e}function fO(){if(ZD)return JD;ZD=1;var t=$w(),e=Hw();return JD=function(r){if("Function"===t(r))return e(r)}}function dO(){if(tO)return QD;tO=1;var t=fO(),e=nS(),r=YE(),n=t(t.bind);return QD=function(t,o){return e(t),void 0===o?t:r?n(t,o):function(){return t.apply(o,arguments)}},QD}function pO(){if(rO)return eO;rO=1;var t=dO(),e=Hw(),r=Uw(),n=FS(),o=WC(),i=LD(),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=n(h),w=r(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 eO={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 hO(){if(oO)return nO;oO=1;var t=qE();return nO=function(e,r){var n=[][e];return!!n&&t(function(){n.call(null,r||function(){return 1},1)})}}
19
- /*!
20
- * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
21
- *
22
- * Copyright (c) 2014-2017, Jon Schlinkert.
23
- * Released under the MIT License.
24
- */function vO(t){return"[object Object]"===Object.prototype.toString.call(t)}!function(){if(aO)return sO;aO=1;var t=_E(),e=cO(),r=lO(),n=function(){if(uO)return iO;uO=1;var t=pO().forEach,e=hO()("forEach");return iO=e?[].forEach:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)},iO}(),o=tC(),i=function(t){if(t&&t.forEach!==n)try{o(t,"forEach",n)}catch(e){t.forEach=n}};for(var u in e)e[u]&&i(t[u]&&t[u].prototype);i(r)}();var gO=t=>function(t){var e,r;return!1!==vO(t)&&(void 0===(e=t.constructor)||!1!==vO(r=e.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))}(t)&&Array.isArray(t.redos)&&Array.isArray(t.undos)&&(0===t.redos.length||nv.isOperationList(t.redos[0].operations))&&(0===t.undos.length||nv.isOperationList(t.undos[0].operations)),yO=new WeakMap,mO=new WeakMap,bO={isHistoryEditor:t=>gO(t.history)&&Kh.isEditor(t),isMerging:t=>mO.get(t),isSaving:t=>yO.get(t),redo(t){t.redo()},undo(t){t.undo()},withMerging(t,e){var r=bO.isMerging(t);mO.set(t,!0),e(),mO.set(t,r)},withoutMerging(t,e){var r=bO.isMerging(t);mO.set(t,!1),e(),mO.set(t,r)},withoutSaving(t,e){var r=bO.isSaving(t);yO.set(t,!1),e(),yO.set(t,r)}},EO=t=>{var e=t,{apply:r}=e;return e.history={undos:[],redos:[]},e.redo=()=>{var{history:t}=e,{redos:r}=t;if(r.length>0){var n=r[r.length-1];n.selectionBefore&&zv.setSelection(e,n.selectionBefore),bO.withoutSaving(e,()=>{Kh.withoutNormalizing(e,()=>{for(var t of n.operations)e.apply(t)})}),t.redos.pop(),e.writeHistory("undos",n)}},e.undo=()=>{var{history:t}=e,{undos:r}=t;if(r.length>0){var n=r[r.length-1];bO.withoutSaving(e,()=>{Kh.withoutNormalizing(e,()=>{var t=n.operations.map(nv.inverse).reverse();for(var r of t)e.apply(r);n.selectionBefore&&zv.setSelection(e,n.selectionBefore)})}),e.writeHistory("redos",n),t.undos.pop()}},e.apply=t=>{var{operations:n,history:o}=e,{undos:i}=o,u=i[i.length-1],a=u&&u.operations[u.operations.length-1],s=bO.isSaving(e),c=bO.isMerging(e);if(null==s&&(s=SO(t)),s){if(null==c&&(c=null!=u&&(0!==n.length||wO(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=[]}r(t)},e.writeHistory=(t,r)=>{e.history[t].push(r)},e},wO=(t,e)=>!(!e||"insert_text"!==t.type||"insert_text"!==e.type||t.offset!==e.offset+e.text.length||!ov.equals(t.path,e.path))||!(!e||"remove_text"!==t.type||"remove_text"!==e.type||t.offset+t.text.length!==e.offset||!ov.equals(t.path,e.path)),SO=(t,e)=>"set_selection"!==t.type,CO=function(t,e){return CO=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},CO(t,e)};function DO(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}CO(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var OO=function(){return OO=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},OO.apply(this,arguments)};function AO(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}function xO(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function TO(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)u.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u}function NO(t,e,r){if(2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError;var kO={},PO="destroyed",BO="change",IO="scroll",FO={};var RO,LO,_O,jO,MO,zO,HO,$O,UO,VO,GO,WO,qO,KO,YO,XO,JO,ZO,QO,tA,eA,rA,nA,oA,iA,uA,aA,sA,cA,lA,fA,dA,pA,hA={};function vA(){if(_O)return LO;_O=1;var t=Yw();return LO=t("document","documentElement")}function gA(){if(MO)return jO;MO=1;var t,e=ZS(),r=function(){if(RO)return hA;RO=1;var t=KE(),e=JS(),r=QS(),n=ZS(),o=Ww(),i=$D();return hA.f=t&&!e?Object.defineProperties:function(t,e){n(t);for(var u,a=o(e),s=i(e),c=s.length,l=0;c>l;)r.f(t,u=s[l++],a[u]);return t},hA}(),n=YC(),o=wC(),i=vA(),u=zS(),a=EC(),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,r,o;h="undefined"!=typeof document?document.domain&&t?p(t):(r=u("iframe"),o="java"+c+":",r.style.display="none",i.appendChild(r),r.src=String(o),(e=r.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F):p(t);for(var a=n.length;a--;)delete h[s][n[a]];return h()};return o[l]=!0,jO=Object.create||function(t,n){var o;return null!==t?(f[s]=e(t),o=new f,f[s]=null,o[l]=t):o=h(),void 0===n?o:r.f(o,n)}}function yA(){if(HO)return zO;HO=1;var t=_S(),e=gA(),r=QS().f,n=t("unscopables"),o=Array.prototype;return void 0===o[n]&&r(o,n,{configurable:!0,value:e(null)}),zO=function(t){o[n][t]=!0}}function mA(){return UO?$O:(UO=1,$O={})}function bA(){if(qO)return WO;qO=1;var t=RS(),e=qw(),r=FS(),n=EC(),o=function(){if(GO)return VO;GO=1;var t=qE();return VO=!t(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})}(),i=n("IE_PROTO"),u=Object,a=u.prototype;return WO=o?u.getPrototypeOf:function(n){var o=r(n);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 EA(){if(YO)return KO;YO=1;var t,e,r,n=qE(),o=qw(),i=Kw(),u=gA(),a=bA(),s=DC(),c=_S(),l=kS(),f=c("iterator"),d=!1;return[].keys&&("next"in(r=[].keys())?(e=a(a(r)))!==Object.prototype&&(t=e):d=!0),!i(t)||n(function(){var e={};return t[f].call(e)!==e})?t={}:l&&(t=u(t)),o(t[f])||s(t,f,function(){return this}),KO={IteratorPrototype:t,BUGGY_SAFARI_ITERATORS:d}}function wA(){if(JO)return XO;JO=1;var t=QS().f,e=RS(),r=_S()("toStringTag");return XO=function(n,o,i){n&&!i&&(n=n.prototype),n&&!e(n,r)&&t(n,r,{configurable:!0,value:o})}}function SA(){if(iA)return oA;iA=1;var t=function(){if(nA)return rA;nA=1;var t=Kw();return rA=function(e){return t(e)||null===e}}(),e=String,r=TypeError;return oA=function(n){if(t(n))return n;throw new r("Can't set "+e(n)+" as a prototype")}}function CA(){if(aA)return uA;aA=1;var t=function(){if(eA)return tA;eA=1;var t=Hw(),e=nS();return tA=function(r,n,o){try{return t(e(Object.getOwnPropertyDescriptor(r,n)[o]))}catch(t){}}}(),e=Kw(),r=Gw(),n=SA();return uA=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 r(t),n(u),e(t)?(i?o(t,u):t.__proto__=u,t):t}}():void 0)}function DA(){if(cA)return sA;cA=1;var t=ND(),e=XE(),r=kS(),n=yC(),o=qw(),i=function(){if(QO)return ZO;QO=1;var t=EA().IteratorPrototype,e=gA(),r=zw(),n=wA(),o=mA(),i=function(){return this};return ZO=function(u,a,s,c){var l=a+" Iterator";return u.prototype=e(t,{next:r(+!c,s)}),n(u,l,!1,!0),o[l]=i,u}}(),u=bA(),a=CA(),s=wA(),c=tC(),l=DC(),f=_S(),d=mA(),p=EA(),h=n.PROPER,v=n.CONFIGURABLE,g=p.IteratorPrototype,y=p.BUGGY_SAFARI_ITERATORS,m=f("iterator"),b="keys",E="values",w="entries",S=function(){return this};return sA=function(n,f,p,C,D,O,A){i(p,f,C);var x,T,N,k=function(t){if(t===D&&R)return R;if(!y&&t&&t in I)return I[t];switch(t){case b:case E:case w:return function(){return new p(this,t)}}return function(){return new p(this)}},P=f+" Iterator",B=!1,I=n.prototype,F=I[m]||I["@@iterator"]||D&&I[D],R=!y&&F||k(D),L="Array"===f&&I.entries||F;if(L&&(x=u(L.call(new n)))!==Object.prototype&&x.next&&(r||u(x)===g||(a?a(x,g):o(x[m])||l(x,m,S)),s(x,P,!0,!0),r&&(d[P]=S)),h&&D===E&&F&&F.name!==E&&(!r&&v?c(I,"name",E):(B=!0,R=function(){return e(F,this)})),D)if(T={values:k(E),keys:O?R:k(b),entries:k(w)},A)for(N in T)(y||B||!(N in I))&&l(I,N,T[N]);else t({target:f,proto:!0,forced:y||B},T);return r&&!A||I[m]===R||l(I,m,R,{name:D}),d[f]=R,T}}function OA(){return fA?lA:(fA=1,lA=function(t,e){return{value:t,done:e}})}function AA(){if(pA)return dA;pA=1;var t=Ww(),e=yA(),r=mA(),n=SC(),o=QS().f,i=DA(),u=OA(),a=kS(),s=KE(),c="Array Iterator",l=n.set,f=n.getterFor(c);dA=i(Array,"Array",function(e,r){l(this,{type:c,target:t(e),index:0,kind:r})},function(){var t=f(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=null,u(void 0,!0);switch(t.kind){case"keys":return u(r,!1);case"values":return u(e[r],!1)}return u([r,e[r]],!1)},"values");var d=r.Arguments=r.Array;if(e("keys"),e("values"),e("entries"),!a&&s&&"values"!==d.name)try{o(d,"name",{value:"values"})}catch(t){}return dA}AA();var xA,TA,NA,kA,PA,BA={};function IA(){if(TA)return xA;TA=1;var t=FD(),e=String;return xA=function(r){if("Symbol"===t(r))throw new TypeError("Cannot convert a Symbol value to a string");return e(r)}}function FA(){if(kA)return NA;kA=1;var t=Hw(),e=UC(),r=IA(),n=Gw(),o=t("".charAt),i=t("".charCodeAt),u=t("".slice),a=function(t){return function(a,s){var c,l,f=r(n(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 NA={codeAt:a(!1),charAt:a(!0)}}!function(){if(PA)return BA;PA=1;var t=FA().charAt,e=IA(),r=SC(),n=DA(),o=OA(),i="String Iterator",u=r.set,a=r.getterFor(i);n(String,"String",function(t){u(this,{type:i,string:e(t),index:0})},function(){var e,r=a(this),n=r.string,i=r.index;return i>=n.length?o(void 0,!0):(e=t(n,i),r.index+=e.length,o(e,!1))})}();var RA,LA,_A,jA,MA={};function zA(){if(LA)return RA;LA=1;var t=qE();return RA=!t(function(){return Object.isExtensible(Object.preventExtensions({}))})}function HA(){if(jA)return _A;jA=1;var t=DC();return _A=function(e,r,n){for(var o in r)t(e,o,r[o],n);return e}}var $A,UA,VA,GA,WA,qA,KA,YA,XA,JA,ZA,QA,tx,ex,rx,nx,ox,ix,ux,ax,sx,cx,lx,fx,dx,px,hx,vx,gx,yx,mx={exports:{}},bx={};function Ex(){if(UA)return $A;UA=1;var t=Hw();return $A=t([].slice)}function wx(){if(YA)return mx.exports;YA=1;var t=ND(),e=Hw(),r=wC(),n=Kw(),o=RS(),i=QS().f,u=XC(),a=function(){if(VA)return bx;VA=1;var t=$w(),e=Ww(),r=XC().f,n=Ex(),o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];return bx.f=function(i){return o&&"Window"===t(i)?function(t){try{return r(t)}catch(t){return n(o)}}(i):r(e(i))},bx}(),s=function(){if(KA)return qA;KA=1;var t=qE(),e=Kw(),r=$w(),n=function(){if(WA)return GA;WA=1;var t=qE();return GA=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 qA=i||n?function(t){return!!e(t)&&(!n||"ArrayBuffer"!==r(t))&&(!o||o(t))}:o}(),c=LS(),l=zA(),f=!1,d=c("meta"),p=0,h=function(t){i(t,d,{value:{objectID:"O"+p++,weakData:{}}})},v=mx.exports={enable:function(){v.enable=function(){},f=!0;var r=u.f,n=e([].splice),o={};o[d]=1,r(o).length&&(u.f=function(t){for(var e=r(t),o=0,i=e.length;o<i;o++)if(e[o]===d){n(e,o,1);break}return e},t({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:a.f}))},fastKey:function(t,e){if(!n(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 r[d]=!0,mx.exports}function Sx(){if(JA)return XA;JA=1;var t=_S(),e=mA(),r=t("iterator"),n=Array.prototype;return XA=function(t){return void 0!==t&&(e.Array===t||n[r]===t)}}function Cx(){if(QA)return ZA;QA=1;var t=FD(),e=oS(),r=Vw(),n=mA(),o=_S()("iterator");return ZA=function(i){if(!r(i))return e(i,o)||e(i,"@@iterator")||n[t(i)]}}function Dx(){if(ex)return tx;ex=1;var t=XE(),e=nS(),r=ZS(),n=rS(),o=Cx(),i=TypeError;return tx=function(u,a){var s=arguments.length<2?o(u):a;if(e(s))return r(t(s,u));throw new i(n(u)+" is not iterable")},tx}function Ox(){if(nx)return rx;nx=1;var t=XE(),e=ZS(),r=oS();return rx=function(n,o,i){var u,a;e(n);try{if(!(u=r(n,"return"))){if("throw"===o)throw i;return i}u=t(u,n)}catch(t){a=!0,u=t}if("throw"===o)throw i;if(a)throw u;return e(u),i}}function Ax(){if(ix)return ox;ix=1;var t=dO(),e=XE(),r=ZS(),n=rS(),o=Sx(),i=WC(),u=Xw(),a=Dx(),s=Cx(),c=Ox(),l=TypeError,f=function(t,e){this.stopped=t,this.result=e},d=f.prototype;return ox=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)},k=function(t){return D?(r(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(n(p)+" is not iterable");if(o(y)){for(m=0,b=i(p);b>m;m++)if((E=k(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=k(S.value)}catch(t){c(g,"throw",t)}if("object"==typeof E&&E&&u(d,E))return E}return new f(!1)}}function xx(){if(ax)return ux;ax=1;var t=Xw(),e=TypeError;return ux=function(r,n){if(t(n,r))return r;throw new e("Incorrect invocation")}}function Tx(){if(cx)return sx;cx=1;var t=_S()("iterator"),e=!1;try{var r=0,n={next:function(){return{done:!!r++}},return:function(){e=!0}};n[t]=function(){return this},Array.from(n,function(){throw 2})}catch(t){}return sx=function(r,n){try{if(!n&&!e)return!1}catch(t){return!1}var o=!1;try{var i={};i[t]=function(){return{next:function(){return{done:o=!0}}}},r(i)}catch(t){}return o}}function Nx(){if(fx)return lx;fx=1;var t=qw(),e=Kw(),r=CA();return lx=function(n,o,i){var u,a;return r&&t(u=o.constructor)&&u!==i&&e(a=u.prototype)&&a!==i.prototype&&r(n,a),n}}function kx(){if(px)return dx;px=1;var t=ND(),e=_E(),r=Hw(),n=TD(),o=DC(),i=wx(),u=Ax(),a=xx(),s=qw(),c=Vw(),l=Kw(),f=qE(),d=Tx(),p=wA(),h=Nx();return dx=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=r(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,r){return e(this,0===t?0:t,r),this})};if(n(v,!s(w)||!(b||S.forEach&&!f(function(){(new w).entries().next()}))))C=y.getConstructor(g,v,m,E),i.enable();else if(n(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)}),k=!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 r=h(new w,t,C);return c(e)||u(e,r[E],{that:r,AS_ENTRIES:m}),r})).prototype=S,S.constructor=C),(T||k)&&(O("delete"),O("has"),m&&O("get")),(k||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},dx}yx||(yx=1,function(){if(gx)return MA;gx=1;var t,e=zA(),r=_E(),n=Hw(),o=HA(),i=wx(),u=kx(),a=function(){if(vx)return hx;vx=1;var t=Hw(),e=HA(),r=wx().getWeakData,n=xx(),o=ZS(),i=Vw(),u=Kw(),a=Ax(),s=pO(),c=RS(),l=SC(),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 r=b(this,t);r?r[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}},hx={getConstructor:function(t,s,l,p){var h=t(function(t,e){n(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,n){var i=m(t),u=r(o(e),!0);return!0===u?y(i).set(e,n):u[i.id]=n,t};return e(v,{delete:function(t){var e=m(this);if(!u(t))return!1;var n=r(t);return!0===n?y(e).delete(t):n&&c(n,e.id)&&delete n[e.id]},has:function(t){var e=m(this);if(!u(t))return!1;var n=r(t);return!0===n?y(e).has(t):n&&c(n,e.id)}}),e(v,l?{get:function(t){var e=m(this);if(u(t)){var n=r(t);if(!0===n)return y(e).get(t);if(n)return n[e.id]}},set:function(t,e){return b(this,t,e)}}:{add:function(t){return b(this,t,!0)}}),h}}}(),s=Kw(),c=SC().enforce,l=qE(),f=bC(),d=Object,p=Array.isArray,h=d.isExtensible,v=d.isFrozen,g=d.isSealed,y=d.freeze,m=d.seal,b=!r.ActiveXObject&&"ActiveXObject"in r,E=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},w=u("WeakMap",E,a),S=w.prototype,C=n(S.set);if(f)if(b){t=a.getConstructor(E,"WeakMap",!0),i.enable();var D=n(S.delete),O=n(S.has),A=n(S.get);o(S,{delete:function(e){if(s(e)&&!h(e)){var r=c(this);return r.frozen||(r.frozen=new t),D(this,e)||r.frozen.delete(e)}return D(this,e)},has:function(e){if(s(e)&&!h(e)){var r=c(this);return r.frozen||(r.frozen=new t),O(this,e)||r.frozen.has(e)}return O(this,e)},get:function(e){if(s(e)&&!h(e)){var r=c(this);return r.frozen||(r.frozen=new t),O(this,e)?A(this,e):r.frozen.get(e)}return A(this,e)},set:function(e,r){if(s(e)&&!h(e)){var n=c(this);n.frozen||(n.frozen=new t),O(this,e)?C(this,e,r):n.frozen.set(e,r)}else C(this,e,r);return this}})}else e&&l(function(){var t=y([]);return C(new w,t,1),!v(t)})&&o(S,{set:function(t,e){var r;return p(t)&&(v(t)?r=y:g(t)&&(r=m)),C(this,t,e),r&&r(t),this}})}());var Px,Bx={};!function(){if(Px)return Bx;Px=1;var t=_E(),e=cO(),r=lO(),n=AA(),o=tC(),i=wA(),u=_S()("iterator"),a=n.values,s=function(t,r){if(t){if(t[u]!==a)try{o(t,u,a)}catch(e){t[u]=a}if(i(t,r,!0),e[r])for(var s in n)if(t[s]!==n[s])try{o(t,s,n[s])}catch(e){t[s]=n[s]}}};for(var c in e)s(t[c]&&t[c].prototype,c);s(r,"DOMTokenList")}();var Ix,Fx=new WeakMap,Rx=new WeakMap,Lx=new WeakMap,_x=new WeakMap,jx=new WeakMap,Mx=new WeakMap,zx=new WeakMap,Hx=new WeakMap,$x=new WeakMap,Ux=new WeakMap,Vx=new WeakMap,Gx=new WeakMap,Wx=new WeakMap,qx=new WeakMap,Kx=new WeakMap,Yx=new WeakMap,Xx=new WeakMap,Jx=new WeakMap,Zx=new WeakMap,Qx=new WeakMap,tT=new WeakMap,eT=new WeakMap,rT=new WeakMap,nT=new WeakMap,oT=new WeakMap,iT=new WeakMap,uT=new WeakMap,aT=function(t){var e=t;return e.getAllMenuKeys=function(){var t=[];for(var e in FO)t.push(e);return t},e.getConfig=function(){var t=Ux.get(e);if(null==t)throw new Error("Can not get editor config");return t},e.getMenuConfig=function(t){var r=e.getConfig().MENU_CONF;return(void 0===r?{}:r)[t]||{}},e.alert=function(t,r){void 0===r&&(r="info");var n=e.getConfig().customAlert;n&&n(t,r)},e},sT={};!function(){if(Ix)return sT;Ix=1;var t=ND(),e=pO().filter;t({target:"Array",proto:!0,forced:!_D()("filter")},{filter:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}})}();var cT,lT,fT,dT,pT,hT={};!function(){if(pT)return hT;pT=1;var t=ND(),e=function(){if(dT)return fT;dT=1;var t=dO(),e=XE(),r=FS(),n=function(){if(lT)return cT;lT=1;var t=ZS(),e=Ox();return cT=function(r,n,o,i){try{return i?n(t(o)[0],o[1]):n(o)}catch(t){e(r,"throw",t)}}}(),o=Sx(),i=RD(),u=WC(),a=BD(),s=Dx(),c=Cx(),l=Array;return fT=function(f){var d=r(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?n(E,v,[b.value,D],!0):b.value,a(m,D,S);return m.length=D,m},fT}();t({target:"Array",stat:!0,forced:!Tx()(function(t){Array.from(t)})},{from:e})}();var vT,gT={};!function(){if(vT)return gT;vT=1;var t=ND(),e=qC().includes,r=qE(),n=yA();t({target:"Array",proto:!0,forced:r(function(){return!Array(1).includes()})},{includes:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}}),n("includes")}();var yT,mT={};!function(){if(yT)return mT;yT=1;var t=ND(),e=Hw(),r=Uw(),n=Ww(),o=hO(),i=e([].join);t({target:"Array",proto:!0,forced:r!==Object||!o("join",",")},{join:function(t){return i(n(this),void 0===t?",":t)}})}();var bT,ET={};!function(){if(bT)return ET;bT=1;var t=ND(),e=pO().map;t({target:"Array",proto:!0,forced:!_D()("map")},{map:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}})}();var wT,ST,CT,DT,OT,AT,xT,TT={};function NT(){if(ST)return wT;ST=1;var t=Kw(),e=$w(),r=_S()("match");return wT=function(n){var o;return t(n)&&(void 0!==(o=n[r])?!!o:"RegExp"===e(n))}}function kT(){if(DT)return CT;DT=1;var t=NT(),e=TypeError;return CT=function(r){if(t(r))throw new e("The method doesn't accept regular expressions");return r}}function PT(){if(AT)return OT;AT=1;var t=_S()("match");return OT=function(e){var r=/./;try{"/./"[e](r)}catch(n){try{return r[t]=!1,"/./"[e](r)}catch(t){}}return!1}}!function(){if(xT)return TT;xT=1;var t=ND(),e=Hw(),r=kT(),n=Gw(),o=IA(),i=PT(),u=e("".indexOf);t({target:"String",proto:!0,forced:!i("includes")},{includes:function(t){return!!~u(o(n(this)),o(r(t)),arguments.length>1?arguments[1]:void 0)}})}();var BT,IT,FT,RT,LT,_T,jT,MT={};function zT(){return IT?BT:(IT=1,BT="\t\n\v\f\r                 \u2028\u2029\ufeff")}!function(){if(jT)return MT;jT=1;var t=ND(),e=function(){if(RT)return FT;RT=1;var t=Hw(),e=Gw(),r=IA(),n=zT(),o=t("".replace),i=RegExp("^["+n+"]+"),u=RegExp("(^|[^"+n+"])["+n+"]+$"),a=function(t){return function(n){var a=r(e(n));return 1&t&&(a=o(a,i,"")),2&t&&(a=o(a,u,"$1")),a}};return FT={start:a(1),end:a(2),trim:a(3)}}().trim,r=function(){if(_T)return LT;_T=1;var t=yC().PROPER,e=qE(),r=zT();return LT=function(n){return e(function(){return!!r[n]()||"​…᠎"!=="​…᠎"[n]()||t&&r[n].name!==n})}}();t({target:"String",proto:!0,forced:r("trim")},{trim:function(){return e(this)}})}();var HT,$T,UT,VT,GT,WT,qT,KT,YT,XT,JT,ZT,QT,tN={};function eN(){if($T)return HT;$T=1;var t=Hw(),e=Gw(),r=IA(),n=/"/g,o=t("".replace);return HT=function(t,i,u,a){var s=r(e(t)),c="<"+i;return""!==u&&(c+=" "+u+'="'+o(r(a),n,"&quot;")+'"'),c+">"+s+"</"+i+">"}}function rN(){if(VT)return UT;VT=1;var t=qE();return UT=function(e){return t(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})}}function nN(){if(qT)return WT;qT=1;var t=CC(),e=QS();return WT=function(r,n,o){return o.get&&t(o.get,n,{getter:!0}),o.set&&t(o.set,n,{setter:!0}),e.f(r,n,o)}}function oN(){if(YT)return KT;YT=1;var t=Yw(),e=nN(),r=_S(),n=KE(),o=r("species");return KT=function(r){var i=t(r);n&&i&&!i[o]&&e(i,o,{configurable:!0,get:function(){return this}})}}!function(){if(GT)return tN;GT=1;var t=ND(),e=eN();t({target:"String",proto:!0,forced:rN()("anchor")},{anchor:function(t){return e(this,"a","name",t)}})}(),QT||(QT=1,ZT||(ZT=1,kx()("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},function(){if(JT)return XT;JT=1;var t=gA(),e=nN(),r=HA(),n=dO(),o=xx(),i=Vw(),u=Ax(),a=DA(),s=OA(),c=oN(),l=KE(),f=wx().fastKey,d=SC(),p=d.set,h=d.getterFor;return XT={getConstructor:function(a,s,c,d){var v=a(function(e,r){o(e,g),p(e,{type:s,index:t(null),first:null,last:null,size:0}),l||(e.size=0),i(r)||u(r,e[d],{that:e,AS_ENTRIES:c})}),g=v.prototype,y=h(s),m=function(t,e,r){var n,o,i=y(t),u=b(t,e);return u?u.value=r:(i.last=u={index:o=f(e,!0),key:e,value:r,previous:n=i.last,next:null,removed:!1},i.first||(i.first=u),n&&(n.next=u),l?i.size++:t.size++,"F"!==o&&(i.index[o]=u)),t},b=function(t,e){var r,n=y(t),o=f(e);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key===e)return r};return r(g,{clear:function(){for(var e=y(this),r=e.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=null),r=r.next;e.first=e.last=null,e.index=t(null),l?e.size=0:this.size=0},delete:function(t){var e=this,r=y(e),n=b(e,t);if(n){var o=n.next,i=n.previous;delete r.index[n.index],n.removed=!0,i&&(i.next=o),o&&(o.previous=i),r.first===n&&(r.first=o),r.last===n&&(r.last=i),l?r.size--:e.size--}return!!n},forEach:function(t){for(var e,r=y(this),o=n(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:r.first;)for(o(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!b(this,t)}}),r(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,r){var n=e+" Iterator",o=h(e),i=h(n);a(t,e,function(t,e){p(this,{type:n,target:t,state:o(t),kind:e,last:null})},function(){for(var t=i(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?s("keys"===e?r.key:"values"===e?r.value:[r.key,r.value],!1):(t.target=null,s(void 0,!0))},r?"entries":"values",!r,!0),c(e)}},XT}())));var iN,uN,aN,sN,cN,lN,fN,dN,pN,hN,vN,gN=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]),yN={};function mN(){if(uN)return iN;uN=1;var t=ZS();return iN=function(){var e=t(this),r="";return e.hasIndices&&(r+="d"),e.global&&(r+="g"),e.ignoreCase&&(r+="i"),e.multiline&&(r+="m"),e.dotAll&&(r+="s"),e.unicode&&(r+="u"),e.unicodeSets&&(r+="v"),e.sticky&&(r+="y"),r}}function bN(){if(sN)return aN;sN=1;var t=qE(),e=_E().RegExp,r=t(function(){var t=e("a","y");return t.lastIndex=2,null!==t.exec("abcd")}),n=r||t(function(){return!e("a","y").sticky}),o=r||t(function(){var t=e("^r","gy");return t.lastIndex=2,null!==t.exec("str")});return aN={BROKEN_CARET:o,MISSED_STICKY:n,UNSUPPORTED_Y:r}}function EN(){if(lN)return cN;lN=1;var t=qE(),e=_E().RegExp;return cN=t(function(){var t=e(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})}function wN(){if(dN)return fN;dN=1;var t=qE(),e=_E().RegExp;return fN=t(function(){var t=e("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})}function SN(){if(hN)return pN;hN=1;var t,e,r=XE(),n=Hw(),o=IA(),i=mN(),u=bN(),a=IS(),s=gA(),c=SC().get,l=EN(),f=wN(),d=a("native-string-replace",String.prototype.replace),p=RegExp.prototype.exec,h=p,v=n("".charAt),g=n("".indexOf),y=n("".replace),m=n("".slice),b=(e=/b*/g,r(p,t=/a/,"a"),r(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,n,u,a,l,f,S,C=this,D=c(C),O=o(t),A=D.raw;if(A)return A.lastIndex=C.lastIndex,e=r(h,A,O),C.lastIndex=A.lastIndex,e;var x=D.groups,T=E&&C.sticky,N=r(i,C),k=C.source,P=0,B=O;if(T&&(N=y(N,"y",""),-1===g(N,"g")&&(N+="g"),B=m(O,C.lastIndex),C.lastIndex>0&&(!C.multiline||C.multiline&&"\n"!==v(O,C.lastIndex-1))&&(k="(?: "+k+")",B=" "+B,P++),n=new RegExp("^(?:"+k+")",N)),w&&(n=new RegExp("^"+k+"$(?!\\s)",N)),b&&(u=C.lastIndex),a=r(p,T?n:C,B),T?a?(a.input=m(a.input,P),a[0]=m(a[0],P),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&&r(d,a[0],n,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}),pN=h}function CN(){if(vN)return yN;vN=1;var t=ND(),e=SN();return t({target:"RegExp",proto:!0,forced:/./.exec!==e},{exec:e}),yN}CN();var DN,ON,AN,xN,TN,NN,kN,PN,BN,IN,FN,RN={};function LN(){if(ON)return DN;ON=1,CN();var t=XE(),e=DC(),r=SN(),n=qE(),o=_S(),i=tC(),u=o("species"),a=RegExp.prototype;return DN=function(s,c,l,f){var d=o(s),p=!n(function(){var t={};return t[d]=function(){return 7},7!==""[s](t)}),h=p&&!n(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,n,o,i,u){var s=n.exec;return s===r||s===a.exec?p&&!u?{done:!0,value:t(v,n,o,i)}:{done:!0,value:t(e,o,n,i)}:{done:!1}});e(String.prototype,s,g[0]),e(a,d,g[1])}f&&i(a[d],"sham",!0)},DN}function _N(){if(NN)return TN;NN=1;var t=ZS(),e=function(){if(xN)return AN;xN=1;var t=RD(),e=rS(),r=TypeError;return AN=function(n){if(t(n))return n;throw new r(e(n)+" is not a constructor")}}(),r=Vw(),n=_S()("species");return TN=function(o,i){var u,a=t(o).constructor;return void 0===a||r(u=t(a)[n])?i:e(u)}}function jN(){if(PN)return kN;PN=1;var t=FA().charAt;return kN=function(e,r,n){return r+(n?t(e,r).length:1)}}function MN(){if(IN)return BN;IN=1;var t=XE(),e=ZS(),r=qw(),n=$w(),o=SN(),i=TypeError;return BN=function(u,a){var s=u.exec;if(r(s)){var c=t(s,u,a);return null!==c&&e(c),c}if("RegExp"===n(u))return t(o,u,a);throw new i("RegExp#exec called on incompatible receiver")}}!function(){if(FN)return RN;FN=1;var t=XE(),e=Hw(),r=LN(),n=ZS(),o=Kw(),i=Gw(),u=_N(),a=jN(),s=GC(),c=IA(),l=oS(),f=MN(),d=bN(),p=qE(),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 r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[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;r("split",function(e,r,d){var p="0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t(r,this,e,n)}:r;return[function(r,n){var u=i(this),a=o(r)?l(r,e):void 0;return a?t(a,r,u,n):t(p,c(u),r,n)},function(t,e){var o=n(this),i=c(t);if(!b){var l=d(p,o,i,e,p!==r);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 zN,HN,$N,UN,VN={};!function(){if($N)return VN;$N=1;var t=ND(),e=function(){if(HN)return zN;HN=1;var t=kD(),e=WC(),r=PD(),n=dO(),o=function(i,u,a,s,c,l,f,d){for(var p,h,v=c,g=0,y=!!f&&n(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):(r(v+1),i[v]=p),v++),g++;return v};return zN=o}(),r=nS(),n=FS(),o=WC(),i=LD();t({target:"Array",proto:!0},{flatMap:function(t){var u,a=n(this),s=o(a);return r(t),(u=i(a,0)).length=e(u,a,a,s,0,1,t,arguments.length>1?arguments[1]:void 0),u}})}(),UN||(UN=1,yA()("flatMap"));var GN,WN={};!function(){if(GN)return WN;GN=1;var t=ND(),e=eN();t({target:"String",proto:!0,forced:rN()("bold")},{bold:function(){return e(this,"b","","")}})}();var qN,KN={};!function(){if(qN)return KN;qN=1;var t=ND(),e=eN();t({target:"String",proto:!0,forced:rN()("italics")},{italics:function(){return e(this,"i","","")}})}();var YN,XN={};!function(){if(YN)return XN;YN=1;var t=ND(),e=eN();t({target:"String",proto:!0,forced:rN()("sub")},{sub:function(){return e(this,"sub","","")}})}();var JN,ZN={};!function(){if(JN)return ZN;JN=1;var t=ND(),e=eN();t({target:"String",proto:!0,forced:rN()("sup")},{sup:function(){return e(this,"sup","","")}})}();var QN,tk={};!function(){if(QN)return tk;QN=1;var t=ND(),e=pO().find,r=yA(),n="find",o=!0;n in[]&&Array(1)[n](function(){o=!1}),t({target:"Array",proto:!0,forced:o},{find:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}}),r(n)}();var ek,rk,nk={};rk||(rk=1,function(){if(ek)return nk;ek=1;var t=ND(),e=_E();t({global:!0,forced:e.globalThis!==e},{globalThis:e})}());const ok=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];var ik,uk,ak,sk,ck,lk,fk,dk,pk,hk,vk,gk,yk,mk,bk,Ek,wk,Sk,Ck,Dk,Ok,Ak,xk,Tk,Nk,kk,Pk,Bk,Ik,Fk,Rk,Lk,_k={};function jk(){if(uk)return ik;uk=1;var t=_E(),e=Jw(),r=$w(),n=function(t){return e.slice(0,t.length)===t};return ik=n("Bun/")?"BUN":n("Cloudflare-Workers")?"CLOUDFLARE":n("Deno/")?"DENO":n("Node.js/")?"NODE":t.Bun&&"string"==typeof Bun.version?"BUN":t.Deno&&"object"==typeof Deno.version?"DENO":"process"===r(t.process)?"NODE":t.window&&t.document?"BROWSER":"REST"}function Mk(){if(sk)return ak;sk=1;var t=jk();return ak="NODE"===t}function zk(){if(dk)return fk;dk=1;var t=YE(),e=Function.prototype,r=e.apply,n=e.call;return fk="object"==typeof Reflect&&Reflect.apply||(t?n.bind(r):function(){return n.apply(r,arguments)}),fk}function Hk(){if(gk)return vk;gk=1;var t=Jw();return vk=/(?:ipad|iphone|ipod).*applewebkit/i.test(t)}function $k(){if(mk)return yk;mk=1;var t,e,r,n,o=_E(),i=zk(),u=dO(),a=qw(),s=RS(),c=qE(),l=vA(),f=Ex(),d=zS(),p=function(){if(hk)return pk;hk=1;var t=TypeError;return pk=function(e,r){if(e<r)throw new t("Not enough arguments");return e}}(),h=Hk(),v=Mk(),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 r=a(t)?t:E(t),n=f(arguments,1);return D[++C]=function(){i(r,void 0,n)},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?(n=(r=new w).port2,r.port1.onmessage=T,e=u(n.postMessage,n)):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)}),yk={set:g,clear:y}}function Uk(){if(Sk)return wk;Sk=1;var t=function(){this.head=null,this.tail=null};return t.prototype={add:function(t){var e={item:t,next:null},r=this.tail;r?r.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}},wk=t}function Vk(){if(Tk)return xk;Tk=1;var t,e,r,n,o,i=_E(),u=function(){if(Ek)return bk;Ek=1;var t=_E(),e=KE(),r=Object.getOwnPropertyDescriptor;return bk=function(n){if(!e)return t[n];var o=r(t,n);return o&&o.value}}(),a=dO(),s=$k().set,c=Uk(),l=Hk(),f=function(){if(Dk)return Ck;Dk=1;var t=Jw();return Ck=/ipad|iphone|ipod/i.test(t)&&"undefined"!=typeof Pebble}(),d=function(){if(Ak)return Ok;Ak=1;var t=Jw();return Ok=/web0s(?!.*chrome)/i.test(t)}(),p=Mk(),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,r;for(p&&(e=g.domain)&&e.exit();r=b.get();)try{r()}catch(e){throw b.head&&t(),e}e&&e.enter()};l||p||d||!h||!v?!f&&y&&y.resolve?((n=y.resolve(void 0)).constructor=y,o=a(n.then,n),t=function(){o(E)}):p?t=function(){g.nextTick(E)}:(s=a(s,i),t=function(){s(E)}):(e=!0,r=v.createTextNode(""),new h(E).observe(r,{characterData:!0}),t=function(){r.data=e=!e}),m=function(e){b.head||t(),b.add(e)}}return xk=m}function Gk(){return Bk?Pk:(Bk=1,Pk=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}})}function Wk(){if(Fk)return Ik;Fk=1;var t=_E();return Ik=t.Promise}function qk(){if(Lk)return Rk;Lk=1;var t=_E(),e=Wk(),r=qw(),n=TD(),o=mC(),i=_S(),u=jk(),a=kS(),s=Zw(),c=e&&e.prototype,l=i("species"),f=!1,d=r(t.PromiseRejectionEvent),p=n("Promise",function(){var t=o(e),r=t!==String(e);if(!r&&66===s)return!0;if(a&&(!c.catch||!c.finally))return!0;if(!s||s<51||!/native code/.test(t)){var n=new e(function(t){t(1)}),i=function(t){t(function(){},function(){})};if((n.constructor={})[l]=i,!(f=n.then(function(){})instanceof i))return!0}return!(r||"BROWSER"!==u&&"DENO"!==u||d)});return Rk={CONSTRUCTOR:p,REJECTION_EVENT:d,SUBCLASSING:f}}var Kk,Yk,Xk={};function Jk(){if(Kk)return Xk;Kk=1;var t=nS(),e=TypeError,r=function(r){var n,o;this.promise=new r(function(t,r){if(void 0!==n||void 0!==o)throw new e("Bad Promise constructor");n=t,o=r}),this.resolve=t(n),this.reject=t(o)};return Xk.f=function(t){return new r(t)},Xk}var Zk,Qk,tP,eP={};function rP(){if(Qk)return Zk;Qk=1;var t=Wk(),e=Tx(),r=qk().CONSTRUCTOR;return Zk=r||!e(function(e){t.all(e).then(void 0,function(){})})}var nP,oP,iP,uP,aP,sP,cP,lP={},fP={},dP={},pP={};cP||(cP=1,function(){if(Yk)return _k;Yk=1;var t,e,r,n,o=ND(),i=kS(),u=Mk(),a=_E(),s=function(){if(lk)return ck;lk=1;var t=_E();return ck=t}(),c=XE(),l=DC(),f=CA(),d=wA(),p=oN(),h=nS(),v=qw(),g=Kw(),y=xx(),m=_N(),b=$k().set,E=Vk(),w=(kk||(kk=1,Nk=function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}}),Nk),S=Gk(),C=Uk(),D=SC(),O=Wk(),A=qk(),x=Jk(),T="Promise",N=A.CONSTRUCTOR,k=A.REJECTION_EVENT,P=A.SUBCLASSING,B=D.getterFor(T),I=D.set,F=O&&O.prototype,R=O,L=F,_=a.TypeError,j=a.document,M=a.process,z=x.f,H=z,$=!!(j&&j.createEvent&&a.dispatchEvent),U="unhandledrejection",V=function(t){var e;return!(!g(t)||!v(e=t.then))&&e},G=function(t,e){var r,n,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?r=i:(f&&f.enter(),r=a(i),f&&(f.exit(),o=!0)),r===t.promise?l(new _("Promise-chain cycle")):(n=V(r))?c(n,r,s,l):s(r)):l(i)}catch(t){f&&!o&&f.exit(),l(t)}},W=function(t,e){t.notified||(t.notified=!0,E(function(){for(var r,n=t.reactions;r=n.get();)G(r,t);t.notified=!1,e&&!t.rejection&&K(t)}))},q=function(t,e,r){var n,o;$?((n=j.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),a.dispatchEvent(n)):n={promise:e,reason:r},!k&&(o=a["on"+t])?o(n):t===U&&w("Unhandled promise rejection",r)},K=function(t){c(b,a,function(){var e,r=t.facade,n=t.value;if(Y(t)&&(e=S(function(){u?M.emit("unhandledRejection",n,r):q(U,r,n)}),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,r){return function(n){t(e,n,r)}},Z=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,W(t,!0))},Q=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw new _("Promise can't be resolved itself");var n=V(e);n?E(function(){var r={done:!1};try{c(n,e,J(Q,r,t),J(Z,r,t))}catch(e){Z(r,e,t)}}):(t.value=e,t.state=1,W(t,!1))}catch(e){Z({done:!1},e,t)}}};if(N&&(L=(R=function(e){y(this,L),h(e),c(t,this);var r=B(this);try{e(J(Q,r),J(Z,r))}catch(t){Z(r,t)}}).prototype,(t=function(t){I(this,{type:T,done:!1,notified:!1,parent:!1,reactions:new C,rejection:!1,state:0,value:null})}).prototype=l(L,"then",function(t,e){var r=B(this),n=z(m(this,R));return r.parent=!0,n.ok=!v(t)||t,n.fail=v(e)&&e,n.domain=u?M.domain:void 0,0===r.state?r.reactions.add(n):E(function(){G(n,r)}),n.promise}),e=function(){var e=new t,r=B(e);this.promise=e,this.resolve=J(Q,r),this.reject=J(Z,r)},x.f=z=function(t){return t===R||t===r?new e(t):H(t)},!i&&v(O)&&F!==Object.prototype)){n=F.then,P||l(F,"then",function(t,e){var r=this;return new R(function(t,e){c(n,r,t,e)}).then(t,e)},{unsafe:!0});try{delete F.constructor}catch(t){}f&&f(F,L)}o({global:!0,constructor:!0,wrap:!0,forced:N},{Promise:R}),r=s.Promise,d(R,T,!1,!0),p(T)}(),function(){if(tP)return eP;tP=1;var t=ND(),e=XE(),r=nS(),n=Jk(),o=Gk(),i=Ax();t({target:"Promise",stat:!0,forced:rP()},{all:function(t){var u=this,a=n.f(u),s=a.resolve,c=a.reject,l=o(function(){var n=r(u.resolve),o=[],a=0,l=1;i(t,function(t){var r=a++,i=!1;l++,e(n,u,t).then(function(t){i||(i=!0,o[r]=t,--l||s(o))},c)}),--l||s(o)});return l.error&&c(l.value),a.promise}})}(),function(){if(nP)return lP;nP=1;var t=ND(),e=kS(),r=qk().CONSTRUCTOR,n=Wk(),o=Yw(),i=qw(),u=DC(),a=n&&n.prototype;if(t({target:"Promise",proto:!0,forced:r,real:!0},{catch:function(t){return this.then(void 0,t)}}),!e&&i(n)){var s=o("Promise").prototype.catch;a.catch!==s&&u(a,"catch",s,{unsafe:!0})}}(),function(){if(oP)return fP;oP=1;var t=ND(),e=XE(),r=nS(),n=Jk(),o=Gk(),i=Ax();t({target:"Promise",stat:!0,forced:rP()},{race:function(t){var u=this,a=n.f(u),s=a.reject,c=o(function(){var n=r(u.resolve);i(t,function(t){e(n,u,t).then(a.resolve,s)})});return c.error&&s(c.value),a.promise}})}(),function(){if(iP)return dP;iP=1;var t=ND(),e=Jk();t({target:"Promise",stat:!0,forced:qk().CONSTRUCTOR},{reject:function(t){var r=e.f(this);return(0,r.reject)(t),r.promise}})}(),function(){if(sP)return pP;sP=1;var t=ND(),e=Yw(),r=kS(),n=Wk(),o=qk().CONSTRUCTOR,i=function(){if(aP)return uP;aP=1;var t=ZS(),e=Kw(),r=Jk();return uP=function(n,o){if(t(n),e(o)&&o.constructor===n)return o;var i=r.f(n);return(0,i.resolve)(o),i.promise}}(),u=e("Promise"),a=r&&!o;t({target:"Promise",stat:!0,forced:r||o},{resolve:function(t){return i(a&&this===u?n:this,t)}})}());var hP,vP,gP,yP,mP,bP={};function EP(){if(yP)return gP;yP=1;var t=XE(),e=RS(),r=Xw(),n=function(){if(vP)return hP;vP=1;var t=_E(),e=qE(),r=t.RegExp,n=!e(function(){var t=!0;try{r(".","d")}catch(e){t=!1}var e={},n="",o=t?"dgimsy":"gimsy",i=function(t,r){Object.defineProperty(e,t,{get:function(){return n+=r,!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(r.prototype,"flags").get.call(e)!==o||n!==o});return hP={correct:n}}(),o=mN(),i=RegExp.prototype;return gP=n.correct?function(t){return t.flags}:function(u){return n.correct||!r(i,u)||e(u,"flags")?u.flags:t(o,u)}}!function(){if(mP)return bP;mP=1;var t=yC().PROPER,e=DC(),r=ZS(),n=IA(),o=qE(),i=EP(),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=r(this);return"/"+n(t.source)+"/"+n(i(t))},{unsafe:!0})}();var wP,SP,CP,DP={};function OP(t){Promise.resolve().then(t)}!function(){if(CP)return DP;CP=1;var t=zk(),e=XE(),r=Hw(),n=LN(),o=qE(),i=ZS(),u=qw(),a=Kw(),s=UC(),c=GC(),l=IA(),f=Gw(),d=jN(),p=oS(),h=function(){if(SP)return wP;SP=1;var t=Hw(),e=FS(),r=Math.floor,n=t("".charAt),o=t("".replace),i=t("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,a=/\$([$&'`]|\d{1,2})/g;return wP=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(n(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=r(a/10);return 0===d?e:d<=h?void 0===l[d-1]?n(o,1):l[d-1]+n(o,1):e}u=l[a-1]}return void 0===u?"":u})},wP}(),v=EP(),g=MN(),y=_S()("replace"),m=Math.max,b=Math.min,E=r([].concat),w=r([].push),S=r("".indexOf),C=r("".slice),D=function(t){return void 0===t?t:String(t)},O="$0"==="a".replace(/./,"$0"),A=!!/./[y]&&""===/./[y]("a","$0");n("replace",function(r,n,o){var O=A?"$":"$0";return[function(t,r){var o=f(this),i=a(t)?p(t,y):void 0;return i?e(i,t,o,r):e(n,l(o),t,r)},function(e,r){var a=i(this),f=l(e);if("string"==typeof r&&-1===S(r,O)&&-1===S(r,"$<")){var p=o(n,a,f,r);if(p.done)return p.value}var y=u(r);y||(r=l(r));var A,x=l(v(a)),T=-1!==S(x,"g");T&&(A=-1!==S(x,"u"),a.lastIndex=0);for(var N,k=[];null!==(N=g(a,f))&&(w(k,N),T);)""===l(N[0])&&(a.lastIndex=d(f,c(a.lastIndex),A));for(var P="",B=0,I=0;I<k.length;I++){for(var F,R=l((N=k[I])[0]),L=m(b(s(N.index),f.length),0),_=[],j=1;j<N.length;j++)w(_,D(N[j]));var M=N.groups;if(y){var z=E([R],_,L,f);void 0!==M&&w(z,M),F=l(t(r,void 0,z))}else F=h(R,f,L,_,M,r);L>=B&&(P+=C(f,B,L)+F,B=L+R.length)}return P+C(f,B)}]},!!o(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})||!O||A)}();var AP,xP=function(t){return Object.prototype.toString.call(t)};Eg&&(og.fn.css=Eg),Ag&&(og.fn.append=Ag),ig&&(og.fn.addClass=ig),ug&&(og.fn.removeClass=ug),ag&&(og.fn.hasClass=ag),pg&&(og.fn.on=pg),_g&&(og.fn.focus=_g),sg&&(og.fn.attr=sg),cg&&(og.fn.removeAttr=cg),mg&&(og.fn.hide=mg),bg&&(og.fn.show=bg),yg&&(og.fn.offset=yg),vg&&(og.fn.width=vg),gg&&(og.fn.height=gg),Tg&&(og.fn.parent=Tg),Ng&&(og.fn.parents=Ng),Og&&(og.fn.is=Og),fg&&(og.fn.dataset=fg),dg&&(og.fn.val=dg),Dg&&(og.fn.text=Dg),Cg&&(og.fn.html=Cg),Pg&&(og.fn.children=Pg),Bg&&(og.fn.remove=Bg),kg&&(og.fn.find=kg),wg&&(og.fn.each=wg),Ig&&(og.fn.empty=Ig),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"}(AP||(AP={}));var TP=/\[object HTML([A-Z][a-z]*)*Element\]/,NP=function(t){return TP.test(xP(t))},kP=function(t){return null!=t&&"number"==typeof t.nodeType},PP=function(t){return kP(t)&&t.nodeType===AP.COMMENT_NODE},BP=function(t){return kP(t)&&t.nodeType===AP.ELEMENT_NODE},IP=function(t){return"[object Selection]"===xP(t)},FP=function(t){return kP(t)&&t.nodeType===AP.TEXT_NODE},RP=function(t){var e,r,n;return null!==(e=window&&window.document.getElementById(t))&&void 0!==e?e:window&&(null===(n=null===(r=window.document.activeElement)||void 0===r?void 0:r.shadowRoot)||void 0===n?void 0:n.getElementById(t))||null},LP=function(t,e,r){for(var n=t.childNodes,o=n[e],i=e,u=!1,a=!1;(PP(o)||BP(o)&&0===o.childNodes.length||BP(o)&&"false"===o.getAttribute("contenteditable"))&&(!u||!a);)i>=n.length?(u=!0,i=e-1,r="backward"):i<0?(a=!0,i=e+1,r="forward"):(o=n[i],e=i,i+="forward"===r?1:-1);return[o,e]},_P=function(t,e,r){return TO(LP(t,e,r),1)[0]},jP=function(t){var e,r,n="";if(FP(t)&&t.nodeValue)return t.nodeValue;if(BP(t)){try{for(var o=xO(Array.from(t.childNodes)),i=o.next();!i.done;i=o.next()){var u=i.value;n+=jP(u)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}var a=getComputedStyle(t).getPropertyValue("display");"block"!==a&&"list"!==a&&"table-row"!==a&&"BR"!==t.tagName||(n+="\n")}return n};function MP(t,e){if(!NP(t)||"true"!==t.dataset.slateVoid)for(var r=t.childNodes,n=r.length;n-=1;){var o=r[n],i=o.nodeType;FP(o)?e(o,t):[AP.ELEMENT_NODE,AP.DOCUMENT_NODE,AP.DOCUMENT_FRAGMENT_NODE].includes(i)&&MP(o,e)}}function zP(t){if(0===t.length)return"";var e=t[0];return e.nodeType!==AP.ELEMENT_NODE?"":e.tagName.toLowerCase()}var HP,$P,UP,VP={};!function(){if(UP)return VP;UP=1;var t=KE(),e=_E(),r=Hw(),n=TD(),o=Nx(),i=tC(),u=gA(),a=XC().f,s=Xw(),c=NT(),l=IA(),f=EP(),d=bN(),p=function(){if($P)return HP;$P=1;var t=QS().f;return HP=function(e,r,n){n in e||t(e,n,{configurable:!0,get:function(){return r[n]},set:function(t){r[n]=t}})}}(),h=DC(),v=qE(),g=RS(),y=SC().enforce,m=oN(),b=_S(),E=EN(),w=wN(),S=b("match"),C=e.RegExp,D=C.prototype,O=e.SyntaxError,A=r(D.exec),x=r("".charAt),T=r("".replace),N=r("".indexOf),k=r("".slice),P=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,B=/a/g,I=/a/g,F=new C(B)!==B,R=d.MISSED_STICKY,L=d.UNSUPPORTED_Y;if(n("RegExp",t&&(!F||R||E||w||v(function(){return I[S]=!1,C(B)!==B||C(I)===I||"/a/i"!==String(C(B,"i"))})))){for(var _=function(t,e){var r,n,a,d,p,h,v=s(D,this),m=c(t),b=void 0===e,S=[],I=t;if(!v&&m&&b&&t.constructor===_)return t;if((m||s(D,t))&&(t=t.source,b&&(e=f(I))),t=void 0===t?"":l(t),e=void 0===e?"":l(e),I=t,E&&"dotAll"in B&&(n=!!e&&N(e,"s")>-1)&&(e=T(e,/s/g,"")),r=e,R&&"sticky"in B&&(a=!!e&&N(e,"y")>-1)&&L&&(e=T(e,/y/g,"")),w&&(d=function(t){for(var e,r=t.length,n=0,o="",i=[],a=u(null),s=!1,c=!1,l=0,f="";n<=r;n++){if("\\"===(e=x(t,n)))e+=x(t,++n);else if("]"===e)s=!1;else if(!s)switch(!0){case"["===e:s=!0;break;case"("===e:if(o+=e,"?:"===k(t,n+1,n+3))continue;A(P,k(t,n+1))&&(n+=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,_),(n||a||S.length)&&(h=y(p),n&&(h.dotAll=!0,h.raw=_(function(t){for(var e,r=t.length,n=0,o="",i=!1;n<=r;n++)"\\"!==(e=x(t,n))?i||"."!==e?("["===e?i=!0:"]"===e&&(i=!1),o+=e):o+="[\\s\\S]":o+=e+x(t,++n);return o}(t),r)),a&&(h.sticky=!0),S.length&&(h.groups=S)),t!==I)try{i(p,"source",""===I?"(?:)":I)}catch(t){}return p},j=a(C),M=0;j.length>M;)p(_,C,j[M++]);D.constructor=_,_.prototype=D,h(e,"RegExp",_,{constructor:!0})}m("RegExp")}();var GP=new RegExp(String.fromCharCode(160),"g");function WP(t){return t.replace(GP," ")}var qP=["span","b","strong","i","em","s","strike","u","font","sub","sup"],KP=[];var YP=[];var XP={};function JP(t,e){var r=t.length;if(r){var n=t[r-1];if(wv.isText(n)){var o=Object.keys(n);if(1===o.length&&"text"===o[0])return n.text+=e,!0}}return!1}function ZP(t,e,r){return{type:"paragraph",children:[{text:og(t).text().replace(/\s+/gm," ")}]}}function QP(t,e){var r=function(t,e){var r=[];if(null!=t.attr("data-w-e-is-void"))return r;var n=t[0].childNodes;return 1===n.length&&"BR"===n[0].nodeName?(r.push({text:""}),r):(n.forEach(function(t){if(BP(t)){if("BR"===t.nodeName)return void(JP(r,"\n")||r.push({text:"\n"}));var n=eB(og(t),e);Array.isArray(n)?n.forEach(function(t){return r.push(t)}):r.push(n)}else if(FP(t)){var o=t.textContent||"";if(""===o.trim()&&o.indexOf("\n")>=0)return;o&&(o=WP(o),JP(r,o)||r.push({text:o}))}}),r)}(t,e),n=function(t){for(var e in XP)if(t[0].matches(e))return XP[e];return ZP}(t),o=n(t[0],r,e);return Array.isArray(o)||(o=[o]),o.forEach(function(n){Kh.isVoid(e,n)||(0===r.length&&(n.children=[{text:t.text().replace(/\s+/gm," ")}]),YP.forEach(function(r){n=r(t[0],n,e)}))}),o}function tB(t,e){0===t.parents("pre").length&&(t[0].innerHTML=t[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,"\n"));var r=t[0].textContent||"";r=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,'"')}(r);var n={text:r=WP(r)};return YP.forEach(function(r){n=r(t[0],n,e)}),n}function eB(t,e){KP.forEach(function(e){var r=e.selector,n=e.preParseHtml;t[0].matches(r)&&(t=og(n(t[0])))});var r=zP(t);if("span"===r){if(t.attr("data-w-e-type"))return QP(t,e);if(t[0].childNodes.length>1){var n=t[0].childNodes,o=function(t,e){var r={text:""};return YP.forEach(function(n){r=n(t[0],r,e)}),r}(og(t[0]),e),i=o;i.bold,i.italic,i.underline,i.through,i.sub,i.sup,i.code;var u=AO(i,["bold","italic","underline","through","sub","sup","code"]);return Array.from(n).flatMap(function(t){var r=function(t,e,r){var n=t[0];if(BP(n)){var o=eB(t,r);return Array.isArray(o)?o.map(function(t){return OO(OO({},e),t)}):[OO(OO({},e),o)]}if(PP(n))return null;var i=FP(n)?{text:n.textContent||""}:tB(t,r);return[OO(OO({},e),i)]}(og(t),u,e);return r||[]})}return 1===t[0].childNodes.length&&"span"===zP(og(t[0].childNodes[0]))?eB(og(t[0].childNodes[0]),e):tB(t,e)}if("code"===r)return"pre"===zP(t.parent())?QP(t,e):tB(t,e);if(qP.includes(r)){if(t[0].childNodes.length>0&&3!==t[0].childNodes[0].nodeType){var a=eB(og((n=t[0].childNodes)[0]),e),s=tB(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=AO(l,["text","bold","italic","underline","through","sub","sup","code"]);c=a.map(function(t){return OO(OO({},g),t)}),(f||d||p||h||v)&&(c=c.map(function(t){var e=OO({},t),r=t;return f&&!r.bold&&(e.bold=!0),d&&!r.italic&&(e.italic=!0),p&&!r.underline&&(e.underline=!0),h&&!r.through&&(e.through=!0),v&&!r.code&&(e.code=!0),e}))}else c=OO(OO({},a),s);return c}return tB(t,e)}return QP(t,e)}function rB(t,e,r){var n=og(r);return!!n.attr(e)||(n.attr(e,"true"),t.on(PO,function(){n.removeAttr(e)}),!1)}function nB(t,e){void 0===e&&(e="");var r=[];""===e&&(e="<p><br></p>"),0!==e.indexOf("<")&&(e=e.split(/\n/).map(function(t){return"<p>".concat(t,"</p>")}).join(""));var n=og("<div>".concat(e,"</div>"));return Array.from(n.children()).forEach(function(e){var n=eB(og(e),t);Array.isArray(n)?n.forEach(function(t){return r.push(t)}):r.push(n)}),r}function oB(t,e){return"w-e-element-".concat(t,"-").concat(e)}var iB=[];var uB={};function aB(t,e,r){var n=r.isInline(t)?"span":"div";return"<".concat(n,">").concat(e,"</").concat(n,">")}var sB,cB,lB,fB={};!function(){if(lB)return fB;lB=1;var t=ND(),e=XE(),r=Kw(),n=ZS(),o=function(){if(cB)return sB;cB=1;var t=RS();return sB=function(e){return void 0!==e&&(t(e,"value")||t(e,"writable"))}}(),i=$S(),u=bA();t({target:"Reflect",stat:!0},{get:function t(a,s){var c,l,f=arguments.length<3?a:arguments[2];return n(a)===f?a[s]:(c=i.f(a,s))?o(c)?c.value:void 0===c.get?void 0:e(c.get,f):r(l=u(a))?t(l,s,f):void 0}})}();var dB,pB={};!function(){if(dB)return pB;dB=1;var t,e=ND(),r=fO(),n=$S().f,o=GC(),i=IA(),u=kT(),a=Gw(),s=PT(),c=kS(),l=r("".slice),f=Math.min,d=s("endsWith");e({target:"String",proto:!0,forced:!(!c&&!d&&(t=n(String.prototype,"endsWith"),t&&!t.writable)||d)},{endsWith:function(t){var e=i(a(this));u(t);var r=arguments.length>1?arguments[1]:void 0,n=e.length,s=void 0===r?n:f(o(r),n),c=i(t);return l(e,s-c.length,s)===c}})}();var hB=0,vB=function(){this.id="".concat(hB++)},gB="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),yB="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),mB="undefined"!=typeof navigator&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent),bB="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),EB="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),wB="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent),SB=!EB&&!bB&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges,CB={getWindow:function(t){var e=rT.get(t);if(!e)throw new Error("Unable to find a host window element for this editor");return e},findKey:function(t,e){var r=eT.get(e);return r||(r=new vB,eT.set(e,r)),r},setNewKey:function(t){var e=new vB;eT.set(t,e)},findPath:function(t,e){for(var r=[],n=e;;){var o=Xx.get(n);if(null==o){if(Kh.isEditor(n))return r;break}var i=Yx.get(n);if(null==i)break;r.unshift(i),n=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=CB.toDOMNode(t,t),r=e.getRootNode();return(function(t){return"[object HTMLDocument]"===xP(t)}(r)||function(t){return"[object ShadowRoot]"===xP(t)}(r))&&null!=Reflect.get(r,"getSelection")?r:e.ownerDocument},getParentNode:function(t,e){return Xx.get(e)||null},getParentsNodes:function(t,e){for(var r=[],n=e;n!==t&&null!=n;){var o=CB.getParentNode(t,n);if(null==o)break;r.push(o),n=o}return r},getTopNode:function(t,e){var r=[CB.findPath(t,e)[0]];return tv.get(t,r)},toDOMNode:function(t,e){var r;if(Kh.isEditor(e))r=Jx.get(t);else{var n=CB.findKey(t,e);r=Qx.get(n)}if(!r)throw new Error("Cannot resolve a DOM node from Slate node: ".concat(JSON.stringify(e)));return r},hasDOMNode:function(t,e,r){void 0===r&&(r={});var n,o=r.editable,i=void 0!==o&&o,u=CB.toDOMNode(t,t);try{n=BP(e)?e:e.parentElement}catch(t){if(t instanceof Error&&!t.message.includes('Permission denied to access property "nodeType"'))throw t}return!!n&&(n.closest("[data-slate-editor]")===u&&(!i||n.isContentEditable||!!n.getAttribute("data-slate-zero-width"))||!!n.getAttribute("data-slate-string"))},toDOMRange:function(t,e){var r=e.anchor,n=e.focus,o=dv.isBackward(e),i=CB.toDOMPoint(t,r),u=dv.isCollapsed(e)?i:CB.toDOMPoint(t,n),a=CB.getWindow(t).document.createRange(),s=TO(o?u:i,2),c=s[0],l=s[1],f=TO(o?i:u,2),d=f[0],p=f[1],h=!!(BP(c)?c:c.parentElement).getAttribute("data-slate-zero-width"),v=!!(BP(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 r,n,o,i=TO(Kh.node(t,e.path),1)[0],u=CB.toDOMNode(t,i);Kh.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=xO(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){r={error:t}}finally{try{l&&!l.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.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 r=BP(e)?e:e.parentElement;r&&!r.hasAttribute("data-slate-node")&&(r=r.closest("[data-slate-node]"));var n=r?Zx.get(r):null;if(!n)throw new Error("Cannot resolve a Slate node from DOM node: ".concat(r));return n},findEventRange:function(t,e){"nativeEvent"in e&&(e=e.nativeEvent);var r=e.clientX,n=e.clientY,o=e.target;if(null==r||null==n)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(e));var i,u=CB.toSlateNode(t,e.target),a=CB.findPath(t,u);if(Kh.isVoid(t,u)){var s=o.getBoundingClientRect(),c=t.isInline(u)?r-s.left<s.left+s.width-r:n-s.top<s.top+s.height-n,l=Kh.point(t,a,{edge:c?"start":"end"}),f=c?Kh.before(t,l):Kh.after(t,l);if(f)return Kh.range(t,f)}var d=this.getWindow(t).document;if(d.caretRangeFromPoint)i=d.caretRangeFromPoint(r,n);else{var p=d.caretPositionFromPoint(r,n);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 CB.toSlateRange(t,i,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(t,e,r){var n,o,i,u,a,s=r.exactMatch,c=r.suppressThrow;if((IP(e)?e.anchorNode:e.startContainer)&&(IP(e)?(n=e.anchorNode,o=e.anchorOffset,i=e.focusNode,u=e.focusOffset,a=wB&&window.document.activeElement&&window.document.activeElement.shadowRoot?e.anchorNode===e.focusNode&&e.anchorOffset===e.focusOffset:e.isCollapsed):(n=e.startContainer,o=e.startOffset,i=e.endContainer,u=e.endOffset,a=e.collapsed)),null==n||null==i||null==o||null==u)throw new Error("Cannot resolve a Slate range from DOM range: ".concat(e));var l=CB.toSlatePoint(t,[n,o],{exactMatch:s,suppressThrow:c});if(!l)return null;var f=a?l:CB.toSlatePoint(t,[i,u],{exactMatch:s,suppressThrow:c});if(!f)return null;var d={anchor:l,focus:f};return dv.isExpanded(d)&&dv.isForward(d)&&BP(i)&&Kh.void(t,{at:d.focus,mode:"highest"})&&(d=Kh.unhangRange(t,d,{voids:!0})),d},toSlatePoint:function(t,e,r){var n,o=r.exactMatch,i=r.suppressThrow,u=TO(o?e:function(t){var e,r=TO(t,2),n=r[0],o=r[1];if(BP(n)&&n.childNodes.length){var i=o===n.childNodes.length,u=i?o-1:o;for(n=(e=TO(LP(n,u,i?"backward":"forward"),2))[0],i=(u=e[1])<o;BP(n)&&n.childNodes.length;){var a=i?n.childNodes.length-1:0;n=_P(n,a,i?"backward":"forward")}o=i&&null!=n.textContent?n.textContent.length:0}return[n,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=CB.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();NO(NO([],TO(Vg(y.querySelectorAll("[data-slate-zero-width]"))),!1),TO(Vg(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")||yB&&(null===(n=h.textContent)||void 0===n?void 0:n.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=CB.toSlateNode(t,l);return{path:CB.findPath(t,m),offset:f}},hasRange:function(t,e){var r=e.anchor,n=e.focus;return Kh.hasPath(t,r.path)&&Kh.hasPath(t,n.path)},getNodeType:function(t){return $h.isElement(t)?t.type:""},checkNodeType:function(t,e){return this.getNodeType(t)===e},getNodesStr:function(t){return t.map(function(t){return tv.string(t)}).join("")},getSelectedElems:function(t){var e,r,n=[],o=Kh.nodes(t,{universal:!0});try{for(var i=xO(o),u=i.next();!u.done;u=i.next()){var a=TO(u.value,1)[0];$h.isElement(a)&&n.push(a)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}return n},getSelectedNodeByType:function(t,e){var r=this,n=TO(Kh.nodes(t,{match:function(t){return r.checkNodeType(t,e)},universal:!0}),1),o=n[0];return null==o?null:o[0]},getSelectedTextNode:function(t){var e=TO(Kh.nodes(t,{match:function(t){return wv.isText(t)},universal:!0}),1),r=e[0];return null==r?null:r[0]},isNodeSelected:function(t,e){var r=TO(Kh.nodes(t,{match:function(t){return t===e},universal:!0}),1),n=r[0];return null!=n&&TO(n,1)[0]===e},isSelectionAtLineEnd:function(t,e){var r=t.selection;return!!r&&(Kh.isEnd(t,r.anchor,e)||Kh.isEnd(t,r.focus,e))},getTextarea:function(t){var e=Fx.get(t);if(null==e)throw new Error("Cannot find textarea instance by editor");return e},getToolbar:function(t){return _x.get(t)||null},getHoverbar:function(t){return Mx.get(t)||null},normalizeContent:function(t){t.children.forEach(function(e,r){t.normalizeNode([e,[r]])})},getLeftLengthOfMaxLength:function(t){var e=t.getConfig(),r=e.maxLength,n=e.onMaxLength;if("number"!=typeof r||r<=0)return 1/0;var o=r-t.getText().replace(/\r|\n|(\r\n)|(\n\r)/g,"").length;return o<=0&&n&&n(t),o},cleanExposedTexNodeInSelectionBlock:function(t){var e,r,n,o,i=CB.getTextarea(t).$textArea,u=null==i?void 0:i[0].childNodes;if(u)try{for(var a=xO(Array.from(u)),s=a.next();!s.done;s=a.next()){var c=s.value;if(!FP(c))break;c.remove()}}catch(t){e={error:t}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}var l=Kh.nodes(t,{match:function(e){return!(!$h.isElement(e)||t.isInline(e))},universal:!0});try{for(var f=xO(l),d=f.next();!d.done;d=f.next()){var p=d.value;if(null!=p){var h=p[0];MP(CB.toDOMNode(t,h),function(t,e){var r=og(e);r.attr("data-slate-string")||r.attr("data-slate-zero-width")||r.attr("data-w-e-reserve")||e.removeChild(t)})}}}catch(t){n={error:t}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(n)throw n.error}}},isLastNode:function(t,e){var r=t.children||[];return r[r.length-1]===e},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}},isSelectedVoidNode:function(t){var e,r,n=Kh.nodes(t,{match:function(e){return t.isVoid(e)}}),o=0;try{for(var i=xO(n),u=i.next();!u.done;u=i.next())u.value&&(o+=1)}catch(t){e={error:t}}finally{try{u&&!u.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}return o>0},isSelectedEmptyParagraph:function(t){var e=t.selection;if(null==e)return!1;if(dv.isExpanded(e))return!1;var r=CB.getSelectedNodeByType(t,"paragraph");if(null===r)return!1;var n=r.children;return 1===n.length&&(""===n[0].text||void 0)},isEmptyPath:function(t,e){var r=Kh.node(t,e);if(null==r)return!1;var n=TO(r,1)[0].children;return 1===n.length&&""===n[0].text}};function DB(t,e){return $h.isElement(t)?function(t,e){var r=t.type,n=void 0===r?"":r,o=t.children,i=void 0===o?[]:o,u=Kh.isVoid(e,t),a="";u||(a=i.map(function(t){return DB(t,e)}).join(""));var s=function(t){return uB[t]||aB}(n),c=s(t,a,e),l="";if(l="string"==typeof c?c:c.html||"",u||iB.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 r=t.text;if(null==r)throw new Error("Current node is not slate Text ".concat(JSON.stringify(t)));var n=r;n=function(t){return t.replace(/ {2}/g," &nbsp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/®/g,"&reg;").replace(/©/g,"&copy;").replace(/™/g,"&trade;")}(n);var o=CB.getParentsNodes(e,t).some(function(t){return"pre"===CB.getNodeType(t)});if(o||(n=n.replace(/\n\r|\r\n|\r|\n/g,"<br>")),o&&(n=n.replace(/&nbsp;/g," ")),""===n){var i=CB.getParentNode(null,t);if(!i||0!==i.children.length)return n;n="<br>"}return iB.forEach(function(e){return n=e(t,n)}),n}(t,e)}var OB=function(t,e){var r=(e.top+e.bottom)/2;return t.top<=r&&t.bottom>=r},AB=function(t,e,r){var n=CB.toDOMRange(t,e).getBoundingClientRect(),o=CB.toDOMRange(t,r).getBoundingClientRect();return OB(n,o)&&OB(o,n)},xB=function(t,e){var r,n,o=[];try{for(var i=xO(Kh.levels(t,{at:e})),u=i.next();!u.done;u=i.next()){var a=TO(u.value,2),s=a[0],c=a[1],l=CB.findKey(t,s);o.push([c,l])}}catch(t){r={error:t}}finally{try{u&&!u.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return o};function TB(t,e){t.isInline(e)?(t.insertNode(e),"link"===e.type&&t.insertFragment([{text:""}])):zv.insertNodes(t,e,{mode:"highest"})}var NB,kB,PB,BB,IB,FB,RB,LB,_B,jB,MB,zB,HB,$B,UB,VB,GB,WB,qB,KB,YB,XB,JB,ZB,QB,tI,eI,rI,nI,oI,iI,uI,aI,sI,cI,lI,fI,dI,pI,hI,vI=function(t){var e=t,r=e.onChange,n=e.insertText,o=e.apply,i=e.deleteBackward;return e.insertText=function(t){e.getConfig().readOnly||n(t)},e.apply=function(t){var r,n,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,NO([],TO(xB(e,t.path)),!1));break;case"insert_node":case"remove_node":f.push.apply(f,NO([],TO(xB(e,ov.parent(t.path))),!1));break;case"merge_node":var d=ov.previous(t.path);f.push.apply(f,NO([],TO(xB(e,d)),!1));break;case"move_node":var p=ov.common(ov.parent(t.path),ov.parent(t.newPath));f.push.apply(f,NO([],TO(xB(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,NO([],TO(xB(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,NO([],TO(xB(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=xO(f),v=h.next();!v.done;v=h.next()){var g=TO(v.value,2),y=g[0],m=g[1],b=TO(Kh.node(e,y),1)[0];eT.set(b,m),"type"in b&&(qx.has(b)&&qx.delete(b),Kx.has(b)&&Kx.delete(b))}}catch(t){r={error:t}}finally{try{v&&!v.done&&(n=h.return)&&n.call(h)}finally{if(r)throw r.error}}},e.deleteBackward=function(r){if("line"!==r)return i(r);if(t.selection&&dv.isCollapsed(t.selection)){var n=Kh.above(t,{match:function(e){return Kh.isBlock(t,e)},at:t.selection});if(n){var o=TO(n,2)[1],u=Kh.range(t,o,t.selection.anchor),a=function(t,e){var r=Kh.range(t,dv.end(e)),n=Array.from(Kh.positions(t,{at:e})),o=0,i=n.length,u=Math.floor(i/2);if(AB(t,Kh.range(t,n[o]),r))return Kh.range(t,n[o],r);if(n.length<2)return Kh.range(t,n[n.length-1],r);for(;u!==n.length&&u!==o;)AB(t,Kh.range(t,n[u]),r)?i=u:o=u,u=Math.floor((o+i)/2);return Kh.range(t,n[i],r)}(e,u);dv.isCollapsed(a)||zv.delete(t,{at:a})}}},e.onChange=function(){var t=e.selection;null!=t&&oT.set(e,t),e.emit("change"),r()},e.handleTab=function(){e.insertText(" ")},e.getHtml=function(){var t=e.children,r=void 0===t?[]:t,n=e.getConfig().skipCacheTypes,o=void 0===n?["list-item"]:n;return r.map(function(t){var r=CB.getNodeType(t);if(o.includes(r))return DB(t,e);var n=Kx.get(t);if(n)return n;var i=DB(t,e);return Kx.set(t,i),i}).join("")},e.getText=function(){var t=e.children;return(void 0===t?[]:t).map(function(t){return tv.string(t)}).join("\n")},e.getSelectionText=function(){var r=e.selection;return null==r?"":Kh.string(t,r)},e.getElemsByType=function(t,r){var n,o;void 0===r&&(r=!1);var i=[],u=Kh.nodes(e,{at:[],universal:!0});try{for(var a=xO(u),s=a.next();!s.done;s=a.next()){var c=TO(s.value,1)[0];if($h.isElement(c)&&(r?c.type.indexOf(t)>=0:c.type===t)){var l=CB.findKey(e,c),f=oB(c.type,l.id);i.push(OO(OO({},c),{id:f}))}}}catch(t){n={error:t}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}return i},e.getElemsByTypePrefix=function(t){return e.getElemsByType(t,!0)},e.isEmpty=function(){var t=e.children,r=void 0===t?[]:t;if(r.length>1)return!1;var n=r[0];if(null==n)return!0;if(!$h.isElement(n)||"paragraph"!==n.type)return!1;var o=n.children,i=void 0===o?[]:o;if(i.length>1)return!1;var u=i[0];return null==u||wv.isText(u)&&""===u.text},e.clear=function(){zv.delete(e,{at:{anchor:Kh.start(e,[]),focus:Kh.end(e,[])}}),0===e.children.length&&zv.insertNodes(e,[{type:"paragraph",children:[{text:""}]}])},e.getParentNode=function(t){return CB.getParentNode(e,t)},e.dangerouslyInsertHtml=function(t,r){if(void 0===t&&(t=""),void 0===r&&(r=!1),t){var n=document.createElement("div");n.innerHTML=t;var o=Array.from(n.childNodes);if(o=o.filter(function(t){var e=t.nodeName;return!!FP(t)||!!BP(t)&&!gN.has(e.toLowerCase())}),0!==o.length){var i=e.selection;if(null!=i){var u=null;CB.isSelectedEmptyParagraph(e)&&!r&&(u=[i.focus.path[0]]),n.setAttribute("hidden","true"),document.body.appendChild(n);var a=0;o.forEach(function(t,r){var n=t.nodeName,i=t.textContent,u=void 0===i?"":i;if(FP(t)){if(!u||!u.trim())return;e.insertNode({text:u})}else if("BR"!==n){var s=t,c=!1;if(qP.includes(n.toLowerCase()))c=!0;else for(var l in XP)if(s.matches(l)){c=!0;break}if(c){var f=eB(og(s),e);return Array.isArray(f)?(f.forEach(function(t){return TB(e,t)}),a+=1):(TB(e,f),a+=1),void(CB.isSelectedVoidNode(e)&&e.move(1))}var d=window.getComputedStyle(s).display;if(!CB.isSelectedEmptyParagraph(e)&&d.indexOf("inline")<0){if(r>=1)(function(t){return"matches"in t&&/^[ou]l$/i.test(t.tagName)&&!t.hasAttribute("data-w-e-type")})(o[r-1])&&e.insertBreak();e.insertBreak()}e.dangerouslyInsertHtml(s.innerHTML,!0)}else e.insertText("\n")}),a&&u&&CB.isEmptyPath(e,u)&&zv.removeNodes(e,{at:u}),n.remove()}}}},e.setHtml=function(t){void 0===t&&(t="");var r=e.isDisabled(),n=e.isFocused(),o=JSON.stringify(e.selection);e.enable(),e.focus(),e.clear();var i=nB(e,null==t?"":t);if(zv.insertFragment(e,i),n||(e.deselect(),e.blur()),r&&(e.deselect(),e.disable()),e.isFocused())try{e.select(JSON.parse(o))}catch(t){e.select(Kh.start(e,[]))}},e},gI=1,yI=function(t){var e=t;return e.id="wangEditor-".concat(gI++),e.isDestroyed=!1,e.isFullScreen=!1,e.focus=function(t){if(CB.toDOMNode(e,e).focus({preventScroll:!0}),nT.set(e,!0),t){var r=Kh.end(e,[]);zv.select(e,r)}else{var n=oT.get(e);n?zv.select(e,n):zv.select(e,Kh.start(e,[]))}},e.isFocused=function(){return!!nT.get(e)},e.blur=function(){CB.toDOMNode(e,e).blur(),zv.deselect(e),nT.set(e,!1)},e.updateView=function(){CB.getTextarea(e).changeViewState();var t=CB.getToolbar(e);t&&t.changeToolbarState();var r=CB.getHoverbar(e);r&&r.changeHoverbarState()},e.destroy=function(){if(!e.isDestroyed){var t=CB.getTextarea(e);t.destroy(),Fx.delete(e),Rx.delete(t);var r=CB.getToolbar(e);r&&(r.destroy(),_x.delete(e),Lx.delete(r));var n=CB.getHoverbar(e);n&&(n.destroy(),Mx.delete(e),jx.delete(n)),e.isDestroyed=!0,e.emit("destroyed")}},e.scrollToElem=function(t){if(!e.getConfig().scroll){var r="编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能";return r+="\nYou has disabled editor scroll, please do this yourself",void console.warn(r)}var n=og("#".concat(t));if(0!==n.length){var o=n[0];if(!CB.hasDOMNode(e,o))return r="Element (found by id is '".concat(t,"') is not in editor DOM"),r+="\n 通过 id '".concat(t,"' 找到的 element 不在 editor DOM 之内"),void console.error(r,o);var i=CB.getTextarea(e),u=i.$textAreaContainer,a=i.$scroll,s=n.offset().top,c=u.offset().top;a[0].scrollBy({top:s-c,behavior:"smooth"})}},e.showProgressBar=function(t){t<1||CB.getTextarea(e).changeProgress(t)},e.hidePanelOrModal=function(){var t=Hx.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 CB.toDOMNode(e,t)},e.fullScreen=function(){if(!e.isFullScreen){var t=null,r=CB.getToolbar(e);r&&(t=r.$box);var n=CB.getTextarea(e).$box.parent();if(t&&t.parent()[0]!==n[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 父节点不一致");n.addClass("w-e-full-screen-container");var o=n.css("z-index");n.attr("data-z-index",o.toString()),e.isFullScreen=!0,e.emit("fullScreen")}},e.unFullScreen=function(){if(e.isFullScreen){var t=CB.getTextarea(e).$box.parent();setTimeout(function(){t.removeClass("w-e-full-screen-container"),e.isFullScreen=!1,e.emit("unFullScreen")},200)}},e.getEditableContainer=function(){return CB.getTextarea(e).$textAreaContainer[0]},e},mI={exports:{}},bI={exports:{}};function EI(){return kB?NB:(kB=1,NB=function(t){return null!=t})}function wI(){if(jB)return _B;jB=1;var t=function(){if(LB)return RB;LB=1;var t=function(){if(FB)return IB;FB=1;var t=function(){if(BB)return PB;BB=1;var t=EI(),e={object:!0,function:!0,undefined:!0};return PB=function(r){return!!t(r)&&hasOwnProperty.call(e,typeof r)}}();return IB=function(e){if(!t(e))return!1;try{return!!e.constructor&&e.constructor.prototype===e}catch(t){return!1}}}();return RB=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{/}]/,r=Function.prototype.toString;return _B=function(n){return!!t(n)&&!e.test(r.call(n))}}function SI(){if(WB)return GB;WB=1;var t=(VB?UB:(VB=1,UB=function(){}))();return GB=function(e){return e!==t&&null!==e},GB}function CI(){if(tI)return QB;tI=1;var t=(XB||(XB=1,YB=($B?HB:($B=1,HB=function(){try{return Object.keys("primitive"),!0}catch(t){return!1}}))()?Object.keys:function(){if(KB)return qB;KB=1;var t=SI(),e=Object.keys;return qB=function(r){return e(t(r)?Object(r):r)}}()),YB),e=function(){if(ZB)return JB;ZB=1;var t=SI();return JB=function(e){if(!t(e))throw new TypeError("Cannot use null or undefined");return e}}(),r=Math.max;return QB=function(n,o){var i,u,a,s=r(arguments.length,2);for(n=Object(e(n)),a=function(t){try{n[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 n},QB}function DI(){if(fI)return bI.exports;fI=1;var t=EI(),e=wI(),r=rI?eI:(rI=1,eI=(zB||(zB=1,MB=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")}),MB)()?Object.assign:CI()),n=function(){if(oI)return nI;oI=1;var t=SI(),e=Array.prototype.forEach,r=Object.create;return nI=function(n){var o=r(null);return e.call(arguments,function(e){t(e)&&function(t,e){var r;for(r in t)e[r]=t[r]}(Object(e),o)}),o},nI}(),o=(lI||(lI=1,cI=function(){if(uI)return iI;uI=1;var t="razdwatrzy";return iI=function(){return"function"==typeof t.contains&&!0===t.contains("dwa")&&!1===t.contains("foo")}}()()?String.prototype.contains:function(){if(sI)return aI;sI=1;var t=String.prototype.indexOf;return aI=function(e){return t.call(this,e,arguments[1])>-1},aI}()),cI),i=bI.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?r(n(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?r(n(l),f):f},bI.exports}var OI=(hI||(hI=1,function(t,e){var r,n,o,i,u,a,s,c=DI(),l=pI?dI:(pI=1,dI=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};n=function(t,e){var n,i;return l(e),i=this,r.call(this,t,n=function(){o.call(i,t,n),f.call(e,this,arguments)}),n.__eeOnceListener__=e,this},i=function(t){var e,r,n,o,i;if(g.call(this,"__ee__")&&(o=this.__ee__[t]))if("object"==typeof o){for(r=arguments.length,i=new Array(r-1),e=1;e<r;++e)i[e-1]=arguments[e];for(o=o.slice(),e=0;n=o[e];++e)f.call(n,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(r=arguments.length,i=new Array(r-1),e=1;e<r;++e)i[e-1]=arguments[e];f.call(o,this,i)}},u={on:r=function(t,e){var r;return l(e),g.call(this,"__ee__")?r=this.__ee__:(r=y.value=p(null),h(this,"__ee__",y),y.value=null),r[t]?"object"==typeof r[t]?r[t].push(e):r[t]=[r[t],e]:r[t]=e,this},once:n,off:o=function(t,e){var r,n,o,i;if(l(e),!g.call(this,"__ee__"))return this;if(!(r=this.__ee__)[t])return this;if("object"==typeof(n=r[t]))for(i=0;o=n[i];++i)o!==e&&o.__eeOnceListener__!==e||(2===n.length?r[t]=n[i?0:1]:n.splice(i,1));else n!==e&&n.__eeOnceListener__!==e||delete r[t];return this},emit:i},a={on:c(r),once:c(n),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}(mI,mI.exports)),mI.exports),AI=function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}(OI);function xI(t){var e=iT.get(t);return null==e&&(e=AI(),iT.set(t,e)),e}var TI=new WeakMap;function NI(t,e){var r=TI.get(t);null==r&&(r=new Set,TI.set(t,r)),r.add(e)}var kI,PI=function(t){var e=t;return e.on=function(t,r){var n=xI(e);if(n.on(t,r),"destroyed"===t&&NI(e,r),"destroyed"!==t){var o=function(){return n.off(t,r)};n.on("destroyed",o),NI(e,o)}},e.once=function(t,r){xI(e).once(t,r)},e.off=function(t,r){xI(e).off(t,r)},e.emit=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var o=xI(e);if(o.emit.apply(o,NO([t],TO(r),!1)),"destroyed"===t){var i=function(t){return TI.get(t)||new Set}(e);i.forEach(function(t){return o.off("destroyed",t)}),function(t){TI.set(t,new Set)}(e)}},e},BI=function(t){var e=t;return e.setFragmentData=function(t){var r=e.selection;if(r){var n=TO(dv.edges(r),2),o=n[0],i=n[1],u=Kh.void(e,{at:o.path}),a=Kh.void(e,{at:i.path});if(!dv.isCollapsed(r)||u){var s=CB.toDOMRange(e,r),c=s.cloneContents(),l=c.childNodes[0];if(c.childNodes.forEach(function(t){t.textContent&&""!==t.textContent.trim()&&(l=t)}),a){var f=TO(a,1)[0],d=s.cloneRange(),p=CB.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":""}),FP(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",jP(m)),c.ownerDocument.body.removeChild(m),t}}},e.insertData=function(t){var r,n,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=xO(c),d=f.next();!d.done;d=f.next()){var p=d.value,h=CB.getLeftLengthOfMaxLength(e);l&&h>0&&zv.splitNodes(e,{always:!0}),e.insertText(p),l=!0}}catch(t){r={error:t}}finally{try{d&&!d.done&&(n=f.return)&&n.call(f)}finally{if(r)throw r.error}}}}},e},II={};!function(){if(kI)return II;kI=1;var t=ND(),e=kD(),r=RD(),n=Kw(),o=VC(),i=WC(),u=Ww(),a=BD(),s=_S(),c=_D(),l=Ex(),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,(r(c)&&(c===p||e(c.prototype))||n(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 FI=function(t){var e=t,r=e.insertText,n=e.insertNode,o=e.insertFragment,i=e.dangerouslyInsertHtml;return e.insertText=function(t){if(e.getConfig().maxLength){var n=CB.getLeftLengthOfMaxLength(e);n<=0||(n<t.length?r(t.slice(0,n)):r(t))}else r(t)},e.insertNode=function(t){if(e.getConfig().maxLength){var r=CB.getLeftLengthOfMaxLength(e);r<=0||r<tv.string(t).length||n(t)}else n(t)},e.insertFragment=function(t){if(e.getConfig().maxLength){if(t.length>0){var r=t[0];if(CB.getLeftLengthOfMaxLength(e)<tv.string(r).length)return;o([r]);for(var n=1;n<t.length;n+=1)e.insertNode(t[n])}}else o(t)},e.dangerouslyInsertHtml=function(t,r){if(void 0===t&&(t=""),void 0===r&&(r=!1),t)if(e.getConfig().maxLength){var n=CB.getLeftLengthOfMaxLength(e);if(!(n<=0)){var o=document.createElement("div");o.innerHTML=t,n<Array.from(o.childNodes).reduce(function(t,e){var r=e.nodeName;return e?FP(e)?t+(e.textContent||""):BP(e)?gN.has(r.toLowerCase())?t:t+(e.textContent||""):t:t},"").length||i(t,r)}}else i(t,r)},e};function RI(t){var e=CB.getTextarea(t).$textAreaContainer,r=e.width(),n=e.height(),o=e.offset();return{top:o.top,left:o.left,width:r,height:n}}function LI(t){var e={top:"0",left:"0"},r=t.selection;if(null==r)return e;var n=RI(t);if(null==n)return e;var o=n.top,i=n.left,u=n.width,a=n.height,s=CB.toDOMRange(t,r).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 _I(t,e,r){void 0===r&&(r="modal");var n={top:"0",left:"0"};if(null==t.selection)return n;var o=$h.isElement(e)&&t.isVoid(e),i=$h.isElement(e)&&t.isInline(e),u=tT.get(e);if(null==u)return n;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 r=0;e.length>0;){var n=e.pop();if(null==n)break;if((r+=1)>1e4)break;var o=n.nodeName;if(n.nodeType===AP.ELEMENT_NODE){var i=o.toLowerCase();if(ok.includes(i)||"iframe"===i||"video"===i)return n;var u=n.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=RI(t);if(null==h)return n;var v=h.top,g=h.left,y=h.width,m=h.height,b={},E=s-v,w=c-g;if("bar"===r)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"===r){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(r,"' is invalid"))}function jI(t,e){OP(function(){var r=RI(t);if(null!=r){var n,o=r.top,i=r.left,u=r.width,a=r.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&&(n=p+d-a)>0){var g=e.css("top"),y=parseInt(g.toString(),10)-n;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&&(n=h+f-u)>0){var E=e.css("left"),w=parseInt(E.toString(),10)-n;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 MI,zI=function(t){var e=t;return e.select=function(t){zv.select(e,t)},e.deselect=function(){var r=e.selection,n=CB.findDocumentOrShadowRoot(e).getSelection();n&&n.rangeCount>0&&n.removeAllRanges(),r&&zv.deselect(t)},e.move=function(e,r){void 0===r&&(r=!1),e&&(e<0||zv.move(t,{distance:e,unit:"character",reverse:r}))},e.moveReverse=function(t){e.move(t,!0)},e.restoreSelection=function(){var t=oT.get(e);null!=t&&(e.focus(),zv.select(e,t))},e.getSelectionPosition=function(){return LI(e)},e.getNodePosition=function(t){return _I(e,t)},e.isSelectedAll=function(){var t=e.selection;if(null==t)return!1;var r=TO(dv.edges(t),2),n=r[0],o=r[1],i=TO(Kh.edges(e,[]),2),u=i[0],a=i[1];return!(!sv.equals(n,u)||!sv.equals(o,a))},e.selectAll=function(){var t=Kh.start(e,[]),r=Kh.end(e,[]);zv.select(e,{anchor:t,focus:r})},e},HI={};!function(){if(MI)return HI;MI=1;var t=XE(),e=Hw(),r=LN(),n=ZS(),o=Kw(),i=GC(),u=IA(),a=Gw(),s=oS(),c=jN(),l=EP(),f=MN(),d=e("".indexOf);r("match",function(e,r,p){return[function(r){var n=a(this),i=o(r)?s(r,e):void 0;return i?t(i,r,n):new RegExp(r)[e](u(n))},function(t){var e=n(this),o=u(t),a=p(r,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 $I=t=>"string"==typeof t,UI=()=>{let t,e;const r=new Promise((r,n)=>{t=r,e=n});return r.resolve=t,r.reject=e,r},VI=t=>null==t?"":""+t,GI=/###/g,WI=t=>t&&t.indexOf("###")>-1?t.replace(GI,"."):t,qI=t=>!t||$I(t),KI=(t,e,r)=>{const n=$I(e)?e.split("."):e;let o=0;for(;o<n.length-1;){if(qI(t))return{};const e=WI(n[o]);!t[e]&&r&&(t[e]=new r),t=Object.prototype.hasOwnProperty.call(t,e)?t[e]:{},++o}return qI(t)?{}:{obj:t,k:WI(n[o])}},YI=(t,e,r)=>{const{obj:n,k:o}=KI(t,e,Object);if(void 0!==n||1===e.length)return void(n[o]=r);let i=e[e.length-1],u=e.slice(0,e.length-1),a=KI(t,u,Object);for(;void 0===a.obj&&u.length;)i=`${u[u.length-1]}.${i}`,u=u.slice(0,u.length-1),a=KI(t,u,Object),a&&a.obj&&void 0!==a.obj[`${a.k}.${i}`]&&(a.obj=void 0);a.obj[`${a.k}.${i}`]=r},XI=(t,e)=>{const{obj:r,k:n}=KI(t,e);if(r)return r[n]},JI=(t,e,r)=>{for(const n in e)"__proto__"!==n&&"constructor"!==n&&(n in t?$I(t[n])||t[n]instanceof String||$I(e[n])||e[n]instanceof String?r&&(t[n]=e[n]):JI(t[n],e[n],r):t[n]=e[n]);return t},ZI=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var QI={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const tF=t=>$I(t)?t.replace(/[&<>"'\/]/g,t=>QI[t]):t,eF=[" ",",","?","!",";"],rF=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 r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}(20),nF=function(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!t)return;if(t[e])return t[e];const n=e.split(r);let o=t;for(let t=0;t<n.length;){if(!o||"object"!=typeof o)return;let e,i="";for(let u=t;u<n.length;++u)if(u!==t&&(i+=r),i+=n[u],e=o[i],void 0!==e){if(["string","number","boolean"].indexOf(typeof e)>-1&&u<n.length-1)continue;t+=u-t+1;break}o=e}return o},oF=t=>t&&t.replace("_","-"),iF={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 uF=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||iF,this.options=e,this.debug=e.debug}log(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this.forward(e,"log","",!0)}warn(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this.forward(e,"warn","",!0)}error(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this.forward(e,"error","")}deprecate(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(t,e,r,n){return n&&!this.debug?null:($I(t[0])&&(t[0]=`${r}${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 aF=class{constructor(){this.observers={}}on(t,e){return t.split(" ").forEach(t=>{this.observers[t]||(this.observers[t]=new Map);const r=this.observers[t].get(e)||0;this.observers[t].set(e,r+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,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(t=>{let[e,n]=t;for(let t=0;t<n;t++)e(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(e=>{let[n,o]=e;for(let e=0;e<o;e++)n.apply(n,[t,...r])})}},sF=class extends aF{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,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,i=void 0!==n.ignoreJSONStructure?n.ignoreJSONStructure:this.options.ignoreJSONStructure;let u;t.indexOf(".")>-1?u=t.split("."):(u=[t,e],r&&(Array.isArray(r)?u.push(...r):$I(r)&&o?u.push(...r.split(o)):u.push(r)));const a=XI(this.data,u);return!a&&!e&&!r&&t.indexOf(".")>-1&&(t=u[0],e=u[1],r=u.slice(2).join(".")),!a&&i&&$I(r)?nF(this.data&&this.data[t]&&this.data[t][e],r,o):a}addResource(t,e,r,n){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];r&&(u=u.concat(i?r.split(i):r)),t.indexOf(".")>-1&&(u=t.split("."),n=e,e=u[1]),this.addNamespaces(e),YI(this.data,u,n),o.silent||this.emit("added",t,e,r,n)}addResources(t,e,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(const n in r)($I(r[n])||Array.isArray(r[n]))&&this.addResource(t,e,n,r[n],{silent:!0});n.silent||this.emit("added",t,e,r)}addResourceBundle(t,e,r,n,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("."),n=r,r=e,e=u[1]),this.addNamespaces(e);let a=XI(this.data,u)||{};i.skipCopy||(r=JSON.parse(JSON.stringify(r))),n?JI(a,r,o):a={...a,...r},YI(this.data,u,a),i.silent||this.emit("added",t,e,r)}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 cF={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,r,n,o){return t.forEach(t=>{this.processors[t]&&(e=this.processors[t].process(e,r,n,o))}),e}};const lF={};let fF=class t extends aF{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),((t,e,r)=>{["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach(t=>{e[t]&&(r[t]=e[t])})})(0,t,this),this.options=e,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=uF.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 r=this.resolve(t,e);return r&&void 0!==r.res}extractFromKey(t,e){let r=void 0!==e.nsSeparator?e.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");const n=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator;let o=e.ns||this.options.defaultNS||[];const i=r&&t.indexOf(r)>-1,u=!(this.options.userDefinedKeySeparator||e.keySeparator||this.options.userDefinedNsSeparator||e.nsSeparator||((t,e,r)=>{e=e||"",r=r||"";const n=eF.filter(t=>e.indexOf(t)<0&&r.indexOf(t)<0);if(0===n.length)return!0;const o=rF.getRegExp(`(${n.map(t=>"?"===t?"\\?":t).join("|")})`);let i=!o.test(t);if(!i){const e=t.indexOf(r);e>0&&!o.test(t.substring(0,e))&&(i=!0)}return i})(t,r,n));if(i&&!u){const e=t.match(this.interpolator.nestingRegexp);if(e&&e.length>0)return{key:t,namespaces:$I(o)?[o]:o};const i=t.split(r);(r!==n||r===n&&this.options.ns.indexOf(i[0])>-1)&&(o=i.shift()),t=i.join(n)}return{key:t,namespaces:$I(o)?[o]:o}}translate(e,r,n){if("object"!=typeof r&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof r&&(r={...r}),r||(r={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);const o=void 0!==r.returnDetails?r.returnDetails:this.options.returnDetails,i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,{key:u,namespaces:a}=this.extractFromKey(e[e.length-1],r),s=a[a.length-1],c=r.lng||this.language,l=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&"cimode"===c.toLowerCase()){if(l){const t=r.nsSeparator||this.options.nsSeparator;return o?{res:`${s}${t}${u}`,usedKey:u,exactUsedKey:u,usedLng:c,usedNS:s,usedParams:this.getUsedParamsDetails(r)}:`${s}${t}${u}`}return o?{res:u,usedKey:u,exactUsedKey:u,usedLng:c,usedNS:s,usedParams:this.getUsedParamsDetails(r)}:u}const f=this.resolve(e,r);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!==r.joinArrays?r.joinArrays:this.options.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,m=!$I(d)&&"boolean"!=typeof d&&"number"!=typeof d;if(!(y&&d&&m&&["[object Number]","[object Function]","[object RegExp]"].indexOf(v)<0)||$I(g)&&Array.isArray(d))if(y&&$I(g)&&Array.isArray(d))d=d.join(g),d&&(d=this.extendTranslation(d,e,r,n));else{let o=!1,a=!1;const l=void 0!==r.count&&!$I(r.count),p=t.hasDefaultValue(r),h=l?this.pluralResolver.getSuffix(c,r.count,r):"",v=r.ordinal&&l?this.pluralResolver.getSuffix(c,r.count,{ordinal:!1}):"",g=l&&!r.ordinal&&0===r.count&&this.pluralResolver.shouldUseIntlApi(),y=g&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${h}`]||r[`defaultValue${v}`]||r.defaultValue;!this.isValidLookup(d)&&p&&(o=!0,d=y),this.isValidLookup(d)||(a=!0,d=u);const m=(r.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,{...r,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,r.lng||this.language);if("fallback"===this.options.saveMissingTo&&e&&e[0])for(let r=0;r<e.length;r++)t.push(e[r]);else"all"===this.options.saveMissingTo?t=this.languageUtils.toResolveHierarchy(r.lng||this.language):t.push(r.lng||this.language);const n=(t,e,n)=>{const o=p&&n!==d?n:m;this.options.missingKeyHandler?this.options.missingKeyHandler(t,s,e,o,b,r):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(t,s,e,o,b,r),this.emit("missingKey",t,s,e,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&l?t.forEach(t=>{const e=this.pluralResolver.getSuffixes(t,r);g&&r[`defaultValue${this.options.pluralSeparator}zero`]&&e.indexOf(`${this.options.pluralSeparator}zero`)<0&&e.push(`${this.options.pluralSeparator}zero`),e.forEach(e=>{n([t],u+e,r[`defaultValue${e}`]||y)})}):n(t,u,y))}d=this.extendTranslation(d,e,r,f,n),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(!r.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,{...r,ns:a}):`key '${u} (${this.language})' returned an object instead of string.`;return o?(f.res=t,f.usedParams=this.getUsedParamsDetails(r),f):t}if(i){const t=Array.isArray(d),e=t?[]:{},n=t?h:p;for(const t in d)if(Object.prototype.hasOwnProperty.call(d,t)){const o=`${n}${i}${t}`;e[t]=this.translate(o,{...r,joinArrays:!1,ns:a}),e[t]===o&&(e[t]=d[t])}d=e}}return o?(f.res=d,f.usedParams=this.getUsedParamsDetails(r),f):d}extendTranslation(t,e,r,n,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const u=$I(t)&&(r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let a;if(u){const e=t.match(this.interpolator.nestingRegexp);a=e&&e.length}let s=r.replace&&!$I(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),t=this.interpolator.interpolate(t,s,r.lng||this.language||n.usedLng,r),u){const e=t.match(this.interpolator.nestingRegexp);a<(e&&e.length)&&(r.nest=!1)}!r.lng&&"v1"!==this.options.compatibilityAPI&&n&&n.res&&(r.lng=this.language||n.usedLng),!1!==r.nest&&(t=this.interpolator.nest(t,function(){for(var t=arguments.length,n=new Array(t),u=0;u<t;u++)n[u]=arguments[u];return o&&o[0]===n[0]&&!r.context?(i.logger.warn(`It seems you are nesting recursively key: ${n[0]} in key: ${e[0]}`),null):i.translate(...n,e)},r)),r.interpolation&&this.interpolator.reset()}const u=r.postProcess||this.options.postProcess,a=$I(u)?[u]:u;return null!=t&&a&&a.length&&!1!==r.applyPostProcessor&&(t=cF.handle(a,t,e,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...n,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t){let e,r,n,o,i,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return $I(t)&&(t=[t]),t.forEach(t=>{if(this.isValidLookup(e))return;const a=this.extractFromKey(t,u),s=a.key;r=s;let c=a.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));const l=void 0!==u.count&&!$I(u.count),f=l&&!u.ordinal&&0===u.count&&this.pluralResolver.shouldUseIntlApi(),d=void 0!==u.context&&($I(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,!lF[`${p[0]}-${t}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(i)&&(lF[`${p[0]}-${t}`]=!0,this.logger.warn(`key "${r}" 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(r=>{if(this.isValidLookup(e))return;o=r;const i=[s];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(i,s,r,t,u);else{let t;l&&(t=this.pluralResolver.getSuffix(r,u.count,u));const e=`${this.options.pluralSeparator}zero`,n=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(l&&(i.push(s+t),u.ordinal&&0===t.indexOf(n)&&i.push(s+t.replace(n,this.options.pluralSeparator)),f&&i.push(s+e)),d){const r=`${s}${this.options.contextSeparator}${u.context}`;i.push(r),l&&(i.push(r+t),u.ordinal&&0===t.indexOf(n)&&i.push(r+t.replace(n,this.options.pluralSeparator)),f&&i.push(r+e))}}let a;for(;a=i.pop();)this.isValidLookup(e)||(n=a,e=this.getResource(r,t,a,u))}))})}),{res:e,usedKey:r,exactUsedKey:n,usedLng:o,usedNS:i}}isValidLookup(t){return!(void 0===t||!this.options.returnNull&&null===t||!this.options.returnEmptyString&&""===t)}getResource(t,e,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,e,r,n):this.resourceStore.getResource(t,e,r,n)}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"],r=t.replace&&!$I(t.replace);let n=r?t.replace:t;if(r&&void 0!==t.count&&(n.count=t.count),this.options.interpolation.defaultVariables&&(n={...this.options.interpolation.defaultVariables,...n}),!r){n={...n};for(const t of e)delete n[t]}return n}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 dF=t=>t.charAt(0).toUpperCase()+t.slice(1);let pF=class{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=uF.create("languageUtils")}getScriptPartFromCode(t){if(!(t=oF(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=oF(t))||t.indexOf("-")<0)return t;const e=t.split("-");return this.formatLanguageCode(e[0])}formatLanguageCode(t){if($I(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 r=t.split("-");return this.options.lowerCaseLng?r=r.map(t=>t.toLowerCase()):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),e.indexOf(r[1].toLowerCase())>-1&&(r[1]=dF(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),"sgn"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),e.indexOf(r[1].toLowerCase())>-1&&(r[1]=dF(r[1].toLowerCase())),e.indexOf(r[2].toLowerCase())>-1&&(r[2]=dF(r[2].toLowerCase()))),r.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 r=this.formatLanguageCode(t);this.options.supportedLngs&&!this.isSupportedCode(r)||(e=r)}),!e&&this.options.supportedLngs&&t.forEach(t=>{if(e)return;const r=this.getLanguagePartFromCode(t);if(this.isSupportedCode(r))return e=r;e=this.options.supportedLngs.find(t=>t===r?t:t.indexOf("-")<0&&r.indexOf("-")<0?void 0:t.indexOf("-")>0&&r.indexOf("-")<0&&t.substring(0,t.indexOf("-"))===r||0===t.indexOf(r)&&r.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)),$I(t)&&(t=[t]),Array.isArray(t))return t;if(!e)return t.default||[];let r=t[e];return r||(r=t[this.getScriptPartFromCode(e)]),r||(r=t[this.formatLanguageCode(e)]),r||(r=t[this.getLanguagePartFromCode(e)]),r||(r=t.default),r||[]}toResolveHierarchy(t,e){const r=this.getFallbackCodes(e||this.options.fallbackLng||[],t),n=[],o=t=>{t&&(this.isSupportedCode(t)?n.push(t):this.logger.warn(`rejecting language code not found in supportedLngs: ${t}`))};return $I(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))):$I(t)&&o(this.formatLanguageCode(t)),r.forEach(t=>{n.indexOf(t)<0&&o(this.formatLanguageCode(t))}),n}},hF=[{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}],vF={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 gF=["v1","v2","v3"],yF=["v4"],mF={zero:0,one:1,two:2,few:3,many:4,other:5};let bF=class{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=t,this.options=e,this.logger=uF.create("pluralResolver"),this.options.compatibilityJSON&&!yF.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 hF.forEach(e=>{e.lngs.forEach(r=>{t[r]={numbers:e.nr,plurals:vF[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 r=oF("dev"===t?"en":t),n=e.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:r,type:n});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];let i;try{i=new Intl.PluralRules(r,{type:n})}catch(r){if(!t.match(/-|_/))return;const n=this.languageUtils.getLanguagePartFromCode(t);i=this.getRule(n,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 r=this.getRule(t,e);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(t,r).map(t=>`${e}${t}`)}getSuffixes(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=this.getRule(t,e);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((t,e)=>mF[t]-mF[e]).map(t=>`${this.options.prepend}${e.ordinal?`ordinal${this.options.prepend}`:""}${t}`):r.numbers.map(r=>this.getSuffix(t,r,e)):[]}getSuffix(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n=this.getRule(t,r);return n?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${n.select(e)}`:this.getSuffixRetroCompatible(n,e):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,e){const r=t.noAbs?t.plurals(e):t.plurals(Math.abs(e));let n=t.numbers[r];this.options.simplifyPluralSuffix&&2===t.numbers.length&&1===t.numbers[0]&&(2===n?n="plural":1===n&&(n=""));const o=()=>this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString();return"v1"===this.options.compatibilityJSON?1===n?"":"number"==typeof n?`_plural_${n.toString()}`:o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===t.numbers.length&&1===t.numbers[0]?o():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!gF.includes(this.options.compatibilityJSON)}};const EF=function(t,e,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=((t,e,r)=>{const n=XI(t,r);return void 0!==n?n:XI(e,r)})(t,e,r);return!i&&o&&$I(r)&&(i=nF(t,r,n),void 0===i&&(i=nF(e,r,n))),i},wF=t=>t.replace(/\$/g,"$$$$");let SF=class{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=uF.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:r,useRawValueToEscape:n,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:tF,this.escapeValue=void 0===r||r,this.useRawValueToEscape=void 0!==n&&n,this.prefix=o?ZI(o):i||"{{",this.suffix=u?ZI(u):a||"}}",this.formatSeparator=s||",",this.unescapePrefix=c?"":l||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=f?ZI(f):d||ZI("$t("),this.nestingSuffix=p?ZI(p):h||ZI(")"),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,r,n){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=EF(e,a,t,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(o,void 0,r,{...n,...e,interpolationkey:t}):o}const o=t.split(this.formatSeparator),i=o.shift().trim(),u=o.join(this.formatSeparator).trim();return this.format(EF(e,a,i,this.options.keySeparator,this.options.ignoreJSONStructure),u,r,{...n,...e,interpolationkey:i})};this.resetRegExp();const c=n&&n.missingInterpolationHandler||this.options.missingInterpolationHandler,l=n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,f=[{regex:this.regexpUnescape,safeValue:t=>wF(t)},{regex:this.regexp,safeValue:t=>this.escapeValue?wF(this.escape(t)):wF(t)}];return f.forEach(e=>{for(u=0;o=e.regex.exec(t);){const r=o[1].trim();if(i=s(r),void 0===i)if("function"==typeof c){const e=c(t,o,n);i=$I(e)?e:""}else if(n&&Object.prototype.hasOwnProperty.call(n,r))i="";else{if(l){i=o[0];continue}this.logger.warn(`missed to pass in variable ${r} for interpolating ${t}`),i=""}else $I(i)||this.useRawValueToEscape||(i=VI(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 r,n,o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const u=(t,e)=>{const r=this.nestingOptionsSeparator;if(t.indexOf(r)<0)return t;const n=t.split(new RegExp(`${r}[ ]*{`));let i=`{${n[1]}`;t=n[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}${r}${i}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,t};for(;r=this.nestingRegexp.exec(t);){let a=[];o={...i},o=o.replace&&!$I(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let s=!1;if(-1!==r[0].indexOf(this.formatSeparator)&&!/{.*}/.test(r[1])){const t=r[1].split(this.formatSeparator).map(t=>t.trim());r[1]=t.shift(),a=t,s=!0}if(n=e(u.call(this,r[1].trim(),o),o),n&&r[0]===t&&!$I(n))return n;$I(n)||(n=VI(n)),n||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${t}`),n=""),s&&(n=a.reduce((t,e)=>this.format(t,e,i.lng,{...i,interpolationkey:r[1].trim()}),n.trim())),t=t.replace(r[0],n),this.regexp.lastIndex=0}return t}};const CF=t=>{const e={};return(r,n,o)=>{let i=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(i={...i,[o.interpolationkey]:void 0});const u=n+JSON.stringify(i);let a=e[u];return a||(a=t(oF(n),o),e[u]=a),a(r)}};let DF=class{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=uF.create("formatter"),this.options=t,this.formats={number:CF((t,e)=>{const r=new Intl.NumberFormat(t,{...e});return t=>r.format(t)}),currency:CF((t,e)=>{const r=new Intl.NumberFormat(t,{...e,style:"currency"});return t=>r.format(t)}),datetime:CF((t,e)=>{const r=new Intl.DateTimeFormat(t,{...e});return t=>r.format(t)}),relativetime:CF((t,e)=>{const r=new Intl.RelativeTimeFormat(t,{...e});return t=>r.format(t,e.range||"day")}),list:CF((t,e)=>{const r=new Intl.ListFormat(t,{...e});return t=>r.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()]=CF(e)}format(t,e,r){let n=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 r={};if(t.indexOf("(")>-1){const n=t.split("(");e=n[0].toLowerCase().trim();const o=n[1].substring(0,n[1].length-1);"currency"===e&&o.indexOf(":")<0?r.currency||(r.currency=o.trim()):"relativetime"===e&&o.indexOf(":")<0?r.range||(r.range=o.trim()):o.split(";").forEach(t=>{if(t){const[e,...n]=t.split(":"),o=n.join(":").trim().replace(/^'+|'+$/g,""),i=e.trim();r[i]||(r[i]=o),"false"===o&&(r[i]=!1),"true"===o&&(r[i]=!0),isNaN(o)||(r[i]=parseInt(o,10))}})}return{formatName:e,formatOptions:r}})(e);if(this.formats[o]){let e=t;try{const u=n&&n.formatParams&&n.formatParams[n.interpolationkey]||{},a=u.locale||u.lng||n.locale||n.lng||r;e=this.formats[o](t,a,{...i,...n,...u})}catch(t){this.logger.warn(t)}return e}return this.logger.warn(`there was no format function for ${o}`),t},t);return i}},OF=class extends aF{constructor(t,e,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=t,this.store=e,this.services=r,this.languageUtils=r.languageUtils,this.options=n,this.logger=uF.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=n.maxParallelReads||10,this.readingCalls=0,this.maxRetries=n.maxRetries>=0?n.maxRetries:5,this.retryTimeout=n.retryTimeout>=1?n.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,n.backend,n)}queueLoad(t,e,r,n){const o={},i={},u={},a={};return t.forEach(t=>{let n=!0;e.forEach(e=>{const u=`${t}|${e}`;!r.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,n=!1,void 0===i[u]&&(i[u]=!0),void 0===o[u]&&(o[u]=!0),void 0===a[e]&&(a[e]=!0)))}),n||(u[t]=!0)}),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(u),toLoadNamespaces:Object.keys(a)}}loaded(t,e,r){const n=t.split("|"),o=n[0],i=n[1];e&&this.emit("failedLoading",o,i,e),!e&&r&&this.store.addResourceBundle(o,i,r,void 0,void 0,{skipCopy:!0}),this.state[t]=e?-1:2,e&&r&&(this.state[t]=0);const u={};this.queue.forEach(r=>{((t,e,r)=>{const{obj:n,k:o}=KI(t,e,Object);n[o]=n[o]||[],n[o].push(r)})(r.loaded,[o],i),((t,e)=>{void 0!==t.pending[e]&&(delete t.pending[e],t.pendingCount--)})(r,t),e&&r.errors.push(e),0!==r.pendingCount||r.done||(Object.keys(r.loaded).forEach(t=>{u[t]||(u[t]={});const e=r.loaded[t];e.length&&e.forEach(e=>{void 0===u[t][e]&&(u[t][e]=!0)})}),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())}),this.emit("loaded",u),this.queue=this.queue.filter(t=>!t.done)}read(t,e,r){let n=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:r,tried:n,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&&n<this.maxRetries?setTimeout(()=>{this.read.call(this,t,e,r,n+1,2*o,i)},o):i(u,a)},a=this.backend[r].bind(this.backend);if(2!==a.length)return a(t,e,u);try{const r=a(t,e);r&&"function"==typeof r.then?r.then(t=>u(null,t)).catch(u):u(null,r)}catch(t){u(t)}}prepareLoading(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=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."),n&&n();$I(t)&&(t=this.languageUtils.toResolveHierarchy(t)),$I(e)&&(e=[e]);const o=this.queueLoad(t,e,r,n);if(!o.toLoad.length)return o.pending.length||n(),null;o.toLoad.forEach(t=>{this.loadOne(t)})}load(t,e,r){this.prepareLoading(t,e,{},r)}reload(t,e,r){this.prepareLoading(t,e,{reload:!0},r)}loadOne(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const r=t.split("|"),n=r[0],o=r[1];this.read(n,o,"read",void 0,void 0,(r,i)=>{r&&this.logger.warn(`${e}loading namespace ${o} for language ${n} failed`,r),!r&&i&&this.logger.log(`${e}loaded namespace ${o} for language ${n}`,i),this.loaded(t,r,i)})}saveMissing(t,e,r,n,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 "${r}" 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!=r&&""!==r){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,r,n,a):s(t,e,r,n),o&&"function"==typeof o.then?o.then(t=>u(null,t)).catch(u):u(null,o)}catch(t){u(t)}else s(t,e,r,n,u,a)}t&&t[0]&&this.store.addResource(t[0],e,r,n)}}};const AF=()=>({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]),$I(t[1])&&(e.defaultValue=t[1]),$I(t[2])&&(e.tDescription=t[2]),"object"==typeof t[2]||"object"==typeof t[3]){const r=t[3]||t[2];Object.keys(r).forEach(t=>{e[t]=r[t]})}return e},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),xF=t=>($I(t.ns)&&(t.ns=[t.ns]),$I(t.fallbackLng)&&(t.fallbackLng=[t.fallbackLng]),$I(t.fallbackNS)&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t),TF=()=>{};let NF=class t extends aF{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;var r;if(super(),this.options=xF(t),this.services={},this.logger=uF,this.modules={external:[]},r=this,Object.getOwnPropertyNames(Object.getPrototypeOf(r)).forEach(t=>{"function"==typeof r[t]&&(r[t]=r[t].bind(r))}),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]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"==typeof e&&(r=e,e={}),!e.defaultNS&&!1!==e.defaultNS&&e.ns&&($I(e.ns)?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const n=AF();this.options={...n,...this.options,...xF(e)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...n.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?uF.init(o(this.modules.logger),this.options):uF.init(null,this.options),this.modules.formatter?e=this.modules.formatter:"undefined"!=typeof Intl&&(e=DF);const r=new pF(this.options);this.store=new sF(this.options.resources,this.options);const i=this.services;i.logger=uF,i.resourceStore=this.store,i.languageUtils=r,i.pluralResolver=new bF(r,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!e||this.options.interpolation.format&&this.options.interpolation.format!==n.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 SF(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new OF(o(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];t.emit(e,...n)}),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 fF(this.services,this.options),this.translator.on("*",function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];t.emit(e,...n)}),this.modules.external.forEach(t=>{t.init&&t.init(this)})}if(this.format=this.options.interpolation.format,r||(r=TF),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=UI(),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),r(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]:TF;const r=$I(t)?t:this.language;if("function"==typeof t&&(e=t),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return e();const t=[],n=e=>{e&&"cimode"!==e&&this.services.languageUtils.toResolveHierarchy(e).forEach(e=>{"cimode"!==e&&t.indexOf(e)<0&&t.push(e)})};r?n(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(t=>n(t)),this.options.preload&&this.options.preload.forEach(t=>n(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,r){const n=UI();return"function"==typeof t&&(r=t,t=void 0),"function"==typeof e&&(r=e,e=void 0),t||(t=this.languages),e||(e=this.options.ns),r||(r=TF),this.services.backendConnector.reload(t,e,t=>{n.resolve(),r(t)}),n}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&&cF.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 r=this;this.isLanguageChangingTo=t;const n=UI();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,n.resolve(function(){return r.t(...arguments)}),e&&e(t,function(){return r.t(...arguments)})},u=e=>{t||e||!this.services.languageDetector||(e=[]);const r=$I(e)?e:this.services.languageUtils.getBestMatchFromCodes(e);r&&(this.language||o(r),this.translator.language||this.translator.changeLanguage(r),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(r)),this.loadResources(r,t=>{i(t,r)})};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()),n}getFixedT(t,e,r){var n=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=n.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||r||o.keyPrefix);const c=n.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,n.t(l,i)};return $I(t)?o.lng=t:o.lngs=t,o.ns=e,o.keyPrefix=r,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 r=e.lng||this.resolvedLanguage||this.languages[0],n=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;const i=(t,e)=>{const r=this.services.backendConnector.state[`${t}|${e}`];return-1===r||0===r||2===r};if(e.precheck){const t=e.precheck(this,i);if(void 0!==t)return t}return!(!this.hasResourceBundle(r,t)&&this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages)&&(!i(r,t)||n&&!i(o,t)))}loadNamespaces(t,e){const r=UI();return this.options.ns?($I(t)&&(t=[t]),t.forEach(t=>{this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}),this.loadResources(t=>{r.resolve(),e&&e(t)}),r):(e&&e(),Promise.resolve())}loadLanguages(t,e){const r=UI();$I(t)&&(t=[t]);const n=this.options.preload||[],o=t.filter(t=>n.indexOf(t)<0&&this.services.languageUtils.isSupportedCode(t));return o.length?(this.options.preload=n.concat(o),this.loadResources(t=>{r.resolve(),e&&e(t)}),r):(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 pF(AF());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]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:TF;const n=e.forkResourceStore;n&&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)},n&&(i.store=new sF(this.store.data,o),i.services.resourceStore=i.store),i.translator=new fF(i.services,o),i.translator.on("*",function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];i.emit(t,...r)}),i.init(o,r),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 kF=NF.createInstance();kF.createInstance=NF.createInstance,kF.createInstance,kF.dir,kF.init,kF.loadResources,kF.reloadResources,kF.use,kF.changeLanguage,kF.getFixedT,kF.t,kF.exists,kF.setDefaultNamespace,kF.hasLoadedNamespace,kF.loadNamespaces,kF.loadLanguages;var PF="translation";function BF(t,e){kF.addResourceBundle(t,PF,e,!0,!0)}function IF(t){kF.changeLanguage(t)}function FF(t){return kF.getResourceBundle(t,PF)}function RF(t){return kF.on("languageChanged",t),function(){return kF.off("languageChanged",t)}}kF.init({lng:"zh-CN",resources:{}});var LF=kF.t.bind(kF);function _F(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&&_F(e)}}function jF(){return og('<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 MF(){return og('<div class="w-e-bar-divider"></div>')}function zF(t,e,r,n,o){if(void 0===n&&(n=""),void 0===o&&(o=!1),e){if(n){var i=gB?"cmd":"ctrl";n=n.replace("mod",i)}if(o)n&&(t.attr("data-tooltip",n),t.addClass("w-e-menu-tooltip-v5"),t.addClass("tooltip-right"));else{var u=n?"".concat(r,"\n").concat(n):r;t.attr("data-tooltip",u),t.addClass("w-e-menu-tooltip-v5")}}}var HF=function(){function t(t,e,r){void 0===r&&(r=!1);var n=this;this.$elem=og('<div class="w-e-bar-item"></div>'),this.$button=og('<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=og(l);_F(d),f.append(d)}else f.text(u);zF(f,l,u,s,r),r&&l&&f.append(og('<span class="title">'.concat(u,"</span>"))),i&&f.css("width","".concat(i,"px")),f.attr("data-menu-key",t),this.$elem.append(f),OP(function(){return n.init()})}return t.prototype.init=function(){var t=this;this.setActive(),this.setDisabled(),this.$button.on("click",function(e){e.preventDefault(),eR(t).hidePanelOrModal(),t.disabled||(t.exec(),t.onButtonClick())})},t.prototype.exec=function(){var t=eR(this),e=this.menu,r=e.getValue(t);this.setIcon(),this.setTooltip(),e.exec(t,r)},t.prototype.setActive=function(){var t=eR(this),e=this.$button,r="active";this.menu.isActive(t)?e.addClass(r):e.removeClass(r)},t.prototype.setDisabled=function(){var t=eR(this),e=this.$button,r=this.menu.isDisabled(t);(null==t.selection||t.isDisabled())&&(r=!0),this.menu.alwaysEnable&&(r=!1);var n="disabled";r?e.addClass(n):e.removeClass(n),this.disabled=r},t.prototype.setIcon=function(){var t=eR(this),e=this.$button;if(this.menu.getIcon){var r=this.menu.getIcon(t);if(r){e.find("svg").remove();var n=og(r);_F(n),e.append(n)}}},t.prototype.setTooltip=function(){var t=eR(this),e=this.$button;if(this.menu.getTitle){var r=this.menu.getTitle(t),n=this.menu.iconSvg;r&&n&&zF(e,n,r)}},t.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},t}(),$F=function(t){function e(e,r,n){return void 0===n&&(n=!1),t.call(this,e,r,n)||this}return DO(e,t),e.prototype.onButtonClick=function(){},e}(HF),UF=function(){function t(t){this.isShow=!1,this.showTime=0,this.record(t)}return t.prototype.record=function(t){var e=Hx.get(t);null==e&&(e=new Set,Hx.set(t,e)),e.add(this),$x.set(this,t)},t.prototype.renderContent=function(t){var e=this.$elem;e.empty(),e.append(t);var r=this.genSelfElem();r&&e.append(r)},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=$x.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=$x.get(this);t&&t.emit("modalOrPanelHide")}},t}(),VF=function(t){function e(e){var r=t.call(this,e)||this;return r.type="dropPanel",r.$elem=og('<div class="w-e-drop-panel"></div>'),r}return DO(e,t),e.prototype.genSelfElem=function(){return null},e}(UF),GF=function(t){function e(e,r,n){void 0===n&&(n=!1);var o=t.call(this,e,r,n)||this;if(o.dropPanel=null,o.menu=r,r.showDropPanel){var i=jF();o.$button.append(i)}return o}return DO(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=eR(this);if(null==this.dropPanel){var r=new VF(e),n=t.getPanelContentElem(e);r.renderContent(n),r.appendTo(this.$elem),r.show(),this.dropPanel=r}else{var o=this.dropPanel;o.isShow?o.hide():(n=t.getPanelContentElem(e),o.renderContent(n),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}(HF),WF=function(t){function e(e,r){void 0===r&&(r=0);var n=t.call(this,e)||this;n.type="modal",n.$elem=og('<div class="w-e-modal"></div>'),n.width=0,r&&(n.width=r);var o=n.$elem;return o.on("click",function(t){return t.stopPropagation()}),o.on("keyup",function(t){"Escape"===t.code&&(n.hide(),e.restoreSelection())}),n}return DO(e,t),e.prototype.genSelfElem=function(){var t=this,e=og('<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>")),r=$x.get(this);return e.on("click",function(){t.hide(),null==r||r.restoreSelection()}),e},e.prototype.setStyle=function(t){var e=this.width,r=this.$elem;r.attr("style",""),e&&r.css("width","".concat(e,"px")),r.css(t)},e}(UF);function qF(t,e,r){var n=og('<label class="babel-container"></label>');n.append("<span>".concat(t,"</span>"));var o=og('<input type="text" id="'.concat(e,'" placeholder="').concat(r||"",'">'));return n.append(o),[n[0],o[0]]}function KF(t,e,r){var n=og('<label class="babel-container"></label>');n.append("<span>".concat(t,"</span>"));var o=og('<textarea type="text" id="'.concat(e,'" placeholder="').concat(r||"",'"></textarea>'));return n.append(o),[n[0],o[0]]}function YF(t,e){var r=og('<div class="button-container"></div>'),n=og('<button type="button" id="'.concat(t,'">').concat(e,"</button>"));return r.append(n),[r[0],n[0]]}var XF=function(t){function e(e,r,n){void 0===n&&(n=!1);var o=t.call(this,e,r,n)||this;return o.$body=og("body"),o.modal=null,o.menu=r,o}return DO(e,t),e.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},e.prototype.getPosition=function(){var t=eR(this),e=this.menu.getModalPositionNode(t);return $h.isElement(e)?_I(t,e,"modal"):LI(t)},e.prototype.handleModal=function(){var t=eR(this),e=this.menu;if(null==this.modal){var r=new WF(t,e.modalWidth);this.renderAndShowModal(r,!0),this.modal=r}else(r=this.modal).isShow?r.hide():this.renderAndShowModal(r,!1)},e.prototype.renderAndShowModal=function(t,e){void 0===e&&(e=!1);var r=eR(this),n=this.menu;if(null!=n.getModalContentElem){var o=CB.getTextarea(r),i=CB.getToolbar(r),u=((null==i?void 0:i.getConfig())||{}).modalAppendToBody,a=n.getModalContentElem(r);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||jI(r,t.$elem),setTimeout(function(){r.blur()})}},e}(HF),JF=function(t){function e(e,r){var n=t.call(this,e)||this;return n.type="selectList",n.$elem=og('<div class="w-e-select-list"></div>'),r&&n.$elem.css("width","".concat(r,"px")),n.$elem.on("click",function(t){t.stopPropagation()}),n}return DO(e,t),e.prototype.renderList=function(t){var e=this.$elem;e.empty();var r=og("<ul></ul>");t.forEach(function(t){var e=t.value,n=t.text,o=t.selected,i=t.styleForRenderMenuList,u=og('<li data-value="'.concat(e,'"></li>'));if(i&&u.css(i),o){var a=og('<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(og('<span data-value="'.concat(e,'">').concat(n,"</span>"))),u.attr("title",n),r.append(u)}),e.append(r)},e.prototype.genSelfElem=function(){return null},e}(UF),ZF=function(){function t(t,e,r){void 0===r&&(r=!1);var n=this;this.$elem=og('<div class="w-e-bar-item"></div>'),this.$button=og('<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),zF(f,s,i,l,r),this.$elem.append(f),this.menu=e,OP(function(){return n.init()})}return t.prototype.init=function(){var t=this;this.setSelectedValue(),this.$button.on("click",function(e){e.preventDefault(),eR(t).hidePanelOrModal(),t.trigger()})},t.prototype.trigger=function(){var t=this,e=eR(this);if(!e.isDisabled()&&!this.disabled){var r=this.menu;if(null==this.selectList){this.selectList=new JF(e,r.selectPanelWidth);var n=this.selectList,o=r.getOptions(e);n.renderList(o),n.appendTo(this.$elem),n.show(),n.$elem.on("click","li",function(e){var r=e.target;if(null!=r){e.preventDefault();var n=og(r).attr("data-value");t.onChange(n)}})}else(n=this.selectList).isShow?n.hide():(o=r.getOptions(e),n.renderList(o),n.show())}},t.prototype.onChange=function(t){var e=eR(this),r=this.menu;r.exec&&r.exec(e,t)},t.prototype.setSelectedValue=function(){var t=eR(this),e=this.menu,r=e.getValue(t),n=function(t,e){for(var r=t.length,n="",o=0;o<r;o++){var i=t[o];if(i.value===e){n=i.text;break}}return n}(e.getOptions(t),r.toString()),o=this.$button,i=jF();o.empty(),o.text(n),o.append(i)},t.prototype.setDisabled=function(){var t=eR(this),e=this.menu.isDisabled(t),r=this.$button;(null==t.selection||t.isDisabled())&&(e=!0);var n="disabled";e?r.addClass(n):r.removeClass(n),this.disabled=e},t.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},t}(),QF=function(){function t(t){this.$elem=og('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=og('<div class="w-e-bar-item-menus-container"></div>'),this.$button=og('<button type="button"></button>');var e=t.key,r=t.iconSvg,n=t.title,o=this.$elem,i=this.$button;if(r){var u=og(r);_F(u),i.append(u)}else i.text(n);i.attr("data-menu-key",e);var a=jF();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,r=this.$button,n=new MutationObserver(function(){var o=e.find("button"),i=o.length;if(0!==i){var u=0;o.each(function(t){og(t).hasClass("disabled")&&u++}),n.disconnect(),u===i?r.addClass("disabled"):r.removeClass("disabled"),t.observe(n)}});return n},t}(),tR=new WeakMap;function eR(t){var e=zx.get(t);if(null==e)throw new Error("Can not get editor instance");return e}function rR(t,e,r){void 0===r&&(r=!1);var n=tR.get(e);if(n)return n;var o=e.tag;if("button"===o){var i=e.showDropPanel,u=e.showModal;n=i?new GF(t,e,r):u?new XF(t,e,r):new $F(t,e,r)}if("select"===o&&(n=new ZF(t,e,r)),null==n)throw new Error("Invalid tag in menu ".concat(JSON.stringify(e)));return tR.set(e,n),n}function nR(t,e){var r=t.selection;return null!=r&&!dv.isCollapsed(r)&&!CB.getSelectedElems(t).some(function(e){if(t.isVoid(e))return!0;var r=e.type;return!!["pre","code","table"].includes(r)})&&!!wv.isText(e)}var oR,iR=function(){function t(){var t=this;this.$elem=og('<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=Kg(function(){var e=t.isShow,r=t.getSelectedNodeAndMenuKeys()||{},n=r.node,o=void 0===n?null:n,i=r.menuKeys,u=void 0===i?[]:i,a=t.getEditorInstance();if(null!=o&&t.changeItemsState(),o&&$h.isElement(o)&&e){var s=t.isSamePath(o,t.prevSelectedNode);if(!Kh.isBlock(a,o)&&s)return}t.hideAndClean(),null!=o&&(t.registerItems(u),t.setPosition(o),t.show()),t.prevSelectedNode=o},200),OP(function(){var e=t.getEditorInstance(),r=t.$elem;r.on("mousedown",function(t){return t.preventDefault()},{passive:!1}),CB.getTextarea(e).$textAreaContainer.append(r),e.on(BO,t.changeHoverbarState);var n=t.hideAndClean.bind(t);e.on(IO,n),e.on("fullscreen",n),e.on("unFullScreen",n)}),this.lngListen=RF(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,r="undefined"!=typeof window?window.innerHeight:null;r&&r>=360&&r-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;OP(function(){t.hoverbarItems.forEach(function(t){t.changeMenuState()})})},t.prototype.registerItems=function(t){var e=this,r=this.$elem;t.forEach(function(t){if("|"!==t)e.registerSingleItem(t);else{var n=MF();r.append(n)}})},t.prototype.registerSingleItem=function(t){var e=this.getEditorInstance(),r=this.menus,n=r[t];if(null==n){var o=FO[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"));n=o(),r[t]=n}var i=e.getMenuConfig(t);i&&void 0!==i.iconSvg&&(n.iconSvg=i.iconSvg);var u=rR(t,n);this.hoverbarItems.push(u),zx.set(u,e),this.$elem.append(u.$elem)},t.prototype.setPosition=function(t){var e=this.getEditorInstance(),r=this.$elem;if(r.attr("style",""),$h.isElement(t)){var n=_I(e,t,"bar");return r.css(n),void jI(e,r)}if(wv.isText(t))return n=LI(e),r.css(n),void jI(e,r);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(),r=null,n=[],o=function(o){var i=e[o],u=i.match,a=i.menuKeys,s=void 0===a?[]:a,c=u||function(t,e){return CB.checkNodeType(e,o)},l=TO(Kh.nodes(t,{match:function(e){return c(t,e)},universal:!0}),1),f=l[0];if(null!=f)return r=f[0],n=s,"break"};for(var i in e)if("break"===o(i))break;return null==r||0===n.length?null:{node:r,menuKeys:n}},t.prototype.getEditorInstance=function(){var t=jx.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,r=e.text;return r&&null==r.match&&(r.match=nR),e},t.prototype.isSamePath=function(t,e){if(null==t||null==e)return!1;var r=CB.findPath(null,t),n=CB.findPath(null,e);return ov.equals(r,n)},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}(),uR={};function aR(t,e){return kP(e)&&CB.hasDOMNode(t,e,{editable:!0})}function sR(t,e){if(t.getConfig().readOnly)return!1;var r=cR(t,e)&&CB.toSlateNode(t,e);return Kh.isVoid(t,r)}function cR(t,e){return kP(e)&&CB.hasDOMNode(t,e)}!function(){if(oR)return uR;oR=1;var t,e=ND(),r=fO(),n=$S().f,o=GC(),i=IA(),u=kT(),a=Gw(),s=PT(),c=kS(),l=r("".slice),f=Math.min,d=s("startsWith");e({target:"String",proto:!0,forced:!(!c&&!d&&(t=n(String.prototype,"startsWith"),t&&!t.writable)||d)},{startsWith:function(t){var e=i(a(this));u(t);var r=o(f(arguments.length>1?arguments[1]:void 0,e.length)),n=i(t);return l(e,r,r+n.length)===n}})}();const lR=t=>"object"==typeof t&&null!=t&&1===t.nodeType,fR=(t,e)=>(!e||"hidden"!==t)&&"visible"!==t&&"clip"!==t,dR=(t,e)=>{if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){const r=getComputedStyle(t,null);return fR(r.overflowY,e)||fR(r.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},pR=(t,e,r,n,o,i,u,a)=>i<t&&u>e||i>t&&u<e?0:i<=t&&a<=r||u>=e&&a>=r?i-t-n:u>e&&a<r||i<t&&a>r?u-e+o:0,hR=t=>{const e=t.parentElement;return null==e?t.getRootNode().host||null:e},vR=(t,e)=>{var r,n,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(!lR(t))throw new TypeError("Invalid target");const d=document.scrollingElement||document.documentElement,p=[];let h=t;for(;lR(h)&&f(h);){if(h=hR(h),h===d){p.push(h);break}null!=h&&h===document.body&&dR(h)&&!dR(document.documentElement)||null!=h&&dR(h,l)&&p.push(h)}const v=null!=(n=null==(r=window.visualViewport)?void 0:r.width)?n: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,k="center"===s?D+E/2-T+A:"end"===s?S+A:D-T;const P=[];for(let t=0;t<p.length;t++){const e=p[t],{height:r,width:n,top:o,right:i,bottom:c,left:l}=e.getBoundingClientRect();if("if-needed"===u&&w>=0&&D>=0&&C<=g&&S<=v&&(e===d&&!dR(e)||w>=o&&C<=c&&D>=l&&S<=i))return P;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,B=0;const I="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:n/e.offsetWidth:0,L="offsetHeight"in e?0===e.offsetHeight?0:r/e.offsetHeight:0;if(d===e)T="start"===a?N:"end"===a?N-g:"nearest"===a?pR(m,m+g,g,O,x,m+N,m+N+b,b):N-g/2,B="start"===s?k:"center"===s?k-v/2:"end"===s?k-v:pR(y,y+v,v,h,A,y+k,y+k+E,E),T=Math.max(0,T+m),B=Math.max(0,B+y);else{T="start"===a?N-o-O:"end"===a?N-c+x+F:"nearest"===a?pR(o,c,r,O,x+F,N,N+b,b):N-(o+r/2)+F/2,B="start"===s?k-l-h:"center"===s?k-(l+n/2)+I/2:"end"===s?k-i+A+I:pR(l,i,n,h,A+I,k,k+E,E);const{scrollLeft:t,scrollTop:u}=e;T=0===L?0:Math.max(0,Math.min(u+T/L,e.scrollHeight-r/L+F)),B=0===R?0:Math.max(0,Math.min(t+B/R,e.scrollWidth-n/R+I)),N+=u-T,k+=t-B}P.push({el:e,top:T,left:B})}return P};function gR(t,e,r){void 0===r&&(r=!1);var n=e.selection,o=e.getConfig(),i=CB.findDocumentOrShadowRoot(e).getSelection();if(i&&(!t.isComposing||r)&&e.isFocused()){var u="None"!==i.type;if(n||u){var a=Jx.get(e),s=!1;if(a.contains(i.anchorNode)&&a.contains(i.focusNode)&&(s=!0),u&&s&&n){var c=CB.toSlateRange(e,i,{exactMatch:!0,suppressThrow:!0});if(c&&dv.equals(c,n)){var l=!0;if(dv.isCollapsed(n)){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(!n||CB.hasRange(e,n)){t.isUpdatingSelection=!0;var v=n&&CB.toDOMRange(e,n);if(v){dv.isBackward(n)?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 r=(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(vR(t,e));const n="boolean"==typeof e||null==e?void 0:e.behavior;for(const{el:o,top:i,left:u}of vR(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-r.top+r.bottom,e=u-r.left+r.right;o.scroll({top:t,left:e,behavior:n})}})(g,{scrollMode:"if-needed",boundary:o.scroll?a.parentElement:y,block:"end",behavior:"smooth"}),delete g.getBoundingClientRect}}else i.removeAllRanges();setTimeout(function(){v&&yB&&a.focus(),t.isUpdatingSelection=!1})}else e.selection=CB.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})}}}var yR=new WeakMap,mR=new WeakMap,bR={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"},ER={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"},wR={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},SR=function(t){var e=bR[t],r=ER[t],n=wR[t],o=e&&Qg.isKeyHotkey(e),i=r&&Qg.isKeyHotkey(r),u=n&&Qg.isKeyHotkey(n);return function(t){return!(!o||!o(t))||!!(gB&&i&&i(t))||!(gB||!u||!u(t))}},CR={isBold:SR("bold"),isCompose:SR("compose"),isMoveBackward:SR("moveBackward"),isMoveForward:SR("moveForward"),isDeleteBackward:SR("deleteBackward"),isDeleteForward:SR("deleteForward"),isDeleteLineBackward:SR("deleteLineBackward"),isDeleteLineForward:SR("deleteLineForward"),isDeleteWordBackward:SR("deleteWordBackward"),isDeleteWordForward:SR("deleteWordForward"),isExtendBackward:SR("extendBackward"),isExtendForward:SR("extendForward"),isExtendLineBackward:SR("extendLineBackward"),isExtendLineForward:SR("extendLineForward"),isItalic:SR("italic"),isMoveLineBackward:SR("moveLineBackward"),isMoveLineForward:SR("moveLineForward"),isMoveWordBackward:SR("moveWordBackward"),isMoveWordForward:SR("moveWordForward"),isRedo:SR("redo"),isSplitBlock:SR("splitBlock"),isTransposeCharacter:SR("transposeCharacter"),isUndo:SR("undo"),isTab:SR("tab"),isSelectAll:SR("selectAll")};function DR(t){t.preventDefault()}var OR,AR,xR,TR={beforeinput:function(t,e,r){var n=t,o=r.getConfig().readOnly;if(SB&&!o&&aR(r,n.target)){var i=r.selection,u=n.inputType,a=n.dataTransfer||n.data||void 0;if("insertCompositionText"!==u&&"deleteCompositionText"!==u){if(n.preventDefault(),!u.startsWith("delete")||u.startsWith("deleteBy")){var s=TO(n.getTargetRanges(),1)[0];if(s){var c=CB.toSlateRange(r,s,{exactMatch:!1,suppressThrow:!1});i&&dv.equals(i,c)||zv.select(r,c)}}if(i&&dv.isExpanded(i)){var l=CB.getSelectedElems(r),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 Kh.deleteFragment(r,{direction:p})}}switch(u){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":Kh.deleteFragment(r);break;case"deleteContent":case"deleteContentForward":Kh.deleteForward(r);break;case"deleteContentBackward":Kh.deleteBackward(r);break;case"deleteEntireSoftLine":Kh.deleteBackward(r,{unit:"line"}),Kh.deleteForward(r,{unit:"line"});break;case"deleteHardLineBackward":Kh.deleteBackward(r,{unit:"block"});break;case"deleteSoftLineBackward":Kh.deleteBackward(r,{unit:"line"});break;case"deleteHardLineForward":Kh.deleteForward(r,{unit:"block"});break;case"deleteSoftLineForward":Kh.deleteForward(r,{unit:"line"});break;case"deleteWordBackward":Kh.deleteBackward(r,{unit:"word"});break;case"deleteWordForward":Kh.deleteForward(r,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":Kh.insertBreak(r);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if("insertFromPaste"===u&&!uT.get(r))break;!function(t){return"[object DataTransfer]"===xP(t)}(a)?"string"==typeof a&&Kh.insertText(r,a):r.insertData(a)}}}},blur:function(t,e,r){var n=t,o=e.isUpdatingSelection,i=e.latestElement;if(!r.getConfig().readOnly&&!o&&aR(r,n.target)){var u=CB.findDocumentOrShadowRoot(r);if(i!==u.activeElement){var a=n.relatedTarget;if(!(a===CB.toDOMNode(r,r)||BP(a)&&a.hasAttribute("data-slate-spacer"))){if(null!=a&&kP(a)&&CB.hasDOMNode(r,a)){var s=CB.toSlateNode(r,a);if($h.isElement(s)&&!r.isVoid(s))return}if(mB){var c=u.getSelection();null==c||c.removeAllRanges()}nT.delete(r)}}}},focus:function(t,e,r){var n=CB.toDOMNode(r,r),o=CB.findDocumentOrShadowRoot(r);e.latestElement=o.activeElement,yB&&t.target!==n?n.focus():nT.set(r,!0)},click:function(t,e,r){if(!r.getConfig().readOnly&&cR(r,t.target)&&kP(t.target)){var n=CB.toSlateNode(r,t.target),o=CB.findPath(r,n);if(Kh.hasPath(r,o)&&tv.get(r,o)===n){var i=Kh.start(r,o),u=Kh.end(r,o),a=Kh.void(r,{at:i}),s=Kh.void(r,{at:u});if(a&&s&&ov.equals(a[1],s[1])){var c=Kh.range(r,i);zv.select(r,c)}}}},compositionstart:function(t,e,r){if(aR(r,t.target)){var n=r.selection;if(n&&dv.isExpanded(n)&&(Kh.deleteFragment(r),Promise.resolve().then(function(){gR(e,r,!0)})),r.selection){var o=CB.toDOMRange(r,r.selection).startContainer,i=o.textContent||"";yR.set(r,i),mR.set(r,o)}e.isComposing=!0,function(t,e){var r;e.getConfig().placeholder&&e.isEmpty()&&t.showPlaceholder&&(null===(r=t.$placeholder)||void 0===r||r.hide(),t.showPlaceholder=!1)}(e,r)}},compositionend:function(t,e,r){var n=t;if(aR(r,n.target)){e.isComposing=!1;var o=r.selection;if(null!=o){(wB||yB)&&CB.cleanExposedTexNodeInSelectionBlock(r);for(var i=dv.isBackward(o)?o.focus:o.anchor,u=TO(Kh.node(r,[i.path[0]]),1)[0],a=0;a<i.path.length;a+=1){var s=TO(Kh.node(r,i.path.slice(0,a+1)),1)[0];if($h.isElement(s)&&((mB||yB)&&"link"===s.type||"code"===s.type)){CB.setNewKey(u);break}}var c=n.data;if(c){if(r.getConfig().maxLength){var l=CB.getLeftLengthOfMaxLength(r);if(l<c.length){var f=CB.toDOMRange(r,o);f.startContainer.nodeType===Node.TEXT_NODE&&(f.startContainer.textContent=yR.get(r)||""),l>0&&Kh.insertText(r,c.slice(0,l)),e.changeViewState()}else Kh.insertText(r,c)}else{var d=CB.findDocumentOrShadowRoot(r).getSelection();d&&function(t,e){if(dv.isCollapsed(e)){var r=e.anchor,n=e.focus;if([2,3].includes(r.path.length)&&[2,3].includes(n.path.length)&&(0===r.offset||0===n.offset)){var o=Kh.node(t,r.path),i=0===r.offset?r.path:n.path,u=[i[0],i[1]-1];if(0===i[1])return!1;var a=Kh.node(t,u);if(wv.isText(a[0])&&wv.isText(o[0]))return!0}}}(r,o)&&(r.selection=CB.toSlateRange(r,d,{exactMatch:!1,suppressThrow:!1})),Kh.insertText(r,c)}mB||setTimeout(function(){var t=r.selection;if(null!=t){var e=mR.get(r);null!=e&&CB.toDOMRange(r,t).startContainer!==e&&(e.textContent=yR.get(r)||"")}})}}}},compositionupdate:function(t,e,r){aR(r,t.target)&&(e.isComposing=!0)},keydown:function(t,e,r){var n=t,o=r.selection;if(!r.getConfig().readOnly&&!e.isComposing&&aR(r,n.target)){if(function(t,e){var r=_x.get(t),n=r&&r.getMenus(),o=Mx.get(t),i=o&&o.getMenus(),u=OO(OO({},n),i);for(var a in u){var s=u[a],c=s.hotkey;if(c&&Qg.isHotkey(c,e)&&!s.isDisabled(t)){var l=s.getValue(t);s.exec(t,l)}}}(r,n),CR.isTab(n))return DR(n),void r.handleTab();if(CR.isRedo(n))return DR(n),void("function"==typeof r.redo&&r.redo());if(CR.isUndo(n))return DR(n),void("function"==typeof r.undo&&r.undo());if(CR.isMoveLineBackward(n))return DR(n),void zv.move(r,{unit:"line",reverse:!0});if(CR.isMoveLineForward(n))return DR(n),void zv.move(r,{unit:"line"});if(CR.isExtendLineBackward(n))return DR(n),void zv.move(r,{unit:"line",edge:"focus",reverse:!0});if(CR.isExtendLineForward(n))return DR(n),void zv.move(r,{unit:"line",edge:"focus"});if(CR.isMoveBackward(n))return DR(n),void(o&&dv.isCollapsed(o)?zv.move(r,{reverse:!0}):zv.collapse(r,{edge:"start"}));if(CR.isMoveForward(n))return DR(n),void(o&&dv.isCollapsed(o)?zv.move(r):zv.collapse(r,{edge:"end"}));if(CR.isMoveWordBackward(n))return DR(n),o&&dv.isExpanded(o)&&zv.collapse(r,{edge:"focus"}),void zv.move(r,{unit:"word",reverse:!0});if(CR.isMoveWordForward(n))return DR(n),o&&dv.isExpanded(o)&&zv.collapse(r,{edge:"focus"}),void zv.move(r,{unit:"word"});if(CR.isSelectAll(n))return DR(n),void r.selectAll();if(SB){if((wB||mB)&&o&&(CR.isDeleteBackward(n)||CR.isDeleteForward(n))&&dv.isCollapsed(o)){var i=tv.parent(r,o.anchor.path);if($h.isElement(i)&&Kh.isVoid(r,i)&&Kh.isInline(r,i))return n.preventDefault(),void zv.delete(r,{unit:"block"})}}else{if(CR.isBold(n)||CR.isItalic(n)||CR.isTransposeCharacter(n))return void DR(n);if(CR.isSplitBlock(n))return DR(n),void Kh.insertBreak(r);if(CR.isDeleteBackward(n))return DR(n),void(o&&dv.isExpanded(o)?Kh.deleteFragment(r,{direction:"backward"}):Kh.deleteBackward(r));if(CR.isDeleteForward(n))return DR(n),void(o&&dv.isExpanded(o)?Kh.deleteFragment(r,{direction:"forward"}):Kh.deleteForward(r));if(CR.isDeleteLineBackward(n))return DR(n),void(o&&dv.isExpanded(o)?Kh.deleteFragment(r,{direction:"backward"}):Kh.deleteBackward(r,{unit:"line"}));if(CR.isDeleteLineForward(n))return DR(n),void(o&&dv.isExpanded(o)?Kh.deleteFragment(r,{direction:"forward"}):Kh.deleteForward(r,{unit:"line"}));if(CR.isDeleteWordBackward(n))return DR(n),void(o&&dv.isExpanded(o)?Kh.deleteFragment(r,{direction:"backward"}):Kh.deleteBackward(r,{unit:"word"}));if(CR.isDeleteWordForward(n))return DR(n),void(o&&dv.isExpanded(o)?Kh.deleteFragment(r,{direction:"forward"}):Kh.deleteForward(r,{unit:"word"}))}}},keypress:function(t,e,r){if(!SB&&!r.getConfig().readOnly&&aR(r,t.target)){t.preventDefault();var n=t.key;Kh.insertText(r,n)}},copy:function(t,e,r){var n=t;if(aR(r,n.target)){r.getConfig().readOnly||n.preventDefault();var o=n.clipboardData;if(null!=o){r.setFragmentData(o);var i=r.getConfig().customCopy;i&&i(r,n)}}},cut:function(t,e,r){var n=t,o=r.selection;if(!r.getConfig().readOnly&&(n.preventDefault(),aR(r,n.target))){var i=n.clipboardData;if(null!=i&&(r.setFragmentData(i),o))if(dv.isExpanded(o))Kh.deleteFragment(r);else{var u=tv.parent(r,o.anchor.path);Kh.isVoid(r,u)&&zv.delete(r)}}},paste:function(t,e,r){uT.set(r,!0);var n=t;if(!r.getConfig().readOnly&&aR(r,n.target)){var o=r.getConfig().customPaste;if(o&&!1===o(r,n))return void uT.set(r,!1);if(mB||!SB||function(t){return t.clipboardData&&""!==t.clipboardData.getData("text/plain")&&1===t.clipboardData.types.length}(n)){n.preventDefault();var i=n.clipboardData;null!=i&&r.insertData(i)}}},dragover:function(t,e,r){if(cR(r,t.target)){var n=CB.toSlateNode(r,t.target);Kh.isVoid(r,n)&&t.preventDefault()}},dragstart:function(t,e,r){var n=t;if(cR(r,n.target)&&!r.getConfig().readOnly){var o=CB.toSlateNode(r,n.target),i=CB.findPath(r,o);if(Kh.isVoid(r,o)||Kh.void(r,{at:i,voids:!0})){var u=Kh.range(r,i);zv.select(r,u)}var a=n.dataTransfer;null!=a&&(CB.getSelectedNodeByType(r,"table")||(e.isDraggingInternally=!0,r.setFragmentData(a)))}},dragend:function(t,e,r){var n=t;r.getConfig().readOnly||e.isDraggingInternally&&cR(r,n.target)&&(e.isDraggingInternally=!1)},drop:function(t,e,r){var n=t,o=n.dataTransfer;if(!r.getConfig().readOnly&&cR(r,n.target)&&null!=o&&!(SB&&mB&&o.files.length>0)){n.preventDefault();var i=r.selection,u=CB.findEventRange(r,n);zv.select(r,u),e.isDraggingInternally&&(i&&zv.delete(r,{at:i}),e.isDraggingInternally=!1),r.insertData(o),r.isFocused()||r.focus()}}},NR={};!function(){if(xR)return NR;xR=1;var t=ND(),e=function(){if(AR)return OR;AR=1;var t=KE(),e=Hw(),r=XE(),n=qE(),o=$D(),i=AD(),u=Mw(),a=FS(),s=Uw(),c=Object.assign,l=Object.defineProperty,f=e([].concat);return OR=!c||n(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={},r={},n=Symbol("assign detection"),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach(function(t){r[t]=t}),7!==c({},e)[n]||o(c({},r)).join("")!==i})?function(e,n){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&&!r(h,g,v)||(c[v]=g[v]);return c}:c,OR}();t({target:"Object",stat:!0,arity:2,forced:Object.assign!==e},{assign:e})}();var kR=[];var PR={};function BR(t,e,r){return Ry(r.isInline(t)?"span":"div",null,e)}function IR(t,e){return void 0===e&&(e=!1),Ry("span",{"data-slate-string":!0},e?t+"\n":t)}function FR(t,e){return void 0===t&&(t=0),void 0===e&&(e=!1),Ry("span",{"data-slate-zero-width":e?"n":"z","data-slate-length":t},"\ufeff",e?Ry("br",null):null)}function RR(t,e,r,n){return Yx.set(t,e),Xx.set(t,r),$h.isElement(t)?function(t,e){var r,n=CB.findKey(e,t),o=e.isInline(t),i=Kh.isVoid(e,t),u=oB(t.type,n.id),a={id:u,key:n.id,"data-slate-node":"element","data-slate-inline":o},s=t.type,c=t.children,l=void 0===c?[]:c,f=function(t){return PR[t]||BR}(s);r=i?null:l.map(function(r,n){return RR(r,n,t,e)});var d=f(t,r,e);if(i){a["data-slate-void"]=!0;var p=o?"span":"div",h=TO(tv.texts(t),1),v=TO(h[0],1)[0],g=Ry(p,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},RR(v,0,t,e));d=Ry(p,{style:{position:"relative"}},d,g),Yx.set(v,0),Xx.set(v,t)}return null==d.data&&(d.data={}),Object.assign(d.data,a),i||o||(d=function(t,e){var r=e;return kR.forEach(function(n){r=n(t,e)}),r}(t,d)),OP(function(){var e=RP(u);null!=e&&(Qx.set(n,e),tT.set(t,e),Zx.set(e,t))}),d}(t,n):function(t,e,r){if(null==t.text)throw new Error("Current node is not slate Text ".concat(JSON.stringify(t)));var n=CB.findKey(r,t),o=r.getConfig().decorate;if(null==o)throw new Error("Can not get config.decorate");var i,u=CB.findPath(r,t),a=o([t,u]),s=wv.decorations(t,a),c=s.map(function(n,o){var i=function(t,e,r,n,o){void 0===e&&(e=!1);var i=t.text,u=CB.findPath(o,r),a=ov.parent(u);if(Kh.isEditor(n))throw new Error("Text node ".concat(JSON.stringify(r)," parent is Editor"));return o.isVoid(n)?FR(tv.string(n).length):""!==i||n.children[n.children.length-1]!==r||o.isInline(n)||""!==Kh.string(o,a)?""===i?FR():e&&"\n"===i.slice(-1)?IR(i,!0):IR(i):FR(0,!0)}(n,o===s.length-1,t,e,r);return i=function(t,e){var r=e;return kR.forEach(function(e){r=e(t,r)}),r}(n,i),Ry("span",{"data-slate-leaf":!0},i)}),l=(i=n.id,"w-e-text-".concat(i)),f=Ry("span",{"data-slate-node":"text",id:l,key:n.id},c);return OP(function(){var e=RP(l);null!=e&&(Qx.set(n,e),tT.set(t,e),Zx.set(e,t))}),f}(t,r,n)}var LR=["props","attrs","style","dataset","on","hook"];function _R(t){var e=t.data,r=void 0===e?{}:e,n=t.children,o=void 0===n?[]:n;Object.keys(r).forEach(function(e){var n,o,i=r[e];if("key"!==e){if(!LR.includes(e)){if(e.startsWith("data-")){var u=e.slice(5);return u=Vy(u),function(t,e){null==t.data&&(t.data={});var r=t.data;null==r.dataset&&(r.dataset={}),Object.assign(r.dataset,e)}(t,((n={})[u]=i,n)),void delete r[e]}!function(t,e){null==t.data&&(t.data={});var r=t.data;null==r.props&&(r.props={}),Object.assign(r.props,e)}(t,(o={},o[e]=i,o)),delete r[e]}}else t.key=i}),o.length>0&&o.forEach(function(t){"string"!=typeof t&&_R(t)})}function jR(t,e){var r,n,o=t.$scroll,i=(r=t.id,"w-e-textarea-".concat(r)),u=e.getConfig(),a=u.readOnly,s=u.autoFocus,c=function(t,e){return void 0===e&&(e=!1),vy("div#".concat(t),{props:{contentEditable:!e}})}(i,a),l=e.children||[];c.children=l.map(function(t,r){if(qx.has(t)){var n=qx.get(t);if(n){var o=TO(n,2),i=o[0],u=o[1];if(u)return i!==r&&(Yx.set(t,r),qx.set(t,[r,u])),u}}var a=RR(t,r,e,e);_R(a);var s=e.getConfig().skipCacheTypes,c=void 0===s?["list-item"]:s;return $h.isElement(t)&&c.includes(t.type)||qx.set(t,[r,a]),a});var f=Vx.get(t);if(null==f&&(f=!0),f){var d=function(t){return og('<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,n=d[0],(h=py([by,Ty,Iy,Sy,Ay,yy]))(n,c),Vx.set(t,!1),Gx.set(t,h)}else{var p=Wx.get(t),h=Gx.get(t);if(null==p||null==h)return;n=p.elm,h(p,c)}if(null!=n||null!=(n=RP(i))){if((f?s:e.isFocused())&&n.focus({preventScroll:!0}),f){var v=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||null}(n);v&&rT.set(e,v)}Jx.set(e,n),tT.set(e,n),Zx.set(n,e),Wx.set(t,c)}}var MR=1,zR=function(){function t(t){var e=this;this.id=MR++,this.$textArea=null,this.$progressBar=og('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=og('<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=Jg(function(){var t=e.editorInstance;!function(t,e){var r=t.isComposing,n=t.isUpdatingSelection,o=t.isDraggingInternally;if(!(e.getConfig().readOnly||r||n||o)){var i=CB.findDocumentOrShadowRoot(e),u=i.activeElement,a=CB.toDOMNode(e,e),s=i.getSelection();if(u!==a)return nT.delete(e),void zv.deselect(e);if(t.latestElement=u,nT.set(e,!0),!s)return zv.deselect(e);var c=s.anchorNode,l=s.focusNode,f=aR(e,c)||sR(e,c),d=aR(e,l)||sR(e,l);if(f&&d){var p=CB.toSlateRange(e,s,{exactMatch:!1,suppressThrow:!1});zv.select(e,p)}}}(e,t)},100);var r=og(t);if(0===r.length)throw new Error("Cannot find textarea DOM by selector '".concat(t,"'"));this.$box=r;var n=og('<div class="w-e-text-container"></div>');n.append(this.$progressBar),n.append(this.$maxLengthInfo),r.append(n);var o=og('<div class="w-e-scroll"></div>');n.append(o),this.$scroll=o,this.$textAreaContainer=n,OP(function(){var t=e.editorInstance,o=CB.getWindow(t);o.document.addEventListener("selectionchange",e.onDOMSelectionChange),t.on(PO,function(){o.document.removeEventListener("selectionchange",e.onDOMSelectionChange)}),n.on("click",function(){return t.hidePanelOrModal()}),t.on(BO,e.changeViewState.bind(e));var i=t.getConfig(),u=i.onChange,a=i.scroll;u&&t.on(BO,function(){return u(t)}),a||(r.css("position","relative"),n.addClass("no-scroll")),e.onFocusAndOnBlur(),t.on(BO,e.changeMaxLengthInfo.bind(e)),e.bindEvent()})}return Object.defineProperty(t.prototype,"editorInstance",{get:function(){var t=Rx.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,r=this.$scroll,n=this.editorInstance;null!=e&&(qv(TR,function(r,o){e.on(o,function(e){r(e,t,n)})}),n.getConfig().scroll&&(r.css("overflow-y","auto"),r.on("scroll",Jg(function(){n.emit("scroll")},100))))},t.prototype.onFocusAndOnBlur=function(){var t=this,e=this.editorInstance,r=e.getConfig(),n=r.onBlur,o=r.onFocus;this.latestEditorSelection=e.selection,e.on(BO,function(){null==t.latestEditorSelection&&null!=e.selection?setTimeout(function(){return o&&o(e)}):null!=t.latestEditorSelection&&null==e.selection&&setTimeout(function(){return n&&n(e)}),t.latestEditorSelection=e.selection})},t.prototype.changeMaxLengthInfo=function(){var t=this.editorInstance,e=t.getConfig().maxLength;if(e){var r=e-CB.getLeftLengthOfMaxLength(t);this.$maxLengthInfo[0].innerHTML="".concat(r,"/").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;jR(this,e),function(t,e){var r,n=e.getConfig().placeholder;if(n){var o=e.isEmpty();if(o&&!t.showPlaceholder&&!t.isComposing){if(null==t.$placeholder){var i=og('<div class="w-e-text-placeholder">'.concat(n,"</div>"));t.$textAreaContainer.append(i),t.$placeholder=i}return t.$placeholder.show(),void(t.showPlaceholder=!0)}!o&&t.showPlaceholder&&(null===(r=t.$placeholder)||void 0===r||r.hide(),t.showPlaceholder=!1)}}(this,e),OP(function(){gR(t,e)})},t.prototype.destroy=function(){this.$textAreaContainer.remove()},t}();function HR(t,e,r,n){if(Yx.set(t,e),Xx.set(t,r),$h.isElement(t)){var o=t.children;if((void 0===o?[]:o).forEach(function(e,r){return HR(e,r,t,n)}),Kh.isVoid(n,t)){var i=TO(tv.texts(t),1),u=TO(i[0],1)[0];Yx.set(u,0),Xx.set(u,t)}}}var $R="Textarea height < 300px. This may cause modal and hoverbar position error",UR="编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常";function VR(t){var e,r=t.selector,n=void 0===r?"":r,o=t.config,i=void 0===o?{}:o,u=t.content,a=t.html,s=t.plugins,c=void 0===s?[]:s,l=function(t){return[BI,yI,aT,vI,zI,PI,FI,EO].reduce(function(t,e){return e(t)},t)}((e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var r of Kh.pathRefs(e))iv.transform(r,t);for(var n of Kh.pointRefs(e))cv.transform(n,t);for(var o of Kh.rangeRefs(e))pv.transform(o,t);var i,u,a=oh.get(e)||[],s=ih.get(e)||new Set,c=t=>{if(t){var e=t.join(",");u.has(e)||(u.add(e),i.push(t))}};if(ov.operationCanTransformPath(t))for(var l of(i=[],u=new Set,a))c(ov.transform(l,t));else i=a,u=s;var f=e.getDirtyPaths(t);for(var d of f)c(d);oh.set(e,i),ih.set(e,u),zv.transform(e,t),e.operations.push(t),Kh.normalize(e),"set_selection"===t.type&&(e.marks=null),uh.get(e)||(uh.set(e,!0),Promise.resolve().then(()=>{uh.set(e,!1),e.onChange(),e.operations=[]}))},addMark:(t,r)=>{var{selection:n}=e;if(n)if(dv.isExpanded(n))zv.setNodes(e,{[t]:r},{match:wv.isText,split:!0});else{var o=dh(dh({},Kh.marks(e)||{}),{},{[t]:r});e.marks=o,uh.get(e)||e.onChange()}},deleteBackward:t=>{var{selection:r}=e;r&&dv.isCollapsed(r)&&zv.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:r}=e;r&&dv.isCollapsed(r)&&zv.delete(e,{unit:t})},deleteFragment:t=>{var{selection:r}=e;r&&dv.isExpanded(r)&&zv.delete(e,{reverse:"backward"===t})},getFragment:()=>{var{selection:t}=e;return t?tv.fragment(e,t):[]},insertBreak:()=>{zv.splitNodes(e,{always:!0})},insertSoftBreak:()=>{zv.splitNodes(e,{always:!0})},insertFragment:t=>{zv.insertFragment(e,t)},insertNode:t=>{zv.insertNodes(e,t)},insertText:t=>{var{selection:r,marks:n}=e;if(r){if(n){var o=dh({text:t},n);zv.insertNodes(e,o)}else zv.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[r,n]=t;if(!wv.isText(r))if($h.isElement(r)&&0===r.children.length)zv.insertNodes(e,{text:""},{at:n.concat(0),voids:!0});else for(var o=!Kh.isEditor(r)&&$h.isElement(r)&&(e.isInline(r)||0===r.children.length||wv.isText(r.children[0])||e.isInline(r.children[0])),i=0,u=0;u<r.children.length;u++,i++){var a=tv.get(e,n);if(!wv.isText(a)){var s=r.children[u],c=a.children[i-1],l=u===r.children.length-1;(wv.isText(s)||$h.isElement(s)&&e.isInline(s))!==o?(zv.removeNodes(e,{at:n.concat(i),voids:!0}),i--):$h.isElement(s)?e.isInline(s)&&(null!=c&&wv.isText(c)?l&&(zv.insertNodes(e,{text:""},{at:n.concat(i+1),voids:!0}),i++):(zv.insertNodes(e,{text:""},{at:n.concat(i),voids:!0}),i++)):null!=c&&wv.isText(c)&&(wv.equals(s,c,{loose:!0})?(zv.mergeNodes(e,{at:n.concat(i),voids:!0}),i--):""===c.text?(zv.removeNodes(e,{at:n.concat(i-1),voids:!0}),i--):""===s.text&&(zv.removeNodes(e,{at:n.concat(i),voids:!0}),i--))}}},removeMark:t=>{var{selection:r}=e;if(r)if(dv.isExpanded(r))zv.unsetNodes(e,t,{match:wv.isText,split:!0});else{var n=dh({},Kh.marks(e)||{});delete n[t],e.marks=n,uh.get(e)||e.onChange()}},getDirtyPaths:t=>{switch(t.type){case"insert_text":case"remove_text":case"set_node":var{path:e}=t;return ov.levels(e);case"insert_node":var{node:r,path:n}=t,o=ov.levels(n),i=wv.isText(r)?[]:Array.from(tv.nodes(r),t=>{var[,e]=t;return n.concat(e)});return[...o,...i];case"merge_node":var{path:u}=t;return[...ov.ancestors(u),ov.previous(u)];case"move_node":var{path:a,newPath:s}=t;if(ov.equals(a,s))return[];var c=[],l=[];for(var f of ov.ancestors(a)){var d=ov.transform(f,t);c.push(d)}for(var p of ov.ancestors(s)){var h=ov.transform(p,t);l.push(h)}var v=l[l.length-1],g=s[s.length-1],y=v.concat(g);return[...c,...l,y];case"remove_node":var{path:m}=t;return[...ov.ancestors(m)];case"split_node":var{path:b}=t;return[...ov.levels(b),ov.next(b)];default:return[]}}},e));if(n&&function(t,e){return rB(t,"data-w-e-textarea",e)}(l,n))throw new Error("Repeated create editor by selector '".concat(n,"'"));var f=function(t){void 0===t&&(t={});var e=Gv(kO),r={},n=t.MENU_CONF,o=void 0===n?{}:n;return qv(e,function(t,e){r[e]=OO(OO({},t),o[e]||{})}),delete t.MENU_CONF,OO({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:r,hoverbarKeys:{},customAlert:function(t,e){window.alert("".concat(e,":\n").concat(t))}},t)}(i);Ux.set(l,f);var d=f.hoverbarKeys,p=void 0===d?{}:d;if(c.forEach(function(t){l=t(l)}),function(t,e){var r=e.html,n=e.content;null!=r?t.children=nB(t,r):n&&n.length&&(t.children=n),0===t.children.length&&(t.children=[{type:"paragraph",children:[{text:""}]}])}(l,{html:a,content:u}),n){var h=new zR(n);Fx.set(l,h),Rx.set(h,l),h.changeViewState(),OP(function(){var t=h.$scroll;null!=t&&t.height()<300&&console.warn("".concat(UR,"\n").concat($R),{element:t,height:t.height()})});var v=void 0;Object.keys(p).length>0&&(v=new iR,jx.set(v,l),Mx.set(l,v)),l.on(BO,function(){l.hidePanelOrModal()}),l.on(IO,function(){l.hidePanelOrModal()})}else l.children.forEach(function(t,e){return HR(t,e,l,l)});var g=f.onCreated,y=f.onDestroyed;return g&&l.on("created",function(){return g(l)}),y&&l.on(PO,function(){return y(l)}),OP(function(){return l.emit("created")}),l}var GR,WR,qR,KR,YR,XR={};!function(){if(YR)return XR;YR=1;var t=ND(),e=FS(),r=VC(),n=UC(),o=WC(),i=function(){if(WR)return GR;WR=1;var t=KE(),e=kD(),r=TypeError,n=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 GR=o?function(t,o){if(e(t)&&!n(t,"length").writable)throw new r("Cannot set read only .length");return t.length=o}:function(t,e){return t.length=e}}(),u=PD(),a=LD(),s=BD(),c=function(){if(KR)return qR;KR=1;var t=rS(),e=TypeError;return qR=function(r,n){if(!delete r[n])throw new e("Cannot delete property "+t(n)+" of "+t(r))}}(),l=_D()("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=r(t,E),S=arguments.length;for(0===S?p=h=0:1===S?(p=0,h=E-w):(p=S-2,h=d(f(n(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 JR=function(){function t(t,e){var r=this;this.$toolbar=og('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.lngListen=function(){},this.changeToolbarState=Kg(function(){r.toolbarItems.forEach(function(t){t.changeMenuState()})},200),this.config=e;var n=og(t);if(0===n.length)throw new Error("Cannot find toolbar DOM by selector '".concat(t,"'"));this.$box=n;var o=this.$toolbar;o.on("mousedown",function(t){return t.preventDefault()},{passive:!1}),n.append(o),OP(function(){r.initToolbar(),r.lngListen=RF(function(){return r.initToolbar()}),r.getEditorInstance().on(BO,r.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="",r=this.$toolbar,n=this.config,o=n.toolbarKeys,i=void 0===o?[]:o,u=n.insertKeys,a=void 0===u?{index:0,keys:[]}:u,s=n.excludeKeys,c=void 0===s?[]:s,l=Gv(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(n,o){if("|"===n){if(0===o)return;if(o+1===d)return;if("|"===e)return;var i=MF();return r.append(i),void(e=n)}if("string"==typeof n)return t.registerSingleItem(n,t),void(e=n);t.registerGroup(n),e="group"})},t.prototype.registerGroup=function(t){var e=this,r=this.$toolbar,n=function(t){return new QF(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,n)}),r.append(n.$elem)},t.prototype.registerSingleItem=function(t,e){var r=this.getEditorInstance(),n=e instanceof QF,o=this.menus,i=o[t];if(null==i){var u=FO[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=r.getMenuConfig(t);a&&void 0!==a.iconSvg&&(i.iconSvg=a.iconSvg);var s=rR(t,i,n);this.toolbarItems.push(s),zx.set(s,r),n?e.appendBarItem(s):e.$toolbar.append(s.$elem)},t.prototype.getEditorInstance=function(){var t=Lx.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 ZR,QR={};function tL(t){var e=t.server,r=void 0===e?"":e,n=t.fieldName,o=void 0===n?"":n,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,r){console.error("".concat(t.name," upload error"),e,r)}:C,O=t.onProgress,A=void 0===O?function(t){}:O;if(!r)throw new Error("Cannot get upload server address\n没有配置上传地址");if(!o)throw new Error("Cannot get fieldName\n没有配置 fieldName");var x=r;d&&(x=function(t,e){var r=TO(t.split("#"),2),n=r[0],o=r[1],i=[];qv(e,function(t,e){i.push("".concat(e,"=").concat(t))});var u=i.join("&");return n=n.indexOf("?")>0?"".concat(n,"&").concat(u):"".concat(n,"?").concat(u),o?"".concat(n,"#").concat(o):n}(x,l));var T=new Xb(OO({onBeforeUpload:E,restrictions:{maxFileSize:u,maxNumberOfFiles:s},meta:l},t.uppyConfig)).use(BE,OO({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],r=e.response,n=(null!=r?r:{}).body,o=void 0===n?{}:n;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,r){try{D(t,e,r)}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(ZR)return QR;ZR=1;var t=KE(),e=yC().EXISTS,r=Hw(),n=nN(),o=Function.prototype,i=r(o.toString),u=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,a=r(u.exec);t&&!e&&n(o,"name",{configurable:!0,get:function(){try{return a(u,i(this))[1]}catch(t){return""}}})}();BF("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),BF("zh-CN",{editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}});var eL,rL,nL,oL,iL,uL,aL,sL,cL,lL,fL,dL,pL,hL,vL,gL={};function yL(){if(rL)return eL;rL=1;var t=D();return eL=Array.isArray||function(e){return"Array"===t(e)}}function mL(){if(oL)return nL;oL=1;var t=C(),e=w(),r=yt(),n=kn(),o=He(),i=Dr(),u=function(){},a=o("Reflect","construct"),s=/^\s*(?:class|function)\b/,c=t(s.exec),l=!s.test(u),f=function(t){if(!r(t))return!1;try{return a(u,[],t),!0}catch(t){return!1}},d=function(t){if(!r(t))return!1;switch(n(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return l||!!c(s,i(t))}catch(t){return!0}};return d.sham=!0,nL=!a||e(function(){var t;return f(f.call)||!f(Object)||!f(function(){t=!0})||t})?d:f}function bL(){if(uL)return iL;uL=1;var t=yL(),e=mL(),r=mt(),n=gt()("species"),o=Array;return iL=function(i){var u;return t(i)&&(u=i.constructor,(e(u)&&(u===o||t(u.prototype))||r(u)&&null===(u=u[n]))&&(u=void 0)),void 0===u?o:u},iL}function EL(){if(sL)return aL;sL=1;var t=bL();return aL=function(e,r){return new(t(e))(0===r?0:r)}}function wL(){if(dL)return fL;dL=1;var t=w();return fL=function(e,r){var n=[][e];return!!n&&t(function(){n.call(null,r||function(){return 1},1)})}}function SL(){if(hL)return pL;hL=1;var t=function(){if(lL)return cL;lL=1;var t=Wo(),e=C(),r=O(),n=lt(),o=Ze(),i=EL(),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=n(h),w=r(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 cL={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=wL()("forEach");return pL=e?[].forEach:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)},pL}!function(){if(vL)return gL;vL=1;var t=N(),e=li(),r=fi(),n=SL(),o=sr(),i=function(t){if(t&&t.forEach!==n)try{o(t,"forEach",n)}catch(e){t.forEach=n}};for(var u in e)e[u]&&i(t[u]&&t[u].prototype);i(r)}(),BF("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"}}),BF("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 CL="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function DL(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var OL,AL,xL={};function TL(){if(AL)return OL;AL=1;var t=function(t){return t&&t.Math===Math&&t};return OL=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof CL&&CL)||t("object"==typeof OL&&OL)||function(){return this}()||Function("return this")()}var NL,kL,PL,BL,IL,FL,RL,LL,_L={};function jL(){return kL?NL:(kL=1,NL=function(t){try{return!!t()}catch(t){return!0}})}function ML(){if(BL)return PL;BL=1;var t=jL();return PL=!t(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function zL(){if(FL)return IL;FL=1;var t=jL();return IL=!t(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})}function HL(){if(LL)return RL;LL=1;var t=zL(),e=Function.prototype.call;return RL=t?e.bind(e):function(){return e.apply(e,arguments)},RL}var $L,UL,VL,GL,WL,qL,KL,YL,XL,JL,ZL,QL,t_,e_,r_,n_,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_={};function k_(){if($L)return N_;$L=1;var t={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,r=e&&!t.call({1:2},1);return N_.f=r?function(t){var r=e(this,t);return!!r&&r.enumerable}:t,N_}function P_(){return VL?UL:(VL=1,UL=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}})}function B_(){if(WL)return GL;WL=1;var t=zL(),e=Function.prototype,r=e.call,n=t&&e.bind.bind(r,r);return GL=t?n:function(t){return function(){return r.apply(t,arguments)}},GL}function I_(){if(KL)return qL;KL=1;var t=B_(),e=t({}.toString),r=t("".slice);return qL=function(t){return r(e(t),8,-1)}}function F_(){if(XL)return YL;XL=1;var t=B_(),e=jL(),r=I_(),n=Object,o=t("".split);return YL=e(function(){return!n("z").propertyIsEnumerable(0)})?function(t){return"String"===r(t)?o(t,""):n(t)}:n}function R_(){return ZL?JL:(ZL=1,JL=function(t){return null==t})}function L_(){if(t_)return QL;t_=1;var t=R_(),e=TypeError;return QL=function(r){if(t(r))throw new e("Can't call method on "+r);return r}}function __(){if(r_)return e_;r_=1;var t=F_(),e=L_();return e_=function(r){return t(e(r))}}function j_(){if(o_)return n_;o_=1;var t="object"==typeof document&&document.all;return n_=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(t){return"function"==typeof t}}function M_(){if(u_)return i_;u_=1;var t=j_();return i_=function(e){return"object"==typeof e?null!==e:t(e)}}function z_(){if(s_)return a_;s_=1;var t=TL(),e=j_();return a_=function(r,n){return arguments.length<2?(o=t[r],e(o)?o:void 0):t[r]&&t[r][n];var o},a_}function H_(){if(l_)return c_;l_=1;var t=B_();return c_=t({}.isPrototypeOf)}function $_(){if(d_)return f_;d_=1;var t=TL().navigator,e=t&&t.userAgent;return f_=e?String(e):""}function U_(){if(h_)return p_;h_=1;var t,e,r=TL(),n=$_(),o=r.process,i=r.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&&n&&(!(t=n.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=n.match(/Chrome\/(\d+)/))&&(e=+t[1]),p_=e}function V_(){if(g_)return v_;g_=1;var t=U_(),e=jL(),r=TL().String;return v_=!!Object.getOwnPropertySymbols&&!e(function(){var e=Symbol("symbol detection");return!r(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&t&&t<41})}function G_(){if(m_)return y_;m_=1;var t=V_();return y_=t&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function W_(){if(E_)return b_;E_=1;var t=z_(),e=j_(),r=H_(),n=G_(),o=Object;return b_=n?function(t){return"symbol"==typeof t}:function(n){var i=t("Symbol");return e(i)&&r(i.prototype,o(n))}}function q_(){if(S_)return w_;S_=1;var t=String;return w_=function(e){try{return t(e)}catch(t){return"Object"}}}function K_(){if(D_)return C_;D_=1;var t=j_(),e=q_(),r=TypeError;return C_=function(n){if(t(n))return n;throw new r(e(n)+" is not a function")}}function Y_(){if(A_)return O_;A_=1;var t=K_(),e=R_();return O_=function(r,n){var o=r[n];return e(o)?void 0:t(o)}}var X_,J_,Z_,Q_,tj,ej,rj,nj,oj,ij,uj,aj,sj,cj,lj,fj,dj,pj,hj,vj,gj,yj,mj,bj,Ej={exports:{}};function wj(){return J_?X_:(J_=1,X_=!1)}function Sj(){if(Q_)return Z_;Q_=1;var t=TL(),e=Object.defineProperty;return Z_=function(r,n){try{e(t,r,{value:n,configurable:!0,writable:!0})}catch(e){t[r]=n}return n}}function Cj(){if(tj)return Ej.exports;tj=1;var t=wj(),e=TL(),r=Sj(),n="__core-js_shared__",o=Ej.exports=e[n]||r(n,{});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"}),Ej.exports}function Dj(){if(rj)return ej;rj=1;var t=Cj();return ej=function(e,r){return t[e]||(t[e]=r||{})}}function Oj(){if(oj)return nj;oj=1;var t=L_(),e=Object;return nj=function(r){return e(t(r))}}function Aj(){if(uj)return ij;uj=1;var t=B_(),e=Oj(),r=t({}.hasOwnProperty);return ij=Object.hasOwn||function(t,n){return r(e(t),n)}}function xj(){if(sj)return aj;sj=1;var t=B_(),e=0,r=Math.random(),n=t(1.1.toString);return aj=function(t){return"Symbol("+(void 0===t?"":t)+")_"+n(++e+r,36)}}function Tj(){if(lj)return cj;lj=1;var t=TL(),e=Dj(),r=Aj(),n=xj(),o=V_(),i=G_(),u=t.Symbol,a=e("wks"),s=i?u.for||u:u&&u.withoutSetter||n;return cj=function(t){return r(a,t)||(a[t]=o&&r(u,t)?u[t]:s("Symbol."+t)),a[t]}}function Nj(){if(hj)return pj;hj=1;var t=function(){if(dj)return fj;dj=1;var t=HL(),e=M_(),r=W_(),n=Y_(),o=function(){if(T_)return x_;T_=1;var t=HL(),e=j_(),r=M_(),n=TypeError;return x_=function(o,i){var u,a;if("string"===i&&e(u=o.toString)&&!r(a=t(u,o)))return a;if(e(u=o.valueOf)&&!r(a=t(u,o)))return a;if("string"!==i&&e(u=o.toString)&&!r(a=t(u,o)))return a;throw new n("Can't convert object to primitive value")},x_}(),i=Tj(),u=TypeError,a=i("toPrimitive");return fj=function(i,s){if(!e(i)||r(i))return i;var c,l=n(i,a);if(l){if(void 0===s&&(s="default"),c=t(l,i,s),!e(c)||r(c))return c;throw new u("Can't convert object to primitive value")}return void 0===s&&(s="number"),o(i,s)}}(),e=W_();return pj=function(r){var n=t(r,"string");return e(n)?n:n+""}}function kj(){if(gj)return vj;gj=1;var t=TL(),e=M_(),r=t.document,n=e(r)&&e(r.createElement);return vj=function(t){return n?r.createElement(t):{}}}function Pj(){if(mj)return yj;mj=1;var t=ML(),e=jL(),r=kj();return yj=!t&&!e(function(){return 7!==Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a})}function Bj(){if(bj)return _L;bj=1;var t=ML(),e=HL(),r=k_(),n=P_(),o=__(),i=Nj(),u=Aj(),a=Pj(),s=Object.getOwnPropertyDescriptor;return _L.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 n(!e(r.f,t,c),t[c])},_L}var Ij,Fj,Rj,Lj,_j,jj,Mj,zj={};function Hj(){if(Fj)return Ij;Fj=1;var t=ML(),e=jL();return Ij=t&&e(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}function $j(){if(Lj)return Rj;Lj=1;var t=M_(),e=String,r=TypeError;return Rj=function(n){if(t(n))return n;throw new r(e(n)+" is not an object")}}function Uj(){if(_j)return zj;_j=1;var t=ML(),e=Pj(),r=Hj(),n=$j(),o=Nj(),i=TypeError,u=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s="enumerable",c="configurable",l="writable";return zj.f=t?r?function(t,e,r){if(n(t),e=o(e),n(r),"function"==typeof t&&"prototype"===e&&"value"in r&&l in r&&!r[l]){var i=a(t,e);i&&i[l]&&(t[e]=r.value,r={configurable:c in r?r[c]:i[c],enumerable:s in r?r[s]:i[s],writable:!1})}return u(t,e,r)}:u:function(t,r,a){if(n(t),r=o(r),n(a),e)try{return u(t,r,a)}catch(t){}if("get"in a||"set"in a)throw new i("Accessors not supported");return"value"in a&&(t[r]=a.value),t},zj}function Vj(){if(Mj)return jj;Mj=1;var t=ML(),e=Uj(),r=P_();return jj=t?function(t,n,o){return e.f(t,n,r(1,o))}:function(t,e,r){return t[e]=r,t}}var Gj,Wj,qj,Kj,Yj,Xj,Jj,Zj,Qj,tM,eM,rM,nM,oM,iM,uM={exports:{}};function aM(){if(Wj)return Gj;Wj=1;var t=ML(),e=Aj(),r=Function.prototype,n=t&&Object.getOwnPropertyDescriptor,o=e(r,"name"),i=o&&"something"===function(){}.name,u=o&&(!t||t&&n(r,"name").configurable);return Gj={EXISTS:o,PROPER:i,CONFIGURABLE:u}}function sM(){if(Kj)return qj;Kj=1;var t=B_(),e=j_(),r=Cj(),n=t(Function.toString);return e(r.inspectSource)||(r.inspectSource=function(t){return n(t)}),qj=r.inspectSource}function cM(){if(Zj)return Jj;Zj=1;var t=Dj(),e=xj(),r=t("keys");return Jj=function(t){return r[t]||(r[t]=e(t))}}function lM(){return tM?Qj:(tM=1,Qj={})}function fM(){if(rM)return eM;rM=1;var t,e,r,n=function(){if(Xj)return Yj;Xj=1;var t=TL(),e=j_(),r=t.WeakMap;return Yj=e(r)&&/native code/.test(String(r))}(),o=TL(),i=M_(),u=Vj(),a=Aj(),s=Cj(),c=cM(),l=lM(),f="Object already initialized",d=o.TypeError,p=o.WeakMap;if(n||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)||{}},r=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]:{}},r=function(t){return a(t,v)}}return eM={set:t,get:e,has:r,enforce:function(n){return r(n)?e(n):t(n,{})},getterFor:function(t){return function(r){var n;if(!i(r)||(n=e(r)).type!==t)throw new d("Incompatible receiver, "+t+" required");return n}}}}function dM(){if(nM)return uM.exports;nM=1;var t=B_(),e=jL(),r=j_(),n=Aj(),o=ML(),i=aM().CONFIGURABLE,u=sM(),a=fM(),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=uM.exports=function(t,e,r){"Symbol("===d(l(e),0,7)&&(e="["+p(l(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!n(t,"name")||i&&t.name!==e)&&(o?f(t,"name",{value:e,configurable:!0}):t.name=e),v&&r&&n(r,"arity")&&t.length!==r.arity&&f(t,"length",{value:r.arity});try{r&&n(r,"constructor")&&r.constructor?o&&f(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var u=s(t);return n(u,"source")||(u.source=h(g,"string"==typeof e?e:"")),t};return Function.prototype.toString=y(function(){return r(this)&&c(this).source||u(this)},"toString"),uM.exports}function pM(){if(iM)return oM;iM=1;var t=j_(),e=Uj(),r=dM(),n=Sj();return oM=function(o,i,u,a){a||(a={});var s=a.enumerable,c=void 0!==a.name?a.name:i;if(t(u)&&r(u,c,a),a.global)s?o[i]=u:n(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 hM,vM,gM,yM,mM,bM,EM,wM,SM,CM,DM,OM,AM,xM,TM,NM,kM,PM={};function BM(){if(yM)return gM;yM=1;var t=function(){if(vM)return hM;vM=1;var t=Math.ceil,e=Math.floor;return hM=Math.trunc||function(r){var n=+r;return(n>0?e:t)(n)}}();return gM=function(e){var r=+e;return r!=r||0===r?0:t(r)}}function IM(){if(bM)return mM;bM=1;var t=BM(),e=Math.max,r=Math.min;return mM=function(n,o){var i=t(n);return i<0?e(i+o,0):r(i,o)},mM}function FM(){if(wM)return EM;wM=1;var t=BM(),e=Math.min;return EM=function(r){var n=t(r);return n>0?e(n,9007199254740991):0}}function RM(){if(CM)return SM;CM=1;var t=FM();return SM=function(e){return t(e.length)}}function LM(){if(OM)return DM;OM=1;var t=__(),e=IM(),r=RM(),n=function(n){return function(o,i,u){var a=t(o),s=r(a);if(0===s)return!n&&-1;var c,l=e(u,s);if(n&&i!=i){for(;s>l;)if((c=a[l++])!=c)return!0}else for(;s>l;l++)if((n||l in a)&&a[l]===i)return n||l||0;return!n&&-1}};return DM={includes:n(!0),indexOf:n(!1)}}function _M(){if(xM)return AM;xM=1;var t=B_(),e=Aj(),r=__(),n=LM().indexOf,o=lM(),i=t([].push);return AM=function(t,u){var a,s=r(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++])&&(~n(l,a)||i(l,a));return l}}function jM(){return NM?TM:(NM=1,TM=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}var MM,zM,HM,$M,UM,VM,GM,WM,qM,KM,YM,XM,JM,ZM,QM,tz,ez,rz,nz,oz={};function iz(){return MM||(MM=1,oz.f=Object.getOwnPropertySymbols),oz}function uz(){if(UM)return $M;UM=1;var t=Aj(),e=function(){if(HM)return zM;HM=1;var t=z_(),e=B_(),r=function(){if(kM)return PM;kM=1;var t=_M(),e=jM().concat("length","prototype");return PM.f=Object.getOwnPropertyNames||function(r){return t(r,e)},PM}(),n=iz(),o=$j(),i=e([].concat);return zM=t("Reflect","ownKeys")||function(t){var e=r.f(o(t)),u=n.f;return u?i(e,u(t)):e}}(),r=Bj(),n=Uj();return $M=function(o,i,u){for(var a=e(i),s=n.f,c=r.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 az(){if(qM)return WM;qM=1;var t=TL(),e=Bj().f,r=Vj(),n=pM(),o=Sj(),i=uz(),u=function(){if(GM)return VM;GM=1;var t=jL(),e=j_(),r=/#|\.prototype\./,n=function(r,n){var s=i[o(r)];return s===a||s!==u&&(e(n)?t(n):!!n)},o=n.normalize=function(t){return String(t).replace(r,".").toLowerCase()},i=n.data={},u=n.NATIVE="N",a=n.POLYFILL="P";return VM=n}();return WM=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)&&r(d,"sham",!0),n(c,l,d,a)}}}function sz(){if(YM)return KM;YM=1;var t={};return t[Tj()("toStringTag")]="z",KM="[object z]"===String(t)}function cz(){if(JM)return XM;JM=1;var t=sz(),e=j_(),r=I_(),n=Tj()("toStringTag"),o=Object,i="Arguments"===r(function(){return arguments}());return XM=t?r: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),n))?a:i?r(u):"Object"===(s=r(u))&&e(u.callee)?"Arguments":s}}function lz(){if(QM)return ZM;QM=1;var t=cz(),e=String;return ZM=function(r){if("Symbol"===t(r))throw new TypeError("Cannot convert a Symbol value to a string");return e(r)}}function fz(){if(ez)return tz;ez=1;var t=$j();return tz=function(){var e=t(this),r="";return e.hasIndices&&(r+="d"),e.global&&(r+="g"),e.ignoreCase&&(r+="i"),e.multiline&&(r+="m"),e.dotAll&&(r+="s"),e.unicode&&(r+="u"),e.unicodeSets&&(r+="v"),e.sticky&&(r+="y"),r}}var dz,pz,hz,vz,gz,yz,mz,bz,Ez,wz,Sz,Cz,Dz,Oz,Az={};function xz(){if(pz)return dz;pz=1;var t=_M(),e=jM();return dz=Object.keys||function(r){return t(r,e)}}function Tz(){if(mz)return yz;mz=1;var t,e=$j(),r=function(){if(hz)return Az;hz=1;var t=ML(),e=Hj(),r=Uj(),n=$j(),o=__(),i=xz();return Az.f=t&&!e?Object.defineProperties:function(t,e){n(t);for(var u,a=o(e),s=i(e),c=s.length,l=0;c>l;)r.f(t,u=s[l++],a[u]);return t},Az}(),n=jM(),o=lM(),i=function(){if(gz)return vz;gz=1;var t=z_();return vz=t("document","documentElement")}(),u=kj(),a=cM(),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,r,o;h="undefined"!=typeof document?document.domain&&t?p(t):(r=u("iframe"),o="java"+c+":",r.style.display="none",i.appendChild(r),r.src=String(o),(e=r.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F):p(t);for(var a=n.length;a--;)delete h[s][n[a]];return h()};return o[l]=!0,yz=Object.create||function(t,n){var o;return null!==t?(f[s]=e(t),o=new f,f[s]=null,o[l]=t):o=h(),void 0===n?o:r.f(o,n)}}function Nz(){if(Dz)return Cz;Dz=1;var t,e,r=HL(),n=B_(),o=lz(),i=fz(),u=function(){if(nz)return rz;nz=1;var t=jL(),e=TL().RegExp,r=t(function(){var t=e("a","y");return t.lastIndex=2,null!==t.exec("abcd")}),n=r||t(function(){return!e("a","y").sticky}),o=r||t(function(){var t=e("^r","gy");return t.lastIndex=2,null!==t.exec("str")});return rz={BROKEN_CARET:o,MISSED_STICKY:n,UNSUPPORTED_Y:r}}(),a=Dj(),s=Tz(),c=fM().get,l=function(){if(Ez)return bz;Ez=1;var t=jL(),e=TL().RegExp;return bz=t(function(){var t=e(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})}(),f=function(){if(Sz)return wz;Sz=1;var t=jL(),e=TL().RegExp;return wz=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=n("".charAt),g=n("".indexOf),y=n("".replace),m=n("".slice),b=(e=/b*/g,r(p,t=/a/,"a"),r(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,n,u,a,l,f,S,C=this,D=c(C),O=o(t),A=D.raw;if(A)return A.lastIndex=C.lastIndex,e=r(h,A,O),C.lastIndex=A.lastIndex,e;var x=D.groups,T=E&&C.sticky,N=r(i,C),k=C.source,P=0,B=O;if(T&&(N=y(N,"y",""),-1===g(N,"g")&&(N+="g"),B=m(O,C.lastIndex),C.lastIndex>0&&(!C.multiline||C.multiline&&"\n"!==v(O,C.lastIndex-1))&&(k="(?: "+k+")",B=" "+B,P++),n=new RegExp("^(?:"+k+")",N)),w&&(n=new RegExp("^"+k+"$(?!\\s)",N)),b&&(u=C.lastIndex),a=r(p,T?n:C,B),T?a?(a.input=m(a.input,P),a[0]=m(a[0],P),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&&r(d,a[0],n,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}),Cz=h}function kz(){if(Oz)return xL;Oz=1;var t=az(),e=Nz();return t({target:"RegExp",proto:!0,forced:/./.exec!==e},{exec:e}),xL}kz();var Pz=function(t,e){return Pz=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},Pz(t,e)};function Bz(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}Pz(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var Iz=function(){return Iz=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Iz.apply(this,arguments)};function Fz(t,e,r,n){return new(r||(r=Promise))(function(o,i){function u(t){try{s(n.next(t))}catch(t){i(t)}}function a(t){try{s(n.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(u,a)}s((n=n.apply(t,e||[])).next())})}function Rz(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},u=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return u.next=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(r)throw new TypeError("Generator is already executing.");for(;u&&(u=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=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++,n=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],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}function Lz(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function _z(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)u.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u}function jz(t,e,r){if(2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError;var Mz,zz,Hz,$z,Uz,Vz,Gz,Wz,qz,Kz,Yz,Xz,Jz,Zz,Qz,tH,eH,rH='<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>',nH='<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>',oH='<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>',iH=function(){function t(){this.title=LF("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!!CB.getSelectedNodeByType(t,"blockquote")},t.prototype.isDisabled=function(t){return null==t.selection||!_z(Kh.nodes(t,{match:function(t){var e=CB.getNodeType(t);return"paragraph"===e||"blockquote"===e},universal:!0,mode:"highest"}),1)[0]},t.prototype.exec=function(t,e){if(!this.isDisabled(t)){var r=this.isActive(t)?"paragraph":"blockquote";zv.setNodes(t,{type:r},{mode:"highest"})}},t}(),uH={key:"blockquote",factory:function(){return new iH}},aH={};function sH(){if(zz)return Mz;zz=1;var t=I_(),e=B_();return Mz=function(r){if("Function"===t(r))return e(r)}}function cH(){if(Vz)return Uz;Vz=1;var t=I_();return Uz=Array.isArray||function(e){return"Array"===t(e)}}function lH(){if(Wz)return Gz;Wz=1;var t=B_(),e=jL(),r=j_(),n=cz(),o=z_(),i=sM(),u=function(){},a=o("Reflect","construct"),s=/^\s*(?:class|function)\b/,c=t(s.exec),l=!s.test(u),f=function(t){if(!r(t))return!1;try{return a(u,[],t),!0}catch(t){return!1}},d=function(t){if(!r(t))return!1;switch(n(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return l||!!c(s,i(t))}catch(t){return!0}};return d.sham=!0,Gz=!a||e(function(){var t;return f(f.call)||!f(Object)||!f(function(){t=!0})||t})?d:f}function fH(){if(Xz)return Yz;Xz=1;var t=function(){if(Kz)return qz;Kz=1;var t=cH(),e=lH(),r=M_(),n=Tj()("species"),o=Array;return qz=function(i){var u;return t(i)&&(u=i.constructor,(e(u)&&(u===o||t(u.prototype))||r(u)&&null===(u=u[n]))&&(u=void 0)),void 0===u?o:u}}();return Yz=function(e,r){return new(t(e))(0===r?0:r)}}function dH(){if(Zz)return Jz;Zz=1;var t=function(){if($z)return Hz;$z=1;var t=sH(),e=K_(),r=zL(),n=t(t.bind);return Hz=function(t,o){return e(t),void 0===o?t:r?n(t,o):function(){return t.apply(o,arguments)}},Hz}(),e=B_(),r=F_(),n=Oj(),o=RM(),i=fH(),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=n(h),w=r(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 Jz={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 pH(){if(tH)return Qz;tH=1;var t=jL(),e=Tj(),r=U_(),n=e("species");return Qz=function(e){return r>=51||!t(function(){var t=[];return(t.constructor={})[n]=function(){return{foo:1}},1!==t[e](Boolean).foo})}}!function(){if(eH)return aH;eH=1;var t=az(),e=dH().filter;t({target:"Array",proto:!0,forced:!pH()("filter")},{filter:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}})}();var hH,vH,gH,yH={};!function(){if(gH)return yH;gH=1;var t=sz(),e=pM(),r=function(){if(vH)return hH;vH=1;var t=sz(),e=cz();return hH=t?{}.toString:function(){return"[object "+e(this)+"]"}}();t||e(Object.prototype,"toString",r,{unsafe:!0})}();var mH,bH,EH,wH,SH,CH,DH,OH,AH,xH,TH,NH,kH,PH,BH,IH,FH,RH={};function LH(){if(wH)return EH;wH=1,kz();var t=HL(),e=pM(),r=Nz(),n=jL(),o=Tj(),i=Vj(),u=o("species"),a=RegExp.prototype;return EH=function(s,c,l,f){var d=o(s),p=!n(function(){var t={};return t[d]=function(){return 7},7!==""[s](t)}),h=p&&!n(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,n,o,i,u){var s=n.exec;return s===r||s===a.exec?p&&!u?{done:!0,value:t(v,n,o,i)}:{done:!0,value:t(e,o,n,i)}:{done:!1}});e(String.prototype,s,g[0]),e(a,d,g[1])}f&&i(a[d],"sham",!0)}}function _H(){if(OH)return DH;OH=1;var t=function(){if(CH)return SH;CH=1;var t=B_(),e=BM(),r=lz(),n=L_(),o=t("".charAt),i=t("".charCodeAt),u=t("".slice),a=function(t){return function(a,s){var c,l,f=r(n(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 SH={codeAt:a(!1),charAt:a(!0)}}().charAt;return DH=function(e,r,n){return r+(n?t(e,r).length:1)},DH}function jH(){if(PH)return kH;PH=1;var t=HL(),e=Aj(),r=H_(),n=function(){if(NH)return TH;NH=1;var t=TL(),e=jL(),r=t.RegExp,n=!e(function(){var t=!0;try{r(".","d")}catch(e){t=!1}var e={},n="",o=t?"dgimsy":"gimsy",i=function(t,r){Object.defineProperty(e,t,{get:function(){return n+=r,!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(r.prototype,"flags").get.call(e)!==o||n!==o});return TH={correct:n}}(),o=fz(),i=RegExp.prototype;return kH=n.correct?function(t){return t.flags}:function(u){return n.correct||!r(i,u)||e(u,"flags")?u.flags:t(o,u)}}function MH(){if(IH)return BH;IH=1;var t=HL(),e=$j(),r=j_(),n=I_(),o=Nz(),i=TypeError;return BH=function(u,a){var s=u.exec;if(r(s)){var c=t(s,u,a);return null!==c&&e(c),c}if("RegExp"===n(u))return t(o,u,a);throw new i("RegExp#exec called on incompatible receiver")}}!function(){if(FH)return RH;FH=1;var t=function(){if(bH)return mH;bH=1;var t=zL(),e=Function.prototype,r=e.apply,n=e.call;return mH="object"==typeof Reflect&&Reflect.apply||(t?n.bind(r):function(){return n.apply(r,arguments)}),mH}(),e=HL(),r=B_(),n=LH(),o=jL(),i=$j(),u=j_(),a=M_(),s=BM(),c=FM(),l=lz(),f=L_(),d=_H(),p=Y_(),h=function(){if(xH)return AH;xH=1;var t=B_(),e=Oj(),r=Math.floor,n=t("".charAt),o=t("".replace),i=t("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,a=/\$([$&'`]|\d{1,2})/g;return AH=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(n(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=r(a/10);return 0===d?e:d<=h?void 0===l[d-1]?n(o,1):l[d-1]+n(o,1):e}u=l[a-1]}return void 0===u?"":u})}}(),v=jH(),g=MH(),y=Tj()("replace"),m=Math.max,b=Math.min,E=r([].concat),w=r([].push),S=r("".indexOf),C=r("".slice),D=function(t){return void 0===t?t:String(t)},O="$0"==="a".replace(/./,"$0"),A=!!/./[y]&&""===/./[y]("a","$0");n("replace",function(r,n,o){var O=A?"$":"$0";return[function(t,r){var o=f(this),i=a(t)?p(t,y):void 0;return i?e(i,t,o,r):e(n,l(o),t,r)},function(e,r){var a=i(this),f=l(e);if("string"==typeof r&&-1===S(r,O)&&-1===S(r,"$<")){var p=o(n,a,f,r);if(p.done)return p.value}var y=u(r);y||(r=l(r));var A,x=l(v(a)),T=-1!==S(x,"g");T&&(A=-1!==S(x,"u"),a.lastIndex=0);for(var N,k=[];null!==(N=g(a,f))&&(w(k,N),T);)""===l(N[0])&&(a.lastIndex=d(f,c(a.lastIndex),A));for(var P="",B=0,I=0;I<k.length;I++){for(var F,R=l((N=k[I])[0]),L=m(b(s(N.index),f.length),0),_=[],j=1;j<N.length;j++)w(_,D(N[j]));var M=N.groups;if(y){var z=E([R],_,L,f);void 0!==M&&w(z,M),F=l(t(r,void 0,z))}else F=h(R,f,L,_,M,r);L>=B&&(P+=C(f,B,L)+F,B=L+R.length)}return P+C(f,B)}]},!!o(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})||!O||A)}();var zH,HH,$H,UH={};function VH(){if(HH)return zH;HH=1;var t=Tj(),e=Tz(),r=Uj().f,n=t("unscopables"),o=Array.prototype;return void 0===o[n]&&r(o,n,{configurable:!0,value:e(null)}),zH=function(t){o[n][t]=!0}}!function(){if($H)return UH;$H=1;var t=az(),e=dH().find,r=VH(),n="find",o=!0;n in[]&&Array(1)[n](function(){o=!1}),t({target:"Array",proto:!0,forced:o},{find:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}}),r(n)}();var GH,WH,qH,KH,YH,XH,JH,ZH={};function QH(){return WH?GH:(WH=1,GH="\t\n\v\f\r                 \u2028\u2029\ufeff")}!function(){if(JH)return ZH;JH=1;var t=az(),e=function(){if(KH)return qH;KH=1;var t=B_(),e=L_(),r=lz(),n=QH(),o=t("".replace),i=RegExp("^["+n+"]+"),u=RegExp("(^|[^"+n+"])["+n+"]+$"),a=function(t){return function(n){var a=r(e(n));return 1&t&&(a=o(a,i,"")),2&t&&(a=o(a,u,"$1")),a}};return qH={start:a(1),end:a(2),trim:a(3)}}().trim,r=function(){if(XH)return YH;XH=1;var t=aM().PROPER,e=jL(),r=QH();return YH=function(n){return e(function(){return!!r[n]()||"​…᠎"!=="​…᠎"[n]()||t&&r[n].name!==n})}}();t({target:"String",proto:!0,forced:r("trim")},{trim:function(){return e(this)}})}();var t$,e$,r$={};function n$(t){return 0===og("<div>".concat(t,"</div>")).children().filter(function(t){return"BR"!==t.tagName}).length}function o$(t){return 0===t.length?"":t[0].outerHTML}function i$(t){return t.length?t[0].tagName.toLowerCase():""}function u$(t,e){for(var r="",n=(t.attr("style")||"").split(";"),o=n.length,i=0;i<o;i+=1){var u=n[i];if(u){var a=u.split(":");a[0].trim()===e&&(r=a[1].trim())}}return r}e$||(e$=1,function(){if(t$)return r$;t$=1;var t=az(),e=TL();t({global:!0,forced:e.globalThis!==e},{globalThis:e})}()),Eg&&(og.fn.css=Eg),Ag&&(og.fn.append=Ag),xg&&(og.fn.prepend=xg),ig&&(og.fn.addClass=ig),ug&&(og.fn.removeClass=ug),ag&&(og.fn.hasClass=ag),pg&&(og.fn.on=pg),hg&&(og.fn.off=hg),_g&&(og.fn.focus=_g),sg&&(og.fn.attr=sg),cg&&(og.fn.removeAttr=cg),mg&&(og.fn.hide=mg),bg&&(og.fn.show=bg),Ng&&(og.fn.parents=Ng),fg&&(og.fn.dataset=fg),dg&&(og.fn.val=dg),Dg&&(og.fn.text=Dg),Cg&&(og.fn.html=Cg),Pg&&(og.fn.children=Pg),Bg&&(og.fn.remove=Bg),kg&&(og.fn.find=kg),vg&&(og.fn.width=vg),gg&&(og.fn.height=gg),Sg&&(og.fn.filter=Sg),Ig&&(og.fn.empty=Ig);var a$,s$,c$,l$,f$,d$={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(t,e,r){var n=og(t);return 0===(e=e.filter(function(t){return!!wv.isText(t)||!!r.isInline(t)})).length&&(e=[{text:n.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:e}}},p$={};function h$(){if(s$)return a$;s$=1;var t=ML(),e=Uj(),r=P_();return a$=function(n,o,i){t?e.f(n,o,r(0,i)):n[o]=i}}function v$(){if(l$)return c$;l$=1;var t=B_();return c$=t([].slice)}function g$(t){t.deleteBackward("character"),zv.insertNodes(t,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}!function(){if(f$)return p$;f$=1;var t=az(),e=cH(),r=lH(),n=M_(),o=IM(),i=RM(),u=__(),a=h$(),s=Tj(),c=pH(),l=v$(),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,(r(c)&&(c===p||e(c.prototype))||n(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 y$,m$={type:"blockquote",renderElem:function(t,e,r){return Ry("blockquote",null,e)}},b$={renderElems:[m$],elemsToHtml:[{type:"blockquote",elemToHtml:function(t,e){return"<blockquote>".concat(e,"</blockquote>")}}],parseElemsHtml:[d$],menus:[uH],editorPlugin:function(t){var e=t.insertBreak,r=t.insertText,n=t;return n.insertBreak=function(){var o=n.selection;if(null==o)return e();var i=_z(Kh.nodes(t,{match:function(t){return CB.checkNodeType(t,"blockquote")},universal:!0}),1)[0];if(!i)return e();var u=i[0];if(CB.getParentNode(t,u)){var a=CB.findPath(t,u),s=Kh.end(t,a);if(sv.equals(s,o.focus)){var c=tv.string(u);if(c&&"\n"===c.slice(-1))return void g$(n)}r("\n")}else g$(n)},n}},E$={};!function(){if(y$)return E$;y$=1;var t=az(),e=LM().includes,r=jL(),n=VH();t({target:"Array",proto:!0,forced:r(function(){return!Array(1).includes()})},{includes:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}}),n("includes")}();var w$,S$,C$,D$={};function O$(){if(S$)return w$;S$=1;var t=jL();return w$=function(e,r){var n=[][e];return!!n&&t(function(){n.call(null,r||function(){return 1},1)})}}!function(){if(C$)return D$;C$=1;var t=az(),e=B_(),r=F_(),n=__(),o=O$(),i=e([].join);t({target:"Array",proto:!0,forced:r!==Object||!o("join",",")},{join:function(t){return i(n(this),void 0===t?",":t)}})}();var A$,x$={};!function(){if(A$)return x$;A$=1;var t=az(),e=dH().map;t({target:"Array",proto:!0,forced:!pH()("map")},{map:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}})}();var T$,N$={};!function(){if(T$)return N$;T$=1;var t=aM().PROPER,e=pM(),r=$j(),n=lz(),o=jL(),i=jH(),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=r(this);return"/"+n(t.source)+"/"+n(i(t))},{unsafe:!0})}();var k$,P$,B$,I$,F$,R$,L$,_$={};function j$(){if(I$)return B$;I$=1;var t=function(){if(P$)return k$;P$=1;var t=M_(),e=I_(),r=Tj()("match");return k$=function(n){var o;return t(n)&&(void 0!==(o=n[r])?!!o:"RegExp"===e(n))}}(),e=TypeError;return B$=function(r){if(t(r))throw new e("The method doesn't accept regular expressions");return r}}function M$(){if(R$)return F$;R$=1;var t=Tj()("match");return F$=function(e){var r=/./;try{"/./"[e](r)}catch(n){try{return r[t]=!1,"/./"[e](r)}catch(t){}}return!1}}!function(){if(L$)return _$;L$=1;var t=az(),e=B_(),r=j$(),n=L_(),o=lz(),i=M$(),u=e("".indexOf);t({target:"String",proto:!0,forced:!i("includes")},{includes:function(t){return!!~u(o(n(this)),o(r(t)),arguments.length>1?arguments[1]:void 0)}})}();var z$,H$,$$,U$,V$,G$,W$,q$,K$,Y$,X$,J$=function(){function t(){this.title=LF("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=CB.getSelectedNodeByType(t,"code");if(null==e)return null;var r=CB.getParentNode(t,e);return null==r||"pre"!==CB.getNodeType(r)?null:e},t.prototype.getValue=function(t){var e=this.getSelectCodeElem(t);if(null==e){var r=t.getMenuConfig("codeSelectLang").codeLangs,n=(void 0===r?[]:r).find(function(t){return t.selected});return(null==n?void 0:n.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=CB.getSelectedElems(t);return!!e.some(function(e){return t.isVoid(e)})||!e.some(function(t){var e=CB.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 r=tv.string(e);zv.removeNodes(t,{mode:"highest"});var n=r.split("\n").map(function(t){return{type:"paragraph",children:[{text:t}]}});zv.insertNodes(t,n,{mode:"highest"})}},t.prototype.changeToCodeBlock=function(t,e){var r,n,o=[],i=Kh.nodes(t,{match:function(e){return t.children.includes(e)},universal:!0});try{for(var u=Lz(i),a=u.next();!a.done;a=u.next()){var s=_z(a.value,1)[0];s&&o.push(tv.string(s))}}catch(t){r={error:t}}finally{try{a&&!a.done&&(n=u.return)&&n.call(u)}finally{if(r)throw r.error}}zv.removeNodes(t,{mode:"highest"});var c={type:"pre",children:[{type:"code",language:e,children:[{text:o.join("\n")}]}]};zv.insertNodes(t,c,{mode:"highest"})},t}(),Z$={key:"codeBlock",factory:function(){return new J$}},Q$={selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(t,e,r){return{type:"code",language:"",children:[{text:og(t)[0].textContent||""}]}}},tU={selector:"pre:not([data-w-e-type])",parseElemHtml:function(t,e,r){var n=og(t);return 0===(e=e.filter(function(t){return"code"===CB.getNodeType(t)})).length&&(e=[{type:"code",language:"",children:[{text:n[0].textContent||""}]}]),{type:"pre",children:e.filter(function(t){return"code"===CB.getNodeType(t)})}}},eU={};!function(){if(X$)return eU;X$=1;var t=az(),e=B_(),r=K_(),n=Oj(),o=RM(),i=function(){if(H$)return z$;H$=1;var t=q_(),e=TypeError;return z$=function(r,n){if(!delete r[n])throw new e("Cannot delete property "+t(n)+" of "+t(r))}}(),u=lz(),a=jL(),s=function(){if(U$)return $$;U$=1;var t=v$(),e=Math.floor,r=function(n,o){var i=n.length;if(i<8)for(var u,a,s=1;s<i;){for(a=s,u=n[s];a&&o(n[a-1],u)>0;)n[a]=n[--a];a!==s++&&(n[a]=u)}else for(var c=e(i/2),l=r(t(n,0,c),o),f=r(t(n,c),o),d=l.length,p=f.length,h=0,v=0;h<d||v<p;)n[h+v]=h<d&&v<p?o(l[h],f[v])<=0?l[h++]:f[v++]:h<d?l[h++]:f[v++];return n};return $$=r}(),c=O$(),l=function(){if(G$)return V$;G$=1;var t=$_().match(/firefox\/(\d+)/i);return V$=!!t&&+t[1]}(),f=function(){if(q$)return W$;q$=1;var t=$_();return W$=/MSIE|Trident/.test(t)}(),d=U_(),p=function(){if(Y$)return K$;Y$=1;var t=$_().match(/AppleWebKit\/(\d+)\./);return K$=!!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,r,n,o="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)h.push({k:e+n,v:r})}for(h.sort(function(t,e){return e.v-t.v}),n=0;n<h.length;n++)e=h[n].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&&r(t);var e=n(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,r){return void 0===r?-1:void 0===e?1:void 0!==t?+t(e,r)||0:u(e)>u(r)?1:-1}}(t)),a=o(l),c=0;c<a;)e[c]=l[c++];for(;c<f;)i(e,c++);return e}})}();var rU,nU={};!function(){if(rU)return nU;rU=1;var t=HL(),e=B_(),r=LH(),n=$j(),o=M_(),i=FM(),u=lz(),a=L_(),s=Y_(),c=_H(),l=jH(),f=MH(),d=e("".indexOf);r("match",function(e,r,p){return[function(r){var n=a(this),i=o(r)?s(r,e):void 0;return i?t(i,r,n):new RegExp(r)[e](u(n))},function(t){var e=n(this),o=u(t),a=p(r,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 oU,iU,uU,aU,sU,cU={};function lU(){if(iU)return oU;iU=1;var t=B_(),e=L_(),r=lz(),n=/"/g,o=t("".replace);return oU=function(t,i,u,a){var s=r(e(t)),c="<"+i;return""!==u&&(c+=" "+u+'="'+o(r(a),n,"&quot;")+'"'),c+">"+s+"</"+i+">"}}function fU(){if(aU)return uU;aU=1;var t=jL();return uU=function(e){return t(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})}}!function(){if(sU)return cU;sU=1;var t=az(),e=lU();t({target:"String",proto:!0,forced:fU()("anchor")},{anchor:function(t){return e(this,"a","name",t)}})}();var dU,pU,hU,vU={type:"pre",renderElem:function(t,e,r){return Ry("pre",null,e)}},gU={type:"code",renderElem:function(t,e,r){return Ry("code",null,e)}},yU={menus:[Z$],editorPlugin:function(t){var e=t.insertBreak,r=t.normalizeNode,n=t.insertData,o=t.handleTab,i=t;return i.insertBreak=function(){var t=CB.getSelectedNodeByType(i,"code");if(null!=t){var r=function(t,e){var r=e.selection;if(null==r)return"";var n=tv.string(t),o=r.anchor.offset,i=n.slice(0,o).split("\n"),u=i.length;return 0===u?"":i[u-1]}(t,i);if(r){var n=r.match(/^\s+/);if(null!=n&&null!=n[0]){var o=n[0];return void i.insertText("\n".concat(o))}}i.insertText("\n")}else e()},t.handleTab=function(){var e=t.selection;if(e){var r=CB.getSelectedNodeByType(t,"code");if(r&&!dv.isCollapsed(e)){var n=_z([e.anchor,e.focus].sort(function(t,e){return t.offset-e.offset}),2),i=n[0],u=n[1],a=r.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}};zv.insertText(t,d,{at:{anchor:{path:i.path,offset:0},focus:{path:u.path,offset:a.length}}}),zv.select(t,p)}else o()}},i.normalizeNode=function(t){var e=_z(t,2),n=e[0],o=e[1],u=CB.getNodeType(n);return"code"===u&&o.length<=1&&zv.setNodes(i,{type:"paragraph"},{at:o}),"pre"===u&&(CB.isLastNode(i,n)&&zv.insertNodes(i,CB.genEmptyParagraph(),{at:[o[0]+1]}),"code"!==CB.getNodeType(n.children[0])&&(zv.unwrapNodes(i),zv.setNodes(i,{type:"paragraph"},{mode:"highest"}))),r([n,o])},i.insertData=function(t){if(null!=CB.getSelectedNodeByType(i,"code")){var e=t.getData("text/plain");Kh.insertText(i,e)}else n(t)},i},renderElems:[vU,gU],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=og(t);if("code"!==i$(e))return t;var r=e.find("xmp");if(0===r.length)return t;var n=r.text();return r.remove(),e.text(n),e[0]}}],parseElemsHtml:[Q$,tU]},mU={};!function(){if(hU)return mU;hU=1;var t=az(),e=jL(),r=cH(),n=M_(),o=Oj(),i=RM(),u=function(){if(pU)return dU;pU=1;var t=TypeError;return dU=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}}(),a=h$(),s=fH(),c=pH(),l=Tj(),f=U_(),d=l("isConcatSpreadable"),p=f>=51||!e(function(){var t=[];return t[d]=!1,t.concat()[0]!==t}),h=function(t){if(!n(t))return!1;var e=t[d];return void 0!==e?!!e:r(t)};t({target:"Array",proto:!0,arity:1,forced:!p||!c("concat")},{concat:function(t){var e,r,n,c,l,f=o(this),d=s(f,0),p=0;for(e=-1,n=arguments.length;e<n;e++)if(h(l=-1===e?f:arguments[e]))for(c=i(l),u(p+c),r=0;r<c;r++,p++)r in l&&a(d,p,l[r]);else u(p+1),a(d,p++,l);return d.length=p,d}})}();var bU,EU,wU,SU,CU,DU,OU,AU={};!function(){if(OU)return AU;OU=1;var t=TL(),e=EU?bU:(EU=1,bU={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}),r=function(){if(SU)return wU;SU=1;var t=kj()("span").classList,e=t&&t.constructor&&t.constructor.prototype;return wU=e===Object.prototype?void 0:e}(),n=function(){if(DU)return CU;DU=1;var t=dH().forEach,e=O$()("forEach");return CU=e?[].forEach:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)},CU}(),o=Vj(),i=function(t){if(t&&t.forEach!==n)try{o(t,"forEach",n)}catch(e){t.forEach=n}};for(var u in e)e[u]&&i(t[u]&&t[u].prototype);i(r)}();var xU,TU,NU,kU=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,r=Kh.marks(t);return r&&r[e]?r[e]:""},t.prototype.isActive=function(t){return!!this.getValue(t)},t.prototype.isDisabled=function(t){return null==t.selection||!!_z(Kh.nodes(t,{match:function(e){return"pre"===CB.getNodeType(e)||!!Kh.isVoid(t,e)},universal:!0}),1)[0]},t.prototype.getPanelContentElem=function(t){var e=this.mark;if(null==this.$content){var r=og('<ul class="w-e-panel-content-color"></ul>');r.on("click","li",function(r){var n=r.target;if(null!=n&&(r.preventDefault(),null!=t.selection)){var o=og(n).attr("data-value");"0"===o?Kh.removeMark(t,e):Kh.addMark(t,e,o)}}),this.$content=r}var n=this.$content;if(null==n)return document.createElement("ul");n.empty();var o=this.getValue(t),i=t.getMenuConfig(e).colors;(void 0===i?[]:i).forEach(function(t){var e=og('<div class="color-block" data-value="'.concat(t,'"></div>'));e.css("background-color",t);var r=og('<li data-value="'.concat(t,'"></li>'));o===t&&r.addClass("active"),r.append(e),n.append(r)});var u="";"color"===e&&(u=LF("color.default")),"bgColor"===e&&(u=LF("color.clear"));var a=og('\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 n.prepend(a),n[0]},t}(),PU=function(t){function e(){var e=t.apply(this,jz([],_z(arguments),!1))||this;return e.title=LF("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 Bz(e,t),e}(kU),BU=function(t){function e(){var e=t.apply(this,jz([],_z(arguments),!1))||this;return e.title=LF("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 Bz(e,t),e}(kU),IU=["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)"],FU={key:"color",factory:function(){return new BU},config:{colors:IU}},RU={key:"bgColor",factory:function(){return new PU},config:{colors:IU}},LU={selector:"font",preParseHtml:function(t){var e=og(t);if("font"!==i$(e))return t;var r=e.attr("color")||"";return r&&(e.removeAttr("color"),e.css("color",r)),e[0]}},_U={};function jU(t,e){null==t.data&&(t.data={});var r=t.data;null==r.style&&(r.style={}),Object.assign(r.style,e)}!function(){if(NU)return _U;NU=1;var t=az(),e=function(){if(TU)return xU;TU=1;var t=ML(),e=B_(),r=HL(),n=jL(),o=xz(),i=iz(),u=k_(),a=Oj(),s=F_(),c=Object.assign,l=Object.defineProperty,f=e([].concat);return xU=!c||n(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={},r={},n=Symbol("assign detection"),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach(function(t){r[t]=t}),7!==c({},e)[n]||o(c({},r)).join("")!==i})?function(e,n){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&&!r(h,g,v)||(c[v]=g[v]);return c}:c,xU}();t({target:"Object",stat:!0,arity:2,forced:Object.assign!==e},{assign:e})}();var MU,zU,HU,$U,UU,VU,GU,WU,qU,KU,YU,XU,JU,ZU,QU,tV,eV={renderStyle:function(t,e){var r=t,n=r.color,o=r.bgColor,i=e;return n&&jU(i,{color:n}),o&&jU(i,{backgroundColor:o}),i},styleToHtml:function(t,e){if(!wv.isText(t))return e;var r,n=t,o=n.color,i=n.bgColor;return o||i?((n$(e)||"span"!==i$(r=og(e)))&&(r=og("<span>".concat(e,"</span>"))),o&&r.css("color",o),i&&r.css("background-color",i),o$(r)):e},preParseHtml:[LU],parseStyleHtml:function(t,e,r){var n=og(t);if(!wv.isText(e))return e;var o=e,i=u$(n,"color");i&&(o.color=i);var u=u$(n,"background-color");return u||(u=u$(n,"background")),u&&(o.bgColor=u),o},menus:[FU,RU]},rV=function(){function t(){this.title=LF("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||!!dv.isExpanded(e)},t.prototype.exec=function(t,e){var r=t.selection;if(null!=r){var n=[r.anchor.path[0]];zv.insertNodes(t,{type:"paragraph",children:[{text:""}]},{at:n}),t.select(Kh.start(t,n))}},t}(),nV={menus:[{key:"enter",factory:function(){return new rV}}]},oV=function(){function t(){this.title=LF("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||!!CB.getSelectedElems(t).some(function(e){if(t.isVoid(e))return!0;var r=CB.getNodeType(e);return"table"===r||"pre"===r})},t.prototype.exec=function(t,e){CB.isSelectedEmptyParagraph(t)&&zv.removeNodes(t,{mode:"highest"}),zv.insertNodes(t,{type:"divider",children:[{text:""}]},{mode:"highest"})},t}(),iV={renderElems:[{type:"divider",renderElem:function(t,e,r){return vy("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:CB.isNodeSelected(r,t)?"true":""},style:{},on:{mousedown:function(t){return t.preventDefault()}}},[vy("hr")])}}],elemsToHtml:[{type:"divider",elemToHtml:function(t,e){return"<hr/>"}}],parseElemsHtml:[{selector:"hr:not([data-w-e-type])",parseElemHtml:function(t,e,r){return{type:"divider",children:[{text:""}]}}}],menus:[{key:"divider",factory:function(){return new oV}}],editorPlugin:function(t){var e=t.isVoid,r=t.normalizeNode,n=t;return n.isVoid=function(t){return"divider"===t.type||e(t)},n.normalizeNode=function(t){var e=_z(t,2),o=e[0],i=e[1];if("divider"!==CB.getNodeType(o))return r([o,i]);CB.isLastNode(n,o)&&zv.insertNodes(n,CB.genEmptyParagraph(),{at:[i[0]+1]})},n}},uV=function(){function t(){this.title=LF("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||!!_z(Kh.nodes(t,{match:function(e){return"pre"===CB.getNodeType(e)||!!Kh.isVoid(t,e)},universal:!0}),1)[0]},t.prototype.getPanelContentElem=function(t){if(null==this.$content){var e=og('<ul class="w-e-panel-content-emotion"></ul>');e.on("click","li",function(e){var r=e.target;if(null!=r){e.preventDefault();var n=og(r).text();t.insertText(n)}}),this.$content=e}var r=this.$content;if(null==r)return document.createElement("ul");r.empty();var n=t.getMenuConfig("emotion").emotions;return(void 0===n?[]:n).forEach(function(t){var e=og("<li>".concat(t,"</li>"));r.append(e)}),r[0]},t}(),aV={menus:[{key:"emotion",factory:function(){return new uV},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},sV={};function cV(){if(zU)return MU;zU=1;var t=function(t){return t&&t.Math===Math&&t};return MU=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof CL&&CL)||t("object"==typeof MU&&MU)||function(){return this}()||Function("return this")()}function lV(){return $U?HU:($U=1,HU=function(t){try{return!!t()}catch(t){return!0}})}function fV(){return VU?UU:(VU=1,UU=!lV()(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))}function dV(){if(WU)return GU;WU=1;var t=fV(),e=Function.prototype,r=e.apply,n=e.call;return GU="object"==typeof Reflect&&Reflect.apply||(t?n.bind(r):function(){return n.apply(r,arguments)}),GU}function pV(){if(KU)return qU;KU=1;var t=fV(),e=Function.prototype,r=e.call,n=t&&e.bind.bind(r,r);return qU=t?n:function(t){return function(){return r.apply(t,arguments)}},qU}function hV(){if(XU)return YU;XU=1;var t=pV(),e=t({}.toString),r=t("".slice);return YU=function(t){return r(e(t),8,-1)}}function vV(){if(ZU)return JU;ZU=1;var t=hV(),e=pV();return JU=function(r){if("Function"===t(r))return e(r)}}function gV(){if(tV)return QU;tV=1;var t="object"==typeof document&&document.all;return QU=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(t){return"function"==typeof t}}var yV,mV,bV,EV,wV={};function SV(){return mV?yV:(mV=1,yV=!lV()(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))}function CV(){if(EV)return bV;EV=1;var t=fV(),e=Function.prototype.call;return bV=t?e.bind(e):function(){return e.apply(e,arguments)},bV}var DV,OV,AV,xV,TV,NV,kV,PV,BV,IV,FV,RV,LV,_V,jV,MV,zV,HV,$V,UV,VV,GV,WV,qV,KV,YV,XV,JV,ZV,QV,tG,eG,rG,nG,oG,iG,uG,aG={};function sG(){if(DV)return aG;DV=1;var t={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,r=e&&!t.call({1:2},1);return aG.f=r?function(t){var r=e(this,t);return!!r&&r.enumerable}:t,aG}function cG(){return AV?OV:(AV=1,OV=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}})}function lG(){if(TV)return xV;TV=1;var t=pV(),e=lV(),r=hV(),n=Object,o=t("".split);return xV=e(function(){return!n("z").propertyIsEnumerable(0)})?function(t){return"String"===r(t)?o(t,""):n(t)}:n}function fG(){return kV?NV:(kV=1,NV=function(t){return null==t})}function dG(){if(BV)return PV;BV=1;var t=fG(),e=TypeError;return PV=function(r){if(t(r))throw new e("Can't call method on "+r);return r}}function pG(){if(FV)return IV;FV=1;var t=lG(),e=dG();return IV=function(r){return t(e(r))}}function hG(){if(LV)return RV;LV=1;var t=gV();return RV=function(e){return"object"==typeof e?null!==e:t(e)}}function vG(){return jV?_V:(jV=1,_V={})}function gG(){if(zV)return MV;zV=1;var t=vG(),e=cV(),r=gV(),n=function(t){return r(t)?t:void 0};return MV=function(r,o){return arguments.length<2?n(t[r])||n(e[r]):t[r]&&t[r][o]||e[r]&&e[r][o]},MV}function yG(){return $V?HV:($V=1,HV=pV()({}.isPrototypeOf))}function mG(){if(WV)return GV;WV=1;var t,e,r=cV(),n=function(){if(VV)return UV;VV=1;var t=cV().navigator,e=t&&t.userAgent;return UV=e?String(e):""}(),o=r.process,i=r.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&&n&&(!(t=n.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=n.match(/Chrome\/(\d+)/))&&(e=+t[1]),GV=e}function bG(){if(KV)return qV;KV=1;var t=mG(),e=lV(),r=cV().String;return qV=!!Object.getOwnPropertySymbols&&!e(function(){var e=Symbol("symbol detection");return!r(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&t&&t<41})}function EG(){return XV?YV:(XV=1,YV=bG()&&!Symbol.sham&&"symbol"==typeof Symbol.iterator)}function wG(){if(ZV)return JV;ZV=1;var t=gG(),e=gV(),r=yG(),n=Object;return JV=EG()?function(t){return"symbol"==typeof t}:function(o){var i=t("Symbol");return e(i)&&r(i.prototype,n(o))}}function SG(){if(tG)return QV;tG=1;var t=String;return QV=function(e){try{return t(e)}catch(t){return"Object"}}}function CG(){if(rG)return eG;rG=1;var t=gV(),e=SG(),r=TypeError;return eG=function(n){if(t(n))return n;throw new r(e(n)+" is not a function")}}var DG,OG,AG,xG,TG,NG,kG,PG,BG,IG,FG,RG,LG,_G,jG,MG,zG,HG,$G,UG,VG,GG,WG,qG,KG,YG,XG,JG,ZG={exports:{}};function QG(){return OG?DG:(OG=1,DG=!0)}function tW(){if(TG)return ZG.exports;TG=1;var t=QG(),e=cV(),r=function(){if(xG)return AG;xG=1;var t=cV(),e=Object.defineProperty;return AG=function(r,n){try{e(t,r,{value:n,configurable:!0,writable:!0})}catch(e){t[r]=n}return n}}(),n="__core-js_shared__",o=ZG.exports=e[n]||r(n,{});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"}),ZG.exports}function eW(){if(kG)return NG;kG=1;var t=tW();return NG=function(e,r){return t[e]||(t[e]=r||{})}}function rW(){if(BG)return PG;BG=1;var t=dG(),e=Object;return PG=function(r){return e(t(r))}}function nW(){if(FG)return IG;FG=1;var t=pV(),e=rW(),r=t({}.hasOwnProperty);return IG=Object.hasOwn||function(t,n){return r(e(t),n)}}function oW(){if(LG)return RG;LG=1;var t=pV(),e=0,r=Math.random(),n=t(1.1.toString);return RG=function(t){return"Symbol("+(void 0===t?"":t)+")_"+n(++e+r,36)}}function iW(){if(jG)return _G;jG=1;var t=cV(),e=eW(),r=nW(),n=oW(),o=bG(),i=EG(),u=t.Symbol,a=e("wks"),s=i?u.for||u:u&&u.withoutSetter||n;return _G=function(t){return r(a,t)||(a[t]=o&&r(u,t)?u[t]:s("Symbol."+t)),a[t]}}function uW(){if(zG)return MG;zG=1;var t=CV(),e=hG(),r=wG(),n=function(){if(oG)return nG;oG=1;var t=CG(),e=fG();return nG=function(r,n){var o=r[n];return e(o)?void 0:t(o)}}(),o=function(){if(uG)return iG;uG=1;var t=CV(),e=gV(),r=hG(),n=TypeError;return iG=function(o,i){var u,a;if("string"===i&&e(u=o.toString)&&!r(a=t(u,o)))return a;if(e(u=o.valueOf)&&!r(a=t(u,o)))return a;if("string"!==i&&e(u=o.toString)&&!r(a=t(u,o)))return a;throw new n("Can't convert object to primitive value")},iG}(),i=TypeError,u=iW()("toPrimitive");return MG=function(a,s){if(!e(a)||r(a))return a;var c,l=n(a,u);if(l){if(void 0===s&&(s="default"),c=t(l,a,s),!e(c)||r(c))return c;throw new i("Can't convert object to primitive value")}return void 0===s&&(s="number"),o(a,s)}}function aW(){if($G)return HG;$G=1;var t=uW(),e=wG();return HG=function(r){var n=t(r,"string");return e(n)?n:n+""}}function sW(){if(VG)return UG;VG=1;var t=cV(),e=hG(),r=t.document,n=e(r)&&e(r.createElement);return UG=function(t){return n?r.createElement(t):{}}}function cW(){if(WG)return GG;WG=1;var t=SV(),e=lV(),r=sW();return GG=!t&&!e(function(){return 7!==Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a})}function lW(){if(qG)return wV;qG=1;var t=SV(),e=CV(),r=sG(),n=cG(),o=pG(),i=aW(),u=nW(),a=cW(),s=Object.getOwnPropertyDescriptor;return wV.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 n(!e(r.f,t,c),t[c])},wV}function fW(){if(JG)return XG;JG=1;var t=vV(),e=CG(),r=fV(),n=t(t.bind);return XG=function(t,o){return e(t),void 0===o?t:r?n(t,o):function(){return t.apply(o,arguments)}},XG}var dW,pW,hW,vW,gW,yW,mW,bW,EW,wW,SW,CW,DW,OW,AW,xW,TW,NW,kW,PW,BW,IW,FW,RW,LW,_W,jW,MW,zW,HW,$W,UW,VW,GW,WW,qW,KW,YW,XW={};function JW(){return pW?dW:(pW=1,dW=SV()&&lV()(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}))}function ZW(){if(vW)return hW;vW=1;var t=hG(),e=String,r=TypeError;return hW=function(n){if(t(n))return n;throw new r(e(n)+" is not an object")}}function QW(){if(gW)return XW;gW=1;var t=SV(),e=cW(),r=JW(),n=ZW(),o=aW(),i=TypeError,u=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s="enumerable",c="configurable",l="writable";return XW.f=t?r?function(t,e,r){if(n(t),e=o(e),n(r),"function"==typeof t&&"prototype"===e&&"value"in r&&l in r&&!r[l]){var i=a(t,e);i&&i[l]&&(t[e]=r.value,r={configurable:c in r?r[c]:i[c],enumerable:s in r?r[s]:i[s],writable:!1})}return u(t,e,r)}:u:function(t,r,a){if(n(t),r=o(r),n(a),e)try{return u(t,r,a)}catch(t){}if("get"in a||"set"in a)throw new i("Accessors not supported");return"value"in a&&(t[r]=a.value),t},XW}function tq(){if(mW)return yW;mW=1;var t=SV(),e=QW(),r=cG();return yW=t?function(t,n,o){return e.f(t,n,r(1,o))}:function(t,e,r){return t[e]=r,t}}function eq(){if(EW)return bW;EW=1;var t=cV(),e=dV(),r=vV(),n=gV(),o=lW().f,i=function(){if(YG)return KG;YG=1;var t=lV(),e=gV(),r=/#|\.prototype\./,n=function(r,n){var s=i[o(r)];return s===a||s!==u&&(e(n)?t(n):!!n)},o=n.normalize=function(t){return String(t).replace(r,".").toLowerCase()},i=n.data={},u=n.NATIVE="N",a=n.POLYFILL="P";return KG=n}(),u=vG(),a=fW(),s=tq(),c=nW(),l=function(t){var r=function(n,o,i){if(this instanceof r){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,o)}return new t(n,o,i)}return e(t,this,arguments)};return r.prototype=t.prototype,r};return bW=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&&n(g)?r(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 rq(){if(SW)return wW;SW=1;var t=hV();return wW=Array.isArray||function(e){return"Array"===t(e)}}function nq(){if(AW)return OW;AW=1;var t=function(){if(DW)return CW;DW=1;var t=Math.ceil,e=Math.floor;return CW=Math.trunc||function(r){var n=+r;return(n>0?e:t)(n)}}();return OW=function(e){var r=+e;return r!=r||0===r?0:t(r)}}function oq(){if(kW)return NW;kW=1;var t=function(){if(TW)return xW;TW=1;var t=nq(),e=Math.min;return xW=function(r){var n=t(r);return n>0?e(n,9007199254740991):0}}();return NW=function(e){return t(e.length)}}function iq(){if(LW)return RW;LW=1;var t={};return t[iW()("toStringTag")]="z",RW="[object z]"===String(t)}function uq(){if(jW)return _W;jW=1;var t=iq(),e=gV(),r=hV(),n=iW()("toStringTag"),o=Object,i="Arguments"===r(function(){return arguments}());return _W=t?r: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),n))?a:i?r(u):"Object"===(s=r(u))&&e(u.callee)?"Arguments":s}}function aq(){if($W)return HW;$W=1;var t=pV(),e=lV(),r=gV(),n=uq(),o=gG(),i=function(){if(zW)return MW;zW=1;var t=pV(),e=gV(),r=tW(),n=t(Function.toString);return e(r.inspectSource)||(r.inspectSource=function(t){return n(t)}),MW=r.inspectSource}(),u=function(){},a=o("Reflect","construct"),s=/^\s*(?:class|function)\b/,c=t(s.exec),l=!s.test(u),f=function(t){if(!r(t))return!1;try{return a(u,[],t),!0}catch(t){return!1}},d=function(t){if(!r(t))return!1;switch(n(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return l||!!c(s,i(t))}catch(t){return!0}};return d.sham=!0,HW=!a||e(function(){var t;return f(f.call)||!f(Object)||!f(function(){t=!0})||t})?d:f}function sq(){if(WW)return GW;WW=1;var t=function(){if(VW)return UW;VW=1;var t=rq(),e=aq(),r=hG(),n=iW()("species"),o=Array;return UW=function(i){var u;return t(i)&&(u=i.constructor,(e(u)&&(u===o||t(u.prototype))||r(u)&&null===(u=u[n]))&&(u=void 0)),void 0===u?o:u}}();return GW=function(e,r){return new(t(e))(0===r?0:r)}}var cq,lq,fq={},dq={};function pq(){if(lq)return cq;lq=1;var t=uq(),e=String;return cq=function(r){if("Symbol"===t(r))throw new TypeError("Cannot convert a Symbol value to a string");return e(r)}}var hq,vq,gq,yq,mq,bq,Eq,wq,Sq,Cq,Dq,Oq,Aq,xq,Tq,Nq,kq,Pq,Bq,Iq={};function Fq(){if(yq)return gq;yq=1;var t=pG(),e=function(){if(vq)return hq;vq=1;var t=nq(),e=Math.max,r=Math.min;return hq=function(n,o){var i=t(n);return i<0?e(i+o,0):r(i,o)},hq}(),r=oq(),n=function(n){return function(o,i,u){var a=t(o),s=r(a);if(0===s)return!n&&-1;var c,l=e(u,s);if(n&&i!=i){for(;s>l;)if((c=a[l++])!=c)return!0}else for(;s>l;l++)if((n||l in a)&&a[l]===i)return n||l||0;return!n&&-1}};return gq={includes:n(!0),indexOf:n(!1)}}function Rq(){return bq?mq:(bq=1,mq={})}function Lq(){if(wq)return Eq;wq=1;var t=pV(),e=nW(),r=pG(),n=Fq().indexOf,o=Rq(),i=t([].push);return Eq=function(t,u){var a,s=r(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++])&&(~n(l,a)||i(l,a));return l}}function _q(){return Cq?Sq:(Cq=1,Sq=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function jq(){if(Oq)return Dq;Oq=1;var t=Lq(),e=_q();return Dq=Object.keys||function(r){return t(r,e)}}function Mq(){if(Aq)return Iq;Aq=1;var t=SV(),e=JW(),r=QW(),n=ZW(),o=pG(),i=jq();return Iq.f=t&&!e?Object.defineProperties:function(t,e){n(t);for(var u,a=o(e),s=i(e),c=s.length,l=0;c>l;)r.f(t,u=s[l++],a[u]);return t},Iq}function zq(){if(kq)return Nq;kq=1;var t=eW(),e=oW(),r=t("keys");return Nq=function(t){return r[t]||(r[t]=e(t))}}function Hq(){if(Bq)return Pq;Bq=1;var t,e=ZW(),r=Mq(),n=_q(),o=Rq(),i=Tq?xq:(Tq=1,xq=gG()("document","documentElement")),u=sW(),a="prototype",s="script",c=zq()("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,r,o;p="undefined"!=typeof document?document.domain&&t?d(t):(r=u("iframe"),o="java"+s+":",r.style.display="none",i.appendChild(r),r.src=String(o),(e=r.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F):d(t);for(var c=n.length;c--;)delete p[a][n[c]];return p()};return o[c]=!0,Pq=Object.create||function(t,n){var o;return null!==t?(l[a]=e(t),o=new l,l[a]=null,o[c]=t):o=p(),void 0===n?o:r.f(o,n)}}var $q,Uq={};function Vq(){if($q)return Uq;$q=1;var t=Lq(),e=_q().concat("length","prototype");return Uq.f=Object.getOwnPropertyNames||function(r){return t(r,e)},Uq}var Gq,Wq,qq,Kq={};function Yq(){return Wq?Gq:(Wq=1,Gq=pV()([].slice))}var Xq,Jq,Zq,Qq,tK,eK={};function rK(){return Xq||(Xq=1,eK.f=Object.getOwnPropertySymbols),eK}function nK(){if(Zq)return Jq;Zq=1;var t=tq();return Jq=function(e,r,n,o){return o&&o.enumerable?e[r]=n:t(e,r,n),e}}var oK,iK,uK,aK,sK,cK,lK,fK,dK,pK,hK,vK,gK,yK,mK,bK,EK={};function wK(){if(oK)return EK;oK=1;var t=iW();return EK.f=t,EK}function SK(){if(uK)return iK;uK=1;var t=vG(),e=nW(),r=wK(),n=QW().f;return iK=function(o){var i=t.Symbol||(t.Symbol={});e(i,o)||n(i,o,{value:r.f(o)})}}function CK(){if(sK)return aK;sK=1;var t=CV(),e=gG(),r=iW(),n=nK();return aK=function(){var o=e("Symbol"),i=o&&o.prototype,u=i&&i.valueOf,a=r("toPrimitive");i&&!i[a]&&n(i,a,function(e){return t(u,this)},{arity:1})}}function DK(){if(dK)return fK;dK=1;var t=iq(),e=QW().f,r=tq(),n=nW(),o=function(){if(lK)return cK;lK=1;var t=iq(),e=uq();return cK=t?{}.toString:function(){return"[object "+e(this)+"]"}}(),i=iW()("toStringTag");return fK=function(u,a,s,c){var l=s?u:u&&u.prototype;l&&(n(l,i)||e(l,i,{configurable:!0,value:a}),c&&!t&&r(l,"toString",o))}}function OK(){if(gK)return vK;gK=1;var t,e,r,n=function(){if(hK)return pK;hK=1;var t=cV(),e=gV(),r=t.WeakMap;return pK=e(r)&&/native code/.test(String(r))}(),o=cV(),i=hG(),u=tq(),a=nW(),s=tW(),c=zq(),l=Rq(),f="Object already initialized",d=o.TypeError,p=o.WeakMap;if(n||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)||{}},r=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]:{}},r=function(t){return a(t,v)}}return vK={set:t,get:e,has:r,enforce:function(n){return r(n)?e(n):t(n,{})},getterFor:function(t){return function(r){var n;if(!i(r)||(n=e(r)).type!==t)throw new d("Incompatible receiver, "+t+" required");return n}}}}var AK,xK,TK,NK={};function kK(){return xK?AK:(xK=1,AK=bG()&&!!Symbol.for&&!!Symbol.keyFor)}var PK,BK,IK,FK,RK={},LK={};var _K,jK,MK={};function zK(){return jK||(jK=1,function(){if(bK)return dq;bK=1;var t=eq(),e=cV(),r=CV(),n=pV(),o=QG(),i=SV(),u=bG(),a=lV(),s=nW(),c=yG(),l=ZW(),f=pG(),d=aW(),p=pq(),h=cG(),v=Hq(),g=jq(),y=Vq(),m=function(){if(qq)return Kq;qq=1;var t=hV(),e=pG(),r=Vq().f,n=Yq(),o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];return Kq.f=function(i){return o&&"Window"===t(i)?function(t){try{return r(t)}catch(t){return n(o)}}(i):r(e(i))},Kq}(),b=rK(),E=lW(),w=QW(),S=Mq(),C=sG(),D=nK(),O=function(){if(tK)return Qq;tK=1;var t=QW();return Qq=function(e,r,n){return t.f(e,r,n)}}(),A=eW(),x=zq(),T=Rq(),N=oW(),k=iW(),P=wK(),B=SK(),I=CK(),F=DK(),R=OK(),L=function(){if(mK)return yK;mK=1;var t=fW(),e=pV(),r=lG(),n=rW(),o=oq(),i=sq(),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=n(h),w=r(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 yK={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,_=x("hidden"),j="Symbol",M="prototype",z=R.set,H=R.getterFor(j),$=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=n([].push),Q=A("symbols"),tt=A("op-symbols"),et=A("wks"),rt=!q||!q[M]||!q[M].findChild,nt=function(t,e,r){var n=K($,e);n&&delete $[e],Y(t,e,r),n&&t!==$&&Y($,e,n)},ot=i&&a(function(){return 7!==v(Y({},"a",{get:function(){return Y(this,"a",{value:7}).a}})).a})?nt:Y,it=function(t,e){var r=Q[t]=v(V);return z(r,{type:j,tag:t,description:e}),i||(r.description=e),r},ut=function(t,e,r){t===$&&ut(tt,e,r),l(t);var n=d(e);return l(r),s(Q,n)?(r.enumerable?(s(t,_)&&t[_][n]&&(t[_][n]=!1),r=v(r,{enumerable:h(0,!1)})):(s(t,_)||Y(t,_,h(1,v(null))),t[_][n]=!0),ot(t,n,r)):Y(t,n,r)},at=function(t,e){l(t);var n=f(e),o=g(n).concat(ft(n));return L(o,function(e){i&&!r(st,n,e)||ut(t,e,n[e])}),t},st=function(t){var e=d(t),n=r(J,this,e);return!(this===$&&s(Q,e)&&!s(tt,e))&&(!(n||!s(this,e)||!s(Q,e)||s(this,_)&&this[_][e])||n)},ct=function(t,e){var r=f(t),n=d(e);if(r!==$||!s(Q,n)||s(tt,n)){var o=K(r,n);return!o||!s(Q,n)||s(r,_)&&r[_][n]||(o.enumerable=!0),o}},lt=function(t){var e=X(f(t)),r=[];return L(e,function(t){s(Q,t)||s(T,t)||Z(r,t)}),r},ft=function(t){var e=t===$,r=X(e?tt:f(t)),n=[];return L(r,function(t){!s(Q,t)||e&&!s($,t)||Z(n,Q[t])}),n};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,n=N(t),o=function(t){var i=void 0===this?e:this;i===$&&r(o,tt,t),s(i,_)&&s(i[_],n)&&(i[_][n]=!1);var u=h(1,t);try{ot(i,n,u)}catch(t){if(!(t instanceof G))throw t;nt(i,n,u)}};return i&&rt&&ot($,n,{configurable:!0,set:o}),it(n,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,P.f=function(t){return it(k(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}),L(g(et),function(t){B(t)}),t({target:j,stat:!0,forced:!u},{useSetter:function(){rt=!0},useSimple:function(){rt=!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}),I(),F(U,j),T[_]=!0}(),function(){if(TK)return NK;TK=1;var t=eq(),e=gG(),r=nW(),n=pq(),o=eW(),i=kK(),u=o("string-to-symbol-registry"),a=o("symbol-to-string-registry");t({target:"Symbol",stat:!0,forced:!i},{for:function(t){var o=n(t);if(r(u,o))return u[o];var i=e("Symbol")(o);return u[o]=i,a[i]=o,i}})}(),function(){if(PK)return RK;PK=1;var t=eq(),e=nW(),r=wG(),n=SG(),o=eW(),i=kK(),u=o("symbol-to-string-registry");t({target:"Symbol",stat:!0,forced:!i},{keyFor:function(t){if(!r(t))throw new TypeError(n(t)+" is not a symbol");if(e(u,t))return u[t]}})}(),function(){if(FK)return LK;FK=1;var t=eq(),e=gG(),r=dV(),n=CV(),o=pV(),i=lV(),u=gV(),a=wG(),s=Yq(),c=function(){if(IK)return BK;IK=1;var t=pV(),e=rq(),r=gV(),n=hV(),o=pq(),i=t([].push);return BK=function(t){if(r(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"!==n(c)&&"String"!==n(c)||i(a,o(c))}var l=a.length,f=!0;return function(t,r){if(f)return f=!1,r;if(e(this))return r;for(var n=0;n<l;n++)if(a[n]===t)return r}}}}(),l=bG(),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=n(i,this,f(t),e)),!a(e))return e},r(d,null,o)},D=function(t,e,r){var n=h(r,e-1),o=h(r,e+1);return p(b,t)&&!p(E,o)||p(E,t)&&!p(b,n)?"\\u"+y(v(t,0),16):t};d&&t({target:"JSON",stat:!0,arity:3,forced:w||S},{stringify:function(t,e,n){var o=s(arguments),i=r(w?C:d,null,o);return S&&"string"==typeof i?g(i,m,D):i}})}(),function(){if(_K)return MK;_K=1;var t=eq(),e=bG(),r=lV(),n=rK(),o=rW();t({target:"Object",stat:!0,forced:!e||r(function(){n.f(1)})},{getOwnPropertySymbols:function(t){var e=n.f;return e?e(o(t)):[]}})}()),fq}var HK,$K,UK={};function VK(){return HK||(HK=1,SK()("asyncDispose")),UK}var GK,WK,qK,KK={};function YK(){return GK||(GK=1,SK()("dispose")),KK}var XK,JK,ZK,QK,tY,eY,rY,nY={};function oY(){return XK||(XK=1,SK()("iterator")),nY}var iY,uY,aY,sY,cY,lY,fY={},dY={},pY={};function hY(){return lY?cY:(lY=1,function(){if(YW)return sV;YW=1;var t=eq(),e=lV(),r=rq(),n=hG(),o=rW(),i=oq(),u=function(){if(BW)return PW;BW=1;var t=TypeError;return PW=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}}(),a=function(){if(FW)return IW;FW=1;var t=SV(),e=QW(),r=cG();return IW=function(n,o,i){t?e.f(n,o,r(0,i)):n[o]=i}}(),s=sq(),c=function(){if(KW)return qW;KW=1;var t=lV(),e=iW(),r=mG(),n=e("species");return qW=function(e){return r>=51||!t(function(){var t=[];return(t.constructor={})[n]=function(){return{foo:1}},1!==t[e](Boolean).foo})}}(),l=iW(),f=mG(),d=l("isConcatSpreadable"),p=f>=51||!e(function(){var t=[];return t[d]=!1,t.concat()[0]!==t}),h=function(t){if(!n(t))return!1;var e=t[d];return void 0!==e?!!e:r(t)};t({target:"Array",proto:!0,arity:1,forced:!p||!c("concat")},{concat:function(t){var e,r,n,c,l,f=o(this),d=s(f,0),p=0;for(e=-1,n=arguments.length;e<n;e++)if(h(l=-1===e?f:arguments[e]))for(c=i(l),u(p+c),r=0;r<c;r++,p++)r in l&&a(d,p,l[r]);else u(p+1),a(d,p++,l);return d.length=p,d}})}(),zK(),VK(),$K||($K=1,SK()("asyncIterator")),YK(),WK||(WK=1,SK()("hasInstance")),qK||(qK=1,SK()("isConcatSpreadable")),oY(),JK||(JK=1,SK()("match")),ZK||(ZK=1,SK()("matchAll")),QK||(QK=1,SK()("replace")),tY||(tY=1,SK()("search")),eY||(eY=1,SK()("species")),rY||(rY=1,SK()("split")),function(){if(iY)return fY;iY=1;var t=SK(),e=CK();t("toPrimitive"),e()}(),function(){if(uY)return dY;uY=1;var t=gG(),e=SK(),r=DK();e("toStringTag"),r(t("Symbol"),"Symbol")}(),aY||(aY=1,SK()("unscopables")),function(){if(sY)return pY;sY=1;var t=cV();DK()(t.JSON,"JSON",!0)}(),cY=vG().Symbol)}var vY,gY,yY,mY,bY,EY,wY,SY,CY,DY,OY,AY,xY,TY,NY,kY,PY,BY,IY,FY,RY,LY,_Y,jY,MY,zY,HY,$Y,UY,VY,GY,WY,qY,KY={};function YY(){return mY?yY:(mY=1,yY={})}function XY(){if(DY)return CY;DY=1;var t=nW(),e=gV(),r=rW(),n=zq(),o=SY?wY:(SY=1,wY=!lV()(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),i=n("IE_PROTO"),u=Object,a=u.prototype;return CY=o?u.getPrototypeOf:function(n){var o=r(n);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 JY(){if(AY)return OY;AY=1;var t,e,r,n=lV(),o=gV(),i=hG(),u=Hq(),a=XY(),s=nK(),c=iW(),l=QG(),f=c("iterator"),d=!1;return[].keys&&("next"in(r=[].keys())?(e=a(a(r)))!==Object.prototype&&(t=e):d=!0),!i(t)||n(function(){var e={};return t[f].call(e)!==e})?t={}:l&&(t=u(t)),o(t[f])||s(t,f,function(){return this}),OY={IteratorPrototype:t,BUGGY_SAFARI_ITERATORS:d}}function ZY(){if(FY)return IY;FY=1;var t=function(){if(BY)return PY;BY=1;var t=hG();return PY=function(e){return t(e)||null===e}}(),e=String,r=TypeError;return IY=function(n){if(t(n))return n;throw new r("Can't set "+e(n)+" as a prototype")}}function QY(){if(LY)return RY;LY=1;var t=function(){if(kY)return NY;kY=1;var t=pV(),e=CG();return NY=function(r,n,o){try{return t(e(Object.getOwnPropertyDescriptor(r,n)[o]))}catch(t){}}}(),e=hG(),r=dG(),n=ZY();return RY=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 r(t),n(u),e(t)?(i?o(t,u):t.__proto__=u,t):t}}():void 0)}function tX(){if(jY)return _Y;jY=1;var t=eq(),e=CV(),r=QG(),n=function(){if(EY)return bY;EY=1;var t=SV(),e=nW(),r=Function.prototype,n=t&&Object.getOwnPropertyDescriptor,o=e(r,"name"),i=o&&"something"===function(){}.name,u=o&&(!t||t&&n(r,"name").configurable);return bY={EXISTS:o,PROPER:i,CONFIGURABLE:u}}(),o=gV(),i=function(){if(TY)return xY;TY=1;var t=JY().IteratorPrototype,e=Hq(),r=cG(),n=DK(),o=YY(),i=function(){return this};return xY=function(u,a,s,c){var l=a+" Iterator";return u.prototype=e(t,{next:r(+!c,s)}),n(u,l,!1,!0),o[l]=i,u}}(),u=XY(),a=QY(),s=DK(),c=tq(),l=nK(),f=iW(),d=YY(),p=JY(),h=n.PROPER,v=n.CONFIGURABLE,g=p.IteratorPrototype,y=p.BUGGY_SAFARI_ITERATORS,m=f("iterator"),b="keys",E="values",w="entries",S=function(){return this};return _Y=function(n,f,p,C,D,O,A){i(p,f,C);var x,T,N,k=function(t){if(t===D&&R)return R;if(!y&&t&&t in I)return I[t];switch(t){case b:case E:case w:return function(){return new p(this,t)}}return function(){return new p(this)}},P=f+" Iterator",B=!1,I=n.prototype,F=I[m]||I["@@iterator"]||D&&I[D],R=!y&&F||k(D),L="Array"===f&&I.entries||F;if(L&&(x=u(L.call(new n)))!==Object.prototype&&x.next&&(r||u(x)===g||(a?a(x,g):o(x[m])||l(x,m,S)),s(x,P,!0,!0),r&&(d[P]=S)),h&&D===E&&F&&F.name!==E&&(!r&&v?c(I,"name",E):(B=!0,R=function(){return e(F,this)})),D)if(T={values:k(E),keys:O?R:k(b),entries:k(w)},A)for(N in T)(y||B||!(N in I))&&l(I,N,T[N]);else t({target:f,proto:!0,forced:y||B},T);return r&&!A||I[m]===R||l(I,m,R,{name:D}),d[f]=R,T}}function eX(){return zY?MY:(zY=1,MY=function(t,e){return{value:t,done:e}})}function rX(){if($Y)return HY;$Y=1;var t=pG(),e=gY?vY:(gY=1,vY=function(){}),r=YY(),n=OK(),o=QW().f,i=tX(),u=eX(),a=QG(),s=SV(),c="Array Iterator",l=n.set,f=n.getterFor(c);HY=i(Array,"Array",function(e,r){l(this,{type:c,target:t(e),index:0,kind:r})},function(){var t=f(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=null,u(void 0,!0);switch(t.kind){case"keys":return u(r,!1);case"values":return u(e[r],!1)}return u([r,e[r]],!1)},"values");var d=r.Arguments=r.Array;if(e("keys"),e("values"),e("entries"),!a&&s&&"values"!==d.name)try{o(d,"name",{value:"values"})}catch(t){}return HY}function nX(){if(GY)return KY;GY=1,rX();var t=VY?UY:(VY=1,UY={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=cV(),r=DK(),n=YY();for(var o in t)r(e[o],o),n[o]=n.Array;return KY}var oX,iX,uX,aX,sX,cX,lX,fX,dX,pX,hX,vX,gX,yX,mX,bX,EX,wX,SX,CX,DX,OX,AX,xX,TX={};function NX(){if(cX)return sX;cX=1;var t=function(){if(qY)return WY;qY=1;var t=hY();return nX(),WY=t}();return function(){if(oX)return TX;oX=1;var t=iW(),e=QW().f,r=t("metadata"),n=Function.prototype;void 0===n[r]&&e(n,r,{value:null})}(),iX||(iX=1,VK()),uX||(uX=1,YK()),aX||(aX=1,SK()("metadata")),sX=t}function kX(){if(fX)return lX;fX=1;var t=gG(),e=pV(),r=t("Symbol"),n=r.keyFor,o=e(r.prototype.valueOf);return lX=r.isRegisteredSymbol||function(t){try{return void 0!==n(o(t))}catch(t){return!1}}}function PX(){if(hX)return pX;hX=1;for(var t=eW(),e=gG(),r=pV(),n=wG(),o=iW(),i=e("Symbol"),u=i.isWellKnownSymbol,a=e("Object","getOwnPropertyNames"),s=r(i.prototype.valueOf),c=t("wks"),l=0,f=a(i),d=f.length;l<d;l++)try{var p=f[l];n(i[p])&&o(p)}catch(t){}return pX=function(t){if(u&&u(t))return!0;try{for(var e=s(t),r=0,n=a(c),o=n.length;r<o;r++)if(c[n[r]]==e)return!0}catch(t){}return!1},pX}var BX,IX,FX,RX,LX,_X,jX,MX,zX,HX,$X,UX,VX,GX=DL(xX?AX:(xX=1,AX=function(){if(OX)return DX;OX=1;var t=NX();return dX||(dX=1,eq()({target:"Symbol",stat:!0},{isRegisteredSymbol:kX()})),vX||(vX=1,eq()({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:PX()})),gX||(gX=1,SK()("customMatcher")),yX||(yX=1,SK()("observable")),mX||(mX=1,eq()({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:kX()})),bX||(bX=1,eq()({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:PX()})),EX||(EX=1,SK()("matcher")),wX||(wX=1,SK()("metadataKey")),SX||(SX=1,SK()("patternMatch")),CX||(CX=1,SK()("replaceAll")),DX=t}())),WX={};function qX(){return LX?RX:(LX=1,rX(),function(){if(FX)return WX;FX=1;var t=function(){if(IX)return BX;IX=1;var t=pV(),e=nq(),r=pq(),n=dG(),o=t("".charAt),i=t("".charCodeAt),u=t("".slice),a=function(t){return function(a,s){var c,l,f=r(n(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 BX={codeAt:a(!1),charAt:a(!0)}}().charAt,e=pq(),r=OK(),n=tX(),o=eX(),i="String Iterator",u=r.set,a=r.getterFor(i);n(String,"String",function(t){u(this,{type:i,string:e(t),index:0})},function(){var e,r=a(this),n=r.string,i=r.index;return i>=n.length?o(void 0,!0):(e=t(n,i),r.index+=e.length,o(e,!1))})}(),oY(),RX=wK().f("iterator"))}function KX(){return zX?MX:(zX=1,MX=function(){if(jX)return _X;jX=1;var t=qX();return nX(),_X=t}())}var YX=DL(VX?UX:(VX=1,UX=$X?HX:($X=1,HX=KX())));function XX(t){return XX="function"==typeof GX&&"symbol"==typeof YX?function(t){return typeof t}:function(t){return t&&"function"==typeof GX&&t.constructor===GX&&t!==GX.prototype?"symbol":typeof t},XX(t)}var JX,ZX,QX,tJ={};!function(){if(QX)return tJ;QX=1;var t=ML(),e=aM().EXISTS,r=B_(),n=function(){if(ZX)return JX;ZX=1;var t=dM(),e=Uj();return JX=function(r,n,o){return o.get&&t(o.get,n,{getter:!0}),o.set&&t(o.set,n,{setter:!0}),e.f(r,n,o)}}(),o=Function.prototype,i=r(o.toString),u=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,a=r(u.exec);t&&!e&&n(o,"name",{configurable:!0,get:function(){try{return a(u,i(this))[1]}catch(t){return""}}})}();var eJ,rJ,nJ,oJ,iJ,uJ,aJ,sJ=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,r=Kh.marks(t);return r&&r[e]?r[e]:""},t.prototype.isDisabled=function(t){return null==t.selection||!!_z(Kh.nodes(t,{match:function(e){return"pre"===CB.getNodeType(e)||!!Kh.isVoid(t,e)},universal:!0}),1)[0]},t.prototype.exec=function(t,e){var r=this.mark;e?t.addMark(r,e):t.removeMark(r)},t}(),cJ=function(t){function e(){var e=t.apply(this,jz([],_z(arguments),!1))||this;return e.title=LF("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 Bz(e,t),e.prototype.getOptions=function(t){var e=[],r=t.getMenuConfig(this.mark).fontFamilyList,n=void 0===r?[]:r;e.push({text:LF("fontFamily.default"),value:""}),n.forEach(function(t){if("string"==typeof t)e.push({text:t,value:t,styleForRenderMenuList:{"font-family":t}});else if("object"===XX(t)){var r=t.name,n=t.value;e.push({text:r,value:n,styleForRenderMenuList:{"font-family":n}})}});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}(sJ),lJ=function(t){function e(){var e=t.apply(this,jz([],_z(arguments),!1))||this;return e.title=LF("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 Bz(e,t),e.prototype.getOptions=function(t){var e=[],r=t.getMenuConfig(this.mark).fontSizeList,n=void 0===r?[]:r;e.push({text:LF("fontSize.default"),value:""}),n.forEach(function(t){if("string"==typeof t)e.push({text:t,value:t});else if("object"===XX(t)){var r=t.name,n=t.value;e.push({text:r,value:n})}});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}(sJ),fJ={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},dJ={renderStyle:function(t,e){var r=t,n=r.fontSize,o=r.fontFamily,i=e;return n&&jU(i,{fontSize:n}),o&&jU(i,{fontFamily:o}),i},styleToHtml:function(t,e){if(!wv.isText(t))return e;var r,n=t,o=n.fontSize,i=n.fontFamily;return o||i?((n$(e)||"span"!==i$(r=og(e)))&&(r=og("<span>".concat(e,"</span>"))),o&&r.css("font-size",o),i&&r.css("font-family",i),o$(r)):e},preParseHtml:[{selector:"font",preParseHtml:function(t){var e=og(t);if("font"!==i$(e))return t;var r=e.attr("size")||"";r&&(e.removeAttr("size"),e.css("font-size",fJ[r]));var n=e.attr("face")||"";return n&&(e.removeAttr("face"),e.css("font-family",n)),e[0]}}],parseStyleHtml:function(t,e,r){var n=og(t);if(!wv.isText(e))return e;var o=e,i=u$(n,"font-size");i&&(o.fontSize=i);var u=u$(n,"font-family").replace(/"/g,"");return u&&(o.fontFamily=u),o},menus:[{key:"fontSize",factory:function(){return new lJ},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 cJ},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},pJ={};!function(){if(aJ)return pJ;aJ=1;var t=az(),e=function(){if(uJ)return iJ;uJ=1;var t=ML(),e=jL(),r=B_(),n=function(){if(oJ)return nJ;oJ=1;var t=Aj(),e=j_(),r=Oj(),n=cM(),o=function(){if(rJ)return eJ;rJ=1;var t=jL();return eJ=!t(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})}(),i=n("IE_PROTO"),u=Object,a=u.prototype;return nJ=o?u.getPrototypeOf:function(n){var o=r(n);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=xz(),i=__(),u=r(k_().f),a=r([].push),s=t&&e(function(){var t=Object.create(null);return t[2]=2,!u(t,2)}),c=function(e){return function(r){for(var c,l=i(r),f=o(l),d=s&&null===n(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 iJ={entries:c(!0),values:c(!1)}}().entries;t({target:"Object",stat:!0},{entries:function(t){return e(t)}})}();var hJ,vJ={};!function(){if(hJ)return vJ;hJ=1;var t=az(),e=Oj(),r=xz();t({target:"Object",stat:!0,forced:jL()(function(){r(1)})},{keys:function(t){return r(e(t))}})}();var gJ=function(){function t(){this.title=LF("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 r,n;if(e.getSelectionText().length){if(t.attrs.formatStyle){!function(t){var e=Kh.marks(t);e&&Object.keys(e).forEach(function(e){t.removeMark(e)})}(e);try{for(var o=Lz(Object.entries(t.attrs.formatStyle)),i=o.next();!i.done;i=o.next()){var u=_z(i.value,2),a=u[0],s=u[1];e.addMark(a,s)}}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.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=Kh.marks(e),t.attrs.isSelect=!0),e.blur(),e.focus()},t.attrs={isSelect:!1,formatStyle:null},t}(),yJ={menus:[{key:"formatPainter",factory:function(){return new gJ}}],editorPlugin:function(t){var e=new gJ,r=t.onChange,n=t,o=function(){e.setFormatHtml(n),document.removeEventListener("mouseup",o)};return n.onChange=function(){r(),gJ.attrs.isSelect&&(document.removeEventListener("mouseup",o),document.addEventListener("mouseup",o))},n}},mJ=function(){function t(){this.title=LF("fullScreen.title"),this.iconSvg=oH,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?oH:'<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?LF("fullScreen.title"):LF("fullScreen.cancelTitle")},t.prototype.exec=function(t,e){t.isFullScreen?t.unFullScreen():t.fullScreen()},t}(),bJ={menus:[{key:"fullScreen",factory:function(){return new mJ}}]};function EJ(t){return function(e,r){return"<h".concat(t,">").concat(r,"</h").concat(t,">")}}var wJ,SJ={type:"header1",elemToHtml:EJ(1)},CJ={type:"header2",elemToHtml:EJ(2)},DJ={type:"header3",elemToHtml:EJ(3)},OJ={type:"header4",elemToHtml:EJ(4)},AJ={type:"header5",elemToHtml:EJ(5)},xJ={type:"header6",elemToHtml:EJ(6)},TJ={};function NJ(t){var e=_z(Kh.nodes(t,{match:function(t){return CB.getNodeType(t).startsWith("header")},universal:!0}),1),r=e[0];if(null==r)return"paragraph";var n=_z(r,1)[0];return CB.getNodeType(n)}function kJ(t){return null==t.selection||!_z(Kh.nodes(t,{match:function(t){var e=CB.getNodeType(t);return"paragraph"===e||!!e.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function PJ(t,e){e&&zv.setNodes(t,{type:e})}!function(){if(wJ)return TJ;wJ=1;var t,e=az(),r=sH(),n=Bj().f,o=FM(),i=lz(),u=j$(),a=L_(),s=M$(),c=wj(),l=r("".slice),f=Math.min,d=s("startsWith");e({target:"String",proto:!0,forced:!(!c&&!d&&(t=n(String.prototype,"startsWith"),t&&!t.writable)||d)},{startsWith:function(t){var e=i(a(this));u(t);var r=o(f(arguments.length>1?arguments[1]:void 0,e.length)),n=i(t);return l(e,r,r+n.length)===n}})}();var BJ=function(){function t(){this.tag="button"}return t.prototype.getValue=function(t){return NJ(t)},t.prototype.isActive=function(t){return this.getValue(t)===this.type},t.prototype.isDisabled=function(t){return kJ(t)},t.prototype.exec=function(t,e){var r=this.type;PJ(t,e===r?"paragraph":r)},t}(),IJ=function(t){function e(){var e=t.apply(this,jz([],_z(arguments),!1))||this;return e.title="H1",e.type="header1",e}return Bz(e,t),e}(BJ),FJ=function(t){function e(){var e=t.apply(this,jz([],_z(arguments),!1))||this;return e.title="H2",e.type="header2",e}return Bz(e,t),e}(BJ),RJ=function(t){function e(){var e=t.apply(this,jz([],_z(arguments),!1))||this;return e.title="H3",e.type="header3",e}return Bz(e,t),e}(BJ),LJ=function(t){function e(){var e=t.apply(this,jz([],_z(arguments),!1))||this;return e.title="H4",e.type="header4",e}return Bz(e,t),e}(BJ),_J=function(t){function e(){var e=t.apply(this,jz([],_z(arguments),!1))||this;return e.title="H5",e.type="header5",e}return Bz(e,t),e}(BJ),jJ=function(t){function e(){var e=t.apply(this,jz([],_z(arguments),!1))||this;return e.title="H6",e.type="header6",e}return Bz(e,t),e}(BJ),MJ=function(){function t(){this.title=LF("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:LF("header.text")}],r=this.getValue(t).toString();return e.forEach(function(t){t.value===r?t.selected=!0:t.selected=void 0}),e},t.prototype.isActive=function(t){return!1},t.prototype.getValue=function(t){return NJ(t)},t.prototype.isDisabled=function(t){return kJ(t)},t.prototype.exec=function(t,e){PJ(t,e.toString())},t}(),zJ={key:"headerSelect",factory:function(){return new MJ}},HJ={key:"header1",factory:function(){return new IJ}},$J={key:"header2",factory:function(){return new FJ}},UJ={key:"header3",factory:function(){return new RJ}},VJ={key:"header4",factory:function(){return new LJ}},GJ={key:"header5",factory:function(){return new _J}},WJ={key:"header6",factory:function(){return new jJ}};function qJ(t){return function(e,r,n){var o=og(e);return 0===(r=r.filter(function(t){return!!wv.isText(t)||!!n.isInline(t)})).length&&(r=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header".concat(t),children:r}}}var KJ={selector:"h1:not([data-w-e-type])",parseElemHtml:qJ(1)},YJ={selector:"h2:not([data-w-e-type])",parseElemHtml:qJ(2)},XJ={selector:"h3:not([data-w-e-type])",parseElemHtml:qJ(3)},JJ={selector:"h4:not([data-w-e-type])",parseElemHtml:qJ(4)},ZJ={selector:"h5:not([data-w-e-type])",parseElemHtml:qJ(5)},QJ={selector:"h6:not([data-w-e-type])",parseElemHtml:qJ(6)};function tZ(t){return function(e,r,n){return Ry("h".concat(t),null,r)}}var eZ={renderElems:[{type:"header1",renderElem:tZ(1)},{type:"header2",renderElem:tZ(2)},{type:"header3",renderElem:tZ(3)},{type:"header4",renderElem:tZ(4)},{type:"header5",renderElem:tZ(5)},{type:"header6",renderElem:tZ(6)}],elemsToHtml:[SJ,CJ,DJ,OJ,AJ,xJ],parseElemsHtml:[KJ,YJ,XJ,JJ,ZJ,QJ],menus:[zJ,HJ,$J,UJ,VJ,GJ,WJ],editorPlugin:function(t){var e=t.insertBreak,r=t;return r.insertBreak=function(){var n=_z(Kh.nodes(r,{match:function(t){return CB.getNodeType(t).startsWith("header")},universal:!0}),1)[0];n&&CB.isSelectionAtLineEnd(t,n[1])?zv.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):e()},r}},rZ=function(){function t(){this.title=LF("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==CB.getSelectedNodeByType(t,"image")},t.prototype.exec=function(t,e){this.isDisabled(t)||zv.removeNodes(t,{match:function(t){return CB.checkNodeType(t,"image")}})},t}();function nZ(t){return void 0===t&&(t="r"),"".concat(t,"-").concat(jg())}function oZ(t){return t.replace(/</g,"&lt;").replace(/>/g,"&gt;")}function iZ(t){var e=t.selection;return null==e||!dv.isCollapsed(e)||!!_z(Kh.nodes(t,{match:function(e){var r=CB.getNodeType(e);return"code"===r||"pre"===r||"link"===r||"list-item"===r||!!r.startsWith("header")||"blockquote"===r||!!Kh.isVoid(t,e)},universal:!0}),1)[0]}function uZ(t,e,r){return Fz(this,arguments,void 0,function(t,e,r,n,o){var i,u;return void 0===n&&(n=""),void 0===o&&(o=""),Rz(this,function(a){switch(a.label){case 0:return(i=e.getMenuConfig(t).checkImage)?[4,i(r,n,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 aZ(t,e,r){return Fz(this,void 0,void 0,function(){var n;return Rz(this,function(o){switch(o.label){case 0:return(n=e.getMenuConfig(t).parseImageSrc)?[4,n(r)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,r]}})})}function sZ(t,e){return Fz(this,arguments,void 0,function(t,e,r,n){var o,i,u;return void 0===r&&(r=""),void 0===n&&(n=""),Rz(this,function(a){switch(a.label){case 0:return[4,uZ("insertImage",t,e,r,n)];case 1:return a.sent()?[4,aZ("insertImage",t,e)]:[2];case 2:return o=a.sent(),i={type:"image",src:oZ(o),href:n,alt:r,style:{},children:[{text:""}]},null===t.selection&&t.restoreSelection(),CB.getSelectedNodeByType(t,"image")&&t.move(1),iZ(t)||(zv.insertNodes(t,i),(u=t.getMenuConfig("insertImage").onInsertedImage)&&u(i)),[2]}})})}function cZ(){return nZ("w-e-edit-image")}var lZ=function(){function t(){this.title=LF("image.edit"),this.iconSvg=rH,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=cZ(),this.altInputId=cZ(),this.hrefInputId=cZ(),this.buttonId=cZ()}return t.prototype.getValue=function(t){return""},t.prototype.getImageNode=function(t){return CB.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||!dv.isCollapsed(e)||null==CB.getSelectedNodeByType(t,"image")},t.prototype.getModalPositionNode=function(t){return this.getImageNode(t)},t.prototype.getModalContentElem=function(t){var e=this,r=this,n=r.srcInputId,o=r.altInputId,i=r.hrefInputId,u=r.buttonId,a=this.getImageNode(t);if(null==a)throw new Error("Not found selected image node");var s=_z(qF(LF("image.src"),n),2),c=s[0],l=og(s[1]),f=_z(qF(LF("image.desc"),o),2),d=f[0],p=og(f[1]),h=_z(qF(LF("image.link"),i),2),v=h[0],g=og(h[1]),y=_z(YF(u,LF("common.ok")),1)[0];if(null==this.$content){var m=og("<div></div>");m.on("click","#".concat(u),function(r){r.preventDefault();var u=m.find("#".concat(n)).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,r,n,o){void 0===r&&(r=""),void 0===n&&(n=""),void 0===o&&(o={}),e&&(t.restoreSelection(),this.isDisabled(t)||function(t,e){Fz(this,arguments,void 0,function(t,e,r,n,o){var i,u,a,s,c,l;return void 0===r&&(r=""),void 0===n&&(n=""),void 0===o&&(o={}),Rz(this,function(f){switch(f.label){case 0:return[4,uZ("editImage",t,e,r,n)];case 1:return f.sent()?[4,aZ("editImage",t,e)]:[2];case 2:return i=f.sent(),null==(u=CB.getSelectedNodeByType(t,"image"))||(a=u.style,s={src:i,alt:r,href:n,style:Iz(Iz({},void 0===a?{}:a),o)},zv.setNodes(t,s,{match:function(t){return CB.checkNodeType(t,"image")}}),c=CB.getSelectedNodeByType(t,"image"),(l=t.getMenuConfig("editImage").onUpdatedImage)&&l(c)),[2]}})})}(t,e,r,n,o))},t}();function fZ(){return nZ("w-e-insert-image")}var dZ=function(){function t(){this.title=LF("image.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=fZ(),this.heightInputId=fZ(),this.buttonId=fZ()}return t.prototype.getSelectedImageNode=function(t){return CB.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,r=e.widthInputId,n=e.heightInputId,o=e.buttonId,i=_z(qF(LF("image.width"),r,"auto"),2),u=i[0],a=og(i[1]),s=_z(qF(LF("image.height"),n,"auto"),2),c=s[0],l=og(s[1]),f=_z(YF(o,LF("image.ok")),1)[0],d=this.getSelectedImageNode(t);if(null==this.$content){var p=og("<div></div>");p.on("click","#".concat(o),function(e){e.preventDefault();var o=p.find("#".concat(r)).val().trim(),i=p.find("#".concat(n)).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=Iz(Iz({},h),{style:{width:c,height:l}});zv.setNodes(t,v,{match:function(t){return CB.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 pZ(){return nZ("w-e-insert-image")}var hZ,vZ,gZ,yZ,mZ,bZ=function(){function t(){this.title=LF("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=pZ(),this.altInputId=pZ(),this.hrefInputId=pZ(),this.buttonId=pZ()}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 iZ(t)},t.prototype.getModalPositionNode=function(t){return null},t.prototype.getModalContentElem=function(t){var e=this,r=this,n=r.srcInputId,o=r.altInputId,i=r.hrefInputId,u=r.buttonId,a=_z(qF(LF("image.src"),n),2),s=a[0],c=og(a[1]),l=_z(qF(LF("image.desc"),o),2),f=l[0],d=og(l[1]),p=_z(qF(LF("image.link"),i),2),h=p[0],v=og(p[1]),g=_z(YF(u,LF("common.ok")),1)[0];if(null==this.$content){var y=og("<div></div>");y.on("click","#".concat(u),function(r){r.preventDefault();var u=y.find("#".concat(n)).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,r,n){void 0===r&&(r=""),void 0===n&&(n=""),e&&(t.restoreSelection(),this.isDisabled(t)||sZ(t,e,r,n))},t}(),EZ=function(){function t(){this.title=LF("image.viewLink"),this.iconSvg=nH,this.tag="button"}return t.prototype.getValue=function(t){var e=CB.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}(),wZ=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 CB.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 r=this.getSelectedNode(t);if(null!=r){var n=CB.getHoverbar(t);n&&n.hideAndClean();var o=r.style,i={style:Iz(Iz({},void 0===o?{}:o),{width:this.value,height:""})};zv.setNodes(t,i,{match:function(t){return CB.checkNodeType(t,"image")}})}}},t}(),SZ=function(t){function e(){var e=t.apply(this,jz([],_z(arguments),!1))||this;return e.title="30%",e.value="30%",e}return Bz(e,t),e}(wZ),CZ=function(t){function e(){var e=t.apply(this,jz([],_z(arguments),!1))||this;return e.title="50%",e.value="50%",e}return Bz(e,t),e}(wZ),DZ=function(t){function e(){var e=t.apply(this,jz([],_z(arguments),!1))||this;return e.title="100%",e.value="100%",e}return Bz(e,t),e}(wZ),OZ={onInsertedImage:function(t){},onUpdatedImage:function(t){},checkImage:function(t,e,r){return!0},parseImageSrc:function(t){return t}},AZ={key:"insertImage",factory:function(){return new bZ},config:OZ},xZ={key:"deleteImage",factory:function(){return new rZ}},TZ={key:"editImage",factory:function(){return new lZ},config:OZ},NZ={key:"viewImageLink",factory:function(){return new EZ}},kZ={key:"imageWidth30",factory:function(){return new SZ}},PZ={key:"imageWidth50",factory:function(){return new CZ}},BZ={key:"imageWidth100",factory:function(){return new DZ}},IZ={key:"editorImageSizeMenu",factory:function(){return new dZ}},FZ={selector:"img:not([data-w-e-type])",parseElemHtml:function(t,e,r){var n=og(t),o=n.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:n.attr("src")||"",alt:n.attr("alt")||"",href:o,style:{width:u$(n,"width"),height:u$(n,"height")},width:n.attr("width")||"",height:n.attr("height")||"",children:[{text:""}]}}},RZ={};function LZ(t,e){var r=CB.findKey(t,e).id;return"w-e-image-container-".concat(r)}!function(){if(mZ)return RZ;mZ=1;var t=az(),e=B_(),r=BM(),n=function(){if(vZ)return hZ;vZ=1;var t=B_();return hZ=t(1.1.valueOf)}(),o=function(){if(yZ)return gZ;yZ=1;var t=BM(),e=lz(),r=L_(),n=RangeError;return gZ=function(o){var i=e(r(this)),u="",a=t(o);if(a<0||a===1/0)throw new n("Wrong number of repetitions");for(;a>0;(a>>>=1)&&(i+=i))1&a&&(u+=i);return u}}(),i=jL(),u=RangeError,a=String,s=Math.floor,c=e(o),l=e("".slice),f=e(1.1.toFixed),d=function(t,e,r){return 0===e?r:e%2==1?d(t,e-1,r*t):d(t*t,e/2,r)},p=function(t,e,r){for(var n=-1,o=r;++n<6;)o+=e*t[n],t[n]=o%1e7,o=s(o/1e7)},h=function(t,e){for(var r=6,n=0;--r>=0;)n+=t[r],t[r]=s(n/e),n=n%e*1e7},v=function(t){for(var e=6,r="";--e>=0;)if(""!==r||0===e||0!==t[e]){var n=a(t[e]);r=""===r?n:r+c("0",7-n.length)+n}return r};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=n(this),g=r(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,r=t;r>=4096;)e+=12,r/=4096;for(;r>=2;)e+=1,r/=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 _Z={type:"image",renderElem:function(t,e,r){var n=t,o=n.src,i=n.alt,u=void 0===i?"":i,a=n.href,s=void 0===a?"":a,c=n.style,l=void 0===c?{}:c,f=l.width,d=void 0===f?"":f,p=l.height,h=void 0===p?"":p,v=CB.isNodeSelected(r,t),g={maxWidth:"100%"};d&&(g.width="100%"),h&&(g.height="100%");var y=Ry("img",{style:g,src:o,alt:u,"data-href":s}),m=r.isDisabled();return v&&!m?function(t,e,r,n){var o=og("body"),i=LZ(t,e),u=n.width,a=n.height,s=0,c=0,l=0,f=0,d=!1,p=null,h=Jg(function(t){t.preventDefault();var e=t.clientX,r=c+(d?s-e:e-s),n=l*(r/c);r>f-6||null!=p&&(r<=15||n<=15||(p.css("width","".concat(r,"px")),p.css("height","".concat(n,"px"))))},100);function v(r){if(o.off("mousemove",h),null!=p){var n=p.width().toFixed(2),i=p.height().toFixed(2),u={style:Iz(Iz({},e.style),{width:"".concat(n,"px"),height:"".concat(i,"px")})};zv.setNodes(t,u,{at:CB.findPath(t,e)}),o.off("mouseup",v)}}function g(e,r){p=function(){var t=og("#".concat(i));if(0===t.length)throw new Error("Cannot find image container elem");return t}(),s=e,f=r;var n=p.find("img");if(0===n.length)throw new Error("Cannot find image elem");c=n.width(),l=n.height(),o.on("mousemove",h),o.on("mouseup",v);var u=CB.getHoverbar(t);u&&u.hideAndClean()}var y={};return u&&(y.width=u),a&&(y.height=a),y.boxShadow="0 0 0 1px #B4D5FF",Ry("div",{id:i,style:y,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(r){var n=og(r.target);if(n.hasClass("w-e-image-dragger")){r.preventDefault(),(n.hasClass("left-top")||n.hasClass("left-bottom"))&&(d=!0);var o=CB.getParentNode(t,e);if(null!=o){var i=CB.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(r.clientX,u.width-s-c-l-f)}}}}},r,Ry("div",{className:"w-e-image-dragger left-top"}),Ry("div",{className:"w-e-image-dragger right-top"}),Ry("div",{className:"w-e-image-dragger left-bottom"}),Ry("div",{className:"w-e-image-dragger right-bottom"}))}(r,t,y,{width:d,height:h}):function(t,e,r,n){var o=n.width,i=n.height,u={};return o&&(u.width=o),i&&(u.height=i),Ry("div",{id:LZ(t,e),style:u,className:"w-e-image-container"},r)}(r,t,y,{width:d,height:h})}},jZ={renderElems:[_Z],elemsToHtml:[{type:"image",elemToHtml:function(t,e){var r=t,n=r.src,o=r.alt,i=void 0===o?"":o,u=r.href,a=void 0===u?"":u,s=r.width,c=void 0===s?"":s,l=r.height,f=void 0===l?"":l,d=r.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(n,'" alt="').concat(i,'" data-href="').concat(a,'" width="').concat(c,'" height="').concat(f,'" style="').concat(m,'"/>')}}],parseElemsHtml:[FZ],menus:[AZ,xZ,TZ,NZ,kZ,PZ,BZ,IZ],editorPlugin:function(t){var e=t.isInline,r=t.isVoid,n=t;return n.isInline=function(t){return"image"===t.type||e(t)},n.isVoid=function(t){return"image"===t.type||r(t)},n}},MZ=function(){function t(){this.tag="button"}return t.prototype.getValue=function(t){var e=_z(Kh.nodes(t,{match:function(t){return!!t.indent},universal:!0}),1),r=e[0];return null==r?"":_z(r,1)[0].indent||""},t.prototype.isActive=function(t){return!1},t.prototype.getMatchNode=function(t){var e=_z(Kh.nodes(t,{match:function(t){var e=CB.getNodeType(t);return"paragraph"===e||!!e.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==e?null:e[0]},t}(),zZ=function(t){function e(){var e=t.apply(this,jz([],_z(arguments),!1))||this;return e.title=LF("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 Bz(e,t),e.prototype.isDisabled=function(t){var e=this.getMatchNode(t);return null==e||!e.indent},e.prototype.exec=function(t,e){zv.setNodes(t,{indent:null},{match:function(t){return $h.isElement(t)}})},e}(MZ),HZ=function(t){function e(){var e=t.apply(this,jz([],_z(arguments),!1))||this;return e.title=LF("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 Bz(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 r=e.children.filter(wv.isText)[0];if(!r||!r.fontSize)return this.DEFAULT_INDENT_VALUE;var n=r.fontSize,o=parseInt(r.fontSize,10),i=n.replace("".concat(o),"");return"".concat(2*o).concat(i)},e.prototype.exec=function(t,e){var r=this.getIndentValue(t);zv.setNodes(t,{indent:r},{match:function(t){return $h.isElement(t)},mode:"highest"})},e}(MZ),$Z={renderStyle:function(t,e){if(!$h.isElement(t))return e;var r=t.indent,n=e;return r&&jU(n,{textIndent:r}),n},styleToHtml:function(t,e){if(!$h.isElement(t))return e;var r=t.indent;if(!r)return e;var n=og(e);return n.css("text-indent",r),o$(n)},preParseHtml:[{selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(t){var e=og(t),r=u$(e,"padding-left");return/^[1-9]\d*em$/.test(r)&&e.css("text-indent","2em"),/^[1-9]\d*px$/.test(r)&&parseInt(r,10)%32==0&&e.css("text-indent","2em"),e[0]}}],parseStyleHtml:function(t,e,r){var n=og(t);if(!$h.isElement(e))return e;var o=e,i=u$(n,"text-indent"),u=parseInt(i,10);return i&&u>0&&(o.indent=i),o},menus:[{key:"indent",factory:function(){return new HZ}},{key:"delIndent",factory:function(){return new zZ}}]},UZ=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||!!CB.getSelectedElems(t).some(function(e){var r=e.type;return!(!Kh.isVoid(t,e)||!Kh.isBlock(t,e)||"video"===r)||!!["pre","code"].includes(r)})},t}(),VZ=function(t){function e(){var e=t.apply(this,jz([],_z(arguments),!1))||this;return e.title=LF("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 Bz(e,t),e.prototype.exec=function(t,e){zv.setNodes(t,{textAlign:"center"},{match:function(e){return $h.isElement(e)&&!t.isInline(e)}})},e}(UZ),GZ=function(t){function e(){var e=t.apply(this,jz([],_z(arguments),!1))||this;return e.title=LF("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 Bz(e,t),e.prototype.exec=function(t,e){zv.setNodes(t,{textAlign:"justify"},{match:function(e){return $h.isElement(e)&&!t.isInline(e)}})},e}(UZ),WZ=function(t){function e(){var e=t.apply(this,jz([],_z(arguments),!1))||this;return e.title=LF("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 Bz(e,t),e.prototype.exec=function(t,e){zv.setNodes(t,{textAlign:"left"},{match:function(e){return $h.isElement(e)&&!t.isInline(e)}})},e}(UZ),qZ=function(t){function e(){var e=t.apply(this,jz([],_z(arguments),!1))||this;return e.title=LF("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 Bz(e,t),e.prototype.exec=function(t,e){zv.setNodes(t,{textAlign:"right"},{match:function(e){return $h.isElement(e)&&!t.isInline(e)}})},e}(UZ),KZ={renderStyle:function(t,e){if(!$h.isElement(t))return e;var r=t.textAlign,n=e;return r&&jU(n,{textAlign:r}),n},styleToHtml:function(t,e){if(!$h.isElement(t))return e;var r=t.textAlign;if(!r)return e;var n=og(e);return n.css("text-align",r),o$(n)},parseStyleHtml:function(t,e,r){var n=og(t);if(!$h.isElement(e))return e;var o=e,i=u$(n,"text-align");return i&&(o.textAlign=i),o},menus:[{key:"justifyLeft",factory:function(){return new WZ}},{key:"justifyRight",factory:function(){return new qZ}},{key:"justifyCenter",factory:function(){return new VZ}},{key:"justifyJustify",factory:function(){return new GZ}}]},YZ=function(){function t(){this.title=LF("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=[],r=t.getMenuConfig("lineHeight").lineHeightList,n=void 0===r?[]:r;e.push({text:LF("lineHeight.default"),value:""}),n.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=_z(Kh.nodes(t,{match:function(t){var e=CB.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?"":$h.isElement(e)&&e.lineHeight||""},t.prototype.isDisabled=function(t){return null==t.selection||null==this.getMatchNode(t)},t.prototype.exec=function(t,e){zv.setNodes(t,{lineHeight:e.toString()},{mode:"highest"})},t}(),XZ={renderStyle:function(t,e){if(!$h.isElement(t))return e;var r=t.lineHeight,n=e;return r&&jU(n,{lineHeight:r}),n},styleToHtml:function(t,e){if(!$h.isElement(t))return e;var r=t.lineHeight;if(!r)return e;var n=og(e);return n.css("line-height",r),o$(n)},parseStyleHtml:function(t,e,r){var n=og(t);if(!$h.isElement(e))return e;var o=e,i=r.getMenuConfig("lineHeight").lineHeightList,u=void 0===i?[]:i,a=u$(n,"line-height");return a&&u.includes(a)&&(o.lineHeight=a),o},menus:[{key:"lineHeight",factory:function(){return new YZ},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]};function JZ(t,e,r,n){return Fz(this,void 0,void 0,function(){var o,i;return Rz(this,function(u){switch(u.label){case 0:return(o=e.getMenuConfig(t).checkLink)?[4,o(r,n)]:[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 ZZ(t,e,r){return Fz(this,void 0,void 0,function(){var n;return Rz(this,function(o){switch(o.label){case 0:return(n=e.getMenuConfig(t).parseLinkUrl)?[4,n(r)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,r]}})})}function QZ(t){return null==t.selection||!!CB.getSelectedElems(t).some(function(e){var r=e.type;return!!t.isVoid(e)||!!["pre","code","link"].includes(r)})}function tQ(t,e){return{type:"link",url:oZ(t),children:e?[{text:e}]:[]}}function eQ(t,e,r){return Fz(this,void 0,void 0,function(){var n,o,i,u,a;return Rz(this,function(s){switch(s.label){case 0:return r?(e||(e=r),t.restoreSelection(),QZ(t)?[2]:[4,JZ("insertLink",t,e,r)]):[2];case 1:return s.sent()?[4,ZZ("insertLink",t,r)]:[2];case 2:if(n=s.sent(),null==(o=t.selection))return[2];if(dv.isCollapsed(o)){if((u=CB.getLeftLengthOfMaxLength(t))<=0)return[2];t.insertText(" "),u<e.length+1&&(e=e.slice(0,u-1)),a=tQ(n,e),zv.insertNodes(t,a),t.insertFragment([{text:" "}])}else if((i=Kh.string(t,o))!==e){if((u=CB.getLeftLengthOfMaxLength(t))<=0)return[2];u<i.length-e.length&&(e=e.slice(0,u)),t.deleteFragment(),a=tQ(n,e),zv.insertNodes(t,a)}else a=tQ(n),zv.wrapNodes(t,a,{split:!0}),zv.collapse(t,{edge:"end"});return[2]}})})}function rQ(){return nZ("w-e-update-link")}var nQ=function(){function t(){this.title=LF("link.edit"),this.iconSvg=rH,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=rQ(),this.buttonId=rQ()}return t.prototype.getSelectedLinkElem=function(t){var e=CB.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 CB.getSelectedNodeByType(t,"link")},t.prototype.getModalContentElem=function(t){var e=this.urlInputId,r=this.buttonId,n=_z(qF(LF("link.url"),e),2),o=n[0],i=og(n[1]),u=_z(YF(r,LF("common.ok")),1)[0];if(null==this.$content){var a=og("<div></div>");a.on("click","#".concat(r),function(r){r.preventDefault(),t.restoreSelection();var n=CB.getSelectedNodeByType(t,"link"),o=n?tv.string(n):"",i=a.find("#".concat(e)).val();!function(t,e,r){Fz(this,void 0,void 0,function(){var n,o;return Rz(this,function(i){switch(i.label){case 0:return r?[4,JZ("editLink",t,e,r)]:[2];case 1:return i.sent()?[4,ZZ("editLink",t,r)]:[2];case 2:return n=i.sent(),o={url:oZ(n)},zv.setNodes(t,o,{match:function(t){return CB.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 oQ(){return nZ("w-e-insert-link")}var iQ,uQ,aQ=function(){function t(){this.title=LF("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=oQ(),this.urlInputId=oQ(),this.buttonId=oQ()}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 QZ(t)},t.prototype.getModalPositionNode=function(t){return null},t.prototype.getModalContentElem=function(t){var e=t.selection,r=this,n=r.textInputId,o=r.urlInputId,i=r.buttonId,u=_z(qF(LF("link.text"),n),2),a=u[0],s=og(u[1]),c=_z(qF(LF("link.url"),o),2),l=c[0],f=og(c[1]),d=_z(YF(i,LF("common.ok")),1)[0];if(null==this.$content){var p=og("<div></div>");p.on("click","#".concat(i),function(e){e.preventDefault();var r=p.find("#".concat(n)).val(),i=p.find("#".concat(o)).val();eQ(t,r,i),t.hidePanelOrModal()}),this.$content=p}var h=this.$content;if(h.empty(),h.append(a),h.append(l),h.append(d),null==e||dv.isCollapsed(e))s.val("");else{var v=Kh.string(t,e);s.val(v)}return f.val(""),setTimeout(function(){s.focus()}),h[0]},t}(),sQ=function(){function t(){this.title=LF("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==CB.getSelectedNodeByType(t,"link")},t.prototype.exec=function(t,e){this.isDisabled(t)||zv.unwrapNodes(t,{match:function(t){return CB.checkNodeType(t,"link")}})},t}(),cQ=function(){function t(){this.title=LF("link.view"),this.iconSvg=nH,this.tag="button"}return t.prototype.getSelectedLinkElem=function(t){var e=CB.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}(),lQ={checkLink:function(t,e){return!0},parseLinkUrl:function(t){return t}},fQ={key:"insertLink",factory:function(){return new aQ},config:lQ},dQ={key:"editLink",factory:function(){return new nQ},config:lQ},pQ={key:"unLink",factory:function(){return new sQ}},hQ={key:"viewLink",factory:function(){return new cQ}},vQ={selector:"a:not([data-w-e-type])",parseElemHtml:function(t,e,r){var n=og(t).text().replace(/\s+/gm," ");return e.length>0?{text:e.filter(function(t){return wv.isText(t)}).map(function(t){return t.text}).join("")||n}:{text:n}}},gQ=DL(function(){if(uQ)return iQ;uQ=1,iQ=function(n){if("string"!=typeof n)return!1;var o=n.match(t);if(!o)return!1;var i=o[1];return!!i&&!(!e.test(i)&&!r.test(i))};var t=/^(?:\w+:)?\/\/(\S+)$/,e=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,r=/^[^\s\.]+\.\S{2,}$/;return iQ}()),yQ={type:"link",renderElem:function(t,e,r){var n=t,o=n.url,i=n.target;return Ry("a",{href:o,target:void 0===i?"_blank":i},e)}},mQ={renderElems:[yQ],elemsToHtml:[{type:"link",elemToHtml:function(t,e){var r=t,n=r.url,o=r.target,i=void 0===o?"_blank":o;return'<a href="'.concat(n,'" target="').concat(i,'">').concat(e,"</a>")}}],parseElemsHtml:[vQ],menus:[fQ,dQ,pQ,hQ],editorPlugin:function(t){var e=t.isInline,r=t.insertData,n=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(gQ(e)){if(/<img[^>]+>/.test(t.getData("text/html")))r(t);else if(!QZ(o)){var n=o.selection;if(null!=n){var i=Kh.string(o,n);eQ(o,i,e)}}}else r(t)},o.normalizeNode=function(t){var e=_z(t,2),r=e[0],i=e[1];return"link"!==CB.getNodeType(r)?n([r,i]):""===tv.string(r)?zv.removeNodes(o,{at:i}):n([r,i])},o}},bQ={selector:"p:not([data-w-e-type])",parseElemHtml:function(t,e,r){var n=og(t);return 0===(e=e.filter(function(t){return!!wv.isText(t)||!!r.isInline(t)})).length&&(e=[{text:n.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:e}}};function EQ(t){var e=_z(Kh.nodes(t,{match:function(e){return t.children[0]===e},mode:"highest"}),1)[0];if(null==e)return!1;var r=e[0];if(!$h.isElement(r))return!1;if("paragraph"===r.type)return!1;if(""!==tv.string(r))return!1;var n=r.children,o=void 0===n?[]:n;return!!wv.isText(o[0])&&(zv.setNodes(t,{type:"paragraph"}),!0)}var wQ={type:"paragraph",renderElem:function(t,e,r){return Ry("p",null,e)}},SQ={renderElems:[wQ],elemsToHtml:[{type:"paragraph",elemToHtml:function(t,e){return""===e?"<p><br></p>":"<p>".concat(e,"</p>")}}],parseElemsHtml:[bQ],editorPlugin:function(t){var e=t.deleteBackward,r=t.deleteForward,n=t;return n.deleteBackward=function(t){EQ(n)||e(t)},n.deleteForward=function(t){EQ(n)||r(t)},n}};function CQ(t,e){return null==t.selection||!!_z(Kh.nodes(t,{match:function(e){return"pre"===CB.getNodeType(e)||!!Kh.isVoid(t,e)},universal:!0}),1)[0]}function DQ(t,e){Object.keys(e).forEach(function(e){"text"!==e&&Kh.removeMark(t,e)})}var OQ,AQ=function(){function t(){this.marksNeedToRemove=[],this.tag="button"}return t.prototype.getValue=function(t){var e=this.mark,r=Kh.marks(t);return r?r[e]:!!_z(Kh.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 CQ(t,this.mark)},t.prototype.exec=function(t,e){var r=this.mark,n=this.marksNeedToRemove;e?t.removeMark(r):(t.addMark(r,!0),n&&n.forEach(function(e){return t.removeMark(e)}))},t}(),xQ=function(t){function e(){var e=t.apply(this,jz([],_z(arguments),!1))||this;return e.mark="bold",e.title=LF("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 Bz(e,t),e}(AQ),TQ=function(){function t(){this.title=LF("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 CQ(t)},t.prototype.exec=function(t,e){var r,n,o=Kh.nodes(t,{match:function(t){return wv.isText(t)},universal:!0});try{for(var i=Lz(o),u=i.next();!u.done;u=i.next())DQ(t,u.value[0])}catch(t){r={error:t}}finally{try{u&&!u.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}},t}(),NQ=function(t){function e(){var e=t.apply(this,jz([],_z(arguments),!1))||this;return e.mark="code",e.title=LF("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 Bz(e,t),e}(AQ),kQ=function(t){function e(){var e=t.apply(this,jz([],_z(arguments),!1))||this;return e.mark="italic",e.title=LF("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 Bz(e,t),e}(AQ),PQ=function(t){function e(){var e=t.apply(this,jz([],_z(arguments),!1))||this;return e.mark="sub",e.marksNeedToRemove=["sup"],e.title=LF("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 Bz(e,t),e}(AQ),BQ=function(t){function e(){var e=t.apply(this,jz([],_z(arguments),!1))||this;return e.mark="sup",e.marksNeedToRemove=["sub"],e.title=LF("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 Bz(e,t),e}(AQ),IQ=function(t){function e(){var e=t.apply(this,jz([],_z(arguments),!1))||this;return e.mark="through",e.title=LF("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 Bz(e,t),e}(AQ),FQ=function(t){function e(){var e=t.apply(this,jz([],_z(arguments),!1))||this;return e.mark="underline",e.title=LF("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 Bz(e,t),e}(AQ),RQ={key:"bold",factory:function(){return new xQ}},LQ={key:"code",factory:function(){return new NQ}},_Q={key:"italic",factory:function(){return new kQ}},jQ={key:"through",factory:function(){return new IQ}},MQ={key:"underline",factory:function(){return new FQ}},zQ={key:"sup",factory:function(){return new BQ}},HQ={key:"sub",factory:function(){return new PQ}},$Q={key:"clearStyle",factory:function(){return new TQ}},UQ={};!function(){if(OQ)return UQ;OQ=1;var t=az(),e=lU();t({target:"String",proto:!0,forced:fU()("bold")},{bold:function(){return e(this,"b","","")}})}();var VQ,GQ={};!function(){if(VQ)return GQ;VQ=1;var t=az(),e=lU();t({target:"String",proto:!0,forced:fU()("italics")},{italics:function(){return e(this,"i","","")}})}();var WQ,qQ={};!function(){if(WQ)return qQ;WQ=1;var t=az(),e=lU();t({target:"String",proto:!0,forced:fU()("sub")},{sub:function(){return e(this,"sub","","")}})}();var KQ,YQ={};function XQ(t,e){return 0!==t.length&&(!!t[0].matches(e)||t.find(e).length>0)}function JQ(t,e){var r=e,n=t,o=n.bold,i=n.italic,u=n.underline,a=n.code,s=n.through,c=n.sub,l=n.sup;return o&&(r="<strong>".concat(r,"</strong>")),a&&(r="<code>".concat(r,"</code>")),i&&(r="<em>".concat(r,"</em>")),u&&(r="<u>".concat(r,"</u>")),s&&(r="<s>".concat(r,"</s>")),c&&(r="<sub>".concat(r,"</sub>")),l&&(r="<sup>".concat(r,"</sup>")),r}!function(){if(KQ)return YQ;KQ=1;var t=az(),e=lU();t({target:"String",proto:!0,forced:fU()("sup")},{sup:function(){return e(this,"sup","","")}})}();var ZQ={renderStyle:function(t,e){var r=t,n=r.bold,o=r.italic,i=r.underline,u=r.code,a=r.through,s=r.sub,c=r.sup,l=e;return n&&(l=Ry("strong",null,l)),u&&(l=Ry("code",null,l)),o&&(l=Ry("em",null,l)),i&&(l=Ry("u",null,l)),a&&(l=Ry("s",null,l)),s&&(l=Ry("sub",null,l)),c&&(l=Ry("sup",null,l)),l},menus:[RQ,MQ,_Q,jQ,LQ,HQ,zQ,$Q],styleToHtml:function(t,e){if(!wv.isText(t))return e;if(n$(e))return JQ(t,e);var r=og(e),n=r.html();return n=JQ(t,n),r.html(n),o$(r)},parseStyleHtml:function(t,e,r){var n=og(t);if(!wv.isText(e))return e;var o=e;return XQ(n,"b,strong")&&(o.bold=!0),XQ(n,"i,em")&&(o.italic=!0),XQ(n,"u")&&(o.underline=!0),XQ(n,"s,strike")&&(o.through=!0),XQ(n,"sub")&&(o.sub=!0),XQ(n,"sup")&&(o.sup=!0),XQ(n,"code")&&(o.code=!0),o}},QQ=function(){function t(){this.title=LF("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!!CB.getSelectedNodeByType(t,"todo")},t.prototype.isDisabled=function(t){return null==t.selection||!!CB.getSelectedElems(t).some(function(e){if(Kh.isVoid(t,e)&&Kh.isBlock(t,e))return!0;var r=e.type;return!!["pre","table","list-item"].includes(r)})},t.prototype.exec=function(t,e){var r=this.isActive(t);zv.setNodes(t,{type:r?"paragraph":"todo"})},t}(),t0={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(t,e,r){var n=og(t);0===(e=e.filter(function(t){return!!wv.isText(t)||!!r.isInline(t)})).length&&(e=[{text:n.text().replace(/\s+/gm," ")}]);var o=!1;return null!=n.find('input[type="checkbox"]').attr("checked")&&(o=!0),{type:"todo",checked:o,children:e}}},e0={type:"todo",renderElem:function(t,e,r){var n=!1;r.isDisabled()&&(n=!0);var o=Ry("div",{style:{margin:"5px 0"}},Ry("span",{contentEditable:!1,style:{marginRight:"0.5em"}},Ry("input",{type:"checkbox",checked:t.checked,disabled:n,on:{change:function(e){var n=CB.findPath(r,t),o={checked:e.target.checked};zv.setNodes(r,o,{at:n})}}})),Ry("span",null,e));return o}},r0={renderElems:[e0],elemsToHtml:[{type:"todo",elemToHtml:function(t,e){var r=t.checked;return'<div data-w-e-type="todo"><input type="checkbox" disabled '.concat(r?"checked":"",">").concat(e,"</div>")}}],preParseHtml:[{selector:"ul.w-e-todo",preParseHtml:function(t){var e=og(t).find("li"),r=og('<div data-w-e-type="todo"></div>'),n=e.find("input[type]");return r.append(n),e.children()[0].remove(),r[0].innerHTML+=e[0].innerHTML,r[0]}}],parseElemsHtml:[t0],menus:[{key:"todo",factory:function(){return new QQ}}],editorPlugin:function(t){var e=t.deleteBackward,r=t;return r.deleteBackward=function(r){var n=t.selection;if(n&&dv.isCollapsed(n)){var o=CB.getSelectedNodeByType(t,"todo");if(o&&0===tv.string(o).length)return void zv.setNodes(t,{type:"paragraph"},{mode:"highest"})}e(r)},r}},n0=function(){function t(){this.title=LF("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}(),o0=function(){function t(){this.title=LF("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}(),i0=[ZQ,eV,dJ,$Z,KZ,XZ,jZ,iV,aV,mQ,yU,b$,eZ,SQ,r0,yJ,{menus:[{key:"redo",factory:function(){return new n0}},{key:"undo",factory:function(){return new o0}}]},bJ,nV];BF("en",{highLightModule:{selectLang:"Language"}}),BF("zh-CN",{highLightModule:{selectLang:"选择语言"}});var u0="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var a0,s0,c0={};function l0(){if(s0)return a0;s0=1;var t=function(t){return t&&t.Math===Math&&t};return a0=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof u0&&u0)||t("object"==typeof a0&&a0)||function(){return this}()||Function("return this")()}var f0,d0,p0,h0,v0,g0,y0,m0,b0={};function E0(){return d0?f0:(d0=1,f0=function(t){try{return!!t()}catch(t){return!0}})}function w0(){if(h0)return p0;h0=1;var t=E0();return p0=!t(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function S0(){if(g0)return v0;g0=1;var t=E0();return v0=!t(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})}function C0(){if(m0)return y0;m0=1;var t=S0(),e=Function.prototype.call;return y0=t?e.bind(e):function(){return e.apply(e,arguments)},y0}var D0,O0,A0,x0,T0,N0,k0,P0,B0,I0,F0,R0,L0,_0,j0,M0,z0,H0,$0,U0,V0,G0,W0,q0,K0,Y0,X0,J0,Z0,Q0,t1,e1,r1,n1,o1,i1,u1,a1,s1,c1,l1,f1={};function d1(){if(D0)return f1;D0=1;var t={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,r=e&&!t.call({1:2},1);return f1.f=r?function(t){var r=e(this,t);return!!r&&r.enumerable}:t,f1}function p1(){return A0?O0:(A0=1,O0=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}})}function h1(){if(T0)return x0;T0=1;var t=S0(),e=Function.prototype,r=e.call,n=t&&e.bind.bind(r,r);return x0=t?n:function(t){return function(){return r.apply(t,arguments)}},x0}function v1(){if(k0)return N0;k0=1;var t=h1(),e=t({}.toString),r=t("".slice);return N0=function(t){return r(e(t),8,-1)}}function g1(){if(B0)return P0;B0=1;var t=h1(),e=E0(),r=v1(),n=Object,o=t("".split);return P0=e(function(){return!n("z").propertyIsEnumerable(0)})?function(t){return"String"===r(t)?o(t,""):n(t)}:n}function y1(){return F0?I0:(F0=1,I0=function(t){return null==t})}function m1(){if(L0)return R0;L0=1;var t=y1(),e=TypeError;return R0=function(r){if(t(r))throw new e("Can't call method on "+r);return r}}function b1(){if(j0)return _0;j0=1;var t=g1(),e=m1();return _0=function(r){return t(e(r))}}function E1(){if(z0)return M0;z0=1;var t="object"==typeof document&&document.all;return M0=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(t){return"function"==typeof t}}function w1(){if($0)return H0;$0=1;var t=E1();return H0=function(e){return"object"==typeof e?null!==e:t(e)}}function S1(){if(V0)return U0;V0=1;var t=l0(),e=E1();return U0=function(r,n){return arguments.length<2?(o=t[r],e(o)?o:void 0):t[r]&&t[r][n];var o},U0}function C1(){if(W0)return G0;W0=1;var t=h1();return G0=t({}.isPrototypeOf)}function D1(){if(X0)return Y0;X0=1;var t,e,r=l0(),n=function(){if(K0)return q0;K0=1;var t=l0().navigator,e=t&&t.userAgent;return q0=e?String(e):""}(),o=r.process,i=r.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&&n&&(!(t=n.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=n.match(/Chrome\/(\d+)/))&&(e=+t[1]),Y0=e}function O1(){if(Z0)return J0;Z0=1;var t=D1(),e=E0(),r=l0().String;return J0=!!Object.getOwnPropertySymbols&&!e(function(){var e=Symbol("symbol detection");return!r(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&t&&t<41})}function A1(){if(t1)return Q0;t1=1;var t=O1();return Q0=t&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function x1(){if(r1)return e1;r1=1;var t=S1(),e=E1(),r=C1(),n=A1(),o=Object;return e1=n?function(t){return"symbol"==typeof t}:function(n){var i=t("Symbol");return e(i)&&r(i.prototype,o(n))}}function T1(){if(u1)return i1;u1=1;var t=E1(),e=function(){if(o1)return n1;o1=1;var t=String;return n1=function(e){try{return t(e)}catch(t){return"Object"}}}(),r=TypeError;return i1=function(n){if(t(n))return n;throw new r(e(n)+" is not a function")}}var N1,k1,P1,B1,I1,F1,R1,L1,_1,j1,M1,z1,H1,$1,U1,V1,G1,W1,q1,K1,Y1,X1,J1,Z1,Q1={exports:{}};function t2(){if(B1)return P1;B1=1;var t=l0(),e=Object.defineProperty;return P1=function(r,n){try{e(t,r,{value:n,configurable:!0,writable:!0})}catch(e){t[r]=n}return n}}function e2(){if(I1)return Q1.exports;I1=1;var t=k1?N1:(k1=1,N1=!1),e=l0(),r=t2(),n="__core-js_shared__",o=Q1.exports=e[n]||r(n,{});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"}),Q1.exports}function r2(){if(R1)return F1;R1=1;var t=e2();return F1=function(e,r){return t[e]||(t[e]=r||{})}}function n2(){if(_1)return L1;_1=1;var t=m1(),e=Object;return L1=function(r){return e(t(r))}}function o2(){if(M1)return j1;M1=1;var t=h1(),e=n2(),r=t({}.hasOwnProperty);return j1=Object.hasOwn||function(t,n){return r(e(t),n)}}function i2(){if(H1)return z1;H1=1;var t=h1(),e=0,r=Math.random(),n=t(1.1.toString);return z1=function(t){return"Symbol("+(void 0===t?"":t)+")_"+n(++e+r,36)}}function u2(){if(U1)return $1;U1=1;var t=l0(),e=r2(),r=o2(),n=i2(),o=O1(),i=A1(),u=t.Symbol,a=e("wks"),s=i?u.for||u:u&&u.withoutSetter||n;return $1=function(t){return r(a,t)||(a[t]=o&&r(u,t)?u[t]:s("Symbol."+t)),a[t]}}function a2(){if(G1)return V1;G1=1;var t=C0(),e=w1(),r=x1(),n=function(){if(s1)return a1;s1=1;var t=T1(),e=y1();return a1=function(r,n){var o=r[n];return e(o)?void 0:t(o)}}(),o=function(){if(l1)return c1;l1=1;var t=C0(),e=E1(),r=w1(),n=TypeError;return c1=function(o,i){var u,a;if("string"===i&&e(u=o.toString)&&!r(a=t(u,o)))return a;if(e(u=o.valueOf)&&!r(a=t(u,o)))return a;if("string"!==i&&e(u=o.toString)&&!r(a=t(u,o)))return a;throw new n("Can't convert object to primitive value")}}(),i=u2(),u=TypeError,a=i("toPrimitive");return V1=function(i,s){if(!e(i)||r(i))return i;var c,l=n(i,a);if(l){if(void 0===s&&(s="default"),c=t(l,i,s),!e(c)||r(c))return c;throw new u("Can't convert object to primitive value")}return void 0===s&&(s="number"),o(i,s)}}function s2(){if(q1)return W1;q1=1;var t=a2(),e=x1();return W1=function(r){var n=t(r,"string");return e(n)?n:n+""}}function c2(){if(Y1)return K1;Y1=1;var t=l0(),e=w1(),r=t.document,n=e(r)&&e(r.createElement);return K1=function(t){return n?r.createElement(t):{}}}function l2(){if(J1)return X1;J1=1;var t=w0(),e=E0(),r=c2();return X1=!t&&!e(function(){return 7!==Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a})}function f2(){if(Z1)return b0;Z1=1;var t=w0(),e=C0(),r=d1(),n=p1(),o=b1(),i=s2(),u=o2(),a=l2(),s=Object.getOwnPropertyDescriptor;return b0.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 n(!e(r.f,t,c),t[c])},b0}var d2,p2,h2,v2,g2,y2,m2,b2={};function E2(){if(p2)return d2;p2=1;var t=w0(),e=E0();return d2=t&&e(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}function w2(){if(v2)return h2;v2=1;var t=w1(),e=String,r=TypeError;return h2=function(n){if(t(n))return n;throw new r(e(n)+" is not an object")}}function S2(){if(g2)return b2;g2=1;var t=w0(),e=l2(),r=E2(),n=w2(),o=s2(),i=TypeError,u=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s="enumerable",c="configurable",l="writable";return b2.f=t?r?function(t,e,r){if(n(t),e=o(e),n(r),"function"==typeof t&&"prototype"===e&&"value"in r&&l in r&&!r[l]){var i=a(t,e);i&&i[l]&&(t[e]=r.value,r={configurable:c in r?r[c]:i[c],enumerable:s in r?r[s]:i[s],writable:!1})}return u(t,e,r)}:u:function(t,r,a){if(n(t),r=o(r),n(a),e)try{return u(t,r,a)}catch(t){}if("get"in a||"set"in a)throw new i("Accessors not supported");return"value"in a&&(t[r]=a.value),t},b2}function C2(){if(m2)return y2;m2=1;var t=w0(),e=S2(),r=p1();return y2=t?function(t,n,o){return e.f(t,n,r(1,o))}:function(t,e,r){return t[e]=r,t}}var D2,O2,A2,x2,T2,N2,k2,P2,B2,I2,F2,R2,L2,_2,j2,M2={exports:{}};function z2(){if(O2)return D2;O2=1;var t=w0(),e=o2(),r=Function.prototype,n=t&&Object.getOwnPropertyDescriptor,o=e(r,"name"),i=o&&"something"===function(){}.name,u=o&&(!t||t&&n(r,"name").configurable);return D2={EXISTS:o,PROPER:i,CONFIGURABLE:u}}function H2(){if(x2)return A2;x2=1;var t=h1(),e=E1(),r=e2(),n=t(Function.toString);return e(r.inspectSource)||(r.inspectSource=function(t){return n(t)}),A2=r.inspectSource}function $2(){if(P2)return k2;P2=1;var t=r2(),e=i2(),r=t("keys");return k2=function(t){return r[t]||(r[t]=e(t))}}function U2(){return I2?B2:(I2=1,B2={})}function V2(){if(R2)return F2;R2=1;var t,e,r,n=function(){if(N2)return T2;N2=1;var t=l0(),e=E1(),r=t.WeakMap;return T2=e(r)&&/native code/.test(String(r))}(),o=l0(),i=w1(),u=C2(),a=o2(),s=e2(),c=$2(),l=U2(),f="Object already initialized",d=o.TypeError,p=o.WeakMap;if(n||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)||{}},r=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]:{}},r=function(t){return a(t,v)}}return F2={set:t,get:e,has:r,enforce:function(n){return r(n)?e(n):t(n,{})},getterFor:function(t){return function(r){var n;if(!i(r)||(n=e(r)).type!==t)throw new d("Incompatible receiver, "+t+" required");return n}}}}function G2(){if(j2)return _2;j2=1;var t=E1(),e=S2(),r=function(){if(L2)return M2.exports;L2=1;var t=h1(),e=E0(),r=E1(),n=o2(),o=w0(),i=z2().CONFIGURABLE,u=H2(),a=V2(),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=M2.exports=function(t,e,r){"Symbol("===d(l(e),0,7)&&(e="["+p(l(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!n(t,"name")||i&&t.name!==e)&&(o?f(t,"name",{value:e,configurable:!0}):t.name=e),v&&r&&n(r,"arity")&&t.length!==r.arity&&f(t,"length",{value:r.arity});try{r&&n(r,"constructor")&&r.constructor?o&&f(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var u=s(t);return n(u,"source")||(u.source=h(g,"string"==typeof e?e:"")),t};return Function.prototype.toString=y(function(){return r(this)&&c(this).source||u(this)},"toString"),M2.exports}(),n=t2();return _2=function(o,i,u,a){a||(a={});var s=a.enumerable,c=void 0!==a.name?a.name:i;if(t(u)&&r(u,c,a),a.global)s?o[i]=u:n(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 W2,q2,K2,Y2,X2,J2,Z2,Q2,t4,e4,r4,n4,o4,i4,u4,a4,s4,c4={};function l4(){if(Y2)return K2;Y2=1;var t=function(){if(q2)return W2;q2=1;var t=Math.ceil,e=Math.floor;return W2=Math.trunc||function(r){var n=+r;return(n>0?e:t)(n)}}();return K2=function(e){var r=+e;return r!=r||0===r?0:t(r)}}function f4(){if(e4)return t4;e4=1;var t=function(){if(Q2)return Z2;Q2=1;var t=l4(),e=Math.min;return Z2=function(r){var n=t(r);return n>0?e(n,9007199254740991):0}}();return t4=function(e){return t(e.length)}}function d4(){if(i4)return o4;i4=1;var t=h1(),e=o2(),r=b1(),n=function(){if(n4)return r4;n4=1;var t=b1(),e=function(){if(J2)return X2;J2=1;var t=l4(),e=Math.max,r=Math.min;return X2=function(n,o){var i=t(n);return i<0?e(i+o,0):r(i,o)}}(),r=f4(),n=function(n){return function(o,i,u){var a=t(o),s=r(a);if(0===s)return!n&&-1;var c,l=e(u,s);if(n&&i!=i){for(;s>l;)if((c=a[l++])!=c)return!0}else for(;s>l;l++)if((n||l in a)&&a[l]===i)return n||l||0;return!n&&-1}};return r4={includes:n(!0),indexOf:n(!1)}}().indexOf,o=U2(),i=t([].push);return o4=function(t,u){var a,s=r(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++])&&(~n(l,a)||i(l,a));return l}}function p4(){return a4?u4:(a4=1,u4=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}var h4,v4,g4,y4,m4,b4,E4,w4,S4,C4,D4,O4,A4,x4,T4,N4,k4,P4,B4,I4,F4={};function R4(){return h4||(h4=1,F4.f=Object.getOwnPropertySymbols),F4}function L4(){if(m4)return y4;m4=1;var t=o2(),e=function(){if(g4)return v4;g4=1;var t=S1(),e=h1(),r=function(){if(s4)return c4;s4=1;var t=d4(),e=p4().concat("length","prototype");return c4.f=Object.getOwnPropertyNames||function(r){return t(r,e)},c4}(),n=R4(),o=w2(),i=e([].concat);return v4=t("Reflect","ownKeys")||function(t){var e=r.f(o(t)),u=n.f;return u?i(e,u(t)):e}}(),r=f2(),n=S2();return y4=function(o,i,u){for(var a=e(i),s=n.f,c=r.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 _4(){if(S4)return w4;S4=1;var t=l0(),e=f2().f,r=C2(),n=G2(),o=t2(),i=L4(),u=function(){if(E4)return b4;E4=1;var t=E0(),e=E1(),r=/#|\.prototype\./,n=function(r,n){var s=i[o(r)];return s===a||s!==u&&(e(n)?t(n):!!n)},o=n.normalize=function(t){return String(t).replace(r,".").toLowerCase()},i=n.data={},u=n.NATIVE="N",a=n.POLYFILL="P";return b4=n}();return w4=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)&&r(d,"sham",!0),n(c,l,d,a)}}}function j4(){if(D4)return C4;D4=1;var t={};return t[u2()("toStringTag")]="z",C4="[object z]"===String(t)}function M4(){if(A4)return O4;A4=1;var t=j4(),e=E1(),r=v1(),n=u2()("toStringTag"),o=Object,i="Arguments"===r(function(){return arguments}());return O4=t?r: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),n))?a:i?r(u):"Object"===(s=r(u))&&e(u.callee)?"Arguments":s}}function z4(){if(T4)return x4;T4=1;var t=M4(),e=String;return x4=function(r){if("Symbol"===t(r))throw new TypeError("Cannot convert a Symbol value to a string");return e(r)}}!function(){if(I4)return c0;I4=1;var t=_4(),e=function(){if(k4)return N4;k4=1;var t=h1(),e=m1(),r=z4(),n=/"/g,o=t("".replace);return N4=function(t,i,u,a){var s=r(e(t)),c="<"+i;return""!==u&&(c+=" "+u+'="'+o(r(a),n,"&quot;")+'"'),c+">"+s+"</"+i+">"}}(),r=function(){if(B4)return P4;B4=1;var t=E0();return P4=function(e){return t(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})}}();t({target:"String",proto:!0,forced:r("anchor")},{anchor:function(t){return e(this,"a","name",t)}})}(),"function"==typeof SuppressedError&&SuppressedError;var H4,$4,U4,V4={};!function(){if(U4)return V4;U4=1;var t=j4(),e=G2(),r=function(){if($4)return H4;$4=1;var t=j4(),e=M4();return H4=t?{}.toString:function(){return"[object "+e(this)+"]"}}();t||e(Object.prototype,"toString",r,{unsafe:!0})}();var G4,W4,q4,K4,Y4,X4,J4,Z4,Q4={exports:{}},t6=function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}((G4||(G4=1,function(t){var e=function(t){var e=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,r=0,n={},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:++r}),t.__id},clone:function t(e,r){var n,i;switch(r=r||{},o.util.type(e)){case"Object":if(i=o.util.objId(e),r[i])return r[i];for(var u in n={},r[i]=n,e)e.hasOwnProperty(u)&&(n[u]=t(e[u],r));return n;case"Array":return i=o.util.objId(e),r[i]?r[i]:(n=[],r[i]=n,e.forEach(function(e,o){n[o]=t(e,r)}),n);default:return e}},getLanguage:function(t){for(;t;){var r=e.exec(t.className);if(r)return r[1].toLowerCase();t=t.parentElement}return"none"},setLanguage:function(t,r){t.className=t.className.replace(RegExp(e,"gi"),""),t.classList.add("language-"+r)},currentScript:function(){if("undefined"==typeof document)return null;if(document.currentScript&&"SCRIPT"===document.currentScript.tagName)return document.currentScript;try{throw new Error}catch(n){var t=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(n.stack)||[])[1];if(t){var e=document.getElementsByTagName("script");for(var r in e)if(e[r].src==t)return e[r]}return null}},isActive:function(t,e,r){for(var n="no-"+e;t;){var o=t.classList;if(o.contains(e))return!0;if(o.contains(n))return!1;t=t.parentElement}return!!r}},languages:{plain:n,plaintext:n,text:n,txt:n,extend:function(t,e){var r=o.util.clone(o.languages[t]);for(var n in e)r[n]=e[n];return r},insertBefore:function(t,e,r,n){var i=(n=n||o.languages)[t],u={};for(var a in i)if(i.hasOwnProperty(a)){if(a==e)for(var s in r)r.hasOwnProperty(s)&&(u[s]=r[s]);r.hasOwnProperty(a)||(u[a]=i[a])}var c=n[t];return n[t]=u,o.languages.DFS(o.languages,function(e,r){r===c&&e!=t&&(this[e]=u)}),u},DFS:function t(e,r,n,i){i=i||{};var u=o.util.objId;for(var a in e)if(e.hasOwnProperty(a)){r.call(e,a,e[a],n||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,r,a,i)):(i[u(s)]=!0,t(s,r,null,i))}}},plugins:{},highlightAll:function(t,e){o.highlightAllUnder(document,t,e)},highlightAllUnder:function(t,e,r){var n={callback:r,container:t,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};o.hooks.run("before-highlightall",n),n.elements=Array.prototype.slice.apply(n.container.querySelectorAll(n.selector)),o.hooks.run("before-all-elements-highlight",n);for(var i,u=0;i=n.elements[u++];)o.highlightElement(i,!0===e,n.callback)},highlightElement:function(e,r,n){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),n&&n.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(n&&n.call(s.element));if(o.hooks.run("before-highlight",s),s.grammar)if(r&&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,r){var n={code:t,grammar:e,language:r};if(o.hooks.run("before-tokenize",n),!n.grammar)throw new Error('The language "'+n.language+'" has no grammar.');return n.tokens=o.tokenize(n.code,n.grammar),o.hooks.run("after-tokenize",n),i.stringify(o.util.encode(n.tokens),n.language)},tokenize:function(t,e){var r=e.rest;if(r){for(var n in r)e[n]=r[n];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=[],r=t.head.next;r!==t.tail;)e.push(r.value),r=r.next;return e}(o)},hooks:{all:{},add:function(t,e){var r=o.hooks.all;r[t]=r[t]||[],r[t].push(e)},run:function(t,e){var r=o.hooks.all[t];if(r&&r.length)for(var n,i=0;n=r[i++];)n(e)}},Token:i};function i(t,e,r,n){this.type=t,this.content=e,this.alias=r,this.length=0|(n||"").length}function u(t,e,r,n){t.lastIndex=e;var o=t.exec(r);if(o&&n&&o[1]){var i=o[1].length;o.index+=i,o[0]=o[0].slice(i)}return o}function a(t,e,r,n,s,f){for(var d in r)if(r.hasOwnProperty(d)&&r[d]){var p=r[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=n.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 k=S;k!==e.tail&&(N<T||"string"==typeof k.value);k=k.next)A++,N+=k.value.length;A--,D=t.slice(C,N),O.index-=C}else if(!(O=u(w,0,D,y)))continue;x=O.index;var P=O[0],B=D.slice(0,x),I=D.slice(x+P.length),F=C+D.length;f&&F>f.reach&&(f.reach=F);var R=S.prev;if(B&&(R=c(e,R,B),C+=B.length),l(e,R,A),S=c(e,R,new i(d,g?o.tokenize(P,g):P,b,P)),I&&c(e,S,I),A>1){var L={cause:d+","+h,reach:F};a(t,e,r,S.prev,C,L),f&&L.reach>f.reach&&(f.reach=L.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,r){var n=e.next,o={value:r,prev:e,next:n};return e.next=o,n.prev=o,t.length++,o}function l(t,e,r){for(var n=e.next,o=0;o<r&&n!==t.tail;o++)n=n.next;e.next=n,n.prev=e,t.length-=o}if(t.Prism=o,i.stringify=function t(e,r){if("string"==typeof e)return e;if(Array.isArray(e)){var n="";return e.forEach(function(e){n+=t(e,r)}),n}var i={type:e.type,content:t(e.content,r),tag:"span",classes:["token",e.type],attributes:{},language:r},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 r=JSON.parse(e.data),n=r.language,i=r.code,u=r.immediateClose;t.postMessage(o.highlight(i,o.languages[n],n)),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:{});
18
+ */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 vw=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)}},vw}function Vw(){return bw||(bw=1,yw=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}),yw}function Ww(){if(Cw)return Ew;Cw=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",Ew=function(){return new r}}function Gw(){if(ww)return Dw;return ww=1,Dw=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 qw(){return Aw?Sw:(Aw=1,Sw={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 Kw(){if(Rw)return Lw;Rw=1;var e=aw(),t=iw(),n=zw();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=Uw(),l=Vw(),c=wC(),d=Ww(),f=function(){if(Ow)return xw;Ow=1;const e=Gw(),t=qw();return xw=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=Gw(),h=function(){if(Bw)return Nw;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 Bw=1,Nw=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=(kw||(kw=1,Tw=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}),Tw),v=Iw?Fw:(Iw=1,Fw=function(e,t){return t.name?t.name:"image"===e.split("/")[0]?`${e.split("/")[0]}.${e.split("/")[1]}`:"noname"}),m=_w?Pw:(_w=1,Pw={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"),D=s("preProcessors"),w=s("uploaders"),S=s("postProcessors"),A=s("informAndEmit"),x=s("checkRequiredMetaFieldsOnFile"),O=s("checkRequiredMetaFields"),N=s("assertNewUploadAllowed"),B=s("checkAndCreateFileStateObject"),T=s("startIfAutoProceed"),k=s("addListeners"),F=s("updateOnlineStatus"),I=s("createUpload"),P=s("getUpload"),_=s("removeUpload"),L=s("runUpload");r=Symbol.for("uppy test: getPlugins"),o=Symbol.for("uppy test: createUpload");class R{constructor(e){Object.defineProperty(this,L,{value:K}),Object.defineProperty(this,_,{value:q}),Object.defineProperty(this,P,{value:G}),Object.defineProperty(this,I,{value:W}),Object.defineProperty(this,k,{value:V}),Object.defineProperty(this,T,{value:U}),Object.defineProperty(this,B,{value:$}),Object.defineProperty(this,N,{value:z}),Object.defineProperty(this,O,{value:H}),Object.defineProperty(this,x,{value:j}),Object.defineProperty(this,A,{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,D,{writable:!0,value:new Set}),Object.defineProperty(this,w,{writable:!0,value:new Set}),Object.defineProperty(this,S,{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,D)[D].add(e)}removePreProcessor(e){return i(this,D)[D].delete(e)}addPostProcessor(e){i(this,S)[S].add(e)}removePostProcessor(e){return i(this,S)[S].delete(e)}addUploader(e){i(this,w)[w].add(e)}removeUploader(e){return i(this,w)[w].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,N)[N](e);const{files:t}=this.getState();let n=i(this,B)[B](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,T)[T](),n.id}addFiles(e){i(this,N)[N]();const t={...this.getState().files},n=[],r=[];for(let o=0;o<e.length;o++)try{let r=i(this,B)[B](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,T)[T](),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,I)[I](t,{forceAllowNewUpload:!0});return i(this,L)[L](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,I)[I]([e],{forceAllowNewUpload:!0});return i(this,L)[L](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,L)[L](e):(i(this,_)[_](e),Promise.reject(new Error("Nonexistent upload")))}[o](){return i(this,I)[I](...arguments)}addResultData(e,t){if(!i(this,P)[P](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,A)[A](e),e}).then(()=>{if(!i(this,O)[O](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,I)[I](r);return i(this,L)[L](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,A)[A](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,A)[A](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,A)[A](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,A)[A](e)}else i(this,A)[A](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,S)[S].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,D)[D],...i(this,w)[w],...i(this,S)[S]];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 R.VERSION="2.3.4",Lw=R}var Yw,Xw,Zw,Jw,Qw,eS,tS,nS,rS,oS,iS,aS,sS,uS={},lS=[],cS=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,dS=Array.isArray;function fS(e,t){for(var n in t)e[n]=t[n];return e}function pS(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function hS(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?Yw.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 gS(e,a,r,o,null)}function gS(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?++Zw:o,__i:-1,__u:0};return null==o&&null!=Xw.vnode&&Xw.vnode(i),i}function vS(e){return e.children}function mS(e,t){this.props=e,this.context=t}function yS(e,t){if(null==t)return e.__?yS(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?yS(e):null}function bS(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 bS(e)}}function ES(e){(!e.__d&&(e.__d=!0)&&Qw.push(e)&&!CS.__r++||eS!=Xw.debounceRendering)&&((eS=Xw.debounceRendering)||tS)(CS)}function CS(){for(var e,t,n,r,o,i,a,s=1;Qw.length;)Qw.length>s&&Qw.sort(nS),e=Qw.shift(),s=Qw.length,e.__d&&(n=void 0,o=(r=(t=e).__v).__e,i=[],a=[],t.__P&&((n=fS({},r)).__v=r.__v+1,Xw.vnode&&Xw.vnode(n),BS(t.__P,n,r,t.__n,t.__P.namespaceURI,32&r.__u?[o]:null,i,null==o?yS(r):o,!!(32&r.__u),a),n.__v=r.__v,n.__.__k[n.__i]=n,TS(i,n,a),n.__e!=o&&bS(n)));CS.__r=0}function DS(e,t,n,r,o,i,a,s,u,l,c){var d,f,p,h,g,v,m=r&&r.__k||lS,y=t.length;for(u=wS(n,t,m,u,y),d=0;d<y;d++)null!=(p=n.__k[d])&&(f=-1==p.__i?uS:m[p.__i]||uS,p.__i=d,v=BS(e,p,f,o,i,a,s,u,l,c),h=p.__e,p.ref&&f.ref!=p.ref&&(f.ref&&IS(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=SS(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 wS(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?gS(null,a,null,null,null):dS(a)?gS(vS,{children:a},null,null,null):null==a.constructor&&a.__b>0?gS(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=AS(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=yS(s)),PS(s,s));return r}function SS(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=SS(r[o],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=yS(e)),n.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8==t.nodeType);return t}function AS(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 xS(e,t,n){"-"==t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||cS.test(t)?n:n+"px"}function OS(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||xS(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||xS(e.style,t,n[t])}else if("o"==t[0]&&"n"==t[1])i=t!=(t=t.replace(rS,"$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=oS,e.addEventListener(t,i?aS:iS,i)):e.removeEventListener(t,i?aS:iS,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 NS(e){return function(t){if(this.l){var n=this.l[t.type+e];if(null==t.t)t.t=oS++;else if(t.t<n.u)return;return n(Xw.event?Xw.event(t):t)}}}function BS(e,t,n,r,o,i,a,s,u,l){var c,d,f,p,h,g,v,m,y,b,E,C,D,w,S,A,x,O=t.type;if(null!=t.constructor)return null;128&n.__u&&(u=!!(32&n.__u),i=[s=t.__e=n.__e]),(c=Xw.__b)&&c(t);e:if("function"==typeof O)try{if(m=t.props,y="prototype"in O&&O.prototype.render,b=(c=O.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 O(m,E):(t.__c=d=new mS(m,E),d.constructor=O,d.render=_S),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!=O.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=fS({},d.__s)),fS(d.__s,O.getDerivedStateFromProps(m,d.__s))),p=d.props,h=d.state,d.__v=t,f)y&&null==O.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),y&&null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(y&&null==O.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,D=Xw.__r,w=0,y){for(d.state=d.__s,d.__d=!1,D&&D(t),c=d.render(d.props,d.state,d.context),S=0;S<d._sb.length;S++)d.__h.push(d._sb[S]);d._sb=[]}else do{d.__d=!1,D&&D(t),c=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++w<25);d.state=d.__s,null!=d.getChildContext&&(r=fS(fS({},r),d.getChildContext())),y&&!f&&null!=d.getSnapshotBeforeUpdate&&(g=d.getSnapshotBeforeUpdate(p,h)),A=c,null!=c&&c.type===vS&&null==c.key&&(A=kS(c.props.children)),s=DS(e,dS(A)?A:[A],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--;)pS(i[x]);else t.__e=n.__e,t.__k=n.__k;Xw.__e(e,t,n)}else null==i&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):s=t.__e=FS(n.__e,t,n,r,o,i,a,u,l);return(c=Xw.diffed)&&c(t),128&t.__u?void 0:s}function TS(e,t,n){for(var r=0;r<n.length;r++)IS(n[r],n[++r],n[++r]);Xw.__c&&Xw.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){Xw.__e(e,t.__v)}})}function kS(e){return"object"!=typeof e||null==e||e.__b&&e.__b>0?e:dS(e)?e.map(kS):fS({},e)}function FS(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&&(Xw.__m&&Xw.__m(t,i),s=!1),i=null}if(null==y)v===m||s&&e.data==m||(e.data=m);else{if(i=i&&Yw.call(e.childNodes),v=n.props||uS,!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;OS(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||OS(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=""),DS("template"==t.type?e.content:e,dS(f)?f:[f],t,n,r,"foreignObject"==y?"http://www.w3.org/1999/xhtml":o,i,a,i?i[0]:n.__k&&yS(n,0),s,u),null!=i)for(l=i.length;l--;)pS(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])&&OS(e,l,h,v[l],o),l="checked",null!=g&&g!=e[l]&&OS(e,l,g,v[l],o))}return e}function IS(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){Xw.__e(e,n)}}function PS(e,t,n){var r,o;if(Xw.unmount&&Xw.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||IS(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){Xw.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&PS(r[o],t,n||"function"!=typeof e.type);n||pS(e.__e),e.__c=e.__=e.__e=void 0}function _S(e,t,n){return this.constructor(e,n)}function LS(e,t,n){var r,o,i,a;t==document&&(t=document.documentElement),Xw.__&&Xw.__(e,t),o=(r="function"==typeof n)?null:n&&n.__k||t.__k,i=[],a=[],BS(t,e=(!r&&n||t).__k=hS(vS,null,[e]),o||uS,uS,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?Yw.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,a),TS(i,e,a)}Yw=lS.slice,Xw={__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}},Zw=0,Jw=function(e){return null!=e&&null==e.constructor},mS.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=fS({},this.state),"function"==typeof e&&(e=e(fS({},n),this.props)),e&&fS(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),ES(this))},mS.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),ES(this))},mS.prototype.render=vS,Qw=[],tS="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,nS=function(e,t){return e.__v.__b-t.__v.__b},CS.__r=0,rS=/(PointerCapture)$|Capture$/i,oS=0,iS=NS(!1),aS=NS(!0),sS=0;var RS,MS,jS,HS,zS,$S,US,VS,WS,GS,qS,KS=Object.freeze({__proto__:null,Component:mS,Fragment:vS,cloneElement:function(e,t,n){var r,o,i,a,s=fS({},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?Yw.call(arguments,2):n),gS(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,ES(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"+sS++,t.__=e,t.Provider=t.__l=(t.Consumer=function(e,t){return e.children(t)}).contextType=t,t},createElement:hS,createRef:function(){return{current:null}},h:hS,hydrate:function e(t,n){LS(t,n,e)},get isValidElement(){return Jw},get options(){return Xw},render:LS,toChildArray:function e(t,n){return n=n||[],null==t||"boolean"==typeof t||(dS(t)?t.some(function(t){e(t,n)}):n.push(t)),n}}),YS=E(KS);function XS(){if(HS)return jS;HS=1;const e=MS?RS:(MS=1,RS=function(e){return(null==e?void 0:e.nodeType)===Node.ELEMENT_NODE});return jS=function(t,n){return void 0===n&&(n=document),"string"==typeof t?n.querySelector(t):e(t)?t:null}}function ZS(){if(VS)return US;VS=1;const e=Uw();return US=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 JS(){if(GS)return WS;GS=1;var e=YS;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=XS(),i=$S?zS:($S=1,zS=function(e){for(var t;e&&!e.dir;)e=e.parentNode;return null==(t=e)?void 0:t.dir}),a=ZS();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 WS=u}var QS,eA,tA,nA,rA,oA,iA,aA,sA,uA,lA=(qS||(qS=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=iw();e.exports=Kw();const r=JS();t.UIPlugin=r;const o=ZS();t.BasePlugin=o;const i=Kw();t.Uppy=i;const a=JS(),s=ZS();i.Uppy=i,i.UIPlugin=a,i.BasePlugin=s,i.debugLogger=n.debugLogger}(rw,rw.exports)),rw.exports),cA=b(lA),dA={};function fA(){if(eA)return QS;eA=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 QS=e}function pA(){if(uA)return sA;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}uA=1;var n=0;function r(e){return"__private_"+n+++"_"+e}const o=function(){if(nA)return tA;nA=1;const e=fA();return tA=function(){return fetch(...arguments).catch(t=>{throw"AbortError"===t.name?t:new e(t)})},tA}(),i=function(){if(oA)return rA;oA=1;const e=$w();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 rA=t}(),a=function(){if(aA)return iA;aA=1;class e extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}return iA=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}`},sA=f}var hA,gA,vA,mA,yA,bA,EA,CA,DA={};function wA(){if(hA)return DA;return hA=1,Object.defineProperty(DA,"__esModule",{value:!0}),DA.getItem=function(e){return Promise.resolve(localStorage.getItem(e))},DA.removeItem=function(e){return new Promise(t=>{localStorage.removeItem(e),t()})},DA.setItem=function(e,t){return new Promise(n=>{localStorage.setItem(e,t),n()})},DA}function SA(){if(CA)return dA;CA=1,Object.defineProperty(dA,"__esModule",{value:!0}),dA.Socket=dA.SearchProvider=dA.RequestClient=dA.Provider=void 0;const e=pA();dA.RequestClient=e;const t=function(){if(vA)return gA;vA=1;var e=wA();const t=pA();return gA=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}},gA}();dA.Provider=t;const n=function(){if(yA)return mA;yA=1;const e=pA();return mA=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}`:""}`)}},mA}();dA.SearchProvider=n;const r=function(){if(EA)return bA;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}EA=1;var r=0;function o(e){return"__private_"+r+++"_"+e}const i=Vw();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"),bA=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)}},bA}();return dA.Socket=r,dA}var AA,xA,OA,NA,BA,TA,kA,FA,IA,PA,_A,LA,RA,MA,jA,HA,zA,$A={};function UA(){if(AA)return $A;function e(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}AA=1,Object.defineProperty($A,"__esModule",{value:!0}),$A.internalRateLimitedQueue=$A.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)}$A.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 D=Symbol("__queue");return $A.internalRateLimitedQueue=D,$A}function VA(){return jA?MA:(jA=1,MA={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}})}var WA=function(){if(zA)return HA;zA=1;var e=aw(),t=SA(),n=UA();const r=ZS(),o=function(){if(OA)return xA;OA=1;const e=wC();return xA=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=BA?NA:(BA=1,NA=function(e){const t=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(e)[1];return`${/^http:\/\//i.test(e)?"ws":"wss"}://${t}`}),a=kA?TA:(kA=1,TA=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(IA)return FA;function e(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}IA=1;var t=0;function n(e){return"__private_"+t+++"_"+e}var r=n("emitter"),o=n("events");return FA=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)}},FA}(),u=function(){if(_A)return PA;function e(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}_A=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 PA=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=fA(),c=RA?LA:(RA=1,LA=function(e){return!!e&&(0!==e.readyState&&4!==e.readyState||0===e.status)}),d=VA();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",HA=h}(),GA=b(WA);function qA(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,D=void 0===C?function(e,t){}:C,w=e.onError,S=void 0===w?function(e,t,n){console.error("".concat(e.name," upload error"),t,n)}:w,A=e.onProgress,x=void 0===A?function(e){}:A;if(!n)throw new Error("Cannot get upload server address\n没有配置上传地址");if(!o)throw new Error("Cannot get fieldName\n没有配置 fieldName");var O=n;f&&(O=function(e,t){var n=ev(e.split("#"),2),r=n[0],o=n[1],i=[];cv(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}(O,c));var N=new cA(Yg({onBeforeUpload:E,restrictions:{maxFileSize:a,maxNumberOfFiles:u},meta:c},e.uppyConfig)).use(GA,Yg({endpoint:O,headers:h,formData:!0,fieldName:o,bundle:!0,withCredentials:v,timeout:y},e.xhrConfig));return N.on("complete",function(e){var t=e.successful[0],n=t.response,r=(null!=n?n:{}).body,o=void 0===r?{}:r;try{D(t,o)}catch(e){console.error("wangEditor upload file - onSuccess error",e)}}),N.on("progress",function(e){e<1||x(e)}),N.on("upload-error",function(e,t,n){try{S(e,t,n)}catch(e){console.error("wangEditor upload file - onError error",e)}}),N.on("restriction-failed",function(e,t){try{S(e,t)}catch(e){console.error("wangEditor upload file - onError error",e)}}),N}KE("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),KE("zh-CN",{editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}});var KA,YA,XA,ZA,JA,QA,ex,tx,nx,rx,ox,ix,ax,sx,ux,lx={};function cx(){if(YA)return KA;YA=1;var e=S();return KA=Array.isArray||function(t){return"Array"===e(t)}}function dx(){if(ZA)return XA;ZA=1;var e=w(),t=C(),n=me(),r=Tr(),o=zt(),i=An(),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,XA=!s||t(function(){var e;return d(d.call)||!d(Object)||!d(function(){e=!0})||e})?f:d}function fx(){if(QA)return JA;QA=1;var e=cx(),t=dx(),n=ye(),r=ve()("species"),o=Array;return JA=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},JA}function px(){if(tx)return ex;tx=1;var e=fx();return ex=function(t,n){return new(e(t))(0===n?0:n)}}function hx(){if(ix)return ox;ix=1;var e=C();return ox=function(t,n){var r=[][t];return!!r&&e(function(){r.call(null,n||function(){return 1},1)})}}function gx(){if(sx)return ax;sx=1;var e=function(){if(rx)return nx;rx=1;var e=Go(),t=w(),n=A(),r=ce(),o=Jt(),i=px(),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),D=o(C),w=e(g,v),S=0,A=m||i,x=s?A(h,D):u||f?A(h,0):void 0;D>S;S++)if((p||S in C)&&(b=w(y=C[S],S,E),t))if(s)x[S]=b;else if(b)switch(t){case 3:return!0;case 5:return y;case 6:return S;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 nx={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=hx()("forEach");return ax=t?[].forEach:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)},ax}!function(){if(ux)return lx;ux=1;var e=B(),t=ci(),n=di(),r=gx(),o=ln(),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)}();KE("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"}}),KE("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 vx={type:"blockquote",elemToHtml:function(e,t){return"<blockquote>".concat(t,"</blockquote>")}},mx='<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>',yx='<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>',bx='<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>',Ex=function(){function e(){this.title=JE("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!!Py.getSelectedNodeByType(e,"blockquote")},e.prototype.isDisabled=function(e){if(null==e.selection)return!0;var t=ev(Kh.nodes(e,{match:function(e){var t=Py.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";jg.setNodes(e,{type:n},{mode:"highest"})}},e}(),Cx={key:"blockquote",factory:function(){return new Ex}};function Dx(e){return 0===im("<div>".concat(e,"</div>")).children().filter(function(e){return"BR"!==e.tagName}).length}function wx(e){return 0===e.length?"":e[0].outerHTML}function Sx(e){return e.length?e[0].tagName.toLowerCase():""}function Ax(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}Cm&&(im.fn.css=Cm),Om&&(im.fn.append=Om),Nm&&(im.fn.prepend=Nm),am&&(im.fn.addClass=am),sm&&(im.fn.removeClass=sm),um&&(im.fn.hasClass=um),hm&&(im.fn.on=hm),gm&&(im.fn.off=gm),Mm&&(im.fn.focus=Mm),lm&&(im.fn.attr=lm),cm&&(im.fn.removeAttr=cm),bm&&(im.fn.hide=bm),Em&&(im.fn.show=Em),Tm&&(im.fn.parents=Tm),fm&&(im.fn.dataset=fm),pm&&(im.fn.val=pm),Am&&(im.fn.text=Am),Sm&&(im.fn.html=Sm),Fm&&(im.fn.children=Fm),Im&&(im.fn.remove=Im),km&&(im.fn.find=km),vm&&(im.fn.width=vm),mm&&(im.fn.height=mm),wm&&(im.fn.filter=wm),Pm&&(im.fn.empty=Pm);var xx={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=im(e);return 0===(t=t.filter(function(e){return!!Cg.isText(e)||!!n.isInline(e)})).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:t}}};function Ox(e){e.deleteBackward("character");jg.insertNodes(e,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}var Nx={type:"blockquote",renderElem:function(e,t,n){return BD("blockquote",null,t)}},Bx={renderElems:[Nx],elemsToHtml:[vx],parseElemsHtml:[xx],menus:[Cx],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=ev(Kh.nodes(e,{match:function(e){return Py.checkNodeType(e,"blockquote")},universal:!0}),1),a=i[0];if(!a)return t();var s=a[0];if(Py.getParentNode(e,s)){var u=Py.findPath(e,s),l=Kh.end(e,u);if(ug.equals(l,o.focus)){var c=eg.string(s);if(c&&"\n"===c.slice(-1))return void Ox(r)}n("\n")}else Ox(r)},r}};var Tx={type:"code",elemToHtml:function(e,t){return"<code>".concat(t,"</code>")}};var kx={type:"pre",elemToHtml:function(e,t){return"<pre>".concat(t,"</pre>")}},Fx=function(){function e(){this.title=JE("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=Py.getSelectedNodeByType(e,"code");if(null==t)return null;var n=Py.getParentNode(e,t);return null==n||"pre"!==Py.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=Py.getSelectedElems(e);return!!t.some(function(t){return e.isVoid(t)})||!t.some(function(e){var t=Py.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=eg.string(t);jg.removeNodes(e,{mode:"highest"});var r=n.split("\n").map(function(e){return{type:"paragraph",children:[{text:e}]}});jg.insertNodes(e,r,{mode:"highest"})}},e.prototype.changeToCodeBlock=function(e,t){var n,r,o=[],i=Kh.nodes(e,{match:function(t){return e.children.includes(t)},universal:!0});try{for(var a=Qg(i),s=a.next();!s.done;s=a.next()){var u=ev(s.value,1)[0];u&&o.push(eg.string(u))}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}jg.removeNodes(e,{mode:"highest"});var l={type:"pre",children:[{type:"code",language:t,children:[{text:o.join("\n")}]}]};jg.insertNodes(e,l,{mode:"highest"})},e}();var Ix={selector:"pre:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=im(e);return 0===(t=t.filter(function(e){return"code"===Py.getNodeType(e)})).length&&(t=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:t.filter(function(e){return"code"===Py.getNodeType(e)})}}};var Px={type:"pre",renderElem:function(e,t,n){return BD("pre",null,t)}},_x={type:"code",renderElem:function(e,t,n){return BD("code",null,t)}},Lx={menus:[{key:"codeBlock",factory:function(){return new Fx}}],editorPlugin:function(e){var t=e.insertBreak,n=e.normalizeNode,r=e.insertData,o=e.handleTab,i=e;return i.insertBreak=function(){var e=Py.getSelectedNodeByType(i,"code");if(null!=e){var n=function(e,t){var n=t.selection;if(null==n)return"";var r=eg.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=Py.getSelectedNodeByType(e,"code");if(n&&!fg.isCollapsed(t)){var r=ev([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}};jg.insertText(e,f,{at:{anchor:{path:i.path,offset:0},focus:{path:a.path,offset:s.length}}}),jg.select(e,p)}else o()}},i.normalizeNode=function(e){var t=ev(e,2),r=t[0],o=t[1],a=Py.getNodeType(r);("code"===a&&o.length<=1&&jg.setNodes(i,{type:"paragraph"},{at:o}),"pre"===a)&&(Py.isLastNode(i,r)&&jg.insertNodes(i,Py.genEmptyParagraph(),{at:[o[0]+1]}),"code"!==Py.getNodeType(r.children[0])&&(jg.unwrapNodes(i),jg.setNodes(i,{type:"paragraph"},{mode:"highest"})));return n([r,o])},i.insertData=function(e){if(null!=Py.getSelectedNodeByType(i,"code")){var t=e.getData("text/plain");Kh.insertText(i,t)}else r(e)},i},renderElems:[Px,_x],elemsToHtml:[Tx,kx],preParseHtml:[{selector:"pre>code",preParseHtml:function(e){var t=im(e);if("code"!==Sx(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:im(e)[0].textContent||""}]}}},Ix]},Rx=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=Kh.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=ev(Kh.nodes(e,{match:function(t){return"pre"===Py.getNodeType(t)||!!Kh.isVoid(e,t)},universal:!0}),1);return!!t[0]},e.prototype.getPanelContentElem=function(e){var t=this.mark;if(null==this.$content){var n=im('<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=im(r).attr("data-value");"0"===o?Kh.removeMark(e,t):Kh.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=im('<div class="color-block" data-value="'.concat(e,'"></div>'));t.css("background-color",e);var n=im('<li data-value="'.concat(e,'"></li>'));o===e&&n.addClass("active"),n.append(t),r.append(n)});var a="";"color"===t&&(a=JE("color.default")),"bgColor"===t&&(a=JE("color.clear"));var s=im('\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}(),Mx=function(e){function t(){var t=e.apply(this,tv([],ev(arguments),!1))||this;return t.title=JE("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 Kg(t,e),t}(Rx),jx=function(e){function t(){var t=e.apply(this,tv([],ev(arguments),!1))||this;return t.title=JE("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 Kg(t,e),t}(Rx),Hx=["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 zx={selector:"font",preParseHtml:function(e){var t=im(e);if("font"!==Sx(t))return e;var n=t.attr("color")||"";return n&&(t.removeAttr("color"),t.css("color",n)),t[0]}};function $x(e,t){null==e.data&&(e.data={});var n=e.data;null==n.style&&(n.style={}),Object.assign(n.style,t)}var Ux={renderStyle:function(e,t){var n=e,r=n.color,o=n.bgColor,i=t;return r&&$x(i,{color:r}),o&&$x(i,{backgroundColor:o}),i},styleToHtml:function(e,t){if(!Cg.isText(e))return t;var n,r=e,o=r.color,i=r.bgColor;return o||i?((Dx(t)||"span"!==Sx(n=im(t)))&&(n=im("<span>".concat(t,"</span>"))),o&&n.css("color",o),i&&n.css("background-color",i),wx(n)):t},preParseHtml:[zx],parseStyleHtml:function(e,t,n){var r=im(e);if(!Cg.isText(t))return t;var o=t,i=Ax(r,"color");i&&(o.color=i);var a=Ax(r,"background-color");return a||(a=Ax(r,"background")),a&&(o.bgColor=a),o},menus:[{key:"color",factory:function(){return new jx},config:{colors:Hx}},{key:"bgColor",factory:function(){return new Mx},config:{colors:Hx}}]},Vx=function(){function e(){this.title=JE("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||!!fg.isExpanded(t)},e.prototype.exec=function(e,t){var n=e.selection;if(null!=n){var r=[n.anchor.path[0]];jg.insertNodes(e,{type:"paragraph",children:[{text:""}]},{at:r}),e.select(Kh.start(e,r))}},e}(),Wx={menus:[{key:"enter",factory:function(){return new Vx}}]};var Gx={type:"divider",elemToHtml:function(e,t){return"<hr/>"}},qx=function(){function e(){this.title=JE("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||!!Py.getSelectedElems(e).some(function(t){if(e.isVoid(t))return!0;var n=Py.getNodeType(t);return"table"===n||"pre"===n})},e.prototype.exec=function(e,t){Py.isSelectedEmptyParagraph(e)&&jg.removeNodes(e,{mode:"highest"}),jg.insertNodes(e,{type:"divider",children:[{text:""}]},{mode:"highest"})},e}();var Kx={renderElems:[{type:"divider",renderElem:function(e,t,n){return lD("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:Py.isNodeSelected(n,e)?"true":""},style:{},on:{mousedown:function(e){return e.preventDefault()}}},[lD("hr")])}}],elemsToHtml:[Gx],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 qx}}],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=ev(e,2),o=t[0],i=t[1];if("divider"!==Py.getNodeType(o))return n([o,i]);Py.isLastNode(r,o)&&jg.insertNodes(r,Py.genEmptyParagraph(),{at:[i[0]+1]})},r}};var Yx=function(){function e(){this.title=JE("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=ev(Kh.nodes(e,{match:function(t){return"pre"===Py.getNodeType(t)||!!Kh.isVoid(e,t)},universal:!0}),1);return!!t[0]},e.prototype.getPanelContentElem=function(e){if(null==this.$content){var t=im('<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=im(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=im("<li>".concat(e,"</li>"));n.append(t)}),n[0]},e}(),Xx={menus:[{key:"emotion",factory:function(){return new Yx},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]};var Zx=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=Kh.marks(e);return n&&n[t]?n[t]:""},e.prototype.isDisabled=function(e){if(null==e.selection)return!0;var t=ev(Kh.nodes(e,{match:function(t){return"pre"===Py.getNodeType(t)||!!Kh.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}(),Jx=function(e){function t(){var t=e.apply(this,tv([],ev(arguments),!1))||this;return t.title=JE("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 Kg(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontFamilyList,r=void 0===n?[]:n;t.push({text:JE("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}(Zx),Qx=function(e){function t(){var t=e.apply(this,tv([],ev(arguments),!1))||this;return t.title=JE("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 Kg(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontSizeList,r=void 0===n?[]:n;t.push({text:JE("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}(Zx);var eO={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"};var tO={renderStyle:function(e,t){var n=e,r=n.fontSize,o=n.fontFamily,i=t;return r&&$x(i,{fontSize:r}),o&&$x(i,{fontFamily:o}),i},styleToHtml:function(e,t){if(!Cg.isText(e))return t;var n,r=e,o=r.fontSize,i=r.fontFamily;return o||i?((Dx(t)||"span"!==Sx(n=im(t)))&&(n=im("<span>".concat(t,"</span>"))),o&&n.css("font-size",o),i&&n.css("font-family",i),wx(n)):t},preParseHtml:[{selector:"font",preParseHtml:function(e){var t=im(e);if("font"!==Sx(t))return e;var n=t.attr("size")||"";n&&(t.removeAttr("size"),t.css("font-size",eO[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=im(e);if(!Cg.isText(t))return t;var o=t,i=Ax(r,"font-size");i&&(o.fontSize=i);var a=Ax(r,"font-family").replace(/"/g,"");return a&&(o.fontFamily=a),o},menus:[{key:"fontSize",factory:function(){return new Qx},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 Jx},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]};var nO=function(){function e(){this.title=JE("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=Kh.marks(e);t&&Object.keys(t).forEach(function(t){e.removeMark(t)})}(t);try{for(var o=Qg(Object.entries(e.attrs.formatStyle)),i=o.next();!i.done;i=o.next()){var a=ev(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=Kh.marks(t),e.attrs.isSelect=!0);t.blur(),t.focus()},e.attrs={isSelect:!1,formatStyle:null},e}();var rO={menus:[{key:"formatPainter",factory:function(){return new nO}}],editorPlugin:function(e){var t=new nO,n=e.onChange,r=e,o=function(){t.setFormatHtml(r),document.removeEventListener("mouseup",o)};return r.onChange=function(){n(),nO.attrs.isSelect&&(document.removeEventListener("mouseup",o),document.addEventListener("mouseup",o))},r}},oO=function(){function e(){this.title=JE("fullScreen.title"),this.iconSvg=bx,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?bx:'<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?JE("fullScreen.title"):JE("fullScreen.cancelTitle")},e.prototype.exec=function(e,t){e.isFullScreen?e.unFullScreen():e.fullScreen()},e}(),iO={menus:[{key:"fullScreen",factory:function(){return new oO}}]};function aO(e){return function(t,n){return"<h".concat(e,">").concat(n,"</h").concat(e,">")}}var sO={type:"header1",elemToHtml:aO(1)},uO={type:"header2",elemToHtml:aO(2)},lO={type:"header3",elemToHtml:aO(3)},cO={type:"header4",elemToHtml:aO(4)},dO={type:"header5",elemToHtml:aO(5)},fO={type:"header6",elemToHtml:aO(6)};function pO(e){var t=ev(Kh.nodes(e,{match:function(e){return Py.getNodeType(e).startsWith("header")},universal:!0}),1),n=t[0];if(null==n)return"paragraph";var r=ev(n,1)[0];return Py.getNodeType(r)}function hO(e){if(null==e.selection)return!0;var t=ev(Kh.nodes(e,{match:function(e){var t=Py.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1);return!t[0]}function gO(e,t){t&&jg.setNodes(e,{type:t})}var vO=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return pO(e)},e.prototype.isActive=function(e){return this.getValue(e)===this.type},e.prototype.isDisabled=function(e){return hO(e)},e.prototype.exec=function(e,t){var n=this.type;gO(e,t===n?"paragraph":n)},e}(),mO=function(e){function t(){var t=e.apply(this,tv([],ev(arguments),!1))||this;return t.title="H1",t.type="header1",t}return Kg(t,e),t}(vO),yO=function(e){function t(){var t=e.apply(this,tv([],ev(arguments),!1))||this;return t.title="H2",t.type="header2",t}return Kg(t,e),t}(vO),bO=function(e){function t(){var t=e.apply(this,tv([],ev(arguments),!1))||this;return t.title="H3",t.type="header3",t}return Kg(t,e),t}(vO),EO=function(e){function t(){var t=e.apply(this,tv([],ev(arguments),!1))||this;return t.title="H4",t.type="header4",t}return Kg(t,e),t}(vO),CO=function(e){function t(){var t=e.apply(this,tv([],ev(arguments),!1))||this;return t.title="H5",t.type="header5",t}return Kg(t,e),t}(vO),DO=function(e){function t(){var t=e.apply(this,tv([],ev(arguments),!1))||this;return t.title="H6",t.type="header6",t}return Kg(t,e),t}(vO),wO=function(){function e(){this.title=JE("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:JE("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 pO(e)},e.prototype.isDisabled=function(e){return hO(e)},e.prototype.exec=function(e,t){gO(e,t.toString())},e}(),SO={key:"headerSelect",factory:function(){return new wO}},AO={key:"header1",factory:function(){return new mO}},xO={key:"header2",factory:function(){return new yO}},OO={key:"header3",factory:function(){return new bO}},NO={key:"header4",factory:function(){return new EO}},BO={key:"header5",factory:function(){return new CO}},TO={key:"header6",factory:function(){return new DO}};function kO(e){return function(t,n,r){var o=im(t);return 0===(n=n.filter(function(e){return!!Cg.isText(e)||!!r.isInline(e)})).length&&(n=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header".concat(e),children:n}}}var FO={selector:"h1:not([data-w-e-type])",parseElemHtml:kO(1)},IO={selector:"h2:not([data-w-e-type])",parseElemHtml:kO(2)},PO={selector:"h3:not([data-w-e-type])",parseElemHtml:kO(3)},_O={selector:"h4:not([data-w-e-type])",parseElemHtml:kO(4)},LO={selector:"h5:not([data-w-e-type])",parseElemHtml:kO(5)},RO={selector:"h6:not([data-w-e-type])",parseElemHtml:kO(6)};function MO(e){return function(t,n,r){return BD("h".concat(e),null,n)}}var jO={renderElems:[{type:"header1",renderElem:MO(1)},{type:"header2",renderElem:MO(2)},{type:"header3",renderElem:MO(3)},{type:"header4",renderElem:MO(4)},{type:"header5",renderElem:MO(5)},{type:"header6",renderElem:MO(6)}],elemsToHtml:[sO,uO,lO,cO,dO,fO],parseElemsHtml:[FO,IO,PO,_O,LO,RO],menus:[SO,AO,xO,OO,NO,BO,TO],editorPlugin:function(e){var t=e.insertBreak,n=e;return n.insertBreak=function(){var r=ev(Kh.nodes(n,{match:function(e){return Py.getNodeType(e).startsWith("header")},universal:!0}),1),o=r[0];if(o)if(Py.isSelectionAtLineEnd(e,o[1])){jg.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}else t();else t()},n}};var HO={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 zO=function(){function e(){this.title=JE("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==Py.getSelectedNodeByType(e,"image")},e.prototype.exec=function(e,t){this.isDisabled(e)||jg.removeNodes(e,{match:function(e){return Py.checkNodeType(e,"image")}})},e}();function $O(e){return void 0===e&&(e="r"),"".concat(e,"-").concat(Hm())}function UO(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;")}function VO(e){var t=e.selection;if(null==t)return!0;if(!fg.isCollapsed(t))return!0;var n=ev(Kh.nodes(e,{match:function(t){var n=Py.getNodeType(t);return"code"===n||("pre"===n||("link"===n||("list-item"===n||(!!n.startsWith("header")||("blockquote"===n||!!Kh.isVoid(e,t))))))},universal:!0}),1);return!!n[0]}function WO(e,t,n){return Zg(this,arguments,void 0,function(e,t,n,r,o){var i,a;return void 0===r&&(r=""),void 0===o&&(o=""),Jg(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 GO(e,t,n){return Zg(this,void 0,void 0,function(){var r;return Jg(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 qO(e,t){return Zg(this,arguments,void 0,function(e,t,n,r){var o,i,a;return void 0===n&&(n=""),void 0===r&&(r=""),Jg(this,function(s){switch(s.label){case 0:return[4,WO("insertImage",e,t,n,r)];case 1:return s.sent()?[4,GO("insertImage",e,t)]:[2];case 2:return o=s.sent(),i={type:"image",src:UO(o),href:r,alt:n,style:{},children:[{text:""}]},null===e.selection&&e.restoreSelection(),Py.getSelectedNodeByType(e,"image")&&e.move(1),VO(e)?[2]:(jg.insertNodes(e,i),(a=e.getMenuConfig("insertImage").onInsertedImage)&&a(i),[2])}})})}function KO(){return $O("w-e-edit-image")}var YO=function(){function e(){this.title=JE("image.edit"),this.iconSvg=mx,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=KO(),this.altInputId=KO(),this.hrefInputId=KO(),this.buttonId=KO()}return e.prototype.getValue=function(e){return""},e.prototype.getImageNode=function(e){return Py.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||(!fg.isCollapsed(t)||null==Py.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=ev(lC(JE("image.src"),r),2),l=u[0],c=im(u[1]),d=ev(lC(JE("image.desc"),o),2),f=d[0],p=im(d[1]),h=ev(lC(JE("image.link"),i),2),g=h[0],v=im(h[1]),m=ev(dC(a,JE("common.ok")),1)[0];if(null==this.$content){var y=im("<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,D=E.alt,w=void 0===D?"":D,S=E.href,A=void 0===S?"":S;return c.val(C),p.val(w),v.val(A),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){Zg(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={}),Jg(this,function(d){switch(d.label){case 0:return[4,WO("editImage",e,t,n,r)];case 1:return d.sent()?[4,GO("editImage",e,t)]:[2];case 2:return i=d.sent(),null==(a=Py.getSelectedNodeByType(e,"image"))||(s=a.style,u={src:i,alt:n,href:r,style:Yg(Yg({},void 0===s?{}:s),o)},jg.setNodes(e,u,{match:function(e){return Py.checkNodeType(e,"image")}}),l=Py.getSelectedNodeByType(e,"image"),(c=e.getMenuConfig("editImage").onUpdatedImage)&&c(l)),[2]}})})}(e,t,n,r,o))},e}();function XO(){return $O("w-e-insert-image")}var ZO=function(){function e(){this.title=JE("image.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=XO(),this.heightInputId=XO(),this.buttonId=XO()}return e.prototype.getSelectedImageNode=function(e){return Py.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=ev(lC(JE("image.width"),n,"auto"),2),a=i[0],s=im(i[1]),u=ev(lC(JE("image.height"),r,"auto"),2),l=u[0],c=im(u[1]),d=ev(dC(o,JE("image.ok")),1)[0],f=this.getSelectedImageNode(e);if(null==this.$content){var p=im("<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=Yg(Yg({},h),{style:{width:l,height:c}});jg.setNodes(e,g,{match:function(e){return Py.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 JO(){return $O("w-e-insert-image")}var QO=function(){function e(){this.title=JE("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=JO(),this.altInputId=JO(),this.hrefInputId=JO(),this.buttonId=JO()}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 VO(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=ev(lC(JE("image.src"),r),2),u=s[0],l=im(s[1]),c=ev(lC(JE("image.desc"),o),2),d=c[0],f=im(c[1]),p=ev(lC(JE("image.link"),i),2),h=p[0],g=im(p[1]),v=ev(dC(a,JE("common.ok")),1)[0];if(null==this.$content){var m=im("<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)||qO(e,t,n,r))},e}(),eN=function(){function e(){this.title=JE("image.viewLink"),this.iconSvg=yx,this.tag="button"}return e.prototype.getValue=function(e){var t=Py.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}(),tN=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 Py.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=Py.getHoverbar(e);r&&r.hideAndClean();var o=n.style,i={style:Yg(Yg({},void 0===o?{}:o),{width:this.value,height:""})};jg.setNodes(e,i,{match:function(e){return Py.checkNodeType(e,"image")}})}}},e}(),nN=function(e){function t(){var t=e.apply(this,tv([],ev(arguments),!1))||this;return t.title="30%",t.value="30%",t}return Kg(t,e),t}(tN),rN=function(e){function t(){var t=e.apply(this,tv([],ev(arguments),!1))||this;return t.title="50%",t.value="50%",t}return Kg(t,e),t}(tN),oN=function(e){function t(){var t=e.apply(this,tv([],ev(arguments),!1))||this;return t.title="100%",t.value="100%",t}return Kg(t,e),t}(tN),iN={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,n){return!0},parseImageSrc:function(e){return e}};function aN(e,t){var n=Py.findKey(e,t).id;return"w-e-image-container-".concat(n)}function sN(e,t,n,r){var o=im("body"),i=aN(e,t),a=r.width,s=r.height,u=0,l=0,c=0,d=0,f=!1,p=null;var h=SC(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:Yg(Yg({},t.style),{width:"".concat(r,"px"),height:"".concat(i,"px")})};jg.setNodes(e,a,{at:Py.findPath(e,t)}),o.off("mouseup",g)}}function v(t,n){p=function(){var e=im("#".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=Py.getHoverbar(e);a&&a.hideAndClean()}var m={};return a&&(m.width=a),s&&(m.height=s),m.boxShadow="0 0 0 1px #B4D5FF",BD("div",{id:i,style:m,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(n){var r=im(n.target);if(r.hasClass("w-e-image-dragger")){n.preventDefault(),(r.hasClass("left-top")||r.hasClass("left-bottom"))&&(f=!0);var o=Py.getParentNode(e,t);if(null!=o){var i=Py.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,BD("div",{className:"w-e-image-dragger left-top"}),BD("div",{className:"w-e-image-dragger right-top"}),BD("div",{className:"w-e-image-dragger left-bottom"}),BD("div",{className:"w-e-image-dragger right-bottom"}))}var uN={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=Py.isNodeSelected(n,e),v={maxWidth:"100%"};f&&(v.width="100%"),h&&(v.height="100%");var m=BD("img",{style:v,src:o,alt:a,"data-href":u}),y=n.isDisabled();return g&&!y?sN(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),BD("div",{id:aN(e,t),style:a,className:"w-e-image-container"},n)}(n,e,m,{width:f,height:h})}},lN={renderElems:[uN],elemsToHtml:[HO],parseElemsHtml:[{selector:"img:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=im(e),o=r.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:o,style:{width:Ax(r,"width"),height:Ax(r,"height")},width:r.attr("width")||"",height:r.attr("height")||"",children:[{text:""}]}}}],menus:[{key:"insertImage",factory:function(){return new QO},config:iN},{key:"deleteImage",factory:function(){return new zO}},{key:"editImage",factory:function(){return new YO},config:iN},{key:"viewImageLink",factory:function(){return new eN}},{key:"imageWidth30",factory:function(){return new nN}},{key:"imageWidth50",factory:function(){return new rN}},{key:"imageWidth100",factory:function(){return new oN}},{key:"editorImageSizeMenu",factory:function(){return new ZO}}],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}},cN=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){var t=ev(Kh.nodes(e,{match:function(e){return!!e.indent},universal:!0}),1),n=t[0];return null==n?"":ev(n,1)[0].indent||""},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=ev(Kh.nodes(e,{match:function(e){var t=Py.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1),n=t[0];return null==n?null:n[0]},e}(),dN=function(e){function t(){var t=e.apply(this,tv([],ev(arguments),!1))||this;return t.title=JE("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 Kg(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!t.indent},t.prototype.exec=function(e,t){jg.setNodes(e,{indent:null},{match:function(e){return $h.isElement(e)}})},t}(cN),fN=function(e){function t(){var t=e.apply(this,tv([],ev(arguments),!1))||this;return t.title=JE("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 Kg(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(Cg.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);jg.setNodes(e,{indent:n},{match:function(e){return $h.isElement(e)},mode:"highest"})},t}(cN);var pN={renderStyle:function(e,t){if(!$h.isElement(e))return t;var n=e.indent,r=t;return n&&$x(r,{textIndent:n}),r},styleToHtml:function(e,t){if(!$h.isElement(e))return t;var n=e.indent;if(!n)return t;var r=im(t);return r.css("text-indent",n),wx(r)},preParseHtml:[{selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(e){var t=im(e),n=Ax(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=im(e);if(!$h.isElement(t))return t;var o=t,i=Ax(r,"text-indent"),a=parseInt(i,10);return i&&a>0&&(o.indent=i),o},menus:[{key:"indent",factory:function(){return new fN}},{key:"delIndent",factory:function(){return new dN}}]},hN=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||!!Py.getSelectedElems(e).some(function(t){var n=t.type;return!(!Kh.isVoid(e,t)||!Kh.isBlock(e,t)||"video"===n)||!!["pre","code"].includes(n)})},e}(),gN=function(e){function t(){var t=e.apply(this,tv([],ev(arguments),!1))||this;return t.title=JE("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 Kg(t,e),t.prototype.exec=function(e,t){jg.setNodes(e,{textAlign:"center"},{match:function(t){return $h.isElement(t)&&!e.isInline(t)}})},t}(hN),vN=function(e){function t(){var t=e.apply(this,tv([],ev(arguments),!1))||this;return t.title=JE("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 Kg(t,e),t.prototype.exec=function(e,t){jg.setNodes(e,{textAlign:"justify"},{match:function(t){return $h.isElement(t)&&!e.isInline(t)}})},t}(hN),mN=function(e){function t(){var t=e.apply(this,tv([],ev(arguments),!1))||this;return t.title=JE("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 Kg(t,e),t.prototype.exec=function(e,t){jg.setNodes(e,{textAlign:"left"},{match:function(t){return $h.isElement(t)&&!e.isInline(t)}})},t}(hN),yN=function(e){function t(){var t=e.apply(this,tv([],ev(arguments),!1))||this;return t.title=JE("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 Kg(t,e),t.prototype.exec=function(e,t){jg.setNodes(e,{textAlign:"right"},{match:function(t){return $h.isElement(t)&&!e.isInline(t)}})},t}(hN);var bN={renderStyle:function(e,t){if(!$h.isElement(e))return t;var n=e.textAlign,r=t;return n&&$x(r,{textAlign:n}),r},styleToHtml:function(e,t){if(!$h.isElement(e))return t;var n=e.textAlign;if(!n)return t;var r=im(t);return r.css("text-align",n),wx(r)},parseStyleHtml:function(e,t,n){var r=im(e);if(!$h.isElement(t))return t;var o=t,i=Ax(r,"text-align");return i&&(o.textAlign=i),o},menus:[{key:"justifyLeft",factory:function(){return new mN}},{key:"justifyRight",factory:function(){return new yN}},{key:"justifyCenter",factory:function(){return new gN}},{key:"justifyJustify",factory:function(){return new vN}}]};var EN=function(){function e(){this.title=JE("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:JE("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=ev(Kh.nodes(e,{match:function(e){var t=Py.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?"":$h.isElement(t)&&t.lineHeight||""},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getMatchNode(e)},e.prototype.exec=function(e,t){jg.setNodes(e,{lineHeight:t.toString()},{mode:"highest"})},e}();var CN={renderStyle:function(e,t){if(!$h.isElement(e))return t;var n=e.lineHeight,r=t;return n&&$x(r,{lineHeight:n}),r},styleToHtml:function(e,t){if(!$h.isElement(e))return t;var n=e.lineHeight;if(!n)return t;var r=im(t);return r.css("line-height",n),wx(r)},parseStyleHtml:function(e,t,n){var r=im(e);if(!$h.isElement(t))return t;var o=t,i=n.getMenuConfig("lineHeight").lineHeightList,a=void 0===i?[]:i,s=Ax(r,"line-height");return s&&a.includes(s)&&(o.lineHeight=s),o},menus:[{key:"lineHeight",factory:function(){return new EN},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]};var DN={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 wN(e,t,n,r){return Zg(this,void 0,void 0,function(){var o,i;return Jg(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 SN(e,t,n){return Zg(this,void 0,void 0,function(){var r;return Jg(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 AN(e){return null==e.selection||!!Py.getSelectedElems(e).some(function(t){var n=t.type;return!!e.isVoid(t)||!!["pre","code","link"].includes(n)})}function xN(e,t){return{type:"link",url:UO(e),children:t?[{text:t}]:[]}}function ON(e,t,n){return Zg(this,void 0,void 0,function(){var r,o,i,a,s;return Jg(this,function(u){switch(u.label){case 0:return n?(t||(t=n),e.restoreSelection(),AN(e)?[2]:[4,wN("insertLink",e,t,n)]):[2];case 1:return u.sent()?[4,SN("insertLink",e,n)]:[2];case 2:if(r=u.sent(),null==(o=e.selection))return[2];if(fg.isCollapsed(o)){if((a=Py.getLeftLengthOfMaxLength(e))<=0)return[2];e.insertText(" "),a<t.length+1&&(t=t.slice(0,a-1)),s=xN(r,t),jg.insertNodes(e,s),e.insertFragment([{text:" "}])}else if((i=Kh.string(e,o))!==t){if((a=Py.getLeftLengthOfMaxLength(e))<=0)return[2];a<i.length-t.length&&(t=t.slice(0,a)),e.deleteFragment(),s=xN(r,t),jg.insertNodes(e,s)}else s=xN(r),jg.wrapNodes(e,s,{split:!0}),jg.collapse(e,{edge:"end"});return[2]}})})}function NN(){return $O("w-e-update-link")}var BN=function(){function e(){this.title=JE("link.edit"),this.iconSvg=mx,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=NN(),this.buttonId=NN()}return e.prototype.getSelectedLinkElem=function(e){var t=Py.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 Py.getSelectedNodeByType(e,"link")},e.prototype.getModalContentElem=function(e){var t=this.urlInputId,n=this.buttonId,r=ev(lC(JE("link.url"),t),2),o=r[0],i=im(r[1]),a=ev(dC(n,JE("common.ok")),1)[0];if(null==this.$content){var s=im("<div></div>");s.on("click","#".concat(n),function(n){n.preventDefault(),e.restoreSelection();var r=Py.getSelectedNodeByType(e,"link"),o=r?eg.string(r):"",i=s.find("#".concat(t)).val();!function(e,t,n){Zg(this,void 0,void 0,function(){var r,o;return Jg(this,function(i){switch(i.label){case 0:return n?[4,wN("editLink",e,t,n)]:[2];case 1:return i.sent()?[4,SN("editLink",e,n)]:[2];case 2:return r=i.sent(),o={url:UO(r)},jg.setNodes(e,o,{match:function(e){return Py.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 TN(){return $O("w-e-insert-link")}var kN=function(){function e(){this.title=JE("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=TN(),this.urlInputId=TN(),this.buttonId=TN()}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 AN(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=ev(lC(JE("link.text"),r),2),s=a[0],u=im(a[1]),l=ev(lC(JE("link.url"),o),2),c=l[0],d=im(l[1]),f=ev(dC(i,JE("common.ok")),1)[0];if(null==this.$content){var p=im("<div></div>");p.on("click","#".concat(i),function(t){t.preventDefault();var n=p.find("#".concat(r)).val(),i=p.find("#".concat(o)).val();ON(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||fg.isCollapsed(t))u.val("");else{var g=Kh.string(e,t);u.val(g)}return d.val(""),setTimeout(function(){u.focus()}),h[0]},e}(),FN=function(){function e(){this.title=JE("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==Py.getSelectedNodeByType(e,"link")},e.prototype.exec=function(e,t){this.isDisabled(e)||jg.unwrapNodes(e,{match:function(e){return Py.checkNodeType(e,"link")}})},e}(),IN=function(){function e(){this.title=JE("link.view"),this.iconSvg=yx,this.tag="button"}return e.prototype.getSelectedLinkElem=function(e){var t=Py.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}(),PN={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},_N={key:"insertLink",factory:function(){return new kN},config:PN},LN={key:"editLink",factory:function(){return new BN},config:PN},RN={key:"unLink",factory:function(){return new FN}},MN={key:"viewLink",factory:function(){return new IN}};var jN,HN,zN={selector:"a:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=im(e).text().replace(/\s+/gm," ");return t.length>0?{text:t.filter(function(e){return Cg.isText(e)}).map(function(e){return e.text}).join("")||r}:{text:r}}};var $N=b(function(){if(HN)return jN;HN=1,jN=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 jN}());var UN={type:"link",renderElem:function(e,t,n){var r=e,o=r.url,i=r.target;return BD("a",{href:o,target:void 0===i?"_blank":i},t)}},VN={renderElems:[UN],elemsToHtml:[DN],parseElemsHtml:[zN],menus:[_N,LN,RN,MN],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($N(t)){if(/<img[^>]+>/.test(e.getData("text/html")))n(e);else if(!AN(o)){var r=o.selection;if(null!=r){var i=Kh.string(o,r);ON(o,i,t)}}}else n(e)},o.normalizeNode=function(e){var t=ev(e,2),n=t[0],i=t[1];return"link"!==Py.getNodeType(n)?r([n,i]):""===eg.string(n)?jg.removeNodes(o,{at:i}):r([n,i])},o}};var WN={selector:"p:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=im(e);return 0===(t=t.filter(function(e){return!!Cg.isText(e)||!!n.isInline(e)})).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:t}}};function GN(e){var t=ev(Kh.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(!$h.isElement(r))return!1;if("paragraph"===r.type)return!1;if(""!==eg.string(r))return!1;var o=r.children,i=void 0===o?[]:o;return!!Cg.isText(i[0])&&(jg.setNodes(e,{type:"paragraph"}),!0)}var qN={type:"paragraph",renderElem:function(e,t,n){return BD("p",null,t)}},KN={renderElems:[qN],elemsToHtml:[{type:"paragraph",elemToHtml:function(e,t){return""===t?"<p><br></p>":"<p>".concat(t,"</p>")}}],parseElemsHtml:[WN],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward,r=e;return r.deleteBackward=function(e){GN(r)||t(e)},r.deleteForward=function(e){GN(r)||n(e)},r}};function YN(e,t){if(null==e.selection)return!0;var n=ev(Kh.nodes(e,{match:function(t){return"pre"===Py.getNodeType(t)||!!Kh.isVoid(e,t)},universal:!0}),1);return!!n[0]}function XN(e,t){Object.keys(t).forEach(function(t){"text"!==t&&Kh.removeMark(e,t)})}var ZN=function(){function e(){this.marksNeedToRemove=[],this.tag="button"}return e.prototype.getValue=function(e){var t=this.mark,n=Kh.marks(e);if(n)return n[t];var r=ev(Kh.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 YN(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}(),JN=function(e){function t(){var t=e.apply(this,tv([],ev(arguments),!1))||this;return t.mark="bold",t.title=JE("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 Kg(t,e),t}(ZN),QN=function(){function e(){this.title=JE("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 YN(e)},e.prototype.exec=function(e,t){var n,r,o=Kh.nodes(e,{match:function(e){return Cg.isText(e)},universal:!0});try{for(var i=Qg(o),a=i.next();!a.done;a=i.next()){XN(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}(),eB=function(e){function t(){var t=e.apply(this,tv([],ev(arguments),!1))||this;return t.mark="code",t.title=JE("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 Kg(t,e),t}(ZN),tB=function(e){function t(){var t=e.apply(this,tv([],ev(arguments),!1))||this;return t.mark="italic",t.title=JE("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 Kg(t,e),t}(ZN),nB=function(e){function t(){var t=e.apply(this,tv([],ev(arguments),!1))||this;return t.mark="sub",t.marksNeedToRemove=["sup"],t.title=JE("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 Kg(t,e),t}(ZN),rB=function(e){function t(){var t=e.apply(this,tv([],ev(arguments),!1))||this;return t.mark="sup",t.marksNeedToRemove=["sub"],t.title=JE("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 Kg(t,e),t}(ZN),oB=function(e){function t(){var t=e.apply(this,tv([],ev(arguments),!1))||this;return t.mark="through",t.title=JE("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 Kg(t,e),t}(ZN),iB=function(e){function t(){var t=e.apply(this,tv([],ev(arguments),!1))||this;return t.mark="underline",t.title=JE("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 Kg(t,e),t}(ZN);function aB(e,t){return 0!==e.length&&(!!e[0].matches(t)||e.find(t).length>0)}function sB(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 uB={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=BD("strong",null,c)),a&&(c=BD("code",null,c)),o&&(c=BD("em",null,c)),i&&(c=BD("u",null,c)),s&&(c=BD("s",null,c)),u&&(c=BD("sub",null,c)),l&&(c=BD("sup",null,c)),c},menus:[{key:"bold",factory:function(){return new JN}},{key:"underline",factory:function(){return new iB}},{key:"italic",factory:function(){return new tB}},{key:"through",factory:function(){return new oB}},{key:"code",factory:function(){return new eB}},{key:"sub",factory:function(){return new nB}},{key:"sup",factory:function(){return new rB}},{key:"clearStyle",factory:function(){return new QN}}],styleToHtml:function(e,t){if(!Cg.isText(e))return t;if(Dx(t))return sB(e,t);var n=im(t),r=n.html();return r=sB(e,r),n.html(r),wx(n)},parseStyleHtml:function(e,t,n){var r=im(e);if(!Cg.isText(t))return t;var o=t;return aB(r,"b,strong")&&(o.bold=!0),aB(r,"i,em")&&(o.italic=!0),aB(r,"u")&&(o.underline=!0),aB(r,"s,strike")&&(o.through=!0),aB(r,"sub")&&(o.sub=!0),aB(r,"sup")&&(o.sup=!0),aB(r,"code")&&(o.code=!0),o}};var lB={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>")}},cB=function(){function e(){this.title=JE("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!!Py.getSelectedNodeByType(e,"todo")},e.prototype.isDisabled=function(e){return null==e.selection||!!Py.getSelectedElems(e).some(function(t){if(Kh.isVoid(e,t)&&Kh.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);jg.setNodes(e,{type:n?"paragraph":"todo"})},e}();var dB={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(e,t,n){var r=im(e);0===(t=t.filter(function(e){return!!Cg.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 fB={type:"todo",renderElem:function(e,t,n){var r=!1;n.isDisabled()&&(r=!0);var o=BD("div",{style:{margin:"5px 0"}},BD("span",{contentEditable:!1,style:{marginRight:"0.5em"}},BD("input",{type:"checkbox",checked:e.checked,disabled:r,on:{change:function(t){var r=Py.findPath(n,e),o={checked:t.target.checked};jg.setNodes(n,o,{at:r})}}})),BD("span",null,t));return o}},pB={renderElems:[fB],elemsToHtml:[lB],preParseHtml:[{selector:"ul.w-e-todo",preParseHtml:function(e){var t=im(e).find("li"),n=im('<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:[dB],menus:[{key:"todo",factory:function(){return new cB}}],editorPlugin:function(e){var t=e.deleteBackward,n=e;return n.deleteBackward=function(n){var r=e.selection;if(r&&fg.isCollapsed(r)){var o=Py.getSelectedNodeByType(e,"todo");if(o&&0===eg.string(o).length)return void jg.setNodes(e,{type:"paragraph"},{mode:"highest"})}t(n)},n}},hB=function(){function e(){this.title=JE("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}(),gB=function(){function e(){this.title=JE("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}(),vB=[uB,Ux,tO,pN,bN,CN,lN,Kx,Xx,VN,Lx,Bx,jO,KN,pB,rO,{menus:[{key:"redo",factory:function(){return new hB}},{key:"undo",factory:function(){return new gB}}]},iO,Wx];KE("en",{highLightModule:{selectLang:"Language"}}),KE("zh-CN",{highLightModule:{selectLang:"选择语言"}});var mB,yB={exports:{}};var bB=(mB||(mB=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,D=r.next,w=u;D!==t.tail&&!(d&&w>=d.reach);w+=D.value.length,D=D.next){var S=D.value;if(t.length>e.length)return;if(!(S instanceof i)){var A,x=1;if(y){if(!(A=a(C,w,e,m))||A.index>=e.length)break;var O=A.index,N=A.index+A[0].length,B=w;for(B+=D.value.length;O>=B;)B+=(D=D.next).value.length;if(w=B-=D.value.length,D.value instanceof i)continue;for(var T=D;T!==t.tail&&(B<N||"string"==typeof T.value);T=T.next)x++,B+=T.value.length;x--,S=e.slice(w,B),A.index-=w}else if(!(A=a(C,0,S,m)))continue;O=A.index;var k=A[0],F=S.slice(0,O),I=S.slice(O+k.length),P=w+S.length;d&&P>d.reach&&(d.reach=P);var _=D.prev;if(F&&(_=l(t,_,F),w+=F.length),c(t,_,x),D=l(t,_,new i(f,v?o.tokenize(k,v):k,b,k)),I&&l(t,D,I),x>1){var L={cause:f+","+h,reach:P};s(e,t,n,D.prev,w,L),d&&L.reach>d.reach&&(d.reach=L.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:{});
25
19
  /**
26
20
  * Prism: Lightweight, robust, elegant syntax highlighting
27
21
  *
@@ -29,5 +23,5 @@ var t,e,r,n,o,i,u,a,s,c,l,f,d,p,h,v,g,y,m="undefined"!=typeof globalThis?globalT
29
23
  * @author Lea Verou <https://lea.verou.me>
30
24
  * @namespace
31
25
  * @public
32
- */t.exports&&(t.exports=e),void 0!==u0&&(u0.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,r){var n={};n["language-"+r]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[r]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};o["language-"+r]={pattern:/[\s\S]+/,inside:e.languages[r]};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,r){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:[r,"language-"+r],inside:e.languages[r]},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 r=t.languages.markup;r&&(r.tag.addInlined("style","css"),r.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"},r="data-src-status",n="loading",o="loaded",i="pre[data-src]:not(["+r+'="'+o+'"]):not(['+r+'="'+n+'"])';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(r,n);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,r){var n=new XMLHttpRequest;n.open("GET",t,!0),n.onreadystatechange=function(){4==n.readyState&&(n.status<400&&n.responseText?e(n.responseText):n.status>=400?r("✖ Error "+n.status+" while fetching file: "+n.statusText):r("✖ Error: File does not exist or is empty"))},n.send(null)}(c,function(t){a.setAttribute(r,o);var n=function(t){var e=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(t||"");if(e){var r=Number(e[1]),n=e[2],o=e[3];return n?o?[r,Number(o)]:[r,void 0]:[r,r]}}(a.getAttribute("data-range"));if(n){var i=t.split(/\r\n?|\n/g),u=n[0],c=null==n[1]?i.length:n[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(r,"failed"),s.textContent=t})}}),e.plugins.fileHighlight={highlight:function(t){for(var r,n=(t||document).querySelectorAll(i),o=0;r=n[o++];)e.highlightElement(r)}};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)}}}()}(Q4)),Q4.exports));!function(t){var e=t.util.clone(t.languages.javascript),r=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,n=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(t,e){return t=t.replace(/<S>/g,function(){return r}).replace(/<BRACES>/g,function(){return n}).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 r=[],n=0;n<e.length;n++){var o=e[n],i=!1;if("string"!=typeof o&&("tag"===o.type&&o.content[0]&&"tag"===o.content[0].type?"</"===o.content[0].content[0].content?r.length>0&&r[r.length-1].tagName===u(o.content[0].content[1])&&r.pop():"/>"===o.content[o.content.length-1].content||r.push({tagName:u(o.content[0].content[1]),openedBraces:0}):r.length>0&&"punctuation"===o.type&&"{"===o.content?r[r.length-1].openedBraces++:r.length>0&&r[r.length-1].openedBraces>0&&"punctuation"===o.type&&"}"===o.content?r[r.length-1].openedBraces--:i=!0),(i||"string"==typeof o)&&r.length>0&&0===r[r.length-1].openedBraces){var s=u(o);n<e.length-1&&("string"==typeof e[n+1]||"plain-text"===e[n+1].type)&&(s+=u(e[n+1]),e.splice(n+1,1)),n>0&&("string"==typeof e[n-1]||"plain-text"===e[n-1].type)&&(s=u(e[n-1])+s,e.splice(n-1,1),n--),e[n]=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),W4||(W4=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 r={};r["language-"+e]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[e]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var n={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};n["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:n},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"],q4||(q4=1,function(t){var e=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,r=[{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*\()/],n=/\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:r,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:n,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:r,number:n,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,K4||(K4=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),Y4||(Y4=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/,r=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,n={pattern:RegExp(/(^|[^\w.])/.source+r+/[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":[n,{pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:n.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+r+/[A-Z]\w*\b/.source),lookbehind:!0,inside:n.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":n,keyword:e,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+r+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:n.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+r+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:n.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)),X4||(X4=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/,r=/\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 r})+")"),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)),J4||(J4=1,function(t){function e(t,e){return t.replace(/<<(\d+)>>/g,function(t,r){return"(?:"+e[+r]+")"})}function r(t,r,n){return RegExp(e(t,r),"")}function n(t,e){for(var r=0;r<e;r++)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=n(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),h=n(/\((?:[^()]|<<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:r(/(^|[^$\\])<<0>>/.source,[A]),lookbehind:!0,greedy:!0},{pattern:r(/(^|[^@$\\])<<0>>/.source,[O]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[y]),lookbehind:!0,inside:C},{pattern:r(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[v,S]),lookbehind:!0,inside:C},{pattern:r(/(\busing\s+)<<0>>(?=\s*=)/.source,[v]),lookbehind:!0},{pattern:r(/(\b<<0>>\s+)<<1>>/.source,[c,g]),lookbehind:!0,inside:C},{pattern:r(/(\bcatch\s*\(\s*)<<0>>/.source,[y]),lookbehind:!0,inside:C},{pattern:r(/(\bwhere\s+)<<0>>/.source,[v]),lookbehind:!0},{pattern:r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:C},{pattern:r(/\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:r(/([(,]\s*)<<0>>(?=\s*:)/.source,[v]),lookbehind:!0,alias:"punctuation"}}),t.languages.insertBefore("csharp","class-name",{namespace:{pattern:r(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[v]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:r(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[h]),lookbehind:!0,alias:"class-name",inside:C},"return-type":{pattern:r(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[S,y]),inside:C,alias:"class-name"},"constructor-invocation":{pattern:r(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[S]),lookbehind:!0,inside:C,alias:"class-name"},"generic-method":{pattern:r(/<<0>>\s*<<1>>(?=\s*\()/.source,[v,p]),inside:{function:r(/^<<0>>/.source,[v]),generic:{pattern:RegExp(p),alias:"class-name",inside:C}}},"type-list":{pattern:r(/\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:r(/(^(?!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=n(e(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[T]),2),k=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,P=e(/<<0>>(?:\s*\(<<1>>*\))?/.source,[y,N]);t.languages.insertBefore("csharp","class-name",{attribute:{pattern:r(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[k,P]),lookbehind:!0,greedy:!0,inside:{target:{pattern:r(/^<<0>>(?=\s*:)/.source,[k]),alias:"keyword"},"attribute-arguments":{pattern:r(/\(<<0>>*\)/.source,[N]),inside:t.languages.csharp},"class-name":{pattern:RegExp(y),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var B=/:[^}\r\n]+/.source,I=n(e(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[T]),2),F=e(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[I,B]),R=n(e(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[x]),2),L=e(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[R,B]);function _(e,n){return{interpolation:{pattern:r(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[e]),lookbehind:!0,inside:{"format-string":{pattern:r(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[n,B]),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:r(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[F]),lookbehind:!0,greedy:!0,inside:_(F,I)},{pattern:r(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[L]),lookbehind:!0,greedy:!0,inside:_(L,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:/[;[\]()`,.]/},Z4||(Z4=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 r="(?:"+[/([^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("|")+")",n=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;t.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+r+/[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+n),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+n+/(?=:(?!:))/.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+r),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+r),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",r={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},n={bash:r,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:n},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:r}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:n},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:n.entity}}],environment:{pattern:RegExp("\\$?"+e),alias:"constant"},variable:n.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}},r.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=n.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 r(t){return t=t.replace(/<inner>/g,function(){return e}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+t+")")}var n=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return n}),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(n),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(n),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:r(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:r(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:r(/(~~?)(?:(?!~)<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:r(/!?\[(?:(?!\])<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(r){e!==r&&(t.languages.markdown[e].inside.content.inside[r]=t.languages.markdown[r])})}),t.hooks.add("after-tokenize",function(t){"markdown"!==t.language&&"md"!==t.language||function t(e){if(e&&"string"!=typeof e)for(var r=0,n=e.length;r<n;r++){var o=e[r];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 r="",n=0,o=e.classes.length;n<o;n++){var i=e.classes[n],c=/language-(.+)/.exec(i);if(c){r=c[1];break}}var l=t.languages[r];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 r;return"#"===(e=e.toLowerCase())[0]?(r="x"===e[1]?parseInt(e.slice(2),16):Number(e.slice(1)),s(r)):a[e]||t})}(e.content),l,r);else if(r&&"none"!==r&&t.plugins.autoloader){var f="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());e.attributes.id=f,t.plugins.autoloader.loadLanguages(r,function(){var e=document.getElementById(f);e&&(e.innerHTML=t.highlight(e.textContent,t.languages[r],r))})}}});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 e6=["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 r6(t){return"string"==typeof t?t.length:"string"==typeof t.content?t.content.length:t.content.reduce(function(t,e){return t+r6(e)},0)}var n6,o6,i6,u6,a6,s6,c6,l6,f6,d6,p6,h6,v6,g6,y6,m6=function(t){var e,r,n,o=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)u.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u}(t,2),i=o[0],u=o[1],a=[],s=function(t){if(!wv.isText(t))return null;var e=CB.getParentNode(null,t);if(e&&"code"===CB.getNodeType(e)){var r=CB.getParentNode(null,e);if(r&&"pre"===CB.getNodeType(r))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 r=t6.languages[e];return r?t6.tokenize(t.text,r):[]}(i,l),d=0;try{for(var p=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(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+r6(v);"string"!=typeof v&&a.push(((n={})[v.type]=!0,n.anchor={path:u,offset:d},n.focus={path:u,offset:g},n)),d=g}}catch(t){e={error:t}}finally{try{h&&!h.done&&(r=p.return)&&r.call(p)}finally{if(e)throw e.error}}return a},b6={};function E6(){if(o6)return n6;o6=1;var t=v1();return n6=Array.isArray||function(e){return"Array"===t(e)}}function w6(){if(d6)return f6;d6=1;var t=E6(),e=function(){if(l6)return c6;l6=1;var t=h1(),e=E0(),r=E1(),n=M4(),o=S1(),i=H2(),u=function(){},a=o("Reflect","construct"),s=/^\s*(?:class|function)\b/,c=t(s.exec),l=!s.test(u),f=function(t){if(!r(t))return!1;try{return a(u,[],t),!0}catch(t){return!1}},d=function(t){if(!r(t))return!1;switch(n(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return l||!!c(s,i(t))}catch(t){return!0}};return d.sham=!0,c6=!a||e(function(){var t;return f(f.call)||!f(Object)||!f(function(){t=!0})||t})?d:f}(),r=w1(),n=u2()("species"),o=Array;return f6=function(i){var u;return t(i)&&(u=i.constructor,(e(u)&&(u===o||t(u.prototype))||r(u)&&null===(u=u[n]))&&(u=void 0)),void 0===u?o:u}}function S6(){if(h6)return p6;h6=1;var t=w6();return p6=function(e,r){return new(t(e))(0===r?0:r)}}!function(){if(y6)return b6;y6=1;var t=_4(),e=E0(),r=E6(),n=w1(),o=n2(),i=f4(),u=function(){if(u6)return i6;u6=1;var t=TypeError;return i6=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}}(),a=function(){if(s6)return a6;s6=1;var t=w0(),e=S2(),r=p1();return a6=function(n,o,i){t?e.f(n,o,r(0,i)):n[o]=i}}(),s=S6(),c=function(){if(g6)return v6;g6=1;var t=E0(),e=u2(),r=D1(),n=e("species");return v6=function(e){return r>=51||!t(function(){var t=[];return(t.constructor={})[n]=function(){return{foo:1}},1!==t[e](Boolean).foo})}}(),l=u2(),f=D1(),d=l("isConcatSpreadable"),p=f>=51||!e(function(){var t=[];return t[d]=!1,t.concat()[0]!==t}),h=function(t){if(!n(t))return!1;var e=t[d];return void 0!==e?!!e:r(t)};t({target:"Array",proto:!0,arity:1,forced:!p||!c("concat")},{concat:function(t){var e,r,n,c,l,f=o(this),d=s(f,0),p=0;for(e=-1,n=arguments.length;e<n;e++)if(h(l=-1===e?f:arguments[e]))for(c=i(l),u(p+c),r=0;r<c;r++,p++)r in l&&a(d,p,l[r]);else u(p+1),a(d,p++,l);return d.length=p,d}})}();var C6,D6,O6,A6,x6={};function T6(){if(D6)return C6;D6=1;var t=w2();return C6=function(){var e=t(this),r="";return e.hasIndices&&(r+="d"),e.global&&(r+="g"),e.ignoreCase&&(r+="i"),e.multiline&&(r+="m"),e.dotAll&&(r+="s"),e.unicode&&(r+="u"),e.unicodeSets&&(r+="v"),e.sticky&&(r+="y"),r}}var N6,k6,P6,B6,I6,F6,R6,L6,_6,j6,M6,z6,H6,$6,U6={};function V6(){if(k6)return N6;k6=1;var t=d4(),e=p4();return N6=Object.keys||function(r){return t(r,e)}}function G6(){if(R6)return F6;R6=1;var t,e=w2(),r=function(){if(P6)return U6;P6=1;var t=w0(),e=E2(),r=S2(),n=w2(),o=b1(),i=V6();return U6.f=t&&!e?Object.defineProperties:function(t,e){n(t);for(var u,a=o(e),s=i(e),c=s.length,l=0;c>l;)r.f(t,u=s[l++],a[u]);return t},U6}(),n=p4(),o=U2(),i=function(){if(I6)return B6;I6=1;var t=S1();return B6=t("document","documentElement")}(),u=c2(),a=$2(),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,r,o;h="undefined"!=typeof document?document.domain&&t?p(t):(r=u("iframe"),o="java"+c+":",r.style.display="none",i.appendChild(r),r.src=String(o),(e=r.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F):p(t);for(var a=n.length;a--;)delete h[s][n[a]];return h()};return o[l]=!0,F6=Object.create||function(t,n){var o;return null!==t?(f[s]=e(t),o=new f,f[s]=null,o[l]=t):o=h(),void 0===n?o:r.f(o,n)}}!function(){if($6)return x6;$6=1;var t=_4(),e=function(){if(H6)return z6;H6=1;var t,e,r=C0(),n=h1(),o=z4(),i=T6(),u=function(){if(A6)return O6;A6=1;var t=E0(),e=l0().RegExp,r=t(function(){var t=e("a","y");return t.lastIndex=2,null!==t.exec("abcd")}),n=r||t(function(){return!e("a","y").sticky}),o=r||t(function(){var t=e("^r","gy");return t.lastIndex=2,null!==t.exec("str")});return O6={BROKEN_CARET:o,MISSED_STICKY:n,UNSUPPORTED_Y:r}}(),a=r2(),s=G6(),c=V2().get,l=function(){if(_6)return L6;_6=1;var t=E0(),e=l0().RegExp;return L6=t(function(){var t=e(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})}(),f=function(){if(M6)return j6;M6=1;var t=E0(),e=l0().RegExp;return j6=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=n("".charAt),g=n("".indexOf),y=n("".replace),m=n("".slice),b=(e=/b*/g,r(p,t=/a/,"a"),r(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,n,u,a,l,f,S,C=this,D=c(C),O=o(t),A=D.raw;if(A)return A.lastIndex=C.lastIndex,e=r(h,A,O),C.lastIndex=A.lastIndex,e;var x=D.groups,T=E&&C.sticky,N=r(i,C),k=C.source,P=0,B=O;if(T&&(N=y(N,"y",""),-1===g(N,"g")&&(N+="g"),B=m(O,C.lastIndex),C.lastIndex>0&&(!C.multiline||C.multiline&&"\n"!==v(O,C.lastIndex-1))&&(k="(?: "+k+")",B=" "+B,P++),n=new RegExp("^(?:"+k+")",N)),w&&(n=new RegExp("^"+k+"$(?!\\s)",N)),b&&(u=C.lastIndex),a=r(p,T?n:C,B),T?a?(a.input=m(a.input,P),a[0]=m(a[0],P),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&&r(d,a[0],n,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}),z6=h}();t({target:"RegExp",proto:!0,forced:/./.exec!==e},{exec:e})}();var W6,q6,K6,Y6,X6,J6={};!function(){if(X6)return J6;X6=1;var t=z2().PROPER,e=G2(),r=w2(),n=z4(),o=E0(),i=function(){if(Y6)return K6;Y6=1;var t=C0(),e=o2(),r=C1(),n=function(){if(q6)return W6;q6=1;var t=l0(),e=E0(),r=t.RegExp,n=!e(function(){var t=!0;try{r(".","d")}catch(e){t=!1}var e={},n="",o=t?"dgimsy":"gimsy",i=function(t,r){Object.defineProperty(e,t,{get:function(){return n+=r,!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(r.prototype,"flags").get.call(e)!==o||n!==o});return W6={correct:n}}(),o=T6(),i=RegExp.prototype;return K6=n.correct?function(t){return t.flags}:function(u){return n.correct||!r(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=r(this);return"/"+n(t.source)+"/"+n(i(t))},{unsafe:!0})}();var Z6,Q6,t3,e3,r3,n3,o3,i3,u3,a3,s3,c3,l3,f3,d3,p3={};function h3(){if(f3)return l3;f3=1;var t=function(){if(a3)return u3;a3=1;var t=function(){if(i3)return o3;i3=1;var t=function(){if(n3)return r3;n3=1;var t=v1(),e=h1();return r3=function(r){if("Function"===t(r))return e(r)}}(),e=T1(),r=S0(),n=t(t.bind);return o3=function(t,o){return e(t),void 0===o?t:r?n(t,o):function(){return t.apply(o,arguments)}},o3}(),e=h1(),r=g1(),n=n2(),o=f4(),i=S6(),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=n(h),w=r(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 u3={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(c3)return s3;c3=1;var t=E0();return s3=function(e,r){var n=[][e];return!!n&&t(function(){n.call(null,r||function(){return 1},1)})}}()("forEach");return l3=e?[].forEach:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)},l3}!function(){if(d3)return p3;d3=1;var t=l0(),e=Q6?Z6:(Q6=1,Z6={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}),r=function(){if(e3)return t3;e3=1;var t=c2()("span").classList,e=t&&t.constructor&&t.constructor.prototype;return t3=e===Object.prototype?void 0:e}(),n=h3(),o=C2(),i=function(t){if(t&&t.forEach!==n)try{o(t,"forEach",n)}catch(e){t.forEach=n}};for(var u in e)e[u]&&i(t[u]&&t[u].prototype);i(r)}();var v3,g3,y3=function(){function t(){this.title=LF("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,r=[],n=t.getMenuConfig("codeSelectLang").codeLangs,o=void 0===n?[]:n;r.push({text:"plain text",value:""}),o.forEach(function(t){var n=t.text,o=t.value;t.selected&&(e.defaultCodeLang=o),r.push({text:n,value:o})});var i=this.getValue(t);return r.forEach(function(t){t.value===i?t.selected=!0:t.selected=void 0}),r},t.prototype.isActive=function(t){return!1},t.prototype.getValue=function(t){var e=this.getSelectCodeElem(t);if(null==e)return this.defaultCodeLang;if(!$h.isElement(e))return this.defaultCodeLang;var r=e.language.toString(),n=t.getMenuConfig("codeSelectLang").codeLangs;return(void 0===n?[]:n).some(function(t){return t.value===r})?r: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 r={language:e.toString()};zv.setNodes(t,r,{match:function(t){return CB.checkNodeType(t,"code")}})}},t.prototype.getSelectCodeElem=function(t){var e=CB.getSelectedNodeByType(t,"code");if(null==e)return null;var r=CB.getParentNode(t,e);return $h.isElement(r)?"pre"!==r.type?null:e:null},t}(),m3={key:"codeSelectLang",factory:function(){return new y3},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"}]}},b3={};g3||(g3=1,function(){if(v3)return b3;v3=1;var t=_4(),e=l0();t({global:!0,forced:e.globalThis!==e},{globalThis:e})}()),sg&&(og.fn.attr=sg);var E3,w3,S3,C3={};!function(){if(S3)return C3;S3=1;var t=_4(),e=function(){if(w3)return E3;w3=1;var t=w0(),e=h1(),r=C0(),n=E0(),o=V6(),i=R4(),u=d1(),a=n2(),s=g1(),c=Object.assign,l=Object.defineProperty,f=e([].concat);return E3=!c||n(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={},r={},n=Symbol("assign detection"),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach(function(t){r[t]=t}),7!==c({},e)[n]||o(c({},r)).join("")!==i})?function(e,n){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&&!r(h,g,v)||(c[v]=g[v]);return c}:c,E3}();t({target:"Object",stat:!0,arity:2,forced:Object.assign!==e},{assign:e})}();var D3={renderStyle:function(t,e){var r=t,n=e,o="";return e6.forEach(function(t){r[t]&&(o=t)}),o&&function(t,e){null==t.data&&(t.data={});var r=t.data;null==r.props&&(r.props={}),Object.assign(r.props,{className:e})}(n,o="token ".concat(o)),n},parseStyleHtml:function(t,e,r){var n=og(t);if(!$h.isElement(e))return e;if("code"!==CB.getNodeType(e))return e;var o=e,i=n.attr("class")||"";return 0===i.indexOf("language-")?o.language=i.split("-")[1]||"":o.language=i.toLowerCase(),o},menus:[m3],elemsToHtml:[{type:"code",elemToHtml:function(t,e){var r=t.language,n=void 0===r?"":r,o=n?'class="language-'.concat(n,'"'):"";return"<code ".concat(o,">").concat(e,"</code>")}}]};BF("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),BF("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var O3,A3,x3="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},T3={};function N3(){if(A3)return O3;A3=1;var t=function(t){return t&&t.Math===Math&&t};return O3=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof x3&&x3)||t("object"==typeof O3&&O3)||function(){return this}()||Function("return this")()}var k3,P3,B3,I3,F3,R3,L3,_3,j3={};function M3(){return P3?k3:(P3=1,k3=function(t){try{return!!t()}catch(t){return!0}})}function z3(){if(I3)return B3;I3=1;var t=M3();return B3=!t(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function H3(){if(R3)return F3;R3=1;var t=M3();return F3=!t(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})}function $3(){if(_3)return L3;_3=1;var t=H3(),e=Function.prototype.call;return L3=t?e.bind(e):function(){return e.apply(e,arguments)},L3}var U3,V3,G3,W3,q3,K3,Y3,X3,J3,Z3,Q3,t5,e5,r5,n5,o5,i5,u5,a5,s5,c5,l5,f5,d5,p5,h5,v5,g5,y5,m5,b5,E5,w5,S5,C5,D5,O5,A5,x5,T5,N5,k5={};function P5(){return G3?V3:(G3=1,V3=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}})}function B5(){if(q3)return W3;q3=1;var t=H3(),e=Function.prototype,r=e.call,n=t&&e.bind.bind(r,r);return W3=t?n:function(t){return function(){return r.apply(t,arguments)}},W3}function I5(){if(Y3)return K3;Y3=1;var t=B5(),e=t({}.toString),r=t("".slice);return K3=function(t){return r(e(t),8,-1)}}function F5(){if(J3)return X3;J3=1;var t=B5(),e=M3(),r=I5(),n=Object,o=t("".split);return X3=e(function(){return!n("z").propertyIsEnumerable(0)})?function(t){return"String"===r(t)?o(t,""):n(t)}:n}function R5(){return Q3?Z3:(Q3=1,Z3=function(t){return null==t})}function L5(){if(e5)return t5;e5=1;var t=R5(),e=TypeError;return t5=function(r){if(t(r))throw new e("Can't call method on "+r);return r}}function _5(){if(n5)return r5;n5=1;var t=F5(),e=L5();return r5=function(r){return t(e(r))}}function j5(){if(i5)return o5;i5=1;var t="object"==typeof document&&document.all;return o5=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(t){return"function"==typeof t}}function M5(){if(a5)return u5;a5=1;var t=j5();return u5=function(e){return"object"==typeof e?null!==e:t(e)}}function z5(){if(c5)return s5;c5=1;var t=N3(),e=j5();return s5=function(r,n){return arguments.length<2?(o=t[r],e(o)?o:void 0):t[r]&&t[r][n];var o},s5}function H5(){if(f5)return l5;f5=1;var t=B5();return l5=t({}.isPrototypeOf)}function $5(){if(v5)return h5;v5=1;var t,e,r=N3(),n=function(){if(p5)return d5;p5=1;var t=N3().navigator,e=t&&t.userAgent;return d5=e?String(e):""}(),o=r.process,i=r.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&&n&&(!(t=n.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=n.match(/Chrome\/(\d+)/))&&(e=+t[1]),h5=e}function U5(){if(y5)return g5;y5=1;var t=$5(),e=M3(),r=N3().String;return g5=!!Object.getOwnPropertySymbols&&!e(function(){var e=Symbol("symbol detection");return!r(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&t&&t<41})}function V5(){if(b5)return m5;b5=1;var t=U5();return m5=t&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function G5(){if(w5)return E5;w5=1;var t=z5(),e=j5(),r=H5(),n=V5(),o=Object;return E5=n?function(t){return"symbol"==typeof t}:function(n){var i=t("Symbol");return e(i)&&r(i.prototype,o(n))}}function W5(){if(C5)return S5;C5=1;var t=String;return S5=function(e){try{return t(e)}catch(t){return"Object"}}}function q5(){if(O5)return D5;O5=1;var t=j5(),e=W5(),r=TypeError;return D5=function(n){if(t(n))return n;throw new r(e(n)+" is not a function")}}function K5(){if(x5)return A5;x5=1;var t=q5(),e=R5();return A5=function(r,n){var o=r[n];return e(o)?void 0:t(o)}}var Y5,X5,J5,Z5,Q5,t8,e8,r8,n8,o8,i8,u8,a8,s8,c8,l8,f8,d8,p8,h8,v8,g8,y8,m8,b8={exports:{}};function E8(){return X5?Y5:(X5=1,Y5=!1)}function w8(){if(Z5)return J5;Z5=1;var t=N3(),e=Object.defineProperty;return J5=function(r,n){try{e(t,r,{value:n,configurable:!0,writable:!0})}catch(e){t[r]=n}return n}}function S8(){if(Q5)return b8.exports;Q5=1;var t=E8(),e=N3(),r=w8(),n="__core-js_shared__",o=b8.exports=e[n]||r(n,{});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"}),b8.exports}function C8(){if(e8)return t8;e8=1;var t=S8();return t8=function(e,r){return t[e]||(t[e]=r||{})}}function D8(){if(n8)return r8;n8=1;var t=L5(),e=Object;return r8=function(r){return e(t(r))}}function O8(){if(i8)return o8;i8=1;var t=B5(),e=D8(),r=t({}.hasOwnProperty);return o8=Object.hasOwn||function(t,n){return r(e(t),n)}}function A8(){if(a8)return u8;a8=1;var t=B5(),e=0,r=Math.random(),n=t(1.1.toString);return u8=function(t){return"Symbol("+(void 0===t?"":t)+")_"+n(++e+r,36)}}function x8(){if(c8)return s8;c8=1;var t=N3(),e=C8(),r=O8(),n=A8(),o=U5(),i=V5(),u=t.Symbol,a=e("wks"),s=i?u.for||u:u&&u.withoutSetter||n;return s8=function(t){return r(a,t)||(a[t]=o&&r(u,t)?u[t]:s("Symbol."+t)),a[t]}}function T8(){if(f8)return l8;f8=1;var t=$3(),e=M5(),r=G5(),n=K5(),o=function(){if(N5)return T5;N5=1;var t=$3(),e=j5(),r=M5(),n=TypeError;return T5=function(o,i){var u,a;if("string"===i&&e(u=o.toString)&&!r(a=t(u,o)))return a;if(e(u=o.valueOf)&&!r(a=t(u,o)))return a;if("string"!==i&&e(u=o.toString)&&!r(a=t(u,o)))return a;throw new n("Can't convert object to primitive value")}}(),i=x8(),u=TypeError,a=i("toPrimitive");return l8=function(i,s){if(!e(i)||r(i))return i;var c,l=n(i,a);if(l){if(void 0===s&&(s="default"),c=t(l,i,s),!e(c)||r(c))return c;throw new u("Can't convert object to primitive value")}return void 0===s&&(s="number"),o(i,s)}}function N8(){if(p8)return d8;p8=1;var t=T8(),e=G5();return d8=function(r){var n=t(r,"string");return e(n)?n:n+""}}function k8(){if(v8)return h8;v8=1;var t=N3(),e=M5(),r=t.document,n=e(r)&&e(r.createElement);return h8=function(t){return n?r.createElement(t):{}}}function P8(){if(y8)return g8;y8=1;var t=z3(),e=M3(),r=k8();return g8=!t&&!e(function(){return 7!==Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a})}function B8(){if(m8)return j3;m8=1;var t=z3(),e=$3(),r=function(){if(U3)return k5;U3=1;var t={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,r=e&&!t.call({1:2},1);return k5.f=r?function(t){var r=e(this,t);return!!r&&r.enumerable}:t,k5}(),n=P5(),o=_5(),i=N8(),u=O8(),a=P8(),s=Object.getOwnPropertyDescriptor;return j3.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 n(!e(r.f,t,c),t[c])},j3}var I8,F8,R8,L8,_8,j8,M8,z8={};function H8(){if(F8)return I8;F8=1;var t=z3(),e=M3();return I8=t&&e(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}function $8(){if(L8)return R8;L8=1;var t=M5(),e=String,r=TypeError;return R8=function(n){if(t(n))return n;throw new r(e(n)+" is not an object")}}function U8(){if(_8)return z8;_8=1;var t=z3(),e=P8(),r=H8(),n=$8(),o=N8(),i=TypeError,u=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s="enumerable",c="configurable",l="writable";return z8.f=t?r?function(t,e,r){if(n(t),e=o(e),n(r),"function"==typeof t&&"prototype"===e&&"value"in r&&l in r&&!r[l]){var i=a(t,e);i&&i[l]&&(t[e]=r.value,r={configurable:c in r?r[c]:i[c],enumerable:s in r?r[s]:i[s],writable:!1})}return u(t,e,r)}:u:function(t,r,a){if(n(t),r=o(r),n(a),e)try{return u(t,r,a)}catch(t){}if("get"in a||"set"in a)throw new i("Accessors not supported");return"value"in a&&(t[r]=a.value),t},z8}function V8(){if(M8)return j8;M8=1;var t=z3(),e=U8(),r=P5();return j8=t?function(t,n,o){return e.f(t,n,r(1,o))}:function(t,e,r){return t[e]=r,t}}var G8,W8,q8,K8,Y8,X8,J8,Z8,Q8,t7,e7,r7,n7,o7,i7,u7={exports:{}};function a7(){if(W8)return G8;W8=1;var t=z3(),e=O8(),r=Function.prototype,n=t&&Object.getOwnPropertyDescriptor,o=e(r,"name"),i=o&&"something"===function(){}.name,u=o&&(!t||t&&n(r,"name").configurable);return G8={EXISTS:o,PROPER:i,CONFIGURABLE:u}}function s7(){if(K8)return q8;K8=1;var t=B5(),e=j5(),r=S8(),n=t(Function.toString);return e(r.inspectSource)||(r.inspectSource=function(t){return n(t)}),q8=r.inspectSource}function c7(){if(X8)return Y8;X8=1;var t=N3(),e=j5(),r=t.WeakMap;return Y8=e(r)&&/native code/.test(String(r))}function l7(){if(Z8)return J8;Z8=1;var t=C8(),e=A8(),r=t("keys");return J8=function(t){return r[t]||(r[t]=e(t))}}function f7(){return t7?Q8:(t7=1,Q8={})}function d7(){if(r7)return e7;r7=1;var t,e,r,n=c7(),o=N3(),i=M5(),u=V8(),a=O8(),s=S8(),c=l7(),l=f7(),f="Object already initialized",d=o.TypeError,p=o.WeakMap;if(n||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)||{}},r=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]:{}},r=function(t){return a(t,v)}}return e7={set:t,get:e,has:r,enforce:function(n){return r(n)?e(n):t(n,{})},getterFor:function(t){return function(r){var n;if(!i(r)||(n=e(r)).type!==t)throw new d("Incompatible receiver, "+t+" required");return n}}}}function p7(){if(i7)return o7;i7=1;var t=j5(),e=U8(),r=function(){if(n7)return u7.exports;n7=1;var t=B5(),e=M3(),r=j5(),n=O8(),o=z3(),i=a7().CONFIGURABLE,u=s7(),a=d7(),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=u7.exports=function(t,e,r){"Symbol("===d(l(e),0,7)&&(e="["+p(l(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!n(t,"name")||i&&t.name!==e)&&(o?f(t,"name",{value:e,configurable:!0}):t.name=e),v&&r&&n(r,"arity")&&t.length!==r.arity&&f(t,"length",{value:r.arity});try{r&&n(r,"constructor")&&r.constructor?o&&f(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var u=s(t);return n(u,"source")||(u.source=h(g,"string"==typeof e?e:"")),t};return Function.prototype.toString=y(function(){return r(this)&&c(this).source||u(this)},"toString"),u7.exports}(),n=w8();return o7=function(o,i,u,a){a||(a={});var s=a.enumerable,c=void 0!==a.name?a.name:i;if(t(u)&&r(u,c,a),a.global)s?o[i]=u:n(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 h7,v7,g7,y7,m7,b7,E7,w7,S7,C7,D7,O7,A7,x7,T7,N7,k7,P7={};function B7(){if(y7)return g7;y7=1;var t=function(){if(v7)return h7;v7=1;var t=Math.ceil,e=Math.floor;return h7=Math.trunc||function(r){var n=+r;return(n>0?e:t)(n)}}();return g7=function(e){var r=+e;return r!=r||0===r?0:t(r)}}function I7(){if(w7)return E7;w7=1;var t=B7(),e=Math.min;return E7=function(r){var n=t(r);return n>0?e(n,9007199254740991):0}}function F7(){if(C7)return S7;C7=1;var t=I7();return S7=function(e){return t(e.length)}}function R7(){if(O7)return D7;O7=1;var t=_5(),e=function(){if(b7)return m7;b7=1;var t=B7(),e=Math.max,r=Math.min;return m7=function(n,o){var i=t(n);return i<0?e(i+o,0):r(i,o)}}(),r=F7(),n=function(n){return function(o,i,u){var a=t(o),s=r(a);if(0===s)return!n&&-1;var c,l=e(u,s);if(n&&i!=i){for(;s>l;)if((c=a[l++])!=c)return!0}else for(;s>l;l++)if((n||l in a)&&a[l]===i)return n||l||0;return!n&&-1}};return D7={includes:n(!0),indexOf:n(!1)}}function L7(){if(x7)return A7;x7=1;var t=B5(),e=O8(),r=_5(),n=R7().indexOf,o=f7(),i=t([].push);return A7=function(t,u){var a,s=r(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++])&&(~n(l,a)||i(l,a));return l}}function _7(){return N7?T7:(N7=1,T7=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function j7(){if(k7)return P7;k7=1;var t=L7(),e=_7().concat("length","prototype");return P7.f=Object.getOwnPropertyNames||function(r){return t(r,e)},P7}var M7,z7,H7,$7,U7,V7,G7,W7,q7,K7,Y7,X7,J7,Z7,Q7,t9,e9,r9,n9,o9,i9,u9,a9,s9,c9,l9,f9,d9,p9={};function h9(){if(U7)return $7;U7=1;var t=O8(),e=function(){if(H7)return z7;H7=1;var t=z5(),e=B5(),r=j7(),n=(M7||(M7=1,p9.f=Object.getOwnPropertySymbols),p9),o=$8(),i=e([].concat);return z7=t("Reflect","ownKeys")||function(t){var e=r.f(o(t)),u=n.f;return u?i(e,u(t)):e}}(),r=B8(),n=U8();return $7=function(o,i,u){for(var a=e(i),s=n.f,c=r.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 v9(){if(G7)return V7;G7=1;var t=M3(),e=j5(),r=/#|\.prototype\./,n=function(r,n){var s=i[o(r)];return s===a||s!==u&&(e(n)?t(n):!!n)},o=n.normalize=function(t){return String(t).replace(r,".").toLowerCase()},i=n.data={},u=n.NATIVE="N",a=n.POLYFILL="P";return V7=n}function g9(){if(q7)return W7;q7=1;var t=N3(),e=B8().f,r=V8(),n=p7(),o=w8(),i=h9(),u=v9();return W7=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)&&r(d,"sham",!0),n(c,l,d,a)}}}function y9(){if(Y7)return K7;Y7=1;var t=I5();return K7=Array.isArray||function(e){return"Array"===t(e)}}function m9(){if(J7)return X7;J7=1;var t=TypeError;return X7=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}}function b9(){if(e9)return t9;e9=1;var t={};return t[x8()("toStringTag")]="z",t9="[object z]"===String(t)}function E9(){if(n9)return r9;n9=1;var t=b9(),e=j5(),r=I5(),n=x8()("toStringTag"),o=Object,i="Arguments"===r(function(){return arguments}());return r9=t?r: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),n))?a:i?r(u):"Object"===(s=r(u))&&e(u.callee)?"Arguments":s}}function w9(){if(a9)return u9;a9=1;var t=y9(),e=function(){if(i9)return o9;i9=1;var t=B5(),e=M3(),r=j5(),n=E9(),o=z5(),i=s7(),u=function(){},a=o("Reflect","construct"),s=/^\s*(?:class|function)\b/,c=t(s.exec),l=!s.test(u),f=function(t){if(!r(t))return!1;try{return a(u,[],t),!0}catch(t){return!1}},d=function(t){if(!r(t))return!1;switch(n(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return l||!!c(s,i(t))}catch(t){return!0}};return d.sham=!0,o9=!a||e(function(){var t;return f(f.call)||!f(Object)||!f(function(){t=!0})||t})?d:f}(),r=M5(),n=x8()("species"),o=Array;return u9=function(i){var u;return t(i)&&(u=i.constructor,(e(u)&&(u===o||t(u.prototype))||r(u)&&null===(u=u[n]))&&(u=void 0)),void 0===u?o:u}}function S9(){if(c9)return s9;c9=1;var t=w9();return s9=function(e,r){return new(t(e))(0===r?0:r)}}function C9(){if(f9)return l9;f9=1;var t=M3(),e=x8(),r=$5(),n=e("species");return l9=function(e){return r>=51||!t(function(){var t=[];return(t.constructor={})[n]=function(){return{foo:1}},1!==t[e](Boolean).foo})}}!function(){if(d9)return T3;d9=1;var t=g9(),e=M3(),r=y9(),n=M5(),o=D8(),i=F7(),u=m9(),a=function(){if(Q7)return Z7;Q7=1;var t=z3(),e=U8(),r=P5();return Z7=function(n,o,i){t?e.f(n,o,r(0,i)):n[o]=i}}(),s=S9(),c=C9(),l=x8(),f=$5(),d=l("isConcatSpreadable"),p=f>=51||!e(function(){var t=[];return t[d]=!1,t.concat()[0]!==t}),h=function(t){if(!n(t))return!1;var e=t[d];return void 0!==e?!!e:r(t)};t({target:"Array",proto:!0,arity:1,forced:!p||!c("concat")},{concat:function(t){var e,r,n,c,l,f=o(this),d=s(f,0),p=0;for(e=-1,n=arguments.length;e<n;e++)if(h(l=-1===e?f:arguments[e]))for(c=i(l),u(p+c),r=0;r<c;r++,p++)r in l&&a(d,p,l[r]);else u(p+1),a(d,p++,l);return d.length=p,d}})}();var D9=function(t,e){return D9=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},D9(t,e)};function O9(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}D9(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function A9(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function x9(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)u.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u}function T9(t,e,r){if(2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError;var N9,k9,P9,B9,I9,F9,R9,L9,_9,j9,M9,z9,H9,$9,U9,V9,G9,W9,q9,K9,Y9,X9,J9,Z9,Q9,ttt,ett,rtt,ntt,ott,itt,utt,att,stt,ctt,ltt={};function ftt(){if(R9)return F9;R9=1;var t,e=$8(),r=function(){if(P9)return ltt;P9=1;var t=z3(),e=H8(),r=U8(),n=$8(),o=_5(),i=function(){if(k9)return N9;k9=1;var t=L7(),e=_7();return N9=Object.keys||function(r){return t(r,e)}}();return ltt.f=t&&!e?Object.defineProperties:function(t,e){n(t);for(var u,a=o(e),s=i(e),c=s.length,l=0;c>l;)r.f(t,u=s[l++],a[u]);return t},ltt}(),n=_7(),o=f7(),i=function(){if(I9)return B9;I9=1;var t=z5();return B9=t("document","documentElement")}(),u=k8(),a=l7(),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,r,o;h="undefined"!=typeof document?document.domain&&t?p(t):(r=u("iframe"),o="java"+c+":",r.style.display="none",i.appendChild(r),r.src=String(o),(e=r.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F):p(t);for(var a=n.length;a--;)delete h[s][n[a]];return h()};return o[l]=!0,F9=Object.create||function(t,n){var o;return null!==t?(f[s]=e(t),o=new f,f[s]=null,o[l]=t):o=h(),void 0===n?o:r.f(o,n)}}function dtt(){if(_9)return L9;_9=1;var t=x8(),e=ftt(),r=U8().f,n=t("unscopables"),o=Array.prototype;return void 0===o[n]&&r(o,n,{configurable:!0,value:e(null)}),L9=function(t){o[n][t]=!0}}function ptt(){return M9?j9:(M9=1,j9={})}function htt(){if(U9)return $9;U9=1;var t=O8(),e=j5(),r=D8(),n=l7(),o=function(){if(H9)return z9;H9=1;var t=M3();return z9=!t(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})}(),i=n("IE_PROTO"),u=Object,a=u.prototype;return $9=o?u.getPrototypeOf:function(n){var o=r(n);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 vtt(){if(G9)return V9;G9=1;var t,e,r,n=M3(),o=j5(),i=M5(),u=ftt(),a=htt(),s=p7(),c=x8(),l=E8(),f=c("iterator"),d=!1;return[].keys&&("next"in(r=[].keys())?(e=a(a(r)))!==Object.prototype&&(t=e):d=!0),!i(t)||n(function(){var e={};return t[f].call(e)!==e})?t={}:l&&(t=u(t)),o(t[f])||s(t,f,function(){return this}),V9={IteratorPrototype:t,BUGGY_SAFARI_ITERATORS:d}}function gtt(){if(q9)return W9;q9=1;var t=U8().f,e=O8(),r=x8()("toStringTag");return W9=function(n,o,i){n&&!i&&(n=n.prototype),n&&!e(n,r)&&t(n,r,{configurable:!0,value:o})}}function ytt(){if(ett)return ttt;ett=1;var t=function(){if(Q9)return Z9;Q9=1;var t=M5();return Z9=function(e){return t(e)||null===e}}(),e=String,r=TypeError;return ttt=function(n){if(t(n))return n;throw new r("Can't set "+e(n)+" as a prototype")}}function mtt(){if(ntt)return rtt;ntt=1;var t=function(){if(J9)return X9;J9=1;var t=B5(),e=q5();return X9=function(r,n,o){try{return t(e(Object.getOwnPropertyDescriptor(r,n)[o]))}catch(t){}}}(),e=M5(),r=L5(),n=ytt();return rtt=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 r(t),n(u),e(t)?(i?o(t,u):t.__proto__=u,t):t}}():void 0)}function btt(){if(itt)return ott;itt=1;var t=g9(),e=$3(),r=E8(),n=a7(),o=j5(),i=function(){if(Y9)return K9;Y9=1;var t=vtt().IteratorPrototype,e=ftt(),r=P5(),n=gtt(),o=ptt(),i=function(){return this};return K9=function(u,a,s,c){var l=a+" Iterator";return u.prototype=e(t,{next:r(+!c,s)}),n(u,l,!1,!0),o[l]=i,u}}(),u=htt(),a=mtt(),s=gtt(),c=V8(),l=p7(),f=x8(),d=ptt(),p=vtt(),h=n.PROPER,v=n.CONFIGURABLE,g=p.IteratorPrototype,y=p.BUGGY_SAFARI_ITERATORS,m=f("iterator"),b="keys",E="values",w="entries",S=function(){return this};return ott=function(n,f,p,C,D,O,A){i(p,f,C);var x,T,N,k=function(t){if(t===D&&R)return R;if(!y&&t&&t in I)return I[t];switch(t){case b:case E:case w:return function(){return new p(this,t)}}return function(){return new p(this)}},P=f+" Iterator",B=!1,I=n.prototype,F=I[m]||I["@@iterator"]||D&&I[D],R=!y&&F||k(D),L="Array"===f&&I.entries||F;if(L&&(x=u(L.call(new n)))!==Object.prototype&&x.next&&(r||u(x)===g||(a?a(x,g):o(x[m])||l(x,m,S)),s(x,P,!0,!0),r&&(d[P]=S)),h&&D===E&&F&&F.name!==E&&(!r&&v?c(I,"name",E):(B=!0,R=function(){return e(F,this)})),D)if(T={values:k(E),keys:O?R:k(b),entries:k(w)},A)for(N in T)(y||B||!(N in I))&&l(I,N,T[N]);else t({target:f,proto:!0,forced:y||B},T);return r&&!A||I[m]===R||l(I,m,R,{name:D}),d[f]=R,T}}function Ett(){return att?utt:(att=1,utt=function(t,e){return{value:t,done:e}})}function wtt(){if(ctt)return stt;ctt=1;var t=_5(),e=dtt(),r=ptt(),n=d7(),o=U8().f,i=btt(),u=Ett(),a=E8(),s=z3(),c="Array Iterator",l=n.set,f=n.getterFor(c);stt=i(Array,"Array",function(e,r){l(this,{type:c,target:t(e),index:0,kind:r})},function(){var t=f(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=null,u(void 0,!0);switch(t.kind){case"keys":return u(r,!1);case"values":return u(e[r],!1)}return u([r,e[r]],!1)},"values");var d=r.Arguments=r.Array;if(e("keys"),e("values"),e("entries"),!a&&s&&"values"!==d.name)try{o(d,"name",{value:"values"})}catch(t){}return stt}wtt();var Stt,Ctt,Dtt,Ott={};!function(){if(Dtt)return Ott;Dtt=1;var t=b9(),e=p7(),r=function(){if(Ctt)return Stt;Ctt=1;var t=b9(),e=E9();return Stt=t?{}.toString:function(){return"[object "+e(this)+"]"}}();t||e(Object.prototype,"toString",r,{unsafe:!0})}();var Att,xtt,Ttt,Ntt,ktt,Ptt={};function Btt(){if(xtt)return Att;xtt=1;var t=E9(),e=String;return Att=function(r){if("Symbol"===t(r))throw new TypeError("Cannot convert a Symbol value to a string");return e(r)}}function Itt(){if(Ntt)return Ttt;Ntt=1;var t=B5(),e=B7(),r=Btt(),n=L5(),o=t("".charAt),i=t("".charCodeAt),u=t("".slice),a=function(t){return function(a,s){var c,l,f=r(n(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 Ttt={codeAt:a(!1),charAt:a(!0)}}!function(){if(ktt)return Ptt;ktt=1;var t=Itt().charAt,e=Btt(),r=d7(),n=btt(),o=Ett(),i="String Iterator",u=r.set,a=r.getterFor(i);n(String,"String",function(t){u(this,{type:i,string:e(t),index:0})},function(){var e,r=a(this),n=r.string,i=r.index;return i>=n.length?o(void 0,!0):(e=t(n,i),r.index+=e.length,o(e,!1))})}();var Ftt,Rtt,Ltt,_tt,jtt={};function Mtt(){if(Rtt)return Ftt;Rtt=1;var t=M3();return Ftt=!t(function(){return Object.isExtensible(Object.preventExtensions({}))})}function ztt(){if(_tt)return Ltt;_tt=1;var t=p7();return Ltt=function(e,r,n){for(var o in r)t(e,o,r[o],n);return e}}var Htt,$tt,Utt,Vtt,Gtt,Wtt,qtt,Ktt,Ytt,Xtt,Jtt,Ztt,Qtt,tet,eet,ret,net,oet,iet,uet,aet,set,cet,fet,det,pet,het,vet,get,yet,met,bet,Eet,wet,Cet,Det,Oet={exports:{}},Aet={};function xet(){if(Utt)return Aet;Utt=1;var t=I5(),e=_5(),r=j7().f,n=function(){if($tt)return Htt;$tt=1;var t=B5();return Htt=t([].slice)}(),o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];return Aet.f=function(i){return o&&"Window"===t(i)?function(t){try{return r(t)}catch(t){return n(o)}}(i):r(e(i))},Aet}function Tet(){if(Ktt)return Oet.exports;Ktt=1;var t=g9(),e=B5(),r=f7(),n=M5(),o=O8(),i=U8().f,u=j7(),a=xet(),s=function(){if(qtt)return Wtt;qtt=1;var t=M3(),e=M5(),r=I5(),n=function(){if(Gtt)return Vtt;Gtt=1;var t=M3();return Vtt=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 Wtt=i||n?function(t){return!!e(t)&&(!n||"ArrayBuffer"!==r(t))&&(!o||o(t))}:o}(),c=A8(),l=Mtt(),f=!1,d=c("meta"),p=0,h=function(t){i(t,d,{value:{objectID:"O"+p++,weakData:{}}})},v=Oet.exports={enable:function(){v.enable=function(){},f=!0;var r=u.f,n=e([].splice),o={};o[d]=1,r(o).length&&(u.f=function(t){for(var e=r(t),o=0,i=e.length;o<i;o++)if(e[o]===d){n(e,o,1);break}return e},t({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:a.f}))},fastKey:function(t,e){if(!n(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 r[d]=!0,Oet.exports}function Net(){if(Ztt)return Jtt;Ztt=1;var t=function(){if(Xtt)return Ytt;Xtt=1;var t=I5(),e=B5();return Ytt=function(r){if("Function"===t(r))return e(r)}}(),e=q5(),r=H3(),n=t(t.bind);return Jtt=function(t,o){return e(t),void 0===o?t:r?n(t,o):function(){return t.apply(o,arguments)}},Jtt}function ket(){if(ret)return eet;ret=1;var t=E9(),e=K5(),r=R5(),n=ptt(),o=x8()("iterator");return eet=function(i){if(!r(i))return e(i,o)||e(i,"@@iterator")||n[t(i)]}}function Pet(){if(set)return aet;set=1;var t=Net(),e=$3(),r=$8(),n=W5(),o=function(){if(tet)return Qtt;tet=1;var t=x8(),e=ptt(),r=t("iterator"),n=Array.prototype;return Qtt=function(t){return void 0!==t&&(e.Array===t||n[r]===t)}}(),i=F7(),u=H5(),a=function(){if(oet)return net;oet=1;var t=$3(),e=q5(),r=$8(),n=W5(),o=ket(),i=TypeError;return net=function(u,a){var s=arguments.length<2?o(u):a;if(e(s))return r(t(s,u));throw new i(n(u)+" is not iterable")},net}(),s=ket(),c=function(){if(uet)return iet;uet=1;var t=$3(),e=$8(),r=K5();return iet=function(n,o,i){var u,a;e(n);try{if(!(u=r(n,"return"))){if("throw"===o)throw i;return i}u=t(u,n)}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 aet=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)},k=function(t){return D?(r(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(n(p)+" is not iterable");if(o(y)){for(m=0,b=i(p);b>m;m++)if((E=k(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=k(S.value)}catch(t){c(g,"throw",t)}if("object"==typeof E&&E&&u(d,E))return E}return new f(!1)}}function Bet(){if(fet)return cet;fet=1;var t=H5(),e=TypeError;return cet=function(r,n){if(t(n,r))return r;throw new e("Incorrect invocation")}}function Iet(){if(yet)return get;yet=1;var t=g9(),e=N3(),r=B5(),n=v9(),o=p7(),i=Tet(),u=Pet(),a=Bet(),s=j5(),c=R5(),l=M5(),f=M3(),d=function(){if(pet)return det;pet=1;var t=x8()("iterator"),e=!1;try{var r=0,n={next:function(){return{done:!!r++}},return:function(){e=!0}};n[t]=function(){return this},Array.from(n,function(){throw 2})}catch(t){}return det=function(r,n){try{if(!n&&!e)return!1}catch(t){return!1}var o=!1;try{var i={};i[t]=function(){return{next:function(){return{done:o=!0}}}},r(i)}catch(t){}return o}}(),p=gtt(),h=function(){if(vet)return het;vet=1;var t=j5(),e=M5(),r=mtt();return het=function(n,o,i){var u,a;return r&&t(u=o.constructor)&&u!==i&&e(a=u.prototype)&&a!==i.prototype&&r(n,a),n}}();return get=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=r(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,r){return e(this,0===t?0:t,r),this})};if(n(v,!s(w)||!(b||S.forEach&&!f(function(){(new w).entries().next()}))))C=y.getConstructor(g,v,m,E),i.enable();else if(n(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)}),k=!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 r=h(new w,t,C);return c(e)||u(e,r[E],{that:r,AS_ENTRIES:m}),r})).prototype=S,S.constructor=C),(T||k)&&(O("delete"),O("has"),m&&O("get")),(k||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 Fet(){if(bet)return met;bet=1;var t=Net(),e=B5(),r=F5(),n=D8(),o=F7(),i=S9(),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=n(h),w=r(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 met={forEach:a(0),map:a(1),filter:a(2),some:a(3),every:a(4),find:a(5),findIndex:a(6),filterReject:a(7)}}Det||(Det=1,function(){if(Cet)return jtt;Cet=1;var t,e=Mtt(),r=N3(),n=B5(),o=ztt(),i=Tet(),u=Iet(),a=function(){if(wet)return Eet;wet=1;var t=B5(),e=ztt(),r=Tet().getWeakData,n=Bet(),o=$8(),i=R5(),u=M5(),a=Pet(),s=Fet(),c=O8(),l=d7(),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 r=b(this,t);r?r[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}},Eet={getConstructor:function(t,s,l,p){var h=t(function(t,e){n(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,n){var i=m(t),u=r(o(e),!0);return!0===u?y(i).set(e,n):u[i.id]=n,t};return e(v,{delete:function(t){var e=m(this);if(!u(t))return!1;var n=r(t);return!0===n?y(e).delete(t):n&&c(n,e.id)&&delete n[e.id]},has:function(t){var e=m(this);if(!u(t))return!1;var n=r(t);return!0===n?y(e).has(t):n&&c(n,e.id)}}),e(v,l?{get:function(t){var e=m(this);if(u(t)){var n=r(t);if(!0===n)return y(e).get(t);if(n)return n[e.id]}},set:function(t,e){return b(this,t,e)}}:{add:function(t){return b(this,t,!0)}}),h}}}(),s=M5(),c=d7().enforce,l=M3(),f=c7(),d=Object,p=Array.isArray,h=d.isExtensible,v=d.isFrozen,g=d.isSealed,y=d.freeze,m=d.seal,b=!r.ActiveXObject&&"ActiveXObject"in r,E=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},w=u("WeakMap",E,a),S=w.prototype,C=n(S.set);if(f)if(b){t=a.getConstructor(E,"WeakMap",!0),i.enable();var D=n(S.delete),O=n(S.has),A=n(S.get);o(S,{delete:function(e){if(s(e)&&!h(e)){var r=c(this);return r.frozen||(r.frozen=new t),D(this,e)||r.frozen.delete(e)}return D(this,e)},has:function(e){if(s(e)&&!h(e)){var r=c(this);return r.frozen||(r.frozen=new t),O(this,e)||r.frozen.has(e)}return O(this,e)},get:function(e){if(s(e)&&!h(e)){var r=c(this);return r.frozen||(r.frozen=new t),O(this,e)?A(this,e):r.frozen.get(e)}return A(this,e)},set:function(e,r){if(s(e)&&!h(e)){var n=c(this);n.frozen||(n.frozen=new t),O(this,e)?C(this,e,r):n.frozen.set(e,r)}else C(this,e,r);return this}})}else e&&l(function(){var t=y([]);return C(new w,t,1),!v(t)})&&o(S,{set:function(t,e){var r;return p(t)&&(v(t)?r=y:g(t)&&(r=m)),C(this,t,e),r&&r(t),this}})}());var Ret,Let,_et,jet,Met,zet={};!function(){if(Met)return zet;Met=1;var t=N3(),e=Let?Ret:(Let=1,Ret={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}),r=function(){if(jet)return _et;jet=1;var t=k8()("span").classList,e=t&&t.constructor&&t.constructor.prototype;return _et=e===Object.prototype?void 0:e}(),n=wtt(),o=V8(),i=gtt(),u=x8()("iterator"),a=n.values,s=function(t,r){if(t){if(t[u]!==a)try{o(t,u,a)}catch(e){t[u]=a}if(i(t,r,!0),e[r])for(var s in n)if(t[s]!==n[s])try{o(t,s,n[s])}catch(e){t[s]=n[s]}}};for(var c in e)s(t[c]&&t[c].prototype,c);s(r,"DOMTokenList")}();var Het=new WeakMap;function $et(t){var e,r=t.children||[],n=r.length;if(0===n)return"";for(var o=0;o<n&&!e;o+=1){var i=r[o];wv.isText(i)&&(e=i)}return null==e?"":e.color||""}function Uet(t,e,r){for(var n=e.type,o=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}(e,["type"]),i=void 0!==r?r:o.level||0,u=CB.findPath(t,e),a=u;;){if(0===a.length||0===u[u.length-1])return null;a=ov.previous(a);var s=Kh.node(t,a);if(!s)return null;var c=x9(s,1)[0],l=c.level,f=void 0===l?0:l;if(CB.getNodeType(c)!==n)return null;if(f===i)return c}}function Vet(t,e,r){var n=Uet(t,e,r);return!!n&&n.ordered===e.ordered}var Get,Wet=[],qet={type:"list-item",elemToHtml:function(t,e){var r="",n="",o=t.ordered,i=void 0!==o&&o?"ol":"ul",u=function(t){var e=Het.get(t);if(null==e)return 0;var r=t,n=r.type,o=r.ordered,i=void 0!==o&&o,u=r.level,a=void 0===u?0:u,s=CB.findPath(e,t);if(0===s[0])return a+1;var c=ov.previous(s),l=Kh.node(e,c);if(!l)return 0;var f=x9(l,1)[0];if(CB.getNodeType(f)!==n)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?Vet(e,t)?0:1:g===a?h===i?0:1:0}(t);if(u>0)for(var a=0;a<u;a+=1)r+="<".concat(i,">"),Wet.push(i);var s=function(t){var e=Het.get(t);if(null==e)return 0;var r=t,n=r.type,o=r.ordered,i=void 0!==o&&o,u=r.level,a=void 0===u?0:u,s=CB.findPath(e,t);if(s[0]===e.children.length-1)return a+1;var c=ov.next(s),l=Kh.node(e,c);if(!l)return 0;var f=x9(l,1)[0];if(CB.getNodeType(f)!==n)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?Vet(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=Wet.pop();n+="</".concat(c,">")}var l=$et(t),f=l?' style="color:'.concat(l,'"'):"";return{html:"<li".concat(f,">").concat(e,"</li>"),prefix:r,suffix:n}}},Ket={};!function(){if(Get)return Ket;Get=1;var t=g9(),e=R7().includes,r=M3(),n=dtt();t({target:"Array",proto:!0,forced:r(function(){return!Array(1).includes()})},{includes:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}}),n("includes")}();var Yet,Xet,Jet,Zet,Qet,trt,ert,rrt,nrt,ort,irt,urt={};function art(){if(Xet)return Yet;Xet=1;var t=$8();return Yet=function(){var e=t(this),r="";return e.hasIndices&&(r+="d"),e.global&&(r+="g"),e.ignoreCase&&(r+="i"),e.multiline&&(r+="m"),e.dotAll&&(r+="s"),e.unicode&&(r+="u"),e.unicodeSets&&(r+="v"),e.sticky&&(r+="y"),r}}function srt(){if(ort)return nrt;ort=1;var t,e,r=$3(),n=B5(),o=Btt(),i=art(),u=function(){if(Zet)return Jet;Zet=1;var t=M3(),e=N3().RegExp,r=t(function(){var t=e("a","y");return t.lastIndex=2,null!==t.exec("abcd")}),n=r||t(function(){return!e("a","y").sticky}),o=r||t(function(){var t=e("^r","gy");return t.lastIndex=2,null!==t.exec("str")});return Jet={BROKEN_CARET:o,MISSED_STICKY:n,UNSUPPORTED_Y:r}}(),a=C8(),s=ftt(),c=d7().get,l=function(){if(trt)return Qet;trt=1;var t=M3(),e=N3().RegExp;return Qet=t(function(){var t=e(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})}(),f=function(){if(rrt)return ert;rrt=1;var t=M3(),e=N3().RegExp;return ert=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=n("".charAt),g=n("".indexOf),y=n("".replace),m=n("".slice),b=(e=/b*/g,r(p,t=/a/,"a"),r(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,n,u,a,l,f,S,C=this,D=c(C),O=o(t),A=D.raw;if(A)return A.lastIndex=C.lastIndex,e=r(h,A,O),C.lastIndex=A.lastIndex,e;var x=D.groups,T=E&&C.sticky,N=r(i,C),k=C.source,P=0,B=O;if(T&&(N=y(N,"y",""),-1===g(N,"g")&&(N+="g"),B=m(O,C.lastIndex),C.lastIndex>0&&(!C.multiline||C.multiline&&"\n"!==v(O,C.lastIndex-1))&&(k="(?: "+k+")",B=" "+B,P++),n=new RegExp("^(?:"+k+")",N)),w&&(n=new RegExp("^"+k+"$(?!\\s)",N)),b&&(u=C.lastIndex),a=r(p,T?n:C,B),T?a?(a.input=m(a.input,P),a[0]=m(a[0],P),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&&r(d,a[0],n,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}),nrt=h}function crt(){if(irt)return urt;irt=1;var t=g9(),e=srt();return t({target:"RegExp",proto:!0,forced:/./.exec!==e},{exec:e}),urt}crt();var lrt,frt=function(){function t(){this.type="list-item",this.tag="button"}return t.prototype.getListNode=function(t){var e=this.type;return CB.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 r=e.ordered;return(void 0!==r&&r)===this.ordered},t.prototype.isDisabled=function(t){return null==t.selection||!!CB.getSelectedElems(t).some(function(e){if(Kh.isVoid(t,e)&&Kh.isBlock(t,e))return!0;var r=e.type;return!!["pre","code","table"].includes(r)})},t.prototype.exec=function(t,e){this.isActive(t)?zv.setNodes(t,{type:"paragraph",ordered:void 0,level:void 0}):zv.setNodes(t,{type:"list-item",ordered:this.ordered,indent:void 0})},t}(),drt=function(t){function e(){var e=t.apply(this,T9([],x9(arguments),!1))||this;return e.ordered=!1,e.title=LF("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 O9(e,t),e}(frt),prt=function(t){function e(){var e=t.apply(this,T9([],x9(arguments),!1))||this;return e.ordered=!0,e.title=LF("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 O9(e,t),e}(frt),hrt={key:"bulletedList",factory:function(){return new drt}},vrt={key:"numberedList",factory:function(){return new prt}},grt={};!function(){if(lrt)return grt;lrt=1;var t=g9(),e=Fet().filter;t({target:"Array",proto:!0,forced:!C9()("filter")},{filter:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}})}();var yrt,mrt,brt,Ert,wrt={};!function(){if(brt)return wrt;brt=1;var t=g9(),e=function(){if(mrt)return yrt;mrt=1;var t=y9(),e=F7(),r=m9(),n=Net(),o=function(i,u,a,s,c,l,f,d){for(var p,h,v=c,g=0,y=!!f&&n(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):(r(v+1),i[v]=p),v++),g++;return v};return yrt=o}(),r=D8(),n=F7(),o=B7(),i=S9();t({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,u=r(this),a=n(u),s=i(u,0);return s.length=e(s,u,u,a,0,void 0===t?1:o(t)),s}})}(),Ert||(Ert=1,dtt()("flat"));var Srt,Crt,Drt,Ort,Art,xrt,Trt,Nrt,krt,Prt,Brt,Irt,Frt,Rrt,Lrt,_rt={};!function(){if(Lrt)return _rt;Lrt=1;var t=function(){if(Crt)return Srt;Crt=1;var t=H3(),e=Function.prototype,r=e.apply,n=e.call;return Srt="object"==typeof Reflect&&Reflect.apply||(t?n.bind(r):function(){return n.apply(r,arguments)}),Srt}(),e=$3(),r=B5(),n=function(){if(Ort)return Drt;Ort=1,crt();var t=$3(),e=p7(),r=srt(),n=M3(),o=x8(),i=V8(),u=o("species"),a=RegExp.prototype;return Drt=function(s,c,l,f){var d=o(s),p=!n(function(){var t={};return t[d]=function(){return 7},7!==""[s](t)}),h=p&&!n(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,n,o,i,u){var s=n.exec;return s===r||s===a.exec?p&&!u?{done:!0,value:t(v,n,o,i)}:{done:!0,value:t(e,o,n,i)}:{done:!1}});e(String.prototype,s,g[0]),e(a,d,g[1])}f&&i(a[d],"sham",!0)}}(),o=M3(),i=$8(),u=j5(),a=M5(),s=B7(),c=I7(),l=Btt(),f=L5(),d=function(){if(xrt)return Art;xrt=1;var t=Itt().charAt;return Art=function(e,r,n){return r+(n?t(e,r).length:1)}}(),p=K5(),h=function(){if(Nrt)return Trt;Nrt=1;var t=B5(),e=D8(),r=Math.floor,n=t("".charAt),o=t("".replace),i=t("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,a=/\$([$&'`]|\d{1,2})/g;return Trt=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(n(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=r(a/10);return 0===d?e:d<=h?void 0===l[d-1]?n(o,1):l[d-1]+n(o,1):e}u=l[a-1]}return void 0===u?"":u})}}(),v=function(){if(Irt)return Brt;Irt=1;var t=$3(),e=O8(),r=H5(),n=function(){if(Prt)return krt;Prt=1;var t=N3(),e=M3(),r=t.RegExp,n=!e(function(){var t=!0;try{r(".","d")}catch(e){t=!1}var e={},n="",o=t?"dgimsy":"gimsy",i=function(t,r){Object.defineProperty(e,t,{get:function(){return n+=r,!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(r.prototype,"flags").get.call(e)!==o||n!==o});return krt={correct:n}}(),o=art(),i=RegExp.prototype;return Brt=n.correct?function(t){return t.flags}:function(u){return n.correct||!r(i,u)||e(u,"flags")?u.flags:t(o,u)}}(),g=function(){if(Rrt)return Frt;Rrt=1;var t=$3(),e=$8(),r=j5(),n=I5(),o=srt(),i=TypeError;return Frt=function(u,a){var s=u.exec;if(r(s)){var c=t(s,u,a);return null!==c&&e(c),c}if("RegExp"===n(u))return t(o,u,a);throw new i("RegExp#exec called on incompatible receiver")}}(),y=x8()("replace"),m=Math.max,b=Math.min,E=r([].concat),w=r([].push),S=r("".indexOf),C=r("".slice),D=function(t){return void 0===t?t:String(t)},O="$0"==="a".replace(/./,"$0"),A=!!/./[y]&&""===/./[y]("a","$0");n("replace",function(r,n,o){var O=A?"$":"$0";return[function(t,r){var o=f(this),i=a(t)?p(t,y):void 0;return i?e(i,t,o,r):e(n,l(o),t,r)},function(e,r){var a=i(this),f=l(e);if("string"==typeof r&&-1===S(r,O)&&-1===S(r,"$<")){var p=o(n,a,f,r);if(p.done)return p.value}var y=u(r);y||(r=l(r));var A,x=l(v(a)),T=-1!==S(x,"g");T&&(A=-1!==S(x,"u"),a.lastIndex=0);for(var N,k=[];null!==(N=g(a,f))&&(w(k,N),T);)""===l(N[0])&&(a.lastIndex=d(f,c(a.lastIndex),A));for(var P="",B=0,I=0;I<k.length;I++){for(var F,R=l((N=k[I])[0]),L=m(b(s(N.index),f.length),0),_=[],j=1;j<N.length;j++)w(_,D(N[j]));var M=N.groups;if(y){var z=E([R],_,L,f);void 0!==M&&w(z,M),F=l(t(r,void 0,z))}else F=h(R,f,L,_,M,r);L>=B&&(P+=C(f,B,L)+F,B=L+R.length)}return P+C(f,B)}]},!!o(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})||!O||A)}();var jrt,Mrt,zrt={};function Hrt(t){return t.length?t[0].tagName.toLowerCase():""}function $rt(t){return Kh.nodes(t,{at:t.selection||void 0,match:function(e){return 1===CB.findPath(t,e).length}})}Mrt||(Mrt=1,function(){if(jrt)return zrt;jrt=1;var t=g9(),e=N3();t({global:!0,forced:e.globalThis!==e},{globalThis:e})}()),Ag&&(og.fn.append=Ag),sg&&(og.fn.attr=sg),Tg&&(og.fn.parent=Tg);var Urt={renderElems:[{type:"list-item",renderElem:function(t,e,r){Het.set(t,r);var n=t,o=n.level,i=void 0===o?0:o,u=n.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 r=e,n=r.type,o=r.level,i=void 0===o?0:o,u=r.ordered,a=void 0!==u&&u,s=1,c=e,l=CB.findPath(t,c);if(0===l[0])return 1;for(;l[0]>0;){var f=ov.previous(l),d=Kh.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!==n)break;if(v<i)break;if(v===i){if(y!==a)break;s+=1}c=p,l=f}return s}(r,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 Ry("div",{style:s},Ry("span",{contentEditable:!1,style:{marginRight:"0.5em",color:$et(t)},"data-w-e-reserve":!0},c),Ry("span",{style:{flex:"1",wordBreak:"break-word"}},e))}}],editorPlugin:function(t){var e=t.deleteBackward,r=t.handleTab,n=t.normalizeNode,o=t.insertBreak,i=t;return i.insertBreak=function(){var e=x9(Kh.nodes(t,{match:function(t){return CB.checkNodeType(t,"list-item")},universal:!0}),1)[0];return e?""!==e[0].children[0].text?o():void zv.setNodes(i,{type:"paragraph",ordered:void 0,level:void 0}):o()},i.deleteBackward=function(r){var n=i.selection;if(null!=n)if(dv.isExpanded(n))e(r);else{var o=CB.getSelectedNodeByType(i,"list-item");if(null!=o)if(0!==n.focus.offset)e(r);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=Uet(t,o,s-1);f&&f.ordered!==l?zv.setNodes(i,{level:s-1,ordered:!l}):zv.setNodes(i,{level:s-1})}else zv.setNodes(i,{type:"paragraph",ordered:void 0,level:void 0})}else e(r)}else e(r)},i.handleTab=function(){var t,e,n,o,u=i.selection;if(null!=u){if(dv.isCollapsed(u)){var a=CB.getSelectedNodeByType(i,"list-item");if(null==a)return void r();if(0===u.focus.offset){var s=a.level,c=void 0===s?0:s;return void zv.setNodes(i,{level:c+1})}}if(dv.isExpanded(u)){var l=0,f=!1;try{for(var d=A9($rt(i)),p=d.next();!p.done;p=d.next()){var h=x9(p.value,1)[0];"list-item"===CB.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 r();try{for(var v=A9($rt(i)),g=v.next();!g.done;g=v.next()){var y=x9(g.value,2),m=(h=y[0],y[1]),b=h.level;c=void 0===b?0:b,zv.setNodes(i,{level:c+1},{at:m})}}catch(t){n={error:t}}finally{try{g&&!g.done&&(o=v.return)&&o.call(v)}finally{if(n)throw n.error}}}else r()}else r()},i.normalizeNode=function(t){var e=x9(t,2),r=e[0],o=e[1],u=CB.getNodeType(r);return"bulleted-list"!==u&&"numbered-list"!==u||zv.unwrapNodes(i,{at:o}),n([r,o])},i},menus:[hrt,vrt],elemsToHtml:[qet],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(t,e,r){return e.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(t,e,r){var n=og(t);0===(e=e.filter(function(t){return!!wv.isText(t)||!!r.isInline(t)})).length&&(e=[{text:n.text().replace(/\s+/gm," ")}]);var o=function(t){return"ol"===Hrt(t.parent())}(n),i=function(t){for(var e=0,r=t.parent(),n=Hrt(r);"ul"===n||"ol"===n;)n=Hrt(r=r.parent()),e+=1;return e-1}(n);return{type:"list-item",ordered:o,level:i,children:e}}}]};BF("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"}}),BF("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 Vrt,Grt,Wrt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},qrt={};function Krt(){if(Grt)return Vrt;Grt=1;var t=function(t){return t&&t.Math===Math&&t};return Vrt=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof Wrt&&Wrt)||t("object"==typeof Vrt&&Vrt)||function(){return this}()||Function("return this")()}var Yrt,Xrt,Jrt,Zrt,Qrt,tnt,ent,rnt,nnt={};function ont(){return Xrt?Yrt:(Xrt=1,Yrt=function(t){try{return!!t()}catch(t){return!0}})}function int(){if(Zrt)return Jrt;Zrt=1;var t=ont();return Jrt=!t(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function unt(){if(tnt)return Qrt;tnt=1;var t=ont();return Qrt=!t(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})}function ant(){if(rnt)return ent;rnt=1;var t=unt(),e=Function.prototype.call;return ent=t?e.bind(e):function(){return e.apply(e,arguments)},ent}var snt,cnt,lnt,fnt,dnt,pnt,hnt,vnt,gnt,ynt,mnt,bnt,Ent,wnt,Snt,Cnt,Dnt,Ont,Ant,xnt,Tnt,Nnt,knt,Pnt,Bnt,Int,Fnt,Rnt,Lnt,_nt,jnt,Mnt,znt,Hnt,$nt,Unt,Vnt,Gnt,Wnt,qnt,Knt,Ynt={};function Xnt(){if(snt)return Ynt;snt=1;var t={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,r=e&&!t.call({1:2},1);return Ynt.f=r?function(t){var r=e(this,t);return!!r&&r.enumerable}:t,Ynt}function Jnt(){return lnt?cnt:(lnt=1,cnt=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}})}function Znt(){if(dnt)return fnt;dnt=1;var t=unt(),e=Function.prototype,r=e.call,n=t&&e.bind.bind(r,r);return fnt=t?n:function(t){return function(){return r.apply(t,arguments)}},fnt}function Qnt(){if(hnt)return pnt;hnt=1;var t=Znt(),e=t({}.toString),r=t("".slice);return pnt=function(t){return r(e(t),8,-1)}}function tot(){if(gnt)return vnt;gnt=1;var t=Znt(),e=ont(),r=Qnt(),n=Object,o=t("".split);return vnt=e(function(){return!n("z").propertyIsEnumerable(0)})?function(t){return"String"===r(t)?o(t,""):n(t)}:n}function eot(){return mnt?ynt:(mnt=1,ynt=function(t){return null==t})}function rot(){if(Ent)return bnt;Ent=1;var t=eot(),e=TypeError;return bnt=function(r){if(t(r))throw new e("Can't call method on "+r);return r}}function not(){if(Snt)return wnt;Snt=1;var t=tot(),e=rot();return wnt=function(r){return t(e(r))}}function oot(){if(Dnt)return Cnt;Dnt=1;var t="object"==typeof document&&document.all;return Cnt=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(t){return"function"==typeof t}}function iot(){if(Ant)return Ont;Ant=1;var t=oot();return Ont=function(e){return"object"==typeof e?null!==e:t(e)}}function uot(){if(Tnt)return xnt;Tnt=1;var t=Krt(),e=oot();return xnt=function(r,n){return arguments.length<2?(o=t[r],e(o)?o:void 0):t[r]&&t[r][n];var o},xnt}function aot(){if(knt)return Nnt;knt=1;var t=Znt();return Nnt=t({}.isPrototypeOf)}function sot(){if(Bnt)return Pnt;Bnt=1;var t=Krt().navigator,e=t&&t.userAgent;return Pnt=e?String(e):""}function cot(){if(Fnt)return Int;Fnt=1;var t,e,r=Krt(),n=sot(),o=r.process,i=r.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&&n&&(!(t=n.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=n.match(/Chrome\/(\d+)/))&&(e=+t[1]),Int=e}function lot(){if(Lnt)return Rnt;Lnt=1;var t=cot(),e=ont(),r=Krt().String;return Rnt=!!Object.getOwnPropertySymbols&&!e(function(){var e=Symbol("symbol detection");return!r(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&t&&t<41})}function fot(){if(jnt)return _nt;jnt=1;var t=lot();return _nt=t&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function dot(){if(znt)return Mnt;znt=1;var t=uot(),e=oot(),r=aot(),n=fot(),o=Object;return Mnt=n?function(t){return"symbol"==typeof t}:function(n){var i=t("Symbol");return e(i)&&r(i.prototype,o(n))}}function pot(){if($nt)return Hnt;$nt=1;var t=String;return Hnt=function(e){try{return t(e)}catch(t){return"Object"}}}function hot(){if(Vnt)return Unt;Vnt=1;var t=oot(),e=pot(),r=TypeError;return Unt=function(n){if(t(n))return n;throw new r(e(n)+" is not a function")}}function vot(){if(Wnt)return Gnt;Wnt=1;var t=hot(),e=eot();return Gnt=function(r,n){var o=r[n];return e(o)?void 0:t(o)}}var got,yot,mot,bot,Eot,wot,Sot,Cot,Dot,Oot,Aot,xot,Tot,Not,kot,Pot,Bot,Iot,Fot,Rot,Lot,_ot,jot,Mot,zot={exports:{}};function Hot(){return yot?got:(yot=1,got=!1)}function $ot(){if(bot)return mot;bot=1;var t=Krt(),e=Object.defineProperty;return mot=function(r,n){try{e(t,r,{value:n,configurable:!0,writable:!0})}catch(e){t[r]=n}return n}}function Uot(){if(Eot)return zot.exports;Eot=1;var t=Hot(),e=Krt(),r=$ot(),n="__core-js_shared__",o=zot.exports=e[n]||r(n,{});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"}),zot.exports}function Vot(){if(Sot)return wot;Sot=1;var t=Uot();return wot=function(e,r){return t[e]||(t[e]=r||{})}}function Got(){if(Dot)return Cot;Dot=1;var t=rot(),e=Object;return Cot=function(r){return e(t(r))}}function Wot(){if(Aot)return Oot;Aot=1;var t=Znt(),e=Got(),r=t({}.hasOwnProperty);return Oot=Object.hasOwn||function(t,n){return r(e(t),n)}}function qot(){if(Tot)return xot;Tot=1;var t=Znt(),e=0,r=Math.random(),n=t(1.1.toString);return xot=function(t){return"Symbol("+(void 0===t?"":t)+")_"+n(++e+r,36)}}function Kot(){if(kot)return Not;kot=1;var t=Krt(),e=Vot(),r=Wot(),n=qot(),o=lot(),i=fot(),u=t.Symbol,a=e("wks"),s=i?u.for||u:u&&u.withoutSetter||n;return Not=function(t){return r(a,t)||(a[t]=o&&r(u,t)?u[t]:s("Symbol."+t)),a[t]}}function Yot(){if(Bot)return Pot;Bot=1;var t=ant(),e=iot(),r=dot(),n=vot(),o=function(){if(Knt)return qnt;Knt=1;var t=ant(),e=oot(),r=iot(),n=TypeError;return qnt=function(o,i){var u,a;if("string"===i&&e(u=o.toString)&&!r(a=t(u,o)))return a;if(e(u=o.valueOf)&&!r(a=t(u,o)))return a;if("string"!==i&&e(u=o.toString)&&!r(a=t(u,o)))return a;throw new n("Can't convert object to primitive value")},qnt}(),i=Kot(),u=TypeError,a=i("toPrimitive");return Pot=function(i,s){if(!e(i)||r(i))return i;var c,l=n(i,a);if(l){if(void 0===s&&(s="default"),c=t(l,i,s),!e(c)||r(c))return c;throw new u("Can't convert object to primitive value")}return void 0===s&&(s="number"),o(i,s)}}function Xot(){if(Fot)return Iot;Fot=1;var t=Yot(),e=dot();return Iot=function(r){var n=t(r,"string");return e(n)?n:n+""}}function Jot(){if(Lot)return Rot;Lot=1;var t=Krt(),e=iot(),r=t.document,n=e(r)&&e(r.createElement);return Rot=function(t){return n?r.createElement(t):{}}}function Zot(){if(jot)return _ot;jot=1;var t=int(),e=ont(),r=Jot();return _ot=!t&&!e(function(){return 7!==Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a})}function Qot(){if(Mot)return nnt;Mot=1;var t=int(),e=ant(),r=Xnt(),n=Jnt(),o=not(),i=Xot(),u=Wot(),a=Zot(),s=Object.getOwnPropertyDescriptor;return nnt.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 n(!e(r.f,t,c),t[c])},nnt}var tit,eit,rit,nit,oit,iit,uit,ait={};function sit(){if(eit)return tit;eit=1;var t=int(),e=ont();return tit=t&&e(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}function cit(){if(nit)return rit;nit=1;var t=iot(),e=String,r=TypeError;return rit=function(n){if(t(n))return n;throw new r(e(n)+" is not an object")}}function lit(){if(oit)return ait;oit=1;var t=int(),e=Zot(),r=sit(),n=cit(),o=Xot(),i=TypeError,u=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s="enumerable",c="configurable",l="writable";return ait.f=t?r?function(t,e,r){if(n(t),e=o(e),n(r),"function"==typeof t&&"prototype"===e&&"value"in r&&l in r&&!r[l]){var i=a(t,e);i&&i[l]&&(t[e]=r.value,r={configurable:c in r?r[c]:i[c],enumerable:s in r?r[s]:i[s],writable:!1})}return u(t,e,r)}:u:function(t,r,a){if(n(t),r=o(r),n(a),e)try{return u(t,r,a)}catch(t){}if("get"in a||"set"in a)throw new i("Accessors not supported");return"value"in a&&(t[r]=a.value),t},ait}function fit(){if(uit)return iit;uit=1;var t=int(),e=lit(),r=Jnt();return iit=t?function(t,n,o){return e.f(t,n,r(1,o))}:function(t,e,r){return t[e]=r,t}}var dit,pit,hit,vit,git,yit,mit,bit,Eit,wit,Sit,Cit,Dit,Oit,Ait,xit={exports:{}};function Tit(){if(pit)return dit;pit=1;var t=int(),e=Wot(),r=Function.prototype,n=t&&Object.getOwnPropertyDescriptor,o=e(r,"name"),i=o&&"something"===function(){}.name,u=o&&(!t||t&&n(r,"name").configurable);return dit={EXISTS:o,PROPER:i,CONFIGURABLE:u}}function Nit(){if(vit)return hit;vit=1;var t=Znt(),e=oot(),r=Uot(),n=t(Function.toString);return e(r.inspectSource)||(r.inspectSource=function(t){return n(t)}),hit=r.inspectSource}function kit(){if(yit)return git;yit=1;var t=Krt(),e=oot(),r=t.WeakMap;return git=e(r)&&/native code/.test(String(r))}function Pit(){if(bit)return mit;bit=1;var t=Vot(),e=qot(),r=t("keys");return mit=function(t){return r[t]||(r[t]=e(t))}}function Bit(){return wit?Eit:(wit=1,Eit={})}function Iit(){if(Cit)return Sit;Cit=1;var t,e,r,n=kit(),o=Krt(),i=iot(),u=fit(),a=Wot(),s=Uot(),c=Pit(),l=Bit(),f="Object already initialized",d=o.TypeError,p=o.WeakMap;if(n||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)||{}},r=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]:{}},r=function(t){return a(t,v)}}return Sit={set:t,get:e,has:r,enforce:function(n){return r(n)?e(n):t(n,{})},getterFor:function(t){return function(r){var n;if(!i(r)||(n=e(r)).type!==t)throw new d("Incompatible receiver, "+t+" required");return n}}}}function Fit(){if(Dit)return xit.exports;Dit=1;var t=Znt(),e=ont(),r=oot(),n=Wot(),o=int(),i=Tit().CONFIGURABLE,u=Nit(),a=Iit(),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=xit.exports=function(t,e,r){"Symbol("===d(l(e),0,7)&&(e="["+p(l(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!n(t,"name")||i&&t.name!==e)&&(o?f(t,"name",{value:e,configurable:!0}):t.name=e),v&&r&&n(r,"arity")&&t.length!==r.arity&&f(t,"length",{value:r.arity});try{r&&n(r,"constructor")&&r.constructor?o&&f(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var u=s(t);return n(u,"source")||(u.source=h(g,"string"==typeof e?e:"")),t};return Function.prototype.toString=y(function(){return r(this)&&c(this).source||u(this)},"toString"),xit.exports}function Rit(){if(Ait)return Oit;Ait=1;var t=oot(),e=lit(),r=Fit(),n=$ot();return Oit=function(o,i,u,a){a||(a={});var s=a.enumerable,c=void 0!==a.name?a.name:i;if(t(u)&&r(u,c,a),a.global)s?o[i]=u:n(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 Lit,_it,jit,Mit,zit,Hit,$it,Uit,Vit,Git,Wit,qit,Kit,Yit,Xit,Jit,Zit,Qit={};function tut(){if(Mit)return jit;Mit=1;var t=function(){if(_it)return Lit;_it=1;var t=Math.ceil,e=Math.floor;return Lit=Math.trunc||function(r){var n=+r;return(n>0?e:t)(n)}}();return jit=function(e){var r=+e;return r!=r||0===r?0:t(r)}}function eut(){if(Hit)return zit;Hit=1;var t=tut(),e=Math.max,r=Math.min;return zit=function(n,o){var i=t(n);return i<0?e(i+o,0):r(i,o)}}function rut(){if(Uit)return $it;Uit=1;var t=tut(),e=Math.min;return $it=function(r){var n=t(r);return n>0?e(n,9007199254740991):0}}function nut(){if(Git)return Vit;Git=1;var t=rut();return Vit=function(e){return t(e.length)}}function out(){if(qit)return Wit;qit=1;var t=not(),e=eut(),r=nut(),n=function(n){return function(o,i,u){var a=t(o),s=r(a);if(0===s)return!n&&-1;var c,l=e(u,s);if(n&&i!=i){for(;s>l;)if((c=a[l++])!=c)return!0}else for(;s>l;l++)if((n||l in a)&&a[l]===i)return n||l||0;return!n&&-1}};return Wit={includes:n(!0),indexOf:n(!1)}}function iut(){if(Yit)return Kit;Yit=1;var t=Znt(),e=Wot(),r=not(),n=out().indexOf,o=Bit(),i=t([].push);return Kit=function(t,u){var a,s=r(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++])&&(~n(l,a)||i(l,a));return l}}function uut(){return Jit?Xit:(Jit=1,Xit=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function aut(){if(Zit)return Qit;Zit=1;var t=iut(),e=uut().concat("length","prototype");return Qit.f=Object.getOwnPropertyNames||function(r){return t(r,e)},Qit}var sut,cut,lut,fut,dut,put,hut,vut,gut,yut,mut,but,Eut,wut,Sut,Cut,Dut,Out,Aut,xut,Tut,Nut,kut,Put,But,Iut,Fut,Rut,Lut={};function _ut(){return sut||(sut=1,Lut.f=Object.getOwnPropertySymbols),Lut}function jut(){if(dut)return fut;dut=1;var t=Wot(),e=function(){if(lut)return cut;lut=1;var t=uot(),e=Znt(),r=aut(),n=_ut(),o=cit(),i=e([].concat);return cut=t("Reflect","ownKeys")||function(t){var e=r.f(o(t)),u=n.f;return u?i(e,u(t)):e}}(),r=Qot(),n=lit();return fut=function(o,i,u){for(var a=e(i),s=n.f,c=r.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 Mut(){if(hut)return put;hut=1;var t=ont(),e=oot(),r=/#|\.prototype\./,n=function(r,n){var s=i[o(r)];return s===a||s!==u&&(e(n)?t(n):!!n)},o=n.normalize=function(t){return String(t).replace(r,".").toLowerCase()},i=n.data={},u=n.NATIVE="N",a=n.POLYFILL="P";return put=n}function zut(){if(gut)return vut;gut=1;var t=Krt(),e=Qot().f,r=fit(),n=Rit(),o=$ot(),i=jut(),u=Mut();return vut=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)&&r(d,"sham",!0),n(c,l,d,a)}}}function Hut(){if(mut)return yut;mut=1;var t=Qnt();return yut=Array.isArray||function(e){return"Array"===t(e)}}function $ut(){if(Eut)return but;Eut=1;var t=TypeError;return but=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}}function Uut(){if(Sut)return wut;Sut=1;var t=int(),e=lit(),r=Jnt();return wut=function(n,o,i){t?e.f(n,o,r(0,i)):n[o]=i}}function Vut(){if(Dut)return Cut;Dut=1;var t={};return t[Kot()("toStringTag")]="z",Cut="[object z]"===String(t)}function Gut(){if(Aut)return Out;Aut=1;var t=Vut(),e=oot(),r=Qnt(),n=Kot()("toStringTag"),o=Object,i="Arguments"===r(function(){return arguments}());return Out=t?r: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),n))?a:i?r(u):"Object"===(s=r(u))&&e(u.callee)?"Arguments":s}}function Wut(){if(Tut)return xut;Tut=1;var t=Znt(),e=ont(),r=oot(),n=Gut(),o=uot(),i=Nit(),u=function(){},a=o("Reflect","construct"),s=/^\s*(?:class|function)\b/,c=t(s.exec),l=!s.test(u),f=function(t){if(!r(t))return!1;try{return a(u,[],t),!0}catch(t){return!1}},d=function(t){if(!r(t))return!1;switch(n(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return l||!!c(s,i(t))}catch(t){return!0}};return d.sham=!0,xut=!a||e(function(){var t;return f(f.call)||!f(Object)||!f(function(){t=!0})||t})?d:f}function qut(){if(But)return Put;But=1;var t=function(){if(kut)return Nut;kut=1;var t=Hut(),e=Wut(),r=iot(),n=Kot()("species"),o=Array;return Nut=function(i){var u;return t(i)&&(u=i.constructor,(e(u)&&(u===o||t(u.prototype))||r(u)&&null===(u=u[n]))&&(u=void 0)),void 0===u?o:u}}();return Put=function(e,r){return new(t(e))(0===r?0:r)}}function Kut(){if(Fut)return Iut;Fut=1;var t=ont(),e=Kot(),r=cot(),n=e("species");return Iut=function(e){return r>=51||!t(function(){var t=[];return(t.constructor={})[n]=function(){return{foo:1}},1!==t[e](Boolean).foo})}}!function(){if(Rut)return qrt;Rut=1;var t=zut(),e=ont(),r=Hut(),n=iot(),o=Got(),i=nut(),u=$ut(),a=Uut(),s=qut(),c=Kut(),l=Kot(),f=cot(),d=l("isConcatSpreadable"),p=f>=51||!e(function(){var t=[];return t[d]=!1,t.concat()[0]!==t}),h=function(t){if(!n(t))return!1;var e=t[d];return void 0!==e?!!e:r(t)};t({target:"Array",proto:!0,arity:1,forced:!p||!c("concat")},{concat:function(t){var e,r,n,c,l,f=o(this),d=s(f,0),p=0;for(e=-1,n=arguments.length;e<n;e++)if(h(l=-1===e?f:arguments[e]))for(c=i(l),u(p+c),r=0;r<c;r++,p++)r in l&&a(d,p,l[r]);else u(p+1),a(d,p++,l);return d.length=p,d}})}();var Yut,Xut,Jut,Zut={};function Qut(){if(Xut)return Yut;Xut=1;var t=ont();return Yut=function(e,r){var n=[][e];return!!n&&t(function(){n.call(null,r||function(){return 1},1)})}}!function(){if(Jut)return Zut;Jut=1;var t=zut(),e=Znt(),r=tot(),n=not(),o=Qut(),i=e([].join);t({target:"Array",proto:!0,forced:r!==Object||!o("join",",")},{join:function(t){return i(n(this),void 0===t?",":t)}})}();var tat,eat,rat,nat,oat,iat,uat,aat={};function sat(){if(nat)return rat;nat=1;var t=function(){if(eat)return tat;eat=1;var t=Qnt(),e=Znt();return tat=function(r){if("Function"===t(r))return e(r)}}(),e=hot(),r=unt(),n=t(t.bind);return rat=function(t,o){return e(t),void 0===o?t:r?n(t,o):function(){return t.apply(o,arguments)}},rat}function cat(){if(iat)return oat;iat=1;var t=sat(),e=Znt(),r=tot(),n=Got(),o=nut(),i=qut(),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=n(h),w=r(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 oat={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(uat)return aat;uat=1;var t=zut(),e=cat().map;t({target:"Array",proto:!0,forced:!Kut()("map")},{map:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}})}();var lat,fat,dat,pat={};!function(){if(dat)return pat;dat=1;var t=Vut(),e=Rit(),r=function(){if(fat)return lat;fat=1;var t=Vut(),e=Gut();return lat=t?{}.toString:function(){return"[object "+e(this)+"]"}}();t||e(Object.prototype,"toString",r,{unsafe:!0})}();var hat=function(t,e){return hat=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},hat(t,e)},vat=function(){return vat=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},vat.apply(this,arguments)};function gat(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},u=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return u.next=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(r)throw new TypeError("Generator is already executing.");for(;u&&(u=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=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++,n=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],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}function yat(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function mat(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)u.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u}function bat(t,e,r){if(2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError;var Eat,wat,Sat,Cat,Dat,Oat,Aat,xat,Tat,Nat,kat='<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>',Pat={},Bat={};function Iat(){if(wat)return Eat;wat=1;var t=iut(),e=uut();return Eat=Object.keys||function(r){return t(r,e)}}function Fat(){if(Aat)return Oat;Aat=1;var t,e=cit(),r=function(){if(Sat)return Bat;Sat=1;var t=int(),e=sit(),r=lit(),n=cit(),o=not(),i=Iat();return Bat.f=t&&!e?Object.defineProperties:function(t,e){n(t);for(var u,a=o(e),s=i(e),c=s.length,l=0;c>l;)r.f(t,u=s[l++],a[u]);return t},Bat}(),n=uut(),o=Bit(),i=function(){if(Dat)return Cat;Dat=1;var t=uot();return Cat=t("document","documentElement")}(),u=Jot(),a=Pit(),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,r,o;h="undefined"!=typeof document?document.domain&&t?p(t):(r=u("iframe"),o="java"+c+":",r.style.display="none",i.appendChild(r),r.src=String(o),(e=r.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F):p(t);for(var a=n.length;a--;)delete h[s][n[a]];return h()};return o[l]=!0,Oat=Object.create||function(t,n){var o;return null!==t?(f[s]=e(t),o=new f,f[s]=null,o[l]=t):o=h(),void 0===n?o:r.f(o,n)}}function Rat(){if(Tat)return xat;Tat=1;var t=Kot(),e=Fat(),r=lit().f,n=t("unscopables"),o=Array.prototype;return void 0===o[n]&&r(o,n,{configurable:!0,value:e(null)}),xat=function(t){o[n][t]=!0}}!function(){if(Nat)return Pat;Nat=1;var t=zut(),e=out().includes,r=ont(),n=Rat();t({target:"Array",proto:!0,forced:r(function(){return!Array(1).includes()})},{includes:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}}),n("includes")}();var Lat,_at,jat,Mat,zat,Hat,$at,Uat,Vat,Gat={};function Wat(){if(Hat)return zat;Hat=1;var t=Gut(),e=String;return zat=function(r){if("Symbol"===t(r))throw new TypeError("Cannot convert a Symbol value to a string");return e(r)}}!function(){if(Vat)return Gat;Vat=1;var t=zut(),e=Znt(),r=function(){if(Mat)return jat;Mat=1;var t=function(){if(_at)return Lat;_at=1;var t=iot(),e=Qnt(),r=Kot()("match");return Lat=function(n){var o;return t(n)&&(void 0!==(o=n[r])?!!o:"RegExp"===e(n))}}(),e=TypeError;return jat=function(r){if(t(r))throw new e("The method doesn't accept regular expressions");return r}}(),n=rot(),o=Wat(),i=function(){if(Uat)return $at;Uat=1;var t=Kot()("match");return $at=function(e){var r=/./;try{"/./"[e](r)}catch(n){try{return r[t]=!1,"/./"[e](r)}catch(t){}}return!1}}(),u=e("".indexOf);t({target:"String",proto:!0,forced:!i("includes")},{includes:function(t){return!!~u(o(n(this)),o(r(t)),arguments.length>1?arguments[1]:void 0)}})}();var qat={blocks:{td:"table-cell",th:"table-cell",content:"paragraph",tr:"table-row",table:"table",tbody:"table-body"}};function Kat(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var n=qat,o=e.map(function(t){var e;return null===(e=null==n?void 0:n.blocks)||void 0===e?void 0:e[t]});return function(t){return function(t){return!Kh.isEditor(t)&&$h.isElement(t)&&"type"in t}(t)&&o.includes(t.type)}}function Yat(t,e){for(var r=mat(e,2),n=r[0],o=r[1],i=[],u=2;u<arguments.length;u++)i[u-2]=arguments[u];var a=mat(tv.common(t,n,o),2),s=a[0],c=a[1];return!!Kat.apply(void 0,bat([t],mat(i),!1))(s,c)||!!Kh.above(t,{match:Kat.apply(void 0,bat([t],mat(i),!1)),at:c})}function Xat(t,e){var r,n;void 0===e&&(e={});var o=[];try{for(var i=yat(function(t,e){var r,n,o,i,u,a,s,c,l,f,d,p,h,v,g,y,m,b;return void 0===e&&(e={}),gat(this,function(E){switch(E.label){case 0:if(r=mat(Kh.nodes(t,{match:Kat(t,"table"),at:e.at}),1),!(n=r[0]))return[2,[]];o=mat(n,2),i=o[1],E.label=1;case 1:E.trys.push([1,6,7,8]),u=yat(Kh.nodes(t,{match:Kat(t,"table"),at:i})),a=u.next(),E.label=2;case 2:if(a.done)return[3,5];s=mat(a.value,2),c=s[1],l=[];try{for(m=void 0,f=yat(Kh.nodes(t,{match:Kat(t,"tr"),at:c})),d=f.next();!d.done;d=f.next())p=mat(d.value,2),h=p[1],l.push(bat([],mat(Kh.nodes(t,{match:Kat(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=mat(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,bat([],mat(s),!1))}}catch(t){r={error:t}}finally{try{u&&!u.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return o}var Jat,Zat=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}(),Qat={};!function(){if(Jat)return Qat;Jat=1;var t=zut(),e=cat().find,r=Rat(),n="find",o=!0;n in[]&&Array(1)[n](function(){o=!1}),t({target:"Array",proto:!0,forced:o},{find:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}}),r(n)}();var tst,est,rst,nst,ost,ist,ust,ast,sst,cst,lst,fst,dst,pst,hst,vst,gst,yst={};function mst(){if(est)return tst;est=1;var t=ant(),e=cit(),r=vot();return tst=function(n,o,i){var u,a;e(n);try{if(!(u=r(n,"return"))){if("throw"===o)throw i;return i}u=t(u,n)}catch(t){a=!0,u=t}if("throw"===o)throw i;if(a)throw u;return e(u),i}}function bst(){return ist?ost:(ist=1,ost={})}function Est(){if(ast)return ust;ast=1;var t=Kot(),e=bst(),r=t("iterator"),n=Array.prototype;return ust=function(t){return void 0!==t&&(e.Array===t||n[r]===t)}}function wst(){if(cst)return sst;cst=1;var t=Gut(),e=vot(),r=eot(),n=bst(),o=Kot()("iterator");return sst=function(i){if(!r(i))return e(i,o)||e(i,"@@iterator")||n[t(i)]}}function Sst(){if(fst)return lst;fst=1;var t=ant(),e=hot(),r=cit(),n=pot(),o=wst(),i=TypeError;return lst=function(u,a){var s=arguments.length<2?o(u):a;if(e(s))return r(t(s,u));throw new i(n(u)+" is not iterable")},lst}function Cst(){if(vst)return hst;vst=1;var t=Kot()("iterator"),e=!1;try{var r=0,n={next:function(){return{done:!!r++}},return:function(){e=!0}};n[t]=function(){return this},Array.from(n,function(){throw 2})}catch(t){}return hst=function(r,n){try{if(!n&&!e)return!1}catch(t){return!1}var o=!1;try{var i={};i[t]=function(){return{next:function(){return{done:o=!0}}}},r(i)}catch(t){}return o}}!function(){if(gst)return yst;gst=1;var t=zut(),e=function(){if(pst)return dst;pst=1;var t=sat(),e=ant(),r=Got(),n=function(){if(nst)return rst;nst=1;var t=cit(),e=mst();return rst=function(r,n,o,i){try{return i?n(t(o)[0],o[1]):n(o)}catch(t){e(r,"throw",t)}}}(),o=Est(),i=Wut(),u=nut(),a=Uut(),s=Sst(),c=wst(),l=Array;return dst=function(f){var d=r(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?n(E,v,[b.value,D],!0):b.value,a(m,D,S);return m.length=D,m},dst}();t({target:"Array",stat:!0,forced:!Cst()(function(t){Array.from(t)})},{from:e})}();var Dst,Ost,Ast,xst,Tst,Nst,kst,Pst,Bst,Ist,Fst,Rst={};function Lst(){if(Ost)return Dst;Ost=1;var t=cit();return Dst=function(){var e=t(this),r="";return e.hasIndices&&(r+="d"),e.global&&(r+="g"),e.ignoreCase&&(r+="i"),e.multiline&&(r+="m"),e.dotAll&&(r+="s"),e.unicode&&(r+="u"),e.unicodeSets&&(r+="v"),e.sticky&&(r+="y"),r}}function _st(){if(xst)return Ast;xst=1;var t=ont(),e=Krt().RegExp,r=t(function(){var t=e("a","y");return t.lastIndex=2,null!==t.exec("abcd")}),n=r||t(function(){return!e("a","y").sticky}),o=r||t(function(){var t=e("^r","gy");return t.lastIndex=2,null!==t.exec("str")});return Ast={BROKEN_CARET:o,MISSED_STICKY:n,UNSUPPORTED_Y:r}}function jst(){if(Ist)return Bst;Ist=1;var t,e,r=ant(),n=Znt(),o=Wat(),i=Lst(),u=_st(),a=Vot(),s=Fat(),c=Iit().get,l=function(){if(Nst)return Tst;Nst=1;var t=ont(),e=Krt().RegExp;return Tst=t(function(){var t=e(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})}(),f=function(){if(Pst)return kst;Pst=1;var t=ont(),e=Krt().RegExp;return kst=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=n("".charAt),g=n("".indexOf),y=n("".replace),m=n("".slice),b=(e=/b*/g,r(p,t=/a/,"a"),r(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,n,u,a,l,f,S,C=this,D=c(C),O=o(t),A=D.raw;if(A)return A.lastIndex=C.lastIndex,e=r(h,A,O),C.lastIndex=A.lastIndex,e;var x=D.groups,T=E&&C.sticky,N=r(i,C),k=C.source,P=0,B=O;if(T&&(N=y(N,"y",""),-1===g(N,"g")&&(N+="g"),B=m(O,C.lastIndex),C.lastIndex>0&&(!C.multiline||C.multiline&&"\n"!==v(O,C.lastIndex-1))&&(k="(?: "+k+")",B=" "+B,P++),n=new RegExp("^(?:"+k+")",N)),w&&(n=new RegExp("^"+k+"$(?!\\s)",N)),b&&(u=C.lastIndex),a=r(p,T?n:C,B),T?a?(a.input=m(a.input,P),a[0]=m(a[0],P),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&&r(d,a[0],n,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}),Bst=h}function Mst(){if(Fst)return Rst;Fst=1;var t=zut(),e=jst();return t({target:"RegExp",proto:!0,forced:/./.exec!==e},{exec:e}),Rst}Mst();var zst,Hst,$st,Ust,Vst,Gst,Wst,qst,Kst,Yst,Xst,Jst,Zst,Qst,tct,ect,rct,nct,oct,ict,uct,act,sct,cct,lct,fct={};function dct(){if(Hst)return zst;Hst=1;var t=Znt(),e=tut(),r=Wat(),n=rot(),o=t("".charAt),i=t("".charCodeAt),u=t("".slice),a=function(t){return function(a,s){var c,l,f=r(n(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 zst={codeAt:a(!1),charAt:a(!0)}}function pct(){if(Gst)return Vst;Gst=1;var t=Wot(),e=oot(),r=Got(),n=Pit(),o=function(){if(Ust)return $st;Ust=1;var t=ont();return $st=!t(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})}(),i=n("IE_PROTO"),u=Object,a=u.prototype;return Vst=o?u.getPrototypeOf:function(n){var o=r(n);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 hct(){if(qst)return Wst;qst=1;var t,e,r,n=ont(),o=oot(),i=iot(),u=Fat(),a=pct(),s=Rit(),c=Kot(),l=Hot(),f=c("iterator"),d=!1;return[].keys&&("next"in(r=[].keys())?(e=a(a(r)))!==Object.prototype&&(t=e):d=!0),!i(t)||n(function(){var e={};return t[f].call(e)!==e})?t={}:l&&(t=u(t)),o(t[f])||s(t,f,function(){return this}),Wst={IteratorPrototype:t,BUGGY_SAFARI_ITERATORS:d}}function vct(){if(Yst)return Kst;Yst=1;var t=lit().f,e=Wot(),r=Kot()("toStringTag");return Kst=function(n,o,i){n&&!i&&(n=n.prototype),n&&!e(n,r)&&t(n,r,{configurable:!0,value:o})}}function gct(){if(nct)return rct;nct=1;var t=function(){if(ect)return tct;ect=1;var t=iot();return tct=function(e){return t(e)||null===e}}(),e=String,r=TypeError;return rct=function(n){if(t(n))return n;throw new r("Can't set "+e(n)+" as a prototype")}}function yct(){if(ict)return oct;ict=1;var t=function(){if(Qst)return Zst;Qst=1;var t=Znt(),e=hot();return Zst=function(r,n,o){try{return t(e(Object.getOwnPropertyDescriptor(r,n)[o]))}catch(t){}}}(),e=iot(),r=rot(),n=gct();return oct=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 r(t),n(u),e(t)?(i?o(t,u):t.__proto__=u,t):t}}():void 0)}function mct(){if(act)return uct;act=1;var t=zut(),e=ant(),r=Hot(),n=Tit(),o=oot(),i=function(){if(Jst)return Xst;Jst=1;var t=hct().IteratorPrototype,e=Fat(),r=Jnt(),n=vct(),o=bst(),i=function(){return this};return Xst=function(u,a,s,c){var l=a+" Iterator";return u.prototype=e(t,{next:r(+!c,s)}),n(u,l,!1,!0),o[l]=i,u}}(),u=pct(),a=yct(),s=vct(),c=fit(),l=Rit(),f=Kot(),d=bst(),p=hct(),h=n.PROPER,v=n.CONFIGURABLE,g=p.IteratorPrototype,y=p.BUGGY_SAFARI_ITERATORS,m=f("iterator"),b="keys",E="values",w="entries",S=function(){return this};return uct=function(n,f,p,C,D,O,A){i(p,f,C);var x,T,N,k=function(t){if(t===D&&R)return R;if(!y&&t&&t in I)return I[t];switch(t){case b:case E:case w:return function(){return new p(this,t)}}return function(){return new p(this)}},P=f+" Iterator",B=!1,I=n.prototype,F=I[m]||I["@@iterator"]||D&&I[D],R=!y&&F||k(D),L="Array"===f&&I.entries||F;if(L&&(x=u(L.call(new n)))!==Object.prototype&&x.next&&(r||u(x)===g||(a?a(x,g):o(x[m])||l(x,m,S)),s(x,P,!0,!0),r&&(d[P]=S)),h&&D===E&&F&&F.name!==E&&(!r&&v?c(I,"name",E):(B=!0,R=function(){return e(F,this)})),D)if(T={values:k(E),keys:O?R:k(b),entries:k(w)},A)for(N in T)(y||B||!(N in I))&&l(I,N,T[N]);else t({target:f,proto:!0,forced:y||B},T);return r&&!A||I[m]===R||l(I,m,R,{name:D}),d[f]=R,T}}function bct(){return cct?sct:(cct=1,sct=function(t,e){return{value:t,done:e}})}!function(){if(lct)return fct;lct=1;var t=dct().charAt,e=Wat(),r=Iit(),n=mct(),o=bct(),i="String Iterator",u=r.set,a=r.getterFor(i);n(String,"String",function(t){u(this,{type:i,string:e(t),index:0})},function(){var e,r=a(this),n=r.string,i=r.index;return i>=n.length?o(void 0,!0):(e=t(n,i),r.index+=e.length,o(e,!1))})}();var Ect,wct,Sct,Cct,Dct,Oct,Act,xct={};function Tct(){return wct?Ect:(wct=1,Ect={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 Nct(){if(Cct)return Sct;Cct=1;var t=Jot()("span").classList,e=t&&t.constructor&&t.constructor.prototype;return Sct=e===Object.prototype?void 0:e}!function(){if(Act)return xct;Act=1;var t=Krt(),e=Tct(),r=Nct(),n=function(){if(Oct)return Dct;Oct=1;var t=cat().forEach,e=Qut()("forEach");return Dct=e?[].forEach:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)},Dct}(),o=fit(),i=function(t){if(t&&t.forEach!==n)try{o(t,"forEach",n)}catch(e){t.forEach=n}};for(var u in e)e[u]&&i(t[u]&&t[u].prototype);i(r)}();var kct,Pct,Bct,Ict,Fct,Rct,Lct,_ct={};function jct(){return Pct?kct:(Pct=1,kct="\t\n\v\f\r                 \u2028\u2029\ufeff")}function Mct(){if(Ict)return Bct;Ict=1;var t=Znt(),e=rot(),r=Wat(),n=jct(),o=t("".replace),i=RegExp("^["+n+"]+"),u=RegExp("(^|[^"+n+"])["+n+"]+$"),a=function(t){return function(n){var a=r(e(n));return 1&t&&(a=o(a,i,"")),2&t&&(a=o(a,u,"$1")),a}};return Bct={start:a(1),end:a(2),trim:a(3)}}!function(){if(Lct)return _ct;Lct=1;var t=zut(),e=Mct().trim,r=function(){if(Rct)return Fct;Rct=1;var t=Tit().PROPER,e=ont(),r=jct();return Fct=function(n){return e(function(){return!!r[n]()||"​…᠎"!=="​…᠎"[n]()||t&&r[n].name!==n})}}();t({target:"String",proto:!0,forced:r("trim")},{trim:function(){return e(this)}})}();var zct,Hct,$ct,Uct,Vct={};function Gct(t){return t.length?t[0].tagName.toLowerCase():""}function Wct(t,e){for(var r="",n=(t.attr("style")||"").split(";"),o=n.length,i=0;i<o;i+=1){var u=n[i];if(u){var a=u.split(":");a[0].trim()===e&&(r=a[1].trim())}}return r}function qct(){if(Uct)return $ct;Uct=1;var t=not(),e=Rat(),r=bst(),n=Iit(),o=lit().f,i=mct(),u=bct(),a=Hot(),s=int(),c="Array Iterator",l=n.set,f=n.getterFor(c);$ct=i(Array,"Array",function(e,r){l(this,{type:c,target:t(e),index:0,kind:r})},function(){var t=f(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=null,u(void 0,!0);switch(t.kind){case"keys":return u(r,!1);case"values":return u(e[r],!1)}return u([r,e[r]],!1)},"values");var d=r.Arguments=r.Array;if(e("keys"),e("values"),e("entries"),!a&&s&&"values"!==d.name)try{o(d,"name",{value:"values"})}catch(t){}return $ct}Hct||(Hct=1,function(){if(zct)return Vct;zct=1;var t=zut(),e=Krt();t({global:!0,forced:e.globalThis!==e},{globalThis:e})}()),Ag&&og.fn&&(og.fn.append=Ag),pg&&og.fn&&(og.fn.on=pg),_g&&og.fn&&(og.fn.focus=_g),sg&&og.fn&&(og.fn.attr=sg),dg&&og.fn&&(og.fn.val=dg),Cg&&og.fn&&(og.fn.html=Cg),fg&&og.fn&&(og.fn.dataset=fg),ig&&og.fn&&(og.fn.addClass=ig),ug&&og.fn&&(og.fn.removeClass=ug),Pg&&og.fn&&(og.fn.children=Pg),wg&&og.fn&&(og.fn.each=wg),kg&&og.fn&&(og.fn.find=kg),lg&&og.fn&&(og.fn.data=lg),mg&&og.fn&&(og.fn.hide=mg),bg&&og.fn&&(og.fn.show=bg),qct();var Kct,Yct,Xct,Jct,Zct={};function Qct(){if(Yct)return Kct;Yct=1;var t=ont();return Kct=!t(function(){return Object.isExtensible(Object.preventExtensions({}))})}function tlt(){if(Jct)return Xct;Jct=1;var t=Rit();return Xct=function(e,r,n){for(var o in r)t(e,o,r[o],n);return e}}var elt,rlt,nlt,olt,ilt,ult,alt,slt,clt,llt,flt,dlt,plt,hlt,vlt,glt,ylt,mlt,blt,Elt,wlt={exports:{}},Slt={};function Clt(){if(rlt)return elt;rlt=1;var t=Znt();return elt=t([].slice)}function Dlt(){if(slt)return wlt.exports;slt=1;var t=zut(),e=Znt(),r=Bit(),n=iot(),o=Wot(),i=lit().f,u=aut(),a=function(){if(nlt)return Slt;nlt=1;var t=Qnt(),e=not(),r=aut().f,n=Clt(),o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];return Slt.f=function(i){return o&&"Window"===t(i)?function(t){try{return r(t)}catch(t){return n(o)}}(i):r(e(i))},Slt}(),s=function(){if(alt)return ult;alt=1;var t=ont(),e=iot(),r=Qnt(),n=function(){if(ilt)return olt;ilt=1;var t=ont();return olt=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 ult=i||n?function(t){return!!e(t)&&(!n||"ArrayBuffer"!==r(t))&&(!o||o(t))}:o}(),c=qot(),l=Qct(),f=!1,d=c("meta"),p=0,h=function(t){i(t,d,{value:{objectID:"O"+p++,weakData:{}}})},v=wlt.exports={enable:function(){v.enable=function(){},f=!0;var r=u.f,n=e([].splice),o={};o[d]=1,r(o).length&&(u.f=function(t){for(var e=r(t),o=0,i=e.length;o<i;o++)if(e[o]===d){n(e,o,1);break}return e},t({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:a.f}))},fastKey:function(t,e){if(!n(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 r[d]=!0,wlt.exports}function Olt(){if(llt)return clt;llt=1;var t=sat(),e=ant(),r=cit(),n=pot(),o=Est(),i=nut(),u=aot(),a=Sst(),s=wst(),c=mst(),l=TypeError,f=function(t,e){this.stopped=t,this.result=e},d=f.prototype;return clt=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)},k=function(t){return D?(r(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(n(p)+" is not iterable");if(o(y)){for(m=0,b=i(p);b>m;m++)if((E=k(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=k(S.value)}catch(t){c(g,"throw",t)}if("object"==typeof E&&E&&u(d,E))return E}return new f(!1)}}function Alt(){if(dlt)return flt;dlt=1;var t=aot(),e=TypeError;return flt=function(r,n){if(t(n,r))return r;throw new e("Incorrect invocation")}}function xlt(){if(hlt)return plt;hlt=1;var t=oot(),e=iot(),r=yct();return plt=function(n,o,i){var u,a;return r&&t(u=o.constructor)&&u!==i&&e(a=u.prototype)&&a!==i.prototype&&r(n,a),n}}function Tlt(){if(glt)return vlt;glt=1;var t=zut(),e=Krt(),r=Znt(),n=Mut(),o=Rit(),i=Dlt(),u=Olt(),a=Alt(),s=oot(),c=eot(),l=iot(),f=ont(),d=Cst(),p=vct(),h=xlt();return vlt=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=r(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,r){return e(this,0===t?0:t,r),this})};if(n(v,!s(w)||!(b||S.forEach&&!f(function(){(new w).entries().next()}))))C=y.getConstructor(g,v,m,E),i.enable();else if(n(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)}),k=!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 r=h(new w,t,C);return c(e)||u(e,r[E],{that:r,AS_ENTRIES:m}),r})).prototype=S,S.constructor=C),(T||k)&&(O("delete"),O("has"),m&&O("get")),(k||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 Nlt(){if(mlt)return ylt;mlt=1;var t=Znt(),e=tlt(),r=Dlt().getWeakData,n=Alt(),o=cit(),i=eot(),u=iot(),a=Olt(),s=cat(),c=Wot(),l=Iit(),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 r=b(this,t);r?r[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}},ylt={getConstructor:function(t,s,l,p){var h=t(function(t,e){n(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,n){var i=m(t),u=r(o(e),!0);return!0===u?y(i).set(e,n):u[i.id]=n,t};return e(v,{delete:function(t){var e=m(this);if(!u(t))return!1;var n=r(t);return!0===n?y(e).delete(t):n&&c(n,e.id)&&delete n[e.id]},has:function(t){var e=m(this);if(!u(t))return!1;var n=r(t);return!0===n?y(e).has(t):n&&c(n,e.id)}}),e(v,l?{get:function(t){var e=m(this);if(u(t)){var n=r(t);if(!0===n)return y(e).get(t);if(n)return n[e.id]}},set:function(t,e){return b(this,t,e)}}:{add:function(t){return b(this,t,!0)}}),h}},ylt}Elt||(Elt=1,function(){if(blt)return Zct;blt=1;var t,e=Qct(),r=Krt(),n=Znt(),o=tlt(),i=Dlt(),u=Tlt(),a=Nlt(),s=iot(),c=Iit().enforce,l=ont(),f=kit(),d=Object,p=Array.isArray,h=d.isExtensible,v=d.isFrozen,g=d.isSealed,y=d.freeze,m=d.seal,b=!r.ActiveXObject&&"ActiveXObject"in r,E=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},w=u("WeakMap",E,a),S=w.prototype,C=n(S.set);if(f)if(b){t=a.getConstructor(E,"WeakMap",!0),i.enable();var D=n(S.delete),O=n(S.has),A=n(S.get);o(S,{delete:function(e){if(s(e)&&!h(e)){var r=c(this);return r.frozen||(r.frozen=new t),D(this,e)||r.frozen.delete(e)}return D(this,e)},has:function(e){if(s(e)&&!h(e)){var r=c(this);return r.frozen||(r.frozen=new t),O(this,e)||r.frozen.has(e)}return O(this,e)},get:function(e){if(s(e)&&!h(e)){var r=c(this);return r.frozen||(r.frozen=new t),O(this,e)?A(this,e):r.frozen.get(e)}return A(this,e)},set:function(e,r){if(s(e)&&!h(e)){var n=c(this);n.frozen||(n.frozen=new t),O(this,e)?C(this,e,r):n.frozen.set(e,r)}else C(this,e,r);return this}})}else e&&l(function(){var t=y([]);return C(new w,t,1),!v(t)})&&o(S,{set:function(t,e){var r;return p(t)&&(v(t)?r=y:g(t)&&(r=m)),C(this,t,e),r&&r(t),this}})}());var klt,Plt={};!function(){if(klt)return Plt;klt=1;var t=Krt(),e=Tct(),r=Nct(),n=qct(),o=fit(),i=vct(),u=Kot()("iterator"),a=n.values,s=function(t,r){if(t){if(t[u]!==a)try{o(t,u,a)}catch(e){t[u]=a}if(i(t,r,!0),e[r])for(var s in n)if(t[s]!==n[s])try{o(t,s,n[s])}catch(e){t[s]=n[s]}}};for(var c in e)s(t[c]&&t[c].prototype,c);s(r,"DOMTokenList")}();var Blt,Ilt,Flt,Rlt,Llt,_lt,jlt,Mlt,zlt,Hlt,$lt,Ult=new WeakMap,Vlt=new WeakMap,Glt=function(){function t(){this.title=LF("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:LF("tableModule.borderStyle.none")},{value:"solid",label:LF("tableModule.borderStyle.solid")},{value:"dotted",label:LF("tableModule.borderStyle.dotted")},{value:"dashed",label:LF("tableModule.borderStyle.dashed")},{value:"double",label:LF("tableModule.borderStyle.double")},{value:"groove",label:LF("tableModule.borderStyle.groove")},{value:"ridge",label:LF("tableModule.borderStyle.ridge")},{value:"inset",label:LF("tableModule.borderStyle.inset")},{value:"outset",label:LF("tableModule.borderStyle.outset")}],this.textAlignOptions=[{value:"left",label:LF("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:LF("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:LF("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:LF("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==CB.getSelectedNodeByType(t,"table")},t.prototype.exec=function(t,e){},t.prototype.getModalContentNode=function(t){return mat(Kh.nodes(t,{match:Kat(t,"table")}),1)[0]},t.prototype.getModalPositionNode=function(t){return null},t.prototype.getModalContentElem=function(t){var e=this,r=this.getModalContentNode(t);if(!r)return null;var n=mat(r,2),o=n[0],i=n[1],u=og('<div>\n <label class="babel-container">\n <span>'.concat(LF("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(LF("tableModule.modal.borderWidth"),'">\n </span>\n </label>\n <div class="babel-container">\n <span>').concat(LF("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(LF("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(LF("tableModule.modal.ok"),"</button>\n </div>\n </div>"));u.find("[name]").each(function(t){og(t).val(o[og(t).attr("name")])});var a=function(t,e){e?og(".color-group-block",t).css("background-color",e).empty():og(".color-group-block",t).css("background-color","").html(kat)};return u.find(".color-group").each(function(r){var n=og('[type="hidden"]',r).val()||"";a(r,n);var o=og(r);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:n,callback:function(t){og('[type="hidden"]',r).val(t||""),a(r,t),i.hide()}}),o.append(i),o.data("panel",i))})}),u.find("button").on("click",function(){var r=Array.from(u.find("[name]")).reduce(function(t,e){return t[og(e).attr("name")]=og(e).val(),t},{}),n=Ult.get(t);"cell"===e.menu&&(null==n?void 0:n.length)?n.forEach(function(e){e.forEach(function(e){zv.setNodes(t,r,{at:e[0][1]})})}):zv.setNodes(t,r,{at:i}),setTimeout(function(){t.focus()})}),u[0]},t.prototype.getPanelContentElem=function(t,e){var r=e.mark,n=e.selectedColor,o=e.callback,i=og('<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 r=og(e).attr("data-value");o(r)}});var u=t.getMenuConfig(r).colors;(void 0===u?[]:u).forEach(function(t){var e=og('<div class="color-block" data-value="'.concat(t,'"></div>'));e.css("background-color",t);var r=og('<li data-value="'.concat(t,'"></li>'));n===t&&r.addClass("active"),r.append(e),i.append(r)});var a="";"color"===r&&(a=LF("tableModule.color.default")),"bgColor"===r&&(a=LF("tableModule.color.clear"));var s=og('\n <li data-value="" class="clear">\n '.concat(kat,"\n ").concat(a,"\n </li>\n "));i.prepend(s);var c=og('<div class="w-e-drop-panel"></div>');return c.append(i),c},t}(),Wlt=function(t){function e(){var e=t.apply(this,bat([],mat(arguments),!1))||this;return e.title=LF("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 r(){this.constructor=t}hat(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}(e,t),e.prototype.getModalContentNode=function(t){return mat(Kh.nodes(t,{match:Kat(t,"td")}),1)[0]},e}(Glt),qlt={};function Klt(){if(Ilt)return Blt;Ilt=1;var t=pot(),e=TypeError;return Blt=function(r,n){if(!delete r[n])throw new e("Cannot delete property "+t(n)+" of "+t(r))}}!function(){if($lt)return qlt;$lt=1;var t=zut(),e=Znt(),r=hot(),n=Got(),o=nut(),i=Klt(),u=Wat(),a=ont(),s=function(){if(Rlt)return Flt;Rlt=1;var t=Clt(),e=Math.floor,r=function(n,o){var i=n.length;if(i<8)for(var u,a,s=1;s<i;){for(a=s,u=n[s];a&&o(n[a-1],u)>0;)n[a]=n[--a];a!==s++&&(n[a]=u)}else for(var c=e(i/2),l=r(t(n,0,c),o),f=r(t(n,c),o),d=l.length,p=f.length,h=0,v=0;h<d||v<p;)n[h+v]=h<d&&v<p?o(l[h],f[v])<=0?l[h++]:f[v++]:h<d?l[h++]:f[v++];return n};return Flt=r}(),c=Qut(),l=function(){if(_lt)return Llt;_lt=1;var t=sot().match(/firefox\/(\d+)/i);return Llt=!!t&&+t[1]}(),f=function(){if(Mlt)return jlt;Mlt=1;var t=sot();return jlt=/MSIE|Trident/.test(t)}(),d=cot(),p=function(){if(Hlt)return zlt;Hlt=1;var t=sot().match(/AppleWebKit\/(\d+)\./);return zlt=!!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,r,n,o="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)h.push({k:e+n,v:r})}for(h.sort(function(t,e){return e.v-t.v}),n=0;n<h.length;n++)e=h[n].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&&r(t);var e=n(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,r){return void 0===r?-1:void 0===e?1:void 0!==t?+t(e,r)||0:u(e)>u(r)?1:-1}}(t)),a=o(l),c=0;c<a;)e[c]=l[c++];for(;c<f;)i(e,c++);return e}})}();var Ylt,Xlt,Jlt,Zlt={};!function(){if(Jlt)return Zlt;Jlt=1;var t=zut(),e=Got(),r=eut(),n=tut(),o=nut(),i=function(){if(Xlt)return Ylt;Xlt=1;var t=int(),e=Hut(),r=TypeError,n=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 Ylt=o?function(t,o){if(e(t)&&!n(t,"length").writable)throw new r("Cannot set read only .length");return t.length=o}:function(t,e){return t.length=e}}(),u=$ut(),a=qut(),s=Uut(),c=Klt(),l=Kut()("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=r(t,E),S=arguments.length;for(0===S?p=h=0:1===S?(p=0,h=E-w):(p=S-2,h=d(f(n(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 Qlt,tft,eft,rft,nft,oft,ift,uft,aft,sft,cft,lft,fft,dft={};function pft(){if(ift)return oft;ift=1;var t=Fit(),e=lit();return oft=function(r,n,o){return o.get&&t(o.get,n,{getter:!0}),o.set&&t(o.set,n,{setter:!0}),e.f(r,n,o)}}function hft(){if(cft)return sft;cft=1;var t=Fat(),e=pft(),r=tlt(),n=sat(),o=Alt(),i=eot(),u=Olt(),a=mct(),s=bct(),c=function(){if(aft)return uft;aft=1;var t=uot(),e=pft(),r=Kot(),n=int(),o=r("species");return uft=function(r){var i=t(r);n&&i&&!i[o]&&e(i,o,{configurable:!0,get:function(){return this}})}}(),l=int(),f=Dlt().fastKey,d=Iit(),p=d.set,h=d.getterFor;return sft={getConstructor:function(a,s,c,d){var v=a(function(e,r){o(e,g),p(e,{type:s,index:t(null),first:null,last:null,size:0}),l||(e.size=0),i(r)||u(r,e[d],{that:e,AS_ENTRIES:c})}),g=v.prototype,y=h(s),m=function(t,e,r){var n,o,i=y(t),u=b(t,e);return u?u.value=r:(i.last=u={index:o=f(e,!0),key:e,value:r,previous:n=i.last,next:null,removed:!1},i.first||(i.first=u),n&&(n.next=u),l?i.size++:t.size++,"F"!==o&&(i.index[o]=u)),t},b=function(t,e){var r,n=y(t),o=f(e);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key===e)return r};return r(g,{clear:function(){for(var e=y(this),r=e.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=null),r=r.next;e.first=e.last=null,e.index=t(null),l?e.size=0:this.size=0},delete:function(t){var e=this,r=y(e),n=b(e,t);if(n){var o=n.next,i=n.previous;delete r.index[n.index],n.removed=!0,i&&(i.next=o),o&&(o.previous=i),r.first===n&&(r.first=o),r.last===n&&(r.last=i),l?r.size--:e.size--}return!!n},forEach:function(t){for(var e,r=y(this),o=n(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:r.first;)for(o(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!b(this,t)}}),r(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,r){var n=e+" Iterator",o=h(e),i=h(n);a(t,e,function(t,e){p(this,{type:n,target:t,state:o(t),kind:e,last:null})},function(){for(var t=i(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?s("keys"===e?r.key:"values"===e?r.value:[r.key,r.value],!1):(t.target=null,s(void 0,!0))},r?"entries":"values",!r,!0),c(e)}},sft}!function(){if(nft)return dft;nft=1;var t=zut(),e=Hot(),r=int(),n=Krt(),o=function(){if(tft)return Qlt;tft=1;var t=Krt();return Qlt=t}(),i=Znt(),u=Mut(),a=Wot(),s=xlt(),c=aot(),l=dot(),f=Yot(),d=ont(),p=aut().f,h=Qot().f,v=lit().f,g=function(){if(rft)return eft;rft=1;var t=Znt();return eft=t(1.1.valueOf)}(),y=Mct().trim,m="Number",b=n[m],E=o[m],w=b.prototype,S=n.TypeError,C=i("".slice),D=i("".charCodeAt),O=u(m,!b(" 0o1")||!b("0b1")||b("+0x1")),A=function(t){var e,r=arguments.length<1?0:b(function(t){var e=f(t,"number");return"bigint"==typeof e?e:function(t){var e,r,n,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===(r=D(c,2))||120===r)return NaN}else if(48===e){switch(D(c,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=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,n)}return+c}(e)}(t));return c(w,e=this)&&d(function(){g(e)})?s(Object(r),this,A):r};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 n,o=r?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,n=o[i])&&!a(t,n)&&v(t,n,h(e,n))};e&&E&&x(o[m],E),(O||e)&&x(o[m],b)}(),fft||(fft=1,lft||(lft=1,Tlt()("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},hft())));var vft=function(){function t(){this.title=LF("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||!dv.isCollapsed(e)||null==CB.getSelectedNodeByType(t,"table-cell")},t.prototype.exec=function(t,e){if(!this.isDisabled(t)){var r=mat(Kh.nodes(t,{match:function(t){return CB.checkNodeType(t,"table-cell")},universal:!0}),1),n=mat(r[0],2),o=n[0],i=n[1],u=CB.getParentNode(t,o),a=(null==u?void 0:u.children.length)||0;if(!u||a<=1)zv.removeNodes(t,{mode:"highest"});else if(null!=CB.getParentNode(t,u)){var s=Xat(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=mat(s[l][f],1),p=mat(d[0],2)[1];if(ov.equals(i,p)){c=f;break t}}Kh.withoutNormalizing(t,function(){for(var e,r,n=new Set,o=new Set,i=0;i<s.length;i+=1)if(s[i]&&s[i][c]){var u=mat(s[i][c],2),a=mat(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=mat(s[g][y],1),b=mat(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);zv.setNodes(t,{rowSpan:D,colSpan:x},{at:w})}}else n.add(v)}var T=Array.from(n);T.sort(function(t,e){var r=t.split(",").map(Number),n=e.split(",").map(Number);return r[r.length-2]!==n[n.length-2]?n[n.length-2]-r[r.length-2]:n[n.length-1]-r[r.length-1]});try{for(var N=yat(T),k=N.next();!k.done;k=N.next()){var P=k.value.split(",").map(Number);try{Kh.hasPath(t,P)&&zv.removeNodes(t,{at:P})}catch(t){console.warn("删除单元格失败:",P,t)}}}catch(t){e={error:t}}finally{try{k&&!k.done&&(r=N.return)&&r.call(N)}finally{if(e)throw e.error}}var B=mat(Kh.nodes(t,{match:function(t){return CB.checkNodeType(t,"table")},universal:!0}),1)[0];if(B){var I=mat(B,2),F=I[0],R=I[1],L=F.columnWidths,_=bat([],mat(void 0===L?[]:L),!1);_.splice(c,1),zv.setNodes(t,{columnWidths:_},{at:R})}})}}},t}(),gft=function(){function t(){this.title=LF("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||!dv.isCollapsed(e)||null==CB.getSelectedNodeByType(t,"table-row")},t.prototype.exec=function(t,e){if(!this.isDisabled(t)){var r=mat(Kh.nodes(t,{match:function(t){return CB.checkNodeType(t,"table-row")},universal:!0}),1),n=mat(r[0],2),o=n[0],i=n[1],u=CB.getParentNode(t,o);if(((null==u?void 0:u.children.length)||0)<=1)zv.removeNodes(t,{mode:"highest"});else{var a=mat(Kh.nodes(t,{match:function(t){return CB.checkNodeType(t,"table-cell")},universal:!0}),1),s=mat(a[0],2)[1],c=Xat(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=mat(c[f][d],1),h=mat(p[0],2)[1];if(ov.equals(s,h)){l=f;break t}}Kh.withoutNormalizing(t,function(){for(var e,r,n=[],o=0;o<c[l].length;o+=1){var u=mat(c[l][o],2),a=mat(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=mat(c[h][o],1),g=mat(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)zv.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 vat({},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),n.push({cell:D,columnIndex:o})}else zv.setNodes(t,{rowSpan:Math.max(w-1,1),colSpan:C},{at:m});else zv.setNodes(t,{rowSpan:Math.max(w-1,1),colSpan:C},{at:m})}}if(zv.removeNodes(t,{at:i}),n.length>0){var O=i;try{n.sort(function(t,e){return t.columnIndex-e.columnIndex});try{for(var A=yat(n),x=A.next();!x.done;x=A.next()){var T=x.value,N=T.cell,k=T.columnIndex;try{var P=bat(bat([],mat(O),!1),[k],!1);zv.insertNodes(t,N,{at:P})}catch(e){try{var B=mat(Kh.node(t,O),1)[0].children.length,I=bat(bat([],mat(O),!1),[B],!1);zv.insertNodes(t,N,{at:I})}catch(t){console.warn("插入新单元格失败:",t)}}}}catch(t){e={error:t}}finally{try{x&&!x.done&&(r=A.return)&&r.call(A)}finally{if(e)throw e.error}}}catch(t){console.warn("插入新单元格失败:",t)}}})}}},t}(),yft=function(){function t(){this.title=LF("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==CB.getSelectedNodeByType(t,"table")},t.prototype.exec=function(t,e){this.isDisabled(t)||zv.removeNodes(t,{mode:"highest"})},t}(),mft=function(){function t(){this.title=LF("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=CB.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||!dv.isCollapsed(e)||null==CB.getSelectedNodeByType(t,"table")},t.prototype.exec=function(t,e){if(!this.isDisabled(t)){var r={width:e?"auto":"100%"};zv.setNodes(t,r,{mode:"highest"})}},t}();function bft(t){var e=t.children||[];return 0===e.length?[]:(e[0]||{}).children||[]}function Eft(t){return bft(t).every(function(t){return!!t.isHeader})}var wft,Sft,Cft,Dft=function(){function t(){this.title=LF("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(!dv.isCollapsed(e))return!0;var r=CB.getSelectedNodeByType(t,"table");if(null==r)return!0;try{var n=mat(Kh.nodes(t,{match:function(t){return CB.checkNodeType(t,"table-cell")},universal:!0}),1)[0];if(!n)return!0;for(var o=mat(n,2)[1],i=Xat(t),u=-1,a=0;a<i.length;a+=1){for(var s=0;s<i[a].length;s+=1){var c=mat(i[a][s],1),l=mat(c[0],2)[1];if(ov.equals(o,l)){u=s;break}}if(-1!==u)break}if(-1===u)return!0;var f=r.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 r=mat(Kh.nodes(t,{match:function(t){return CB.checkNodeType(t,"table-cell")},universal:!0}),1),n=mat(r[0],2),o=n[0],i=n[1],u=CB.getParentNode(t,o);if(null!=u){var a=CB.getParentNode(t,u);if(null!=a){for(var s=Xat(t),c=0,l=0;l<s.length;l+=1)for(var f=0;f<s[l].length;f+=1){var d=mat(s[l][f],1),p=mat(d[0],2)[1];if(ov.equals(i,p)){c=f;break}}Kh.withoutNormalizing(t,function(){for(var e=new Set,r=new Set,n=0;n<s.length;n+=1)if(s[n]&&s[n][c]){var o=mat(s[n][c],2);mat(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=n-(f-1),h=c-(u-1);if(p<0||p>=s.length||!s[p]||!s[p][h])continue;var v=mat(s[p][h],1),g=mat(v[0],2),y=g[0],m=g[1],b=m.join(",");if(e.has(b))r.add(n);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||zv.setNodes(t,{colSpan:C},{at:m});for(var D=0;D<w;D+=1)r.add(p+D)}}}for(n=0;n<s.length;n+=1)if(!r.has(n)&&s[n]&&s[n][c]){var O={type:"table-cell",children:[{text:""}]};0===n&&Eft(a)&&(O.isHeader=!0);var A=mat(s[n][c],1),x=mat(A[0],2)[1];zv.insertNodes(t,O,{at:x})}var T=mat(Kh.nodes(t,{match:function(t){return CB.checkNodeType(t,"table")},universal:!0}),1)[0];if(T){var N=mat(T,2),k=N[0],P=N[1],B=k.columnWidths,I=void 0===B?[]:B,F=bat([],mat(I),!1),R=t.getMenuConfig("insertTable").minWidth,L=void 0===R?60:R,_=I[c]||parseInt(L,10)||60,j=Math.floor(_/2),M=_-j;F.splice(c,0,j),F[c+1]=M,zv.setNodes(t,{columnWidths:F},{at:P})}})}}}},t}(),Oft=function(){function t(){this.title=LF("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||!dv.isCollapsed(e)||null==CB.getSelectedNodeByType(t,"table")},t.prototype.exec=function(t,e){var r;if(!this.isDisabled(t)){var n=mat(Kh.nodes(t,{match:function(t){return CB.checkNodeType(t,"table-cell")},universal:!0}),1),o=mat(n[0],2)[1],i=Xat(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=mat(i[a][s],1),l=mat(c[0],2)[1];if(ov.equals(o,l)){u=a;break t}}var f=(null===(r=i[u])||void 0===r?void 0:r.length)||0;0!==f&&Kh.withoutNormalizing(t,function(){for(var e=u+1,r=e>=0&&e<i.length,n=[],a=0;r&&a<i[u].length;a+=1){var s=mat(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=mat(i[d][a],1),h=mat(p[0],2),v=h[0],g=h[1],y=v.rowSpan||1;n.push(a),v.hidden||zv.setNodes(t,{rowSpan:y+1},{at:g})}}for(var m={type:"table-row",children:[]},b=0;b<f;b+=1)n.includes(b)||m.children.push({type:"table-cell",children:[{text:""}]});var E=ov.parent(o),w=ov.next(E);zv.insertNodes(t,m,{at:w})})}},t}(),Aft={};!function(){if(Cft)return Aft;Cft=1;var t=zut(),e=function(){if(Sft)return wft;Sft=1;var t=Got(),e=eut(),r=nut();return wft=function(n){for(var o=t(this),i=r(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++]=n;return o},wft}(),r=Rat();t({target:"Array",proto:!0},{fill:e}),r("fill")}();var xft,Tft,Nft,kft,Pft,Bft={};function Ift(){if(kft)return Nft;kft=1;var t=ant(),e=Wot(),r=aot(),n=function(){if(Tft)return xft;Tft=1;var t=Krt(),e=ont(),r=t.RegExp,n=!e(function(){var t=!0;try{r(".","d")}catch(e){t=!1}var e={},n="",o=t?"dgimsy":"gimsy",i=function(t,r){Object.defineProperty(e,t,{get:function(){return n+=r,!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(r.prototype,"flags").get.call(e)!==o||n!==o});return xft={correct:n}}(),o=Lst(),i=RegExp.prototype;return Nft=n.correct?function(t){return t.flags}:function(u){return n.correct||!r(i,u)||e(u,"flags")?u.flags:t(o,u)}}!function(){if(Pft)return Bft;Pft=1;var t=Tit().PROPER,e=Rit(),r=cit(),n=Wat(),o=ont(),i=Ift(),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=r(this);return"/"+n(t.source)+"/"+n(i(t))},{unsafe:!0})}();var Fft,Rft,Lft=function(){function t(){this.title=LF("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||!dv.isCollapsed(e)||!!CB.getSelectedElems(t).some(function(e){var r=CB.getNodeType(e);return"pre"===r||"table"===r||"list-item"===r||!!t.isVoid(e)})},t.prototype.getPanelContentElem=function(t){var e=this;if(this.$content)return this.$content[0];for(var r=og('<div class="w-e-panel-content-table"></div>'),n=og("<span>0 &times; 0</span>"),o=og("<table></table>"),i=0;i<10;i+=1){for(var u=og("<tr></tr>"),a=0;a<10;a+=1){var s=og("<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 r=og(e).dataset(),i=r.x,u=r.y;n[0].innerHTML="".concat(i+1," &times; ").concat(u+1),o.children().each(function(t){og(t).children().each(function(t){var e=og(t),r=e.dataset(),n=r.x,o=r.y;n<=i&&o<=u?e.addClass("active"):e.removeClass("active")})})}}),s.on("click",function(r){r.preventDefault();var n=r.target;if(null!=n){var o=og(n).dataset(),i=o.x,u=o.y;e.insertTable(t,u+1,i+1)}})}o.append(u)}return r.append(o),r.append(n),this.$content=r,r[0]},t.prototype.insertTable=function(t,e,r){var n=parseInt(e,10),o=parseInt(r,10);if(n&&o&&!(n<=0||o<=0)){CB.isSelectedEmptyParagraph(t)&&zv.removeNodes(t,{mode:"highest"}),0===t.children.length&&zv.insertNodes(t,{type:"paragraph",children:[{text:""}]},{mode:"highest"});var i=function(t,e,r){for(var n,o=[],i=t.getMenuConfig("insertTable"),u=i.minWidth,a=void 0===u?60:u,s=i.tableFullWidth,c=i.tableHeader,l=Array(r).fill(parseInt(a,10)||60),f=0;f<e;f+=1){for(var d=[],p=0;p<r;p+=1){var h={type:"table-cell",children:[{text:""}]};0===f&&(h.isHeader=null===(n=null==c?void 0:c.selected)||void 0===n||n),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,n,o);zv.insertNodes(t,i,{mode:"highest"})}},t}();Rft||(Rft=1,Fft||(Fft=1,Tlt()("Map",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},hft())));var _ft,jft={isInTable:function(t,e){return void 0===e&&(e={}),!!mat(Kh.nodes(t,{match:Kat(t,"table"),at:e.at}),1)[0]},selection:function(t){var e,r,n,o,i,u,a,s;return gat(this,function(c){switch(c.label){case 0:e=Ult.get(t),r=0,c.label=1;case 1:if(!(e&&r<e.length))return[3,4];for(n=[],o=0;o<e[r].length;o+=1)i=mat(e[r][o],2),u=i[0],a=i[1],s=a.ltr,1===a.ttb&&n.push(u),o+=s-1;return[4,n];case 2:c.sent(),c.label=3;case 3:return r+=1,[3,1];case 4:return[2]}})},unselect:function(t){Vlt.delete(t),Ult.delete(t)},isSelected:function(t,e){var r=Vlt.get(t);return!!r&&r.has(e)}},Mft=function(){function t(){this.title=LF("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),jft.unselect(t))},t.prototype.canMerge=function(t){var e=Ult.get(t);if(!e||!e.length)return!1;var r=mat(e[e.length-1][e[e.length-1].length-1],1),n=mat(r[0],2)[1],o=mat(e[0][0],1);return!!Yat(t,[mat(o[0],2)[1],n],"table")},t.prototype.merge=function(t){if(this.canMerge(t)){var e=Ult.get(t);if(e&&e.length){var r=mat(e[0][0],1),n=mat(r[0],2)[1],o=mat(tv.children(t,n,{reverse:!0}),1),i=mat(o[0],2)[1];Kh.withoutNormalizing(t,function(){for(var r,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=mat(e[g][y],2),b=mat(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,k=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,k)}}var P=p-d+1,B=v-h+1;try{for(var I=yat(l),F=I.next();!F.done;F=I.next())w=mat(F.value,2)[1].path,ov.equals(n,w)||f.push(w)}catch(t){r={error:t}}finally{try{F&&!F.done&&(o=I.return)&&o.call(I)}finally{if(r)throw r.error}}f.sort(function(t,e){for(var r=0;r<Math.min(t.length,e.length);r+=1)if(t[r]!==e[r])return e[r]-t[r];return e.length-t.length});try{for(var R=yat(f),L=R.next();!L.done;L=R.next()){w=L.value;try{if(!Kh.hasPath(t,w))continue;try{for(var _=(s=void 0,yat(tv.children(t,w,{reverse:!0}))),j=_.next();!j.done;j=_.next()){var M=mat(j.value,2)[1];zv.moveNodes(t,{to:ov.next(i),at:M})}}catch(t){s={error:t}}finally{try{j&&!j.done&&(c=_.return)&&c.call(_)}finally{if(s)throw s.error}}zv.removeNodes(t,{at:w})}catch(t){}}}catch(t){u={error:t}}finally{try{L&&!L.done&&(a=R.return)&&a.call(R)}finally{if(u)throw u.error}}zv.setNodes(t,{rowSpan:P,colSpan:B},{at:n})})}}},t}(),zft={};!function(){if(_ft)return zft;_ft=1;var t=zut(),e=Hut(),r=Wut(),n=iot(),o=eut(),i=nut(),u=not(),a=Uut(),s=Kot(),c=Kut(),l=Clt(),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,(r(c)&&(c===p||e(c.prototype))||n(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 Hft,$ft,Uft,Vft,Gft,Wft,qft,Kft,Yft,Xft,Jft,Zft={};function Qft(){if($ft)return Hft;$ft=1,Mst();var t=ant(),e=Rit(),r=jst(),n=ont(),o=Kot(),i=fit(),u=o("species"),a=RegExp.prototype;return Hft=function(s,c,l,f){var d=o(s),p=!n(function(){var t={};return t[d]=function(){return 7},7!==""[s](t)}),h=p&&!n(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,n,o,i,u){var s=n.exec;return s===r||s===a.exec?p&&!u?{done:!0,value:t(v,n,o,i)}:{done:!0,value:t(e,o,n,i)}:{done:!1}});e(String.prototype,s,g[0]),e(a,d,g[1])}f&&i(a[d],"sham",!0)}}function tdt(){if(Wft)return Gft;Wft=1;var t=cit(),e=function(){if(Vft)return Uft;Vft=1;var t=Wut(),e=pot(),r=TypeError;return Uft=function(n){if(t(n))return n;throw new r(e(n)+" is not a constructor")}}(),r=eot(),n=Kot()("species");return Gft=function(o,i){var u,a=t(o).constructor;return void 0===a||r(u=t(a)[n])?i:e(u)}}function edt(){if(Kft)return qft;Kft=1;var t=dct().charAt;return qft=function(e,r,n){return r+(n?t(e,r).length:1)}}function rdt(){if(Xft)return Yft;Xft=1;var t=ant(),e=cit(),r=oot(),n=Qnt(),o=jst(),i=TypeError;return Yft=function(u,a){var s=u.exec;if(r(s)){var c=t(s,u,a);return null!==c&&e(c),c}if("RegExp"===n(u))return t(o,u,a);throw new i("RegExp#exec called on incompatible receiver")}}!function(){if(Jft)return Zft;Jft=1;var t=ant(),e=Znt(),r=Qft(),n=cit(),o=iot(),i=rot(),u=tdt(),a=edt(),s=rut(),c=Wat(),l=vot(),f=rdt(),d=_st(),p=ont(),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 r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[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;r("split",function(e,r,d){var p="0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t(r,this,e,n)}:r;return[function(r,n){var u=i(this),a=o(r)?l(r,e):void 0;return a?t(a,r,u,n):t(p,c(u),r,n)},function(t,e){var o=n(this),i=c(t);if(!b){var l=d(p,o,i,e,p!==r);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 ndt,odt=function(){function t(){this.title=LF("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=mat(Kh.nodes(t,{match:function(t){return CB.checkNodeType(t,"table-cell")}}),1)[0];if(!e)return!0;var r=mat(e,1)[0],n=r.rowSpan,o=void 0===n?1:n,i=r.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 r=mat(Kh.nodes(t,{match:Kat(t,"table","th","td"),at:e.at}),2),n=r[0],o=r[1];if(n&&o){var i=Eft(mat(n,1)[0]),u=mat(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||Kh.withoutNormalizing(t,function(){zv.setNodes(t,{rowSpan:1,colSpan:1},{at:s});for(var e=1;e<d;e+=1){var r={type:"table-cell",children:[{text:""}]};0===s[s.length-2]&&i&&(r.isHeader=!0);var n=s.slice(0,-1),o=s[s.length-1]+e,u=bat(bat([],mat(n),!1),[o],!1);try{zv.insertNodes(t,r,{at:u})}catch(e){try{var a=mat(Kh.node(t,n),1)[0].children.length,c=bat(bat([],mat(n),!1),[a],!1);zv.insertNodes(t,r,{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=bat(bat([],mat(s.slice(0,-2)),!1),[p],!1);try{var v=mat(Kh.node(t,h),1)[0];if(!v){console.warn("目标行 ".concat(p," 不存在"));continue}for(e=0;e<d;e+=1){r={type:"table-cell",children:[{text:""}]},o=s[s.length-1]+e,u=bat(bat([],mat(h),!1),[o],!1);try{var g=v.children.length;if(o>=g){var y=bat(bat([],mat(h),!1),[g],!1);zv.insertNodes(t,r,{at:y})}else zv.insertNodes(t,r,{at:u})}catch(e){try{var m=v.children.length;c=bat(bat([],mat(h),!1),[m],!1),zv.insertNodes(t,r,{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}(),idt=function(){function t(){this.title=LF("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=CB.getSelectedNodeByType(t,"table");return null!=e&&Eft(e)},t.prototype.isActive=function(t){return!!this.getValue(t)},t.prototype.isDisabled=function(t){var e=t.selection;return null==e||!dv.isCollapsed(e)||null==CB.getSelectedNodeByType(t,"table")},t.prototype.exec=function(t,e){if(!this.isDisabled(t)){var r=!e,n=CB.getSelectedNodeByType(t,"table");null!=n&&bft(n).forEach(function(e){return zv.setNodes(t,{isHeader:r},{at:CB.findPath(t,e)})})}},t}(),udt={key:"insertTable",factory:function(){return new Lft}},adt={key:"deleteTable",factory:function(){return new yft}},sdt={key:"insertTableRow",factory:function(){return new Oft}},cdt={key:"deleteTableRow",factory:function(){return new gft}},ldt={key:"insertTableCol",factory:function(){return new Dft}},fdt={key:"deleteTableCol",factory:function(){return new vft}},ddt={key:"tableHeader",factory:function(){return new idt}},pdt={key:"tableFullWidth",factory:function(){return new mft}},hdt={key:"mergeTableCell",factory:function(){return new Mft}},vdt={key:"splitTableCell",factory:function(){return new odt}},gdt={key:"setTableProperty",factory:function(){return new Glt}},ydt={key:"setTableCellProperty",factory:function(){return new Wlt}},mdt={};!function(){if(ndt)return mdt;ndt=1;var t=zut(),e=cat().filter;t({target:"Array",proto:!0,forced:!Kut()("filter")},{filter:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}})}();var bdt,Edt,wdt,Sdt,Cdt,Ddt={};!function(){if(Cdt)return Ddt;Cdt=1;var t=function(){if(Edt)return bdt;Edt=1;var t=unt(),e=Function.prototype,r=e.apply,n=e.call;return bdt="object"==typeof Reflect&&Reflect.apply||(t?n.bind(r):function(){return n.apply(r,arguments)}),bdt}(),e=ant(),r=Znt(),n=Qft(),o=ont(),i=cit(),u=oot(),a=iot(),s=tut(),c=rut(),l=Wat(),f=rot(),d=edt(),p=vot(),h=function(){if(Sdt)return wdt;Sdt=1;var t=Znt(),e=Got(),r=Math.floor,n=t("".charAt),o=t("".replace),i=t("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,a=/\$([$&'`]|\d{1,2})/g;return wdt=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(n(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=r(a/10);return 0===d?e:d<=h?void 0===l[d-1]?n(o,1):l[d-1]+n(o,1):e}u=l[a-1]}return void 0===u?"":u})}}(),v=Ift(),g=rdt(),y=Kot()("replace"),m=Math.max,b=Math.min,E=r([].concat),w=r([].push),S=r("".indexOf),C=r("".slice),D=function(t){return void 0===t?t:String(t)},O="$0"==="a".replace(/./,"$0"),A=!!/./[y]&&""===/./[y]("a","$0");n("replace",function(r,n,o){var O=A?"$":"$0";return[function(t,r){var o=f(this),i=a(t)?p(t,y):void 0;return i?e(i,t,o,r):e(n,l(o),t,r)},function(e,r){var a=i(this),f=l(e);if("string"==typeof r&&-1===S(r,O)&&-1===S(r,"$<")){var p=o(n,a,f,r);if(p.done)return p.value}var y=u(r);y||(r=l(r));var A,x=l(v(a)),T=-1!==S(x,"g");T&&(A=-1!==S(x,"u"),a.lastIndex=0);for(var N,k=[];null!==(N=g(a,f))&&(w(k,N),T);)""===l(N[0])&&(a.lastIndex=d(f,c(a.lastIndex),A));for(var P="",B=0,I=0;I<k.length;I++){for(var F,R=l((N=k[I])[0]),L=m(b(s(N.index),f.length),0),_=[],j=1;j<N.length;j++)w(_,D(N[j]));var M=N.groups;if(y){var z=E([R],_,L,f);void 0!==M&&w(z,M),F=l(t(r,void 0,z))}else F=h(R,f,L,_,M,r);L>=B&&(P+=C(f,B,L)+F,B=L+R.length)}return P+C(f,B)}]},!!o(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})||!O||A)}();var Odt,Adt,xdt,Tdt,Ndt,kdt,Pdt,Bdt,Idt={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(t,e,r){var n=og(t);0===(e=e.filter(function(t){return"paragraph"===CB.getNodeType(t)||!!wv.isText(t)||!!r.isInline(t)})).length&&(e=[{text:n.text().replace(/\s+/gm," ")}]);var o=parseInt(n.attr("colSpan")||"1",10),i=parseInt(n.attr("rowSpan")||"1",10),u="none"===Wct(n,"display"),a=n.attr("width")||"auto";return{type:"table-cell",isHeader:"th"===Gct(n),colSpan:o,rowSpan:i,width:a,children:e,hidden:u}}},Fdt={selector:"tr:not([data-w-e-type])",parseElemHtml:function(t,e,r){for(var n=[],o=0;o<e.length;o+=1){var i=e[o];if("table-cell"===CB.getNodeType(i)){var u=i;if(u.hidden)continue;n.push(u)}}return{type:"table-row",children:n}}},Rdt={selector:"table:not([data-w-e-type])",parseElemHtml:function(t,e,r){var n,o,i=og(t),u="auto";"100%"===Wct(i,"width")&&(u="100%"),"100%"===i.attr("width")&&(u="100%");var a={type:"table",width:u,height:parseInt(Wct(i,"height")||"0",10),children:e.filter(function(t){return"table-row"===CB.getNodeType(t)})},s=(null===(n=i.find("tr")[0])||void 0===n?void 0:n.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(og(t).attr("colSpan")||"1",10),r=parseInt(Wct(og(t),"width")||"90",10);f.push(r);for(var n=1;n<e;n+=1)f.push(90)}),a.columnWidths=f}return a}},Ldt=null===(Odt=null===window||void 0===window?void 0:window.getComputedStyle(document.documentElement))||void 0===Odt?void 0:Odt.getPropertyValue("--w-e-textarea-border-color"),_dt={};function jdt(t){var e=t.selection;if(null==e)return!1;var r=mat(Kh.nodes(t,{match:function(t){return CB.checkNodeType(t,"table-cell")}}),1)[0];if(r){var n=mat(r,2)[1],o=Kh.start(t,n);if(sv.equals(e.anchor,o))return!0}return!1}function Mdt(t,e){var r=e.offset;if(0===r)return!1;var n=Kh.node(t,e);if(!wv.isText(n[0]))return!1;var o=tv.string(n[0]);return!(r>=o.length)&&"\n"===o[r-1]&&"\r"===o[r]}function zdt(t,e,r){var n=t.selection;if(null==n||"line"===e)return!1;var o=mat(Kh.nodes(t,{match:function(t){return CB.checkNodeType(t,"table-cell")}}),1)[0],i=n.anchor;if("backward"===r&&0===n.anchor.offset&&(i=Kh.before(t,n)),"forward"===r&&Kh.isEnd(t,n.anchor,n.anchor.path)&&(i=Kh.after(t,n)),null==i)return!1;var u=Kh.above(t,{at:i,match:function(t){return CB.checkNodeType(t,"table-cell")}});if(null==u||null==o||!ov.equals(u[1],o[1]))return!1;var a=Kh.node(t,i);if(!wv.isText(a[0])||a[0].text.length<2)return!1;var s="backward"===r?[i.offset-2,i.offset]:[i.offset,i.offset+2],c=tv.string(a[0]);return"\n\r"===c.slice.apply(c,bat([],mat(s),!1))?(zv.insertText(t,c.slice(0,s[0])+c.slice(s[1]),{at:{anchor:Kh.start(t,i.path),focus:Kh.end(t,i.path)}}),!0):!!Mdt(t,i)&&(zv.insertText(t,c.slice(0,n.anchor.offset-1)+c.slice(n.anchor.offset+1),{at:{anchor:Kh.start(t,i.path),focus:Kh.end(t,i.path)}}),!0)}function Hdt(t,e){return!!bat([],mat(Kh.nodes(t,{at:e,match:function(t){return"table"===CB.getNodeType(t)}})),!1).find(function(){return!0})}!function(){if(kdt)return _dt;kdt=1;var t=zut(),e=function(){if(xdt)return Adt;xdt=1;var t=Znt(),e=rot(),r=Wat(),n=/"/g,o=t("".replace);return Adt=function(t,i,u,a){var s=r(e(t)),c="<"+i;return""!==u&&(c+=" "+u+'="'+o(r(a),n,"&quot;")+'"'),c+">"+s+"</"+i+">"}}(),r=function(){if(Ndt)return Tdt;Ndt=1;var t=ont();return Tdt=function(e){return t(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})}}();t({target:"String",proto:!0,forced:r("anchor")},{anchor:function(t){return e(this,"a","name",t)}})}(),Bdt||(Bdt=1,Pdt||(Pdt=1,Tlt()("WeakSet",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Nlt())));var $dt={selector:"table",preParseHtml:function(t){var e=og(t);if("table"!==Gct(e))return t;var r=e.find("tbody");if(0===r.length)return t;var n=e.find("tr");e.append(n),r.remove();for(var o=e.find("td, th"),i=0;i<o.length;i+=1){var u=o[i],a=(c=og(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=og(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 r=e.trim();return r&&"&nbsp;"!==r?e:""}),c.html(l)}return e[0]}};function Udt(t){var e,r,n=[],o=0;try{for(var i=yat(t),u=i.next();!u.done;u=i.next())o+=u.value,n.push(o)}catch(t){e={error:t}}finally{try{u&&!u.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}return n}function Vdt(t){var e,r,n=[],o=t.reduce(function(t,e){return t+e},0);try{for(var i=yat(t),u=i.next();!u.done;u=i.next()){var a=u.value;n.push(a/o)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}return n}var Gdt=null,Wdt=!1,qdt=!1,Kdt=0,Ydt=0,Xdt=null,Jdt=og(window);function Zdt(t,e,r){var n=t.reduce(function(t,e){return t+e},0),o=t[e],i=Math.max(10,r),u=n-o+i;if(u<10*t.length)return t.map(function(){return 10});var a=n-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,r){if(r===e)return Math.floor(100*i)/100;var n=t*l;return Math.max(10,Math.floor(100*n)/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}Jdt.on("mousedown",function(t){var e=t.target;if(e.closest('[data-block-type="table-cell"]'))Wdt=!0;else if("DIV"===e.tagName&&e.closest(".column-resizer-item")){if(null===Xdt)return;var r=mat(Kh.nodes(Xdt,{match:Kat(Xdt,"table")}),1),n=mat(r[0],1)[0],o=n.columnWidths,i=void 0===o?[]:o,u=n.resizingIndex,a=void 0===u?-1:u;qdt=!0;var s=t.clientX;Kdt=s,Ydt=i[a],document.body.style.cursor="col-resize",t.preventDefault()}Jdt.on("mousemove",Qdt),Jdt.on("mouseup",tpt)});var Qdt=Jg(function(t){if(qdt&&null!==Xdt){t.preventDefault();var e,r=t.clientX,n=r-Kdt,o=mat(Kh.nodes(Xdt,{match:Kat(Xdt,"table")}),1),i=mat(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=Zdt(a,c,Ydt+n);else{var f=document.querySelector(".table");e=f?function(t,e,r,n){var o=bat([],mat(t),!1);if(e<0||e>=t.length)return o;var i=0===e?0:n[e-1],u=i+10,a=(e+1<t.length?n[e+1]:n[e])-10,s=Math.max(u,Math.min(a,r))-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,r-f.getBoundingClientRect().left,Udt(a)):function(t,e,r){var n=bat([],mat(t),!1),o=e+1;if(o>=n.length)return n;var i=n[e],u=n[o],a=i+u-10,s=i+r,c=i+u-(s=Math.max(10,Math.min(a,s)));return n[e]=Math.floor(100*s)/100,n[o]=Math.floor(100*c)/100,n}(a,c,n)}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=Zdt(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)})}}}}zv.setNodes(Xdt,{columnWidths:e},{mode:"highest"})}},100);function tpt(t){Wdt=!1,qdt=!1,Xdt=null,document.body.style.cursor="",Jdt.off("mousemove",Qdt),Jdt.off("mouseup",tpt)}function ept(t,e){"mouseenter"===e.type?zv.setNodes(t,{isResizing:!0},{mode:"highest"}):zv.setNodes(t,{isResizing:!1},{mode:"highest"})}var rpt,npt,opt,ipt={type:"table",renderElem:function(t,e,r){var n=function(t,e){if(t.isDisabled())return!1;var r=t.selection;if(null==r)return!0;if(dv.isCollapsed(r))return!0;var n=r.anchor,o=r.focus,i=CB.findPath(t,e),u=Kh.start(t,i),a=Kh.end(t,i),s=sv.compare(n,a)<=0&&sv.compare(n,u)>=0,c=sv.compare(o,a)<=0&&sv.compare(o,u)>=0;return!!(s&&c&&ov.equals(n.path.slice(0,3),o.path.slice(0,3)))}(r,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=CB.isNodeSelected(r,t),g=mat(jft.selection(r),1)[0],y=Vdt(c),m=Ry("div",{className:"table-container","data-selected":v,on:{mousedown:function(e){if("DIV"===e.target.tagName&&e.preventDefault(),!r.isDisabled()){e.target.closest('[data-block-type="table-cell"]')&&jft.unselect(r);var n=CB.findPath(r,t),o=Kh.start(r,n),i=r.selection;null!=i?i.anchor.path[0]!==n[0]&&"DIV"===e.target.tagName&&r.select(o):r.select(o)}}}},Ry("table",{width:u,contentEditable:n,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:Kg(function(e){return function(t,e,r,n){if(!t.isDisabled()&&!Wdt&&!qdt){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=r.clientX,d=r.target;if(NP(d)&&f>(v=d.getBoundingClientRect()).x+5&&f<v.x+v.width-5)return void(c&&zv.setNodes(t,{isHoverCellBorder:!1,resizingIndex:-1},{mode:"highest"}));if(NP(d)){var p=d.closest(".table");if(p)for(var h=r.clientX,v=p.getBoundingClientRect(),g=Udt("100%"===u?Vdt(s).map(function(t){return t*n}):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 zv.setNodes(t,{isHoverCellBorder:!0,resizingIndex:y},{mode:"highest"})}}!0===c&&zv.setNodes(t,{isHoverCellBorder:!1,resizingIndex:-1},{mode:"highest"})}}(r,t,e,f)},25)}},Ry("colgroup",{contentEditable:!1},c.map(function(t){return Ry("col",{width:t})})),Ry("tbody",null,e)),Ry("div",{className:"column-resizer",contentEditable:!1},c.map(function(t,e){var n=t;return"100%"===u&&(n=y[e]*f),Ry("div",{className:"column-resizer-item",style:{minWidth:"".concat(n,"px")}},Ry("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 ept(r,t)},mouseleave:function(t){return ept(r,t)},mousedown:function(t){return function(t){qdt||(Xdt=t)}(r)}}},Ry("div",{className:"resizer-line"})))}))),b=vy("div",{hook:{insert:function(t){var e=t.elm;return function(t,e){if(NP(e)){var r=e.querySelector("table");r&&(Gdt=new ResizeObserver(function(e){var r=mat(e,1)[0].contentRect;zv.setNodes(t,{scrollWidth:r.width,height:r.height},{mode:"highest"})}),Gdt.observe(r))}}(r,e)},destroy:function(){Gdt&&(null==Gdt||Gdt.disconnect(),Gdt=null)}}},m);return b}},upt={type:"table-row",renderElem:function(t,e,r){return Ry("tr",null,e)}},apt={type:"table-cell",renderElem:function(t,e,r){var n=function(t,e){var r=CB.getParentNode(t,e);if(null==r)return!1;var n=CB.getParentNode(t,r);return null!=n&&bft(n).some(function(t){return t===e})}(r,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 Ry(n&&l?"th":"td",{colSpan:u,rowSpan:s,"data-block-type":"table-cell",className:jft.isSelected(r,t)?"w-e-selected":"",style:{display:d?"none":""}},e)}},spt={};function cpt(t,e){null==t.data&&(t.data={});var r=t.data;null==r.style&&(r.style={}),Object.assign(r.style,e)}!function(){if(opt)return spt;opt=1;var t=zut(),e=function(){if(npt)return rpt;npt=1;var t=int(),e=Znt(),r=ant(),n=ont(),o=Iat(),i=_ut(),u=Xnt(),a=Got(),s=tot(),c=Object.assign,l=Object.defineProperty,f=e([].concat);return rpt=!c||n(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={},r={},n=Symbol("assign detection"),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach(function(t){r[t]=t}),7!==c({},e)[n]||o(c({},r)).join("")!==i})?function(e,n){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&&!r(h,g,v)||(c[v]=g[v]);return c}:c,rpt}();t({target:"Object",stat:!0,arity:2,forced:Object.assign!==e},{assign:e})}();var lpt={renderStyle:function(t,e){var r,n;if(!$h.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?cpt(null===(n=(null===(r=f.children)||void 0===r?void 0:r[0]).children)||void 0===n?void 0:n[0],l):cpt(f,l),f},styleToHtml:function(t,e){if("table"!==t.type&&"table-cell"!==t.type)return e;var r=t.backgroundColor,n=t.borderWidth,o=t.borderStyle,i=t.borderColor,u=t.textAlign;if(!(r||n||o||i||u))return e;var a=og(e);return r&&a.css("background-color",r),n&&a.css("border-width","".concat(n,"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,r){if(!["TABLE","TD","TH"].includes(t.tagName))return e;var n=og(t),o=e,i=Wct(n,"background-color");i||(i=Wct(n,"background")),i&&(o.backgroundColor=i);var u=Wct(n,"border");u||"TD"!==t.tagName||(u="1px solid ".concat(Ldt));var a=mat((null==u?void 0:u.split(" "))||[],3),s=a[0],c=a[1],l=a[2];(s=Wct(n,"border-width")||s)&&(o.borderWidth=s.replace(/[^\d]/g,"")),(c=Wct(n,"border-style")||c)&&(o.borderStyle="none"===c?"":c),(l=Wct(n,"border-color")||l)&&(o.borderColor=l);var f=Wct(n,"text-align");return(f=Wct(n,"text-align")||f)&&(o.textAlign=f),e},renderElems:[ipt,upt,apt],elemsToHtml:[{type:"table",elemToHtml:function(t,e){var r=t,n=r.width,o=void 0===n?"auto":n,i=r.columnWidths,u=r.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 r=t,n=r.colSpan,o=void 0===n?1:n,i=r.rowSpan,u=void 0===i?1:i,a=r.isHeader,s=void 0!==a&&a,c=r.width,l=void 0===c?"auto":c,f=r.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:[$dt],parseElemsHtml:[Idt,Fdt,Rdt],menus:[udt,adt,sdt,cdt,ldt,fdt,ddt,pdt,hdt,vdt,gdt,ydt],editorPlugin:function(t){var e=t.insertBreak,r=t.deleteBackward,n=t.deleteForward,o=t.deleteFragment,i=t.normalizeNode,u=t.insertData,a=t.handleTab,s=t.selectAll,c=t;c.insertBreak=function(){null==CB.getSelectedNodeByType(c,"table")?e():c.insertText("\n\r")},c.deleteBackward=function(t){if(!jdt(c)&&!zdt(c,t,"backward")){var e=c.selection;if(e){var n=Kh.before(c,e),o=Kh.above(c,{at:e,match:function(t){return CB.checkNodeType(t,"table-cell")}});if(n){var i=Hdt(c,n);if(!o&&i&&CB.getSelectedNodeByType(c,"paragraph"))return}}r(t)}},c.handleTab=function(){var e;if(CB.getSelectedNodeByType(c,"table")){var r=Kh.above(t);CB.checkNodeType(r[0],"table-cell")&&zv.select(t,r[1]);var n=Kh.next(t);if(n)n[0]&&n[0].text&&(n=null!==(e=Kh.above(t,{at:n[1]}))&&void 0!==e?e:n),zv.select(t,n[1]);else{var o=c.children||[],i=o.length;if(CB.checkNodeType(o[i-1],"table")){var u=CB.genEmptyParagraph();zv.insertNodes(c,u,{at:[i]}),c.handleTab()}}}else a()},c.deleteForward=function(t){if(!jdt(c)&&!zdt(c,t,"forward")){var e=c.selection;if(e){var r=Kh.after(c,e),o=Kh.above(c,{at:e,match:function(t){return CB.checkNodeType(t,"table-cell")}});if(r){var i=Hdt(c,r);if(!o&&i&&CB.getSelectedNodeByType(c,"paragraph"))return}}n(t)}},c.deleteFragment=function(t){var e=c.selection;if(e){var r,n=!1,i={anchor:e.anchor,focus:e.focus},u=sv.isBefore(i.anchor,i.focus);Mdt(c,e.anchor)&&((r=Kh[u?"before":"after"](c,e.anchor))&&(i.anchor=r),n=!0),Mdt(c,e.focus)&&((r=Kh[u?"after":"before"](c,e.focus))&&(i.focus=r),n=!0),n&&zv.setSelection(c,i),o(t)}},c.normalizeNode=function(t){var e=mat(t,2),r=e[0],n=e[1];if("table"!==CB.getNodeType(r))return i([r,n]);if(CB.isLastNode(c,r)){var o=CB.genEmptyParagraph();zv.insertNodes(c,o,{at:[n[0]+1]})}},c.insertData=function(t){if(null!=CB.getSelectedNodeByType(c,"table")){var e=t.getData("text/plain");"\n"===e||/<img[^>]+>/.test(t.getData("text/html"))?u(t):Kh.insertText(c,e)}else u(t)},c.selectAll=function(){var t=c.selection;if(null!=t){var e=CB.getSelectedNodeByType(c,"table-cell");if(null!=e){var r=t.anchor,n=t.focus;if(ov.equals(r.path.slice(0,3),n.path.slice(0,3)))if(0!==tv.string(e).length){var o=CB.findPath(c,e),i={anchor:Kh.start(c,o),focus:Kh.end(c,o)};c.select(i)}else s();else s()}else s()}else s()},function(t){var e=t.apply;t.apply=function(r){if(!nv.isSelectionOperation(r)||!r.newProperties)return e(r);var n=vat(vat({},t.selection),r.newProperties);if(!dv.isRange(n))return jft.unselect(t),e(r);var o=function(t){return $h.isElement(t)&&("table-cell"===t.type||"th"===t.type||"td"===t.type)},i=mat(Kh.nodes(t,{match:o,at:dv.start(n),mode:"lowest"}),1)[0],u=mat(Kh.nodes(t,{match:o,at:dv.end(n),mode:"lowest"}),1)[0];if(!i||!u)return jft.unselect(t),e(r);var a=mat(i,2)[1],s=mat(u,2)[1];if(ov.equals(a,s)||!Yat(t,[a,s],"table"))return jft.unselect(t),e(r);try{var c=Xat(t,{at:a});if(!c||0===c.length)return jft.unselect(t),e(r);for(var l=Zat.valueOf(0,0),f=Zat.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=mat(c[h][v],1),y=mat(g[0],2)[1];ov.equals(a,y)&&(l.x=h,l.y=v,d=!0),ov.equals(s,y)&&(f.x=h,f.y=v,p=!0)}if(!d||!p)return jft.unselect(t),e(r);for(var m=Zat.valueOf(Math.min(l.x,f.x),Math.min(l.y,f.y)),b=Zat.valueOf(Math.max(l.x,f.x),Math.max(l.y,f.y));;){var E=Zat.valueOf(m.x,m.y),w=Zat.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=mat(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(Zat.equals(m,E)&&Zat.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 k=mat(c[h][v],1),P=mat(k[0],1)[0];P&&(T.add(P),N.push(c[h][v]))}N.length>0&&x.push(N)}Ult.set(t,x),Vlt.set(t,T)}catch(n){return jft.unselect(t),e(r)}e(r)}}(c),c.getTableSelection=function(){return Ult.get(c)||null};var l=c.addMark,f=c.removeMark,d=vat({},zv);return c.addMark=function(t,e){var r=Ult.get(c);if(r&&r.length>0){var n=c.selection;r.forEach(function(r){r.forEach(function(r){var n=mat(r[0],2)[1],o=Kh.start(c,n),i=Kh.end(c,n);zv.select(c,{anchor:o,focus:i}),l(t,e)})}),n&&zv.select(c,n)}else l(t,e)},c.removeMark=function(t){var e=Ult.get(c);if(e&&e.length>0){var r=c.selection;e.forEach(function(e){e.forEach(function(e){var r=mat(e[0],2)[1],n=Kh.start(c,r),o=Kh.end(c,r);zv.select(c,{anchor:n,focus:o}),f(t)})}),r&&zv.select(c,r)}else f(t)},zv.setNodes=function(t,e,r){if(void 0===r&&(r={}),t===c){var n=Ult.get(c);if(n&&n.length>0)return"hidden"in e||"rowSpan"in e||"colSpan"in e?void d.setNodes(t,e,r):void n.forEach(function(n){n.forEach(function(n){var o=mat(n[0],2)[1];d.setNodes(t,e,vat(vat({},r),{at:o}))})})}d.setNodes(t,e,r)},c}};BF("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),BF("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var fpt,dpt,ppt,hpt,vpt,gpt,ypt,mpt,bpt,Ept,wpt,Spt,Cpt,Dpt,Opt,Apt,xpt,Tpt,Npt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},kpt={};function Ppt(){return dpt?fpt:(dpt=1,fpt=function(t){try{return!!t()}catch(t){return!0}})}function Bpt(){if(hpt)return ppt;hpt=1;var t=Ppt();return ppt=!t(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function Ipt(){if(gpt)return vpt;gpt=1;var t=Ppt();return vpt=!t(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})}function Fpt(){if(mpt)return ypt;mpt=1;var t=Ipt(),e=Function.prototype,r=e.call,n=t&&e.bind.bind(r,r);return ypt=t?n:function(t){return function(){return r.apply(t,arguments)}},ypt}function Rpt(){return Ept?bpt:(Ept=1,bpt=function(t){return null==t})}function Lpt(){if(Spt)return wpt;Spt=1;var t=Rpt(),e=TypeError;return wpt=function(r){if(t(r))throw new e("Can't call method on "+r);return r}}function _pt(){if(Dpt)return Cpt;Dpt=1;var t=Lpt(),e=Object;return Cpt=function(r){return e(t(r))}}function jpt(){if(Apt)return Opt;Apt=1;var t=Fpt(),e=_pt(),r=t({}.hasOwnProperty);return Opt=Object.hasOwn||function(t,n){return r(e(t),n)}}function Mpt(){if(Tpt)return xpt;Tpt=1;var t=Bpt(),e=jpt(),r=Function.prototype,n=t&&Object.getOwnPropertyDescriptor,o=e(r,"name"),i=o&&"something"===function(){}.name,u=o&&(!t||t&&n(r,"name").configurable);return xpt={EXISTS:o,PROPER:i,CONFIGURABLE:u}}var zpt,Hpt,$pt={exports:{}};function Upt(){if(Hpt)return zpt;Hpt=1;var t="object"==typeof document&&document.all;return zpt=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(t){return"function"==typeof t}}var Vpt,Gpt,Wpt,qpt,Kpt,Ypt,Xpt,Jpt,Zpt,Qpt,tht,eht,rht,nht={exports:{}};function oht(){return Gpt?Vpt:(Gpt=1,Vpt=!1)}function iht(){if(qpt)return Wpt;qpt=1;var t=function(t){return t&&t.Math===Math&&t};return Wpt=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof Npt&&Npt)||t("object"==typeof Wpt&&Wpt)||function(){return this}()||Function("return this")()}function uht(){if(Ypt)return Kpt;Ypt=1;var t=iht(),e=Object.defineProperty;return Kpt=function(r,n){try{e(t,r,{value:n,configurable:!0,writable:!0})}catch(e){t[r]=n}return n}}function aht(){if(Xpt)return nht.exports;Xpt=1;var t=oht(),e=iht(),r=uht(),n="__core-js_shared__",o=nht.exports=e[n]||r(n,{});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"}),nht.exports}function sht(){if(Zpt)return Jpt;Zpt=1;var t=Fpt(),e=Upt(),r=aht(),n=t(Function.toString);return e(r.inspectSource)||(r.inspectSource=function(t){return n(t)}),Jpt=r.inspectSource}function cht(){if(tht)return Qpt;tht=1;var t=iht(),e=Upt(),r=t.WeakMap;return Qpt=e(r)&&/native code/.test(String(r))}function lht(){if(rht)return eht;rht=1;var t=Upt();return eht=function(e){return"object"==typeof e?null!==e:t(e)}}var fht,dht,pht,hht,vht,ght,yht,mht,bht,Eht,wht,Sht,Cht,Dht,Oht,Aht,xht,Tht,Nht,kht,Pht,Bht,Iht,Fht,Rht,Lht,_ht,jht,Mht,zht,Hht,$ht,Uht,Vht,Ght,Wht,qht,Kht,Yht,Xht,Jht,Zht,Qht,tvt,evt,rvt,nvt,ovt,ivt,uvt,avt,svt,cvt,lvt,fvt,dvt,pvt,hvt={};function vvt(){if(dht)return fht;dht=1;var t=iht(),e=lht(),r=t.document,n=e(r)&&e(r.createElement);return fht=function(t){return n?r.createElement(t):{}}}function gvt(){if(hht)return pht;hht=1;var t=Bpt(),e=Ppt(),r=vvt();return pht=!t&&!e(function(){return 7!==Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a})}function yvt(){if(ght)return vht;ght=1;var t=Bpt(),e=Ppt();return vht=t&&e(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}function mvt(){if(mht)return yht;mht=1;var t=lht(),e=String,r=TypeError;return yht=function(n){if(t(n))return n;throw new r(e(n)+" is not an object")}}function bvt(){if(Eht)return bht;Eht=1;var t=Ipt(),e=Function.prototype.call;return bht=t?e.bind(e):function(){return e.apply(e,arguments)},bht}function Evt(){if(Sht)return wht;Sht=1;var t=iht(),e=Upt();return wht=function(r,n){return arguments.length<2?(o=t[r],e(o)?o:void 0):t[r]&&t[r][n];var o},wht}function wvt(){if(Dht)return Cht;Dht=1;var t=Fpt();return Cht=t({}.isPrototypeOf)}function Svt(){if(Aht)return Oht;Aht=1;var t=iht().navigator,e=t&&t.userAgent;return Oht=e?String(e):""}function Cvt(){if(Tht)return xht;Tht=1;var t,e,r=iht(),n=Svt(),o=r.process,i=r.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&&n&&(!(t=n.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=n.match(/Chrome\/(\d+)/))&&(e=+t[1]),xht=e}function Dvt(){if(kht)return Nht;kht=1;var t=Cvt(),e=Ppt(),r=iht().String;return Nht=!!Object.getOwnPropertySymbols&&!e(function(){var e=Symbol("symbol detection");return!r(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&t&&t<41})}function Ovt(){if(Bht)return Pht;Bht=1;var t=Dvt();return Pht=t&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function Avt(){if(Fht)return Iht;Fht=1;var t=Evt(),e=Upt(),r=wvt(),n=Ovt(),o=Object;return Iht=n?function(t){return"symbol"==typeof t}:function(n){var i=t("Symbol");return e(i)&&r(i.prototype,o(n))}}function xvt(){if(Lht)return Rht;Lht=1;var t=String;return Rht=function(e){try{return t(e)}catch(t){return"Object"}}}function Tvt(){if(jht)return _ht;jht=1;var t=Upt(),e=xvt(),r=TypeError;return _ht=function(n){if(t(n))return n;throw new r(e(n)+" is not a function")}}function Nvt(){if(zht)return Mht;zht=1;var t=Tvt(),e=Rpt();return Mht=function(r,n){var o=r[n];return e(o)?void 0:t(o)}}function kvt(){if(Vht)return Uht;Vht=1;var t=aht();return Uht=function(e,r){return t[e]||(t[e]=r||{})}}function Pvt(){if(Wht)return Ght;Wht=1;var t=Fpt(),e=0,r=Math.random(),n=t(1.1.toString);return Ght=function(t){return"Symbol("+(void 0===t?"":t)+")_"+n(++e+r,36)}}function Bvt(){if(Kht)return qht;Kht=1;var t=iht(),e=kvt(),r=jpt(),n=Pvt(),o=Dvt(),i=Ovt(),u=t.Symbol,a=e("wks"),s=i?u.for||u:u&&u.withoutSetter||n;return qht=function(t){return r(a,t)||(a[t]=o&&r(u,t)?u[t]:s("Symbol."+t)),a[t]}}function Ivt(){if(Xht)return Yht;Xht=1;var t=bvt(),e=lht(),r=Avt(),n=Nvt(),o=function(){if($ht)return Hht;$ht=1;var t=bvt(),e=Upt(),r=lht(),n=TypeError;return Hht=function(o,i){var u,a;if("string"===i&&e(u=o.toString)&&!r(a=t(u,o)))return a;if(e(u=o.valueOf)&&!r(a=t(u,o)))return a;if("string"!==i&&e(u=o.toString)&&!r(a=t(u,o)))return a;throw new n("Can't convert object to primitive value")},Hht}(),i=Bvt(),u=TypeError,a=i("toPrimitive");return Yht=function(i,s){if(!e(i)||r(i))return i;var c,l=n(i,a);if(l){if(void 0===s&&(s="default"),c=t(l,i,s),!e(c)||r(c))return c;throw new u("Can't convert object to primitive value")}return void 0===s&&(s="number"),o(i,s)}}function Fvt(){if(Zht)return Jht;Zht=1;var t=Ivt(),e=Avt();return Jht=function(r){var n=t(r,"string");return e(n)?n:n+""}}function Rvt(){if(Qht)return hvt;Qht=1;var t=Bpt(),e=gvt(),r=yvt(),n=mvt(),o=Fvt(),i=TypeError,u=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s="enumerable",c="configurable",l="writable";return hvt.f=t?r?function(t,e,r){if(n(t),e=o(e),n(r),"function"==typeof t&&"prototype"===e&&"value"in r&&l in r&&!r[l]){var i=a(t,e);i&&i[l]&&(t[e]=r.value,r={configurable:c in r?r[c]:i[c],enumerable:s in r?r[s]:i[s],writable:!1})}return u(t,e,r)}:u:function(t,r,a){if(n(t),r=o(r),n(a),e)try{return u(t,r,a)}catch(t){}if("get"in a||"set"in a)throw new i("Accessors not supported");return"value"in a&&(t[r]=a.value),t},hvt}function Lvt(){return evt?tvt:(evt=1,tvt=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}})}function _vt(){if(nvt)return rvt;nvt=1;var t=Bpt(),e=Rvt(),r=Lvt();return rvt=t?function(t,n,o){return e.f(t,n,r(1,o))}:function(t,e,r){return t[e]=r,t}}function jvt(){if(ivt)return ovt;ivt=1;var t=kvt(),e=Pvt(),r=t("keys");return ovt=function(t){return r[t]||(r[t]=e(t))}}function Mvt(){return avt?uvt:(avt=1,uvt={})}function zvt(){if(cvt)return svt;cvt=1;var t,e,r,n=cht(),o=iht(),i=lht(),u=_vt(),a=jpt(),s=aht(),c=jvt(),l=Mvt(),f="Object already initialized",d=o.TypeError,p=o.WeakMap;if(n||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)||{}},r=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]:{}},r=function(t){return a(t,v)}}return svt={set:t,get:e,has:r,enforce:function(n){return r(n)?e(n):t(n,{})},getterFor:function(t){return function(r){var n;if(!i(r)||(n=e(r)).type!==t)throw new d("Incompatible receiver, "+t+" required");return n}}}}function Hvt(){if(lvt)return $pt.exports;lvt=1;var t=Fpt(),e=Ppt(),r=Upt(),n=jpt(),o=Bpt(),i=Mpt().CONFIGURABLE,u=sht(),a=zvt(),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=$pt.exports=function(t,e,r){"Symbol("===d(l(e),0,7)&&(e="["+p(l(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!n(t,"name")||i&&t.name!==e)&&(o?f(t,"name",{value:e,configurable:!0}):t.name=e),v&&r&&n(r,"arity")&&t.length!==r.arity&&f(t,"length",{value:r.arity});try{r&&n(r,"constructor")&&r.constructor?o&&f(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var u=s(t);return n(u,"source")||(u.source=h(g,"string"==typeof e?e:"")),t};return Function.prototype.toString=y(function(){return r(this)&&c(this).source||u(this)},"toString"),$pt.exports}function $vt(){if(dvt)return fvt;dvt=1;var t=Hvt(),e=Rvt();return fvt=function(r,n,o){return o.get&&t(o.get,n,{getter:!0}),o.set&&t(o.set,n,{setter:!0}),e.f(r,n,o)}}!function(){if(pvt)return kpt;pvt=1;var t=Bpt(),e=Mpt().EXISTS,r=Fpt(),n=$vt(),o=Function.prototype,i=r(o.toString),u=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,a=r(u.exec);t&&!e&&n(o,"name",{configurable:!0,get:function(){try{return a(u,i(this))[1]}catch(t){return""}}})}();var Uvt,Vvt,Gvt,Wvt,qvt,Kvt,Yvt,Xvt,Jvt,Zvt,Qvt={},tgt={},egt={};function rgt(){if(Gvt)return Vvt;Gvt=1;var t=Fpt(),e=t({}.toString),r=t("".slice);return Vvt=function(t){return r(e(t),8,-1)}}function ngt(){if(qvt)return Wvt;qvt=1;var t=Fpt(),e=Ppt(),r=rgt(),n=Object,o=t("".split);return Wvt=e(function(){return!n("z").propertyIsEnumerable(0)})?function(t){return"String"===r(t)?o(t,""):n(t)}:n}function ogt(){if(Yvt)return Kvt;Yvt=1;var t=ngt(),e=Lpt();return Kvt=function(r){return t(e(r))}}function igt(){if(Xvt)return tgt;Xvt=1;var t=Bpt(),e=bvt(),r=function(){if(Uvt)return egt;Uvt=1;var t={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,r=e&&!t.call({1:2},1);return egt.f=r?function(t){var r=e(this,t);return!!r&&r.enumerable}:t,egt}(),n=Lvt(),o=ogt(),i=Fvt(),u=jpt(),a=gvt(),s=Object.getOwnPropertyDescriptor;return tgt.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 n(!e(r.f,t,c),t[c])},tgt}function ugt(){if(Zvt)return Jvt;Zvt=1;var t=Upt(),e=Rvt(),r=Hvt(),n=uht();return Jvt=function(o,i,u,a){a||(a={});var s=a.enumerable,c=void 0!==a.name?a.name:i;if(t(u)&&r(u,c,a),a.global)s?o[i]=u:n(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 agt,sgt,cgt,lgt,fgt,dgt,pgt,hgt,vgt,ggt,ygt,mgt,bgt,Egt,wgt,Sgt,Cgt,Dgt={};function Ogt(){if(lgt)return cgt;lgt=1;var t=function(){if(sgt)return agt;sgt=1;var t=Math.ceil,e=Math.floor;return agt=Math.trunc||function(r){var n=+r;return(n>0?e:t)(n)}}();return cgt=function(e){var r=+e;return r!=r||0===r?0:t(r)}}function Agt(){if(dgt)return fgt;dgt=1;var t=Ogt(),e=Math.max,r=Math.min;return fgt=function(n,o){var i=t(n);return i<0?e(i+o,0):r(i,o)}}function xgt(){if(ggt)return vgt;ggt=1;var t=function(){if(hgt)return pgt;hgt=1;var t=Ogt(),e=Math.min;return pgt=function(r){var n=t(r);return n>0?e(n,9007199254740991):0}}();return vgt=function(e){return t(e.length)}}function Tgt(){if(Egt)return bgt;Egt=1;var t=Fpt(),e=jpt(),r=ogt(),n=function(){if(mgt)return ygt;mgt=1;var t=ogt(),e=Agt(),r=xgt(),n=function(n){return function(o,i,u){var a=t(o),s=r(a);if(0===s)return!n&&-1;var c,l=e(u,s);if(n&&i!=i){for(;s>l;)if((c=a[l++])!=c)return!0}else for(;s>l;l++)if((n||l in a)&&a[l]===i)return n||l||0;return!n&&-1}};return ygt={includes:n(!0),indexOf:n(!1)}}().indexOf,o=Mvt(),i=t([].push);return bgt=function(t,u){var a,s=r(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++])&&(~n(l,a)||i(l,a));return l}}function Ngt(){return Sgt?wgt:(Sgt=1,wgt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function kgt(){if(Cgt)return Dgt;Cgt=1;var t=Tgt(),e=Ngt().concat("length","prototype");return Dgt.f=Object.getOwnPropertyNames||function(r){return t(r,e)},Dgt}var Pgt,Bgt,Igt,Fgt,Rgt,Lgt,_gt,jgt,Mgt,zgt,Hgt,$gt,Ugt={};function Vgt(){if(Rgt)return Fgt;Rgt=1;var t=jpt(),e=function(){if(Igt)return Bgt;Igt=1;var t=Evt(),e=Fpt(),r=kgt(),n=(Pgt||(Pgt=1,Ugt.f=Object.getOwnPropertySymbols),Ugt),o=mvt(),i=e([].concat);return Bgt=t("Reflect","ownKeys")||function(t){var e=r.f(o(t)),u=n.f;return u?i(e,u(t)):e}}(),r=igt(),n=Rvt();return Fgt=function(o,i,u){for(var a=e(i),s=n.f,c=r.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 Ggt(){if(_gt)return Lgt;_gt=1;var t=Ppt(),e=Upt(),r=/#|\.prototype\./,n=function(r,n){var s=i[o(r)];return s===a||s!==u&&(e(n)?t(n):!!n)},o=n.normalize=function(t){return String(t).replace(r,".").toLowerCase()},i=n.data={},u=n.NATIVE="N",a=n.POLYFILL="P";return Lgt=n}function Wgt(){if(Mgt)return jgt;Mgt=1;var t=iht(),e=igt().f,r=_vt(),n=ugt(),o=uht(),i=Vgt(),u=Ggt();return jgt=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)&&r(d,"sham",!0),n(c,l,d,a)}}}function qgt(){if(Hgt)return zgt;Hgt=1;var t=Ppt();return zgt=function(e,r){var n=[][e];return!!n&&t(function(){n.call(null,r||function(){return 1},1)})}}!function(){if($gt)return Qvt;$gt=1;var t=Wgt(),e=Fpt(),r=ngt(),n=ogt(),o=qgt(),i=e([].join);t({target:"Array",proto:!0,forced:r!==Object||!o("join",",")},{join:function(t){return i(n(this),void 0===t?",":t)}})}();var Kgt,Ygt,Xgt,Jgt,Zgt,Qgt,tyt,eyt,ryt,nyt,oyt={};function iyt(){if(Ygt)return Kgt;Ygt=1;var t={};return t[Bvt()("toStringTag")]="z",Kgt="[object z]"===String(t)}function uyt(){if(Jgt)return Xgt;Jgt=1;var t=iyt(),e=Upt(),r=rgt(),n=Bvt()("toStringTag"),o=Object,i="Arguments"===r(function(){return arguments}());return Xgt=t?r: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),n))?a:i?r(u):"Object"===(s=r(u))&&e(u.callee)?"Arguments":s}}function ayt(){if(Qgt)return Zgt;Qgt=1;var t=uyt(),e=String;return Zgt=function(r){if("Symbol"===t(r))throw new TypeError("Cannot convert a Symbol value to a string");return e(r)}}function syt(){if(eyt)return tyt;eyt=1;var t=mvt();return tyt=function(){var e=t(this),r="";return e.hasIndices&&(r+="d"),e.global&&(r+="g"),e.ignoreCase&&(r+="i"),e.multiline&&(r+="m"),e.dotAll&&(r+="s"),e.unicode&&(r+="u"),e.unicodeSets&&(r+="v"),e.sticky&&(r+="y"),r}}var cyt,lyt,fyt,dyt,pyt,hyt,vyt,gyt,yyt,myt,byt,Eyt,wyt,Syt,Cyt,Dyt,Oyt,Ayt,xyt,Tyt,Nyt,kyt,Pyt,Byt,Iyt,Fyt,Ryt,Lyt,_yt,jyt,Myt,zyt,Hyt,$yt,Uyt,Vyt,Gyt,Wyt,qyt,Kyt,Yyt,Xyt,Jyt={};function Zyt(){if(pyt)return dyt;pyt=1;var t=Evt();return dyt=t("document","documentElement")}function Qyt(){if(vyt)return hyt;vyt=1;var t,e=mvt(),r=function(){if(fyt)return Jyt;fyt=1;var t=Bpt(),e=yvt(),r=Rvt(),n=mvt(),o=ogt(),i=function(){if(lyt)return cyt;lyt=1;var t=Tgt(),e=Ngt();return cyt=Object.keys||function(r){return t(r,e)}}();return Jyt.f=t&&!e?Object.defineProperties:function(t,e){n(t);for(var u,a=o(e),s=i(e),c=s.length,l=0;c>l;)r.f(t,u=s[l++],a[u]);return t},Jyt}(),n=Ngt(),o=Mvt(),i=Zyt(),u=vvt(),a=jvt(),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,r,o;h="undefined"!=typeof document?document.domain&&t?p(t):(r=u("iframe"),o="java"+c+":",r.style.display="none",i.appendChild(r),r.src=String(o),(e=r.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F):p(t);for(var a=n.length;a--;)delete h[s][n[a]];return h()};return o[l]=!0,hyt=Object.create||function(t,n){var o;return null!==t?(f[s]=e(t),o=new f,f[s]=null,o[l]=t):o=h(),void 0===n?o:r.f(o,n)}}function tmt(){return Ayt?Oyt:(Ayt=1,Oyt={})}function emt(){if(kyt)return Nyt;kyt=1;var t=jpt(),e=Upt(),r=_pt(),n=jvt(),o=function(){if(Tyt)return xyt;Tyt=1;var t=Ppt();return xyt=!t(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})}(),i=n("IE_PROTO"),u=Object,a=u.prototype;return Nyt=o?u.getPrototypeOf:function(n){var o=r(n);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 rmt(){if(Byt)return Pyt;Byt=1;var t,e,r,n=Ppt(),o=Upt(),i=lht(),u=Qyt(),a=emt(),s=ugt(),c=Bvt(),l=oht(),f=c("iterator"),d=!1;return[].keys&&("next"in(r=[].keys())?(e=a(a(r)))!==Object.prototype&&(t=e):d=!0),!i(t)||n(function(){var e={};return t[f].call(e)!==e})?t={}:l&&(t=u(t)),o(t[f])||s(t,f,function(){return this}),Pyt={IteratorPrototype:t,BUGGY_SAFARI_ITERATORS:d}}function nmt(){if(Fyt)return Iyt;Fyt=1;var t=Rvt().f,e=jpt(),r=Bvt()("toStringTag");return Iyt=function(n,o,i){n&&!i&&(n=n.prototype),n&&!e(n,r)&&t(n,r,{configurable:!0,value:o})}}function omt(){if($yt)return Hyt;$yt=1;var t=function(){if(zyt)return Myt;zyt=1;var t=lht();return Myt=function(e){return t(e)||null===e}}(),e=String,r=TypeError;return Hyt=function(n){if(t(n))return n;throw new r("Can't set "+e(n)+" as a prototype")}}function imt(){if(Vyt)return Uyt;Vyt=1;var t=function(){if(jyt)return _yt;jyt=1;var t=Fpt(),e=Tvt();return _yt=function(r,n,o){try{return t(e(Object.getOwnPropertyDescriptor(r,n)[o]))}catch(t){}}}(),e=lht(),r=Lpt(),n=omt();return Uyt=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 r(t),n(u),e(t)?(i?o(t,u):t.__proto__=u,t):t}}():void 0)}function umt(){if(Wyt)return Gyt;Wyt=1;var t=Wgt(),e=bvt(),r=oht(),n=Mpt(),o=Upt(),i=function(){if(Lyt)return Ryt;Lyt=1;var t=rmt().IteratorPrototype,e=Qyt(),r=Lvt(),n=nmt(),o=tmt(),i=function(){return this};return Ryt=function(u,a,s,c){var l=a+" Iterator";return u.prototype=e(t,{next:r(+!c,s)}),n(u,l,!1,!0),o[l]=i,u}}(),u=emt(),a=imt(),s=nmt(),c=_vt(),l=ugt(),f=Bvt(),d=tmt(),p=rmt(),h=n.PROPER,v=n.CONFIGURABLE,g=p.IteratorPrototype,y=p.BUGGY_SAFARI_ITERATORS,m=f("iterator"),b="keys",E="values",w="entries",S=function(){return this};return Gyt=function(n,f,p,C,D,O,A){i(p,f,C);var x,T,N,k=function(t){if(t===D&&R)return R;if(!y&&t&&t in I)return I[t];switch(t){case b:case E:case w:return function(){return new p(this,t)}}return function(){return new p(this)}},P=f+" Iterator",B=!1,I=n.prototype,F=I[m]||I["@@iterator"]||D&&I[D],R=!y&&F||k(D),L="Array"===f&&I.entries||F;if(L&&(x=u(L.call(new n)))!==Object.prototype&&x.next&&(r||u(x)===g||(a?a(x,g):o(x[m])||l(x,m,S)),s(x,P,!0,!0),r&&(d[P]=S)),h&&D===E&&F&&F.name!==E&&(!r&&v?c(I,"name",E):(B=!0,R=function(){return e(F,this)})),D)if(T={values:k(E),keys:O?R:k(b),entries:k(w)},A)for(N in T)(y||B||!(N in I))&&l(I,N,T[N]);else t({target:f,proto:!0,forced:y||B},T);return r&&!A||I[m]===R||l(I,m,R,{name:D}),d[f]=R,T}}function amt(){return Kyt?qyt:(Kyt=1,qyt=function(t,e){return{value:t,done:e}})}function smt(){if(Xyt)return Yyt;Xyt=1;var t=ogt(),e=function(){if(Dyt)return Cyt;Dyt=1;var t=Bvt(),e=Qyt(),r=Rvt().f,n=t("unscopables"),o=Array.prototype;return void 0===o[n]&&r(o,n,{configurable:!0,value:e(null)}),Cyt=function(t){o[n][t]=!0}}(),r=tmt(),n=zvt(),o=Rvt().f,i=umt(),u=amt(),a=oht(),s=Bpt(),c="Array Iterator",l=n.set,f=n.getterFor(c);Yyt=i(Array,"Array",function(e,r){l(this,{type:c,target:t(e),index:0,kind:r})},function(){var t=f(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=null,u(void 0,!0);switch(t.kind){case"keys":return u(r,!1);case"values":return u(e[r],!1)}return u([r,e[r]],!1)},"values");var d=r.Arguments=r.Array;if(e("keys"),e("values"),e("entries"),!a&&s&&"values"!==d.name)try{o(d,"name",{value:"values"})}catch(t){}return Yyt}!function(){if(Syt)return oyt;Syt=1;var t=Wgt(),e=function(){if(wyt)return Eyt;wyt=1;var t,e,r=bvt(),n=Fpt(),o=ayt(),i=syt(),u=function(){if(nyt)return ryt;nyt=1;var t=Ppt(),e=iht().RegExp,r=t(function(){var t=e("a","y");return t.lastIndex=2,null!==t.exec("abcd")}),n=r||t(function(){return!e("a","y").sticky}),o=r||t(function(){var t=e("^r","gy");return t.lastIndex=2,null!==t.exec("str")});return ryt={BROKEN_CARET:o,MISSED_STICKY:n,UNSUPPORTED_Y:r}}(),a=kvt(),s=Qyt(),c=zvt().get,l=function(){if(yyt)return gyt;yyt=1;var t=Ppt(),e=iht().RegExp;return gyt=t(function(){var t=e(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})}(),f=function(){if(byt)return myt;byt=1;var t=Ppt(),e=iht().RegExp;return myt=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=n("".charAt),g=n("".indexOf),y=n("".replace),m=n("".slice),b=(e=/b*/g,r(p,t=/a/,"a"),r(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,n,u,a,l,f,S,C=this,D=c(C),O=o(t),A=D.raw;if(A)return A.lastIndex=C.lastIndex,e=r(h,A,O),C.lastIndex=A.lastIndex,e;var x=D.groups,T=E&&C.sticky,N=r(i,C),k=C.source,P=0,B=O;if(T&&(N=y(N,"y",""),-1===g(N,"g")&&(N+="g"),B=m(O,C.lastIndex),C.lastIndex>0&&(!C.multiline||C.multiline&&"\n"!==v(O,C.lastIndex-1))&&(k="(?: "+k+")",B=" "+B,P++),n=new RegExp("^(?:"+k+")",N)),w&&(n=new RegExp("^"+k+"$(?!\\s)",N)),b&&(u=C.lastIndex),a=r(p,T?n:C,B),T?a?(a.input=m(a.input,P),a[0]=m(a[0],P),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&&r(d,a[0],n,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}),Eyt=h}();t({target:"RegExp",proto:!0,forced:/./.exec!==e},{exec:e})}(),Ag&&(og.fn.append=Ag),pg&&(og.fn.on=pg),Bg&&(og.fn.remove=Bg),dg&&(og.fn.val=dg),Lg&&(og.fn.click=Lg),mg&&(og.fn.hide=mg),smt();var cmt,lmt,fmt,dmt,pmt,hmt,vmt,gmt,ymt,mmt,bmt,Emt,wmt,Smt,Cmt,Dmt,Omt,Amt={};function xmt(){if(dmt)return fmt;dmt=1;var t=function(){if(lmt)return cmt;lmt=1;var t=rgt(),e=Fpt();return cmt=function(r){if("Function"===t(r))return e(r)}}(),e=Tvt(),r=Ipt(),n=t(t.bind);return fmt=function(t,o){return e(t),void 0===o?t:r?n(t,o):function(){return t.apply(o,arguments)}},fmt}function Tmt(){if(hmt)return pmt;hmt=1;var t=rgt();return pmt=Array.isArray||function(e){return"Array"===t(e)}}function Nmt(){if(gmt)return vmt;gmt=1;var t=Fpt(),e=Ppt(),r=Upt(),n=uyt(),o=Evt(),i=sht(),u=function(){},a=o("Reflect","construct"),s=/^\s*(?:class|function)\b/,c=t(s.exec),l=!s.test(u),f=function(t){if(!r(t))return!1;try{return a(u,[],t),!0}catch(t){return!1}},d=function(t){if(!r(t))return!1;switch(n(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return l||!!c(s,i(t))}catch(t){return!0}};return d.sham=!0,vmt=!a||e(function(){var t;return f(f.call)||!f(Object)||!f(function(){t=!0})||t})?d:f}function kmt(){if(Emt)return bmt;Emt=1;var t=function(){if(mmt)return ymt;mmt=1;var t=Tmt(),e=Nmt(),r=lht(),n=Bvt()("species"),o=Array;return ymt=function(i){var u;return t(i)&&(u=i.constructor,(e(u)&&(u===o||t(u.prototype))||r(u)&&null===(u=u[n]))&&(u=void 0)),void 0===u?o:u}}();return bmt=function(e,r){return new(t(e))(0===r?0:r)}}function Pmt(){if(Smt)return wmt;Smt=1;var t=xmt(),e=Fpt(),r=ngt(),n=_pt(),o=xgt(),i=kmt(),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=n(h),w=r(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 wmt={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 Bmt(){if(Dmt)return Cmt;Dmt=1;var t=Ppt(),e=Bvt(),r=Cvt(),n=e("species");return Cmt=function(e){return r>=51||!t(function(){var t=[];return(t.constructor={})[n]=function(){return{foo:1}},1!==t[e](Boolean).foo})}}!function(){if(Omt)return Amt;Omt=1;var t=Wgt(),e=Pmt().map;t({target:"Array",proto:!0,forced:!Bmt()("map")},{map:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}})}();var Imt,Fmt,Rmt,Lmt,_mt,jmt={};function Mmt(){if(Lmt)return Rmt;Lmt=1;var t=Fpt();return Rmt=t([].slice)}!function(){if(_mt)return jmt;_mt=1;var t=Wgt(),e=Tmt(),r=Nmt(),n=lht(),o=Agt(),i=xgt(),u=ogt(),a=function(){if(Fmt)return Imt;Fmt=1;var t=Bpt(),e=Rvt(),r=Lvt();return Imt=function(n,o,i){t?e.f(n,o,r(0,i)):n[o]=i}}(),s=Bvt(),c=Bmt(),l=Mmt(),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,(r(c)&&(c===p||e(c.prototype))||n(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 zmt,Hmt,$mt,Umt={};!function(){if($mt)return Umt;$mt=1;var t=iyt(),e=ugt(),r=function(){if(Hmt)return zmt;Hmt=1;var t=iyt(),e=uyt();return zmt=t?{}.toString:function(){return"[object "+e(this)+"]"}}();t||e(Object.prototype,"toString",r,{unsafe:!0})}();var Vmt,Gmt,Wmt,qmt,Kmt,Ymt,Xmt,Jmt,Zmt,Qmt,tbt,ebt,rbt,nbt,obt,ibt,ubt,abt,sbt,cbt,lbt,fbt,dbt,pbt,hbt,vbt,gbt,ybt,mbt,bbt,Ebt,wbt,Sbt,Cbt,Dbt,Obt,Abt,xbt,Tbt,Nbt,kbt={};function Pbt(){if(Gmt)return Vmt;Gmt=1;var t=iht(),e=Svt(),r=rgt(),n=function(t){return e.slice(0,t.length)===t};return Vmt=n("Bun/")?"BUN":n("Cloudflare-Workers")?"CLOUDFLARE":n("Deno/")?"DENO":n("Node.js/")?"NODE":t.Bun&&"string"==typeof Bun.version?"BUN":t.Deno&&"object"==typeof Deno.version?"DENO":"process"===r(t.process)?"NODE":t.window&&t.document?"BROWSER":"REST"}function Bbt(){if(qmt)return Wmt;qmt=1;var t=Pbt();return Wmt="NODE"===t}function Ibt(){if(Qmt)return Zmt;Qmt=1;var t=wvt(),e=TypeError;return Zmt=function(r,n){if(t(n,r))return r;throw new e("Incorrect invocation")}}function Fbt(){if(nbt)return rbt;nbt=1;var t=mvt(),e=function(){if(ebt)return tbt;ebt=1;var t=Nmt(),e=xvt(),r=TypeError;return tbt=function(n){if(t(n))return n;throw new r(e(n)+" is not a constructor")}}(),r=Rpt(),n=Bvt()("species");return rbt=function(o,i){var u,a=t(o).constructor;return void 0===a||r(u=t(a)[n])?i:e(u)}}function Rbt(){if(cbt)return sbt;cbt=1;var t=Svt();return sbt=/(?:ipad|iphone|ipod).*applewebkit/i.test(t)}function Lbt(){if(fbt)return lbt;fbt=1;var t,e,r,n,o=iht(),i=function(){if(ibt)return obt;ibt=1;var t=Ipt(),e=Function.prototype,r=e.apply,n=e.call;return obt="object"==typeof Reflect&&Reflect.apply||(t?n.bind(r):function(){return n.apply(r,arguments)}),obt}(),u=xmt(),a=Upt(),s=jpt(),c=Ppt(),l=Zyt(),f=Mmt(),d=vvt(),p=function(){if(abt)return ubt;abt=1;var t=TypeError;return ubt=function(e,r){if(e<r)throw new t("Not enough arguments");return e}}(),h=Rbt(),v=Bbt(),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 r=a(t)?t:E(t),n=f(arguments,1);return D[++C]=function(){i(r,void 0,n)},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?(n=(r=new w).port2,r.port1.onmessage=T,e=u(n.postMessage,n)):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)}),lbt={set:g,clear:y}}function _bt(){if(vbt)return hbt;vbt=1;var t=function(){this.head=null,this.tail=null};return t.prototype={add:function(t){var e={item:t,next:null},r=this.tail;r?r.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}},hbt=t}function jbt(){if(wbt)return Ebt;wbt=1;var t,e,r,n,o,i=iht(),u=function(){if(pbt)return dbt;pbt=1;var t=iht(),e=Bpt(),r=Object.getOwnPropertyDescriptor;return dbt=function(n){if(!e)return t[n];var o=r(t,n);return o&&o.value}}(),a=xmt(),s=Lbt().set,c=_bt(),l=Rbt(),f=function(){if(ybt)return gbt;ybt=1;var t=Svt();return gbt=/ipad|iphone|ipod/i.test(t)&&"undefined"!=typeof Pebble}(),d=function(){if(bbt)return mbt;bbt=1;var t=Svt();return mbt=/web0s(?!.*chrome)/i.test(t)}(),p=Bbt(),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,r;for(p&&(e=g.domain)&&e.exit();r=b.get();)try{r()}catch(e){throw b.head&&t(),e}e&&e.enter()};l||p||d||!h||!v?!f&&y&&y.resolve?((n=y.resolve(void 0)).constructor=y,o=a(n.then,n),t=function(){o(E)}):p?t=function(){g.nextTick(E)}:(s=a(s,i),t=function(){s(E)}):(e=!0,r=v.createTextNode(""),new h(E).observe(r,{characterData:!0}),t=function(){r.data=e=!e}),m=function(e){b.head||t(),b.add(e)}}return Ebt=m}function Mbt(){return Obt?Dbt:(Obt=1,Dbt=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}})}function zbt(){if(xbt)return Abt;xbt=1;var t=iht();return Abt=t.Promise}function Hbt(){if(Nbt)return Tbt;Nbt=1;var t=iht(),e=zbt(),r=Upt(),n=Ggt(),o=sht(),i=Bvt(),u=Pbt(),a=oht(),s=Cvt(),c=e&&e.prototype,l=i("species"),f=!1,d=r(t.PromiseRejectionEvent),p=n("Promise",function(){var t=o(e),r=t!==String(e);if(!r&&66===s)return!0;if(a&&(!c.catch||!c.finally))return!0;if(!s||s<51||!/native code/.test(t)){var n=new e(function(t){t(1)}),i=function(t){t(function(){},function(){})};if((n.constructor={})[l]=i,!(f=n.then(function(){})instanceof i))return!0}return!(r||"BROWSER"!==u&&"DENO"!==u||d)});return Tbt={CONSTRUCTOR:p,REJECTION_EVENT:d,SUBCLASSING:f}}var $bt,Ubt,Vbt={};function Gbt(){if($bt)return Vbt;$bt=1;var t=Tvt(),e=TypeError,r=function(r){var n,o;this.promise=new r(function(t,r){if(void 0!==n||void 0!==o)throw new e("Bad Promise constructor");n=t,o=r}),this.resolve=t(n),this.reject=t(o)};return Vbt.f=function(t){return new r(t)},Vbt}var Wbt,qbt,Kbt,Ybt,Xbt,Jbt,Zbt,Qbt,tEt,eEt,rEt,nEt,oEt,iEt,uEt,aEt={};function sEt(){if(Ybt)return Kbt;Ybt=1;var t=uyt(),e=Nvt(),r=Rpt(),n=tmt(),o=Bvt()("iterator");return Kbt=function(i){if(!r(i))return e(i,o)||e(i,"@@iterator")||n[t(i)]}}function cEt(){if(eEt)return tEt;eEt=1;var t=xmt(),e=bvt(),r=mvt(),n=xvt(),o=function(){if(qbt)return Wbt;qbt=1;var t=Bvt(),e=tmt(),r=t("iterator"),n=Array.prototype;return Wbt=function(t){return void 0!==t&&(e.Array===t||n[r]===t)}}(),i=xgt(),u=wvt(),a=function(){if(Jbt)return Xbt;Jbt=1;var t=bvt(),e=Tvt(),r=mvt(),n=xvt(),o=sEt(),i=TypeError;return Xbt=function(u,a){var s=arguments.length<2?o(u):a;if(e(s))return r(t(s,u));throw new i(n(u)+" is not iterable")},Xbt}(),s=sEt(),c=function(){if(Qbt)return Zbt;Qbt=1;var t=bvt(),e=mvt(),r=Nvt();return Zbt=function(n,o,i){var u,a;e(n);try{if(!(u=r(n,"return"))){if("throw"===o)throw i;return i}u=t(u,n)}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 tEt=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)},k=function(t){return D?(r(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(n(p)+" is not iterable");if(o(y)){for(m=0,b=i(p);b>m;m++)if((E=k(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=k(S.value)}catch(t){c(g,"throw",t)}if("object"==typeof E&&E&&u(d,E))return E}return new f(!1)}}function lEt(){if(nEt)return rEt;nEt=1;var t=Bvt()("iterator"),e=!1;try{var r=0,n={next:function(){return{done:!!r++}},return:function(){e=!0}};n[t]=function(){return this},Array.from(n,function(){throw 2})}catch(t){}return rEt=function(r,n){try{if(!n&&!e)return!1}catch(t){return!1}var o=!1;try{var i={};i[t]=function(){return{next:function(){return{done:o=!0}}}},r(i)}catch(t){}return o}}function fEt(){if(iEt)return oEt;iEt=1;var t=zbt(),e=lEt(),r=Hbt().CONSTRUCTOR;return oEt=r||!e(function(e){t.all(e).then(void 0,function(){})})}var dEt,pEt,hEt,vEt,gEt,yEt,mEt,bEt={},EEt={},wEt={},SEt={};mEt||(mEt=1,function(){if(Ubt)return kbt;Ubt=1;var t,e,r,n,o=Wgt(),i=oht(),u=Bbt(),a=iht(),s=function(){if(Ymt)return Kmt;Ymt=1;var t=iht();return Kmt=t}(),c=bvt(),l=ugt(),f=imt(),d=nmt(),p=function(){if(Jmt)return Xmt;Jmt=1;var t=Evt(),e=$vt(),r=Bvt(),n=Bpt(),o=r("species");return Xmt=function(r){var i=t(r);n&&i&&!i[o]&&e(i,o,{configurable:!0,get:function(){return this}})}}(),h=Tvt(),v=Upt(),g=lht(),y=Ibt(),m=Fbt(),b=Lbt().set,E=jbt(),w=(Cbt||(Cbt=1,Sbt=function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}}),Sbt),S=Mbt(),C=_bt(),D=zvt(),O=zbt(),A=Hbt(),x=Gbt(),T="Promise",N=A.CONSTRUCTOR,k=A.REJECTION_EVENT,P=A.SUBCLASSING,B=D.getterFor(T),I=D.set,F=O&&O.prototype,R=O,L=F,_=a.TypeError,j=a.document,M=a.process,z=x.f,H=z,$=!!(j&&j.createEvent&&a.dispatchEvent),U="unhandledrejection",V=function(t){var e;return!(!g(t)||!v(e=t.then))&&e},G=function(t,e){var r,n,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?r=i:(f&&f.enter(),r=a(i),f&&(f.exit(),o=!0)),r===t.promise?l(new _("Promise-chain cycle")):(n=V(r))?c(n,r,s,l):s(r)):l(i)}catch(t){f&&!o&&f.exit(),l(t)}},W=function(t,e){t.notified||(t.notified=!0,E(function(){for(var r,n=t.reactions;r=n.get();)G(r,t);t.notified=!1,e&&!t.rejection&&K(t)}))},q=function(t,e,r){var n,o;$?((n=j.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),a.dispatchEvent(n)):n={promise:e,reason:r},!k&&(o=a["on"+t])?o(n):t===U&&w("Unhandled promise rejection",r)},K=function(t){c(b,a,function(){var e,r=t.facade,n=t.value;if(Y(t)&&(e=S(function(){u?M.emit("unhandledRejection",n,r):q(U,r,n)}),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,r){return function(n){t(e,n,r)}},Z=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,W(t,!0))},Q=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw new _("Promise can't be resolved itself");var n=V(e);n?E(function(){var r={done:!1};try{c(n,e,J(Q,r,t),J(Z,r,t))}catch(e){Z(r,e,t)}}):(t.value=e,t.state=1,W(t,!1))}catch(e){Z({done:!1},e,t)}}};if(N&&(L=(R=function(e){y(this,L),h(e),c(t,this);var r=B(this);try{e(J(Q,r),J(Z,r))}catch(t){Z(r,t)}}).prototype,(t=function(t){I(this,{type:T,done:!1,notified:!1,parent:!1,reactions:new C,rejection:!1,state:0,value:null})}).prototype=l(L,"then",function(t,e){var r=B(this),n=z(m(this,R));return r.parent=!0,n.ok=!v(t)||t,n.fail=v(e)&&e,n.domain=u?M.domain:void 0,0===r.state?r.reactions.add(n):E(function(){G(n,r)}),n.promise}),e=function(){var e=new t,r=B(e);this.promise=e,this.resolve=J(Q,r),this.reject=J(Z,r)},x.f=z=function(t){return t===R||t===r?new e(t):H(t)},!i&&v(O)&&F!==Object.prototype)){n=F.then,P||l(F,"then",function(t,e){var r=this;return new R(function(t,e){c(n,r,t,e)}).then(t,e)},{unsafe:!0});try{delete F.constructor}catch(t){}f&&f(F,L)}o({global:!0,constructor:!0,wrap:!0,forced:N},{Promise:R}),r=s.Promise,d(R,T,!1,!0),p(T)}(),function(){if(uEt)return aEt;uEt=1;var t=Wgt(),e=bvt(),r=Tvt(),n=Gbt(),o=Mbt(),i=cEt();t({target:"Promise",stat:!0,forced:fEt()},{all:function(t){var u=this,a=n.f(u),s=a.resolve,c=a.reject,l=o(function(){var n=r(u.resolve),o=[],a=0,l=1;i(t,function(t){var r=a++,i=!1;l++,e(n,u,t).then(function(t){i||(i=!0,o[r]=t,--l||s(o))},c)}),--l||s(o)});return l.error&&c(l.value),a.promise}})}(),function(){if(dEt)return bEt;dEt=1;var t=Wgt(),e=oht(),r=Hbt().CONSTRUCTOR,n=zbt(),o=Evt(),i=Upt(),u=ugt(),a=n&&n.prototype;if(t({target:"Promise",proto:!0,forced:r,real:!0},{catch:function(t){return this.then(void 0,t)}}),!e&&i(n)){var s=o("Promise").prototype.catch;a.catch!==s&&u(a,"catch",s,{unsafe:!0})}}(),function(){if(pEt)return EEt;pEt=1;var t=Wgt(),e=bvt(),r=Tvt(),n=Gbt(),o=Mbt(),i=cEt();t({target:"Promise",stat:!0,forced:fEt()},{race:function(t){var u=this,a=n.f(u),s=a.reject,c=o(function(){var n=r(u.resolve);i(t,function(t){e(n,u,t).then(a.resolve,s)})});return c.error&&s(c.value),a.promise}})}(),function(){if(hEt)return wEt;hEt=1;var t=Wgt(),e=Gbt();t({target:"Promise",stat:!0,forced:Hbt().CONSTRUCTOR},{reject:function(t){var r=e.f(this);return(0,r.reject)(t),r.promise}})}(),function(){if(yEt)return SEt;yEt=1;var t=Wgt(),e=Evt(),r=oht(),n=zbt(),o=Hbt().CONSTRUCTOR,i=function(){if(gEt)return vEt;gEt=1;var t=mvt(),e=lht(),r=Gbt();return vEt=function(n,o){if(t(n),e(o)&&o.constructor===n)return o;var i=r.f(n);return(0,i.resolve)(o),i.promise}}(),u=e("Promise"),a=r&&!o;t({target:"Promise",stat:!0,forced:r||o},{resolve:function(t){return i(a&&this===u?n:this,t)}})}());var CEt,DEt,OEt,AEt,xEt,TEt={};!function(){if(xEt)return TEt;xEt=1;var t=Mpt().PROPER,e=ugt(),r=mvt(),n=ayt(),o=Ppt(),i=function(){if(AEt)return OEt;AEt=1;var t=bvt(),e=jpt(),r=wvt(),n=function(){if(DEt)return CEt;DEt=1;var t=iht(),e=Ppt(),r=t.RegExp,n=!e(function(){var t=!0;try{r(".","d")}catch(e){t=!1}var e={},n="",o=t?"dgimsy":"gimsy",i=function(t,r){Object.defineProperty(e,t,{get:function(){return n+=r,!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(r.prototype,"flags").get.call(e)!==o||n!==o});return CEt={correct:n}}(),o=syt(),i=RegExp.prototype;return OEt=n.correct?function(t){return t.flags}:function(u){return n.correct||!r(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=r(this);return"/"+n(t.source)+"/"+n(i(t))},{unsafe:!0})}();var NEt,kEt,PEt,BEt={};!function(){if(PEt)return BEt;PEt=1;var t=function(){if(kEt)return NEt;kEt=1;var t=Fpt(),e=Ogt(),r=ayt(),n=Lpt(),o=t("".charAt),i=t("".charCodeAt),u=t("".slice),a=function(t){return function(a,s){var c,l,f=r(n(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 NEt={codeAt:a(!1),charAt:a(!0)}}().charAt,e=ayt(),r=zvt(),n=umt(),o=amt(),i="String Iterator",u=r.set,a=r.getterFor(i);n(String,"String",function(t){u(this,{type:i,string:e(t),index:0})},function(){var e,r=a(this),n=r.string,i=r.index;return i>=n.length?o(void 0,!0):(e=t(n,i),r.index+=e.length,o(e,!1))})}();var IEt,FEt,REt,LEt,_Et={};function jEt(){if(FEt)return IEt;FEt=1;var t=Ppt();return IEt=!t(function(){return Object.isExtensible(Object.preventExtensions({}))})}function MEt(){if(LEt)return REt;LEt=1;var t=ugt();return REt=function(e,r,n){for(var o in r)t(e,o,r[o],n);return e}}var zEt,HEt,$Et,UEt,VEt,GEt,WEt,qEt,KEt,YEt,XEt,JEt,ZEt,QEt,twt={exports:{}},ewt={};function rwt(){if(GEt)return twt.exports;GEt=1;var t=Wgt(),e=Fpt(),r=Mvt(),n=lht(),o=jpt(),i=Rvt().f,u=kgt(),a=function(){if(zEt)return ewt;zEt=1;var t=rgt(),e=ogt(),r=kgt().f,n=Mmt(),o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];return ewt.f=function(i){return o&&"Window"===t(i)?function(t){try{return r(t)}catch(t){return n(o)}}(i):r(e(i))},ewt}(),s=function(){if(VEt)return UEt;VEt=1;var t=Ppt(),e=lht(),r=rgt(),n=function(){if($Et)return HEt;$Et=1;var t=Ppt();return HEt=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 UEt=i||n?function(t){return!!e(t)&&(!n||"ArrayBuffer"!==r(t))&&(!o||o(t))}:o}(),c=Pvt(),l=jEt(),f=!1,d=c("meta"),p=0,h=function(t){i(t,d,{value:{objectID:"O"+p++,weakData:{}}})},v=twt.exports={enable:function(){v.enable=function(){},f=!0;var r=u.f,n=e([].splice),o={};o[d]=1,r(o).length&&(u.f=function(t){for(var e=r(t),o=0,i=e.length;o<i;o++)if(e[o]===d){n(e,o,1);break}return e},t({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:a.f}))},fastKey:function(t,e){if(!n(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 r[d]=!0,twt.exports}function nwt(){if(YEt)return KEt;YEt=1;var t=Wgt(),e=iht(),r=Fpt(),n=Ggt(),o=ugt(),i=rwt(),u=cEt(),a=Ibt(),s=Upt(),c=Rpt(),l=lht(),f=Ppt(),d=lEt(),p=nmt(),h=function(){if(qEt)return WEt;qEt=1;var t=Upt(),e=lht(),r=imt();return WEt=function(n,o,i){var u,a;return r&&t(u=o.constructor)&&u!==i&&e(a=u.prototype)&&a!==i.prototype&&r(n,a),n}}();return KEt=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=r(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,r){return e(this,0===t?0:t,r),this})};if(n(v,!s(w)||!(b||S.forEach&&!f(function(){(new w).entries().next()}))))C=y.getConstructor(g,v,m,E),i.enable();else if(n(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)}),k=!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 r=h(new w,t,C);return c(e)||u(e,r[E],{that:r,AS_ENTRIES:m}),r})).prototype=S,S.constructor=C),(T||k)&&(O("delete"),O("has"),m&&O("get")),(k||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}}QEt||(QEt=1,function(){if(ZEt)return _Et;ZEt=1;var t,e=jEt(),r=iht(),n=Fpt(),o=MEt(),i=rwt(),u=nwt(),a=function(){if(JEt)return XEt;JEt=1;var t=Fpt(),e=MEt(),r=rwt().getWeakData,n=Ibt(),o=mvt(),i=Rpt(),u=lht(),a=cEt(),s=Pmt(),c=jpt(),l=zvt(),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 r=b(this,t);r?r[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}},XEt={getConstructor:function(t,s,l,p){var h=t(function(t,e){n(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,n){var i=m(t),u=r(o(e),!0);return!0===u?y(i).set(e,n):u[i.id]=n,t};return e(v,{delete:function(t){var e=m(this);if(!u(t))return!1;var n=r(t);return!0===n?y(e).delete(t):n&&c(n,e.id)&&delete n[e.id]},has:function(t){var e=m(this);if(!u(t))return!1;var n=r(t);return!0===n?y(e).has(t):n&&c(n,e.id)}}),e(v,l?{get:function(t){var e=m(this);if(u(t)){var n=r(t);if(!0===n)return y(e).get(t);if(n)return n[e.id]}},set:function(t,e){return b(this,t,e)}}:{add:function(t){return b(this,t,!0)}}),h}}}(),s=lht(),c=zvt().enforce,l=Ppt(),f=cht(),d=Object,p=Array.isArray,h=d.isExtensible,v=d.isFrozen,g=d.isSealed,y=d.freeze,m=d.seal,b=!r.ActiveXObject&&"ActiveXObject"in r,E=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},w=u("WeakMap",E,a),S=w.prototype,C=n(S.set);if(f)if(b){t=a.getConstructor(E,"WeakMap",!0),i.enable();var D=n(S.delete),O=n(S.has),A=n(S.get);o(S,{delete:function(e){if(s(e)&&!h(e)){var r=c(this);return r.frozen||(r.frozen=new t),D(this,e)||r.frozen.delete(e)}return D(this,e)},has:function(e){if(s(e)&&!h(e)){var r=c(this);return r.frozen||(r.frozen=new t),O(this,e)||r.frozen.has(e)}return O(this,e)},get:function(e){if(s(e)&&!h(e)){var r=c(this);return r.frozen||(r.frozen=new t),O(this,e)?A(this,e):r.frozen.get(e)}return A(this,e)},set:function(e,r){if(s(e)&&!h(e)){var n=c(this);n.frozen||(n.frozen=new t),O(this,e)?C(this,e,r):n.frozen.set(e,r)}else C(this,e,r);return this}})}else e&&l(function(){var t=y([]);return C(new w,t,1),!v(t)})&&o(S,{set:function(t,e){var r;return p(t)&&(v(t)?r=y:g(t)&&(r=m)),C(this,t,e),r&&r(t),this}})}());var owt,iwt,uwt,awt,swt,cwt,lwt,fwt={};function dwt(){return iwt?owt:(iwt=1,owt={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 pwt(){if(awt)return uwt;awt=1;var t=vvt()("span").classList,e=t&&t.constructor&&t.constructor.prototype;return uwt=e===Object.prototype?void 0:e}!function(){if(lwt)return fwt;lwt=1;var t=iht(),e=dwt(),r=pwt(),n=function(){if(cwt)return swt;cwt=1;var t=Pmt().forEach,e=qgt()("forEach");return swt=e?[].forEach:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)},swt}(),o=_vt(),i=function(t){if(t&&t.forEach!==n)try{o(t,"forEach",n)}catch(e){t.forEach=n}};for(var u in e)e[u]&&i(t[u]&&t[u].prototype);i(r)}();var hwt,vwt={};!function(){if(hwt)return vwt;hwt=1;var t=iht(),e=dwt(),r=pwt(),n=smt(),o=_vt(),i=nmt(),u=Bvt()("iterator"),a=n.values,s=function(t,r){if(t){if(t[u]!==a)try{o(t,u,a)}catch(e){t[u]=a}if(i(t,r,!0),e[r])for(var s in n)if(t[s]!==n[s])try{o(t,s,n[s])}catch(e){t[s]=n[s]}}};for(var c in e)s(t[c]&&t[c].prototype,c);s(r,"DOMTokenList")}();var gwt=function(){return gwt=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},gwt.apply(this,arguments)};function ywt(t,e,r,n){return new(r||(r=Promise))(function(e,o){function i(t){try{a(n.next(t))}catch(t){o(t)}}function u(t){try{a(n.throw(t))}catch(t){o(t)}}function a(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r(function(t){t(n)})).then(i,u)}a((n=n.apply(t,[])).next())})}function mwt(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},u=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return u.next=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(r)throw new TypeError("Generator is already executing.");for(;u&&(u=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=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++,n=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],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}function bwt(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,r=t[Symbol.asyncIterator];return r?r.call(t):(t=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(r){e[r]=t[r]&&function(e){return new Promise(function(n,o){!function(t,e,r,n){Promise.resolve(n).then(function(e){t({value:e,done:r})},e)}(n,o,(e=t[r](e)).done,e.value)})}}}"function"==typeof SuppressedError&&SuppressedError;var Ewt=new WeakMap;function wwt(t){return t.getMenuConfig("uploadImage")}function Swt(t,e){return ywt(this,0,void 0,function(){return mwt(this,function(r){return[2,new Promise(function(r){var n=new FileReader;n.readAsDataURL(e),n.onload=function(){var o=n.result;if(o){var i=o.toString(),u=0===i.indexOf("data:image")?"":i;sZ(t,i,e.name,u),r("ok")}}})]})})}function Cwt(t,e){return ywt(this,0,void 0,function(){var r,n;return mwt(this,function(o){switch(o.label){case 0:return r=function(t){var e=Ewt.get(t);if(null!=e)return e;var r=wwt(t),n=r.onSuccess,o=r.onProgress,i=r.onFailed,u=r.customInsert,a=r.onError;return e=tL(gwt(gwt({},r),{onProgress:function(e){t.showProgressBar(e),o&&o(e)},onSuccess:function(e,r){if(u)return u(r,function(e,r,n){return sZ(t,e,r,n)}),void n(e,r);var o=r.errno,a=void 0===o?1:o,s=r.data,c=void 0===s?{}:s;if(0===a){if(Array.isArray(c))c.forEach(function(e){var r=e.url,n=void 0===r?"":r,o=e.alt,i=void 0===o?"":o,u=e.href;sZ(t,n,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;sZ(t,f,p,void 0===h?"":h)}n(e,r)}else i(e,r)},onError:function(t,e,r){a(t,e,r)}})),Ewt.set(t,e),e}(t),n=e.map(function(t){return{name:t.name,type:t.type,size:t.size,data:t}}),r.addFiles(n),[4,r.upload()];case 1:return o.sent(),[2]}})})}function Dwt(t,e){return ywt(this,0,void 0,function(){var r,n,o,i,u,a,s,c,l,f,d,p,h,v,g;return mwt(this,function(y){switch(y.label){case 0:if(null==e)return[2];r=Array.prototype.slice.call(e),n=wwt(t),o=n.customUpload,i=n.base64LimitSize,u=[],y.label=1;case 1:y.trys.push([1,10,11,16]),a=!0,s=bwt(r),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,Swt(t,l)]:[3,5]);case 4:return y.sent(),[3,8];case 5:return o?[4,o(l,function(e,r,n){return sZ(t,e,r,n)})]:[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,Cwt(t,u)]:[3,18];case 17:y.sent(),y.label=18;case 18:return[2]}})})}var Owt=function(){function t(){this.title=LF("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 iZ(t)},t.prototype.getMenuConfig=function(t){return t.getMenuConfig("uploadImage")},t.prototype.exec=function(t,e){var r=this.getMenuConfig(t),n=r.allowedFileTypes,o=void 0===n?[]:n,i=r.customBrowseAndUpload;if(i)i(function(e,r,n){return sZ(t,e,r,n)});else{var u="";o.length>0&&(u='accept="'.concat(o.join(", "),'"'));var a=og("body"),s=og('<input type="file" '.concat(u," multiple/>"));s.hide(),a.append(s),s.click(),s.on("change",function(){var e=s[0].files;Dwt(t,e)})}},t}(),Awt={menus:[{key:"uploadImage",factory:function(){return new Owt},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,r){console.error("'".concat(t.name,"' upload error"),r)},base64LimitSize:0}}],editorPlugin:function(t){var e=t.insertData,r=t;return r.insertData=function(n){if(iZ(r))e(n);else if(n.getData("text/plain"))e(n);else{var o=n.files;o.length<=0?e(n):Array.prototype.slice.call(o).some(function(t){return"image"===function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)u.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u}(t.type.split("/"),1)[0]})?Dwt(t,o):e(n)}},r}};BF("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"}}),BF("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",edit:"编辑视频",width:"宽度",height:"高度"}});var xwt,Twt,Nwt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},kwt={};function Pwt(){if(Twt)return xwt;Twt=1;var t=function(t){return t&&t.Math===Math&&t};return xwt=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof Nwt&&Nwt)||t("object"==typeof xwt&&xwt)||function(){return this}()||Function("return this")()}var Bwt,Iwt,Fwt,Rwt,Lwt,_wt,jwt,Mwt,zwt={};function Hwt(){return Iwt?Bwt:(Iwt=1,Bwt=function(t){try{return!!t()}catch(t){return!0}})}function $wt(){if(Rwt)return Fwt;Rwt=1;var t=Hwt();return Fwt=!t(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function Uwt(){if(_wt)return Lwt;_wt=1;var t=Hwt();return Lwt=!t(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})}function Vwt(){if(Mwt)return jwt;Mwt=1;var t=Uwt(),e=Function.prototype.call;return jwt=t?e.bind(e):function(){return e.apply(e,arguments)},jwt}var Gwt,Wwt,qwt,Kwt,Ywt,Xwt,Jwt,Zwt,Qwt,tSt,eSt,rSt,nSt,oSt,iSt,uSt,aSt,sSt,cSt,lSt,fSt,dSt,pSt,hSt,vSt,gSt,ySt,mSt,bSt,ESt,wSt,SSt,CSt,DSt,OSt,ASt,xSt,TSt,NSt,kSt,PSt,BSt={};function ISt(){return qwt?Wwt:(qwt=1,Wwt=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}})}function FSt(){if(Ywt)return Kwt;Ywt=1;var t=Uwt(),e=Function.prototype,r=e.call,n=t&&e.bind.bind(r,r);return Kwt=t?n:function(t){return function(){return r.apply(t,arguments)}},Kwt}function RSt(){if(Jwt)return Xwt;Jwt=1;var t=FSt(),e=t({}.toString),r=t("".slice);return Xwt=function(t){return r(e(t),8,-1)}}function LSt(){if(Qwt)return Zwt;Qwt=1;var t=FSt(),e=Hwt(),r=RSt(),n=Object,o=t("".split);return Zwt=e(function(){return!n("z").propertyIsEnumerable(0)})?function(t){return"String"===r(t)?o(t,""):n(t)}:n}function _St(){return eSt?tSt:(eSt=1,tSt=function(t){return null==t})}function jSt(){if(nSt)return rSt;nSt=1;var t=_St(),e=TypeError;return rSt=function(r){if(t(r))throw new e("Can't call method on "+r);return r}}function MSt(){if(iSt)return oSt;iSt=1;var t=LSt(),e=jSt();return oSt=function(r){return t(e(r))}}function zSt(){if(aSt)return uSt;aSt=1;var t="object"==typeof document&&document.all;return uSt=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(t){return"function"==typeof t}}function HSt(){if(cSt)return sSt;cSt=1;var t=zSt();return sSt=function(e){return"object"==typeof e?null!==e:t(e)}}function $St(){if(fSt)return lSt;fSt=1;var t=Pwt(),e=zSt();return lSt=function(r,n){return arguments.length<2?(o=t[r],e(o)?o:void 0):t[r]&&t[r][n];var o},lSt}function USt(){if(pSt)return dSt;pSt=1;var t=FSt();return dSt=t({}.isPrototypeOf)}function VSt(){if(vSt)return hSt;vSt=1;var t=Pwt().navigator,e=t&&t.userAgent;return hSt=e?String(e):""}function GSt(){if(ySt)return gSt;ySt=1;var t,e,r=Pwt(),n=VSt(),o=r.process,i=r.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&&n&&(!(t=n.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=n.match(/Chrome\/(\d+)/))&&(e=+t[1]),gSt=e}function WSt(){if(bSt)return mSt;bSt=1;var t=GSt(),e=Hwt(),r=Pwt().String;return mSt=!!Object.getOwnPropertySymbols&&!e(function(){var e=Symbol("symbol detection");return!r(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&t&&t<41})}function qSt(){if(wSt)return ESt;wSt=1;var t=WSt();return ESt=t&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function KSt(){if(CSt)return SSt;CSt=1;var t=$St(),e=zSt(),r=USt(),n=qSt(),o=Object;return SSt=n?function(t){return"symbol"==typeof t}:function(n){var i=t("Symbol");return e(i)&&r(i.prototype,o(n))}}function YSt(){if(OSt)return DSt;OSt=1;var t=String;return DSt=function(e){try{return t(e)}catch(t){return"Object"}}}function XSt(){if(xSt)return ASt;xSt=1;var t=zSt(),e=YSt(),r=TypeError;return ASt=function(n){if(t(n))return n;throw new r(e(n)+" is not a function")}}function JSt(){if(NSt)return TSt;NSt=1;var t=XSt(),e=_St();return TSt=function(r,n){var o=r[n];return e(o)?void 0:t(o)}}var ZSt,QSt,tCt,eCt,rCt,nCt,oCt,iCt,uCt,aCt,sCt,cCt,lCt,fCt,dCt,pCt,hCt,vCt,gCt,yCt,mCt,bCt,ECt,wCt,SCt={exports:{}};function CCt(){return QSt?ZSt:(QSt=1,ZSt=!1)}function DCt(){if(eCt)return tCt;eCt=1;var t=Pwt(),e=Object.defineProperty;return tCt=function(r,n){try{e(t,r,{value:n,configurable:!0,writable:!0})}catch(e){t[r]=n}return n}}function OCt(){if(rCt)return SCt.exports;rCt=1;var t=CCt(),e=Pwt(),r=DCt(),n="__core-js_shared__",o=SCt.exports=e[n]||r(n,{});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"}),SCt.exports}function ACt(){if(oCt)return nCt;oCt=1;var t=OCt();return nCt=function(e,r){return t[e]||(t[e]=r||{})}}function xCt(){if(uCt)return iCt;uCt=1;var t=jSt(),e=Object;return iCt=function(r){return e(t(r))}}function TCt(){if(sCt)return aCt;sCt=1;var t=FSt(),e=xCt(),r=t({}.hasOwnProperty);return aCt=Object.hasOwn||function(t,n){return r(e(t),n)}}function NCt(){if(lCt)return cCt;lCt=1;var t=FSt(),e=0,r=Math.random(),n=t(1.1.toString);return cCt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+n(++e+r,36)}}function kCt(){if(dCt)return fCt;dCt=1;var t=Pwt(),e=ACt(),r=TCt(),n=NCt(),o=WSt(),i=qSt(),u=t.Symbol,a=e("wks"),s=i?u.for||u:u&&u.withoutSetter||n;return fCt=function(t){return r(a,t)||(a[t]=o&&r(u,t)?u[t]:s("Symbol."+t)),a[t]}}function PCt(){if(hCt)return pCt;hCt=1;var t=Vwt(),e=HSt(),r=KSt(),n=JSt(),o=function(){if(PSt)return kSt;PSt=1;var t=Vwt(),e=zSt(),r=HSt(),n=TypeError;return kSt=function(o,i){var u,a;if("string"===i&&e(u=o.toString)&&!r(a=t(u,o)))return a;if(e(u=o.valueOf)&&!r(a=t(u,o)))return a;if("string"!==i&&e(u=o.toString)&&!r(a=t(u,o)))return a;throw new n("Can't convert object to primitive value")},kSt}(),i=kCt(),u=TypeError,a=i("toPrimitive");return pCt=function(i,s){if(!e(i)||r(i))return i;var c,l=n(i,a);if(l){if(void 0===s&&(s="default"),c=t(l,i,s),!e(c)||r(c))return c;throw new u("Can't convert object to primitive value")}return void 0===s&&(s="number"),o(i,s)}}function BCt(){if(gCt)return vCt;gCt=1;var t=PCt(),e=KSt();return vCt=function(r){var n=t(r,"string");return e(n)?n:n+""}}function ICt(){if(mCt)return yCt;mCt=1;var t=Pwt(),e=HSt(),r=t.document,n=e(r)&&e(r.createElement);return yCt=function(t){return n?r.createElement(t):{}}}function FCt(){if(ECt)return bCt;ECt=1;var t=$wt(),e=Hwt(),r=ICt();return bCt=!t&&!e(function(){return 7!==Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a})}function RCt(){if(wCt)return zwt;wCt=1;var t=$wt(),e=Vwt(),r=function(){if(Gwt)return BSt;Gwt=1;var t={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,r=e&&!t.call({1:2},1);return BSt.f=r?function(t){var r=e(this,t);return!!r&&r.enumerable}:t,BSt}(),n=ISt(),o=MSt(),i=BCt(),u=TCt(),a=FCt(),s=Object.getOwnPropertyDescriptor;return zwt.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 n(!e(r.f,t,c),t[c])},zwt}var LCt,_Ct,jCt,MCt,zCt,HCt,$Ct,UCt={};function VCt(){if(_Ct)return LCt;_Ct=1;var t=$wt(),e=Hwt();return LCt=t&&e(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}function GCt(){if(MCt)return jCt;MCt=1;var t=HSt(),e=String,r=TypeError;return jCt=function(n){if(t(n))return n;throw new r(e(n)+" is not an object")}}function WCt(){if(zCt)return UCt;zCt=1;var t=$wt(),e=FCt(),r=VCt(),n=GCt(),o=BCt(),i=TypeError,u=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s="enumerable",c="configurable",l="writable";return UCt.f=t?r?function(t,e,r){if(n(t),e=o(e),n(r),"function"==typeof t&&"prototype"===e&&"value"in r&&l in r&&!r[l]){var i=a(t,e);i&&i[l]&&(t[e]=r.value,r={configurable:c in r?r[c]:i[c],enumerable:s in r?r[s]:i[s],writable:!1})}return u(t,e,r)}:u:function(t,r,a){if(n(t),r=o(r),n(a),e)try{return u(t,r,a)}catch(t){}if("get"in a||"set"in a)throw new i("Accessors not supported");return"value"in a&&(t[r]=a.value),t},UCt}function qCt(){if($Ct)return HCt;$Ct=1;var t=$wt(),e=WCt(),r=ISt();return HCt=t?function(t,n,o){return e.f(t,n,r(1,o))}:function(t,e,r){return t[e]=r,t}}var KCt,YCt,XCt,JCt,ZCt,QCt,tDt,eDt,rDt,nDt,oDt,iDt,uDt,aDt,sDt,cDt={exports:{}};function lDt(){if(YCt)return KCt;YCt=1;var t=$wt(),e=TCt(),r=Function.prototype,n=t&&Object.getOwnPropertyDescriptor,o=e(r,"name"),i=o&&"something"===function(){}.name,u=o&&(!t||t&&n(r,"name").configurable);return KCt={EXISTS:o,PROPER:i,CONFIGURABLE:u}}function fDt(){if(JCt)return XCt;JCt=1;var t=FSt(),e=zSt(),r=OCt(),n=t(Function.toString);return e(r.inspectSource)||(r.inspectSource=function(t){return n(t)}),XCt=r.inspectSource}function dDt(){if(QCt)return ZCt;QCt=1;var t=Pwt(),e=zSt(),r=t.WeakMap;return ZCt=e(r)&&/native code/.test(String(r))}function pDt(){if(eDt)return tDt;eDt=1;var t=ACt(),e=NCt(),r=t("keys");return tDt=function(t){return r[t]||(r[t]=e(t))}}function hDt(){return nDt?rDt:(nDt=1,rDt={})}function vDt(){if(iDt)return oDt;iDt=1;var t,e,r,n=dDt(),o=Pwt(),i=HSt(),u=qCt(),a=TCt(),s=OCt(),c=pDt(),l=hDt(),f="Object already initialized",d=o.TypeError,p=o.WeakMap;if(n||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)||{}},r=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]:{}},r=function(t){return a(t,v)}}return oDt={set:t,get:e,has:r,enforce:function(n){return r(n)?e(n):t(n,{})},getterFor:function(t){return function(r){var n;if(!i(r)||(n=e(r)).type!==t)throw new d("Incompatible receiver, "+t+" required");return n}}}}function gDt(){if(uDt)return cDt.exports;uDt=1;var t=FSt(),e=Hwt(),r=zSt(),n=TCt(),o=$wt(),i=lDt().CONFIGURABLE,u=fDt(),a=vDt(),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=cDt.exports=function(t,e,r){"Symbol("===d(l(e),0,7)&&(e="["+p(l(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!n(t,"name")||i&&t.name!==e)&&(o?f(t,"name",{value:e,configurable:!0}):t.name=e),v&&r&&n(r,"arity")&&t.length!==r.arity&&f(t,"length",{value:r.arity});try{r&&n(r,"constructor")&&r.constructor?o&&f(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var u=s(t);return n(u,"source")||(u.source=h(g,"string"==typeof e?e:"")),t};return Function.prototype.toString=y(function(){return r(this)&&c(this).source||u(this)},"toString"),cDt.exports}function yDt(){if(sDt)return aDt;sDt=1;var t=zSt(),e=WCt(),r=gDt(),n=DCt();return aDt=function(o,i,u,a){a||(a={});var s=a.enumerable,c=void 0!==a.name?a.name:i;if(t(u)&&r(u,c,a),a.global)s?o[i]=u:n(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 mDt,bDt,EDt,wDt,SDt,CDt,DDt,ODt,ADt,xDt,TDt,NDt,kDt,PDt,BDt,IDt,FDt,RDt={};function LDt(){if(wDt)return EDt;wDt=1;var t=function(){if(bDt)return mDt;bDt=1;var t=Math.ceil,e=Math.floor;return mDt=Math.trunc||function(r){var n=+r;return(n>0?e:t)(n)}}();return EDt=function(e){var r=+e;return r!=r||0===r?0:t(r)}}function _Dt(){if(CDt)return SDt;CDt=1;var t=LDt(),e=Math.max,r=Math.min;return SDt=function(n,o){var i=t(n);return i<0?e(i+o,0):r(i,o)}}function jDt(){if(ODt)return DDt;ODt=1;var t=LDt(),e=Math.min;return DDt=function(r){var n=t(r);return n>0?e(n,9007199254740991):0}}function MDt(){if(xDt)return ADt;xDt=1;var t=jDt();return ADt=function(e){return t(e.length)}}function zDt(){if(NDt)return TDt;NDt=1;var t=MSt(),e=_Dt(),r=MDt(),n=function(n){return function(o,i,u){var a=t(o),s=r(a);if(0===s)return!n&&-1;var c,l=e(u,s);if(n&&i!=i){for(;s>l;)if((c=a[l++])!=c)return!0}else for(;s>l;l++)if((n||l in a)&&a[l]===i)return n||l||0;return!n&&-1}};return TDt={includes:n(!0),indexOf:n(!1)}}function HDt(){if(PDt)return kDt;PDt=1;var t=FSt(),e=TCt(),r=MSt(),n=zDt().indexOf,o=hDt(),i=t([].push);return kDt=function(t,u){var a,s=r(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++])&&(~n(l,a)||i(l,a));return l}}function $Dt(){return IDt?BDt:(IDt=1,BDt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function UDt(){if(FDt)return RDt;FDt=1;var t=HDt(),e=$Dt().concat("length","prototype");return RDt.f=Object.getOwnPropertyNames||function(r){return t(r,e)},RDt}var VDt,GDt,WDt,qDt,KDt,YDt,XDt,JDt,ZDt,QDt,tOt,eOt,rOt,nOt,oOt,iOt,uOt,aOt,sOt,cOt,lOt,fOt,dOt,pOt,hOt,vOt,gOt,yOt,mOt={};function bOt(){if(KDt)return qDt;KDt=1;var t=TCt(),e=function(){if(WDt)return GDt;WDt=1;var t=$St(),e=FSt(),r=UDt(),n=(VDt||(VDt=1,mOt.f=Object.getOwnPropertySymbols),mOt),o=GCt(),i=e([].concat);return GDt=t("Reflect","ownKeys")||function(t){var e=r.f(o(t)),u=n.f;return u?i(e,u(t)):e}}(),r=RCt(),n=WCt();return qDt=function(o,i,u){for(var a=e(i),s=n.f,c=r.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 EOt(){if(XDt)return YDt;XDt=1;var t=Hwt(),e=zSt(),r=/#|\.prototype\./,n=function(r,n){var s=i[o(r)];return s===a||s!==u&&(e(n)?t(n):!!n)},o=n.normalize=function(t){return String(t).replace(r,".").toLowerCase()},i=n.data={},u=n.NATIVE="N",a=n.POLYFILL="P";return YDt=n}function wOt(){if(ZDt)return JDt;ZDt=1;var t=Pwt(),e=RCt().f,r=qCt(),n=yDt(),o=DCt(),i=bOt(),u=EOt();return JDt=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)&&r(d,"sham",!0),n(c,l,d,a)}}}function SOt(){if(tOt)return QDt;tOt=1;var t=RSt();return QDt=Array.isArray||function(e){return"Array"===t(e)}}function COt(){if(oOt)return nOt;oOt=1;var t=$wt(),e=WCt(),r=ISt();return nOt=function(n,o,i){t?e.f(n,o,r(0,i)):n[o]=i}}function DOt(){if(uOt)return iOt;uOt=1;var t={};return t[kCt()("toStringTag")]="z",iOt="[object z]"===String(t)}function OOt(){if(sOt)return aOt;sOt=1;var t=DOt(),e=zSt(),r=RSt(),n=kCt()("toStringTag"),o=Object,i="Arguments"===r(function(){return arguments}());return aOt=t?r: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),n))?a:i?r(u):"Object"===(s=r(u))&&e(u.callee)?"Arguments":s}}function AOt(){if(lOt)return cOt;lOt=1;var t=FSt(),e=Hwt(),r=zSt(),n=OOt(),o=$St(),i=fDt(),u=function(){},a=o("Reflect","construct"),s=/^\s*(?:class|function)\b/,c=t(s.exec),l=!s.test(u),f=function(t){if(!r(t))return!1;try{return a(u,[],t),!0}catch(t){return!1}},d=function(t){if(!r(t))return!1;switch(n(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return l||!!c(s,i(t))}catch(t){return!0}};return d.sham=!0,cOt=!a||e(function(){var t;return f(f.call)||!f(Object)||!f(function(){t=!0})||t})?d:f}function xOt(){if(hOt)return pOt;hOt=1;var t=function(){if(dOt)return fOt;dOt=1;var t=SOt(),e=AOt(),r=HSt(),n=kCt()("species"),o=Array;return fOt=function(i){var u;return t(i)&&(u=i.constructor,(e(u)&&(u===o||t(u.prototype))||r(u)&&null===(u=u[n]))&&(u=void 0)),void 0===u?o:u}}();return pOt=function(e,r){return new(t(e))(0===r?0:r)}}function TOt(){if(gOt)return vOt;gOt=1;var t=Hwt(),e=kCt(),r=GSt(),n=e("species");return vOt=function(e){return r>=51||!t(function(){var t=[];return(t.constructor={})[n]=function(){return{foo:1}},1!==t[e](Boolean).foo})}}!function(){if(yOt)return kwt;yOt=1;var t=wOt(),e=Hwt(),r=SOt(),n=HSt(),o=xCt(),i=MDt(),u=function(){if(rOt)return eOt;rOt=1;var t=TypeError;return eOt=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}}(),a=COt(),s=xOt(),c=TOt(),l=kCt(),f=GSt(),d=l("isConcatSpreadable"),p=f>=51||!e(function(){var t=[];return t[d]=!1,t.concat()[0]!==t}),h=function(t){if(!n(t))return!1;var e=t[d];return void 0!==e?!!e:r(t)};t({target:"Array",proto:!0,arity:1,forced:!p||!c("concat")},{concat:function(t){var e,r,n,c,l,f=o(this),d=s(f,0),p=0;for(e=-1,n=arguments.length;e<n;e++)if(h(l=-1===e?f:arguments[e]))for(c=i(l),u(p+c),r=0;r<c;r++,p++)r in l&&a(d,p,l[r]);else u(p+1),a(d,p++,l);return d.length=p,d}})}();var NOt,kOt,POt,BOt,IOt,FOt,ROt,LOt,_Ot,jOt={};function MOt(){if(kOt)return NOt;kOt=1;var t=OOt(),e=String;return NOt=function(r){if("Symbol"===t(r))throw new TypeError("Cannot convert a Symbol value to a string");return e(r)}}function zOt(){return BOt?POt:(BOt=1,POt="\t\n\v\f\r                 \u2028\u2029\ufeff")}!function(){if(_Ot)return jOt;_Ot=1;var t=wOt(),e=function(){if(FOt)return IOt;FOt=1;var t=FSt(),e=jSt(),r=MOt(),n=zOt(),o=t("".replace),i=RegExp("^["+n+"]+"),u=RegExp("(^|[^"+n+"])["+n+"]+$"),a=function(t){return function(n){var a=r(e(n));return 1&t&&(a=o(a,i,"")),2&t&&(a=o(a,u,"$1")),a}};return IOt={start:a(1),end:a(2),trim:a(3)}}().trim,r=function(){if(LOt)return ROt;LOt=1;var t=lDt().PROPER,e=Hwt(),r=zOt();return ROt=function(n){return e(function(){return!!r[n]()||"​…᠎"!=="​…᠎"[n]()||t&&r[n].name!==n})}}();t({target:"String",proto:!0,forced:r("trim")},{trim:function(){return e(this)}})}();var HOt,$Ot,UOt={};function VOt(t){return t.length?t[0].tagName.toLowerCase():""}function GOt(t,e,r,n){void 0===e&&(e="auto"),void 0===r&&(r="auto"),void 0===n&&(n={});var o=og(t),i=n.width,u=void 0===i?"":i,a=n.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",r),o.attr("style",c),o[0].outerHTML}$Ot||($Ot=1,function(){if(HOt)return UOt;HOt=1;var t=wOt(),e=Pwt();t({global:!0,forced:e.globalThis!==e},{globalThis:e})}()),Ag&&(og.fn.append=Ag),pg&&(og.fn.on=pg),_g&&(og.fn.focus=_g),sg&&(og.fn.attr=sg),dg&&(og.fn.val=dg),Cg&&(og.fn.html=Cg),Tg&&(og.fn.parent=Tg),ag&&(og.fn.hasClass=ag),Ig&&(og.fn.empty=Ig);var WOt,qOt,KOt,YOt={type:"video",elemToHtml:function(t,e){var r=t,n=r.src,o=void 0===n?"":n,i=r.poster,u=void 0===i?"":i,a=r.width,s=void 0===a?"auto":a,c=r.height,l=void 0===c?"auto":c,f=r.style,d=void 0===f?{}:f,p=r.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+=GOt(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>"}},XOt={};function JOt(){if(qOt)return WOt;qOt=1;var t=gDt(),e=WCt();return WOt=function(r,n,o){return o.get&&t(o.get,n,{getter:!0}),o.set&&t(o.set,n,{setter:!0}),e.f(r,n,o)}}!function(){if(KOt)return XOt;KOt=1;var t=$wt(),e=lDt().EXISTS,r=FSt(),n=JOt(),o=Function.prototype,i=r(o.toString),u=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,a=r(u.exec);t&&!e&&n(o,"name",{configurable:!0,get:function(){try{return a(u,i(this))[1]}catch(t){return""}}})}();var ZOt,QOt,tAt,eAt,rAt,nAt,oAt={};function iAt(){if(eAt)return tAt;eAt=1;var t=function(){if(QOt)return ZOt;QOt=1;var t=RSt(),e=FSt();return ZOt=function(r){if("Function"===t(r))return e(r)}}(),e=XSt(),r=Uwt(),n=t(t.bind);return tAt=function(t,o){return e(t),void 0===o?t:r?n(t,o):function(){return t.apply(o,arguments)}},tAt}function uAt(){if(nAt)return rAt;nAt=1;var t=iAt(),e=FSt(),r=LSt(),n=xCt(),o=MDt(),i=xOt(),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=n(h),w=r(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 rAt={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 aAt,sAt,cAt,lAt,fAt,dAt,pAt,hAt,vAt,gAt,yAt={};function mAt(){if(fAt)return lAt;fAt=1;var t=$St();return lAt=t("document","documentElement")}function bAt(){if(pAt)return dAt;pAt=1;var t,e=GCt(),r=function(){if(cAt)return yAt;cAt=1;var t=$wt(),e=VCt(),r=WCt(),n=GCt(),o=MSt(),i=function(){if(sAt)return aAt;sAt=1;var t=HDt(),e=$Dt();return aAt=Object.keys||function(r){return t(r,e)}}();return yAt.f=t&&!e?Object.defineProperties:function(t,e){n(t);for(var u,a=o(e),s=i(e),c=s.length,l=0;c>l;)r.f(t,u=s[l++],a[u]);return t},yAt}(),n=$Dt(),o=hDt(),i=mAt(),u=ICt(),a=pDt(),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,r,o;h="undefined"!=typeof document?document.domain&&t?p(t):(r=u("iframe"),o="java"+c+":",r.style.display="none",i.appendChild(r),r.src=String(o),(e=r.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F):p(t);for(var a=n.length;a--;)delete h[s][n[a]];return h()};return o[l]=!0,dAt=Object.create||function(t,n){var o;return null!==t?(f[s]=e(t),o=new f,f[s]=null,o[l]=t):o=h(),void 0===n?o:r.f(o,n)}}function EAt(){if(vAt)return hAt;vAt=1;var t=kCt(),e=bAt(),r=WCt().f,n=t("unscopables"),o=Array.prototype;return void 0===o[n]&&r(o,n,{configurable:!0,value:e(null)}),hAt=function(t){o[n][t]=!0}}!function(){if(gAt)return oAt;gAt=1;var t=wOt(),e=uAt().find,r=EAt(),n="find",o=!0;n in[]&&Array(1)[n](function(){o=!1}),t({target:"Array",proto:!0,forced:o},{find:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}}),r(n)}();var wAt,SAt,CAt,DAt={};!function(){if(CAt)return DAt;CAt=1;var t=DOt(),e=yDt(),r=function(){if(SAt)return wAt;SAt=1;var t=DOt(),e=OOt();return wAt=t?{}.toString:function(){return"[object "+e(this)+"]"}}();t||e(Object.prototype,"toString",r,{unsafe:!0})}();var OAt,AAt,xAt,TAt,NAt,kAt,PAt,BAt,IAt,FAt,RAt,LAt={};function _At(){if(AAt)return OAt;AAt=1;var t=GCt();return OAt=function(){var e=t(this),r="";return e.hasIndices&&(r+="d"),e.global&&(r+="g"),e.ignoreCase&&(r+="i"),e.multiline&&(r+="m"),e.dotAll&&(r+="s"),e.unicode&&(r+="u"),e.unicodeSets&&(r+="v"),e.sticky&&(r+="y"),r}}function jAt(){if(FAt)return IAt;FAt=1;var t,e,r=Vwt(),n=FSt(),o=MOt(),i=_At(),u=function(){if(TAt)return xAt;TAt=1;var t=Hwt(),e=Pwt().RegExp,r=t(function(){var t=e("a","y");return t.lastIndex=2,null!==t.exec("abcd")}),n=r||t(function(){return!e("a","y").sticky}),o=r||t(function(){var t=e("^r","gy");return t.lastIndex=2,null!==t.exec("str")});return xAt={BROKEN_CARET:o,MISSED_STICKY:n,UNSUPPORTED_Y:r}}(),a=ACt(),s=bAt(),c=vDt().get,l=function(){if(kAt)return NAt;kAt=1;var t=Hwt(),e=Pwt().RegExp;return NAt=t(function(){var t=e(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})}(),f=function(){if(BAt)return PAt;BAt=1;var t=Hwt(),e=Pwt().RegExp;return PAt=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=n("".charAt),g=n("".indexOf),y=n("".replace),m=n("".slice),b=(e=/b*/g,r(p,t=/a/,"a"),r(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,n,u,a,l,f,S,C=this,D=c(C),O=o(t),A=D.raw;if(A)return A.lastIndex=C.lastIndex,e=r(h,A,O),C.lastIndex=A.lastIndex,e;var x=D.groups,T=E&&C.sticky,N=r(i,C),k=C.source,P=0,B=O;if(T&&(N=y(N,"y",""),-1===g(N,"g")&&(N+="g"),B=m(O,C.lastIndex),C.lastIndex>0&&(!C.multiline||C.multiline&&"\n"!==v(O,C.lastIndex-1))&&(k="(?: "+k+")",B=" "+B,P++),n=new RegExp("^(?:"+k+")",N)),w&&(n=new RegExp("^"+k+"$(?!\\s)",N)),b&&(u=C.lastIndex),a=r(p,T?n:C,B),T?a?(a.input=m(a.input,P),a[0]=m(a[0],P),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&&r(d,a[0],n,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}),IAt=h}function MAt(){if(RAt)return LAt;RAt=1;var t=wOt(),e=jAt();return t({target:"RegExp",proto:!0,forced:/./.exec!==e},{exec:e}),LAt}MAt();var zAt=function(){return zAt=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},zAt.apply(this,arguments)};function HAt(t,e,r,n){return new(r||(r=Promise))(function(o,i){function u(t){try{s(n.next(t))}catch(t){i(t)}}function a(t){try{s(n.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(u,a)}s((n=n.apply(t,e||[])).next())})}function $At(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},u=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return u.next=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(r)throw new TypeError("Generator is already executing.");for(;u&&(u=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=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++,n=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],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}function UAt(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)u.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u}function VAt(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,r=t[Symbol.asyncIterator];return r?r.call(t):(t=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(r){e[r]=t[r]&&function(e){return new Promise(function(n,o){!function(t,e,r,n){Promise.resolve(n).then(function(e){t({value:e,done:r})},e)}(n,o,(e=t[r](e)).done,e.value)})}}}"function"==typeof SuppressedError&&SuppressedError;var GAt,WAt,qAt,KAt,YAt,XAt,JAt,ZAt,QAt,txt,ext,rxt,nxt,oxt,ixt,uxt,axt,sxt={};function cxt(){if(WAt)return GAt;WAt=1;var t=Uwt(),e=Function.prototype,r=e.apply,n=e.call;return GAt="object"==typeof Reflect&&Reflect.apply||(t?n.bind(r):function(){return n.apply(r,arguments)}),GAt}function lxt(){if(XAt)return YAt;XAt=1;var t=FSt(),e=LDt(),r=MOt(),n=jSt(),o=t("".charAt),i=t("".charCodeAt),u=t("".slice),a=function(t){return function(a,s){var c,l,f=r(n(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 YAt={codeAt:a(!1),charAt:a(!0)}}function fxt(){if(oxt)return nxt;oxt=1;var t=Vwt(),e=TCt(),r=USt(),n=function(){if(rxt)return ext;rxt=1;var t=Pwt(),e=Hwt(),r=t.RegExp,n=!e(function(){var t=!0;try{r(".","d")}catch(e){t=!1}var e={},n="",o=t?"dgimsy":"gimsy",i=function(t,r){Object.defineProperty(e,t,{get:function(){return n+=r,!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(r.prototype,"flags").get.call(e)!==o||n!==o});return ext={correct:n}}(),o=_At(),i=RegExp.prototype;return nxt=n.correct?function(t){return t.flags}:function(u){return n.correct||!r(i,u)||e(u,"flags")?u.flags:t(o,u)}}!function(){if(axt)return sxt;axt=1;var t=cxt(),e=Vwt(),r=FSt(),n=function(){if(KAt)return qAt;KAt=1,MAt();var t=Vwt(),e=yDt(),r=jAt(),n=Hwt(),o=kCt(),i=qCt(),u=o("species"),a=RegExp.prototype;return qAt=function(s,c,l,f){var d=o(s),p=!n(function(){var t={};return t[d]=function(){return 7},7!==""[s](t)}),h=p&&!n(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,n,o,i,u){var s=n.exec;return s===r||s===a.exec?p&&!u?{done:!0,value:t(v,n,o,i)}:{done:!0,value:t(e,o,n,i)}:{done:!1}});e(String.prototype,s,g[0]),e(a,d,g[1])}f&&i(a[d],"sham",!0)}}(),o=Hwt(),i=GCt(),u=zSt(),a=HSt(),s=LDt(),c=jDt(),l=MOt(),f=jSt(),d=function(){if(ZAt)return JAt;ZAt=1;var t=lxt().charAt;return JAt=function(e,r,n){return r+(n?t(e,r).length:1)}}(),p=JSt(),h=function(){if(txt)return QAt;txt=1;var t=FSt(),e=xCt(),r=Math.floor,n=t("".charAt),o=t("".replace),i=t("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,a=/\$([$&'`]|\d{1,2})/g;return QAt=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(n(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=r(a/10);return 0===d?e:d<=h?void 0===l[d-1]?n(o,1):l[d-1]+n(o,1):e}u=l[a-1]}return void 0===u?"":u})}}(),v=fxt(),g=function(){if(uxt)return ixt;uxt=1;var t=Vwt(),e=GCt(),r=zSt(),n=RSt(),o=jAt(),i=TypeError;return ixt=function(u,a){var s=u.exec;if(r(s)){var c=t(s,u,a);return null!==c&&e(c),c}if("RegExp"===n(u))return t(o,u,a);throw new i("RegExp#exec called on incompatible receiver")}}(),y=kCt()("replace"),m=Math.max,b=Math.min,E=r([].concat),w=r([].push),S=r("".indexOf),C=r("".slice),D=function(t){return void 0===t?t:String(t)},O="$0"==="a".replace(/./,"$0"),A=!!/./[y]&&""===/./[y]("a","$0");n("replace",function(r,n,o){var O=A?"$":"$0";return[function(t,r){var o=f(this),i=a(t)?p(t,y):void 0;return i?e(i,t,o,r):e(n,l(o),t,r)},function(e,r){var a=i(this),f=l(e);if("string"==typeof r&&-1===S(r,O)&&-1===S(r,"$<")){var p=o(n,a,f,r);if(p.done)return p.value}var y=u(r);y||(r=l(r));var A,x=l(v(a)),T=-1!==S(x,"g");T&&(A=-1!==S(x,"u"),a.lastIndex=0);for(var N,k=[];null!==(N=g(a,f))&&(w(k,N),T);)""===l(N[0])&&(a.lastIndex=d(f,c(a.lastIndex),A));for(var P="",B=0,I=0;I<k.length;I++){for(var F,R=l((N=k[I])[0]),L=m(b(s(N.index),f.length),0),_=[],j=1;j<N.length;j++)w(_,D(N[j]));var M=N.groups;if(y){var z=E([R],_,L,f);void 0!==M&&w(z,M),F=l(t(r,void 0,z))}else F=h(R,f,L,_,M,r);L>=B&&(P+=C(f,B,L)+F,B=L+R.length)}return P+C(f,B)}]},!!o(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})||!O||A)}();var dxt,pxt,hxt,vxt,gxt,yxt,mxt,bxt,Ext,wxt={};function Sxt(){return pxt?dxt:(pxt=1,dxt={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 Cxt(){if(vxt)return hxt;vxt=1;var t=ICt()("span").classList,e=t&&t.constructor&&t.constructor.prototype;return hxt=e===Object.prototype?void 0:e}function Dxt(){if(yxt)return gxt;yxt=1;var t=Hwt();return gxt=function(e,r){var n=[][e];return!!n&&t(function(){n.call(null,r||function(){return 1},1)})}}function Oxt(t){return void 0===t&&(t="r"),"".concat(t,"-").concat(jg())}function Axt(t){var e={};return t.trim().split(";").forEach(function(t){if(t){var r=UAt(t.split(":"),2),n=r[0],o=r[1];n&&o&&(e[n.trim()]=o.trim())}}),e}function xxt(){return Oxt("w-e-insert-video")}!function(){if(Ext)return wxt;Ext=1;var t=Pwt(),e=Sxt(),r=Cxt(),n=function(){if(bxt)return mxt;bxt=1;var t=uAt().forEach,e=Dxt()("forEach");return mxt=e?[].forEach:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)},mxt}(),o=qCt(),i=function(t){if(t&&t.forEach!==n)try{o(t,"forEach",n)}catch(e){t.forEach=n}};for(var u in e)e[u]&&i(t[u]&&t[u].prototype);i(r)}();var Txt=function(){function t(){this.title=LF("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=xxt(),this.heightInputId=xxt(),this.buttonId=xxt()}return t.prototype.getSelectedVideoNode=function(t){return CB.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,r=e.widthInputId,n=e.heightInputId,o=e.buttonId,i=UAt(qF(LF("videoModule.width"),r,"auto"),2),u=i[0],a=og(i[1]),s=UAt(qF(LF("videoModule.height"),n,"auto"),2),c=s[0],l=og(s[1]),f=UAt(YF(o,LF("videoModule.ok")),1)[0],d=this.getSelectedVideoNode(t);if(null==this.$content){var p=og("<div></div>");p.on("click","#".concat(o),function(e){e.preventDefault();var o=p.find("#".concat(r)).val().trim(),i=p.find("#".concat(n)).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:zAt(zAt({},f),{width:s,height:c})};zv.setNodes(t,h,{match:function(t){return CB.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 Nxt(){return Oxt("w-e-edit-video")}var kxt,Pxt,Bxt,Ixt,Fxt,Rxt,Lxt,_xt,jxt,Mxt,zxt,Hxt,$xt,Uxt,Vxt,Gxt,Wxt,qxt,Kxt,Yxt,Xxt,Jxt,Zxt,Qxt,tTt,eTt,rTt,nTt,oTt,iTt,uTt,aTt,sTt,cTt,lTt,fTt,dTt,pTt,hTt,vTt,gTt,yTt,mTt,bTt,ETt,wTt,STt,CTt,DTt,OTt,ATt=function(){function t(){this.title=LF("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=Nxt(),this.posterInputId=Nxt(),this.buttonId=Nxt()}return t.prototype.getSelectedVideoNode=function(t){return CB.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,r=this,n=r.srcInputId,o=r.posterInputId,i=r.buttonId,u=UAt(qF(LF("videoModule.videoSrc"),n,LF("videoModule.videoSrcPlaceHolder")),2),a=u[0],s=u[1],c=UAt(qF(LF("videoModule.videoPoster"),o,LF("videoModule.videoPosterPlaceHolder")),2),l=c[0],f=c[1],d=og(s),p=og(f),h=UAt(YF(i,LF("videoModule.ok")),1)[0];if(null==this.$content){var v=og("<div></div>");v.on("click","#".concat(i),function(r){return HAt(e,void 0,void 0,function(){var e,i,u,a;return $At(this,function(s){return r.preventDefault(),e=v.find("#".concat(n)).val().trim(),i=v.find("#".concat(o)).val().trim(),u=Oxt("video-"),a={src:e,poster:i,key:u},t.restoreSelection(),zv.setNodes(t,a,{match:function(t){return CB.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}(),xTt={};function TTt(){if(Pxt)return kxt;Pxt=1;var t=Pwt(),e=VSt(),r=RSt(),n=function(t){return e.slice(0,t.length)===t};return kxt=n("Bun/")?"BUN":n("Cloudflare-Workers")?"CLOUDFLARE":n("Deno/")?"DENO":n("Node.js/")?"NODE":t.Bun&&"string"==typeof Bun.version?"BUN":t.Deno&&"object"==typeof Deno.version?"DENO":"process"===r(t.process)?"NODE":t.window&&t.document?"BROWSER":"REST"}function NTt(){if(Ixt)return Bxt;Ixt=1;var t=TTt();return Bxt="NODE"===t}function kTt(){if(Hxt)return zxt;Hxt=1;var t=function(){if(Mxt)return jxt;Mxt=1;var t=HSt();return jxt=function(e){return t(e)||null===e}}(),e=String,r=TypeError;return zxt=function(n){if(t(n))return n;throw new r("Can't set "+e(n)+" as a prototype")}}function PTt(){if(Uxt)return $xt;Uxt=1;var t=function(){if(_xt)return Lxt;_xt=1;var t=FSt(),e=XSt();return Lxt=function(r,n,o){try{return t(e(Object.getOwnPropertyDescriptor(r,n)[o]))}catch(t){}}}(),e=HSt(),r=jSt(),n=kTt();return $xt=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 r(t),n(u),e(t)?(i?o(t,u):t.__proto__=u,t):t}}():void 0)}function BTt(){if(Gxt)return Vxt;Gxt=1;var t=WCt().f,e=TCt(),r=kCt()("toStringTag");return Vxt=function(n,o,i){n&&!i&&(n=n.prototype),n&&!e(n,r)&&t(n,r,{configurable:!0,value:o})}}function ITt(){if(qxt)return Wxt;qxt=1;var t=$St(),e=JOt(),r=kCt(),n=$wt(),o=r("species");return Wxt=function(r){var i=t(r);n&&i&&!i[o]&&e(i,o,{configurable:!0,get:function(){return this}})}}function FTt(){if(Yxt)return Kxt;Yxt=1;var t=USt(),e=TypeError;return Kxt=function(r,n){if(t(n,r))return r;throw new e("Incorrect invocation")}}function RTt(){if(Qxt)return Zxt;Qxt=1;var t=GCt(),e=function(){if(Jxt)return Xxt;Jxt=1;var t=AOt(),e=YSt(),r=TypeError;return Xxt=function(n){if(t(n))return n;throw new r(e(n)+" is not a constructor")}}(),r=_St(),n=kCt()("species");return Zxt=function(o,i){var u,a=t(o).constructor;return void 0===a||r(u=t(a)[n])?i:e(u)}}function LTt(){if(eTt)return tTt;eTt=1;var t=FSt();return tTt=t([].slice)}function _Tt(){if(iTt)return oTt;iTt=1;var t=VSt();return oTt=/(?:ipad|iphone|ipod).*applewebkit/i.test(t)}function jTt(){if(aTt)return uTt;aTt=1;var t,e,r,n,o=Pwt(),i=cxt(),u=iAt(),a=zSt(),s=TCt(),c=Hwt(),l=mAt(),f=LTt(),d=ICt(),p=function(){if(nTt)return rTt;nTt=1;var t=TypeError;return rTt=function(e,r){if(e<r)throw new t("Not enough arguments");return e}}(),h=_Tt(),v=NTt(),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 r=a(t)?t:E(t),n=f(arguments,1);return D[++C]=function(){i(r,void 0,n)},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?(n=(r=new w).port2,r.port1.onmessage=T,e=u(n.postMessage,n)):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)}),uTt={set:g,clear:y}}function MTt(){if(fTt)return lTt;fTt=1;var t=function(){this.head=null,this.tail=null};return t.prototype={add:function(t){var e={item:t,next:null},r=this.tail;r?r.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}},lTt=t}function zTt(){if(yTt)return gTt;yTt=1;var t,e,r,n,o,i=Pwt(),u=function(){if(cTt)return sTt;cTt=1;var t=Pwt(),e=$wt(),r=Object.getOwnPropertyDescriptor;return sTt=function(n){if(!e)return t[n];var o=r(t,n);return o&&o.value}}(),a=iAt(),s=jTt().set,c=MTt(),l=_Tt(),f=function(){if(pTt)return dTt;pTt=1;var t=VSt();return dTt=/ipad|iphone|ipod/i.test(t)&&"undefined"!=typeof Pebble}(),d=function(){if(vTt)return hTt;vTt=1;var t=VSt();return hTt=/web0s(?!.*chrome)/i.test(t)}(),p=NTt(),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,r;for(p&&(e=g.domain)&&e.exit();r=b.get();)try{r()}catch(e){throw b.head&&t(),e}e&&e.enter()};l||p||d||!h||!v?!f&&y&&y.resolve?((n=y.resolve(void 0)).constructor=y,o=a(n.then,n),t=function(){o(E)}):p?t=function(){g.nextTick(E)}:(s=a(s,i),t=function(){s(E)}):(e=!0,r=v.createTextNode(""),new h(E).observe(r,{characterData:!0}),t=function(){r.data=e=!e}),m=function(e){b.head||t(),b.add(e)}}return gTt=m}function HTt(){return wTt?ETt:(wTt=1,ETt=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}})}function $Tt(){if(CTt)return STt;CTt=1;var t=Pwt();return STt=t.Promise}function UTt(){if(OTt)return DTt;OTt=1;var t=Pwt(),e=$Tt(),r=zSt(),n=EOt(),o=fDt(),i=kCt(),u=TTt(),a=CCt(),s=GSt(),c=e&&e.prototype,l=i("species"),f=!1,d=r(t.PromiseRejectionEvent),p=n("Promise",function(){var t=o(e),r=t!==String(e);if(!r&&66===s)return!0;if(a&&(!c.catch||!c.finally))return!0;if(!s||s<51||!/native code/.test(t)){var n=new e(function(t){t(1)}),i=function(t){t(function(){},function(){})};if((n.constructor={})[l]=i,!(f=n.then(function(){})instanceof i))return!0}return!(r||"BROWSER"!==u&&"DENO"!==u||d)});return DTt={CONSTRUCTOR:p,REJECTION_EVENT:d,SUBCLASSING:f}}var VTt,GTt,WTt={};function qTt(){if(VTt)return WTt;VTt=1;var t=XSt(),e=TypeError,r=function(r){var n,o;this.promise=new r(function(t,r){if(void 0!==n||void 0!==o)throw new e("Bad Promise constructor");n=t,o=r}),this.resolve=t(n),this.reject=t(o)};return WTt.f=function(t){return new r(t)},WTt}var KTt,YTt,XTt,JTt,ZTt,QTt,tNt,eNt,rNt,nNt,oNt,iNt,uNt,aNt,sNt,cNt,lNt,fNt={};function dNt(){return YTt?KTt:(YTt=1,KTt={})}function pNt(){if(QTt)return ZTt;QTt=1;var t=OOt(),e=JSt(),r=_St(),n=dNt(),o=kCt()("iterator");return ZTt=function(i){if(!r(i))return e(i,o)||e(i,"@@iterator")||n[t(i)]}}function hNt(){if(iNt)return oNt;iNt=1;var t=iAt(),e=Vwt(),r=GCt(),n=YSt(),o=function(){if(JTt)return XTt;JTt=1;var t=kCt(),e=dNt(),r=t("iterator"),n=Array.prototype;return XTt=function(t){return void 0!==t&&(e.Array===t||n[r]===t)}}(),i=MDt(),u=USt(),a=function(){if(eNt)return tNt;eNt=1;var t=Vwt(),e=XSt(),r=GCt(),n=YSt(),o=pNt(),i=TypeError;return tNt=function(u,a){var s=arguments.length<2?o(u):a;if(e(s))return r(t(s,u));throw new i(n(u)+" is not iterable")},tNt}(),s=pNt(),c=function(){if(nNt)return rNt;nNt=1;var t=Vwt(),e=GCt(),r=JSt();return rNt=function(n,o,i){var u,a;e(n);try{if(!(u=r(n,"return"))){if("throw"===o)throw i;return i}u=t(u,n)}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 oNt=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)},k=function(t){return D?(r(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(n(p)+" is not iterable");if(o(y)){for(m=0,b=i(p);b>m;m++)if((E=k(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=k(S.value)}catch(t){c(g,"throw",t)}if("object"==typeof E&&E&&u(d,E))return E}return new f(!1)}}function vNt(){if(aNt)return uNt;aNt=1;var t=kCt()("iterator"),e=!1;try{var r=0,n={next:function(){return{done:!!r++}},return:function(){e=!0}};n[t]=function(){return this},Array.from(n,function(){throw 2})}catch(t){}return uNt=function(r,n){try{if(!n&&!e)return!1}catch(t){return!1}var o=!1;try{var i={};i[t]=function(){return{next:function(){return{done:o=!0}}}},r(i)}catch(t){}return o}}function gNt(){if(cNt)return sNt;cNt=1;var t=$Tt(),e=vNt(),r=UTt().CONSTRUCTOR;return sNt=r||!e(function(e){t.all(e).then(void 0,function(){})})}var yNt,mNt,bNt,ENt,wNt,SNt,CNt,DNt={},ONt={},ANt={},xNt={};function TNt(t,e){return HAt(this,arguments,void 0,function(t,e,r,n,o){var i,u,a,s,c,l,f;return void 0===r&&(r=""),void 0===n&&(n=""),void 0===o&&(o=""),$At(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,r)]):[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:r,children:[{text:""}],style:{width:n,height:o}},Promise.resolve().then(function(){CB.isSelectedEmptyParagraph(t)&&zv.removeNodes(t,{mode:"highest"}),zv.insertNodes(t,f,{mode:"highest"})}),u(f),[2]}})})}function NNt(){return Oxt("w-e-insert-video")}CNt||(CNt=1,function(){if(GTt)return xTt;GTt=1;var t,e,r,n,o=wOt(),i=CCt(),u=NTt(),a=Pwt(),s=function(){if(Rxt)return Fxt;Rxt=1;var t=Pwt();return Fxt=t}(),c=Vwt(),l=yDt(),f=PTt(),d=BTt(),p=ITt(),h=XSt(),v=zSt(),g=HSt(),y=FTt(),m=RTt(),b=jTt().set,E=zTt(),w=(bTt||(bTt=1,mTt=function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}}),mTt),S=HTt(),C=MTt(),D=vDt(),O=$Tt(),A=UTt(),x=qTt(),T="Promise",N=A.CONSTRUCTOR,k=A.REJECTION_EVENT,P=A.SUBCLASSING,B=D.getterFor(T),I=D.set,F=O&&O.prototype,R=O,L=F,_=a.TypeError,j=a.document,M=a.process,z=x.f,H=z,$=!!(j&&j.createEvent&&a.dispatchEvent),U="unhandledrejection",V=function(t){var e;return!(!g(t)||!v(e=t.then))&&e},G=function(t,e){var r,n,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?r=i:(f&&f.enter(),r=a(i),f&&(f.exit(),o=!0)),r===t.promise?l(new _("Promise-chain cycle")):(n=V(r))?c(n,r,s,l):s(r)):l(i)}catch(t){f&&!o&&f.exit(),l(t)}},W=function(t,e){t.notified||(t.notified=!0,E(function(){for(var r,n=t.reactions;r=n.get();)G(r,t);t.notified=!1,e&&!t.rejection&&K(t)}))},q=function(t,e,r){var n,o;$?((n=j.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),a.dispatchEvent(n)):n={promise:e,reason:r},!k&&(o=a["on"+t])?o(n):t===U&&w("Unhandled promise rejection",r)},K=function(t){c(b,a,function(){var e,r=t.facade,n=t.value;if(Y(t)&&(e=S(function(){u?M.emit("unhandledRejection",n,r):q(U,r,n)}),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,r){return function(n){t(e,n,r)}},Z=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,W(t,!0))},Q=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw new _("Promise can't be resolved itself");var n=V(e);n?E(function(){var r={done:!1};try{c(n,e,J(Q,r,t),J(Z,r,t))}catch(e){Z(r,e,t)}}):(t.value=e,t.state=1,W(t,!1))}catch(e){Z({done:!1},e,t)}}};if(N&&(L=(R=function(e){y(this,L),h(e),c(t,this);var r=B(this);try{e(J(Q,r),J(Z,r))}catch(t){Z(r,t)}}).prototype,(t=function(t){I(this,{type:T,done:!1,notified:!1,parent:!1,reactions:new C,rejection:!1,state:0,value:null})}).prototype=l(L,"then",function(t,e){var r=B(this),n=z(m(this,R));return r.parent=!0,n.ok=!v(t)||t,n.fail=v(e)&&e,n.domain=u?M.domain:void 0,0===r.state?r.reactions.add(n):E(function(){G(n,r)}),n.promise}),e=function(){var e=new t,r=B(e);this.promise=e,this.resolve=J(Q,r),this.reject=J(Z,r)},x.f=z=function(t){return t===R||t===r?new e(t):H(t)},!i&&v(O)&&F!==Object.prototype)){n=F.then,P||l(F,"then",function(t,e){var r=this;return new R(function(t,e){c(n,r,t,e)}).then(t,e)},{unsafe:!0});try{delete F.constructor}catch(t){}f&&f(F,L)}o({global:!0,constructor:!0,wrap:!0,forced:N},{Promise:R}),r=s.Promise,d(R,T,!1,!0),p(T)}(),function(){if(lNt)return fNt;lNt=1;var t=wOt(),e=Vwt(),r=XSt(),n=qTt(),o=HTt(),i=hNt();t({target:"Promise",stat:!0,forced:gNt()},{all:function(t){var u=this,a=n.f(u),s=a.resolve,c=a.reject,l=o(function(){var n=r(u.resolve),o=[],a=0,l=1;i(t,function(t){var r=a++,i=!1;l++,e(n,u,t).then(function(t){i||(i=!0,o[r]=t,--l||s(o))},c)}),--l||s(o)});return l.error&&c(l.value),a.promise}})}(),function(){if(yNt)return DNt;yNt=1;var t=wOt(),e=CCt(),r=UTt().CONSTRUCTOR,n=$Tt(),o=$St(),i=zSt(),u=yDt(),a=n&&n.prototype;if(t({target:"Promise",proto:!0,forced:r,real:!0},{catch:function(t){return this.then(void 0,t)}}),!e&&i(n)){var s=o("Promise").prototype.catch;a.catch!==s&&u(a,"catch",s,{unsafe:!0})}}(),function(){if(mNt)return ONt;mNt=1;var t=wOt(),e=Vwt(),r=XSt(),n=qTt(),o=HTt(),i=hNt();t({target:"Promise",stat:!0,forced:gNt()},{race:function(t){var u=this,a=n.f(u),s=a.reject,c=o(function(){var n=r(u.resolve);i(t,function(t){e(n,u,t).then(a.resolve,s)})});return c.error&&s(c.value),a.promise}})}(),function(){if(bNt)return ANt;bNt=1;var t=wOt(),e=qTt();t({target:"Promise",stat:!0,forced:UTt().CONSTRUCTOR},{reject:function(t){var r=e.f(this);return(0,r.reject)(t),r.promise}})}(),function(){if(SNt)return xNt;SNt=1;var t=wOt(),e=$St(),r=CCt(),n=$Tt(),o=UTt().CONSTRUCTOR,i=function(){if(wNt)return ENt;wNt=1;var t=GCt(),e=HSt(),r=qTt();return ENt=function(n,o){if(t(n),e(o)&&o.constructor===n)return o;var i=r.f(n);return(0,i.resolve)(o),i.promise}}(),u=e("Promise"),a=r&&!o;t({target:"Promise",stat:!0,forced:r||o},{resolve:function(t){return i(a&&this===u?n:this,t)}})}());var kNt,PNt,BNt,INt,FNt,RNt,LNt,_Nt,jNt,MNt,zNt,HNt,$Nt,UNt,VNt,GNt=function(){function t(){this.title=LF("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=NNt(),this.posterInputId=NNt(),this.buttonId=NNt()}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||!dv.isCollapsed(e)||!!CB.getSelectedElems(t).some(function(e){var r=CB.getNodeType(e);return"pre"===r||"list-item"===r||!!t.isVoid(e)})},t.prototype.getModalPositionNode=function(t){return null},t.prototype.getModalContentElem=function(t){var e=this,r=this,n=r.srcInputId,o=r.posterInputId,i=r.buttonId,u=UAt(qF(LF("videoModule.videoSrc"),n,LF("videoModule.videoSrcPlaceHolder")),2),a=u[0],s=u[1],c=UAt(qF(LF("videoModule.videoPoster"),o,LF("videoModule.videoPosterPlaceHolder")),2),l=c[0],f=c[1],d=og(s),p=og(f),h=UAt(YF(i,LF("videoModule.ok")),1)[0];if(null==this.$content){var v=og("<div></div>");v.on("click","#".concat(i),function(r){return HAt(e,void 0,void 0,function(){var e,i;return $At(this,function(u){switch(u.label){case 0:return r.preventDefault(),e=v.find("#".concat(n)).val().trim(),i=v.find("#".concat(o)).val().trim(),[4,TNt(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}(),WNt={};function qNt(){if(FNt)return INt;FNt=1;var t=TCt(),e=zSt(),r=xCt(),n=pDt(),o=function(){if(BNt)return PNt;BNt=1;var t=Hwt();return PNt=!t(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})}(),i=n("IE_PROTO"),u=Object,a=u.prototype;return INt=o?u.getPrototypeOf:function(n){var o=r(n);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 KNt(){if(LNt)return RNt;LNt=1;var t,e,r,n=Hwt(),o=zSt(),i=HSt(),u=bAt(),a=qNt(),s=yDt(),c=kCt(),l=CCt(),f=c("iterator"),d=!1;return[].keys&&("next"in(r=[].keys())?(e=a(a(r)))!==Object.prototype&&(t=e):d=!0),!i(t)||n(function(){var e={};return t[f].call(e)!==e})?t={}:l&&(t=u(t)),o(t[f])||s(t,f,function(){return this}),RNt={IteratorPrototype:t,BUGGY_SAFARI_ITERATORS:d}}function YNt(){if(zNt)return MNt;zNt=1;var t=wOt(),e=Vwt(),r=CCt(),n=lDt(),o=zSt(),i=function(){if(jNt)return _Nt;jNt=1;var t=KNt().IteratorPrototype,e=bAt(),r=ISt(),n=BTt(),o=dNt(),i=function(){return this};return _Nt=function(u,a,s,c){var l=a+" Iterator";return u.prototype=e(t,{next:r(+!c,s)}),n(u,l,!1,!0),o[l]=i,u}}(),u=qNt(),a=PTt(),s=BTt(),c=qCt(),l=yDt(),f=kCt(),d=dNt(),p=KNt(),h=n.PROPER,v=n.CONFIGURABLE,g=p.IteratorPrototype,y=p.BUGGY_SAFARI_ITERATORS,m=f("iterator"),b="keys",E="values",w="entries",S=function(){return this};return MNt=function(n,f,p,C,D,O,A){i(p,f,C);var x,T,N,k=function(t){if(t===D&&R)return R;if(!y&&t&&t in I)return I[t];switch(t){case b:case E:case w:return function(){return new p(this,t)}}return function(){return new p(this)}},P=f+" Iterator",B=!1,I=n.prototype,F=I[m]||I["@@iterator"]||D&&I[D],R=!y&&F||k(D),L="Array"===f&&I.entries||F;if(L&&(x=u(L.call(new n)))!==Object.prototype&&x.next&&(r||u(x)===g||(a?a(x,g):o(x[m])||l(x,m,S)),s(x,P,!0,!0),r&&(d[P]=S)),h&&D===E&&F&&F.name!==E&&(!r&&v?c(I,"name",E):(B=!0,R=function(){return e(F,this)})),D)if(T={values:k(E),keys:O?R:k(b),entries:k(w)},A)for(N in T)(y||B||!(N in I))&&l(I,N,T[N]);else t({target:f,proto:!0,forced:y||B},T);return r&&!A||I[m]===R||l(I,m,R,{name:D}),d[f]=R,T}}function XNt(){return $Nt?HNt:($Nt=1,HNt=function(t,e){return{value:t,done:e}})}function JNt(){if(VNt)return UNt;VNt=1;var t=MSt(),e=EAt(),r=dNt(),n=vDt(),o=WCt().f,i=YNt(),u=XNt(),a=CCt(),s=$wt(),c="Array Iterator",l=n.set,f=n.getterFor(c);UNt=i(Array,"Array",function(e,r){l(this,{type:c,target:t(e),index:0,kind:r})},function(){var t=f(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=null,u(void 0,!0);switch(t.kind){case"keys":return u(r,!1);case"values":return u(e[r],!1)}return u([r,e[r]],!1)},"values");var d=r.Arguments=r.Array;if(e("keys"),e("values"),e("entries"),!a&&s&&"values"!==d.name)try{o(d,"name",{value:"values"})}catch(t){}return UNt}!function(){if(kNt)return WNt;kNt=1;var t=wOt(),e=FSt(),r=LSt(),n=MSt(),o=Dxt(),i=e([].join);t({target:"Array",proto:!0,forced:r!==Object||!o("join",",")},{join:function(t){return i(n(this),void 0===t?",":t)}})}(),JNt();var ZNt,QNt={};!function(){if(ZNt)return QNt;ZNt=1;var t=wOt(),e=uAt().map;t({target:"Array",proto:!0,forced:!TOt()("map")},{map:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}})}();var tkt,ekt={};!function(){if(tkt)return ekt;tkt=1;var t=wOt(),e=SOt(),r=AOt(),n=HSt(),o=_Dt(),i=MDt(),u=MSt(),a=COt(),s=kCt(),c=TOt(),l=LTt(),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,(r(c)&&(c===p||e(c.prototype))||n(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 rkt,nkt={};!function(){if(rkt)return nkt;rkt=1;var t=lxt().charAt,e=MOt(),r=vDt(),n=YNt(),o=XNt(),i="String Iterator",u=r.set,a=r.getterFor(i);n(String,"String",function(t){u(this,{type:i,string:e(t),index:0})},function(){var e,r=a(this),n=r.string,i=r.index;return i>=n.length?o(void 0,!0):(e=t(n,i),r.index+=e.length,o(e,!1))})}();var okt,ikt,ukt,akt,skt={};function ckt(){if(ikt)return okt;ikt=1;var t=Hwt();return okt=!t(function(){return Object.isExtensible(Object.preventExtensions({}))})}function lkt(){if(akt)return ukt;akt=1;var t=yDt();return ukt=function(e,r,n){for(var o in r)t(e,o,r[o],n);return e}}var fkt,dkt,pkt,hkt,vkt,gkt,ykt,mkt,bkt,Ekt,wkt,Skt,Ckt,Dkt,Okt={exports:{}},Akt={};function xkt(){if(gkt)return Okt.exports;gkt=1;var t=wOt(),e=FSt(),r=hDt(),n=HSt(),o=TCt(),i=WCt().f,u=UDt(),a=function(){if(fkt)return Akt;fkt=1;var t=RSt(),e=MSt(),r=UDt().f,n=LTt(),o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];return Akt.f=function(i){return o&&"Window"===t(i)?function(t){try{return r(t)}catch(t){return n(o)}}(i):r(e(i))},Akt}(),s=function(){if(vkt)return hkt;vkt=1;var t=Hwt(),e=HSt(),r=RSt(),n=function(){if(pkt)return dkt;pkt=1;var t=Hwt();return dkt=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 hkt=i||n?function(t){return!!e(t)&&(!n||"ArrayBuffer"!==r(t))&&(!o||o(t))}:o}(),c=NCt(),l=ckt(),f=!1,d=c("meta"),p=0,h=function(t){i(t,d,{value:{objectID:"O"+p++,weakData:{}}})},v=Okt.exports={enable:function(){v.enable=function(){},f=!0;var r=u.f,n=e([].splice),o={};o[d]=1,r(o).length&&(u.f=function(t){for(var e=r(t),o=0,i=e.length;o<i;o++)if(e[o]===d){n(e,o,1);break}return e},t({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:a.f}))},fastKey:function(t,e){if(!n(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 r[d]=!0,Okt.exports}function Tkt(){if(Ekt)return bkt;Ekt=1;var t=wOt(),e=Pwt(),r=FSt(),n=EOt(),o=yDt(),i=xkt(),u=hNt(),a=FTt(),s=zSt(),c=_St(),l=HSt(),f=Hwt(),d=vNt(),p=BTt(),h=function(){if(mkt)return ykt;mkt=1;var t=zSt(),e=HSt(),r=PTt();return ykt=function(n,o,i){var u,a;return r&&t(u=o.constructor)&&u!==i&&e(a=u.prototype)&&a!==i.prototype&&r(n,a),n}}();return bkt=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=r(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,r){return e(this,0===t?0:t,r),this})};if(n(v,!s(w)||!(b||S.forEach&&!f(function(){(new w).entries().next()}))))C=y.getConstructor(g,v,m,E),i.enable();else if(n(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)}),k=!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 r=h(new w,t,C);return c(e)||u(e,r[E],{that:r,AS_ENTRIES:m}),r})).prototype=S,S.constructor=C),(T||k)&&(O("delete"),O("has"),m&&O("get")),(k||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}}Dkt||(Dkt=1,function(){if(Ckt)return skt;Ckt=1;var t,e=ckt(),r=Pwt(),n=FSt(),o=lkt(),i=xkt(),u=Tkt(),a=function(){if(Skt)return wkt;Skt=1;var t=FSt(),e=lkt(),r=xkt().getWeakData,n=FTt(),o=GCt(),i=_St(),u=HSt(),a=hNt(),s=uAt(),c=TCt(),l=vDt(),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 r=b(this,t);r?r[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}},wkt={getConstructor:function(t,s,l,p){var h=t(function(t,e){n(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,n){var i=m(t),u=r(o(e),!0);return!0===u?y(i).set(e,n):u[i.id]=n,t};return e(v,{delete:function(t){var e=m(this);if(!u(t))return!1;var n=r(t);return!0===n?y(e).delete(t):n&&c(n,e.id)&&delete n[e.id]},has:function(t){var e=m(this);if(!u(t))return!1;var n=r(t);return!0===n?y(e).has(t):n&&c(n,e.id)}}),e(v,l?{get:function(t){var e=m(this);if(u(t)){var n=r(t);if(!0===n)return y(e).get(t);if(n)return n[e.id]}},set:function(t,e){return b(this,t,e)}}:{add:function(t){return b(this,t,!0)}}),h}}}(),s=HSt(),c=vDt().enforce,l=Hwt(),f=dDt(),d=Object,p=Array.isArray,h=d.isExtensible,v=d.isFrozen,g=d.isSealed,y=d.freeze,m=d.seal,b=!r.ActiveXObject&&"ActiveXObject"in r,E=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},w=u("WeakMap",E,a),S=w.prototype,C=n(S.set);if(f)if(b){t=a.getConstructor(E,"WeakMap",!0),i.enable();var D=n(S.delete),O=n(S.has),A=n(S.get);o(S,{delete:function(e){if(s(e)&&!h(e)){var r=c(this);return r.frozen||(r.frozen=new t),D(this,e)||r.frozen.delete(e)}return D(this,e)},has:function(e){if(s(e)&&!h(e)){var r=c(this);return r.frozen||(r.frozen=new t),O(this,e)||r.frozen.has(e)}return O(this,e)},get:function(e){if(s(e)&&!h(e)){var r=c(this);return r.frozen||(r.frozen=new t),O(this,e)?A(this,e):r.frozen.get(e)}return A(this,e)},set:function(e,r){if(s(e)&&!h(e)){var n=c(this);n.frozen||(n.frozen=new t),O(this,e)?C(this,e,r):n.frozen.set(e,r)}else C(this,e,r);return this}})}else e&&l(function(){var t=y([]);return C(new w,t,1),!v(t)})&&o(S,{set:function(t,e){var r;return p(t)&&(v(t)?r=y:g(t)&&(r=m)),C(this,t,e),r&&r(t),this}})}());var Nkt,kkt={};function Pkt(t){return t.getMenuConfig("uploadVideo")}!function(){if(Nkt)return kkt;Nkt=1;var t=Pwt(),e=Sxt(),r=Cxt(),n=JNt(),o=qCt(),i=BTt(),u=kCt()("iterator"),a=n.values,s=function(t,r){if(t){if(t[u]!==a)try{o(t,u,a)}catch(e){t[u]=a}if(i(t,r,!0),e[r])for(var s in n)if(t[s]!==n[s])try{o(t,s,n[s])}catch(e){t[s]=n[s]}}};for(var c in e)s(t[c]&&t[c].prototype,c);s(r,"DOMTokenList")}();var Bkt=new WeakMap;function Ikt(t,e){return HAt(this,void 0,void 0,function(){var r,n;return $At(this,function(o){switch(o.label){case 0:return r=function(t){var e=Bkt.get(t);if(null!=e)return e;var r=Pkt(t),n=r.onSuccess,o=r.onProgress,i=r.onFailed,u=r.customInsert,a=r.onError;return e=tL(zAt(zAt({},r),{onProgress:function(e){t.showProgressBar(e),o&&o(e)},onSuccess:function(e,r){if(u)return u(r,function(e,r){return TNt(t,e,r)}),void n(e,r);var o=r.errno,a=void 0===o?1:o,s=r.data,c=void 0===s?{}:s;if(0===a){var l=c.url,f=void 0===l?"":l,d=c.poster;TNt(t,f,void 0===d?"":d),n(e,r)}else i(e,r)},onError:function(t,e,r){a(t,e,r)}})),Bkt.set(t,e),e}(t),n=e.map(function(t){return{name:t.name,type:t.type,size:t.size,data:t}}),r.addFiles(n),[4,r.upload()];case 1:return o.sent(),[2]}})})}var Fkt=function(){function t(){this.title=LF("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 r=this.getMenuConfig(t),n=r.allowedFileTypes,o=void 0===n?[]:n,i=r.customBrowseAndUpload;if(i)i(function(e,r){return TNt(t,e,r)});else{var u="";o.length>0&&(u='accept="'.concat(o.join(", "),'"'));var a=og("body"),s=og('<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){HAt(this,void 0,void 0,function(){var r,n,o,i,u,a,s,c,l,f,d,p;return $At(this,function(h){switch(h.label){case 0:if(null==e)return[2];r=Array.prototype.slice.call(e),n=[],o=Pkt(t).customUpload,h.label=1;case 1:h.trys.push([1,8,9,14]),i=!0,u=VAt(r),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,r){return TNt(t,e,r)})]:[3,5]);case 4:return h.sent(),[3,6];case 5:n.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 n.length>0?[4,Ikt(t,n)]:[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||!dv.isCollapsed(e)||!!CB.getSelectedElems(t).some(function(e){var r=CB.getNodeType(e);return"pre"===r||"list-item"===r||!!t.isVoid(e)})},t.prototype.getMenuConfig=function(t){return t.getMenuConfig("uploadVideo")},t}(),Rkt={key:"insertVideo",factory:function(){return new GNt},config:{onInsertedVideo:function(t){},checkVideo:function(t,e){return!0},parseVideoSrc:function(t){return t}}},Lkt={key:"uploadVideo",factory:function(){return new Fkt},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,r){console.error("'".concat(t.name," upload error"),e,r)}}},_kt={key:"editVideoSize",factory:function(){return new Txt}},jkt={key:"editVideoSrc",factory:function(){return new ATt}};function Mkt(t,e,r,n,o,i){return void 0===e&&(e=""),void 0===r&&(r="auto"),void 0===n&&(n="auto"),void 0===o&&(o={}),void 0===i&&(i="center"),{type:"video",src:t,poster:e,width:r,height:n,style:o,children:[{text:""}],textAlign:i}}var zkt,Hkt={selector:'div[data-w-e-type="video"]',parseElemHtml:function(t,e,r){var n=og(t),o="",i="",u="auto",a="auto",s={},c=n.find("iframe");if(c.length>0)return u=c.attr("width")||"auto",a=c.attr("height")||"auto",s=Axt(s=c.attr("style")||""),Mkt(o=c[0].outerHTML,i,u,a,s,Axt(n.attr("style")||"")["text-align"]||"center");var l=n.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",Mkt(o,i=l.attr("poster")||"",u,a,s=Axt(s=l.attr("style")||""),Axt(n.attr("style")||"")["text-align"]||"center")}},$kt={};!function(){if(zkt)return $kt;zkt=1;var t=wOt(),e=zDt().includes,r=Hwt(),n=EAt();t({target:"Array",proto:!0,forced:r(function(){return!Array(1).includes()})},{includes:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}}),n("includes")}();var Ukt={renderElems:[{type:"video",renderElem:function(t,e,r){var n,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=CB.isNodeSelected(r,t);if(0===u.trim().indexOf("<iframe ")){n=Ry("div",{className:"w-e-textarea-video-container","data-selected":b?"true":"",style:{textAlign:m},innerHTML:GOt(u,d,h,g)})}else{var E=Ry("video",{key:l,poster:s,controls:!0,style:g},Ry("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),n=Ry("div",{className:"w-e-textarea-video-container","data-selected":b?"true":"",style:{textAlign:m}},E)}return vy("div",{props:{contentEditable:!1},on:{mousedown:function(t){return t.preventDefault()}}},n)}}],elemsToHtml:[YOt],preParseHtml:[{selector:"iframe,video,p",preParseHtml:function(t){var e=og(t),r=e;if("p"===VOt(e)){var n=e.children();if(1===n.length){var o=n[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(r=og(o))}}var u=VOt(r);if("iframe"!==u&&"video"!==u)return r[0];if("video"===r.parent().attr("data-w-e-type"))return r[0];var a=og('<div data-w-e-type="video" data-w-e-is-void style="text-align: center;"></div>');return a.append(r),a[0]}}],parseElemsHtml:[Hkt],menus:[Rkt,Lkt,_kt,jkt],editorPlugin:function(t){var e=t.isVoid,r=t.normalizeNode,n=t;return n.isVoid=function(t){return"video"===t.type||e(t)},n.normalizeNode=function(t){var e=UAt(t,2),o=e[0],i=e[1];return"video"===CB.getNodeType(o)&&CB.isLastNode(n,o)&&zv.insertNodes(n,CB.genEmptyParagraph(),{at:[i[0]+1]}),r([o,i])},n}},Vkt=function(){return Vkt=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Vkt.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var Gkt=function(){function t(){throw new Error("不能实例化\nCan not construct a instance")}return t.setEditorConfig=function(t){void 0===t&&(t={}),this.editorConfig=Vkt(Vkt({},this.editorConfig),t)},t.setSimpleEditorConfig=function(t){void 0===t&&(t={}),this.simpleEditorConfig=Vkt(Vkt({},this.simpleEditorConfig),t)},t.setToolbarConfig=function(t){void 0===t&&(t={}),this.toolbarConfig=Vkt(Vkt({},this.toolbarConfig),t)},t.setSimpleToolbarConfig=function(t){void 0===t&&(t={}),this.simpleToolbarConfig=Vkt(Vkt({},this.simpleToolbarConfig),t)},t.registerPlugin=function(t){this.plugins.push(t)},t.registerMenu=function(t,e){!function(t,e){var r=t.key,n=t.factory,o=t.config,i=OO(OO({},o),e||{});if(null!=FO[r])throw new Error("Duplicated key '".concat(r,"' in menu items"));FO[r]=n,function(t,e){null!=e&&(kO[t]=e)}(r,i)}(t,e)},t.registerRenderElem=function(t){!function(t){var e=t.type,r=t.renderElem;PR[e||""]=r}(t)},t.registerRenderStyle=function(t){!function(t){kR.push(t)}(t)},t.registerElemToHtml=function(t){!function(t){var e=t.type,r=t.elemToHtml;uB[e||""]=r}(t)},t.registerStyleToHtml=function(t){!function(t){iB.push(t)}(t)},t.registerPreParseHtml=function(t){!function(t){KP.push(t)}(t)},t.registerParseElemHtml=function(t){!function(t){var e=t.selector,r=t.parseElemHtml;XP[e]=r}(t)},t.registerParseStyleHtml=function(t){!function(t){YP.push(t)}(t)},t.registerModule=function(t){Wkt(t)},t.editorConfig={},t.simpleEditorConfig={},t.toolbarConfig={},t.simpleToolbarConfig={},t.plugins=[],t}();function Wkt(t){var e=t.menus,r=t.renderElems,n=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 Gkt.registerMenu(t)}),r&&r.forEach(function(t){return Gkt.registerRenderElem(t)}),n&&Gkt.registerRenderStyle(n),o&&o.forEach(function(t){return Gkt.registerElemToHtml(t)}),i&&Gkt.registerStyleToHtml(i),u&&u.forEach(function(t){return Gkt.registerPreParseHtml(t)}),a&&a.forEach(function(t){return Gkt.registerParseElemHtml(t)}),s&&Gkt.registerParseStyleHtml(s),c&&Gkt.registerPlugin(c)}i0.forEach(function(t){return Wkt(t)}),Wkt(Urt),Wkt(lpt),Wkt(Ukt),Wkt(Awt),Wkt(D3);var qkt='<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 Kkt={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 Ykt={hoverbarKeys:Vkt(Vkt({},Kkt),{text:{menuKeys:["formatPainter","headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};Gkt.setEditorConfig(Vkt(Vkt({},Ykt),{decorate:m6}));var Xkt={hoverbarKeys:Kkt};Gkt.setSimpleEditorConfig(Vkt(Vkt({},Xkt),{decorate:m6}));var Jkt={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:LF("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:LF("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:LF("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:LF("editor.image"),iconSvg:qkt,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:LF("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"]};Gkt.setToolbarConfig(Jkt);var Zkt={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:LF("editor.image"),iconSvg:qkt,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};function Qkt(t){void 0===t&&(t={});var e=t.selector,r=void 0===e?"":e,n=t.content,o=void 0===n?[]:n,i=t.html,u=t.config,a=void 0===u?{}:u,s=t.mode,c="simple"===(void 0===s?"default":s)?Gkt.simpleEditorConfig:Gkt.editorConfig,l=Vkt(Vkt({},c.hoverbarKeys||{}),a.hoverbarKeys||{});return VR({selector:r,config:Vkt(Vkt(Vkt({},c),a),{hoverbarKeys:l}),content:o,html:i,plugins:Gkt.plugins})}function tPt(t){var e=t.selector,r=t.editor,n=t.config,o=void 0===n?{}:n,i=t.mode,u=void 0===i?"default":i;if(!e)throw new Error("Cannot find 'selector' when create toolbar");var a="simple"===u?Gkt.simpleToolbarConfig:Gkt.toolbarConfig,s=function(t,e){if(null==t)throw new Error("Cannot create toolbar, because editor is null");var r=e.selector,n=e.config,o=void 0===n?{}:n;if(function(t,e){return rB(t,"data-w-e-toolbar",e)}(t,r))throw new Error("Repeated create toolbar by selector '".concat(r,"'"));var i=OO({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},o||{}),u=new JR(r,i);return Lx.set(u,t),_x.set(t,u),u}(r,{selector:e,config:Vkt(Vkt({},a),o)});return s}Gkt.setSimpleToolbarConfig(Zkt);var ePt={};export{Gkt as Boot,CB as DomEditor,Kh as SlateEditor,$h as SlateElement,Yh as SlateLocation,tv as SlateNode,ov as SlatePath,sv as SlatePoint,dv as SlateRange,wv as SlateText,zv as SlateTransforms,JR as Toolbar,Qkt as createEditor,tPt as createToolbar,tL as createUploader,ePt as default,YF as genModalButtonElems,qF as genModalInputElems,KF as genModalTextareaElems,BF as i18nAddResources,IF as i18nChangeLanguage,FF as i18nGetResources,LF as t};
26
+ */e.exports&&(e.exports=t),void 0!==y&&(y.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)}}}()}(yB)),yB.exports),EB=b(bB);!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 CB;CB||(CB=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 DB;DB||(DB=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 wB;wB||(wB=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 SB;SB||(SB=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 AB;AB||(AB=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 xB;xB||(xB=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]),D=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[C,m,y]),w={keyword:c,punctuation:/[<>()?,.:[\]]/},S=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,A=/"(?:\\.|[^\\"\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,[A]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[m]),lookbehind:!0,inside:w},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[g,D]),lookbehind:!0,inside:w},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[g]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[l,v]),lookbehind:!0,inside:w},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[m]),lookbehind:!0,inside:w},{pattern:n(/(\bwhere\s+)<<0>>/.source,[g]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:w},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[D,f,g]),inside:w}],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:w},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[D,m]),inside:w,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[D]),lookbehind:!0,inside:w,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:w}}},"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,D,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(D),greedy:!0,inside:w},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 O=A+"|"+S,N=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[O]),B=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[N]),2),T=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,k=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[m,B]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[T,k]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[T]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[B]),inside:e.languages.csharp},"class-name":{pattern:RegExp(m),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var F=/:[^}\r\n]+/.source,I=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[N]),2),P=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[I,F]),_=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[O]),2),L=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[_,F]);function R(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,[P]),lookbehind:!0,greedy:!0,inside:R(P,I)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[L]),lookbehind:!0,greedy:!0,inside:R(L,_)}],char:{pattern:RegExp(S),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 OB;OB||(OB=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 NB=["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 BB(e){return"string"==typeof e?e.length:"string"==typeof e.content?e.content.length:e.content.reduce(function(e,t){return e+BB(t)},0)}var TB=function(e){var t,n,r,o=ev(e,2),i=o[0],a=o[1],s=[],u=function(e){if(!Cg.isText(e))return null;var t=Py.getParentNode(null,e);if(t&&"code"===Py.getNodeType(t)){var n=Py.getParentNode(null,t);if(n&&"pre"===Py.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=EB.languages[t];return n?EB.tokenize(e.text,n):[]}(i,c),f=0;try{for(var p=Qg(d),h=p.next();!h.done;h=p.next()){var g=h.value,v=f+BB(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 kB={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 FB=function(){function e(){this.title=JE("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(!$h.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()};jg.setNodes(e,n,{match:function(e){return Py.checkNodeType(e,"code")}})}},e.prototype.getSelectCodeElem=function(e){var t=Py.getSelectedNodeByType(e,"code");if(null==t)return null;var n=Py.getParentNode(e,t);return $h.isElement(n)?"pre"!==n.type?null:t:null},e}(),IB={key:"codeSelectLang",factory:function(){return new FB},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"}]}};lm&&(im.fn.attr=lm);var PB={renderStyle:function(e,t){var n=e,r=t,o="";return NB.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=im(e);if(!$h.isElement(t))return t;if("code"!==Py.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:[IB],elemsToHtml:[kB]};KE("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),KE("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var _B=new WeakMap;function LB(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];Cg.isText(i)&&(t=i)}return null==t?"":t.color||""}function RB(e,t,n){for(var r=t.type,o=Xg(t,["type"]),i=void 0!==n?n:o.level||0,a=Py.findPath(e,t),s=a;;){if(0===s.length||0===a[a.length-1])return null;s=og.previous(s);var u=Kh.node(e,s);if(!u)return null;var l=ev(u,1)[0],c=l.level,d=void 0===c?0:c;if(Py.getNodeType(l)!==r)return null;if(d===i)return l}}function MB(e,t,n){var r=RB(e,t,n);return!!r&&r.ordered===t.ordered}var jB=[];var HB={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=_B.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=Py.findPath(t,e);if(0===u[0])return s+1;var l=og.previous(u),c=Kh.node(t,l);if(!c)return 0;var d=ev(c,1)[0];if(Py.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?MB(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,">"),jB.push(i);var u=function(e){var t=_B.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=Py.findPath(t,e);if(u[0]===t.children.length-1)return s+1;var l=og.next(u),c=Kh.node(t,l);if(!c)return 0;var d=ev(c,1)[0];if(Py.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?MB(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=jB.pop();r+="</".concat(l,">")}var c=LB(e),d=c?' style="color:'.concat(c,'"'):"";return{html:"<li".concat(d,">").concat(t,"</li>"),prefix:n,suffix:r}}},zB=function(){function e(){this.type="list-item",this.tag="button"}return e.prototype.getListNode=function(e){var t=this.type;return Py.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||!!Py.getSelectedElems(e).some(function(t){if(Kh.isVoid(e,t)&&Kh.isBlock(e,t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)})},e.prototype.exec=function(e,t){this.isActive(e)?jg.setNodes(e,{type:"paragraph",ordered:void 0,level:void 0}):jg.setNodes(e,{type:"list-item",ordered:this.ordered,indent:void 0})},e}(),$B=function(e){function t(){var t=e.apply(this,tv([],ev(arguments),!1))||this;return t.ordered=!1,t.title=JE("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 Kg(t,e),t}(zB),UB=function(e){function t(){var t=e.apply(this,tv([],ev(arguments),!1))||this;return t.ordered=!0,t.title=JE("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 Kg(t,e),t}(zB),VB={key:"bulletedList",factory:function(){return new $B}},WB={key:"numberedList",factory:function(){return new UB}};function GB(e){return e.length?e[0].tagName.toLowerCase():""}Om&&(im.fn.append=Om),lm&&(im.fn.attr=lm),Bm&&(im.fn.parent=Bm);var qB={selector:"li:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=im(e);0===(t=t.filter(function(e){return!!Cg.isText(e)||!!n.isInline(e)})).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=function(e){return"ol"===GB(e.parent())}(r),i=function(e){for(var t=0,n=e.parent(),r=GB(n);"ul"===r||"ol"===r;)r=GB(n=n.parent()),t+=1;return t-1}(r);return{type:"list-item",ordered:o,level:i,children:t}}};var KB={selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(e,t,n){return t.flat(1/0)}};function YB(e){return Kh.nodes(e,{at:e.selection||void 0,match:function(t){return 1===Py.findPath(e,t).length}})}var XB={type:"list-item",renderElem:function(e,t,n){_B.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=Py.findPath(e,l);if(0===c[0])return 1;for(;c[0]>0;){var d=og.previous(c),f=Kh.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 BD("div",{style:u},BD("span",{contentEditable:!1,style:{marginRight:"0.5em",color:LB(e)},"data-w-e-reserve":!0},l),BD("span",{style:{flex:"1",wordBreak:"break-word"}},t))}},ZB={renderElems:[XB],editorPlugin:function(e){var t=e.deleteBackward,n=e.handleTab,r=e.normalizeNode,o=e.insertBreak,i=e;return i.insertBreak=function(){var t=ev(Kh.nodes(e,{match:function(e){return Py.checkNodeType(e,"list-item")},universal:!0}),1),n=t[0];return n?""!==n[0].children[0].text?o():void jg.setNodes(i,{type:"paragraph",ordered:void 0,level:void 0}):o()},i.deleteBackward=function(n){var r=i.selection;if(null!=r)if(fg.isExpanded(r))t(n);else{var o=Py.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=RB(e,o,u-1);d&&d.ordered!==c?jg.setNodes(i,{level:u-1,ordered:!c}):jg.setNodes(i,{level:u-1})}else jg.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(fg.isCollapsed(a)){var s=Py.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 jg.setNodes(i,{level:l+1})}}if(fg.isExpanded(a)){var c=0,d=!1;try{for(var f=Qg(YB(i)),p=f.next();!p.done;p=f.next()){var h=ev(p.value,1)[0];"list-item"===Py.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=Qg(YB(i)),v=g.next();!v.done;v=g.next()){var m=ev(v.value,2),y=(h=m[0],m[1]),b=h.level;l=void 0===b?0:b;jg.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=ev(e,2),n=t[0],o=t[1],a=Py.getNodeType(n);return"bulleted-list"!==a&&"numbered-list"!==a||jg.unwrapNodes(i,{at:o}),r([n,o])},i},menus:[VB,WB],elemsToHtml:[HB],parseElemsHtml:[KB,qB]};KE("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"}}),KE("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 JB={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>")}},QB={type:"table-row",elemToHtml:function(e,t){return"<tr>".concat(t,"</tr>")}},eT={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,">")}},tT='<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>',nT={blocks:{td:"table-cell",th:"table-cell",content:"paragraph",tr:"table-row",table:"table",tbody:"table-body"}};function rT(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=nT,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!Kh.isEditor(e)&&$h.isElement(e)&&"type"in e}(e)&&o.includes(e.type)}}function oT(e,t){for(var n=ev(t,2),r=n[0],o=n[1],i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];var s=ev(eg.common(e,r,o),2),u=s[0],l=s[1];return!!rT.apply(void 0,tv([e],ev(i),!1))(u,l)||!!Kh.above(e,{match:rT.apply(void 0,tv([e],ev(i),!1)),at:l})}function iT(e,t){var n,r;void 0===t&&(t={});var o=[];try{for(var i=Qg(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={}),Jg(this,function(E){switch(E.label){case 0:if(n=ev(Kh.nodes(e,{match:rT(e,"table"),at:t.at}),1),!(r=n[0]))return[2,[]];o=ev(r,2),i=o[1],E.label=1;case 1:E.trys.push([1,6,7,8]),a=Qg(Kh.nodes(e,{match:rT(e,"table"),at:i})),s=a.next(),E.label=2;case 2:if(s.done)return[3,5];u=ev(s.value,2),l=u[1],c=[];try{for(y=void 0,d=Qg(Kh.nodes(e,{match:rT(e,"tr"),at:l})),f=d.next();!f.done;f=d.next())p=ev(f.value,2),h=p[1],c.push(tv([],ev(Kh.nodes(e,{match:rT(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=ev(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,tv([],ev(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 aT=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 sT(e){return e.length?e[0].tagName.toLowerCase():""}function uT(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}Om&&im.fn&&(im.fn.append=Om),hm&&im.fn&&(im.fn.on=hm),Mm&&im.fn&&(im.fn.focus=Mm),lm&&im.fn&&(im.fn.attr=lm),pm&&im.fn&&(im.fn.val=pm),Sm&&im.fn&&(im.fn.html=Sm),fm&&im.fn&&(im.fn.dataset=fm),am&&im.fn&&(im.fn.addClass=am),sm&&im.fn&&(im.fn.removeClass=sm),Fm&&im.fn&&(im.fn.children=Fm),Dm&&im.fn&&(im.fn.each=Dm),km&&im.fn&&(im.fn.find=km),dm&&im.fn&&(im.fn.data=dm),bm&&im.fn&&(im.fn.hide=bm),Em&&im.fn&&(im.fn.show=Em);var lT=new WeakMap,cT=new WeakMap,dT=function(){function e(){this.title=JE("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:JE("tableModule.borderStyle.none")},{value:"solid",label:JE("tableModule.borderStyle.solid")},{value:"dotted",label:JE("tableModule.borderStyle.dotted")},{value:"dashed",label:JE("tableModule.borderStyle.dashed")},{value:"double",label:JE("tableModule.borderStyle.double")},{value:"groove",label:JE("tableModule.borderStyle.groove")},{value:"ridge",label:JE("tableModule.borderStyle.ridge")},{value:"inset",label:JE("tableModule.borderStyle.inset")},{value:"outset",label:JE("tableModule.borderStyle.outset")}],this.textAlignOptions=[{value:"left",label:JE("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:JE("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:JE("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:JE("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==Py.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){},e.prototype.getModalContentNode=function(e){return ev(Kh.nodes(e,{match:rT(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=ev(n,2),o=r[0],i=r[1],a=im('<div>\n <label class="babel-container">\n <span>'.concat(JE("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(JE("tableModule.modal.borderWidth"),'">\n </span>\n </label>\n <div class="babel-container">\n <span>').concat(JE("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(JE("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(JE("tableModule.modal.ok"),"</button>\n </div>\n </div>"));a.find("[name]").each(function(e){im(e).val(o[im(e).attr("name")])});var s=function(e,t){t?im(".color-group-block",e).css("background-color",t).empty():im(".color-group-block",e).css("background-color","").html(tT)};return a.find(".color-group").each(function(n){var r=im('[type="hidden"]',n).val()||"";s(n,r);var o=im(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){im('[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[im(t).attr("name")]=im(t).val(),e},{}),r=lT.get(e);"cell"===t.menu&&(null==r?void 0:r.length)?r.forEach(function(t){t.forEach(function(t){jg.setNodes(e,n,{at:t[0][1]})})}):jg.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=im('<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=im(t).attr("data-value");o(n)}});var a=e.getMenuConfig(n).colors;(void 0===a?[]:a).forEach(function(e){var t=im('<div class="color-block" data-value="'.concat(e,'"></div>'));t.css("background-color",e);var n=im('<li data-value="'.concat(e,'"></li>'));r===e&&n.addClass("active"),n.append(t),i.append(n)});var s="";"color"===n&&(s=JE("tableModule.color.default")),"bgColor"===n&&(s=JE("tableModule.color.clear"));var u=im('\n <li data-value="" class="clear">\n '.concat(tT,"\n ").concat(s,"\n </li>\n "));i.prepend(u);var l=im('<div class="w-e-drop-panel"></div>');return l.append(i),l},e}(),fT=function(e){function t(){var t=e.apply(this,tv([],ev(arguments),!1))||this;return t.title=JE("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 Kg(t,e),t.prototype.getModalContentNode=function(e){return ev(Kh.nodes(e,{match:rT(e,"td")}),1)[0]},t}(dT),pT=function(){function e(){this.title=JE("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||(!fg.isCollapsed(t)||null==Py.getSelectedNodeByType(e,"table-cell"))},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=ev(Kh.nodes(e,{match:function(e){return Py.checkNodeType(e,"table-cell")},universal:!0}),1),r=ev(n[0],2),o=r[0],i=r[1],a=Py.getParentNode(e,o),s=(null==a?void 0:a.children.length)||0;if(!a||s<=1)jg.removeNodes(e,{mode:"highest"});else if(null!=Py.getParentNode(e,a)){var u=iT(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=ev(u[c][d],1),p=ev(f[0],2)[1];if(og.equals(i,p)){l=d;break e}}Kh.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=ev(u[i][l],2),s=ev(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=ev(u[v][m],1),b=ev(y[0],2),E=b[0],C=b[1],D=C.join(",");if(!o.has(D)){o.add(D);var w=E.rowSpan,S=void 0===w?1:w,A=E.colSpan,x=void 0===A?1:A,O=Math.max(x-1,1);jg.setNodes(e,{rowSpan:S,colSpan:O},{at:C})}}else r.add(g)}var N=Array.from(r);N.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 B=Qg(N),T=B.next();!T.done;T=B.next()){var k=T.value.split(",").map(Number);try{Kh.hasPath(e,k)&&jg.removeNodes(e,{at:k})}catch(e){console.warn("删除单元格失败:",k,e)}}}catch(e){t={error:e}}finally{try{T&&!T.done&&(n=B.return)&&n.call(B)}finally{if(t)throw t.error}}var F=ev(Kh.nodes(e,{match:function(e){return Py.checkNodeType(e,"table")},universal:!0}),1),I=F[0];if(I){var P=ev(I,2),_=P[0],L=P[1],R=_.columnWidths,M=tv([],ev(void 0===R?[]:R),!1);M.splice(l,1),jg.setNodes(e,{columnWidths:M},{at:L})}})}}},e}(),hT=function(){function e(){this.title=JE("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||(!fg.isCollapsed(t)||null==Py.getSelectedNodeByType(e,"table-row"))},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=ev(Kh.nodes(e,{match:function(e){return Py.checkNodeType(e,"table-row")},universal:!0}),1),r=ev(n[0],2),o=r[0],i=r[1],a=Py.getParentNode(e,o);if(((null==a?void 0:a.children.length)||0)<=1)jg.removeNodes(e,{mode:"highest"});else{var s=ev(Kh.nodes(e,{match:function(e){return Py.checkNodeType(e,"table-cell")},universal:!0}),1),u=ev(s[0],2)[1],l=iT(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=ev(l[d][f],1),h=ev(p[0],2)[1];if(og.equals(u,h)){c=d;break e}}Kh.withoutNormalizing(e,function(){for(var t,n,r=[],o=0;o<l[c].length;o+=1){var a=ev(l[c][o],2),s=ev(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=ev(l[h][o],1),v=ev(g[0],2),m=v[0],y=v[1],b=m,E=b.rowSpan,C=void 0===E?1:E,D=b.colSpan,w=void 0===D?1:D;if(s)jg.setNodes(e,{rowSpan:Math.max(C-1,1),colSpan:w},{at:y});else if(1===d&&1===p){if(c+1<l.length&&C>1){var S={type:"table-cell",rowSpan:C-1,colSpan:w,hidden:!1,children:b.children.map(function(e){return Yg({},e)})};b.isHeader&&(S.isHeader=b.isHeader),b.width&&(S.width=b.width),b.backgroundColor&&(S.backgroundColor=b.backgroundColor),b.borderWidth&&(S.borderWidth=b.borderWidth),b.borderStyle&&(S.borderStyle=b.borderStyle),b.borderColor&&(S.borderColor=b.borderColor),b.textAlign&&(S.textAlign=b.textAlign),r.push({cell:S,columnIndex:o})}else jg.setNodes(e,{rowSpan:Math.max(C-1,1),colSpan:w},{at:y})}else jg.setNodes(e,{rowSpan:Math.max(C-1,1),colSpan:w},{at:y})}}if(jg.removeNodes(e,{at:i}),r.length>0){var A=i;try{r.sort(function(e,t){return e.columnIndex-t.columnIndex});try{for(var x=Qg(r),O=x.next();!O.done;O=x.next()){var N=O.value,B=N.cell,T=N.columnIndex;try{var k=tv(tv([],ev(A),!1),[T],!1);jg.insertNodes(e,B,{at:k})}catch(t){try{var F=ev(Kh.node(e,A),1)[0].children.length,I=tv(tv([],ev(A),!1),[F],!1);jg.insertNodes(e,B,{at:I})}catch(e){console.warn("插入新单元格失败:",e)}}}}catch(e){t={error:e}}finally{try{O&&!O.done&&(n=x.return)&&n.call(x)}finally{if(t)throw t.error}}}catch(e){console.warn("插入新单元格失败:",e)}}})}}},e}(),gT=function(){function e(){this.title=JE("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==Py.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){this.isDisabled(e)||jg.removeNodes(e,{mode:"highest"})},e}(),vT=function(){function e(){this.title=JE("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=Py.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||(!fg.isCollapsed(t)||null==Py.getSelectedNodeByType(e,"table"))},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n={width:t?"auto":"100%"};jg.setNodes(e,n,{mode:"highest"})}},e}();function mT(e){var t=e.children||[];return 0===t.length?[]:(t[0]||{}).children||[]}function yT(e){return mT(e).every(function(e){return!!e.isHeader})}var bT=function(){function e(){this.title=JE("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(!fg.isCollapsed(t))return!0;var n=Py.getSelectedNodeByType(e,"table");if(null==n)return!0;try{var r=ev(Kh.nodes(e,{match:function(e){return Py.checkNodeType(e,"table-cell")},universal:!0}),1),o=r[0];if(!o)return!0;for(var i=ev(o,2)[1],a=iT(e),s=-1,u=0;u<a.length;u+=1){for(var l=0;l<a[u].length;l+=1){var c=ev(a[u][l],1),d=ev(c[0],2)[1];if(og.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=ev(Kh.nodes(e,{match:function(e){return Py.checkNodeType(e,"table-cell")},universal:!0}),1),r=ev(n[0],2),o=r[0],i=r[1],a=Py.getParentNode(e,o);if(null!=a){var s=Py.getParentNode(e,a);if(null!=s){for(var u=iT(e),l=0,c=0;c<u.length;c+=1)for(var d=0;d<u[c].length;d+=1){var f=ev(u[c][d],1),p=ev(f[0],2)[1];if(og.equals(i,p)){l=d;break}}Kh.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=ev(u[r][l],2);ev(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=ev(u[p][h],1),v=ev(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,D=m.colSpan,w=(void 0===D?1:D)+1;m.hidden||jg.setNodes(e,{colSpan:w},{at:y});for(var S=0;S<C;S+=1)n.add(p+S)}}}for(r=0;r<u.length;r+=1)if(!n.has(r)&&u[r]&&u[r][l]){var A={type:"table-cell",children:[{text:""}]};0===r&&yT(s)&&(A.isHeader=!0);var x=ev(u[r][l],1),O=ev(x[0],2)[1];jg.insertNodes(e,A,{at:O})}var N=ev(Kh.nodes(e,{match:function(e){return Py.checkNodeType(e,"table")},universal:!0}),1),B=N[0];if(B){var T=ev(B,2),k=T[0],F=T[1],I=k.columnWidths,P=void 0===I?[]:I,_=tv([],ev(P),!1),L=e.getMenuConfig("insertTable").minWidth,R=void 0===L?60:L,M=P[l]||parseInt(R,10)||60,j=Math.floor(M/2),H=M-j;_.splice(l,0,j),_[l+1]=H,jg.setNodes(e,{columnWidths:_},{at:F})}})}}}},e}(),ET=function(){function e(){this.title=JE("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||(!fg.isCollapsed(t)||null==Py.getSelectedNodeByType(e,"table"))},e.prototype.exec=function(e,t){var n;if(!this.isDisabled(e)){var r=ev(Kh.nodes(e,{match:function(e){return Py.checkNodeType(e,"table-cell")},universal:!0}),1),o=ev(r[0],2)[1],i=iT(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=ev(i[s][u],1),c=ev(l[0],2)[1];if(og.equals(o,c)){a=s;break e}}var d=(null===(n=i[a])||void 0===n?void 0:n.length)||0;0!==d&&Kh.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=ev(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=ev(i[f][s],1),h=ev(p[0],2),g=h[0],v=h[1],m=g.rowSpan||1;r.push(s),g.hidden||jg.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=og.parent(o),C=og.next(E);jg.insertNodes(e,y,{at:C})})}},e}();var CT=function(){function e(){this.title=JE("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||(!fg.isCollapsed(t)||!!Py.getSelectedElems(e).some(function(t){var n=Py.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=im('<div class="w-e-panel-content-table"></div>'),r=im("<span>0 &times; 0</span>"),o=im("<table></table>"),i=0;i<10;i+=1){for(var a=im("<tr></tr>"),s=0;s<10;s+=1){var u=im("<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=im(t).dataset(),i=n.x,a=n.y;r[0].innerHTML="".concat(i+1," &times; ").concat(a+1),o.children().each(function(e){im(e).children().each(function(e){var t=im(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=im(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(Py.isSelectedEmptyParagraph(e)&&jg.removeNodes(e,{mode:"highest"}),0===e.children.length){jg.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);jg.insertNodes(e,i,{mode:"highest"})}},e}(),DT={isInTable:function(e,t){return void 0===t&&(t={}),!!ev(Kh.nodes(e,{match:rT(e,"table"),at:t.at}),1)[0]},selection:function(e){var t,n,r,o,i,a,s,u;return Jg(this,function(l){switch(l.label){case 0:t=lT.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=ev(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){cT.delete(e),lT.delete(e)},isSelected:function(e,t){var n=cT.get(e);return!!n&&n.has(t)}},wT=function(){function e(){this.title=JE("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),DT.unselect(e))},e.prototype.canMerge=function(e){var t=lT.get(e);if(!t||!t.length)return!1;var n=ev(t[t.length-1][t[t.length-1].length-1],1),r=ev(n[0],2)[1],o=ev(t[0][0],1);return!!oT(e,[ev(o[0],2)[1],r],"table")},e.prototype.merge=function(e){if(this.canMerge(e)){var t=lT.get(e);if(t&&t.length){var n=ev(t[0][0],1),r=ev(n[0],2)[1],o=ev(eg.children(e,r,{reverse:!0}),1),i=ev(o[0],2)[1];Kh.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=ev(t[v][m],2),b=ev(y[0],2),E=b[0],C=b[1],D=y[1].ttb,w=C.join(",");if(1===D&&!c.has(w)){c.set(w,{path:C,x:v,y:m,element:E});var S=E.rowSpan,A=void 0===S?1:S,x=E.colSpan,O=v,N=v+A-1,B=m,T=m+(void 0===x?1:x)-1;f=Math.min(f,O),p=Math.max(p,N),h=Math.min(h,B),g=Math.max(g,T)}}var k=p-f+1,F=g-h+1;try{for(var I=Qg(c),P=I.next();!P.done;P=I.next()){C=ev(P.value,2)[1].path;og.equals(r,C)||d.push(C)}}catch(e){n={error:e}}finally{try{P&&!P.done&&(o=I.return)&&o.call(I)}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 _=Qg(d),L=_.next();!L.done;L=_.next()){C=L.value;try{if(!Kh.hasPath(e,C))continue;try{for(var R=(u=void 0,Qg(eg.children(e,C,{reverse:!0}))),M=R.next();!M.done;M=R.next()){var j=ev(M.value,2)[1];jg.moveNodes(e,{to:og.next(i),at:j})}}catch(e){u={error:e}}finally{try{M&&!M.done&&(l=R.return)&&l.call(R)}finally{if(u)throw u.error}}jg.removeNodes(e,{at:C})}catch(e){}}}catch(e){a={error:e}}finally{try{L&&!L.done&&(s=_.return)&&s.call(_)}finally{if(a)throw a.error}}jg.setNodes(e,{rowSpan:k,colSpan:F},{at:r})})}}},e}(),ST=function(){function e(){this.title=JE("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=ev(Kh.nodes(e,{match:function(e){return Py.checkNodeType(e,"table-cell")}}),1),n=t[0];if(!n)return!0;var r=ev(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=ev(Kh.nodes(e,{match:rT(e,"table","th","td"),at:t.at}),2),r=n[0],o=n[1];if(r&&o){var i=yT(ev(r,1)[0]),a=ev(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||Kh.withoutNormalizing(e,function(){jg.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=tv(tv([],ev(r),!1),[o],!1);try{jg.insertNodes(e,n,{at:a})}catch(t){try{var s=ev(Kh.node(e,r),1)[0].children.length,l=tv(tv([],ev(r),!1),[s],!1);jg.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=tv(tv([],ev(u.slice(0,-2)),!1),[p],!1);try{var g=ev(Kh.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=tv(tv([],ev(h),!1),[o],!1);try{var v=g.children.length;if(o>=v){var m=tv(tv([],ev(h),!1),[v],!1);jg.insertNodes(e,n,{at:m})}else jg.insertNodes(e,n,{at:a})}catch(t){try{var y=g.children.length;l=tv(tv([],ev(h),!1),[y],!1);jg.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}(),AT=function(){function e(){this.title=JE("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=Py.getSelectedNodeByType(e,"table");return null!=t&&yT(t)},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||(!fg.isCollapsed(t)||null==Py.getSelectedNodeByType(e,"table"))},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=!t,r=Py.getSelectedNodeByType(e,"table");if(null!=r)mT(r).forEach(function(t){return jg.setNodes(e,{isHeader:n},{at:Py.findPath(e,t)})})}},e}(),xT={key:"insertTable",factory:function(){return new CT}},OT={key:"deleteTable",factory:function(){return new gT}},NT={key:"insertTableRow",factory:function(){return new ET}},BT={key:"deleteTableRow",factory:function(){return new hT}},TT={key:"insertTableCol",factory:function(){return new bT}},kT={key:"deleteTableCol",factory:function(){return new pT}},FT={key:"tableHeader",factory:function(){return new AT}},IT={key:"tableFullWidth",factory:function(){return new vT}},PT={key:"mergeTableCell",factory:function(){return new wT}},_T={key:"splitTableCell",factory:function(){return new ST}},LT={key:"setTableProperty",factory:function(){return new dT}},RT={key:"setTableCellProperty",factory:function(){return new fT}};var MT={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=im(e);0===(t=t.filter(function(e){return"paragraph"===Py.getNodeType(e)||(!!Cg.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"===uT(r,"display"),s=r.attr("width")||"auto";return{type:"table-cell",isHeader:"th"===sT(r),colSpan:o,rowSpan:i,width:s,children:t,hidden:a}}};var jT={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"===Py.getNodeType(i)){var a=i;if(a.hidden)continue;r.push(a)}}return{type:"table-row",children:r}}};var HT,zT={selector:"table:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r,o,i=im(e),a="auto";"100%"===uT(i,"width")&&(a="100%"),"100%"===i.attr("width")&&(a="100%");var s={type:"table",width:a,height:parseInt(uT(i,"height")||"0",10),children:t.filter(function(e){return"table-row"===Py.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(im(e).attr("colSpan")||"1",10),n=parseInt(uT(im(e),"width")||"90",10);d.push(n);for(var r=1;r<t;r+=1)d.push(90)}),s.columnWidths=d}return s}},$T=null===(HT=null===window||void 0===window?void 0:window.getComputedStyle(document.documentElement))||void 0===HT?void 0:HT.getPropertyValue("--w-e-textarea-border-color");function UT(e){var t=e.selection;if(null==t)return!1;var n=ev(Kh.nodes(e,{match:function(e){return Py.checkNodeType(e,"table-cell")}}),1),r=n[0];if(r){var o=ev(r,2)[1],i=Kh.start(e,o);if(ug.equals(t.anchor,i))return!0}return!1}function VT(e,t){var n=t.offset;if(0===n)return!1;var r=Kh.node(e,t);if(!Cg.isText(r[0]))return!1;var o=eg.string(r[0]);return!(n>=o.length)&&("\n"===o[n-1]&&"\r"===o[n])}function WT(e,t,n){var r=e.selection;if(null==r||"line"===t)return!1;var o=ev(Kh.nodes(e,{match:function(e){return Py.checkNodeType(e,"table-cell")}}),1),i=o[0],a=r.anchor;if("backward"===n&&0===r.anchor.offset&&(a=Kh.before(e,r)),"forward"===n&&Kh.isEnd(e,r.anchor,r.anchor.path)&&(a=Kh.after(e,r)),null==a)return!1;var s=Kh.above(e,{at:a,match:function(e){return Py.checkNodeType(e,"table-cell")}});if(null==s||null==i||!og.equals(s[1],i[1]))return!1;var u=Kh.node(e,a);if(!Cg.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=eg.string(u[0]);return"\n\r"===c.slice.apply(c,tv([],ev(l),!1))?(jg.insertText(e,c.slice(0,l[0])+c.slice(l[1]),{at:{anchor:Kh.start(e,a.path),focus:Kh.end(e,a.path)}}),!0):!!VT(e,a)&&(jg.insertText(e,c.slice(0,r.anchor.offset-1)+c.slice(r.anchor.offset+1),{at:{anchor:Kh.start(e,a.path),focus:Kh.end(e,a.path)}}),!0)}function GT(e,t){var n=Kh.nodes(e,{at:t,match:function(e){return"table"===Py.getNodeType(e)}});return!!tv([],ev(n),!1).find(function(){return!0})}var qT={selector:"table",preParseHtml:function(e){var t=im(e);if("table"!==sT(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=im(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=im(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 KT(e){var t,n,r=[],o=0;try{for(var i=Qg(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 YT(e){var t,n,r=[],o=e.reduce(function(e,t){return e+t},0);try{for(var i=Qg(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 XT=null;var ZT=!1,JT=!1,QT=0,ek=0,tk=null,nk=im(window);function rk(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}nk.on("mousedown",function(e){var t=e.target;if(t.closest('[data-block-type="table-cell"]'))ZT=!0;else if("DIV"===t.tagName&&t.closest(".column-resizer-item")){if(null===tk)return;var n=ev(Kh.nodes(tk,{match:rT(tk,"table")}),1),r=ev(n[0],1)[0],o=r.columnWidths,i=void 0===o?[]:o,a=r.resizingIndex,s=void 0===a?-1:a;JT=!0;var u=e.clientX;QT=u,ek=i[s],document.body.style.cursor="col-resize",e.preventDefault()}nk.on("mousemove",ok),nk.on("mouseup",ik)});var ok=SC(function(e){if(JT&&null!==tk){e.preventDefault();var t,n=e.clientX,r=n-QT,o=ev(Kh.nodes(tk,{match:rT(tk,"table")}),1),i=ev(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=rk(s,l,ek+r)}else{var d=document.querySelector(".table");if(d)t=function(e,t,n,r){var o=tv([],ev(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,KT(s));else t=function(e,t,n){var r=tv([],ev(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=rk(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)})}}}}jg.setNodes(tk,{columnWidths:t},{mode:"highest"})}},100);function ik(e){ZT=!1,JT=!1,tk=null,document.body.style.cursor="",nk.off("mousemove",ok),nk.off("mouseup",ik)}function ak(e,t){"mouseenter"===t.type?jg.setNodes(e,{isResizing:!0},{mode:"highest"}):jg.setNodes(e,{isResizing:!1},{mode:"highest"})}var sk={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(fg.isCollapsed(n))return!0;var r=n.anchor,o=n.focus,i=Py.findPath(e,t),a=Kh.start(e,i),s=Kh.end(e,i),u=ug.compare(r,s)<=0&&ug.compare(r,a)>=0,l=ug.compare(o,s)<=0&&ug.compare(o,a)>=0;return!!(u&&l&&og.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=Py.isNodeSelected(n,e),v=ev(DT.selection(n),1)[0],m=YT(l),y=BD("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"]')&&DT.unselect(n);var r=Py.findPath(n,e),o=Kh.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)}}}},BD("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:nE(function(t){return function(e,t,n,r){if(!e.isDisabled()&&!ZT&&!JT){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(Wm(f)&&d>(g=f.getBoundingClientRect()).x+5&&d<g.x+g.width-5)return void(l&&jg.setNodes(e,{isHoverCellBorder:!1,resizingIndex:-1},{mode:"highest"}));if(Wm(f)){var p=f.closest(".table");if(p)for(var h=n.clientX,g=p.getBoundingClientRect(),v="100%"===a?YT(u).map(function(e){return e*r}):u,m=KT(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 jg.setNodes(e,{isHoverCellBorder:!0,resizingIndex:y},{mode:"highest"})}}!0===l&&jg.setNodes(e,{isHoverCellBorder:!1,resizingIndex:-1},{mode:"highest"})}}(n,e,t,d)},25)}},BD("colgroup",{contentEditable:!1},l.map(function(e){return BD("col",{width:e})})),BD("tbody",null,t)),BD("div",{className:"column-resizer",contentEditable:!1},l.map(function(e,t){var r=e;return"100%"===a&&(r=m[t]*d),BD("div",{className:"column-resizer-item",style:{minWidth:"".concat(r,"px")}},BD("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 ak(n,e)},mouseleave:function(e){return ak(n,e)},mousedown:function(e){return function(e){JT||(tk=e)}(n)}}},BD("div",{className:"resizer-line"})))}))),b=lD("div",{hook:{insert:function(e){var t=e.elm;return function(e,t){if(Wm(t)){var n=t.querySelector("table");n&&(XT=new ResizeObserver(function(t){var n=ev(t,1)[0].contentRect;jg.setNodes(e,{scrollWidth:n.width,height:n.height},{mode:"highest"})}),XT.observe(n))}}(n,t)},destroy:function(){XT&&(null==XT||XT.disconnect(),XT=null)}}},y);return b}},uk={type:"table-row",renderElem:function(e,t,n){return BD("tr",null,t)}},lk={type:"table-cell",renderElem:function(e,t,n){var r=function(e,t){var n=Py.getParentNode(e,t);if(null==n)return!1;var r=Py.getParentNode(e,n);return null!=r&&mT(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=DT.isSelected(n,e);return BD(r&&c?"th":"td",{colSpan:a,rowSpan:u,"data-block-type":"table-cell",className:p?"w-e-selected":"",style:{display:f?"none":""}},t)}};function ck(e,t){null==e.data&&(e.data={});var n=e.data;null==n.style&&(n.style={}),Object.assign(n.style,t)}var dk={renderStyle:function(e,t){var n,r;if(!$h.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?ck(null===(r=(null===(n=d.children)||void 0===n?void 0:n[0]).children)||void 0===r?void 0:r[0],c):ck(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=im(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=im(e),o=t,i=uT(r,"background-color");i||(i=uT(r,"background")),i&&(o.backgroundColor=i);var a=uT(r,"border");a||"TD"!==e.tagName||(a="1px solid ".concat($T));var s=ev((null==a?void 0:a.split(" "))||[],3),u=s[0],l=s[1],c=s[2];(u=uT(r,"border-width")||u)&&(o.borderWidth=u.replace(/[^\d]/g,"")),(l=uT(r,"border-style")||l)&&(o.borderStyle="none"===l?"":l),(c=uT(r,"border-color")||c)&&(o.borderColor=c);var d=uT(r,"text-align");return(d=uT(r,"text-align")||d)&&(o.textAlign=d),t},renderElems:[sk,uk,lk],elemsToHtml:[JB,QB,eT],preParseHtml:[qT],parseElemsHtml:[MT,jT,zT],menus:[xT,OT,NT,BT,TT,kT,FT,IT,PT,_T,LT,RT],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==Py.getSelectedNodeByType(l,"table")?t():l.insertText("\n\r")},l.deleteBackward=function(e){if(!UT(l)&&!WT(l,e,"backward")){var t=l.selection;if(t){var r=Kh.before(l,t),o=Kh.above(l,{at:t,match:function(e){return Py.checkNodeType(e,"table-cell")}});if(r){var i=GT(l,r);if(!o&&i&&Py.getSelectedNodeByType(l,"paragraph"))return}}n(e)}},l.handleTab=function(){var t;if(Py.getSelectedNodeByType(l,"table")){var n=Kh.above(e);Py.checkNodeType(n[0],"table-cell")&&jg.select(e,n[1]);var r=Kh.next(e);if(r)r[0]&&r[0].text&&(r=null!==(t=Kh.above(e,{at:r[1]}))&&void 0!==t?t:r),jg.select(e,r[1]);else{var o=l.children||[],i=o.length;if(Py.checkNodeType(o[i-1],"table")){var a=Py.genEmptyParagraph();jg.insertNodes(l,a,{at:[i]}),l.handleTab()}}}else s()},l.deleteForward=function(e){if(!UT(l)&&!WT(l,e,"forward")){var t=l.selection;if(t){var n=Kh.after(l,t),o=Kh.above(l,{at:t,match:function(e){return Py.checkNodeType(e,"table-cell")}});if(n){var i=GT(l,n);if(!o&&i&&Py.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=ug.isBefore(i.anchor,i.focus);if(VT(l,t.anchor))(n=Kh[a?"before":"after"](l,t.anchor))&&(i.anchor=n),r=!0;if(VT(l,t.focus))(n=Kh[a?"after":"before"](l,t.focus))&&(i.focus=n),r=!0;r&&jg.setSelection(l,i),o(e)}},l.normalizeNode=function(e){var t=ev(e,2),n=t[0],r=t[1];if("table"!==Py.getNodeType(n))return i([n,r]);if(Py.isLastNode(l,n)){var o=Py.genEmptyParagraph();jg.insertNodes(l,o,{at:[r[0]+1]})}},l.insertData=function(e){if(null!=Py.getSelectedNodeByType(l,"table")){var t=e.getData("text/plain");"\n"===t||/<img[^>]+>/.test(e.getData("text/html"))?a(e):Kh.insertText(l,t)}else a(e)},l.selectAll=function(){var e=l.selection;if(null!=e){var t=Py.getSelectedNodeByType(l,"table-cell");if(null!=t){var n=e.anchor,r=e.focus;if(og.equals(n.path.slice(0,3),r.path.slice(0,3)))if(0!==eg.string(t).length){var o=Py.findPath(l,t),i={anchor:Kh.start(l,o),focus:Kh.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(!rg.isSelectionOperation(n)||!n.newProperties)return t(n);var r=Yg(Yg({},e.selection),n.newProperties);if(!fg.isRange(r))return DT.unselect(e),t(n);var o=function(e){return $h.isElement(e)&&("table-cell"===e.type||"th"===e.type||"td"===e.type)},i=ev(Kh.nodes(e,{match:o,at:fg.start(r),mode:"lowest"}),1)[0],a=ev(Kh.nodes(e,{match:o,at:fg.end(r),mode:"lowest"}),1)[0];if(!i||!a)return DT.unselect(e),t(n);var s=ev(i,2)[1],u=ev(a,2)[1];if(og.equals(s,u)||!oT(e,[s,u],"table"))return DT.unselect(e),t(n);try{var l=iT(e,{at:s});if(!l||0===l.length)return DT.unselect(e),t(n);for(var c=aT.valueOf(0,0),d=aT.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=ev(l[h][g],1),m=ev(v[0],2)[1];og.equals(s,m)&&(c.x=h,c.y=g,f=!0),og.equals(u,m)&&(d.x=h,d.y=g,p=!0)}if(!f||!p)return DT.unselect(e),t(n);for(var y=aT.valueOf(Math.min(c.x,d.x),Math.min(c.y,d.y)),b=aT.valueOf(Math.max(c.x,d.x),Math.max(c.y,d.y));;){var E=aT.valueOf(y.x,y.y),C=aT.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 D=ev(l[h][g],2)[1];if(D){var w=D.rtl,S=D.ltr,A=D.btt,x=D.ttb;E.x=Math.min(E.x,h-(x-1)),E.y=Math.min(E.y,g-(w-1)),C.x=Math.max(C.x,h+(A-1)),C.y=Math.max(C.y,g+(S-1))}}if(aT.equals(y,E)&&aT.equals(b,C))break;y=E,b=C}var O=[],N=new WeakSet;for(h=y.x;h<=b.x&&h<l.length;h+=1)if(l[h]){var B=[];for(g=y.y;g<=b.y&&g<l[h].length;g+=1)if(l[h][g]){var T=ev(l[h][g],1),k=ev(T[0],1)[0];k&&(N.add(k),B.push(l[h][g]))}B.length>0&&O.push(B)}lT.set(e,O),cT.set(e,N)}catch(r){return DT.unselect(e),t(n)}t(n)}}(l),l.getTableSelection=function(){return lT.get(l)||null};var c=l.addMark,d=l.removeMark,f=Yg({},jg);return l.addMark=function(e,t){var n=lT.get(l);if(n&&n.length>0){var r=l.selection;n.forEach(function(n){n.forEach(function(n){var r=ev(n[0],2)[1],o=Kh.start(l,r),i=Kh.end(l,r);jg.select(l,{anchor:o,focus:i}),c(e,t)})}),r&&jg.select(l,r)}else c(e,t)},l.removeMark=function(e){var t=lT.get(l);if(t&&t.length>0){var n=l.selection;t.forEach(function(t){t.forEach(function(t){var n=ev(t[0],2)[1],r=Kh.start(l,n),o=Kh.end(l,n);jg.select(l,{anchor:r,focus:o}),d(e)})}),n&&jg.select(l,n)}else d(e)},jg.setNodes=function(e,t,n){if(void 0===n&&(n={}),e===l){var r=lT.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=ev(r[0],2)[1];f.setNodes(e,t,Yg(Yg({},n),{at:o}))})})}f.setNodes(e,t,n)},l}};KE("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),KE("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});Om&&(im.fn.append=Om),hm&&(im.fn.on=hm),Im&&(im.fn.remove=Im),pm&&(im.fn.val=pm),Rm&&(im.fn.click=Rm),bm&&(im.fn.hide=bm);var fk=new WeakMap;function pk(e){return e.getMenuConfig("uploadImage")}function hk(e,t){return Zg(this,void 0,void 0,function(){return Jg(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;qO(e,i,t.name,a),n("ok")}}})]})})}function gk(e,t){return Zg(this,void 0,void 0,function(){var n,r;return Jg(this,function(o){switch(o.label){case 0:return n=function(e){var t=fk.get(e);if(null!=t)return t;var n=pk(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,s=n.onError;return t=qA(Yg(Yg({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,function(t,n,r){return qO(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;qO(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;qO(e,d,p,void 0===h?"":h)}r(t,n)}else i(t,n)},onError:function(e,t,n){s(e,t,n)}})),fk.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 vk(e,t){return Zg(this,void 0,void 0,function(){var n,r,o,i,a,s,u,l,c,d,f,p,h,g,v;return Jg(this,function(m){switch(m.label){case 0:if(null==t)return[2];n=Array.prototype.slice.call(t),r=pk(e),o=r.customUpload,i=r.base64LimitSize,a=[],m.label=1;case 1:m.trys.push([1,10,11,16]),s=!0,u=nv(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,hk(e,c)]:[3,5]);case 4:return m.sent(),[3,8];case 5:return o?[4,o(c,function(t,n,r){return qO(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,gk(e,a)]:[3,18];case 17:m.sent(),m.label=18;case 18:return[2]}})})}var mk=function(){function e(){this.title=JE("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 VO(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 qO(e,t,n,r)});else{var a="";o.length>0&&(a='accept="'.concat(o.join(", "),'"'));var s=im("body"),u=im('<input type="file" '.concat(a," multiple/>"));u.hide(),s.append(u),u.click(),u.on("change",function(){var t=u[0].files;vk(e,t)})}},e}();var yk={menus:[{key:"uploadImage",factory:function(){return new mk},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(VO(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"===ev(e.type.split("/"),1)[0]})?vk(e,o):t(r)}},n}};function bk(e){return e.length?e[0].tagName.toLowerCase():""}function Ek(e,t,n,r){void 0===t&&(t="auto"),void 0===n&&(n="auto"),void 0===r&&(r={});var o=im(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}KE("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"}}),KE("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",edit:"编辑视频",width:"宽度",height:"高度"}}),Om&&(im.fn.append=Om),hm&&(im.fn.on=hm),Mm&&(im.fn.focus=Mm),lm&&(im.fn.attr=lm),pm&&(im.fn.val=pm),Sm&&(im.fn.html=Sm),Bm&&(im.fn.parent=Bm),um&&(im.fn.hasClass=um),Pm&&(im.fn.empty=Pm);var Ck={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+=Ek(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 Dk(e){return void 0===e&&(e="r"),"".concat(e,"-").concat(Hm())}function wk(e){var t={};return e.trim().split(";").forEach(function(e){if(e){var n=ev(e.split(":"),2),r=n[0],o=n[1];r&&o&&(t[r.trim()]=o.trim())}}),t}function Sk(){return Dk("w-e-insert-video")}var Ak=function(){function e(){this.title=JE("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=Sk(),this.heightInputId=Sk(),this.buttonId=Sk()}return e.prototype.getSelectedVideoNode=function(e){return Py.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=ev(lC(JE("videoModule.width"),n,"auto"),2),a=i[0],s=im(i[1]),u=ev(lC(JE("videoModule.height"),r,"auto"),2),l=u[0],c=im(u[1]),d=ev(dC(o,JE("videoModule.ok")),1)[0],f=this.getSelectedVideoNode(e);if(null==this.$content){var p=im("<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:Yg(Yg({},d),{width:u,height:l})};jg.setNodes(e,h,{match:function(e){return Py.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 xk(){return Dk("w-e-edit-video")}var Ok=function(){function e(){this.title=JE("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=xk(),this.posterInputId=xk(),this.buttonId=xk()}return e.prototype.getSelectedVideoNode=function(e){return Py.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=ev(lC(JE("videoModule.videoSrc"),r,JE("videoModule.videoSrcPlaceHolder")),2),s=a[0],u=a[1],l=ev(lC(JE("videoModule.videoPoster"),o,JE("videoModule.videoPosterPlaceHolder")),2),c=l[0],d=l[1],f=im(u),p=im(d),h=ev(dC(i,JE("videoModule.ok")),1)[0];if(null==this.$content){var g=im("<div></div>");g.on("click","#".concat(i),function(n){return Zg(t,void 0,void 0,function(){var t,i,a,s;return Jg(this,function(u){return n.preventDefault(),t=g.find("#".concat(r)).val().trim(),i=g.find("#".concat(o)).val().trim(),a=Dk("video-"),s={src:t,poster:i,key:a},e.restoreSelection(),jg.setNodes(e,s,{match:function(e){return Py.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 Nk(e,t){return Zg(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=""),Jg(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(){Py.isSelectedEmptyParagraph(e)&&jg.removeNodes(e,{mode:"highest"}),jg.insertNodes(e,d,{mode:"highest"})}),a(d),[2]}})})}function Bk(){return Dk("w-e-insert-video")}var Tk=function(){function e(){this.title=JE("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=Bk(),this.posterInputId=Bk(),this.buttonId=Bk()}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||(!fg.isCollapsed(t)||!!Py.getSelectedElems(e).some(function(t){var n=Py.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=ev(lC(JE("videoModule.videoSrc"),r,JE("videoModule.videoSrcPlaceHolder")),2),s=a[0],u=a[1],l=ev(lC(JE("videoModule.videoPoster"),o,JE("videoModule.videoPosterPlaceHolder")),2),c=l[0],d=l[1],f=im(u),p=im(d),h=ev(dC(i,JE("videoModule.ok")),1)[0];if(null==this.$content){var g=im("<div></div>");g.on("click","#".concat(i),function(n){return Zg(t,void 0,void 0,function(){var t,i;return Jg(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,Nk(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 kk(e){return e.getMenuConfig("uploadVideo")}var Fk=new WeakMap;function Ik(e,t){return Zg(this,void 0,void 0,function(){var n,r;return Jg(this,function(o){switch(o.label){case 0:return n=function(e){var t=Fk.get(e);if(null!=t)return t;var n=kk(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,s=n.onError;return t=qA(Yg(Yg({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,function(t,n){return Nk(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;Nk(e,d,void 0===f?"":f),r(t,n)}else i(t,n)},onError:function(e,t,n){s(e,t,n)}})),Fk.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 Pk=function(){function e(){this.title=JE("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 Nk(e,t,n)});else{var a="";o.length>0&&(a='accept="'.concat(o.join(", "),'"'));var s=im("body"),u=im('<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){Zg(this,void 0,void 0,function(){var n,r,o,i,a,s,u,l,c,d,f,p;return Jg(this,function(h){switch(h.label){case 0:if(null==t)return[2];n=Array.prototype.slice.call(t),r=[],o=kk(e).customUpload,h.label=1;case 1:h.trys.push([1,8,9,14]),i=!0,a=nv(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 Nk(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,Ik(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||(!fg.isCollapsed(t)||!!Py.getSelectedElems(e).some(function(t){var n=Py.getNodeType(t);return"pre"===n||("list-item"===n||!!e.isVoid(t))}))},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadVideo")},e}();function _k(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 Lk={selector:'div[data-w-e-type="video"]',parseElemHtml:function(e,t,n){var r=im(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=wk(u=l.attr("style")||""),_k(o=l[0].outerHTML,i,a,s,u,wk(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",_k(o,i=c.attr("poster")||"",a,s,u=wk(u=c.attr("style")||""),wk(r.attr("style")||"")["text-align"]||"center")}};var Rk={selector:"iframe,video,p",preParseHtml:function(e){var t=im(e),n=t;if("p"===bk(t)){var r=t.children();if(1===r.length){var o=r[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(n=im(o))}}var a=bk(n);if("iframe"!==a&&"video"!==a)return n[0];if("video"===n.parent().attr("data-w-e-type"))return n[0];var s=im('<div data-w-e-type="video" data-w-e-is-void style="text-align: center;"></div>');return s.append(n),s[0]}};var Mk={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=Py.isNodeSelected(n,e);if(0===a.trim().indexOf("<iframe ")){r=BD("div",{className:"w-e-textarea-video-container","data-selected":b?"true":"",style:{textAlign:y},innerHTML:Ek(a,f,h,v)})}else{var E=BD("video",{key:c,poster:u,controls:!0,style:v},BD("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=BD("div",{className:"w-e-textarea-video-container","data-selected":b?"true":"",style:{textAlign:y}},E)}var C=lD("div",{props:{contentEditable:!1},on:{mousedown:function(e){return e.preventDefault()}}},r);return C}},jk={renderElems:[Mk],elemsToHtml:[Ck],preParseHtml:[Rk],parseElemsHtml:[Lk],menus:[{key:"insertVideo",factory:function(){return new Tk},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:"uploadVideo",factory:function(){return new Pk},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 Ak}},{key:"editVideoSrc",factory:function(){return new Ok}}],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=ev(e,2),o=t[0],i=t[1];"video"===Py.getNodeType(o)&&(Py.isLastNode(r,o)&&jg.insertNodes(r,Py.genEmptyParagraph(),{at:[i[0]+1]}));return n([o,i])},r}},Hk=function(){function e(){throw new Error("不能实例化\nCan not construct a instance")}return e.setEditorConfig=function(e){void 0===e&&(e={}),this.editorConfig=Yg(Yg({},this.editorConfig),e)},e.setSimpleEditorConfig=function(e){void 0===e&&(e={}),this.simpleEditorConfig=Yg(Yg({},this.simpleEditorConfig),e)},e.setToolbarConfig=function(e){void 0===e&&(e={}),this.toolbarConfig=Yg(Yg({},this.toolbarConfig),e)},e.setSimpleToolbarConfig=function(e){void 0===e&&(e={}),this.simpleToolbarConfig=Yg(Yg({},this.simpleToolbarConfig),e)},e.registerPlugin=function(e){this.plugins.push(e)},e.registerMenu=function(e,t){bv(e,t)},e.registerRenderElem=function(e){var t,n,r;n=(t=e).type,r=t.renderElem,ID[n||""]=r},e.registerRenderStyle=function(e){!function(e){TD.push(e)}(e)},e.registerElemToHtml=function(e){!function(e){var t=e.type,n=e.elemToHtml;Ey[t||""]=n}(e)},e.registerStyleToHtml=function(e){!function(e){my.push(e)}(e)},e.registerPreParseHtml=function(e){var t;t=e,ay.push(t)},e.registerParseElemHtml=function(e){!function(e){var t=e.selector,n=e.parseElemHtml;uy[t]=n}(e)},e.registerParseStyleHtml=function(e){!function(e){sy.push(e)}(e)},e.registerModule=function(e){zk(e)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e}();function zk(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 Hk.registerMenu(e)}),n&&n.forEach(function(e){return Hk.registerRenderElem(e)}),r&&Hk.registerRenderStyle(r),o&&o.forEach(function(e){return Hk.registerElemToHtml(e)}),i&&Hk.registerStyleToHtml(i),a&&a.forEach(function(e){return Hk.registerPreParseHtml(e)}),s&&s.forEach(function(e){return Hk.registerParseElemHtml(e)}),u&&Hk.registerParseStyleHtml(u),l&&Hk.registerPlugin(l)}vB.forEach(function(e){return zk(e)}),zk(ZB),zk(dk),zk(jk),zk(yk),zk(PB);var $k='<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 Uk={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 Vk,Wk={hoverbarKeys:(Vk=["formatPainter","headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"],null!=yv.textToFormula&&Vk.push("|","textToFormula"),Yg(Yg({},Uk),{text:{menuKeys:Vk}}))};Hk.setEditorConfig(Yg(Yg({},Wk),{decorate:TB}));var Gk={hoverbarKeys:Uk};Hk.setSimpleEditorConfig(Yg(Yg({},Gk),{decorate:TB}));var qk={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:JE("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:JE("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:JE("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:JE("editor.image"),iconSvg:$k,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:JE("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"]};Hk.setToolbarConfig(qk);var Kk={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:JE("editor.image"),iconSvg:$k,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};function Yk(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)?Hk.simpleEditorConfig:Hk.editorConfig,c=Yg(Yg({},l.hoverbarKeys||{}),s.hoverbarKeys||{});return YD({selector:n,config:Yg(Yg(Yg({},l),s),{hoverbarKeys:c}),content:o,html:i,plugins:Hk.plugins})}function Xk(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?Hk.simpleToolbarConfig:Hk.toolbarConfig;return ZD(n,{selector:t,config:Yg(Yg({},s),o)})}Hk.setSimpleToolbarConfig(Kk);var Zk={};export{Hk as Boot,Py as DomEditor,Kh as SlateEditor,$h as SlateElement,Yh as SlateLocation,eg as SlateNode,og as SlatePath,ug as SlatePoint,fg as SlateRange,Cg as SlateText,jg as SlateTransforms,XD as Toolbar,Yk as createEditor,Xk as createToolbar,qA as createUploader,Zk as default,dC as genModalButtonElems,lC as genModalInputElems,cC as genModalTextareaElems,KE as i18nAddResources,YE as i18nChangeLanguage,XE as i18nGetResources,JE as t};
33
27
  //# sourceMappingURL=index.mjs.map