lego-dom 0.0.8 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (175) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/README.md +49 -432
  3. package/cdn.html +124 -0
  4. package/docs/.vitepress/config.js +43 -5
  5. package/docs/api/directives.md +3 -3
  6. package/docs/api/globals.md +1 -1
  7. package/docs/api/index.md +3 -3
  8. package/docs/api/vite-plugin.md +1 -1
  9. package/docs/contributing/01-welcome.md +36 -0
  10. package/docs/contributing/02-registry.md +99 -0
  11. package/docs/contributing/03-batcher.md +110 -0
  12. package/docs/contributing/04-reactivity.md +87 -0
  13. package/docs/contributing/05-caching.md +59 -0
  14. package/docs/contributing/06-init.md +125 -0
  15. package/docs/contributing/07-observer.md +69 -0
  16. package/docs/contributing/08-snap.md +126 -0
  17. package/docs/contributing/09-diffing.md +69 -0
  18. package/docs/contributing/10-studs.md +76 -0
  19. package/docs/contributing/11-scanner.md +104 -0
  20. package/docs/contributing/12-render.md +116 -0
  21. package/docs/contributing/13-directives.md +225 -0
  22. package/docs/contributing/14-events.md +57 -0
  23. package/docs/contributing/15-router.md +9 -0
  24. package/docs/contributing/16-state.md +48 -0
  25. package/docs/contributing/17-legodom.md +55 -0
  26. package/docs/contributing/index.md +5 -0
  27. package/docs/examples/form.md +2 -2
  28. package/docs/examples/index.md +4 -4
  29. package/docs/examples/routing.md +8 -8
  30. package/docs/examples/sfc-showcase.md +4 -4
  31. package/docs/examples/todo-app.md +3 -3
  32. package/docs/guide/cdn-usage.md +16 -8
  33. package/docs/guide/components.md +34 -16
  34. package/docs/guide/contributing.md +2 -2
  35. package/docs/guide/directives.md +23 -23
  36. package/docs/guide/getting-started.md +41 -16
  37. package/docs/guide/index.md +12 -12
  38. package/docs/guide/lifecycle.md +1 -1
  39. package/docs/guide/quick-start.md +8 -5
  40. package/docs/guide/reactivity.md +30 -9
  41. package/docs/guide/routing.md +189 -289
  42. package/docs/guide/sfc.md +40 -40
  43. package/docs/guide/templating.md +4 -4
  44. package/docs/index.md +48 -14
  45. package/docs/public/logo.svg +17 -38
  46. package/docs/router/basic-routing.md +103 -0
  47. package/docs/router/cold-entry.md +91 -0
  48. package/docs/router/history.md +69 -0
  49. package/docs/router/index.md +73 -0
  50. package/docs/router/resolver.md +74 -0
  51. package/docs/router/surgical-swaps.md +134 -0
  52. package/examples/vite-app/README.md +2 -2
  53. package/examples/vite-app/index.html +9 -13
  54. package/examples/vite-app/package.json +4 -2
  55. package/examples/vite-app/src/app.css +3 -0
  56. package/examples/vite-app/src/app.js +29 -0
  57. package/examples/vite-app/src/components/app-navbar.lego +34 -0
  58. package/examples/vite-app/src/components/customers/customer-details.lego +24 -0
  59. package/examples/vite-app/src/components/customers/customer-orders.lego +21 -0
  60. package/examples/vite-app/src/components/customers/order-list.lego +55 -0
  61. package/examples/vite-app/src/components/greeting-card.lego +26 -26
  62. package/examples/vite-app/src/components/sample-component.lego +58 -58
  63. package/examples/vite-app/src/components/shells/customers-shell.lego +21 -0
  64. package/examples/vite-app/src/components/todo-list.lego +239 -0
  65. package/examples/vite-app/src/components/widgets/user-card.lego +27 -0
  66. package/examples/vite-app/vite.config.js +7 -2
  67. package/lego.js +2 -0
  68. package/main.js +280 -83
  69. package/package.json +8 -3
  70. package/parse-lego.js +17 -8
  71. package/parse-lego.test.js +1 -1
  72. package/{main.test.js → tests/main.test.js} +34 -17
  73. package/tests/parse-lego.test.js +65 -0
  74. package/vite-plugin.js +62 -24
  75. package/docs/.vitepress/dist/404.html +0 -22
  76. package/docs/.vitepress/dist/api/define.html +0 -35
  77. package/docs/.vitepress/dist/api/directives.html +0 -32
  78. package/docs/.vitepress/dist/api/globals.html +0 -27
  79. package/docs/.vitepress/dist/api/index.html +0 -25
  80. package/docs/.vitepress/dist/api/lifecycle.html +0 -38
  81. package/docs/.vitepress/dist/api/route.html +0 -34
  82. package/docs/.vitepress/dist/api/vite-plugin.html +0 -37
  83. package/docs/.vitepress/dist/assets/api_define.md.UA-ygUnQ.js +0 -11
  84. package/docs/.vitepress/dist/assets/api_define.md.UA-ygUnQ.lean.js +0 -1
  85. package/docs/.vitepress/dist/assets/api_directives.md.BV-D251p.js +0 -8
  86. package/docs/.vitepress/dist/assets/api_directives.md.BV-D251p.lean.js +0 -1
  87. package/docs/.vitepress/dist/assets/api_globals.md.DOjt7AV0.js +0 -3
  88. package/docs/.vitepress/dist/assets/api_globals.md.DOjt7AV0.lean.js +0 -1
  89. package/docs/.vitepress/dist/assets/api_index.md.OS6h01ct.js +0 -1
  90. package/docs/.vitepress/dist/assets/api_index.md.OS6h01ct.lean.js +0 -1
  91. package/docs/.vitepress/dist/assets/api_lifecycle.md.Ccm5xw6-.js +0 -14
  92. package/docs/.vitepress/dist/assets/api_lifecycle.md.Ccm5xw6-.lean.js +0 -1
  93. package/docs/.vitepress/dist/assets/api_route.md.CAHf_KNp.js +0 -10
  94. package/docs/.vitepress/dist/assets/api_route.md.CAHf_KNp.lean.js +0 -1
  95. package/docs/.vitepress/dist/assets/api_vite-plugin.md.DNn9VhL5.js +0 -13
  96. package/docs/.vitepress/dist/assets/api_vite-plugin.md.DNn9VhL5.lean.js +0 -1
  97. package/docs/.vitepress/dist/assets/app.BG5s3B0P.js +0 -1
  98. package/docs/.vitepress/dist/assets/chunks/@localSearchIndexroot.DQmuWC2Z.js +0 -1
  99. package/docs/.vitepress/dist/assets/chunks/VPLocalSearchBox.BO-PSxt1.js +0 -9
  100. package/docs/.vitepress/dist/assets/chunks/framework.B7OFBR9X.js +0 -19
  101. package/docs/.vitepress/dist/assets/chunks/theme.DA-iSa9B.js +0 -2
  102. package/docs/.vitepress/dist/assets/examples_form.md.B3stGKbu.js +0 -34
  103. package/docs/.vitepress/dist/assets/examples_form.md.B3stGKbu.lean.js +0 -1
  104. package/docs/.vitepress/dist/assets/examples_index.md.BDEG_D4J.js +0 -30
  105. package/docs/.vitepress/dist/assets/examples_index.md.BDEG_D4J.lean.js +0 -1
  106. package/docs/.vitepress/dist/assets/examples_routing.md.bqZ9DjDK.js +0 -338
  107. package/docs/.vitepress/dist/assets/examples_routing.md.bqZ9DjDK.lean.js +0 -1
  108. package/docs/.vitepress/dist/assets/examples_sfc-showcase.md.DLXaUiop.js +0 -13
  109. package/docs/.vitepress/dist/assets/examples_sfc-showcase.md.DLXaUiop.lean.js +0 -1
  110. package/docs/.vitepress/dist/assets/examples_todo-app.md.D5RhZoo5.js +0 -297
  111. package/docs/.vitepress/dist/assets/examples_todo-app.md.D5RhZoo5.lean.js +0 -1
  112. package/docs/.vitepress/dist/assets/guide_cdn-usage.md.CAjf03Lr.js +0 -182
  113. package/docs/.vitepress/dist/assets/guide_cdn-usage.md.CAjf03Lr.lean.js +0 -1
  114. package/docs/.vitepress/dist/assets/guide_components.md.BIFWF1Hc.js +0 -174
  115. package/docs/.vitepress/dist/assets/guide_components.md.BIFWF1Hc.lean.js +0 -1
  116. package/docs/.vitepress/dist/assets/guide_contributing.md.BgbUN-Mr.js +0 -1
  117. package/docs/.vitepress/dist/assets/guide_contributing.md.BgbUN-Mr.lean.js +0 -1
  118. package/docs/.vitepress/dist/assets/guide_directives.md.Bi3ynu1d.js +0 -140
  119. package/docs/.vitepress/dist/assets/guide_directives.md.Bi3ynu1d.lean.js +0 -1
  120. package/docs/.vitepress/dist/assets/guide_getting-started.md.2Nr1lp2z.js +0 -107
  121. package/docs/.vitepress/dist/assets/guide_getting-started.md.2Nr1lp2z.lean.js +0 -1
  122. package/docs/.vitepress/dist/assets/guide_index.md.GvZq_Yf2.js +0 -2
  123. package/docs/.vitepress/dist/assets/guide_index.md.GvZq_Yf2.lean.js +0 -1
  124. package/docs/.vitepress/dist/assets/guide_lifecycle.md.B28j1OzS.js +0 -304
  125. package/docs/.vitepress/dist/assets/guide_lifecycle.md.B28j1OzS.lean.js +0 -1
  126. package/docs/.vitepress/dist/assets/guide_quick-start.md.CNk3VGTF.js +0 -33
  127. package/docs/.vitepress/dist/assets/guide_quick-start.md.CNk3VGTF.lean.js +0 -1
  128. package/docs/.vitepress/dist/assets/guide_reactivity.md.CVsaMaPv.js +0 -135
  129. package/docs/.vitepress/dist/assets/guide_reactivity.md.CVsaMaPv.lean.js +0 -1
  130. package/docs/.vitepress/dist/assets/guide_routing.md.DSpDP25o.js +0 -193
  131. package/docs/.vitepress/dist/assets/guide_routing.md.DSpDP25o.lean.js +0 -1
  132. package/docs/.vitepress/dist/assets/guide_sfc.md.CVUP66tS.js +0 -187
  133. package/docs/.vitepress/dist/assets/guide_sfc.md.CVUP66tS.lean.js +0 -1
  134. package/docs/.vitepress/dist/assets/guide_templating.md.BgCGe4aa.js +0 -119
  135. package/docs/.vitepress/dist/assets/guide_templating.md.BgCGe4aa.lean.js +0 -1
  136. package/docs/.vitepress/dist/assets/index.md.xV1taCED.js +0 -23
  137. package/docs/.vitepress/dist/assets/index.md.xV1taCED.lean.js +0 -1
  138. package/docs/.vitepress/dist/assets/inter-italic-cyrillic-ext.r48I6akx.woff2 +0 -0
  139. package/docs/.vitepress/dist/assets/inter-italic-cyrillic.By2_1cv3.woff2 +0 -0
  140. package/docs/.vitepress/dist/assets/inter-italic-greek-ext.1u6EdAuj.woff2 +0 -0
  141. package/docs/.vitepress/dist/assets/inter-italic-greek.DJ8dCoTZ.woff2 +0 -0
  142. package/docs/.vitepress/dist/assets/inter-italic-latin-ext.CN1xVJS-.woff2 +0 -0
  143. package/docs/.vitepress/dist/assets/inter-italic-latin.C2AdPX0b.woff2 +0 -0
  144. package/docs/.vitepress/dist/assets/inter-italic-vietnamese.BSbpV94h.woff2 +0 -0
  145. package/docs/.vitepress/dist/assets/inter-roman-cyrillic-ext.BBPuwvHQ.woff2 +0 -0
  146. package/docs/.vitepress/dist/assets/inter-roman-cyrillic.C5lxZ8CY.woff2 +0 -0
  147. package/docs/.vitepress/dist/assets/inter-roman-greek-ext.CqjqNYQ-.woff2 +0 -0
  148. package/docs/.vitepress/dist/assets/inter-roman-greek.BBVDIX6e.woff2 +0 -0
  149. package/docs/.vitepress/dist/assets/inter-roman-latin-ext.4ZJIpNVo.woff2 +0 -0
  150. package/docs/.vitepress/dist/assets/inter-roman-latin.Di8DUHzh.woff2 +0 -0
  151. package/docs/.vitepress/dist/assets/inter-roman-vietnamese.BjW4sHH5.woff2 +0 -0
  152. package/docs/.vitepress/dist/assets/style.eycE2Jhw.css +0 -1
  153. package/docs/.vitepress/dist/examples/form.html +0 -58
  154. package/docs/.vitepress/dist/examples/index.html +0 -368
  155. package/docs/.vitepress/dist/examples/routing.html +0 -362
  156. package/docs/.vitepress/dist/examples/sfc-showcase.html +0 -37
  157. package/docs/.vitepress/dist/examples/todo-app.html +0 -321
  158. package/docs/.vitepress/dist/guide/cdn-usage.html +0 -206
  159. package/docs/.vitepress/dist/guide/components.html +0 -198
  160. package/docs/.vitepress/dist/guide/contributing.html +0 -25
  161. package/docs/.vitepress/dist/guide/directives.html +0 -164
  162. package/docs/.vitepress/dist/guide/getting-started.html +0 -131
  163. package/docs/.vitepress/dist/guide/index.html +0 -26
  164. package/docs/.vitepress/dist/guide/lifecycle.html +0 -328
  165. package/docs/.vitepress/dist/guide/quick-start.html +0 -57
  166. package/docs/.vitepress/dist/guide/reactivity.html +0 -159
  167. package/docs/.vitepress/dist/guide/routing.html +0 -217
  168. package/docs/.vitepress/dist/guide/sfc.html +0 -211
  169. package/docs/.vitepress/dist/guide/templating.html +0 -143
  170. package/docs/.vitepress/dist/hashmap.json +0 -1
  171. package/docs/.vitepress/dist/index.html +0 -47
  172. package/docs/.vitepress/dist/logo.svg +0 -38
  173. package/docs/.vitepress/dist/vp-icons.css +0 -1
  174. package/examples/vite-app/src/main.js +0 -11
  175. package/examples.js +0 -99
@@ -1,9 +0,0 @@
1
- var Ot=Object.defineProperty;var Ct=(a,e,t)=>e in a?Ot(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var Me=(a,e,t)=>Ct(a,typeof e!="symbol"?e+"":e,t);import{V as At,D as ce,h as be,ah as nt,ai as Mt,aj as Lt,ak as Dt,q as Be,al as Pt,d as zt,am as rt,p as he,an as Vt,ao as jt,s as $t,ap as Bt,v as Le,P as pe,O as _e,aq as Wt,ar as Kt,W as Jt,R as qt,$ as Ut,b as Ht,o as q,j as _,a0 as Gt,as as Qt,k as P,at as Yt,au as Zt,c as Q,e as xe,n as st,B as it,F as at,a as ve,t as me,av as Xt,aw as ot,ax as en,a5 as tn,aa as nn,ay as rn,_ as sn}from"./framework.B7OFBR9X.js";import{u as an,c as on}from"./theme.DA-iSa9B.js";const ln={root:()=>At(()=>import("./@localSearchIndexroot.DQmuWC2Z.js"),[])};/*!
2
- * tabbable 6.4.0
3
- * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
4
- */var gt=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],ke=gt.join(","),bt=typeof Element>"u",ae=bt?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Ne=!bt&&Element.prototype.getRootNode?function(a){var e;return a==null||(e=a.getRootNode)===null||e===void 0?void 0:e.call(a)}:function(a){return a==null?void 0:a.ownerDocument},Fe=function(e,t){var n;t===void 0&&(t=!0);var r=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"inert"),i=r===""||r==="true",s=i||t&&e&&(typeof e.closest=="function"?e.closest("[inert]"):Fe(e.parentNode));return s},cn=function(e){var t,n=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return n===""||n==="true"},yt=function(e,t,n){if(Fe(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(ke));return t&&ae.call(e,ke)&&r.unshift(e),r=r.filter(n),r},Re=function(e,t,n){for(var r=[],i=Array.from(e);i.length;){var s=i.shift();if(!Fe(s,!1))if(s.tagName==="SLOT"){var o=s.assignedElements(),l=o.length?o:s.children,c=Re(l,!0,n);n.flatten?r.push.apply(r,c):r.push({scopeParent:s,candidates:c})}else{var h=ae.call(s,ke);h&&n.filter(s)&&(t||!e.includes(s))&&r.push(s);var m=s.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(s),v=!Fe(m,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(s));if(m&&v){var b=Re(m===!0?s.children:m.children,!0,n);n.flatten?r.push.apply(r,b):r.push({scopeParent:s,candidates:b})}else i.unshift.apply(i,s.children)}}return r},wt=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},ie=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||cn(e))&&!wt(e)?0:e.tabIndex},un=function(e,t){var n=ie(e);return n<0&&t&&!wt(e)?0:n},dn=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},St=function(e){return e.tagName==="INPUT"},fn=function(e){return St(e)&&e.type==="hidden"},hn=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(n){return n.tagName==="SUMMARY"});return t},pn=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},vn=function(e){if(!e.name)return!0;var t=e.form||Ne(e),n=function(o){return t.querySelectorAll('input[type="radio"][name="'+o+'"]')},r;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")r=n(window.CSS.escape(e.name));else try{r=n(e.name)}catch(s){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",s.message),!1}var i=pn(r,e.form);return!i||i===e},mn=function(e){return St(e)&&e.type==="radio"},gn=function(e){return mn(e)&&!vn(e)},bn=function(e){var t,n=e&&Ne(e),r=(t=n)===null||t===void 0?void 0:t.host,i=!1;if(n&&n!==e){var s,o,l;for(i=!!((s=r)!==null&&s!==void 0&&(o=s.ownerDocument)!==null&&o!==void 0&&o.contains(r)||e!=null&&(l=e.ownerDocument)!==null&&l!==void 0&&l.contains(e));!i&&r;){var c,h,m;n=Ne(r),r=(c=n)===null||c===void 0?void 0:c.host,i=!!((h=r)!==null&&h!==void 0&&(m=h.ownerDocument)!==null&&m!==void 0&&m.contains(r))}}return i},lt=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return n===0&&r===0},yn=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if(n==="full-native"&&"checkVisibility"in e){var i=e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!i}if(getComputedStyle(e).visibility==="hidden")return!0;var s=ae.call(e,"details>summary:first-of-type"),o=s?e.parentElement:e;if(ae.call(o,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="full-native"||n==="legacy-full"){if(typeof r=="function"){for(var l=e;e;){var c=e.parentElement,h=Ne(e);if(c&&!c.shadowRoot&&r(c)===!0)return lt(e);e.assignedSlot?e=e.assignedSlot:!c&&h!==e.ownerDocument?e=h.host:e=c}e=l}if(bn(e))return!e.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return lt(e);return!1},wn=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if(r.tagName==="LEGEND")return ae.call(t,"fieldset[disabled] *")?!0:!r.contains(e)}return!0}t=t.parentElement}return!1},Oe=function(e,t){return!(t.disabled||fn(t)||yn(t,e)||hn(t)||wn(t))},We=function(e,t){return!(gn(t)||ie(t)<0||!Oe(e,t))},Sn=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},_t=function(e){var t=[],n=[];return e.forEach(function(r,i){var s=!!r.scopeParent,o=s?r.scopeParent:r,l=un(o,s),c=s?_t(r.candidates):o;l===0?s?t.push.apply(t,c):t.push(o):n.push({documentOrder:i,tabIndex:l,item:r,isScope:s,content:c})}),n.sort(dn).reduce(function(r,i){return i.isScope?r.push.apply(r,i.content):r.push(i.content),r},[]).concat(t)},_n=function(e,t){t=t||{};var n;return t.getShadowRoot?n=Re([e],t.includeContainer,{filter:We.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Sn}):n=yt(e,t.includeContainer,We.bind(null,t)),_t(n)},xn=function(e,t){t=t||{};var n;return t.getShadowRoot?n=Re([e],t.includeContainer,{filter:Oe.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):n=yt(e,t.includeContainer,Oe.bind(null,t)),n},oe=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return ae.call(e,ke)===!1?!1:We(t,e)},Tn=gt.concat("iframe:not([inert]):not([inert] *)").join(","),De=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return ae.call(e,Tn)===!1?!1:Oe(t,e)};/*!
5
- * focus-trap 7.7.1
6
- * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
7
- */function Ke(a,e){(e==null||e>a.length)&&(e=a.length);for(var t=0,n=Array(e);t<e;t++)n[t]=a[t];return n}function En(a){if(Array.isArray(a))return Ke(a)}function ct(a,e){var t=typeof Symbol<"u"&&a[Symbol.iterator]||a["@@iterator"];if(!t){if(Array.isArray(a)||(t=xt(a))||e){t&&(a=t);var n=0,r=function(){};return{s:r,n:function(){return n>=a.length?{done:!0}:{done:!1,value:a[n++]}},e:function(l){throw l},f:r}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
8
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,s=!0,o=!1;return{s:function(){t=t.call(a)},n:function(){var l=t.next();return s=l.done,l},e:function(l){o=!0,i=l},f:function(){try{s||t.return==null||t.return()}finally{if(o)throw i}}}}function In(a,e,t){return(e=On(e))in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function kn(a){if(typeof Symbol<"u"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}function Nn(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
9
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ut(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(a,r).enumerable})),t.push.apply(t,n)}return t}function dt(a){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?ut(Object(t),!0).forEach(function(n){In(a,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):ut(Object(t)).forEach(function(n){Object.defineProperty(a,n,Object.getOwnPropertyDescriptor(t,n))})}return a}function Fn(a){return En(a)||kn(a)||xt(a)||Nn()}function Rn(a,e){if(typeof a!="object"||!a)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var n=t.call(a,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(a)}function On(a){var e=Rn(a,"string");return typeof e=="symbol"?e:e+""}function xt(a,e){if(a){if(typeof a=="string")return Ke(a,e);var t={}.toString.call(a).slice(8,-1);return t==="Object"&&a.constructor&&(t=a.constructor.name),t==="Map"||t==="Set"?Array.from(a):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Ke(a,e):void 0}}var U={getActiveTrap:function(e){return(e==null?void 0:e.length)>0?e[e.length-1]:null},activateTrap:function(e,t){var n=U.getActiveTrap(e);t!==n&&U.pauseTrap(e);var r=e.indexOf(t);r===-1||e.splice(r,1),e.push(t)},deactivateTrap:function(e,t){var n=e.indexOf(t);n!==-1&&e.splice(n,1),U.unpauseTrap(e)},pauseTrap:function(e){var t=U.getActiveTrap(e);t==null||t._setPausedState(!0)},unpauseTrap:function(e){var t=U.getActiveTrap(e);t&&!t._isManuallyPaused()&&t._setPausedState(!1)}},Cn=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},An=function(e){return(e==null?void 0:e.key)==="Escape"||(e==null?void 0:e.key)==="Esc"||(e==null?void 0:e.keyCode)===27},ye=function(e){return(e==null?void 0:e.key)==="Tab"||(e==null?void 0:e.keyCode)===9},Mn=function(e){return ye(e)&&!e.shiftKey},Ln=function(e){return ye(e)&&e.shiftKey},ft=function(e){return setTimeout(e,0)},ge=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];return typeof e=="function"?e.apply(void 0,n):e},Te=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},Dn=[],Pn=function(e,t){var n=(t==null?void 0:t.document)||document,r=(t==null?void 0:t.trapStack)||Dn,i=dt({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isolateSubtrees:!1,isKeyForward:Mn,isKeyBackward:Ln},t),s={containers:[],containerGroups:[],tabbableGroups:[],adjacentElements:new Set,alreadyInert:new Set,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},o,l=function(u,f,g){return u&&u[f]!==void 0?u[f]:i[g||f]},c=function(u,f){var g=typeof(f==null?void 0:f.composedPath)=="function"?f.composedPath():void 0;return s.containerGroups.findIndex(function(x){var T=x.container,I=x.tabbableNodes;return T.contains(u)||(g==null?void 0:g.includes(T))||I.find(function(S){return S===u})})},h=function(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},g=f.hasFallback,x=g===void 0?!1:g,T=f.params,I=T===void 0?[]:T,S=i[u];if(typeof S=="function"&&(S=S.apply(void 0,Fn(I))),S===!0&&(S=void 0),!S){if(S===void 0||S===!1)return S;throw new Error("`".concat(u,"` was specified but was not a node, or did not return a node"))}var p=S;if(typeof S=="string"){try{p=n.querySelector(S)}catch(d){throw new Error("`".concat(u,'` appears to be an invalid selector; error="').concat(d.message,'"'))}if(!p&&!x)throw new Error("`".concat(u,"` as selector refers to no known node"))}return p},m=function(){var u=h("initialFocus",{hasFallback:!0});if(u===!1)return!1;if(u===void 0||u&&!De(u,i.tabbableOptions))if(c(n.activeElement)>=0)u=n.activeElement;else{var f=s.tabbableGroups[0],g=f&&f.firstTabbableNode;u=g||h("fallbackFocus")}else u===null&&(u=h("fallbackFocus"));if(!u)throw new Error("Your focus-trap needs to have at least one focusable element");return u},v=function(){if(s.containerGroups=s.containers.map(function(u){var f=_n(u,i.tabbableOptions),g=xn(u,i.tabbableOptions),x=f.length>0?f[0]:void 0,T=f.length>0?f[f.length-1]:void 0,I=g.find(function(d){return oe(d)}),S=g.slice().reverse().find(function(d){return oe(d)}),p=!!f.find(function(d){return ie(d)>0});return{container:u,tabbableNodes:f,focusableNodes:g,posTabIndexesFound:p,firstTabbableNode:x,lastTabbableNode:T,firstDomTabbableNode:I,lastDomTabbableNode:S,nextTabbableNode:function(E){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,C=f.indexOf(E);return C<0?R?g.slice(g.indexOf(E)+1).find(function(A){return oe(A)}):g.slice(0,g.indexOf(E)).reverse().find(function(A){return oe(A)}):f[C+(R?1:-1)]}}}),s.tabbableGroups=s.containerGroups.filter(function(u){return u.tabbableNodes.length>0}),s.tabbableGroups.length<=0&&!h("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(s.containerGroups.find(function(u){return u.posTabIndexesFound})&&s.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},b=function(u){var f=u.activeElement;if(f)return f.shadowRoot&&f.shadowRoot.activeElement!==null?b(f.shadowRoot):f},w=function(u){if(u!==!1&&u!==b(document)){if(!u||!u.focus){w(m());return}u.focus({preventScroll:!!i.preventScroll}),s.mostRecentlyFocusedNode=u,Cn(u)&&u.select()}},k=function(u){var f=h("setReturnFocus",{params:[u]});return f||(f===!1?!1:u)},y=function(u){var f=u.target,g=u.event,x=u.isBackward,T=x===void 0?!1:x;f=f||Te(g),v();var I=null;if(s.tabbableGroups.length>0){var S=c(f,g),p=S>=0?s.containerGroups[S]:void 0;if(S<0)T?I=s.tabbableGroups[s.tabbableGroups.length-1].lastTabbableNode:I=s.tabbableGroups[0].firstTabbableNode;else if(T){var d=s.tabbableGroups.findIndex(function(F){var V=F.firstTabbableNode;return f===V});if(d<0&&(p.container===f||De(f,i.tabbableOptions)&&!oe(f,i.tabbableOptions)&&!p.nextTabbableNode(f,!1))&&(d=S),d>=0){var E=d===0?s.tabbableGroups.length-1:d-1,R=s.tabbableGroups[E];I=ie(f)>=0?R.lastTabbableNode:R.lastDomTabbableNode}else ye(g)||(I=p.nextTabbableNode(f,!1))}else{var C=s.tabbableGroups.findIndex(function(F){var V=F.lastTabbableNode;return f===V});if(C<0&&(p.container===f||De(f,i.tabbableOptions)&&!oe(f,i.tabbableOptions)&&!p.nextTabbableNode(f))&&(C=S),C>=0){var A=C===s.tabbableGroups.length-1?0:C+1,D=s.tabbableGroups[A];I=ie(f)>=0?D.firstTabbableNode:D.firstDomTabbableNode}else ye(g)||(I=p.nextTabbableNode(f))}}else I=h("fallbackFocus");return I},O=function(u){var f=Te(u);if(!(c(f,u)>=0)){if(ge(i.clickOutsideDeactivates,u)){o.deactivate({returnFocus:i.returnFocusOnDeactivate});return}ge(i.allowOutsideClick,u)||u.preventDefault()}},L=function(u){var f=Te(u),g=c(f,u)>=0;if(g||f instanceof Document)g&&(s.mostRecentlyFocusedNode=f);else{u.stopImmediatePropagation();var x,T=!0;if(s.mostRecentlyFocusedNode)if(ie(s.mostRecentlyFocusedNode)>0){var I=c(s.mostRecentlyFocusedNode),S=s.containerGroups[I].tabbableNodes;if(S.length>0){var p=S.findIndex(function(d){return d===s.mostRecentlyFocusedNode});p>=0&&(i.isKeyForward(s.recentNavEvent)?p+1<S.length&&(x=S[p+1],T=!1):p-1>=0&&(x=S[p-1],T=!1))}}else s.containerGroups.some(function(d){return d.tabbableNodes.some(function(E){return ie(E)>0})})||(T=!1);else T=!1;T&&(x=y({target:s.mostRecentlyFocusedNode,isBackward:i.isKeyBackward(s.recentNavEvent)})),w(x||s.mostRecentlyFocusedNode||m())}s.recentNavEvent=void 0},K=function(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;s.recentNavEvent=u;var g=y({event:u,isBackward:f});g&&(ye(u)&&u.preventDefault(),w(g))},H=function(u){(i.isKeyForward(u)||i.isKeyBackward(u))&&K(u,i.isKeyBackward(u))},W=function(u){An(u)&&ge(i.escapeDeactivates,u)!==!1&&(u.preventDefault(),o.deactivate())},j=function(u){var f=Te(u);c(f,u)>=0||ge(i.clickOutsideDeactivates,u)||ge(i.allowOutsideClick,u)||(u.preventDefault(),u.stopImmediatePropagation())},$=function(){if(s.active)return U.activateTrap(r,o),s.delayInitialFocusTimer=i.delayInitialFocus?ft(function(){w(m())}):w(m()),n.addEventListener("focusin",L,!0),n.addEventListener("mousedown",O,{capture:!0,passive:!1}),n.addEventListener("touchstart",O,{capture:!0,passive:!1}),n.addEventListener("click",j,{capture:!0,passive:!1}),n.addEventListener("keydown",H,{capture:!0,passive:!1}),n.addEventListener("keydown",W),o},Ae=function(u){s.active&&!s.paused&&o._setSubtreeIsolation(!1),s.adjacentElements.clear(),s.alreadyInert.clear();var f=new Set,g=new Set,x=ct(u),T;try{for(x.s();!(T=x.n()).done;){var I=T.value;f.add(I);for(var S=typeof ShadowRoot<"u"&&I.getRootNode()instanceof ShadowRoot,p=I;p;){f.add(p);var d=p.parentElement,E=[];d?E=d.children:!d&&S&&(E=p.getRootNode().children,d=p.getRootNode().host,S=typeof ShadowRoot<"u"&&d.getRootNode()instanceof ShadowRoot);var R=ct(E),C;try{for(R.s();!(C=R.n()).done;){var A=C.value;g.add(A)}}catch(D){R.e(D)}finally{R.f()}p=d}}}catch(D){x.e(D)}finally{x.f()}f.forEach(function(D){g.delete(D)}),s.adjacentElements=g},M=function(){if(s.active)return n.removeEventListener("focusin",L,!0),n.removeEventListener("mousedown",O,!0),n.removeEventListener("touchstart",O,!0),n.removeEventListener("click",j,!0),n.removeEventListener("keydown",H,!0),n.removeEventListener("keydown",W),o},Z=function(u){var f=u.some(function(g){var x=Array.from(g.removedNodes);return x.some(function(T){return T===s.mostRecentlyFocusedNode})});f&&w(m())},X=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(Z):void 0,ee=function(){X&&(X.disconnect(),s.active&&!s.paused&&s.containers.map(function(u){X.observe(u,{subtree:!0,childList:!0})}))};return o={get active(){return s.active},get paused(){return s.paused},activate:function(u){if(s.active)return this;var f=l(u,"onActivate"),g=l(u,"onPostActivate"),x=l(u,"checkCanFocusTrap"),T=U.getActiveTrap(r),I=!1;T&&!T.paused&&(T._setSubtreeIsolation(!1),I=!0);try{x||v(),s.active=!0,s.paused=!1,s.nodeFocusedBeforeActivation=b(n),f==null||f();var S=function(){x&&v(),$(),ee(),i.isolateSubtrees&&o._setSubtreeIsolation(!0),g==null||g()};if(x)return x(s.containers.concat()).then(S,S),this;S()}catch(p){throw T===U.getActiveTrap(r)&&I&&T._setSubtreeIsolation(!0),p}return this},deactivate:function(u){if(!s.active)return this;var f=dt({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},u);clearTimeout(s.delayInitialFocusTimer),s.delayInitialFocusTimer=void 0,s.paused||o._setSubtreeIsolation(!1),s.alreadyInert.clear(),M(),s.active=!1,s.paused=!1,ee(),U.deactivateTrap(r,o);var g=l(f,"onDeactivate"),x=l(f,"onPostDeactivate"),T=l(f,"checkCanReturnFocus"),I=l(f,"returnFocus","returnFocusOnDeactivate");g==null||g();var S=function(){ft(function(){I&&w(k(s.nodeFocusedBeforeActivation)),x==null||x()})};return I&&T?(T(k(s.nodeFocusedBeforeActivation)).then(S,S),this):(S(),this)},pause:function(u){return s.active?(s.manuallyPaused=!0,this._setPausedState(!0,u)):this},unpause:function(u){return s.active?(s.manuallyPaused=!1,r[r.length-1]!==this?this:this._setPausedState(!1,u)):this},updateContainerElements:function(u){var f=[].concat(u).filter(Boolean);return s.containers=f.map(function(g){return typeof g=="string"?n.querySelector(g):g}),i.isolateSubtrees&&Ae(s.containers),s.active&&(v(),i.isolateSubtrees&&!s.paused&&o._setSubtreeIsolation(!0)),ee(),this}},Object.defineProperties(o,{_isManuallyPaused:{value:function(){return s.manuallyPaused}},_setPausedState:{value:function(u,f){if(s.paused===u)return this;if(s.paused=u,u){var g=l(f,"onPause"),x=l(f,"onPostPause");g==null||g(),M(),ee(),o._setSubtreeIsolation(!1),x==null||x()}else{var T=l(f,"onUnpause"),I=l(f,"onPostUnpause");T==null||T(),o._setSubtreeIsolation(!0),v(),$(),ee(),I==null||I()}return this}},_setSubtreeIsolation:{value:function(u){i.isolateSubtrees&&s.adjacentElements.forEach(function(f){if(u){var g=f.inert||f.hasAttribute("inert");g&&s.alreadyInert.add(f),f.inert=!0}else s.alreadyInert.has(f)||(f.inert=!1)})}}}),o.updateContainerElements(e),o};function zn(a,e={}){let t;const{immediate:n,...r}=e,i=ce(!1),s=ce(!1),o=v=>t&&t.activate(v),l=v=>t&&t.deactivate(v),c=()=>{t&&(t.pause(),s.value=!0)},h=()=>{t&&(t.unpause(),s.value=!1)},m=be(()=>{const v=nt(a);return Mt(v).map(b=>{const w=nt(b);return typeof w=="string"?w:Lt(w)}).filter(Dt)});return Be(m,v=>{v.length&&(t=Pn(v,{...r,onActivate(){i.value=!0,e.onActivate&&e.onActivate()},onDeactivate(){i.value=!1,e.onDeactivate&&e.onDeactivate()}}),n&&o())},{flush:"post"}),Pt(()=>l()),{hasFocus:i,isPaused:s,activate:o,deactivate:l,pause:c,unpause:h}}class ue{constructor(e,t=!0,n=[],r=5e3){this.ctx=e,this.iframes=t,this.exclude=n,this.iframesTimeout=r}static matches(e,t){const n=typeof t=="string"?[t]:t,r=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(r){let i=!1;return n.every(s=>r.call(e,s)?(i=!0,!1):!0),i}else return!1}getContexts(){let e,t=[];return typeof this.ctx>"u"||!this.ctx?e=[]:NodeList.prototype.isPrototypeOf(this.ctx)?e=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?e=this.ctx:typeof this.ctx=="string"?e=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):e=[this.ctx],e.forEach(n=>{const r=t.filter(i=>i.contains(n)).length>0;t.indexOf(n)===-1&&!r&&t.push(n)}),t}getIframeContents(e,t,n=()=>{}){let r;try{const i=e.contentWindow;if(r=i.document,!i||!r)throw new Error("iframe inaccessible")}catch{n()}r&&t(r)}isIframeBlank(e){const t="about:blank",n=e.getAttribute("src").trim();return e.contentWindow.location.href===t&&n!==t&&n}observeIframeLoad(e,t,n){let r=!1,i=null;const s=()=>{if(!r){r=!0,clearTimeout(i);try{this.isIframeBlank(e)||(e.removeEventListener("load",s),this.getIframeContents(e,t,n))}catch{n()}}};e.addEventListener("load",s),i=setTimeout(s,this.iframesTimeout)}onIframeReady(e,t,n){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,t,n):this.getIframeContents(e,t,n):this.observeIframeLoad(e,t,n)}catch{n()}}waitForIframes(e,t){let n=0;this.forEachIframe(e,()=>!0,r=>{n++,this.waitForIframes(r.querySelector("html"),()=>{--n||t()})},r=>{r||t()})}forEachIframe(e,t,n,r=()=>{}){let i=e.querySelectorAll("iframe"),s=i.length,o=0;i=Array.prototype.slice.call(i);const l=()=>{--s<=0&&r(o)};s||l(),i.forEach(c=>{ue.matches(c,this.exclude)?l():this.onIframeReady(c,h=>{t(c)&&(o++,n(h)),l()},l)})}createIterator(e,t,n){return document.createNodeIterator(e,t,n,!1)}createInstanceOnIframe(e){return new ue(e.querySelector("html"),this.iframes)}compareNodeIframe(e,t,n){const r=e.compareDocumentPosition(n),i=Node.DOCUMENT_POSITION_PRECEDING;if(r&i)if(t!==null){const s=t.compareDocumentPosition(n),o=Node.DOCUMENT_POSITION_FOLLOWING;if(s&o)return!0}else return!0;return!1}getIteratorNode(e){const t=e.previousNode();let n;return t===null?n=e.nextNode():n=e.nextNode()&&e.nextNode(),{prevNode:t,node:n}}checkIframeFilter(e,t,n,r){let i=!1,s=!1;return r.forEach((o,l)=>{o.val===n&&(i=l,s=o.handled)}),this.compareNodeIframe(e,t,n)?(i===!1&&!s?r.push({val:n,handled:!0}):i!==!1&&!s&&(r[i].handled=!0),!0):(i===!1&&r.push({val:n,handled:!1}),!1)}handleOpenIframes(e,t,n,r){e.forEach(i=>{i.handled||this.getIframeContents(i.val,s=>{this.createInstanceOnIframe(s).forEachNode(t,n,r)})})}iterateThroughNodes(e,t,n,r,i){const s=this.createIterator(t,e,r);let o=[],l=[],c,h,m=()=>({prevNode:h,node:c}=this.getIteratorNode(s),c);for(;m();)this.iframes&&this.forEachIframe(t,v=>this.checkIframeFilter(c,h,v,o),v=>{this.createInstanceOnIframe(v).forEachNode(e,b=>l.push(b),r)}),l.push(c);l.forEach(v=>{n(v)}),this.iframes&&this.handleOpenIframes(o,e,n,r),i()}forEachNode(e,t,n,r=()=>{}){const i=this.getContexts();let s=i.length;s||r(),i.forEach(o=>{const l=()=>{this.iterateThroughNodes(e,o,t,n,()=>{--s<=0&&r()})};this.iframes?this.waitForIframes(o,l):l()})}}let Vn=class{constructor(e){this.ctx=e,this.ie=!1;const t=window.navigator.userAgent;(t.indexOf("MSIE")>-1||t.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(e){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},e)}get opt(){return this._opt}get iterator(){return new ue(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,t="debug"){const n=this.opt.log;this.opt.debug&&typeof n=="object"&&typeof n[t]=="function"&&n[t](`mark.js: ${e}`)}escapeStr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(e){return this.opt.wildcards!=="disabled"&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),this.opt.wildcards!=="disabled"&&(e=this.createWildcardsRegExp(e)),e=this.createAccuracyRegExp(e),e}createSynonymsRegExp(e){const t=this.opt.synonyms,n=this.opt.caseSensitive?"":"i",r=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let i in t)if(t.hasOwnProperty(i)){const s=t[i],o=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(i):this.escapeStr(i),l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(s):this.escapeStr(s);o!==""&&l!==""&&(e=e.replace(new RegExp(`(${this.escapeStr(o)}|${this.escapeStr(l)})`,`gm${n}`),r+`(${this.processSynomyms(o)}|${this.processSynomyms(l)})`+r))}return e}processSynomyms(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}setupWildcardsRegExp(e){return e=e.replace(/(?:\\)*\?/g,t=>t.charAt(0)==="\\"?"?":""),e.replace(/(?:\\)*\*/g,t=>t.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(e){let t=this.opt.wildcards==="withSpaces";return e.replace(/\u0001/g,t?"[\\S\\s]?":"\\S?").replace(/\u0002/g,t?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(e){return e.replace(/[^(|)\\]/g,(t,n,r)=>{let i=r.charAt(n+1);return/[(|)\\]/.test(i)||i===""?t:t+"\0"})}createJoinersRegExp(e){let t=[];const n=this.opt.ignorePunctuation;return Array.isArray(n)&&n.length&&t.push(this.escapeStr(n.join(""))),this.opt.ignoreJoiners&&t.push("\\u00ad\\u200b\\u200c\\u200d"),t.length?e.split(/\u0000+/).join(`[${t.join("")}]*`):e}createDiacriticsRegExp(e){const t=this.opt.caseSensitive?"":"i",n=this.opt.caseSensitive?["aàáảãạăằắẳẵặâầấẩẫậäåāą","AÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćč","CÇĆČ","dđď","DĐĎ","eèéẻẽẹêềếểễệëěēę","EÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïī","IÌÍỈĨỊÎÏĪ","lł","LŁ","nñňń","NÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøō","OÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rř","RŘ","sšśșş","SŠŚȘŞ","tťțţ","TŤȚŢ","uùúủũụưừứửữựûüůū","UÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿ","YÝỲỶỸỴŸ","zžżź","ZŽŻŹ"]:["aàáảãạăằắẳẵặâầấẩẫậäåāąAÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćčCÇĆČ","dđďDĐĎ","eèéẻẽẹêềếểễệëěēęEÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïīIÌÍỈĨỊÎÏĪ","lłLŁ","nñňńNÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøōOÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rřRŘ","sšśșşSŠŚȘŞ","tťțţTŤȚŢ","uùúủũụưừứửữựûüůūUÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿYÝỲỶỸỴŸ","zžżźZŽŻŹ"];let r=[];return e.split("").forEach(i=>{n.every(s=>{if(s.indexOf(i)!==-1){if(r.indexOf(s)>-1)return!1;e=e.replace(new RegExp(`[${s}]`,`gm${t}`),`[${s}]`),r.push(s)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){const t="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿";let n=this.opt.accuracy,r=typeof n=="string"?n:n.value,i=typeof n=="string"?[]:n.limiters,s="";switch(i.forEach(o=>{s+=`|${this.escapeStr(o)}`}),r){case"partially":default:return`()(${e})`;case"complementary":return s="\\s"+(s||this.escapeStr(t)),`()([^${s}]*${e}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${e})(?=$|\\s${s})`}}getSeparatedKeywords(e){let t=[];return e.forEach(n=>{this.opt.separateWordSearch?n.split(" ").forEach(r=>{r.trim()&&t.indexOf(r)===-1&&t.push(r)}):n.trim()&&t.indexOf(n)===-1&&t.push(n)}),{keywords:t.sort((n,r)=>r.length-n.length),length:t.length}}isNumeric(e){return Number(parseFloat(e))==e}checkRanges(e){if(!Array.isArray(e)||Object.prototype.toString.call(e[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];const t=[];let n=0;return e.sort((r,i)=>r.start-i.start).forEach(r=>{let{start:i,end:s,valid:o}=this.callNoMatchOnInvalidRanges(r,n);o&&(r.start=i,r.length=s-i,t.push(r),n=s)}),t}callNoMatchOnInvalidRanges(e,t){let n,r,i=!1;return e&&typeof e.start<"u"?(n=parseInt(e.start,10),r=n+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&r-t>0&&r-n>0?i=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(e)}`),this.opt.noMatch(e))):(this.log(`Ignoring invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)),{start:n,end:r,valid:i}}checkWhitespaceRanges(e,t,n){let r,i=!0,s=n.length,o=t-s,l=parseInt(e.start,10)-o;return l=l>s?s:l,r=l+parseInt(e.length,10),r>s&&(r=s,this.log(`End range automatically set to the max value of ${s}`)),l<0||r-l<0||l>s||r>s?(i=!1,this.log(`Invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)):n.substring(l,r).replace(/\s+/g,"")===""&&(i=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:l,end:r,valid:i}}getTextNodes(e){let t="",n=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,r=>{n.push({start:t.length,end:(t+=r.textContent).length,node:r})},r=>this.matchesExclude(r.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:t,nodes:n})})}matchesExclude(e){return ue.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,t,n){const r=this.opt.element?this.opt.element:"mark",i=e.splitText(t),s=i.splitText(n-t);let o=document.createElement(r);return o.setAttribute("data-markjs","true"),this.opt.className&&o.setAttribute("class",this.opt.className),o.textContent=i.textContent,i.parentNode.replaceChild(o,i),s}wrapRangeInMappedTextNode(e,t,n,r,i){e.nodes.every((s,o)=>{const l=e.nodes[o+1];if(typeof l>"u"||l.start>t){if(!r(s.node))return!1;const c=t-s.start,h=(n>s.end?s.end:n)-s.start,m=e.value.substr(0,s.start),v=e.value.substr(h+s.start);if(s.node=this.wrapRangeInTextNode(s.node,c,h),e.value=m+v,e.nodes.forEach((b,w)=>{w>=o&&(e.nodes[w].start>0&&w!==o&&(e.nodes[w].start-=h),e.nodes[w].end-=h)}),n-=h,i(s.node.previousSibling,s.start),n>s.end)t=s.end;else return!1}return!0})}wrapMatches(e,t,n,r,i){const s=t===0?0:t+1;this.getTextNodes(o=>{o.nodes.forEach(l=>{l=l.node;let c;for(;(c=e.exec(l.textContent))!==null&&c[s]!=="";){if(!n(c[s],l))continue;let h=c.index;if(s!==0)for(let m=1;m<s;m++)h+=c[m].length;l=this.wrapRangeInTextNode(l,h,h+c[s].length),r(l.previousSibling),e.lastIndex=0}}),i()})}wrapMatchesAcrossElements(e,t,n,r,i){const s=t===0?0:t+1;this.getTextNodes(o=>{let l;for(;(l=e.exec(o.value))!==null&&l[s]!=="";){let c=l.index;if(s!==0)for(let m=1;m<s;m++)c+=l[m].length;const h=c+l[s].length;this.wrapRangeInMappedTextNode(o,c,h,m=>n(l[s],m),(m,v)=>{e.lastIndex=v,r(m)})}i()})}wrapRangeFromIndex(e,t,n,r){this.getTextNodes(i=>{const s=i.value.length;e.forEach((o,l)=>{let{start:c,end:h,valid:m}=this.checkWhitespaceRanges(o,s,i.value);m&&this.wrapRangeInMappedTextNode(i,c,h,v=>t(v,o,i.value.substring(c,h),l),v=>{n(v,o)})}),r()})}unwrapMatches(e){const t=e.parentNode;let n=document.createDocumentFragment();for(;e.firstChild;)n.appendChild(e.removeChild(e.firstChild));t.replaceChild(n,e),this.ie?this.normalizeTextNode(t):t.normalize()}normalizeTextNode(e){if(e){if(e.nodeType===3)for(;e.nextSibling&&e.nextSibling.nodeType===3;)e.nodeValue+=e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);else this.normalizeTextNode(e.firstChild);this.normalizeTextNode(e.nextSibling)}}markRegExp(e,t){this.opt=t,this.log(`Searching with expression "${e}"`);let n=0,r="wrapMatches";const i=s=>{n++,this.opt.each(s)};this.opt.acrossElements&&(r="wrapMatchesAcrossElements"),this[r](e,this.opt.ignoreGroups,(s,o)=>this.opt.filter(o,s,n),i,()=>{n===0&&this.opt.noMatch(e),this.opt.done(n)})}mark(e,t){this.opt=t;let n=0,r="wrapMatches";const{keywords:i,length:s}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),o=this.opt.caseSensitive?"":"i",l=c=>{let h=new RegExp(this.createRegExp(c),`gm${o}`),m=0;this.log(`Searching with expression "${h}"`),this[r](h,1,(v,b)=>this.opt.filter(b,c,n,m),v=>{m++,n++,this.opt.each(v)},()=>{m===0&&this.opt.noMatch(c),i[s-1]===c?this.opt.done(n):l(i[i.indexOf(c)+1])})};this.opt.acrossElements&&(r="wrapMatchesAcrossElements"),s===0?this.opt.done(n):l(i[0])}markRanges(e,t){this.opt=t;let n=0,r=this.checkRanges(e);r&&r.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(r)),this.wrapRangeFromIndex(r,(i,s,o,l)=>this.opt.filter(i,s,o,l),(i,s)=>{n++,this.opt.each(i,s)},()=>{this.opt.done(n)})):this.opt.done(n)}unmark(e){this.opt=e;let t=this.opt.element?this.opt.element:"*";t+="[data-markjs]",this.opt.className&&(t+=`.${this.opt.className}`),this.log(`Removal selector "${t}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,n=>{this.unwrapMatches(n)},n=>{const r=ue.matches(n,t),i=this.matchesExclude(n);return!r||i?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function jn(a){const e=new Vn(a);return this.mark=(t,n)=>(e.mark(t,n),this),this.markRegExp=(t,n)=>(e.markRegExp(t,n),this),this.markRanges=(t,n)=>(e.markRanges(t,n),this),this.unmark=t=>(e.unmark(t),this),this}const $n="ENTRIES",Tt="KEYS",Et="VALUES",z="";class Pe{constructor(e,t){const n=e._tree,r=Array.from(n.keys());this.set=e,this._type=t,this._path=r.length>0?[{node:n,keys:r}]:[]}next(){const e=this.dive();return this.backtrack(),e}dive(){if(this._path.length===0)return{done:!0,value:void 0};const{node:e,keys:t}=le(this._path);if(le(t)===z)return{done:!1,value:this.result()};const n=e.get(le(t));return this._path.push({node:n,keys:Array.from(n.keys())}),this.dive()}backtrack(){if(this._path.length===0)return;const e=le(this._path).keys;e.pop(),!(e.length>0)&&(this._path.pop(),this.backtrack())}key(){return this.set._prefix+this._path.map(({keys:e})=>le(e)).filter(e=>e!==z).join("")}value(){return le(this._path).node.get(z)}result(){switch(this._type){case Et:return this.value();case Tt:return this.key();default:return[this.key(),this.value()]}}[Symbol.iterator](){return this}}const le=a=>a[a.length-1],Bn=(a,e,t)=>{const n=new Map;if(e===void 0)return n;const r=e.length+1,i=r+t,s=new Uint8Array(i*r).fill(t+1);for(let o=0;o<r;++o)s[o]=o;for(let o=1;o<i;++o)s[o*r]=o;return It(a,e,t,n,s,1,r,""),n},It=(a,e,t,n,r,i,s,o)=>{const l=i*s;e:for(const c of a.keys())if(c===z){const h=r[l-1];h<=t&&n.set(o,[a.get(c),h])}else{let h=i;for(let m=0;m<c.length;++m,++h){const v=c[m],b=s*h,w=b-s;let k=r[b];const y=Math.max(0,h-t-1),O=Math.min(s-1,h+t);for(let L=y;L<O;++L){const K=v!==e[L],H=r[w+L]+ +K,W=r[w+L+1]+1,j=r[b+L]+1,$=r[b+L+1]=Math.min(H,W,j);$<k&&(k=$)}if(k>t)continue e}It(a.get(c),e,t,n,r,h,s,o+c)}};class Y{constructor(e=new Map,t=""){this._size=void 0,this._tree=e,this._prefix=t}atPrefix(e){if(!e.startsWith(this._prefix))throw new Error("Mismatched prefix");const[t,n]=Ce(this._tree,e.slice(this._prefix.length));if(t===void 0){const[r,i]=He(n);for(const s of r.keys())if(s!==z&&s.startsWith(i)){const o=new Map;return o.set(s.slice(i.length),r.get(s)),new Y(o,e)}}return new Y(t,e)}clear(){this._size=void 0,this._tree.clear()}delete(e){return this._size=void 0,Wn(this._tree,e)}entries(){return new Pe(this,$n)}forEach(e){for(const[t,n]of this)e(t,n,this)}fuzzyGet(e,t){return Bn(this._tree,e,t)}get(e){const t=Je(this._tree,e);return t!==void 0?t.get(z):void 0}has(e){const t=Je(this._tree,e);return t!==void 0&&t.has(z)}keys(){return new Pe(this,Tt)}set(e,t){if(typeof e!="string")throw new Error("key must be a string");return this._size=void 0,ze(this._tree,e).set(z,t),this}get size(){if(this._size)return this._size;this._size=0;const e=this.entries();for(;!e.next().done;)this._size+=1;return this._size}update(e,t){if(typeof e!="string")throw new Error("key must be a string");this._size=void 0;const n=ze(this._tree,e);return n.set(z,t(n.get(z))),this}fetch(e,t){if(typeof e!="string")throw new Error("key must be a string");this._size=void 0;const n=ze(this._tree,e);let r=n.get(z);return r===void 0&&n.set(z,r=t()),r}values(){return new Pe(this,Et)}[Symbol.iterator](){return this.entries()}static from(e){const t=new Y;for(const[n,r]of e)t.set(n,r);return t}static fromObject(e){return Y.from(Object.entries(e))}}const Ce=(a,e,t=[])=>{if(e.length===0||a==null)return[a,t];for(const n of a.keys())if(n!==z&&e.startsWith(n))return t.push([a,n]),Ce(a.get(n),e.slice(n.length),t);return t.push([a,e]),Ce(void 0,"",t)},Je=(a,e)=>{if(e.length===0||a==null)return a;for(const t of a.keys())if(t!==z&&e.startsWith(t))return Je(a.get(t),e.slice(t.length))},ze=(a,e)=>{const t=e.length;e:for(let n=0;a&&n<t;){for(const i of a.keys())if(i!==z&&e[n]===i[0]){const s=Math.min(t-n,i.length);let o=1;for(;o<s&&e[n+o]===i[o];)++o;const l=a.get(i);if(o===i.length)a=l;else{const c=new Map;c.set(i.slice(o),l),a.set(e.slice(n,n+o),c),a.delete(i),a=c}n+=o;continue e}const r=new Map;return a.set(e.slice(n),r),r}return a},Wn=(a,e)=>{const[t,n]=Ce(a,e);if(t!==void 0){if(t.delete(z),t.size===0)kt(n);else if(t.size===1){const[r,i]=t.entries().next().value;Nt(n,r,i)}}},kt=a=>{if(a.length===0)return;const[e,t]=He(a);if(e.delete(t),e.size===0)kt(a.slice(0,-1));else if(e.size===1){const[n,r]=e.entries().next().value;n!==z&&Nt(a.slice(0,-1),n,r)}},Nt=(a,e,t)=>{if(a.length===0)return;const[n,r]=He(a);n.set(r+e,t),n.delete(r)},He=a=>a[a.length-1],Ge="or",Ft="and",Kn="and_not";class de{constructor(e){if((e==null?void 0:e.fields)==null)throw new Error('MiniSearch: option "fields" must be provided');const t=e.autoVacuum==null||e.autoVacuum===!0?$e:e.autoVacuum;this._options={...je,...e,autoVacuum:t,searchOptions:{...ht,...e.searchOptions||{}},autoSuggestOptions:{...Gn,...e.autoSuggestOptions||{}}},this._index=new Y,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldIds={},this._fieldLength=new Map,this._avgFieldLength=[],this._nextId=0,this._storedFields=new Map,this._dirtCount=0,this._currentVacuum=null,this._enqueuedVacuum=null,this._enqueuedVacuumConditions=Ue,this.addFields(this._options.fields)}add(e){const{extractField:t,stringifyField:n,tokenize:r,processTerm:i,fields:s,idField:o}=this._options,l=t(e,o);if(l==null)throw new Error(`MiniSearch: document does not have ID field "${o}"`);if(this._idToShortId.has(l))throw new Error(`MiniSearch: duplicate ID ${l}`);const c=this.addDocumentId(l);this.saveStoredFields(c,e);for(const h of s){const m=t(e,h);if(m==null)continue;const v=r(n(m,h),h),b=this._fieldIds[h],w=new Set(v).size;this.addFieldLength(c,b,this._documentCount-1,w);for(const k of v){const y=i(k,h);if(Array.isArray(y))for(const O of y)this.addTerm(b,c,O);else y&&this.addTerm(b,c,y)}}}addAll(e){for(const t of e)this.add(t)}addAllAsync(e,t={}){const{chunkSize:n=10}=t,r={chunk:[],promise:Promise.resolve()},{chunk:i,promise:s}=e.reduce(({chunk:o,promise:l},c,h)=>(o.push(c),(h+1)%n===0?{chunk:[],promise:l.then(()=>new Promise(m=>setTimeout(m,0))).then(()=>this.addAll(o))}:{chunk:o,promise:l}),r);return s.then(()=>this.addAll(i))}remove(e){const{tokenize:t,processTerm:n,extractField:r,stringifyField:i,fields:s,idField:o}=this._options,l=r(e,o);if(l==null)throw new Error(`MiniSearch: document does not have ID field "${o}"`);const c=this._idToShortId.get(l);if(c==null)throw new Error(`MiniSearch: cannot remove document with ID ${l}: it is not in the index`);for(const h of s){const m=r(e,h);if(m==null)continue;const v=t(i(m,h),h),b=this._fieldIds[h],w=new Set(v).size;this.removeFieldLength(c,b,this._documentCount,w);for(const k of v){const y=n(k,h);if(Array.isArray(y))for(const O of y)this.removeTerm(b,c,O);else y&&this.removeTerm(b,c,y)}}this._storedFields.delete(c),this._documentIds.delete(c),this._idToShortId.delete(l),this._fieldLength.delete(c),this._documentCount-=1}removeAll(e){if(e)for(const t of e)this.remove(t);else{if(arguments.length>0)throw new Error("Expected documents to be present. Omit the argument to remove all documents.");this._index=new Y,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldLength=new Map,this._avgFieldLength=[],this._storedFields=new Map,this._nextId=0}}discard(e){const t=this._idToShortId.get(e);if(t==null)throw new Error(`MiniSearch: cannot discard document with ID ${e}: it is not in the index`);this._idToShortId.delete(e),this._documentIds.delete(t),this._storedFields.delete(t),(this._fieldLength.get(t)||[]).forEach((n,r)=>{this.removeFieldLength(t,r,this._documentCount,n)}),this._fieldLength.delete(t),this._documentCount-=1,this._dirtCount+=1,this.maybeAutoVacuum()}maybeAutoVacuum(){if(this._options.autoVacuum===!1)return;const{minDirtFactor:e,minDirtCount:t,batchSize:n,batchWait:r}=this._options.autoVacuum;this.conditionalVacuum({batchSize:n,batchWait:r},{minDirtCount:t,minDirtFactor:e})}discardAll(e){const t=this._options.autoVacuum;try{this._options.autoVacuum=!1;for(const n of e)this.discard(n)}finally{this._options.autoVacuum=t}this.maybeAutoVacuum()}replace(e){const{idField:t,extractField:n}=this._options,r=n(e,t);this.discard(r),this.add(e)}vacuum(e={}){return this.conditionalVacuum(e)}conditionalVacuum(e,t){return this._currentVacuum?(this._enqueuedVacuumConditions=this._enqueuedVacuumConditions&&t,this._enqueuedVacuum!=null?this._enqueuedVacuum:(this._enqueuedVacuum=this._currentVacuum.then(()=>{const n=this._enqueuedVacuumConditions;return this._enqueuedVacuumConditions=Ue,this.performVacuuming(e,n)}),this._enqueuedVacuum)):this.vacuumConditionsMet(t)===!1?Promise.resolve():(this._currentVacuum=this.performVacuuming(e),this._currentVacuum)}async performVacuuming(e,t){const n=this._dirtCount;if(this.vacuumConditionsMet(t)){const r=e.batchSize||qe.batchSize,i=e.batchWait||qe.batchWait;let s=1;for(const[o,l]of this._index){for(const[c,h]of l)for(const[m]of h)this._documentIds.has(m)||(h.size<=1?l.delete(c):h.delete(m));this._index.get(o).size===0&&this._index.delete(o),s%r===0&&await new Promise(c=>setTimeout(c,i)),s+=1}this._dirtCount-=n}await null,this._currentVacuum=this._enqueuedVacuum,this._enqueuedVacuum=null}vacuumConditionsMet(e){if(e==null)return!0;let{minDirtCount:t,minDirtFactor:n}=e;return t=t||$e.minDirtCount,n=n||$e.minDirtFactor,this.dirtCount>=t&&this.dirtFactor>=n}get isVacuuming(){return this._currentVacuum!=null}get dirtCount(){return this._dirtCount}get dirtFactor(){return this._dirtCount/(1+this._documentCount+this._dirtCount)}has(e){return this._idToShortId.has(e)}getStoredFields(e){const t=this._idToShortId.get(e);if(t!=null)return this._storedFields.get(t)}search(e,t={}){const{searchOptions:n}=this._options,r={...n,...t},i=this.executeQuery(e,t),s=[];for(const[o,{score:l,terms:c,match:h}]of i){const m=c.length||1,v={id:this._documentIds.get(o),score:l*m,terms:Object.keys(h),queryTerms:c,match:h};Object.assign(v,this._storedFields.get(o)),(r.filter==null||r.filter(v))&&s.push(v)}return e===de.wildcard&&r.boostDocument==null||s.sort(vt),s}autoSuggest(e,t={}){t={...this._options.autoSuggestOptions,...t};const n=new Map;for(const{score:i,terms:s}of this.search(e,t)){const o=s.join(" "),l=n.get(o);l!=null?(l.score+=i,l.count+=1):n.set(o,{score:i,terms:s,count:1})}const r=[];for(const[i,{score:s,terms:o,count:l}]of n)r.push({suggestion:i,terms:o,score:s/l});return r.sort(vt),r}get documentCount(){return this._documentCount}get termCount(){return this._index.size}static loadJSON(e,t){if(t==null)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJS(JSON.parse(e),t)}static async loadJSONAsync(e,t){if(t==null)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJSAsync(JSON.parse(e),t)}static getDefault(e){if(je.hasOwnProperty(e))return Ve(je,e);throw new Error(`MiniSearch: unknown option "${e}"`)}static loadJS(e,t){const{index:n,documentIds:r,fieldLength:i,storedFields:s,serializationVersion:o}=e,l=this.instantiateMiniSearch(e,t);l._documentIds=Ee(r),l._fieldLength=Ee(i),l._storedFields=Ee(s);for(const[c,h]of l._documentIds)l._idToShortId.set(h,c);for(const[c,h]of n){const m=new Map;for(const v of Object.keys(h)){let b=h[v];o===1&&(b=b.ds),m.set(parseInt(v,10),Ee(b))}l._index.set(c,m)}return l}static async loadJSAsync(e,t){const{index:n,documentIds:r,fieldLength:i,storedFields:s,serializationVersion:o}=e,l=this.instantiateMiniSearch(e,t);l._documentIds=await Ie(r),l._fieldLength=await Ie(i),l._storedFields=await Ie(s);for(const[h,m]of l._documentIds)l._idToShortId.set(m,h);let c=0;for(const[h,m]of n){const v=new Map;for(const b of Object.keys(m)){let w=m[b];o===1&&(w=w.ds),v.set(parseInt(b,10),await Ie(w))}++c%1e3===0&&await Rt(0),l._index.set(h,v)}return l}static instantiateMiniSearch(e,t){const{documentCount:n,nextId:r,fieldIds:i,averageFieldLength:s,dirtCount:o,serializationVersion:l}=e;if(l!==1&&l!==2)throw new Error("MiniSearch: cannot deserialize an index created with an incompatible version");const c=new de(t);return c._documentCount=n,c._nextId=r,c._idToShortId=new Map,c._fieldIds=i,c._avgFieldLength=s,c._dirtCount=o||0,c._index=new Y,c}executeQuery(e,t={}){if(e===de.wildcard)return this.executeWildcardQuery(t);if(typeof e!="string"){const v={...t,...e,queries:void 0},b=e.queries.map(w=>this.executeQuery(w,v));return this.combineResults(b,v.combineWith)}const{tokenize:n,processTerm:r,searchOptions:i}=this._options,s={tokenize:n,processTerm:r,...i,...t},{tokenize:o,processTerm:l}=s,m=o(e).flatMap(v=>l(v)).filter(v=>!!v).map(Hn(s)).map(v=>this.executeQuerySpec(v,s));return this.combineResults(m,s.combineWith)}executeQuerySpec(e,t){const n={...this._options.searchOptions,...t},r=(n.fields||this._options.fields).reduce((k,y)=>({...k,[y]:Ve(n.boost,y)||1}),{}),{boostDocument:i,weights:s,maxFuzzy:o,bm25:l}=n,{fuzzy:c,prefix:h}={...ht.weights,...s},m=this._index.get(e.term),v=this.termResults(e.term,e.term,1,e.termBoost,m,r,i,l);let b,w;if(e.prefix&&(b=this._index.atPrefix(e.term)),e.fuzzy){const k=e.fuzzy===!0?.2:e.fuzzy,y=k<1?Math.min(o,Math.round(e.term.length*k)):k;y&&(w=this._index.fuzzyGet(e.term,y))}if(b)for(const[k,y]of b){const O=k.length-e.term.length;if(!O)continue;w==null||w.delete(k);const L=h*k.length/(k.length+.3*O);this.termResults(e.term,k,L,e.termBoost,y,r,i,l,v)}if(w)for(const k of w.keys()){const[y,O]=w.get(k);if(!O)continue;const L=c*k.length/(k.length+O);this.termResults(e.term,k,L,e.termBoost,y,r,i,l,v)}return v}executeWildcardQuery(e){const t=new Map,n={...this._options.searchOptions,...e};for(const[r,i]of this._documentIds){const s=n.boostDocument?n.boostDocument(i,"",this._storedFields.get(r)):1;t.set(r,{score:s,terms:[],match:{}})}return t}combineResults(e,t=Ge){if(e.length===0)return new Map;const n=t.toLowerCase(),r=Jn[n];if(!r)throw new Error(`Invalid combination operator: ${t}`);return e.reduce(r)||new Map}toJSON(){const e=[];for(const[t,n]of this._index){const r={};for(const[i,s]of n)r[i]=Object.fromEntries(s);e.push([t,r])}return{documentCount:this._documentCount,nextId:this._nextId,documentIds:Object.fromEntries(this._documentIds),fieldIds:this._fieldIds,fieldLength:Object.fromEntries(this._fieldLength),averageFieldLength:this._avgFieldLength,storedFields:Object.fromEntries(this._storedFields),dirtCount:this._dirtCount,index:e,serializationVersion:2}}termResults(e,t,n,r,i,s,o,l,c=new Map){if(i==null)return c;for(const h of Object.keys(s)){const m=s[h],v=this._fieldIds[h],b=i.get(v);if(b==null)continue;let w=b.size;const k=this._avgFieldLength[v];for(const y of b.keys()){if(!this._documentIds.has(y)){this.removeTerm(v,y,t),w-=1;continue}const O=o?o(this._documentIds.get(y),t,this._storedFields.get(y)):1;if(!O)continue;const L=b.get(y),K=this._fieldLength.get(y)[v],H=Un(L,w,this._documentCount,K,k,l),W=n*r*m*O*H,j=c.get(y);if(j){j.score+=W,Qn(j.terms,e);const $=Ve(j.match,t);$?$.push(h):j.match[t]=[h]}else c.set(y,{score:W,terms:[e],match:{[t]:[h]}})}}return c}addTerm(e,t,n){const r=this._index.fetch(n,mt);let i=r.get(e);if(i==null)i=new Map,i.set(t,1),r.set(e,i);else{const s=i.get(t);i.set(t,(s||0)+1)}}removeTerm(e,t,n){if(!this._index.has(n)){this.warnDocumentChanged(t,e,n);return}const r=this._index.fetch(n,mt),i=r.get(e);i==null||i.get(t)==null?this.warnDocumentChanged(t,e,n):i.get(t)<=1?i.size<=1?r.delete(e):i.delete(t):i.set(t,i.get(t)-1),this._index.get(n).size===0&&this._index.delete(n)}warnDocumentChanged(e,t,n){for(const r of Object.keys(this._fieldIds))if(this._fieldIds[r]===t){this._options.logger("warn",`MiniSearch: document with ID ${this._documentIds.get(e)} has changed before removal: term "${n}" was not present in field "${r}". Removing a document after it has changed can corrupt the index!`,"version_conflict");return}}addDocumentId(e){const t=this._nextId;return this._idToShortId.set(e,t),this._documentIds.set(t,e),this._documentCount+=1,this._nextId+=1,t}addFields(e){for(let t=0;t<e.length;t++)this._fieldIds[e[t]]=t}addFieldLength(e,t,n,r){let i=this._fieldLength.get(e);i==null&&this._fieldLength.set(e,i=[]),i[t]=r;const o=(this._avgFieldLength[t]||0)*n+r;this._avgFieldLength[t]=o/(n+1)}removeFieldLength(e,t,n,r){if(n===1){this._avgFieldLength[t]=0;return}const i=this._avgFieldLength[t]*n-r;this._avgFieldLength[t]=i/(n-1)}saveStoredFields(e,t){const{storeFields:n,extractField:r}=this._options;if(n==null||n.length===0)return;let i=this._storedFields.get(e);i==null&&this._storedFields.set(e,i={});for(const s of n){const o=r(t,s);o!==void 0&&(i[s]=o)}}}de.wildcard=Symbol("*");const Ve=(a,e)=>Object.prototype.hasOwnProperty.call(a,e)?a[e]:void 0,Jn={[Ge]:(a,e)=>{for(const t of e.keys()){const n=a.get(t);if(n==null)a.set(t,e.get(t));else{const{score:r,terms:i,match:s}=e.get(t);n.score=n.score+r,n.match=Object.assign(n.match,s),pt(n.terms,i)}}return a},[Ft]:(a,e)=>{const t=new Map;for(const n of e.keys()){const r=a.get(n);if(r==null)continue;const{score:i,terms:s,match:o}=e.get(n);pt(r.terms,s),t.set(n,{score:r.score+i,terms:r.terms,match:Object.assign(r.match,o)})}return t},[Kn]:(a,e)=>{for(const t of e.keys())a.delete(t);return a}},qn={k:1.2,b:.7,d:.5},Un=(a,e,t,n,r,i)=>{const{k:s,b:o,d:l}=i;return Math.log(1+(t-e+.5)/(e+.5))*(l+a*(s+1)/(a+s*(1-o+o*n/r)))},Hn=a=>(e,t,n)=>{const r=typeof a.fuzzy=="function"?a.fuzzy(e,t,n):a.fuzzy||!1,i=typeof a.prefix=="function"?a.prefix(e,t,n):a.prefix===!0,s=typeof a.boostTerm=="function"?a.boostTerm(e,t,n):1;return{term:e,fuzzy:r,prefix:i,termBoost:s}},je={idField:"id",extractField:(a,e)=>a[e],stringifyField:(a,e)=>a.toString(),tokenize:a=>a.split(Yn),processTerm:a=>a.toLowerCase(),fields:void 0,searchOptions:void 0,storeFields:[],logger:(a,e)=>{typeof(console==null?void 0:console[a])=="function"&&console[a](e)},autoVacuum:!0},ht={combineWith:Ge,prefix:!1,fuzzy:!1,maxFuzzy:6,boost:{},weights:{fuzzy:.45,prefix:.375},bm25:qn},Gn={combineWith:Ft,prefix:(a,e,t)=>e===t.length-1},qe={batchSize:1e3,batchWait:10},Ue={minDirtFactor:.1,minDirtCount:20},$e={...qe,...Ue},Qn=(a,e)=>{a.includes(e)||a.push(e)},pt=(a,e)=>{for(const t of e)a.includes(t)||a.push(t)},vt=({score:a},{score:e})=>e-a,mt=()=>new Map,Ee=a=>{const e=new Map;for(const t of Object.keys(a))e.set(parseInt(t,10),a[t]);return e},Ie=async a=>{const e=new Map;let t=0;for(const n of Object.keys(a))e.set(parseInt(n,10),a[n]),++t%1e3===0&&await Rt(0);return e},Rt=a=>new Promise(e=>setTimeout(e,a)),Yn=/[\n\r\p{Z}\p{P}]+/u;class Zn{constructor(e=10){Me(this,"max");Me(this,"cache");this.max=e,this.cache=new Map}get(e){let t=this.cache.get(e);return t!==void 0&&(this.cache.delete(e),this.cache.set(e,t)),t}set(e,t){this.cache.has(e)?this.cache.delete(e):this.cache.size===this.max&&this.cache.delete(this.first()),this.cache.set(e,t)}first(){return this.cache.keys().next().value}clear(){this.cache.clear()}}const Xn=["aria-owns"],er={class:"shell"},tr=["title"],nr={class:"search-actions before"},rr=["title"],sr=["aria-activedescendant","aria-controls","placeholder"],ir={class:"search-actions"},ar=["title"],or=["disabled","title"],lr=["id","role","aria-labelledby"],cr=["id","aria-selected"],ur=["href","aria-label","onMouseenter","onFocusin","data-index"],dr={class:"titles"},fr=["innerHTML"],hr={class:"title main"},pr=["innerHTML"],vr={key:0,class:"excerpt-wrapper"},mr={key:0,class:"excerpt",inert:""},gr=["innerHTML"],br={key:0,class:"no-results"},yr={class:"search-keyboard-shortcuts"},wr=["aria-label"],Sr=["aria-label"],_r=["aria-label"],xr=["aria-label"],Tr=zt({__name:"VPLocalSearchBox",emits:["close"],setup(a,{emit:e}){var I,S;const t=e,n=ce(),r=ce(),i=ce(ln),s=an(),{activate:o}=zn(n,{immediate:!0,allowOutsideClick:!0,clickOutsideDeactivates:!0,escapeDeactivates:!0}),{localeIndex:l,theme:c}=s,h=rt(async()=>{var p,d,E,R,C,A,D,F,V;return ot(de.loadJSON((E=await((d=(p=i.value)[l.value])==null?void 0:d.call(p)))==null?void 0:E.default,{fields:["title","titles","text"],storeFields:["title","titles"],searchOptions:{fuzzy:.2,prefix:!0,boost:{title:4,text:2,titles:1},...((R=c.value.search)==null?void 0:R.provider)==="local"&&((A=(C=c.value.search.options)==null?void 0:C.miniSearch)==null?void 0:A.searchOptions)},...((D=c.value.search)==null?void 0:D.provider)==="local"&&((V=(F=c.value.search.options)==null?void 0:F.miniSearch)==null?void 0:V.options)}))}),v=be(()=>{var p,d;return((p=c.value.search)==null?void 0:p.provider)==="local"&&((d=c.value.search.options)==null?void 0:d.disableQueryPersistence)===!0}).value?he(""):Vt("vitepress:local-search-filter",""),b=jt("vitepress:local-search-detailed-list",((I=c.value.search)==null?void 0:I.provider)==="local"&&((S=c.value.search.options)==null?void 0:S.detailedView)===!0),w=be(()=>{var p,d,E;return((p=c.value.search)==null?void 0:p.provider)==="local"&&(((d=c.value.search.options)==null?void 0:d.disableDetailedView)===!0||((E=c.value.search.options)==null?void 0:E.detailedView)===!1)}),k=be(()=>{var d,E,R,C,A,D,F;const p=((d=c.value.search)==null?void 0:d.options)??c.value.algolia;return((A=(C=(R=(E=p==null?void 0:p.locales)==null?void 0:E[l.value])==null?void 0:R.translations)==null?void 0:C.button)==null?void 0:A.buttonText)||((F=(D=p==null?void 0:p.translations)==null?void 0:D.button)==null?void 0:F.buttonText)||"Search"});$t(()=>{w.value&&(b.value=!1)});const y=ce([]),O=he(!1);Be(v,()=>{O.value=!1});const L=rt(async()=>{if(r.value)return ot(new jn(r.value))},null),K=new Zn(16);Bt(()=>[h.value,v.value,b.value],async([p,d,E],R,C)=>{var te,we,Qe,Ye;(R==null?void 0:R[0])!==p&&K.clear();let A=!1;if(C(()=>{A=!0}),!p)return;y.value=p.search(d).slice(0,16),O.value=!0;const D=E?await Promise.all(y.value.map(B=>H(B.id))):[];if(A)return;for(const{id:B,mod:ne}of D){const re=B.slice(0,B.indexOf("#"));let G=K.get(re);if(G)continue;G=new Map,K.set(re,G);const J=ne.default??ne;if(J!=null&&J.render||J!=null&&J.setup){const se=en(J);se.config.warnHandler=()=>{},se.provide(tn,s),Object.defineProperties(se.config.globalProperties,{$frontmatter:{get(){return s.frontmatter.value}},$params:{get(){return s.page.value.params}}});const Ze=document.createElement("div");se.mount(Ze),Ze.querySelectorAll("h1, h2, h3, h4, h5, h6").forEach(fe=>{var tt;const Se=(tt=fe.querySelector("a"))==null?void 0:tt.getAttribute("href"),Xe=(Se==null?void 0:Se.startsWith("#"))&&Se.slice(1);if(!Xe)return;let et="";for(;(fe=fe.nextElementSibling)&&!/^h[1-6]$/i.test(fe.tagName);)et+=fe.outerHTML;G.set(Xe,et)}),se.unmount()}if(A)return}const F=new Set;if(y.value=y.value.map(B=>{const[ne,re]=B.id.split("#"),G=K.get(ne),J=(G==null?void 0:G.get(re))??"";for(const se in B.match)F.add(se);return{...B,text:J}}),await pe(),A)return;await new Promise(B=>{var ne;(ne=L.value)==null||ne.unmark({done:()=>{var re;(re=L.value)==null||re.markRegExp(x(F),{done:B})}})});const V=((te=n.value)==null?void 0:te.querySelectorAll(".result .excerpt"))??[];for(const B of V)(we=B.querySelector('mark[data-markjs="true"]'))==null||we.scrollIntoView({block:"center"});(Ye=(Qe=r.value)==null?void 0:Qe.firstElementChild)==null||Ye.scrollIntoView({block:"start"})},{debounce:200,immediate:!0});async function H(p){const d=nn(p.slice(0,p.indexOf("#")));try{if(!d)throw new Error(`Cannot find file for id: ${p}`);return{id:p,mod:await import(d)}}catch(E){return console.error(E),{id:p,mod:{}}}}const W=he(),j=be(()=>{var p;return((p=v.value)==null?void 0:p.length)<=0});function $(p=!0){var d,E;(d=W.value)==null||d.focus(),p&&((E=W.value)==null||E.select())}Le(()=>{$()});function Ae(p){p.pointerType==="mouse"&&$()}const M=he(-1),Z=he(!0);Be(y,p=>{M.value=p.length?0:-1,X()});function X(){pe(()=>{const p=document.querySelector(".result.selected");p==null||p.scrollIntoView({block:"nearest"})})}_e("ArrowUp",p=>{p.preventDefault(),M.value--,M.value<0&&(M.value=y.value.length-1),Z.value=!0,X()}),_e("ArrowDown",p=>{p.preventDefault(),M.value++,M.value>=y.value.length&&(M.value=0),Z.value=!0,X()});const ee=Wt();_e("Enter",p=>{if(p.isComposing||p.target instanceof HTMLButtonElement&&p.target.type!=="submit")return;const d=y.value[M.value];if(p.target instanceof HTMLInputElement&&!d){p.preventDefault();return}d&&(ee.go(d.id),t("close"))}),_e("Escape",()=>{t("close")});const u=on({modal:{displayDetails:"Display detailed list",resetButtonTitle:"Reset search",backButtonTitle:"Close search",noResultsText:"No results for",footer:{selectText:"to select",selectKeyAriaLabel:"enter",navigateText:"to navigate",navigateUpKeyAriaLabel:"up arrow",navigateDownKeyAriaLabel:"down arrow",closeText:"to close",closeKeyAriaLabel:"escape"}}});Le(()=>{window.history.pushState(null,"",null)}),Kt("popstate",p=>{p.preventDefault(),t("close")});const f=Jt(qt?document.body:null);Le(()=>{pe(()=>{f.value=!0,pe().then(()=>o())})}),Ut(()=>{f.value=!1});function g(){v.value="",pe().then(()=>$(!1))}function x(p){return new RegExp([...p].sort((d,E)=>E.length-d.length).map(d=>`(${rn(d)})`).join("|"),"gi")}function T(p){var R;if(!Z.value)return;const d=(R=p.target)==null?void 0:R.closest(".result"),E=Number.parseInt(d==null?void 0:d.dataset.index);E>=0&&E!==M.value&&(M.value=E),Z.value=!1}return(p,d)=>{var E,R,C,A,D;return q(),Ht(Xt,{to:"body"},[_("div",{ref_key:"el",ref:n,role:"button","aria-owns":(E=y.value)!=null&&E.length?"localsearch-list":void 0,"aria-expanded":"true","aria-haspopup":"listbox","aria-labelledby":"localsearch-label",class:"VPLocalSearchBox"},[_("div",{class:"backdrop",onClick:d[0]||(d[0]=F=>p.$emit("close"))}),_("div",er,[_("form",{class:"search-bar",onPointerup:d[4]||(d[4]=F=>Ae(F)),onSubmit:d[5]||(d[5]=Gt(()=>{},["prevent"]))},[_("label",{title:k.value,id:"localsearch-label",for:"localsearch-input"},[...d[7]||(d[7]=[_("span",{"aria-hidden":"true",class:"vpi-search search-icon local-search-icon"},null,-1)])],8,tr),_("div",nr,[_("button",{class:"back-button",title:P(u)("modal.backButtonTitle"),onClick:d[1]||(d[1]=F=>p.$emit("close"))},[...d[8]||(d[8]=[_("span",{class:"vpi-arrow-left local-search-icon"},null,-1)])],8,rr)]),Qt(_("input",{ref_key:"searchInput",ref:W,"onUpdate:modelValue":d[2]||(d[2]=F=>Zt(v)?v.value=F:null),"aria-activedescendant":M.value>-1?"localsearch-item-"+M.value:void 0,"aria-autocomplete":"both","aria-controls":(R=y.value)!=null&&R.length?"localsearch-list":void 0,"aria-labelledby":"localsearch-label",autocapitalize:"off",autocomplete:"off",autocorrect:"off",class:"search-input",id:"localsearch-input",enterkeyhint:"go",maxlength:"64",placeholder:k.value,spellcheck:"false",type:"search"},null,8,sr),[[Yt,P(v)]]),_("div",ir,[w.value?xe("",!0):(q(),Q("button",{key:0,class:st(["toggle-layout-button",{"detailed-list":P(b)}]),type:"button",title:P(u)("modal.displayDetails"),onClick:d[3]||(d[3]=F=>M.value>-1&&(b.value=!P(b)))},[...d[9]||(d[9]=[_("span",{class:"vpi-layout-list local-search-icon"},null,-1)])],10,ar)),_("button",{class:"clear-button",type:"reset",disabled:j.value,title:P(u)("modal.resetButtonTitle"),onClick:g},[...d[10]||(d[10]=[_("span",{class:"vpi-delete local-search-icon"},null,-1)])],8,or)])],32),_("ul",{ref_key:"resultsEl",ref:r,id:(C=y.value)!=null&&C.length?"localsearch-list":void 0,role:(A=y.value)!=null&&A.length?"listbox":void 0,"aria-labelledby":(D=y.value)!=null&&D.length?"localsearch-label":void 0,class:"results",onMousemove:T},[(q(!0),Q(at,null,it(y.value,(F,V)=>(q(),Q("li",{key:F.id,id:"localsearch-item-"+V,"aria-selected":M.value===V?"true":"false",role:"option"},[_("a",{href:F.id,class:st(["result",{selected:M.value===V}]),"aria-label":[...F.titles,F.title].join(" > "),onMouseenter:te=>!Z.value&&(M.value=V),onFocusin:te=>M.value=V,onClick:d[6]||(d[6]=te=>p.$emit("close")),"data-index":V},[_("div",null,[_("div",dr,[d[12]||(d[12]=_("span",{class:"title-icon"},"#",-1)),(q(!0),Q(at,null,it(F.titles,(te,we)=>(q(),Q("span",{key:we,class:"title"},[_("span",{class:"text",innerHTML:te},null,8,fr),d[11]||(d[11]=_("span",{class:"vpi-chevron-right local-search-icon"},null,-1))]))),128)),_("span",hr,[_("span",{class:"text",innerHTML:F.title},null,8,pr)])]),P(b)?(q(),Q("div",vr,[F.text?(q(),Q("div",mr,[_("div",{class:"vp-doc",innerHTML:F.text},null,8,gr)])):xe("",!0),d[13]||(d[13]=_("div",{class:"excerpt-gradient-bottom"},null,-1)),d[14]||(d[14]=_("div",{class:"excerpt-gradient-top"},null,-1))])):xe("",!0)])],42,ur)],8,cr))),128)),P(v)&&!y.value.length&&O.value?(q(),Q("li",br,[ve(me(P(u)("modal.noResultsText"))+' "',1),_("strong",null,me(P(v)),1),d[15]||(d[15]=ve('" ',-1))])):xe("",!0)],40,lr),_("div",yr,[_("span",null,[_("kbd",{"aria-label":P(u)("modal.footer.navigateUpKeyAriaLabel")},[...d[16]||(d[16]=[_("span",{class:"vpi-arrow-up navigate-icon"},null,-1)])],8,wr),_("kbd",{"aria-label":P(u)("modal.footer.navigateDownKeyAriaLabel")},[...d[17]||(d[17]=[_("span",{class:"vpi-arrow-down navigate-icon"},null,-1)])],8,Sr),ve(" "+me(P(u)("modal.footer.navigateText")),1)]),_("span",null,[_("kbd",{"aria-label":P(u)("modal.footer.selectKeyAriaLabel")},[...d[18]||(d[18]=[_("span",{class:"vpi-corner-down-left navigate-icon"},null,-1)])],8,_r),ve(" "+me(P(u)("modal.footer.selectText")),1)]),_("span",null,[_("kbd",{"aria-label":P(u)("modal.footer.closeKeyAriaLabel")},"esc",8,xr),ve(" "+me(P(u)("modal.footer.closeText")),1)])])])],8,Xn)])}}}),Rr=sn(Tr,[["__scopeId","data-v-ce626c7c"]]);export{Rr as default};
@@ -1,19 +0,0 @@
1
- /**
2
- * @vue/shared v3.5.26
3
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
- * @license MIT
5
- **/function Us(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const ee={},Pt=[],Be=()=>{},gi=()=>!1,ln=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Bs=e=>e.startsWith("onUpdate:"),ue=Object.assign,Ks=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},rl=Object.prototype.hasOwnProperty,Q=(e,t)=>rl.call(e,t),K=Array.isArray,Lt=e=>Wn(e)==="[object Map]",mi=e=>Wn(e)==="[object Set]",q=e=>typeof e=="function",le=e=>typeof e=="string",tt=e=>typeof e=="symbol",te=e=>e!==null&&typeof e=="object",vi=e=>(te(e)||q(e))&&q(e.then)&&q(e.catch),yi=Object.prototype.toString,Wn=e=>yi.call(e),il=e=>Wn(e).slice(8,-1),_i=e=>Wn(e)==="[object Object]",Un=e=>le(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,It=Us(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Bn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},ol=/-\w/g,Ie=Bn(e=>e.replace(ol,t=>t.slice(1).toUpperCase())),ll=/\B([A-Z])/g,ut=Bn(e=>e.replace(ll,"-$1").toLowerCase()),Kn=Bn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Cn=Bn(e=>e?`on${Kn(e)}`:""),lt=(e,t)=>!Object.is(e,t),An=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},bi=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},qs=e=>{const t=parseFloat(e);return isNaN(t)?e:t},cl=e=>{const t=le(e)?Number(e):NaN;return isNaN(t)?e:t};let vr;const qn=()=>vr||(vr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Gs(e){if(K(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=le(s)?dl(s):Gs(s);if(r)for(const i in r)t[i]=r[i]}return t}else if(le(e)||te(e))return e}const al=/;(?![^(]*\))/g,fl=/:([^]+)/,ul=/\/\*[^]*?\*\//g;function dl(e){const t={};return e.replace(ul,"").split(al).forEach(n=>{if(n){const s=n.split(fl);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Js(e){let t="";if(le(e))t=e;else if(K(e))for(let n=0;n<e.length;n++){const s=Js(e[n]);s&&(t+=s+" ")}else if(te(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const hl="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",pl=Us(hl);function wi(e){return!!e||e===""}const Si=e=>!!(e&&e.__v_isRef===!0),gl=e=>le(e)?e:e==null?"":K(e)||te(e)&&(e.toString===yi||!q(e.toString))?Si(e)?gl(e.value):JSON.stringify(e,Ti,2):String(e),Ti=(e,t)=>Si(t)?Ti(e,t.value):Lt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],i)=>(n[ls(s,i)+" =>"]=r,n),{})}:mi(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>ls(n))}:tt(t)?ls(t):te(t)&&!K(t)&&!_i(t)?String(t):t,ls=(e,t="")=>{var n;return tt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
6
- * @vue/reactivity v3.5.26
7
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
- * @license MIT
9
- **/let me;class ml{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=me,!t&&me&&(this.index=(me.scopes||(me.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=me;try{return me=this,t()}finally{me=n}}}on(){++this._on===1&&(this.prevScope=me,me=this)}off(){this._on>0&&--this._on===0&&(me=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(this.effects.length=0,n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0}}}function xi(){return me}function vl(e,t=!1){me&&me.cleanups.push(e)}let re;const cs=new WeakSet;class Ei{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,me&&me.active&&me.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,cs.has(this)&&(cs.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Ai(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,yr(this),Ri(this);const t=re,n=Fe;re=this,Fe=!0;try{return this.fn()}finally{Mi(this),re=t,Fe=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)zs(t);this.deps=this.depsTail=void 0,yr(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?cs.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ms(this)&&this.run()}get dirty(){return Ms(this)}}let Ci=0,Kt,qt;function Ai(e,t=!1){if(e.flags|=8,t){e.next=qt,qt=e;return}e.next=Kt,Kt=e}function Xs(){Ci++}function Ys(){if(--Ci>0)return;if(qt){let t=qt;for(qt=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Kt;){let t=Kt;for(Kt=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function Ri(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Mi(e){let t,n=e.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),zs(s),yl(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=n}function Ms(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Oi(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Oi(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Qt)||(e.globalVersion=Qt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ms(e))))return;e.flags|=2;const t=e.dep,n=re,s=Fe;re=e,Fe=!0;try{Ri(e);const r=e.fn(e._value);(t.version===0||lt(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{re=n,Fe=s,Mi(e),e.flags&=-3}}function zs(e,t=!1){const{dep:n,prevSub:s,nextSub:r}=e;if(s&&(s.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)zs(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function yl(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Fe=!0;const Pi=[];function ze(){Pi.push(Fe),Fe=!1}function Qe(){const e=Pi.pop();Fe=e===void 0?!0:e}function yr(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=re;re=void 0;try{t()}finally{re=n}}}let Qt=0;class _l{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Gn{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!re||!Fe||re===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==re)n=this.activeLink=new _l(re,this),re.deps?(n.prevDep=re.depsTail,re.depsTail.nextDep=n,re.depsTail=n):re.deps=re.depsTail=n,Li(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=re.depsTail,n.nextDep=void 0,re.depsTail.nextDep=n,re.depsTail=n,re.deps===n&&(re.deps=s)}return n}trigger(t){this.version++,Qt++,this.notify(t)}notify(t){Xs();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Ys()}}}function Li(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)Li(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const In=new WeakMap,yt=Symbol(""),Os=Symbol(""),Zt=Symbol("");function ye(e,t,n){if(Fe&&re){let s=In.get(e);s||In.set(e,s=new Map);let r=s.get(n);r||(s.set(n,r=new Gn),r.map=s,r.key=n),r.track()}}function Xe(e,t,n,s,r,i){const o=In.get(e);if(!o){Qt++;return}const l=c=>{c&&c.trigger()};if(Xs(),t==="clear")o.forEach(l);else{const c=K(e),f=c&&Un(n);if(c&&n==="length"){const a=Number(s);o.forEach((d,m)=>{(m==="length"||m===Zt||!tt(m)&&m>=a)&&l(d)})}else switch((n!==void 0||o.has(void 0))&&l(o.get(n)),f&&l(o.get(Zt)),t){case"add":c?f&&l(o.get("length")):(l(o.get(yt)),Lt(e)&&l(o.get(Os)));break;case"delete":c||(l(o.get(yt)),Lt(e)&&l(o.get(Os)));break;case"set":Lt(e)&&l(o.get(yt));break}}Ys()}function bl(e,t){const n=In.get(e);return n&&n.get(t)}function Ct(e){const t=z(e);return t===e?t:(ye(t,"iterate",Zt),Re(e)?t:t.map(De))}function Jn(e){return ye(e=z(e),"iterate",Zt),e}function rt(e,t){return Ze(e)?ct(e)?Dt(De(t)):Dt(t):De(t)}const wl={__proto__:null,[Symbol.iterator](){return as(this,Symbol.iterator,e=>rt(this,e))},concat(...e){return Ct(this).concat(...e.map(t=>K(t)?Ct(t):t))},entries(){return as(this,"entries",e=>(e[1]=rt(this,e[1]),e))},every(e,t){return Ke(this,"every",e,t,void 0,arguments)},filter(e,t){return Ke(this,"filter",e,t,n=>n.map(s=>rt(this,s)),arguments)},find(e,t){return Ke(this,"find",e,t,n=>rt(this,n),arguments)},findIndex(e,t){return Ke(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Ke(this,"findLast",e,t,n=>rt(this,n),arguments)},findLastIndex(e,t){return Ke(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Ke(this,"forEach",e,t,void 0,arguments)},includes(...e){return fs(this,"includes",e)},indexOf(...e){return fs(this,"indexOf",e)},join(e){return Ct(this).join(e)},lastIndexOf(...e){return fs(this,"lastIndexOf",e)},map(e,t){return Ke(this,"map",e,t,void 0,arguments)},pop(){return Wt(this,"pop")},push(...e){return Wt(this,"push",e)},reduce(e,...t){return _r(this,"reduce",e,t)},reduceRight(e,...t){return _r(this,"reduceRight",e,t)},shift(){return Wt(this,"shift")},some(e,t){return Ke(this,"some",e,t,void 0,arguments)},splice(...e){return Wt(this,"splice",e)},toReversed(){return Ct(this).toReversed()},toSorted(e){return Ct(this).toSorted(e)},toSpliced(...e){return Ct(this).toSpliced(...e)},unshift(...e){return Wt(this,"unshift",e)},values(){return as(this,"values",e=>rt(this,e))}};function as(e,t,n){const s=Jn(e),r=s[t]();return s!==e&&!Re(e)&&(r._next=r.next,r.next=()=>{const i=r._next();return i.done||(i.value=n(i.value)),i}),r}const Sl=Array.prototype;function Ke(e,t,n,s,r,i){const o=Jn(e),l=o!==e&&!Re(e),c=o[t];if(c!==Sl[t]){const d=c.apply(e,i);return l?De(d):d}let f=n;o!==e&&(l?f=function(d,m){return n.call(this,rt(e,d),m,e)}:n.length>2&&(f=function(d,m){return n.call(this,d,m,e)}));const a=c.call(o,f,s);return l&&r?r(a):a}function _r(e,t,n,s){const r=Jn(e);let i=n;return r!==e&&(Re(e)?n.length>3&&(i=function(o,l,c){return n.call(this,o,l,c,e)}):i=function(o,l,c){return n.call(this,o,rt(e,l),c,e)}),r[t](i,...s)}function fs(e,t,n){const s=z(e);ye(s,"iterate",Zt);const r=s[t](...n);return(r===-1||r===!1)&&Xn(n[0])?(n[0]=z(n[0]),s[t](...n)):r}function Wt(e,t,n=[]){ze(),Xs();const s=z(e)[t].apply(e,n);return Ys(),Qe(),s}const Tl=Us("__proto__,__v_isRef,__isVue"),Ii=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(tt));function xl(e){tt(e)||(e=String(e));const t=z(this);return ye(t,"has",e),t.hasOwnProperty(e)}class Ni{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const r=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return i;if(n==="__v_raw")return s===(r?i?Nl:$i:i?Di:Hi).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const o=K(t);if(!r){let c;if(o&&(c=wl[n]))return c;if(n==="hasOwnProperty")return xl}const l=Reflect.get(t,n,ae(t)?t:s);if((tt(n)?Ii.has(n):Tl(n))||(r||ye(t,"get",n),i))return l;if(ae(l)){const c=o&&Un(n)?l:l.value;return r&&te(c)?en(c):c}return te(l)?r?en(l):Ht(l):l}}class Fi extends Ni{constructor(t=!1){super(!1,t)}set(t,n,s,r){let i=t[n];const o=K(t)&&Un(n);if(!this._isShallow){const f=Ze(i);if(!Re(s)&&!Ze(s)&&(i=z(i),s=z(s)),!o&&ae(i)&&!ae(s))return f||(i.value=s),!0}const l=o?Number(n)<t.length:Q(t,n),c=Reflect.set(t,n,s,ae(t)?t:r);return t===z(r)&&(l?lt(s,i)&&Xe(t,"set",n,s):Xe(t,"add",n,s)),c}deleteProperty(t,n){const s=Q(t,n);t[n];const r=Reflect.deleteProperty(t,n);return r&&s&&Xe(t,"delete",n,void 0),r}has(t,n){const s=Reflect.has(t,n);return(!tt(n)||!Ii.has(n))&&ye(t,"has",n),s}ownKeys(t){return ye(t,"iterate",K(t)?"length":yt),Reflect.ownKeys(t)}}class El extends Ni{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Cl=new Fi,Al=new El,Rl=new Fi(!0);const Ps=e=>e,pn=e=>Reflect.getPrototypeOf(e);function Ml(e,t,n){return function(...s){const r=this.__v_raw,i=z(r),o=Lt(i),l=e==="entries"||e===Symbol.iterator&&o,c=e==="keys"&&o,f=r[e](...s),a=n?Ps:t?Dt:De;return!t&&ye(i,"iterate",c?Os:yt),{next(){const{value:d,done:m}=f.next();return m?{value:d,done:m}:{value:l?[a(d[0]),a(d[1])]:a(d),done:m}},[Symbol.iterator](){return this}}}}function gn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Ol(e,t){const n={get(r){const i=this.__v_raw,o=z(i),l=z(r);e||(lt(r,l)&&ye(o,"get",r),ye(o,"get",l));const{has:c}=pn(o),f=t?Ps:e?Dt:De;if(c.call(o,r))return f(i.get(r));if(c.call(o,l))return f(i.get(l));i!==o&&i.get(r)},get size(){const r=this.__v_raw;return!e&&ye(z(r),"iterate",yt),r.size},has(r){const i=this.__v_raw,o=z(i),l=z(r);return e||(lt(r,l)&&ye(o,"has",r),ye(o,"has",l)),r===l?i.has(r):i.has(r)||i.has(l)},forEach(r,i){const o=this,l=o.__v_raw,c=z(l),f=t?Ps:e?Dt:De;return!e&&ye(c,"iterate",yt),l.forEach((a,d)=>r.call(i,f(a),f(d),o))}};return ue(n,e?{add:gn("add"),set:gn("set"),delete:gn("delete"),clear:gn("clear")}:{add(r){!t&&!Re(r)&&!Ze(r)&&(r=z(r));const i=z(this);return pn(i).has.call(i,r)||(i.add(r),Xe(i,"add",r,r)),this},set(r,i){!t&&!Re(i)&&!Ze(i)&&(i=z(i));const o=z(this),{has:l,get:c}=pn(o);let f=l.call(o,r);f||(r=z(r),f=l.call(o,r));const a=c.call(o,r);return o.set(r,i),f?lt(i,a)&&Xe(o,"set",r,i):Xe(o,"add",r,i),this},delete(r){const i=z(this),{has:o,get:l}=pn(i);let c=o.call(i,r);c||(r=z(r),c=o.call(i,r)),l&&l.call(i,r);const f=i.delete(r);return c&&Xe(i,"delete",r,void 0),f},clear(){const r=z(this),i=r.size!==0,o=r.clear();return i&&Xe(r,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=Ml(r,e,t)}),n}function Qs(e,t){const n=Ol(e,t);return(s,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(Q(n,r)&&r in s?n:s,r,i)}const Pl={get:Qs(!1,!1)},Ll={get:Qs(!1,!0)},Il={get:Qs(!0,!1)};const Hi=new WeakMap,Di=new WeakMap,$i=new WeakMap,Nl=new WeakMap;function Fl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Hl(e){return e.__v_skip||!Object.isExtensible(e)?0:Fl(il(e))}function Ht(e){return Ze(e)?e:Zs(e,!1,Cl,Pl,Hi)}function Dl(e){return Zs(e,!1,Rl,Ll,Di)}function en(e){return Zs(e,!0,Al,Il,$i)}function Zs(e,t,n,s,r){if(!te(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=Hl(e);if(i===0)return e;const o=r.get(e);if(o)return o;const l=new Proxy(e,i===2?s:n);return r.set(e,l),l}function ct(e){return Ze(e)?ct(e.__v_raw):!!(e&&e.__v_isReactive)}function Ze(e){return!!(e&&e.__v_isReadonly)}function Re(e){return!!(e&&e.__v_isShallow)}function Xn(e){return e?!!e.__v_raw:!1}function z(e){const t=e&&e.__v_raw;return t?z(t):e}function Rn(e){return!Q(e,"__v_skip")&&Object.isExtensible(e)&&bi(e,"__v_skip",!0),e}const De=e=>te(e)?Ht(e):e,Dt=e=>te(e)?en(e):e;function ae(e){return e?e.__v_isRef===!0:!1}function He(e){return ji(e,!1)}function xe(e){return ji(e,!0)}function ji(e,t){return ae(e)?e:new $l(e,t)}class $l{constructor(t,n){this.dep=new Gn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:z(t),this._value=n?t:De(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||Re(t)||Ze(t);t=s?t:z(t),lt(t,n)&&(this._rawValue=t,this._value=s?t:De(t),this.dep.trigger())}}function Yn(e){return ae(e)?e.value:e}function ce(e){return q(e)?e():Yn(e)}const jl={get:(e,t,n)=>t==="__v_raw"?e:Yn(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return ae(r)&&!ae(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function Vi(e){return ct(e)?e:new Proxy(e,jl)}class Vl{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Gn,{get:s,set:r}=t(n.track.bind(n),n.trigger.bind(n));this._get=s,this._set=r}get value(){return this._value=this._get()}set value(t){this._set(t)}}function kl(e){return new Vl(e)}class Wl{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0,this._raw=z(t);let r=!0,i=t;if(!K(t)||!Un(String(n)))do r=!Xn(i)||Re(i);while(r&&(i=i.__v_raw));this._shallow=r}get value(){let t=this._object[this._key];return this._shallow&&(t=Yn(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&ae(this._raw[this._key])){const n=this._object[this._key];if(ae(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return bl(this._raw,this._key)}}class Ul{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Bl(e,t,n){return ae(e)?e:q(e)?new Ul(e):te(e)&&arguments.length>1?Kl(e,t,n):He(e)}function Kl(e,t,n){return new Wl(e,t,n)}class ql{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Gn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Qt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&re!==this)return Ai(this,!0),!0}get value(){const t=this.dep.track();return Oi(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Gl(e,t,n=!1){let s,r;return q(e)?s=e:(s=e.get,r=e.set),new ql(s,r,n)}const mn={},Nn=new WeakMap;let mt;function Jl(e,t=!1,n=mt){if(n){let s=Nn.get(n);s||Nn.set(n,s=[]),s.push(e)}}function Xl(e,t,n=ee){const{immediate:s,deep:r,once:i,scheduler:o,augmentJob:l,call:c}=n,f=g=>r?g:Re(g)||r===!1||r===0?Ye(g,1):Ye(g);let a,d,m,v,b=!1,_=!1;if(ae(e)?(d=()=>e.value,b=Re(e)):ct(e)?(d=()=>f(e),b=!0):K(e)?(_=!0,b=e.some(g=>ct(g)||Re(g)),d=()=>e.map(g=>{if(ae(g))return g.value;if(ct(g))return f(g);if(q(g))return c?c(g,2):g()})):q(e)?t?d=c?()=>c(e,2):e:d=()=>{if(m){ze();try{m()}finally{Qe()}}const g=mt;mt=a;try{return c?c(e,3,[v]):e(v)}finally{mt=g}}:d=Be,t&&r){const g=d,M=r===!0?1/0:r;d=()=>Ye(g(),M)}const H=xi(),A=()=>{a.stop(),H&&H.active&&Ks(H.effects,a)};if(i&&t){const g=t;t=(...M)=>{g(...M),A()}}let $=_?new Array(e.length).fill(mn):mn;const p=g=>{if(!(!(a.flags&1)||!a.dirty&&!g))if(t){const M=a.run();if(r||b||(_?M.some((j,O)=>lt(j,$[O])):lt(M,$))){m&&m();const j=mt;mt=a;try{const O=[M,$===mn?void 0:_&&$[0]===mn?[]:$,v];$=M,c?c(t,3,O):t(...O)}finally{mt=j}}}else a.run()};return l&&l(p),a=new Ei(d),a.scheduler=o?()=>o(p,!1):p,v=g=>Jl(g,!1,a),m=a.onStop=()=>{const g=Nn.get(a);if(g){if(c)c(g,4);else for(const M of g)M();Nn.delete(a)}},t?s?p(!0):$=a.run():o?o(p.bind(null,!0),!0):a.run(),A.pause=a.pause.bind(a),A.resume=a.resume.bind(a),A.stop=A,A}function Ye(e,t=1/0,n){if(t<=0||!te(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,ae(e))Ye(e.value,t,n);else if(K(e))for(let s=0;s<e.length;s++)Ye(e[s],t,n);else if(mi(e)||Lt(e))e.forEach(s=>{Ye(s,t,n)});else if(_i(e)){for(const s in e)Ye(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&Ye(e[s],t,n)}return e}/**
10
- * @vue/runtime-core v3.5.26
11
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
12
- * @license MIT
13
- **/function cn(e,t,n,s){try{return s?e(...s):e()}catch(r){an(r,t,n)}}function $e(e,t,n,s){if(q(e)){const r=cn(e,t,n,s);return r&&vi(r)&&r.catch(i=>{an(i,t,n)}),r}if(K(e)){const r=[];for(let i=0;i<e.length;i++)r.push($e(e[i],t,n,s));return r}}function an(e,t,n,s=!0){const r=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||ee;if(t){let l=t.parent;const c=t.proxy,f=`https://vuejs.org/error-reference/#runtime-${n}`;for(;l;){const a=l.ec;if(a){for(let d=0;d<a.length;d++)if(a[d](e,c,f)===!1)return}l=l.parent}if(i){ze(),cn(i,null,10,[e,c,f]),Qe();return}}Yl(e,n,r,s,o)}function Yl(e,t,n,s=!0,r=!1){if(r)throw e;console.error(e)}const Se=[];let We=-1;const Nt=[];let it=null,Rt=0;const ki=Promise.resolve();let Fn=null;function zn(e){const t=Fn||ki;return e?t.then(this?e.bind(this):e):t}function zl(e){let t=We+1,n=Se.length;for(;t<n;){const s=t+n>>>1,r=Se[s],i=tn(r);i<e||i===e&&r.flags&2?t=s+1:n=s}return t}function er(e){if(!(e.flags&1)){const t=tn(e),n=Se[Se.length-1];!n||!(e.flags&2)&&t>=tn(n)?Se.push(e):Se.splice(zl(t),0,e),e.flags|=1,Wi()}}function Wi(){Fn||(Fn=ki.then(Ui))}function Ql(e){K(e)?Nt.push(...e):it&&e.id===-1?it.splice(Rt+1,0,e):e.flags&1||(Nt.push(e),e.flags|=1),Wi()}function br(e,t,n=We+1){for(;n<Se.length;n++){const s=Se[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;Se.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function Hn(e){if(Nt.length){const t=[...new Set(Nt)].sort((n,s)=>tn(n)-tn(s));if(Nt.length=0,it){it.push(...t);return}for(it=t,Rt=0;Rt<it.length;Rt++){const n=it[Rt];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}it=null,Rt=0}}const tn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Ui(e){try{for(We=0;We<Se.length;We++){const t=Se[We];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),cn(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;We<Se.length;We++){const t=Se[We];t&&(t.flags&=-2)}We=-1,Se.length=0,Hn(),Fn=null,(Se.length||Nt.length)&&Ui()}}let pe=null,Bi=null;function Dn(e){const t=pe;return pe=e,Bi=e&&e.type.__scopeId||null,t}function Zl(e,t=pe,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&Vn(-1);const i=Dn(t);let o;try{o=e(...r)}finally{Dn(i),s._d&&Vn(1)}return o};return s._n=!0,s._c=!0,s._d=!0,s}function $f(e,t){if(pe===null)return e;const n=ns(pe),s=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[i,o,l,c=ee]=t[r];i&&(q(i)&&(i={mounted:i,updated:i}),i.deep&&Ye(o),s.push({dir:i,instance:n,value:o,oldValue:void 0,arg:l,modifiers:c}))}return e}function Ue(e,t,n,s){const r=e.dirs,i=t&&t.dirs;for(let o=0;o<r.length;o++){const l=r[o];i&&(l.oldValue=i[o].value);let c=l.dir[s];c&&(ze(),$e(c,n,8,[e.el,l,e,t]),Qe())}}function ec(e,t){if(he){let n=he.provides;const s=he.parent&&he.parent.provides;s===n&&(n=he.provides=Object.create(s)),n[e]=t}}function _t(e,t,n=!1){const s=xt();if(s||wt){let r=wt?wt._context.provides:s?s.parent==null||s.ce?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return n&&q(t)?t.call(s&&s.proxy):t}}function Ki(){return!!(xt()||wt)}const tc=Symbol.for("v-scx"),nc=()=>_t(tc);function tr(e,t){return Qn(e,null,t)}function jf(e,t){return Qn(e,null,{flush:"post"})}function Le(e,t,n){return Qn(e,t,n)}function Qn(e,t,n=ee){const{immediate:s,deep:r,flush:i,once:o}=n,l=ue({},n),c=t&&s||!t&&i!=="post";let f;if($t){if(i==="sync"){const v=nc();f=v.__watcherHandles||(v.__watcherHandles=[])}else if(!c){const v=()=>{};return v.stop=Be,v.resume=Be,v.pause=Be,v}}const a=he;l.call=(v,b,_)=>$e(v,a,b,_);let d=!1;i==="post"?l.scheduler=v=>{we(v,a&&a.suspense)}:i!=="sync"&&(d=!0,l.scheduler=(v,b)=>{b?v():er(v)}),l.augmentJob=v=>{t&&(v.flags|=4),d&&(v.flags|=2,a&&(v.id=a.uid,v.i=a))};const m=Xl(e,t,l);return $t&&(f?f.push(m):c&&m()),m}function sc(e,t,n){const s=this.proxy,r=le(e)?e.includes(".")?qi(s,e):()=>s[e]:e.bind(s,s);let i;q(t)?i=t:(i=t.handler,n=t);const o=un(this),l=Qn(r,i.bind(s),n);return o(),l}function qi(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r<n.length&&s;r++)s=s[n[r]];return s}}const Gi=Symbol("_vte"),Ji=e=>e.__isTeleport,Gt=e=>e&&(e.disabled||e.disabled===""),wr=e=>e&&(e.defer||e.defer===""),Sr=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Tr=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Ls=(e,t)=>{const n=e&&e.to;return le(n)?t?t(n):null:n},Xi={name:"Teleport",__isTeleport:!0,process(e,t,n,s,r,i,o,l,c,f){const{mc:a,pc:d,pbc:m,o:{insert:v,querySelector:b,createText:_,createComment:H}}=f,A=Gt(t.props);let{shapeFlag:$,children:p,dynamicChildren:g}=t;if(e==null){const M=t.el=_(""),j=t.anchor=_("");v(M,n,s),v(j,n,s);const O=(E,P)=>{$&16&&a(p,E,P,r,i,o,l,c)},k=()=>{const E=t.target=Ls(t.props,b),P=Yi(E,t,_,v);E&&(o!=="svg"&&Sr(E)?o="svg":o!=="mathml"&&Tr(E)&&(o="mathml"),r&&r.isCE&&(r.ce._teleportTargets||(r.ce._teleportTargets=new Set)).add(E),A||(O(E,P),Mn(t,!1)))};A&&(O(n,j),Mn(t,!0)),wr(t.props)?(t.el.__isMounted=!1,we(()=>{k(),delete t.el.__isMounted},i)):k()}else{if(wr(t.props)&&e.el.__isMounted===!1){we(()=>{Xi.process(e,t,n,s,r,i,o,l,c,f)},i);return}t.el=e.el,t.targetStart=e.targetStart;const M=t.anchor=e.anchor,j=t.target=e.target,O=t.targetAnchor=e.targetAnchor,k=Gt(e.props),E=k?n:j,P=k?M:O;if(o==="svg"||Sr(j)?o="svg":(o==="mathml"||Tr(j))&&(o="mathml"),g?(m(e.dynamicChildren,g,E,r,i,o,l),or(e,t,!0)):c||d(e,t,E,P,r,i,o,l,!1),A)k?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):vn(t,n,M,f,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const R=t.target=Ls(t.props,b);R&&vn(t,R,null,f,0)}else k&&vn(t,j,O,f,1);Mn(t,A)}},remove(e,t,n,{um:s,o:{remove:r}},i){const{shapeFlag:o,children:l,anchor:c,targetStart:f,targetAnchor:a,target:d,props:m}=e;if(d&&(r(f),r(a)),i&&r(c),o&16){const v=i||!Gt(m);for(let b=0;b<l.length;b++){const _=l[b];s(_,t,n,v,!!_.dynamicChildren)}}},move:vn,hydrate:rc};function vn(e,t,n,{o:{insert:s},m:r},i=2){i===0&&s(e.targetAnchor,t,n);const{el:o,anchor:l,shapeFlag:c,children:f,props:a}=e,d=i===2;if(d&&s(o,t,n),(!d||Gt(a))&&c&16)for(let m=0;m<f.length;m++)r(f[m],t,n,2);d&&s(l,t,n)}function rc(e,t,n,s,r,i,{o:{nextSibling:o,parentNode:l,querySelector:c,insert:f,createText:a}},d){function m(_,H,A,$){H.anchor=d(o(_),H,l(_),n,s,r,i),H.targetStart=A,H.targetAnchor=$}const v=t.target=Ls(t.props,c),b=Gt(t.props);if(v){const _=v._lpa||v.firstChild;if(t.shapeFlag&16)if(b)m(e,t,_,_&&o(_));else{t.anchor=o(e);let H=_;for(;H;){if(H&&H.nodeType===8){if(H.data==="teleport start anchor")t.targetStart=H;else if(H.data==="teleport anchor"){t.targetAnchor=H,v._lpa=t.targetAnchor&&o(t.targetAnchor);break}}H=o(H)}t.targetAnchor||Yi(v,t,a,f),d(_&&o(_),t,v,n,s,r,i)}Mn(t,b)}else b&&t.shapeFlag&16&&m(e,t,e,o(e));return t.anchor&&o(t.anchor)}const Vf=Xi;function Mn(e,t){const n=e.ctx;if(n&&n.ut){let s,r;for(t?(s=e.el,r=e.anchor):(s=e.targetStart,r=e.targetAnchor);s&&s!==r;)s.nodeType===1&&s.setAttribute("data-v-owner",n.uid),s=s.nextSibling;n.ut()}}function Yi(e,t,n,s){const r=t.targetStart=n(""),i=t.targetAnchor=n("");return r[Gi]=i,e&&(s(r,e),s(i,e)),i}const Je=Symbol("_leaveCb"),yn=Symbol("_enterCb");function ic(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return jt(()=>{e.isMounted=!0}),so(()=>{e.isUnmounting=!0}),e}const Me=[Function,Array],zi={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Me,onEnter:Me,onAfterEnter:Me,onEnterCancelled:Me,onBeforeLeave:Me,onLeave:Me,onAfterLeave:Me,onLeaveCancelled:Me,onBeforeAppear:Me,onAppear:Me,onAfterAppear:Me,onAppearCancelled:Me},Qi=e=>{const t=e.subTree;return t.component?Qi(t.component):t},oc={name:"BaseTransition",props:zi,setup(e,{slots:t}){const n=xt(),s=ic();return()=>{const r=t.default&&to(t.default(),!0);if(!r||!r.length)return;const i=Zi(r),o=z(e),{mode:l}=o;if(s.isLeaving)return us(i);const c=xr(i);if(!c)return us(i);let f=Is(c,o,s,n,d=>f=d);c.type!==de&&nn(c,f);let a=n.subTree&&xr(n.subTree);if(a&&a.type!==de&&!vt(a,c)&&Qi(n).type!==de){let d=Is(a,o,s,n);if(nn(a,d),l==="out-in"&&c.type!==de)return s.isLeaving=!0,d.afterLeave=()=>{s.isLeaving=!1,n.job.flags&8||n.update(),delete d.afterLeave,a=void 0},us(i);l==="in-out"&&c.type!==de?d.delayLeave=(m,v,b)=>{const _=eo(s,a);_[String(a.key)]=a,m[Je]=()=>{v(),m[Je]=void 0,delete f.delayedLeave,a=void 0},f.delayedLeave=()=>{b(),delete f.delayedLeave,a=void 0}}:a=void 0}else a&&(a=void 0);return i}}};function Zi(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==de){t=n;break}}return t}const lc=oc;function eo(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function Is(e,t,n,s,r){const{appear:i,mode:o,persisted:l=!1,onBeforeEnter:c,onEnter:f,onAfterEnter:a,onEnterCancelled:d,onBeforeLeave:m,onLeave:v,onAfterLeave:b,onLeaveCancelled:_,onBeforeAppear:H,onAppear:A,onAfterAppear:$,onAppearCancelled:p}=t,g=String(e.key),M=eo(n,e),j=(E,P)=>{E&&$e(E,s,9,P)},O=(E,P)=>{const R=P[1];j(E,P),K(E)?E.every(w=>w.length<=1)&&R():E.length<=1&&R()},k={mode:o,persisted:l,beforeEnter(E){let P=c;if(!n.isMounted)if(i)P=H||c;else return;E[Je]&&E[Je](!0);const R=M[g];R&&vt(e,R)&&R.el[Je]&&R.el[Je](),j(P,[E])},enter(E){let P=f,R=a,w=d;if(!n.isMounted)if(i)P=A||f,R=$||a,w=p||d;else return;let F=!1;const X=E[yn]=oe=>{F||(F=!0,oe?j(w,[E]):j(R,[E]),k.delayedLeave&&k.delayedLeave(),E[yn]=void 0)};P?O(P,[E,X]):X()},leave(E,P){const R=String(e.key);if(E[yn]&&E[yn](!0),n.isUnmounting)return P();j(m,[E]);let w=!1;const F=E[Je]=X=>{w||(w=!0,P(),X?j(_,[E]):j(b,[E]),E[Je]=void 0,M[R]===e&&delete M[R])};M[R]=e,v?O(v,[E,F]):F()},clone(E){const P=Is(E,t,n,s,r);return r&&r(P),P}};return k}function us(e){if(fn(e))return e=at(e),e.children=null,e}function xr(e){if(!fn(e))return Ji(e.type)&&e.children?Zi(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&q(n.default))return n.default()}}function nn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,nn(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function to(e,t=!1,n){let s=[],r=0;for(let i=0;i<e.length;i++){let o=e[i];const l=n==null?o.key:String(n)+String(o.key!=null?o.key:i);o.type===_e?(o.patchFlag&128&&r++,s=s.concat(to(o.children,t,l))):(t||o.type!==de)&&s.push(l!=null?at(o,{key:l}):o)}if(r>1)for(let i=0;i<s.length;i++)s[i].patchFlag=-2;return s}function nr(e,t){return q(e)?ue({name:e.name},t,{setup:e}):e}function sr(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const $n=new WeakMap;function Ft(e,t,n,s,r=!1){if(K(e)){e.forEach((b,_)=>Ft(b,t&&(K(t)?t[_]:t),n,s,r));return}if(bt(s)&&!r){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&Ft(e,t,n,s.component.subTree);return}const i=s.shapeFlag&4?ns(s.component):s.el,o=r?null:i,{i:l,r:c}=e,f=t&&t.r,a=l.refs===ee?l.refs={}:l.refs,d=l.setupState,m=z(d),v=d===ee?gi:b=>Q(m,b);if(f!=null&&f!==c){if(Er(t),le(f))a[f]=null,v(f)&&(d[f]=null);else if(ae(f)){f.value=null;const b=t;b.k&&(a[b.k]=null)}}if(q(c))cn(c,l,12,[o,a]);else{const b=le(c),_=ae(c);if(b||_){const H=()=>{if(e.f){const A=b?v(c)?d[c]:a[c]:c.value;if(r)K(A)&&Ks(A,i);else if(K(A))A.includes(i)||A.push(i);else if(b)a[c]=[i],v(c)&&(d[c]=a[c]);else{const $=[i];c.value=$,e.k&&(a[e.k]=$)}}else b?(a[c]=o,v(c)&&(d[c]=o)):_&&(c.value=o,e.k&&(a[e.k]=o))};if(o){const A=()=>{H(),$n.delete(e)};A.id=-1,$n.set(e,A),we(A,n)}else Er(e),H()}}}function Er(e){const t=$n.get(e);t&&(t.flags|=8,$n.delete(e))}let Cr=!1;const At=()=>{Cr||(console.error("Hydration completed but contains mismatches."),Cr=!0)},cc=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",ac=e=>e.namespaceURI.includes("MathML"),_n=e=>{if(e.nodeType===1){if(cc(e))return"svg";if(ac(e))return"mathml"}},Ot=e=>e.nodeType===8;function fc(e){const{mt:t,p:n,o:{patchProp:s,createText:r,nextSibling:i,parentNode:o,remove:l,insert:c,createComment:f}}=e,a=(p,g)=>{if(!g.hasChildNodes()){n(null,p,g),Hn(),g._vnode=p;return}d(g.firstChild,p,null,null,null),Hn(),g._vnode=p},d=(p,g,M,j,O,k=!1)=>{k=k||!!g.dynamicChildren;const E=Ot(p)&&p.data==="[",P=()=>_(p,g,M,j,O,E),{type:R,ref:w,shapeFlag:F,patchFlag:X}=g;let oe=p.nodeType;g.el=p,X===-2&&(k=!1,g.dynamicChildren=null);let U=null;switch(R){case St:oe!==3?g.children===""?(c(g.el=r(""),o(p),p),U=p):U=P():(p.data!==g.children&&(At(),p.data=g.children),U=i(p));break;case de:$(p)?(U=i(p),A(g.el=p.content.firstChild,p,M)):oe!==8||E?U=P():U=i(p);break;case Xt:if(E&&(p=i(p),oe=p.nodeType),oe===1||oe===3){U=p;const J=!g.children.length;for(let V=0;V<g.staticCount;V++)J&&(g.children+=U.nodeType===1?U.outerHTML:U.data),V===g.staticCount-1&&(g.anchor=U),U=i(U);return E?i(U):U}else P();break;case _e:E?U=b(p,g,M,j,O,k):U=P();break;default:if(F&1)(oe!==1||g.type.toLowerCase()!==p.tagName.toLowerCase())&&!$(p)?U=P():U=m(p,g,M,j,O,k);else if(F&6){g.slotScopeIds=O;const J=o(p);if(E?U=H(p):Ot(p)&&p.data==="teleport start"?U=H(p,p.data,"teleport end"):U=i(p),t(g,J,null,M,j,_n(J),k),bt(g)&&!g.type.__asyncResolved){let V;E?(V=fe(_e),V.anchor=U?U.previousSibling:J.lastChild):V=p.nodeType===3?Po(""):fe("div"),V.el=p,g.component.subTree=V}}else F&64?oe!==8?U=P():U=g.type.hydrate(p,g,M,j,O,k,e,v):F&128&&(U=g.type.hydrate(p,g,M,j,_n(o(p)),O,k,e,d))}return w!=null&&Ft(w,null,j,g),U},m=(p,g,M,j,O,k)=>{k=k||!!g.dynamicChildren;const{type:E,props:P,patchFlag:R,shapeFlag:w,dirs:F,transition:X}=g,oe=E==="input"||E==="option";if(oe||R!==-1){F&&Ue(g,null,M,"created");let U=!1;if($(p)){U=To(null,X)&&M&&M.vnode.props&&M.vnode.props.appear;const V=p.content.firstChild;if(U){const ne=V.getAttribute("class");ne&&(V.$cls=ne),X.beforeEnter(V)}A(V,p,M),g.el=p=V}if(w&16&&!(P&&(P.innerHTML||P.textContent))){let V=v(p.firstChild,g,p,M,j,O,k);for(;V;){bn(p,1)||At();const ne=V;V=V.nextSibling,l(ne)}}else if(w&8){let V=g.children;V[0]===`
14
- `&&(p.tagName==="PRE"||p.tagName==="TEXTAREA")&&(V=V.slice(1));const{textContent:ne}=p;ne!==V&&ne!==V.replace(/\r\n|\r/g,`
15
- `)&&(bn(p,0)||At(),p.textContent=g.children)}if(P){if(oe||!k||R&48){const V=p.tagName.includes("-");for(const ne in P)(oe&&(ne.endsWith("value")||ne==="indeterminate")||ln(ne)&&!It(ne)||ne[0]==="."||V)&&s(p,ne,null,P[ne],void 0,M)}else if(P.onClick)s(p,"onClick",null,P.onClick,void 0,M);else if(R&4&&ct(P.style))for(const V in P.style)P.style[V]}let J;(J=P&&P.onVnodeBeforeMount)&&Oe(J,M,g),F&&Ue(g,null,M,"beforeMount"),((J=P&&P.onVnodeMounted)||F||U)&&Ao(()=>{J&&Oe(J,M,g),U&&X.enter(p),F&&Ue(g,null,M,"mounted")},j)}return p.nextSibling},v=(p,g,M,j,O,k,E)=>{E=E||!!g.dynamicChildren;const P=g.children,R=P.length;for(let w=0;w<R;w++){const F=E?P[w]:P[w]=Pe(P[w]),X=F.type===St;p?(X&&!E&&w+1<R&&Pe(P[w+1]).type===St&&(c(r(p.data.slice(F.children.length)),M,i(p)),p.data=F.children),p=d(p,F,j,O,k,E)):X&&!F.children?c(F.el=r(""),M):(bn(M,1)||At(),n(null,F,M,null,j,O,_n(M),k))}return p},b=(p,g,M,j,O,k)=>{const{slotScopeIds:E}=g;E&&(O=O?O.concat(E):E);const P=o(p),R=v(i(p),g,P,M,j,O,k);return R&&Ot(R)&&R.data==="]"?i(g.anchor=R):(At(),c(g.anchor=f("]"),P,R),R)},_=(p,g,M,j,O,k)=>{if(bn(p.parentElement,1)||At(),g.el=null,k){const R=H(p);for(;;){const w=i(p);if(w&&w!==R)l(w);else break}}const E=i(p),P=o(p);return l(p),n(null,g,P,E,M,j,_n(P),O),M&&(M.vnode.el=g.el,ho(M,g.el)),E},H=(p,g="[",M="]")=>{let j=0;for(;p;)if(p=i(p),p&&Ot(p)&&(p.data===g&&j++,p.data===M)){if(j===0)return i(p);j--}return p},A=(p,g,M)=>{const j=g.parentNode;j&&j.replaceChild(p,g);let O=M;for(;O;)O.vnode.el===g&&(O.vnode.el=O.subTree.el=p),O=O.parent},$=p=>p.nodeType===1&&p.tagName==="TEMPLATE";return[a,d]}const Ar="data-allow-mismatch",uc={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function bn(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(Ar);)e=e.parentElement;const n=e&&e.getAttribute(Ar);if(n==null)return!1;if(n==="")return!0;{const s=n.split(",");return t===0&&s.includes("children")?!0:s.includes(uc[t])}}qn().requestIdleCallback;qn().cancelIdleCallback;function dc(e,t){if(Ot(e)&&e.data==="["){let n=1,s=e.nextSibling;for(;s;){if(s.nodeType===1){if(t(s)===!1)break}else if(Ot(s))if(s.data==="]"){if(--n===0)break}else s.data==="["&&n++;s=s.nextSibling}}else t(e)}const bt=e=>!!e.type.__asyncLoader;function kf(e){q(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:s,delay:r=200,hydrate:i,timeout:o,suspensible:l=!0,onError:c}=e;let f=null,a,d=0;const m=()=>(d++,f=null,v()),v=()=>{let b;return f||(b=f=t().catch(_=>{if(_=_ instanceof Error?_:new Error(String(_)),c)return new Promise((H,A)=>{c(_,()=>H(m()),()=>A(_),d+1)});throw _}).then(_=>b!==f&&f?f:(_&&(_.__esModule||_[Symbol.toStringTag]==="Module")&&(_=_.default),a=_,_)))};return nr({name:"AsyncComponentWrapper",__asyncLoader:v,__asyncHydrate(b,_,H){let A=!1;(_.bu||(_.bu=[])).push(()=>A=!0);const $=()=>{A||H()},p=i?()=>{const g=i($,M=>dc(b,M));g&&(_.bum||(_.bum=[])).push(g)}:$;a?p():v().then(()=>!_.isUnmounted&&p())},get __asyncResolved(){return a},setup(){const b=he;if(sr(b),a)return()=>wn(a,b);const _=p=>{f=null,an(p,b,13,!s)};if(l&&b.suspense||$t)return v().then(p=>()=>wn(p,b)).catch(p=>(_(p),()=>s?fe(s,{error:p}):null));const H=He(!1),A=He(),$=He(!!r);return r&&setTimeout(()=>{$.value=!1},r),o!=null&&setTimeout(()=>{if(!H.value&&!A.value){const p=new Error(`Async component timed out after ${o}ms.`);_(p),A.value=p}},o),v().then(()=>{H.value=!0,b.parent&&fn(b.parent.vnode)&&b.parent.update()}).catch(p=>{_(p),A.value=p}),()=>{if(H.value&&a)return wn(a,b);if(A.value&&s)return fe(s,{error:A.value});if(n&&!$.value)return wn(n,b)}}})}function wn(e,t){const{ref:n,props:s,children:r,ce:i}=t.vnode,o=fe(e,s,r);return o.ref=n,o.ce=i,delete t.vnode.ce,o}const fn=e=>e.type.__isKeepAlive;function hc(e,t){no(e,"a",t)}function pc(e,t){no(e,"da",t)}function no(e,t,n=he){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Zn(t,s,n),n){let r=n.parent;for(;r&&r.parent;)fn(r.parent.vnode)&&gc(s,t,n,r),r=r.parent}}function gc(e,t,n,s){const r=Zn(t,e,s,!0);es(()=>{Ks(s[t],r)},n)}function Zn(e,t,n=he,s=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{ze();const l=un(n),c=$e(t,n,e,o);return l(),Qe(),c});return s?r.unshift(i):r.push(i),i}}const nt=e=>(t,n=he)=>{(!$t||e==="sp")&&Zn(e,(...s)=>t(...s),n)},mc=nt("bm"),jt=nt("m"),vc=nt("bu"),yc=nt("u"),so=nt("bum"),es=nt("um"),_c=nt("sp"),bc=nt("rtg"),wc=nt("rtc");function Sc(e,t=he){Zn("ec",e,t)}const ro="components";function Wf(e,t){return oo(ro,e,!0,t)||e}const io=Symbol.for("v-ndc");function Uf(e){return le(e)?oo(ro,e,!1)||e:e||io}function oo(e,t,n=!0,s=!1){const r=pe||he;if(r){const i=r.type;{const l=sa(i,!1);if(l&&(l===t||l===Ie(t)||l===Kn(Ie(t))))return i}const o=Rr(r[e]||i[e],t)||Rr(r.appContext[e],t);return!o&&s?i:o}}function Rr(e,t){return e&&(e[t]||e[Ie(t)]||e[Kn(Ie(t))])}function Bf(e,t,n,s){let r;const i=n,o=K(e);if(o||le(e)){const l=o&&ct(e);let c=!1,f=!1;l&&(c=!Re(e),f=Ze(e),e=Jn(e)),r=new Array(e.length);for(let a=0,d=e.length;a<d;a++)r[a]=t(c?f?Dt(De(e[a])):De(e[a]):e[a],a,void 0,i)}else if(typeof e=="number"){r=new Array(e);for(let l=0;l<e;l++)r[l]=t(l+1,l,void 0,i)}else if(te(e))if(e[Symbol.iterator])r=Array.from(e,(l,c)=>t(l,c,void 0,i));else{const l=Object.keys(e);r=new Array(l.length);for(let c=0,f=l.length;c<f;c++){const a=l[c];r[c]=t(e[a],a,c,i)}}else r=[];return r}function Kf(e,t,n={},s,r){if(pe.ce||pe.parent&&bt(pe.parent)&&pe.parent.ce){const f=Object.keys(n).length>0;return t!=="default"&&(n.name=t),$s(),js(_e,null,[fe("slot",n,s&&s())],f?-2:64)}let i=e[t];i&&i._c&&(i._d=!1),$s();const o=i&&lo(i(n)),l=n.key||o&&o.key,c=js(_e,{key:(l&&!tt(l)?l:`_${t}`)+(!o&&s?"_fb":"")},o||(s?s():[]),o&&e._===1?64:-2);return!r&&c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),i&&i._c&&(i._d=!0),c}function lo(e){return e.some(t=>rn(t)?!(t.type===de||t.type===_e&&!lo(t.children)):!0)?e:null}function qf(e,t){const n={};for(const s in e)n[/[A-Z]/.test(s)?`on:${s}`:Cn(s)]=e[s];return n}const Ns=e=>e?Lo(e)?ns(e):Ns(e.parent):null,Jt=ue(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Ns(e.parent),$root:e=>Ns(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>ao(e),$forceUpdate:e=>e.f||(e.f=()=>{er(e.update)}),$nextTick:e=>e.n||(e.n=zn.bind(e.proxy)),$watch:e=>sc.bind(e)}),ds=(e,t)=>e!==ee&&!e.__isScriptSetup&&Q(e,t),Tc={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:i,accessCache:o,type:l,appContext:c}=e;if(t[0]!=="$"){const m=o[t];if(m!==void 0)switch(m){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(ds(s,t))return o[t]=1,s[t];if(r!==ee&&Q(r,t))return o[t]=2,r[t];if(Q(i,t))return o[t]=3,i[t];if(n!==ee&&Q(n,t))return o[t]=4,n[t];Fs&&(o[t]=0)}}const f=Jt[t];let a,d;if(f)return t==="$attrs"&&ye(e.attrs,"get",""),f(e);if((a=l.__cssModules)&&(a=a[t]))return a;if(n!==ee&&Q(n,t))return o[t]=4,n[t];if(d=c.config.globalProperties,Q(d,t))return d[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:i}=e;return ds(r,t)?(r[t]=n,!0):s!==ee&&Q(s,t)?(s[t]=n,!0):Q(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,props:i,type:o}},l){let c;return!!(n[l]||e!==ee&&l[0]!=="$"&&Q(e,l)||ds(t,l)||Q(i,l)||Q(s,l)||Q(Jt,l)||Q(r.config.globalProperties,l)||(c=o.__cssModules)&&c[l])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Q(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Gf(){return xc().slots}function xc(e){const t=xt();return t.setupContext||(t.setupContext=No(t))}function Mr(e){return K(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Fs=!0;function Ec(e){const t=ao(e),n=e.proxy,s=e.ctx;Fs=!1,t.beforeCreate&&Or(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:o,watch:l,provide:c,inject:f,created:a,beforeMount:d,mounted:m,beforeUpdate:v,updated:b,activated:_,deactivated:H,beforeDestroy:A,beforeUnmount:$,destroyed:p,unmounted:g,render:M,renderTracked:j,renderTriggered:O,errorCaptured:k,serverPrefetch:E,expose:P,inheritAttrs:R,components:w,directives:F,filters:X}=t;if(f&&Cc(f,s,null),o)for(const J in o){const V=o[J];q(V)&&(s[J]=V.bind(n))}if(r){const J=r.call(n,n);te(J)&&(e.data=Ht(J))}if(Fs=!0,i)for(const J in i){const V=i[J],ne=q(V)?V.bind(n,n):q(V.get)?V.get.bind(n,n):Be,dn=!q(V)&&q(V.set)?V.set.bind(n):Be,dt=ie({get:ne,set:dn});Object.defineProperty(s,J,{enumerable:!0,configurable:!0,get:()=>dt.value,set:Ve=>dt.value=Ve})}if(l)for(const J in l)co(l[J],s,n,J);if(c){const J=q(c)?c.call(n):c;Reflect.ownKeys(J).forEach(V=>{ec(V,J[V])})}a&&Or(a,e,"c");function U(J,V){K(V)?V.forEach(ne=>J(ne.bind(n))):V&&J(V.bind(n))}if(U(mc,d),U(jt,m),U(vc,v),U(yc,b),U(hc,_),U(pc,H),U(Sc,k),U(wc,j),U(bc,O),U(so,$),U(es,g),U(_c,E),K(P))if(P.length){const J=e.exposed||(e.exposed={});P.forEach(V=>{Object.defineProperty(J,V,{get:()=>n[V],set:ne=>n[V]=ne,enumerable:!0})})}else e.exposed||(e.exposed={});M&&e.render===Be&&(e.render=M),R!=null&&(e.inheritAttrs=R),w&&(e.components=w),F&&(e.directives=F),E&&sr(e)}function Cc(e,t,n=Be){K(e)&&(e=Hs(e));for(const s in e){const r=e[s];let i;te(r)?"default"in r?i=_t(r.from||s,r.default,!0):i=_t(r.from||s):i=_t(r),ae(i)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[s]=i}}function Or(e,t,n){$e(K(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function co(e,t,n,s){let r=s.includes(".")?qi(n,s):()=>n[s];if(le(e)){const i=t[e];q(i)&&Le(r,i)}else if(q(e))Le(r,e.bind(n));else if(te(e))if(K(e))e.forEach(i=>co(i,t,n,s));else{const i=q(e.handler)?e.handler.bind(n):t[e.handler];q(i)&&Le(r,i,e)}}function ao(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,l=i.get(t);let c;return l?c=l:!r.length&&!n&&!s?c=t:(c={},r.length&&r.forEach(f=>jn(c,f,o,!0)),jn(c,t,o)),te(t)&&i.set(t,c),c}function jn(e,t,n,s=!1){const{mixins:r,extends:i}=t;i&&jn(e,i,n,!0),r&&r.forEach(o=>jn(e,o,n,!0));for(const o in t)if(!(s&&o==="expose")){const l=Ac[o]||n&&n[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const Ac={data:Pr,props:Lr,emits:Lr,methods:Bt,computed:Bt,beforeCreate:be,created:be,beforeMount:be,mounted:be,beforeUpdate:be,updated:be,beforeDestroy:be,beforeUnmount:be,destroyed:be,unmounted:be,activated:be,deactivated:be,errorCaptured:be,serverPrefetch:be,components:Bt,directives:Bt,watch:Mc,provide:Pr,inject:Rc};function Pr(e,t){return t?e?function(){return ue(q(e)?e.call(this,this):e,q(t)?t.call(this,this):t)}:t:e}function Rc(e,t){return Bt(Hs(e),Hs(t))}function Hs(e){if(K(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function be(e,t){return e?[...new Set([].concat(e,t))]:t}function Bt(e,t){return e?ue(Object.create(null),e,t):t}function Lr(e,t){return e?K(e)&&K(t)?[...new Set([...e,...t])]:ue(Object.create(null),Mr(e),Mr(t??{})):t}function Mc(e,t){if(!e)return t;if(!t)return e;const n=ue(Object.create(null),e);for(const s in t)n[s]=be(e[s],t[s]);return n}function fo(){return{app:null,config:{isNativeTag:gi,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Oc=0;function Pc(e,t){return function(s,r=null){q(s)||(s=ue({},s)),r!=null&&!te(r)&&(r=null);const i=fo(),o=new WeakSet,l=[];let c=!1;const f=i.app={_uid:Oc++,_component:s,_props:r,_container:null,_context:i,_instance:null,version:ia,get config(){return i.config},set config(a){},use(a,...d){return o.has(a)||(a&&q(a.install)?(o.add(a),a.install(f,...d)):q(a)&&(o.add(a),a(f,...d))),f},mixin(a){return i.mixins.includes(a)||i.mixins.push(a),f},component(a,d){return d?(i.components[a]=d,f):i.components[a]},directive(a,d){return d?(i.directives[a]=d,f):i.directives[a]},mount(a,d,m){if(!c){const v=f._ceVNode||fe(s,r);return v.appContext=i,m===!0?m="svg":m===!1&&(m=void 0),d&&t?t(v,a):e(v,a,m),c=!0,f._container=a,a.__vue_app__=f,ns(v.component)}},onUnmount(a){l.push(a)},unmount(){c&&($e(l,f._instance,16),e(null,f._container),delete f._container.__vue_app__)},provide(a,d){return i.provides[a]=d,f},runWithContext(a){const d=wt;wt=f;try{return a()}finally{wt=d}}};return f}}let wt=null;const Lc=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ie(t)}Modifiers`]||e[`${ut(t)}Modifiers`];function Ic(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||ee;let r=n;const i=t.startsWith("update:"),o=i&&Lc(s,t.slice(7));o&&(o.trim&&(r=n.map(a=>le(a)?a.trim():a)),o.number&&(r=n.map(qs)));let l,c=s[l=Cn(t)]||s[l=Cn(Ie(t))];!c&&i&&(c=s[l=Cn(ut(t))]),c&&$e(c,e,6,r);const f=s[l+"Once"];if(f){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,$e(f,e,6,r)}}const Nc=new WeakMap;function uo(e,t,n=!1){const s=n?Nc:t.emitsCache,r=s.get(e);if(r!==void 0)return r;const i=e.emits;let o={},l=!1;if(!q(e)){const c=f=>{const a=uo(f,t,!0);a&&(l=!0,ue(o,a))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!i&&!l?(te(e)&&s.set(e,null),null):(K(i)?i.forEach(c=>o[c]=null):ue(o,i),te(e)&&s.set(e,o),o)}function ts(e,t){return!e||!ln(t)?!1:(t=t.slice(2).replace(/Once$/,""),Q(e,t[0].toLowerCase()+t.slice(1))||Q(e,ut(t))||Q(e,t))}function hs(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[i],slots:o,attrs:l,emit:c,render:f,renderCache:a,props:d,data:m,setupState:v,ctx:b,inheritAttrs:_}=e,H=Dn(e);let A,$;try{if(n.shapeFlag&4){const g=r||s,M=g;A=Pe(f.call(M,g,a,d,v,m,b)),$=l}else{const g=t;A=Pe(g.length>1?g(d,{attrs:l,slots:o,emit:c}):g(d,null)),$=t.props?l:Fc(l)}}catch(g){Yt.length=0,an(g,e,1),A=fe(de)}let p=A;if($&&_!==!1){const g=Object.keys($),{shapeFlag:M}=p;g.length&&M&7&&(i&&g.some(Bs)&&($=Hc($,i)),p=at(p,$,!1,!0))}return n.dirs&&(p=at(p,null,!1,!0),p.dirs=p.dirs?p.dirs.concat(n.dirs):n.dirs),n.transition&&nn(p,n.transition),A=p,Dn(H),A}const Fc=e=>{let t;for(const n in e)(n==="class"||n==="style"||ln(n))&&((t||(t={}))[n]=e[n]);return t},Hc=(e,t)=>{const n={};for(const s in e)(!Bs(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Dc(e,t,n){const{props:s,children:r,component:i}=e,{props:o,children:l,patchFlag:c}=t,f=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?Ir(s,o,f):!!o;if(c&8){const a=t.dynamicProps;for(let d=0;d<a.length;d++){const m=a[d];if(o[m]!==s[m]&&!ts(f,m))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:s===o?!1:s?o?Ir(s,o,f):!0:!!o;return!1}function Ir(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let r=0;r<s.length;r++){const i=s[r];if(t[i]!==e[i]&&!ts(n,i))return!0}return!1}function ho({vnode:e,parent:t},n){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s===e)(e=t.vnode).el=n,t=t.parent;else break}}const po={},go=()=>Object.create(po),mo=e=>Object.getPrototypeOf(e)===po;function $c(e,t,n,s=!1){const r={},i=go();e.propsDefaults=Object.create(null),vo(e,t,r,i);for(const o in e.propsOptions[0])o in r||(r[o]=void 0);n?e.props=s?r:Dl(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function jc(e,t,n,s){const{props:r,attrs:i,vnode:{patchFlag:o}}=e,l=z(r),[c]=e.propsOptions;let f=!1;if((s||o>0)&&!(o&16)){if(o&8){const a=e.vnode.dynamicProps;for(let d=0;d<a.length;d++){let m=a[d];if(ts(e.emitsOptions,m))continue;const v=t[m];if(c)if(Q(i,m))v!==i[m]&&(i[m]=v,f=!0);else{const b=Ie(m);r[b]=Ds(c,l,b,v,e,!1)}else v!==i[m]&&(i[m]=v,f=!0)}}}else{vo(e,t,r,i)&&(f=!0);let a;for(const d in l)(!t||!Q(t,d)&&((a=ut(d))===d||!Q(t,a)))&&(c?n&&(n[d]!==void 0||n[a]!==void 0)&&(r[d]=Ds(c,l,d,void 0,e,!0)):delete r[d]);if(i!==l)for(const d in i)(!t||!Q(t,d))&&(delete i[d],f=!0)}f&&Xe(e.attrs,"set","")}function vo(e,t,n,s){const[r,i]=e.propsOptions;let o=!1,l;if(t)for(let c in t){if(It(c))continue;const f=t[c];let a;r&&Q(r,a=Ie(c))?!i||!i.includes(a)?n[a]=f:(l||(l={}))[a]=f:ts(e.emitsOptions,c)||(!(c in s)||f!==s[c])&&(s[c]=f,o=!0)}if(i){const c=z(n),f=l||ee;for(let a=0;a<i.length;a++){const d=i[a];n[d]=Ds(r,c,d,f[d],e,!Q(f,d))}}return o}function Ds(e,t,n,s,r,i){const o=e[n];if(o!=null){const l=Q(o,"default");if(l&&s===void 0){const c=o.default;if(o.type!==Function&&!o.skipFactory&&q(c)){const{propsDefaults:f}=r;if(n in f)s=f[n];else{const a=un(r);s=f[n]=c.call(null,t),a()}}else s=c;r.ce&&r.ce._setProp(n,s)}o[0]&&(i&&!l?s=!1:o[1]&&(s===""||s===ut(n))&&(s=!0))}return s}const Vc=new WeakMap;function yo(e,t,n=!1){const s=n?Vc:t.propsCache,r=s.get(e);if(r)return r;const i=e.props,o={},l=[];let c=!1;if(!q(e)){const a=d=>{c=!0;const[m,v]=yo(d,t,!0);ue(o,m),v&&l.push(...v)};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}if(!i&&!c)return te(e)&&s.set(e,Pt),Pt;if(K(i))for(let a=0;a<i.length;a++){const d=Ie(i[a]);Nr(d)&&(o[d]=ee)}else if(i)for(const a in i){const d=Ie(a);if(Nr(d)){const m=i[a],v=o[d]=K(m)||q(m)?{type:m}:ue({},m),b=v.type;let _=!1,H=!0;if(K(b))for(let A=0;A<b.length;++A){const $=b[A],p=q($)&&$.name;if(p==="Boolean"){_=!0;break}else p==="String"&&(H=!1)}else _=q(b)&&b.name==="Boolean";v[0]=_,v[1]=H,(_||Q(v,"default"))&&l.push(d)}}const f=[o,l];return te(e)&&s.set(e,f),f}function Nr(e){return e[0]!=="$"&&!It(e)}const rr=e=>e==="_"||e==="_ctx"||e==="$stable",ir=e=>K(e)?e.map(Pe):[Pe(e)],kc=(e,t,n)=>{if(t._n)return t;const s=Zl((...r)=>ir(t(...r)),n);return s._c=!1,s},_o=(e,t,n)=>{const s=e._ctx;for(const r in e){if(rr(r))continue;const i=e[r];if(q(i))t[r]=kc(r,i,s);else if(i!=null){const o=ir(i);t[r]=()=>o}}},bo=(e,t)=>{const n=ir(t);e.slots.default=()=>n},wo=(e,t,n)=>{for(const s in t)(n||!rr(s))&&(e[s]=t[s])},Wc=(e,t,n)=>{const s=e.slots=go();if(e.vnode.shapeFlag&32){const r=t._;r?(wo(s,t,n),n&&bi(s,"_",r,!0)):_o(t,s)}else t&&bo(e,t)},Uc=(e,t,n)=>{const{vnode:s,slots:r}=e;let i=!0,o=ee;if(s.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:wo(r,t,n):(i=!t.$stable,_o(t,r)),o=t}else t&&(bo(e,t),o={default:1});if(i)for(const l in r)!rr(l)&&o[l]==null&&delete r[l]},we=Ao;function Bc(e){return So(e)}function Kc(e){return So(e,fc)}function So(e,t){const n=qn();n.__VUE__=!0;const{insert:s,remove:r,patchProp:i,createElement:o,createText:l,createComment:c,setText:f,setElementText:a,parentNode:d,nextSibling:m,setScopeId:v=Be,insertStaticContent:b}=e,_=(u,h,y,C=null,S=null,T=null,N=void 0,I=null,L=!!h.dynamicChildren)=>{if(u===h)return;u&&!vt(u,h)&&(C=hn(u),Ve(u,S,T,!0),u=null),h.patchFlag===-2&&(L=!1,h.dynamicChildren=null);const{type:x,ref:B,shapeFlag:D}=h;switch(x){case St:H(u,h,y,C);break;case de:A(u,h,y,C);break;case Xt:u==null&&$(h,y,C,N);break;case _e:w(u,h,y,C,S,T,N,I,L);break;default:D&1?M(u,h,y,C,S,T,N,I,L):D&6?F(u,h,y,C,S,T,N,I,L):(D&64||D&128)&&x.process(u,h,y,C,S,T,N,I,L,Et)}B!=null&&S?Ft(B,u&&u.ref,T,h||u,!h):B==null&&u&&u.ref!=null&&Ft(u.ref,null,T,u,!0)},H=(u,h,y,C)=>{if(u==null)s(h.el=l(h.children),y,C);else{const S=h.el=u.el;h.children!==u.children&&f(S,h.children)}},A=(u,h,y,C)=>{u==null?s(h.el=c(h.children||""),y,C):h.el=u.el},$=(u,h,y,C)=>{[u.el,u.anchor]=b(u.children,h,y,C,u.el,u.anchor)},p=({el:u,anchor:h},y,C)=>{let S;for(;u&&u!==h;)S=m(u),s(u,y,C),u=S;s(h,y,C)},g=({el:u,anchor:h})=>{let y;for(;u&&u!==h;)y=m(u),r(u),u=y;r(h)},M=(u,h,y,C,S,T,N,I,L)=>{if(h.type==="svg"?N="svg":h.type==="math"&&(N="mathml"),u==null)j(h,y,C,S,T,N,I,L);else{const x=u.el&&u.el._isVueCE?u.el:null;try{x&&x._beginPatch(),E(u,h,S,T,N,I,L)}finally{x&&x._endPatch()}}},j=(u,h,y,C,S,T,N,I)=>{let L,x;const{props:B,shapeFlag:D,transition:W,dirs:G}=u;if(L=u.el=o(u.type,T,B&&B.is,B),D&8?a(L,u.children):D&16&&k(u.children,L,null,C,S,ps(u,T),N,I),G&&Ue(u,null,C,"created"),O(L,u,u.scopeId,N,C),B){for(const se in B)se!=="value"&&!It(se)&&i(L,se,null,B[se],T,C);"value"in B&&i(L,"value",null,B.value,T),(x=B.onVnodeBeforeMount)&&Oe(x,C,u)}G&&Ue(u,null,C,"beforeMount");const Y=To(S,W);Y&&W.beforeEnter(L),s(L,h,y),((x=B&&B.onVnodeMounted)||Y||G)&&we(()=>{x&&Oe(x,C,u),Y&&W.enter(L),G&&Ue(u,null,C,"mounted")},S)},O=(u,h,y,C,S)=>{if(y&&v(u,y),C)for(let T=0;T<C.length;T++)v(u,C[T]);if(S){let T=S.subTree;if(h===T||Co(T.type)&&(T.ssContent===h||T.ssFallback===h)){const N=S.vnode;O(u,N,N.scopeId,N.slotScopeIds,S.parent)}}},k=(u,h,y,C,S,T,N,I,L=0)=>{for(let x=L;x<u.length;x++){const B=u[x]=I?ot(u[x]):Pe(u[x]);_(null,B,h,y,C,S,T,N,I)}},E=(u,h,y,C,S,T,N)=>{const I=h.el=u.el;let{patchFlag:L,dynamicChildren:x,dirs:B}=h;L|=u.patchFlag&16;const D=u.props||ee,W=h.props||ee;let G;if(y&&ht(y,!1),(G=W.onVnodeBeforeUpdate)&&Oe(G,y,h,u),B&&Ue(h,u,y,"beforeUpdate"),y&&ht(y,!0),(D.innerHTML&&W.innerHTML==null||D.textContent&&W.textContent==null)&&a(I,""),x?P(u.dynamicChildren,x,I,y,C,ps(h,S),T):N||V(u,h,I,null,y,C,ps(h,S),T,!1),L>0){if(L&16)R(I,D,W,y,S);else if(L&2&&D.class!==W.class&&i(I,"class",null,W.class,S),L&4&&i(I,"style",D.style,W.style,S),L&8){const Y=h.dynamicProps;for(let se=0;se<Y.length;se++){const Z=Y[se],Te=D[Z],ge=W[Z];(ge!==Te||Z==="value")&&i(I,Z,Te,ge,S,y)}}L&1&&u.children!==h.children&&a(I,h.children)}else!N&&x==null&&R(I,D,W,y,S);((G=W.onVnodeUpdated)||B)&&we(()=>{G&&Oe(G,y,h,u),B&&Ue(h,u,y,"updated")},C)},P=(u,h,y,C,S,T,N)=>{for(let I=0;I<h.length;I++){const L=u[I],x=h[I],B=L.el&&(L.type===_e||!vt(L,x)||L.shapeFlag&198)?d(L.el):y;_(L,x,B,null,C,S,T,N,!0)}},R=(u,h,y,C,S)=>{if(h!==y){if(h!==ee)for(const T in h)!It(T)&&!(T in y)&&i(u,T,h[T],null,S,C);for(const T in y){if(It(T))continue;const N=y[T],I=h[T];N!==I&&T!=="value"&&i(u,T,I,N,S,C)}"value"in y&&i(u,"value",h.value,y.value,S)}},w=(u,h,y,C,S,T,N,I,L)=>{const x=h.el=u?u.el:l(""),B=h.anchor=u?u.anchor:l("");let{patchFlag:D,dynamicChildren:W,slotScopeIds:G}=h;G&&(I=I?I.concat(G):G),u==null?(s(x,y,C),s(B,y,C),k(h.children||[],y,B,S,T,N,I,L)):D>0&&D&64&&W&&u.dynamicChildren&&u.dynamicChildren.length===W.length?(P(u.dynamicChildren,W,y,S,T,N,I),(h.key!=null||S&&h===S.subTree)&&or(u,h,!0)):V(u,h,y,B,S,T,N,I,L)},F=(u,h,y,C,S,T,N,I,L)=>{h.slotScopeIds=I,u==null?h.shapeFlag&512?S.ctx.activate(h,y,C,N,L):X(h,y,C,S,T,N,L):oe(u,h,L)},X=(u,h,y,C,S,T,N)=>{const I=u.component=Zc(u,C,S);if(fn(u)&&(I.ctx.renderer=Et),ea(I,!1,N),I.asyncDep){if(S&&S.registerDep(I,U,N),!u.el){const L=I.subTree=fe(de);A(null,L,h,y),u.placeholder=L.el}}else U(I,u,h,y,S,T,N)},oe=(u,h,y)=>{const C=h.component=u.component;if(Dc(u,h,y))if(C.asyncDep&&!C.asyncResolved){J(C,h,y);return}else C.next=h,C.update();else h.el=u.el,C.vnode=h},U=(u,h,y,C,S,T,N)=>{const I=()=>{if(u.isMounted){let{next:D,bu:W,u:G,parent:Y,vnode:se}=u;{const Ee=xo(u);if(Ee){D&&(D.el=se.el,J(u,D,N)),Ee.asyncDep.then(()=>{u.isUnmounted||I()});return}}let Z=D,Te;ht(u,!1),D?(D.el=se.el,J(u,D,N)):D=se,W&&An(W),(Te=D.props&&D.props.onVnodeBeforeUpdate)&&Oe(Te,Y,D,se),ht(u,!0);const ge=hs(u),Ne=u.subTree;u.subTree=ge,_(Ne,ge,d(Ne.el),hn(Ne),u,S,T),D.el=ge.el,Z===null&&ho(u,ge.el),G&&we(G,S),(Te=D.props&&D.props.onVnodeUpdated)&&we(()=>Oe(Te,Y,D,se),S)}else{let D;const{el:W,props:G}=h,{bm:Y,m:se,parent:Z,root:Te,type:ge}=u,Ne=bt(h);if(ht(u,!1),Y&&An(Y),!Ne&&(D=G&&G.onVnodeBeforeMount)&&Oe(D,Z,h),ht(u,!0),W&&os){const Ee=()=>{u.subTree=hs(u),os(W,u.subTree,u,S,null)};Ne&&ge.__asyncHydrate?ge.__asyncHydrate(W,u,Ee):Ee()}else{Te.ce&&Te.ce._def.shadowRoot!==!1&&Te.ce._injectChildStyle(ge);const Ee=u.subTree=hs(u);_(null,Ee,y,C,u,S,T),h.el=Ee.el}if(se&&we(se,S),!Ne&&(D=G&&G.onVnodeMounted)){const Ee=h;we(()=>Oe(D,Z,Ee),S)}(h.shapeFlag&256||Z&&bt(Z.vnode)&&Z.vnode.shapeFlag&256)&&u.a&&we(u.a,S),u.isMounted=!0,h=y=C=null}};u.scope.on();const L=u.effect=new Ei(I);u.scope.off();const x=u.update=L.run.bind(L),B=u.job=L.runIfDirty.bind(L);B.i=u,B.id=u.uid,L.scheduler=()=>er(B),ht(u,!0),x()},J=(u,h,y)=>{h.component=u;const C=u.vnode.props;u.vnode=h,u.next=null,jc(u,h.props,C,y),Uc(u,h.children,y),ze(),br(u),Qe()},V=(u,h,y,C,S,T,N,I,L=!1)=>{const x=u&&u.children,B=u?u.shapeFlag:0,D=h.children,{patchFlag:W,shapeFlag:G}=h;if(W>0){if(W&128){dn(x,D,y,C,S,T,N,I,L);return}else if(W&256){ne(x,D,y,C,S,T,N,I,L);return}}G&8?(B&16&&Vt(x,S,T),D!==x&&a(y,D)):B&16?G&16?dn(x,D,y,C,S,T,N,I,L):Vt(x,S,T,!0):(B&8&&a(y,""),G&16&&k(D,y,C,S,T,N,I,L))},ne=(u,h,y,C,S,T,N,I,L)=>{u=u||Pt,h=h||Pt;const x=u.length,B=h.length,D=Math.min(x,B);let W;for(W=0;W<D;W++){const G=h[W]=L?ot(h[W]):Pe(h[W]);_(u[W],G,y,null,S,T,N,I,L)}x>B?Vt(u,S,T,!0,!1,D):k(h,y,C,S,T,N,I,L,D)},dn=(u,h,y,C,S,T,N,I,L)=>{let x=0;const B=h.length;let D=u.length-1,W=B-1;for(;x<=D&&x<=W;){const G=u[x],Y=h[x]=L?ot(h[x]):Pe(h[x]);if(vt(G,Y))_(G,Y,y,null,S,T,N,I,L);else break;x++}for(;x<=D&&x<=W;){const G=u[D],Y=h[W]=L?ot(h[W]):Pe(h[W]);if(vt(G,Y))_(G,Y,y,null,S,T,N,I,L);else break;D--,W--}if(x>D){if(x<=W){const G=W+1,Y=G<B?h[G].el:C;for(;x<=W;)_(null,h[x]=L?ot(h[x]):Pe(h[x]),y,Y,S,T,N,I,L),x++}}else if(x>W)for(;x<=D;)Ve(u[x],S,T,!0),x++;else{const G=x,Y=x,se=new Map;for(x=Y;x<=W;x++){const Ce=h[x]=L?ot(h[x]):Pe(h[x]);Ce.key!=null&&se.set(Ce.key,x)}let Z,Te=0;const ge=W-Y+1;let Ne=!1,Ee=0;const kt=new Array(ge);for(x=0;x<ge;x++)kt[x]=0;for(x=G;x<=D;x++){const Ce=u[x];if(Te>=ge){Ve(Ce,S,T,!0);continue}let ke;if(Ce.key!=null)ke=se.get(Ce.key);else for(Z=Y;Z<=W;Z++)if(kt[Z-Y]===0&&vt(Ce,h[Z])){ke=Z;break}ke===void 0?Ve(Ce,S,T,!0):(kt[ke-Y]=x+1,ke>=Ee?Ee=ke:Ne=!0,_(Ce,h[ke],y,null,S,T,N,I,L),Te++)}const pr=Ne?qc(kt):Pt;for(Z=pr.length-1,x=ge-1;x>=0;x--){const Ce=Y+x,ke=h[Ce],gr=h[Ce+1],mr=Ce+1<B?gr.el||Eo(gr):C;kt[x]===0?_(null,ke,y,mr,S,T,N,I,L):Ne&&(Z<0||x!==pr[Z]?dt(ke,y,mr,2):Z--)}}},dt=(u,h,y,C,S=null)=>{const{el:T,type:N,transition:I,children:L,shapeFlag:x}=u;if(x&6){dt(u.component.subTree,h,y,C);return}if(x&128){u.suspense.move(h,y,C);return}if(x&64){N.move(u,h,y,Et);return}if(N===_e){s(T,h,y);for(let D=0;D<L.length;D++)dt(L[D],h,y,C);s(u.anchor,h,y);return}if(N===Xt){p(u,h,y);return}if(C!==2&&x&1&&I)if(C===0)I.beforeEnter(T),s(T,h,y),we(()=>I.enter(T),S);else{const{leave:D,delayLeave:W,afterLeave:G}=I,Y=()=>{u.ctx.isUnmounted?r(T):s(T,h,y)},se=()=>{T._isLeaving&&T[Je](!0),D(T,()=>{Y(),G&&G()})};W?W(T,Y,se):se()}else s(T,h,y)},Ve=(u,h,y,C=!1,S=!1)=>{const{type:T,props:N,ref:I,children:L,dynamicChildren:x,shapeFlag:B,patchFlag:D,dirs:W,cacheIndex:G}=u;if(D===-2&&(S=!1),I!=null&&(ze(),Ft(I,null,y,u,!0),Qe()),G!=null&&(h.renderCache[G]=void 0),B&256){h.ctx.deactivate(u);return}const Y=B&1&&W,se=!bt(u);let Z;if(se&&(Z=N&&N.onVnodeBeforeUnmount)&&Oe(Z,h,u),B&6)sl(u.component,y,C);else{if(B&128){u.suspense.unmount(y,C);return}Y&&Ue(u,null,h,"beforeUnmount"),B&64?u.type.remove(u,h,y,Et,C):x&&!x.hasOnce&&(T!==_e||D>0&&D&64)?Vt(x,h,y,!1,!0):(T===_e&&D&384||!S&&B&16)&&Vt(L,h,y),C&&dr(u)}(se&&(Z=N&&N.onVnodeUnmounted)||Y)&&we(()=>{Z&&Oe(Z,h,u),Y&&Ue(u,null,h,"unmounted")},y)},dr=u=>{const{type:h,el:y,anchor:C,transition:S}=u;if(h===_e){nl(y,C);return}if(h===Xt){g(u);return}const T=()=>{r(y),S&&!S.persisted&&S.afterLeave&&S.afterLeave()};if(u.shapeFlag&1&&S&&!S.persisted){const{leave:N,delayLeave:I}=S,L=()=>N(y,T);I?I(u.el,T,L):L()}else T()},nl=(u,h)=>{let y;for(;u!==h;)y=m(u),r(u),u=y;r(h)},sl=(u,h,y)=>{const{bum:C,scope:S,job:T,subTree:N,um:I,m:L,a:x}=u;Fr(L),Fr(x),C&&An(C),S.stop(),T&&(T.flags|=8,Ve(N,u,h,y)),I&&we(I,h),we(()=>{u.isUnmounted=!0},h)},Vt=(u,h,y,C=!1,S=!1,T=0)=>{for(let N=T;N<u.length;N++)Ve(u[N],h,y,C,S)},hn=u=>{if(u.shapeFlag&6)return hn(u.component.subTree);if(u.shapeFlag&128)return u.suspense.next();const h=m(u.anchor||u.el),y=h&&h[Gi];return y?m(y):h};let rs=!1;const hr=(u,h,y)=>{let C;u==null?h._vnode&&(Ve(h._vnode,null,null,!0),C=h._vnode.component):_(h._vnode||null,u,h,null,null,null,y),h._vnode=u,rs||(rs=!0,br(C),Hn(),rs=!1)},Et={p:_,um:Ve,m:dt,r:dr,mt:X,mc:k,pc:V,pbc:P,n:hn,o:e};let is,os;return t&&([is,os]=t(Et)),{render:hr,hydrate:is,createApp:Pc(hr,is)}}function ps({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function ht({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function To(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function or(e,t,n=!1){const s=e.children,r=t.children;if(K(s)&&K(r))for(let i=0;i<s.length;i++){const o=s[i];let l=r[i];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[i]=ot(r[i]),l.el=o.el),!n&&l.patchFlag!==-2&&or(o,l)),l.type===St&&(l.patchFlag!==-1?l.el=o.el:l.__elIndex=i+(e.type===_e?1:0)),l.type===de&&!l.el&&(l.el=o.el)}}function qc(e){const t=e.slice(),n=[0];let s,r,i,o,l;const c=e.length;for(s=0;s<c;s++){const f=e[s];if(f!==0){if(r=n[n.length-1],e[r]<f){t[s]=r,n.push(s);continue}for(i=0,o=n.length-1;i<o;)l=i+o>>1,e[n[l]]<f?i=l+1:o=l;f<e[n[i]]&&(i>0&&(t[s]=n[i-1]),n[i]=s)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}function xo(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:xo(t)}function Fr(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Eo(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Eo(t.subTree):null}const Co=e=>e.__isSuspense;function Ao(e,t){t&&t.pendingBranch?K(e)?t.effects.push(...e):t.effects.push(e):Ql(e)}const _e=Symbol.for("v-fgt"),St=Symbol.for("v-txt"),de=Symbol.for("v-cmt"),Xt=Symbol.for("v-stc"),Yt=[];let Ae=null;function $s(e=!1){Yt.push(Ae=e?null:[])}function Gc(){Yt.pop(),Ae=Yt[Yt.length-1]||null}let sn=1;function Vn(e,t=!1){sn+=e,e<0&&Ae&&t&&(Ae.hasOnce=!0)}function Ro(e){return e.dynamicChildren=sn>0?Ae||Pt:null,Gc(),sn>0&&Ae&&Ae.push(e),e}function Jf(e,t,n,s,r,i){return Ro(Oo(e,t,n,s,r,i,!0))}function js(e,t,n,s,r){return Ro(fe(e,t,n,s,r,!0))}function rn(e){return e?e.__v_isVNode===!0:!1}function vt(e,t){return e.type===t.type&&e.key===t.key}const Mo=({key:e})=>e??null,On=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?le(e)||ae(e)||q(e)?{i:pe,r:e,k:t,f:!!n}:e:null);function Oo(e,t=null,n=null,s=0,r=null,i=e===_e?0:1,o=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Mo(t),ref:t&&On(t),scopeId:Bi,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:pe};return l?(lr(c,n),i&128&&e.normalize(c)):n&&(c.shapeFlag|=le(n)?8:16),sn>0&&!o&&Ae&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&Ae.push(c),c}const fe=Jc;function Jc(e,t=null,n=null,s=0,r=null,i=!1){if((!e||e===io)&&(e=de),rn(e)){const l=at(e,t,!0);return n&&lr(l,n),sn>0&&!i&&Ae&&(l.shapeFlag&6?Ae[Ae.indexOf(e)]=l:Ae.push(l)),l.patchFlag=-2,l}if(ra(e)&&(e=e.__vccOpts),t){t=Xc(t);let{class:l,style:c}=t;l&&!le(l)&&(t.class=Js(l)),te(c)&&(Xn(c)&&!K(c)&&(c=ue({},c)),t.style=Gs(c))}const o=le(e)?1:Co(e)?128:Ji(e)?64:te(e)?4:q(e)?2:0;return Oo(e,t,n,s,r,o,i,!0)}function Xc(e){return e?Xn(e)||mo(e)?ue({},e):e:null}function at(e,t,n=!1,s=!1){const{props:r,ref:i,patchFlag:o,children:l,transition:c}=e,f=t?Yc(r||{},t):r,a={__v_isVNode:!0,__v_skip:!0,type:e.type,props:f,key:f&&Mo(f),ref:t&&t.ref?n&&i?K(i)?i.concat(On(t)):[i,On(t)]:On(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==_e?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&at(e.ssContent),ssFallback:e.ssFallback&&at(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&s&&nn(a,c.clone(a)),a}function Po(e=" ",t=0){return fe(St,null,e,t)}function Xf(e,t){const n=fe(Xt,null,e);return n.staticCount=t,n}function Yf(e="",t=!1){return t?($s(),js(de,null,e)):fe(de,null,e)}function Pe(e){return e==null||typeof e=="boolean"?fe(de):K(e)?fe(_e,null,e.slice()):rn(e)?ot(e):fe(St,null,String(e))}function ot(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:at(e)}function lr(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(K(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),lr(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!mo(t)?t._ctx=pe:r===3&&pe&&(pe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else q(t)?(t={default:t,_ctx:pe},n=32):(t=String(t),s&64?(n=16,t=[Po(t)]):n=8);e.children=t,e.shapeFlag|=n}function Yc(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const r in s)if(r==="class")t.class!==s.class&&(t.class=Js([t.class,s.class]));else if(r==="style")t.style=Gs([t.style,s.style]);else if(ln(r)){const i=t[r],o=s[r];o&&i!==o&&!(K(i)&&i.includes(o))&&(t[r]=i?[].concat(i,o):o)}else r!==""&&(t[r]=s[r])}return t}function Oe(e,t,n,s=null){$e(e,t,7,[n,s])}const zc=fo();let Qc=0;function Zc(e,t,n){const s=e.type,r=(t?t.appContext:e.appContext)||zc,i={uid:Qc++,vnode:e,type:s,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new ml(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:yo(s,r),emitsOptions:uo(s,r),emit:null,emitted:null,propsDefaults:ee,inheritAttrs:s.inheritAttrs,ctx:ee,data:ee,props:ee,attrs:ee,slots:ee,refs:ee,setupState:ee,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=Ic.bind(null,i),e.ce&&e.ce(i),i}let he=null;const xt=()=>he||pe;let kn,Vs;{const e=qn(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),i=>{r.length>1?r.forEach(o=>o(i)):r[0](i)}};kn=t("__VUE_INSTANCE_SETTERS__",n=>he=n),Vs=t("__VUE_SSR_SETTERS__",n=>$t=n)}const un=e=>{const t=he;return kn(e),e.scope.on(),()=>{e.scope.off(),kn(t)}},Hr=()=>{he&&he.scope.off(),kn(null)};function Lo(e){return e.vnode.shapeFlag&4}let $t=!1;function ea(e,t=!1,n=!1){t&&Vs(t);const{props:s,children:r}=e.vnode,i=Lo(e);$c(e,s,i,t),Wc(e,r,n||t);const o=i?ta(e,t):void 0;return t&&Vs(!1),o}function ta(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Tc);const{setup:s}=n;if(s){ze();const r=e.setupContext=s.length>1?No(e):null,i=un(e),o=cn(s,e,0,[e.props,r]),l=vi(o);if(Qe(),i(),(l||e.sp)&&!bt(e)&&sr(e),l){if(o.then(Hr,Hr),t)return o.then(c=>{Dr(e,c)}).catch(c=>{an(c,e,0)});e.asyncDep=o}else Dr(e,o)}else Io(e)}function Dr(e,t,n){q(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:te(t)&&(e.setupState=Vi(t)),Io(e)}function Io(e,t,n){const s=e.type;e.render||(e.render=s.render||Be);{const r=un(e);ze();try{Ec(e)}finally{Qe(),r()}}}const na={get(e,t){return ye(e,"get",""),e[t]}};function No(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,na),slots:e.slots,emit:e.emit,expose:t}}function ns(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Vi(Rn(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Jt)return Jt[n](e)},has(t,n){return n in t||n in Jt}})):e.proxy}function sa(e,t=!0){return q(e)?e.displayName||e.name:e.name||t&&e.__name}function ra(e){return q(e)&&"__vccOpts"in e}const ie=(e,t)=>Gl(e,t,$t);function ks(e,t,n){try{Vn(-1);const s=arguments.length;return s===2?te(t)&&!K(t)?rn(t)?fe(e,null,[t]):fe(e,t):fe(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&rn(n)&&(n=[n]),fe(e,t,n))}finally{Vn(1)}}const ia="3.5.26";/**
16
- * @vue/runtime-dom v3.5.26
17
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
18
- * @license MIT
19
- **/let Ws;const $r=typeof window<"u"&&window.trustedTypes;if($r)try{Ws=$r.createPolicy("vue",{createHTML:e=>e})}catch{}const Fo=Ws?e=>Ws.createHTML(e):e=>e,oa="http://www.w3.org/2000/svg",la="http://www.w3.org/1998/Math/MathML",Ge=typeof document<"u"?document:null,jr=Ge&&Ge.createElement("template"),ca={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?Ge.createElementNS(oa,e):t==="mathml"?Ge.createElementNS(la,e):n?Ge.createElement(e,{is:n}):Ge.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>Ge.createTextNode(e),createComment:e=>Ge.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ge.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,i){const o=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{jr.innerHTML=Fo(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const l=jr.content;if(s==="svg"||s==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},st="transition",Ut="animation",on=Symbol("_vtc"),Ho={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},aa=ue({},zi,Ho),fa=e=>(e.displayName="Transition",e.props=aa,e),zf=fa((e,{slots:t})=>ks(lc,ua(e),t)),pt=(e,t=[])=>{K(e)?e.forEach(n=>n(...t)):e&&e(...t)},Vr=e=>e?K(e)?e.some(t=>t.length>1):e.length>1:!1;function ua(e){const t={};for(const w in e)w in Ho||(t[w]=e[w]);if(e.css===!1)return t;const{name:n="v",type:s,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=i,appearActiveClass:f=o,appearToClass:a=l,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:m=`${n}-leave-active`,leaveToClass:v=`${n}-leave-to`}=e,b=da(r),_=b&&b[0],H=b&&b[1],{onBeforeEnter:A,onEnter:$,onEnterCancelled:p,onLeave:g,onLeaveCancelled:M,onBeforeAppear:j=A,onAppear:O=$,onAppearCancelled:k=p}=t,E=(w,F,X,oe)=>{w._enterCancelled=oe,gt(w,F?a:l),gt(w,F?f:o),X&&X()},P=(w,F)=>{w._isLeaving=!1,gt(w,d),gt(w,v),gt(w,m),F&&F()},R=w=>(F,X)=>{const oe=w?O:$,U=()=>E(F,w,X);pt(oe,[F,U]),kr(()=>{gt(F,w?c:i),qe(F,w?a:l),Vr(oe)||Wr(F,s,_,U)})};return ue(t,{onBeforeEnter(w){pt(A,[w]),qe(w,i),qe(w,o)},onBeforeAppear(w){pt(j,[w]),qe(w,c),qe(w,f)},onEnter:R(!1),onAppear:R(!0),onLeave(w,F){w._isLeaving=!0;const X=()=>P(w,F);qe(w,d),w._enterCancelled?(qe(w,m),Kr(w)):(Kr(w),qe(w,m)),kr(()=>{w._isLeaving&&(gt(w,d),qe(w,v),Vr(g)||Wr(w,s,H,X))}),pt(g,[w,X])},onEnterCancelled(w){E(w,!1,void 0,!0),pt(p,[w])},onAppearCancelled(w){E(w,!0,void 0,!0),pt(k,[w])},onLeaveCancelled(w){P(w),pt(M,[w])}})}function da(e){if(e==null)return null;if(te(e))return[gs(e.enter),gs(e.leave)];{const t=gs(e);return[t,t]}}function gs(e){return cl(e)}function qe(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[on]||(e[on]=new Set)).add(t)}function gt(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[on];n&&(n.delete(t),n.size||(e[on]=void 0))}function kr(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let ha=0;function Wr(e,t,n,s){const r=e._endId=++ha,i=()=>{r===e._endId&&s()};if(n!=null)return setTimeout(i,n);const{type:o,timeout:l,propCount:c}=pa(e,t);if(!o)return s();const f=o+"end";let a=0;const d=()=>{e.removeEventListener(f,m),i()},m=v=>{v.target===e&&++a>=c&&d()};setTimeout(()=>{a<c&&d()},l+1),e.addEventListener(f,m)}function pa(e,t){const n=window.getComputedStyle(e),s=b=>(n[b]||"").split(", "),r=s(`${st}Delay`),i=s(`${st}Duration`),o=Ur(r,i),l=s(`${Ut}Delay`),c=s(`${Ut}Duration`),f=Ur(l,c);let a=null,d=0,m=0;t===st?o>0&&(a=st,d=o,m=i.length):t===Ut?f>0&&(a=Ut,d=f,m=c.length):(d=Math.max(o,f),a=d>0?o>f?st:Ut:null,m=a?a===st?i.length:c.length:0);const v=a===st&&/\b(?:transform|all)(?:,|$)/.test(s(`${st}Property`).toString());return{type:a,timeout:d,propCount:m,hasTransform:v}}function Ur(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,s)=>Br(n)+Br(e[s])))}function Br(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Kr(e){return(e?e.ownerDocument:document).body.offsetHeight}function ga(e,t,n){const s=e[on];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const qr=Symbol("_vod"),ma=Symbol("_vsh"),va=Symbol(""),ya=/(?:^|;)\s*display\s*:/;function _a(e,t,n){const s=e.style,r=le(n);let i=!1;if(n&&!r){if(t)if(le(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();n[l]==null&&Pn(s,l,"")}else for(const o in t)n[o]==null&&Pn(s,o,"");for(const o in n)o==="display"&&(i=!0),Pn(s,o,n[o])}else if(r){if(t!==n){const o=s[va];o&&(n+=";"+o),s.cssText=n,i=ya.test(n)}}else t&&e.removeAttribute("style");qr in e&&(e[qr]=i?s.display:"",e[ma]&&(s.display="none"))}const Gr=/\s*!important$/;function Pn(e,t,n){if(K(n))n.forEach(s=>Pn(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=ba(e,t);Gr.test(n)?e.setProperty(ut(s),n.replace(Gr,""),"important"):e[s]=n}}const Jr=["Webkit","Moz","ms"],ms={};function ba(e,t){const n=ms[t];if(n)return n;let s=Ie(t);if(s!=="filter"&&s in e)return ms[t]=s;s=Kn(s);for(let r=0;r<Jr.length;r++){const i=Jr[r]+s;if(i in e)return ms[t]=i}return t}const Xr="http://www.w3.org/1999/xlink";function Yr(e,t,n,s,r,i=pl(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Xr,t.slice(6,t.length)):e.setAttributeNS(Xr,t,n):n==null||i&&!wi(n)?e.removeAttribute(t):e.setAttribute(t,i?"":tt(n)?String(n):n)}function zr(e,t,n,s,r){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Fo(n):n);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const l=i==="OPTION"?e.getAttribute("value")||"":e.value,c=n==null?e.type==="checkbox"?"on":"":String(n);(l!==c||!("_value"in e))&&(e.value=c),n==null&&e.removeAttribute(t),e._value=n;return}let o=!1;if(n===""||n==null){const l=typeof e[t];l==="boolean"?n=wi(n):n==null&&l==="string"?(n="",o=!0):l==="number"&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(r||t)}function Mt(e,t,n,s){e.addEventListener(t,n,s)}function wa(e,t,n,s){e.removeEventListener(t,n,s)}const Qr=Symbol("_vei");function Sa(e,t,n,s,r=null){const i=e[Qr]||(e[Qr]={}),o=i[t];if(s&&o)o.value=s;else{const[l,c]=Ta(t);if(s){const f=i[t]=Ca(s,r);Mt(e,l,f,c)}else o&&(wa(e,l,o,c),i[t]=void 0)}}const Zr=/(?:Once|Passive|Capture)$/;function Ta(e){let t;if(Zr.test(e)){t={};let s;for(;s=e.match(Zr);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):ut(e.slice(2)),t]}let vs=0;const xa=Promise.resolve(),Ea=()=>vs||(xa.then(()=>vs=0),vs=Date.now());function Ca(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;$e(Aa(s,n.value),t,5,[s])};return n.value=e,n.attached=Ea(),n}function Aa(e,t){if(K(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const ei=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ra=(e,t,n,s,r,i)=>{const o=r==="svg";t==="class"?ga(e,s,o):t==="style"?_a(e,n,s):ln(t)?Bs(t)||Sa(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Ma(e,t,s,o))?(zr(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Yr(e,t,s,o,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!le(s))?zr(e,Ie(t),s,i,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Yr(e,t,s,o))};function Ma(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&ei(t)&&q(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return ei(t)&&le(n)?!1:t in e}const ti=e=>{const t=e.props["onUpdate:modelValue"]||!1;return K(t)?n=>An(t,n):t};function Oa(e){e.target.composing=!0}function ni(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ys=Symbol("_assign");function si(e,t,n){return t&&(e=e.trim()),n&&(e=qs(e)),e}const Qf={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e[ys]=ti(r);const i=s||r.props&&r.props.type==="number";Mt(e,t?"change":"input",o=>{o.target.composing||e[ys](si(e.value,n,i))}),(n||i)&&Mt(e,"change",()=>{e.value=si(e.value,n,i)}),t||(Mt(e,"compositionstart",Oa),Mt(e,"compositionend",ni),Mt(e,"change",ni))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:r,number:i}},o){if(e[ys]=ti(o),e.composing)return;const l=(i||e.type==="number")&&!/^0\d/.test(e.value)?qs(e.value):e.value,c=t??"";l!==c&&(document.activeElement===e&&e.type!=="range"&&(s&&t===n||r&&e.value.trim()===c)||(e.value=c))}},Pa=["ctrl","shift","alt","meta"],La={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Pa.some(n=>e[`${n}Key`]&&!t.includes(n))},Zf=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(r,...i)=>{for(let o=0;o<t.length;o++){const l=La[t[o]];if(l&&l(r,t))return}return e(r,...i)})},Ia={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},eu=(e,t)=>{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=r=>{if(!("key"in r))return;const i=ut(r.key);if(t.some(o=>o===i||Ia[o]===i))return e(r)})},Do=ue({patchProp:Ra},ca);let zt,ri=!1;function Na(){return zt||(zt=Bc(Do))}function Fa(){return zt=ri?zt:Kc(Do),ri=!0,zt}const tu=(...e)=>{const t=Na().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=jo(s);if(!r)return;const i=t._component;!q(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const o=n(r,!1,$o(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t},nu=(...e)=>{const t=Fa().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=jo(s);if(r)return n(r,!0,$o(r))},t};function $o(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function jo(e){return le(e)?document.querySelector(e):e}const Ha=window.__VP_SITE_DATA__;function Vo(e){return xi()?(vl(e),!0):!1}const _s=new WeakMap,Da=(...e)=>{var t;const n=e[0],s=(t=xt())==null?void 0:t.proxy;if(s==null&&!Ki())throw new Error("injectLocal must be called in setup");return s&&_s.has(s)&&n in _s.get(s)?_s.get(s)[n]:_t(...e)},ko=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const su=e=>e!=null,$a=Object.prototype.toString,ja=e=>$a.call(e)==="[object Object]",ft=()=>{},ii=Va();function Va(){var e,t;return ko&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function cr(e,t){function n(...s){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,s),{fn:t,thisArg:this,args:s})).then(r).catch(i)})}return n}const Wo=e=>e();function Uo(e,t={}){let n,s,r=ft;const i=c=>{clearTimeout(c),r(),r=ft};let o;return c=>{const f=ce(e),a=ce(t.maxWait);return n&&i(n),f<=0||a!==void 0&&a<=0?(s&&(i(s),s=null),Promise.resolve(c())):new Promise((d,m)=>{r=t.rejectOnCancel?m:d,o=c,a&&!s&&(s=setTimeout(()=>{n&&i(n),s=null,d(o())},a)),n=setTimeout(()=>{s&&i(s),s=null,d(c())},f)})}}function ka(...e){let t=0,n,s=!0,r=ft,i,o,l,c,f;!ae(e[0])&&typeof e[0]=="object"?{delay:o,trailing:l=!0,leading:c=!0,rejectOnCancel:f=!1}=e[0]:[o,l=!0,c=!0,f=!1]=e;const a=()=>{n&&(clearTimeout(n),n=void 0,r(),r=ft)};return m=>{const v=ce(o),b=Date.now()-t,_=()=>i=m();return a(),v<=0?(t=Date.now(),_()):(b>v&&(c||!s)?(t=Date.now(),_()):l&&(i=new Promise((H,A)=>{r=f?A:H,n=setTimeout(()=>{t=Date.now(),s=!0,H(_()),a()},Math.max(0,v-b))})),!c&&!n&&(n=setTimeout(()=>s=!0,v)),s=!1,i)}}function Wa(e=Wo,t={}){const{initialState:n="active"}=t,s=ar(n==="active");function r(){s.value=!1}function i(){s.value=!0}const o=(...l)=>{s.value&&e(...l)};return{isActive:en(s),pause:r,resume:i,eventFilter:o}}function oi(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function Ua(e){return xt()}function bs(e){return Array.isArray(e)?e:[e]}function ar(...e){if(e.length!==1)return Bl(...e);const t=e[0];return typeof t=="function"?en(kl(()=>({get:t,set:ft}))):He(t)}function Ba(e,t=200,n={}){return cr(Uo(t,n),e)}function Ka(e,t=200,n=!1,s=!0,r=!1){return cr(ka(t,n,s,r),e)}function Bo(e,t,n={}){const{eventFilter:s=Wo,...r}=n;return Le(e,cr(s,t),r)}function qa(e,t,n={}){const{eventFilter:s,initialState:r="active",...i}=n,{eventFilter:o,pause:l,resume:c,isActive:f}=Wa(s,{initialState:r});return{stop:Bo(e,t,{...i,eventFilter:o}),pause:l,resume:c,isActive:f}}function ss(e,t=!0,n){Ua()?jt(e,n):t?e():zn(e)}function ru(e,t,n={}){const{debounce:s=0,maxWait:r=void 0,...i}=n;return Bo(e,t,{...i,eventFilter:Uo(s,{maxWait:r})})}function Ga(e,t,n){return Le(e,t,{...n,immediate:!0})}function iu(e,t,n){let s;ae(n)?s={evaluating:n}:s={};const{lazy:r=!1,evaluating:i=void 0,shallow:o=!0,onError:l=ft}=s,c=xe(!r),f=o?xe(t):He(t);let a=0;return tr(async d=>{if(!c.value)return;a++;const m=a;let v=!1;i&&Promise.resolve().then(()=>{i.value=!0});try{const b=await e(_=>{d(()=>{i&&(i.value=!1),v||_()})});m===a&&(f.value=b)}catch(b){l(b)}finally{i&&m===a&&(i.value=!1),v=!0}}),r?ie(()=>(c.value=!0,f.value)):f}const je=ko?window:void 0;function fr(e){var t;const n=ce(e);return(t=n==null?void 0:n.$el)!=null?t:n}function et(...e){const t=[],n=()=>{t.forEach(l=>l()),t.length=0},s=(l,c,f,a)=>(l.addEventListener(c,f,a),()=>l.removeEventListener(c,f,a)),r=ie(()=>{const l=bs(ce(e[0])).filter(c=>c!=null);return l.every(c=>typeof c!="string")?l:void 0}),i=Ga(()=>{var l,c;return[(c=(l=r.value)==null?void 0:l.map(f=>fr(f)))!=null?c:[je].filter(f=>f!=null),bs(ce(r.value?e[1]:e[0])),bs(Yn(r.value?e[2]:e[1])),ce(r.value?e[3]:e[2])]},([l,c,f,a])=>{if(n(),!(l!=null&&l.length)||!(c!=null&&c.length)||!(f!=null&&f.length))return;const d=ja(a)?{...a}:a;t.push(...l.flatMap(m=>c.flatMap(v=>f.map(b=>s(m,v,b,d)))))},{flush:"post"}),o=()=>{i(),n()};return Vo(n),o}function Ja(){const e=xe(!1),t=xt();return t&&jt(()=>{e.value=!0},t),e}function Xa(e){const t=Ja();return ie(()=>(t.value,!!e()))}function Ya(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function ou(...e){let t,n,s={};e.length===3?(t=e[0],n=e[1],s=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],s=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:r=je,eventName:i="keydown",passive:o=!1,dedupe:l=!1}=s,c=Ya(t);return et(r,i,a=>{a.repeat&&ce(l)||c(a)&&n(a)},o)}const za=Symbol("vueuse-ssr-width");function Qa(){const e=Ki()?Da(za,null):null;return typeof e=="number"?e:void 0}function Ko(e,t={}){const{window:n=je,ssrWidth:s=Qa()}=t,r=Xa(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),i=xe(typeof s=="number"),o=xe(),l=xe(!1),c=f=>{l.value=f.matches};return tr(()=>{if(i.value){i.value=!r.value;const f=ce(e).split(",");l.value=f.some(a=>{const d=a.includes("not all"),m=a.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),v=a.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let b=!!(m||v);return m&&b&&(b=s>=oi(m[1])),v&&b&&(b=s<=oi(v[1])),d?!b:b});return}r.value&&(o.value=n.matchMedia(ce(e)),l.value=o.value.matches)}),et(o,"change",c,{passive:!0}),ie(()=>l.value)}const Sn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Tn="__vueuse_ssr_handlers__",Za=ef();function ef(){return Tn in Sn||(Sn[Tn]=Sn[Tn]||{}),Sn[Tn]}function qo(e,t){return Za[e]||t}function Go(e){return Ko("(prefers-color-scheme: dark)",e)}function tf(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const nf={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},li="vueuse-storage";function ur(e,t,n,s={}){var r;const{flush:i="pre",deep:o=!0,listenToStorageChanges:l=!0,writeDefaults:c=!0,mergeDefaults:f=!1,shallow:a,window:d=je,eventFilter:m,onError:v=R=>{console.error(R)},initOnMounted:b}=s,_=(a?xe:He)(typeof t=="function"?t():t),H=ie(()=>ce(e));if(!n)try{n=qo("getDefaultStorage",()=>{var R;return(R=je)==null?void 0:R.localStorage})()}catch(R){v(R)}if(!n)return _;const A=ce(t),$=tf(A),p=(r=s.serializer)!=null?r:nf[$],{pause:g,resume:M}=qa(_,()=>O(_.value),{flush:i,deep:o,eventFilter:m});Le(H,()=>E(),{flush:i}),d&&l&&ss(()=>{n instanceof Storage?et(d,"storage",E,{passive:!0}):et(d,li,P),b&&E()}),b||E();function j(R,w){if(d){const F={key:H.value,oldValue:R,newValue:w,storageArea:n};d.dispatchEvent(n instanceof Storage?new StorageEvent("storage",F):new CustomEvent(li,{detail:F}))}}function O(R){try{const w=n.getItem(H.value);if(R==null)j(w,null),n.removeItem(H.value);else{const F=p.write(R);w!==F&&(n.setItem(H.value,F),j(w,F))}}catch(w){v(w)}}function k(R){const w=R?R.newValue:n.getItem(H.value);if(w==null)return c&&A!=null&&n.setItem(H.value,p.write(A)),A;if(!R&&f){const F=p.read(w);return typeof f=="function"?f(F,A):$==="object"&&!Array.isArray(F)?{...A,...F}:F}else return typeof w!="string"?w:p.read(w)}function E(R){if(!(R&&R.storageArea!==n)){if(R&&R.key==null){_.value=A;return}if(!(R&&R.key!==H.value)){g();try{(R==null?void 0:R.newValue)!==p.write(_.value)&&(_.value=k(R))}catch(w){v(w)}finally{R?zn(M):M()}}}}function P(R){E(R.detail)}return _}const sf="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function rf(e={}){const{selector:t="html",attribute:n="class",initialValue:s="auto",window:r=je,storage:i,storageKey:o="vueuse-color-scheme",listenToStorageChanges:l=!0,storageRef:c,emitAuto:f,disableTransition:a=!0}=e,d={auto:"",light:"light",dark:"dark",...e.modes||{}},m=Go({window:r}),v=ie(()=>m.value?"dark":"light"),b=c||(o==null?ar(s):ur(o,s,i,{window:r,listenToStorageChanges:l})),_=ie(()=>b.value==="auto"?v.value:b.value),H=qo("updateHTMLAttrs",(g,M,j)=>{const O=typeof g=="string"?r==null?void 0:r.document.querySelector(g):fr(g);if(!O)return;const k=new Set,E=new Set;let P=null;if(M==="class"){const w=j.split(/\s/g);Object.values(d).flatMap(F=>(F||"").split(/\s/g)).filter(Boolean).forEach(F=>{w.includes(F)?k.add(F):E.add(F)})}else P={key:M,value:j};if(k.size===0&&E.size===0&&P===null)return;let R;a&&(R=r.document.createElement("style"),R.appendChild(document.createTextNode(sf)),r.document.head.appendChild(R));for(const w of k)O.classList.add(w);for(const w of E)O.classList.remove(w);P&&O.setAttribute(P.key,P.value),a&&(r.getComputedStyle(R).opacity,document.head.removeChild(R))});function A(g){var M;H(t,n,(M=d[g])!=null?M:g)}function $(g){e.onChanged?e.onChanged(g,A):A(g)}Le(_,$,{flush:"post",immediate:!0}),ss(()=>$(_.value));const p=ie({get(){return f?b.value:_.value},set(g){b.value=g}});return Object.assign(p,{store:b,system:v,state:_})}function of(e={}){const{valueDark:t="dark",valueLight:n=""}=e,s=rf({...e,onChanged:(o,l)=>{var c;e.onChanged?(c=e.onChanged)==null||c.call(e,o==="dark",l,o):l(o)},modes:{dark:t,light:n}}),r=ie(()=>s.system.value);return ie({get(){return s.value==="dark"},set(o){const l=o?"dark":"light";r.value===l?s.value="auto":s.value=l}})}function ws(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}const ci=1;function lf(e,t={}){const{throttle:n=0,idle:s=200,onStop:r=ft,onScroll:i=ft,offset:o={left:0,right:0,top:0,bottom:0},eventListenerOptions:l={capture:!1,passive:!0},behavior:c="auto",window:f=je,onError:a=O=>{console.error(O)}}=t,d=xe(0),m=xe(0),v=ie({get(){return d.value},set(O){_(O,void 0)}}),b=ie({get(){return m.value},set(O){_(void 0,O)}});function _(O,k){var E,P,R,w;if(!f)return;const F=ce(e);if(!F)return;(R=F instanceof Document?f.document.body:F)==null||R.scrollTo({top:(E=ce(k))!=null?E:b.value,left:(P=ce(O))!=null?P:v.value,behavior:ce(c)});const X=((w=F==null?void 0:F.document)==null?void 0:w.documentElement)||(F==null?void 0:F.documentElement)||F;v!=null&&(d.value=X.scrollLeft),b!=null&&(m.value=X.scrollTop)}const H=xe(!1),A=Ht({left:!0,right:!1,top:!0,bottom:!1}),$=Ht({left:!1,right:!1,top:!1,bottom:!1}),p=O=>{H.value&&(H.value=!1,$.left=!1,$.right=!1,$.top=!1,$.bottom=!1,r(O))},g=Ba(p,n+s),M=O=>{var k;if(!f)return;const E=((k=O==null?void 0:O.document)==null?void 0:k.documentElement)||(O==null?void 0:O.documentElement)||fr(O),{display:P,flexDirection:R,direction:w}=getComputedStyle(E),F=w==="rtl"?-1:1,X=E.scrollLeft;$.left=X<d.value,$.right=X>d.value;const oe=Math.abs(X*F)<=(o.left||0),U=Math.abs(X*F)+E.clientWidth>=E.scrollWidth-(o.right||0)-ci;P==="flex"&&R==="row-reverse"?(A.left=U,A.right=oe):(A.left=oe,A.right=U),d.value=X;let J=E.scrollTop;O===f.document&&!J&&(J=f.document.body.scrollTop),$.top=J<m.value,$.bottom=J>m.value;const V=Math.abs(J)<=(o.top||0),ne=Math.abs(J)+E.clientHeight>=E.scrollHeight-(o.bottom||0)-ci;P==="flex"&&R==="column-reverse"?(A.top=ne,A.bottom=V):(A.top=V,A.bottom=ne),m.value=J},j=O=>{var k;if(!f)return;const E=(k=O.target.documentElement)!=null?k:O.target;M(E),H.value=!0,g(O),i(O)};return et(e,"scroll",n?Ka(j,n,!0,!1):j,l),ss(()=>{try{const O=ce(e);if(!O)return;M(O)}catch(O){a(O)}}),et(e,"scrollend",p,l),{x:v,y:b,isScrolling:H,arrivedState:A,directions:$,measure(){const O=ce(e);f&&O&&M(O)}}}function lu(e,t,n={}){const{window:s=je}=n;return ur(e,t,s==null?void 0:s.localStorage,n)}function Jo(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth<e.scrollWidth||t.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const n=e.parentNode;return!n||n.tagName==="BODY"?!1:Jo(n)}}function cf(e){const t=e||window.event,n=t.target;return Jo(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}const Ss=new WeakMap;function cu(e,t=!1){const n=xe(t);let s=null,r="";Le(ar(e),l=>{const c=ws(ce(l));if(c){const f=c;if(Ss.get(f)||Ss.set(f,f.style.overflow),f.style.overflow!=="hidden"&&(r=f.style.overflow),f.style.overflow==="hidden")return n.value=!0;if(n.value)return f.style.overflow="hidden"}},{immediate:!0});const i=()=>{const l=ws(ce(e));!l||n.value||(ii&&(s=et(l,"touchmove",c=>{cf(c)},{passive:!1})),l.style.overflow="hidden",n.value=!0)},o=()=>{const l=ws(ce(e));!l||!n.value||(ii&&(s==null||s()),l.style.overflow=r,Ss.delete(l),n.value=!1)};return Vo(o),ie({get(){return n.value},set(l){l?i():o()}})}function au(e,t,n={}){const{window:s=je}=n;return ur(e,t,s==null?void 0:s.sessionStorage,n)}function fu(e={}){const{window:t=je,...n}=e;return lf(t,n)}function uu(e={}){const{window:t=je,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:s=Number.POSITIVE_INFINITY,listenOrientation:r=!0,includeScrollbar:i=!0,type:o="inner"}=e,l=xe(n),c=xe(s),f=()=>{if(t)if(o==="outer")l.value=t.outerWidth,c.value=t.outerHeight;else if(o==="visual"&&t.visualViewport){const{width:d,height:m,scale:v}=t.visualViewport;l.value=Math.round(d*v),c.value=Math.round(m*v)}else i?(l.value=t.innerWidth,c.value=t.innerHeight):(l.value=t.document.documentElement.clientWidth,c.value=t.document.documentElement.clientHeight)};f(),ss(f);const a={passive:!0};if(et("resize",f,a),t&&o==="visual"&&t.visualViewport&&et(t.visualViewport,"resize",f,a),r){const d=Ko("(orientation: portrait)");Le(d,()=>f())}return{width:l,height:c}}const Ts={};var xs={};const Xo=/^(?:[a-z]+:|\/\/)/i,af="vitepress-theme-appearance",ff=/#.*$/,uf=/[?#].*$/,df=/(?:(^|\/)index)?\.(?:md|html)$/,ve=typeof document<"u",Yo={relativePath:"404.md",filePath:"",title:"404",description:"Not Found",headers:[],frontmatter:{sidebar:!1,layout:"page"},lastUpdated:0,isNotFound:!0};function hf(e,t,n=!1){if(t===void 0)return!1;if(e=ai(`/${e}`),n)return new RegExp(t).test(e);if(ai(t)!==e)return!1;const s=t.match(ff);return s?(ve?location.hash:"")===s[0]:!0}function ai(e){return decodeURI(e).replace(uf,"").replace(df,"$1")}function pf(e){return Xo.test(e)}function gf(e,t){return Object.keys((e==null?void 0:e.locales)||{}).find(n=>n!=="root"&&!pf(n)&&hf(t,`/${n}/`,!0))||"root"}function mf(e,t){var s,r,i,o,l,c,f;const n=gf(e,t);return Object.assign({},e,{localeIndex:n,lang:((s=e.locales[n])==null?void 0:s.lang)??e.lang,dir:((r=e.locales[n])==null?void 0:r.dir)??e.dir,title:((i=e.locales[n])==null?void 0:i.title)??e.title,titleTemplate:((o=e.locales[n])==null?void 0:o.titleTemplate)??e.titleTemplate,description:((l=e.locales[n])==null?void 0:l.description)??e.description,head:Qo(e.head,((c=e.locales[n])==null?void 0:c.head)??[]),themeConfig:{...e.themeConfig,...(f=e.locales[n])==null?void 0:f.themeConfig}})}function zo(e,t){const n=t.title||e.title,s=t.titleTemplate??e.titleTemplate;if(typeof s=="string"&&s.includes(":title"))return s.replace(/:title/g,n);const r=vf(e.title,s);return n===r.slice(3)?n:`${n}${r}`}function vf(e,t){return t===!1?"":t===!0||t===void 0?` | ${e}`:e===t?"":` | ${t}`}function yf(e,t){const[n,s]=t;if(n!=="meta")return!1;const r=Object.entries(s)[0];return r==null?!1:e.some(([i,o])=>i===n&&o[r[0]]===r[1])}function Qo(e,t){return[...e.filter(n=>!yf(t,n)),...t]}const _f=/[\u0000-\u001F"#$&*+,:;<=>?[\]^`{|}\u007F]/g,bf=/^[a-z]:/i;function fi(e){const t=bf.exec(e),n=t?t[0]:"";return n+e.slice(n.length).replace(_f,"_").replace(/(^|\/)_+(?=[^/]*$)/,"$1")}const Es=new Set;function wf(e){if(Es.size===0){const n=typeof process=="object"&&(xs==null?void 0:xs.VITE_EXTRA_EXTENSIONS)||(Ts==null?void 0:Ts.VITE_EXTRA_EXTENSIONS)||"";("3g2,3gp,aac,ai,apng,au,avif,bin,bmp,cer,class,conf,crl,css,csv,dll,doc,eps,epub,exe,gif,gz,ics,ief,jar,jpe,jpeg,jpg,js,json,jsonld,m4a,man,mid,midi,mjs,mov,mp2,mp3,mp4,mpe,mpeg,mpg,mpp,oga,ogg,ogv,ogx,opus,otf,p10,p7c,p7m,p7s,pdf,png,ps,qt,roff,rtf,rtx,ser,svg,t,tif,tiff,tr,ts,tsv,ttf,txt,vtt,wav,weba,webm,webp,woff,woff2,xhtml,xml,yaml,yml,zip"+(n&&typeof n=="string"?","+n:"")).split(",").forEach(s=>Es.add(s))}const t=e.split(".").pop();return t==null||!Es.has(t.toLowerCase())}function du(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const Sf=Symbol(),Tt=xe(Ha);function hu(e){const t=ie(()=>mf(Tt.value,e.data.relativePath)),n=t.value.appearance,s=n==="force-dark"?He(!0):n==="force-auto"?Go():n?of({storageKey:af,initialValue:()=>n==="dark"?"dark":"auto",...typeof n=="object"?n:{}}):He(!1),r=He(ve?location.hash:"");return ve&&window.addEventListener("hashchange",()=>{r.value=location.hash}),Le(()=>e.data,()=>{r.value=ve?location.hash:""}),{site:t,theme:ie(()=>t.value.themeConfig),page:ie(()=>e.data),frontmatter:ie(()=>e.data.frontmatter),params:ie(()=>e.data.params),lang:ie(()=>t.value.lang),dir:ie(()=>e.data.frontmatter.dir||t.value.dir),localeIndex:ie(()=>t.value.localeIndex||"root"),title:ie(()=>zo(t.value,e.data)),description:ie(()=>e.data.description||t.value.description),isDark:s,hash:ie(()=>r.value)}}function Tf(){const e=_t(Sf);if(!e)throw new Error("vitepress data not properly injected in app");return e}function xf(e,t){return`${e}${t}`.replace(/\/+/g,"/")}function ui(e){return Xo.test(e)||!e.startsWith("/")?e:xf(Tt.value.base,e)}function Ef(e){let t=e.replace(/\.html$/,"");if(t=decodeURIComponent(t),t=t.replace(/\/$/,"/index"),ve){const n="/LegoJS/";t=fi(t.slice(n.length).replace(/\//g,"_")||"index")+".md";let s=__VP_HASH_MAP__[t.toLowerCase()];if(s||(t=t.endsWith("_index.md")?t.slice(0,-9)+".md":t.slice(0,-3)+"_index.md",s=__VP_HASH_MAP__[t.toLowerCase()]),!s)return null;t=`${n}assets/${t}.${s}.js`}else t=`./${fi(t.slice(1).replace(/\//g,"_"))}.md.js`;return t}let Ln=[];function pu(e){Ln.push(e),es(()=>{Ln=Ln.filter(t=>t!==e)})}function Cf(){let e=Tt.value.scrollOffset,t=0,n=24;if(typeof e=="object"&&"padding"in e&&(n=e.padding,e=e.selector),typeof e=="number")t=e;else if(typeof e=="string")t=di(e,n);else if(Array.isArray(e))for(const s of e){const r=di(s,n);if(r){t=r;break}}return t}function di(e,t){const n=document.querySelector(e);if(!n)return 0;const s=n.getBoundingClientRect().bottom;return s<0?0:s+t}const Af=Symbol(),Zo="http://a.com",Rf=()=>({path:"/",component:null,data:Yo});function gu(e,t){const n=Ht(Rf()),s={route:n,go:r};async function r(l=ve?location.href:"/"){var c,f;l=Cs(l),await((c=s.onBeforeRouteChange)==null?void 0:c.call(s,l))!==!1&&(ve&&l!==Cs(location.href)&&(history.replaceState({scrollPosition:window.scrollY},""),history.pushState({},"",l)),await o(l),await((f=s.onAfterRouteChange??s.onAfterRouteChanged)==null?void 0:f(l)))}let i=null;async function o(l,c=0,f=!1){var m,v;if(await((m=s.onBeforePageLoad)==null?void 0:m.call(s,l))===!1)return;const a=new URL(l,Zo),d=i=a.pathname;try{let b=await e(d);if(!b)throw new Error(`Page not found: ${d}`);if(i===d){i=null;const{default:_,__pageData:H}=b;if(!_)throw new Error(`Invalid route component: ${_}`);await((v=s.onAfterPageLoad)==null?void 0:v.call(s,l)),n.path=ve?d:ui(d),n.component=Rn(_),n.data=Rn(H),ve&&zn(()=>{let A=Tt.value.base+H.relativePath.replace(/(?:(^|\/)index)?\.md$/,"$1");if(!Tt.value.cleanUrls&&!A.endsWith("/")&&(A+=".html"),A!==a.pathname&&(a.pathname=A,l=A+a.search+a.hash,history.replaceState({},"",l)),a.hash&&!c){let $=null;try{$=document.getElementById(decodeURIComponent(a.hash).slice(1))}catch(p){console.warn(p)}if($){hi($,a.hash);return}}window.scrollTo(0,c)})}}catch(b){if(!/fetch|Page not found/.test(b.message)&&!/^\/404(\.html|\/)?$/.test(l)&&console.error(b),!f)try{const _=await fetch(Tt.value.base+"hashmap.json");window.__VP_HASH_MAP__=await _.json(),await o(l,c,!0);return}catch{}if(i===d){i=null,n.path=ve?d:ui(d),n.component=t?Rn(t):null;const _=ve?d.replace(/(^|\/)$/,"$1index").replace(/(\.html)?$/,".md").replace(/^\//,""):"404.md";n.data={...Yo,relativePath:_}}}}return ve&&(history.state===null&&history.replaceState({},""),window.addEventListener("click",l=>{if(l.defaultPrevented||!(l.target instanceof Element)||l.target.closest("button")||l.button!==0||l.ctrlKey||l.shiftKey||l.altKey||l.metaKey)return;const c=l.target.closest("a");if(!c||c.closest(".vp-raw")||c.hasAttribute("download")||c.hasAttribute("target"))return;const f=c.getAttribute("href")??(c instanceof SVGAElement?c.getAttribute("xlink:href"):null);if(f==null)return;const{href:a,origin:d,pathname:m,hash:v,search:b}=new URL(f,c.baseURI),_=new URL(location.href);d===_.origin&&wf(m)&&(l.preventDefault(),m===_.pathname&&b===_.search?(v!==_.hash&&(history.pushState({},"",a),window.dispatchEvent(new HashChangeEvent("hashchange",{oldURL:_.href,newURL:a}))),v?hi(c,v,c.classList.contains("header-anchor")):window.scrollTo(0,0)):r(a))},{capture:!0}),window.addEventListener("popstate",async l=>{var f;if(l.state===null)return;const c=Cs(location.href);await o(c,l.state&&l.state.scrollPosition||0),await((f=s.onAfterRouteChange??s.onAfterRouteChanged)==null?void 0:f(c))}),window.addEventListener("hashchange",l=>{l.preventDefault()})),s}function Mf(){const e=_t(Af);if(!e)throw new Error("useRouter() is called without provider.");return e}function el(){return Mf().route}function hi(e,t,n=!1){let s=null;try{s=e.classList.contains("header-anchor")?e:document.getElementById(decodeURIComponent(t).slice(1))}catch(r){console.warn(r)}if(s){let r=function(){!n||Math.abs(o-window.scrollY)>window.innerHeight?window.scrollTo(0,o):window.scrollTo({left:0,top:o,behavior:"smooth"})};const i=parseInt(window.getComputedStyle(s).paddingTop,10),o=window.scrollY+s.getBoundingClientRect().top-Cf()+i;requestAnimationFrame(r)}}function Cs(e){const t=new URL(e,Zo);return t.pathname=t.pathname.replace(/(^|\/)index(\.html)?$/,"$1"),Tt.value.cleanUrls?t.pathname=t.pathname.replace(/\.html$/,""):!t.pathname.endsWith("/")&&!t.pathname.endsWith(".html")&&(t.pathname+=".html"),t.pathname+t.search+t.hash}const xn=()=>Ln.forEach(e=>e()),mu=nr({name:"VitePressContent",props:{as:{type:[Object,String],default:"div"}},setup(e){const t=el(),{frontmatter:n,site:s}=Tf();return Le(n,xn,{deep:!0,flush:"post"}),()=>ks(e.as,s.value.contentProps??{style:{position:"relative"}},[t.component?ks(t.component,{onVnodeMounted:xn,onVnodeUpdated:xn,onVnodeUnmounted:xn}):"404 Page Not Found"])}}),vu=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},Of="modulepreload",Pf=function(e){return"/LegoJS/"+e},pi={},yu=function(t,n,s){let r=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),l=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));r=Promise.allSettled(n.map(c=>{if(c=Pf(c),c in pi)return;pi[c]=!0;const f=c.endsWith(".css"),a=f?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${a}`))return;const d=document.createElement("link");if(d.rel=f?"stylesheet":Of,f||(d.as="script"),d.crossOrigin="",d.href=c,l&&d.setAttribute("nonce",l),document.head.appendChild(d),f)return new Promise((m,v)=>{d.addEventListener("load",m),d.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${c}`)))})}))}function i(o){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=o,window.dispatchEvent(l),!l.defaultPrevented)throw o}return r.then(o=>{for(const l of o||[])l.status==="rejected"&&i(l.reason);return t().catch(i)})},_u=nr({setup(e,{slots:t}){const n=He(!1);return jt(()=>{n.value=!0}),()=>n.value&&t.default?t.default():null}});function bu(){ve&&window.addEventListener("click",e=>{var n;const t=e.target;if(t.matches(".vp-code-group input")){const s=(n=t.parentElement)==null?void 0:n.parentElement;if(!s)return;const r=Array.from(s.querySelectorAll("input")).indexOf(t);if(r<0)return;const i=s.querySelector(".blocks");if(!i)return;const o=Array.from(i.children).find(f=>f.classList.contains("active"));if(!o)return;const l=i.children[r];if(!l||o===l)return;o.classList.remove("active"),l.classList.add("active");const c=s==null?void 0:s.querySelector(`label[for="${t.id}"]`);c==null||c.scrollIntoView({block:"nearest"})}})}function wu(){if(ve){const e=new WeakMap;window.addEventListener("click",t=>{var s;const n=t.target;if(n.matches('div[class*="language-"] > button.copy')){const r=n.parentElement,i=(s=n.nextElementSibling)==null?void 0:s.nextElementSibling;if(!r||!i)return;const o=/language-(shellscript|shell|bash|sh|zsh)/.test(r.className),l=[".vp-copy-ignore",".diff.remove"],c=i.cloneNode(!0);c.querySelectorAll(l.join(",")).forEach(a=>a.remove());let f=c.textContent||"";o&&(f=f.replace(/^ *(\$|>) /gm,"").trim()),Lf(f).then(()=>{n.classList.add("copied"),clearTimeout(e.get(n));const a=setTimeout(()=>{n.classList.remove("copied"),n.blur(),e.delete(n)},2e3);e.set(n,a)})}})}}async function Lf(e){try{return navigator.clipboard.writeText(e)}catch{const t=document.createElement("textarea"),n=document.activeElement;t.value=e,t.setAttribute("readonly",""),t.style.contain="strict",t.style.position="absolute",t.style.left="-9999px",t.style.fontSize="12pt";const s=document.getSelection(),r=s?s.rangeCount>0&&s.getRangeAt(0):null;document.body.appendChild(t),t.select(),t.selectionStart=0,t.selectionEnd=e.length,document.execCommand("copy"),document.body.removeChild(t),r&&(s.removeAllRanges(),s.addRange(r)),n&&n.focus()}}function Su(e,t){let n=!0,s=[];const r=i=>{if(n){n=!1,i.forEach(l=>{const c=As(l);for(const f of document.head.children)if(f.isEqualNode(c)){s.push(f);return}});return}const o=i.map(As);s.forEach((l,c)=>{const f=o.findIndex(a=>a==null?void 0:a.isEqualNode(l??null));f!==-1?delete o[f]:(l==null||l.remove(),delete s[c])}),o.forEach(l=>l&&document.head.appendChild(l)),s=[...s,...o].filter(Boolean)};tr(()=>{const i=e.data,o=t.value,l=i&&i.description,c=i&&i.frontmatter.head||[],f=zo(o,i);f!==document.title&&(document.title=f);const a=l||o.description;let d=document.querySelector("meta[name=description]");d?d.getAttribute("content")!==a&&d.setAttribute("content",a):As(["meta",{name:"description",content:a}]),r(Qo(o.head,Nf(c)))})}function As([e,t,n]){const s=document.createElement(e);for(const r in t)s.setAttribute(r,t[r]);return n&&(s.innerHTML=n),e==="script"&&t.async==null&&(s.async=!1),s}function If(e){return e[0]==="meta"&&e[1]&&e[1].name==="description"}function Nf(e){return e.filter(t=>!If(t))}const Rs=new Set,tl=()=>document.createElement("link"),Ff=e=>{const t=tl();t.rel="prefetch",t.href=e,document.head.appendChild(t)},Hf=e=>{const t=new XMLHttpRequest;t.open("GET",e,t.withCredentials=!0),t.send()};let En;const Df=ve&&(En=tl())&&En.relList&&En.relList.supports&&En.relList.supports("prefetch")?Ff:Hf;function Tu(){if(!ve||!window.IntersectionObserver)return;let e;if((e=navigator.connection)&&(e.saveData||/2g/.test(e.effectiveType)))return;const t=window.requestIdleCallback||setTimeout;let n=null;const s=()=>{n&&n.disconnect(),n=new IntersectionObserver(i=>{i.forEach(o=>{if(o.isIntersecting){const l=o.target;n.unobserve(l);const{pathname:c}=l;if(!Rs.has(c)){Rs.add(c);const f=Ef(c);f&&Df(f)}}})}),t(()=>{document.querySelectorAll("#app a").forEach(i=>{const{hostname:o,pathname:l}=new URL(i.href instanceof SVGAnimatedString?i.href.animVal:i.href,i.baseURI),c=l.match(/\.\w+$/);c&&c[0]!==".html"||i.target!=="_blank"&&o===location.hostname&&(l!==location.pathname?n.observe(i):Rs.add(l))})})};jt(s);const r=el();Le(()=>r.path,s),es(()=>{n&&n.disconnect()})}export{so as $,Cf as A,Bf as B,Wf as C,xe as D,pu as E,_e as F,fe as G,Uf as H,Xo as I,el as J,Yc as K,_t as L,uu as M,Gs as N,ou as O,zn as P,fu as Q,ve as R,en as S,zf as T,kf as U,yu as V,cu as W,ec as X,qf as Y,eu as Z,vu as _,Po as a,Zf as a0,Gf as a1,Su as a2,Af as a3,hu as a4,Sf as a5,mu as a6,_u as a7,Tt as a8,gu as a9,Ef as aa,nu as ab,Tu as ac,wu as ad,bu as ae,ks as af,Xf as ag,ce as ah,bs as ai,fr as aj,su as ak,Vo as al,iu as am,au as an,lu as ao,ru as ap,Mf as aq,et as ar,$f as as,Qf as at,ae as au,Vf as av,Rn as aw,tu as ax,du as ay,js as b,Jf as c,nr as d,Yf as e,wf as f,ui as g,ie as h,pf as i,Oo as j,Yn as k,hf as l,Ko as m,Js as n,$s as o,He as p,Le as q,Kf as r,tr as s,gl as t,Tf as u,jt as v,Zl as w,es as x,jf as y,yc as z};