@epa-wg/custom-element-dist 0.0.28 → 0.0.31

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 (162) hide show
  1. package/.idea/custom-element-dist.iml +11 -0
  2. package/.idea/inspectionProfiles/Project_Default.xml +24 -0
  3. package/.idea/misc.xml +6 -0
  4. package/.idea/modules.xml +8 -0
  5. package/.idea/vcs.xml +6 -0
  6. package/.storybook/main.ts +21 -19
  7. package/.storybook/preview.ts +25 -25
  8. package/README.md +4 -4
  9. package/coverage/coverage-final.json +21 -22
  10. package/coverage/index.html +24 -39
  11. package/coverage/src/custom-element/coverage.svg +1 -1
  12. package/coverage/src/custom-element/custom-element.js/coverage.svg +1 -1
  13. package/coverage/src/custom-element/custom-element.js.html +248 -242
  14. package/coverage/src/custom-element/http-request.js.html +12 -12
  15. package/coverage/src/custom-element/index.html +14 -14
  16. package/coverage/src/custom-element/local-storage.js.html +52 -52
  17. package/coverage/src/custom-element/location-element.js.html +4 -4
  18. package/coverage/src/custom-element/module-url.js.html +1 -1
  19. package/coverage/src/index.html +1 -1
  20. package/coverage/src/mocks/handlers.ts.html +1 -1
  21. package/coverage/src/mocks/index.html +1 -1
  22. package/coverage/src/stories/attributes.test.stories.ts.html +28 -28
  23. package/coverage/src/stories/coverage.svg +1 -1
  24. package/coverage/src/stories/css.test.stories.ts.html +1 -1
  25. package/coverage/src/stories/dom-merge.test.stories.ts.html +1 -1
  26. package/coverage/src/stories/external-template.test.stories.ts.html +1 -1
  27. package/coverage/src/stories/form.test.stories.ts.html +1 -1
  28. package/coverage/src/stories/http-request.stories.ts.html +1 -1
  29. package/coverage/src/stories/index.html +19 -19
  30. package/coverage/src/stories/local-storage.test.stories.ts.html +17 -17
  31. package/coverage/src/stories/location-element.test.stories.ts.html +3 -6
  32. package/coverage/src/stories/module-url.test.stories.ts.html +1 -1
  33. package/coverage/src/stories/set-url.test.stories.ts.html +1 -1
  34. package/coverage/src/stories/slice-events.test.stories.ts/coverage.svg +1 -1
  35. package/coverage/src/stories/slice-events.test.stories.ts.html +284 -23
  36. package/coverage/src/stories/slots.test.stories.ts.html +1 -1
  37. package/coverage/src/stories/testStoryBook.ts.html +7 -7
  38. package/coverage/src/stories/version-select.test.stories.ts.html +1 -1
  39. package/coverage/src/sum.ts.html +1 -1
  40. package/dist/custom-element-BbJMY20-.cjs +97 -0
  41. package/dist/{custom-element-BOIPgtxz.js → custom-element-CoRNKeEP.js} +122 -120
  42. package/dist/custom-element-bundle.cjs +1 -1
  43. package/dist/custom-element-bundle.js +2 -2
  44. package/dist/demo/a.svg +26 -26
  45. package/dist/demo/data-slices.html +37 -0
  46. package/dist/demo/demo.css +0 -3
  47. package/package.json +13 -13
  48. package/public/demo/a.svg +26 -26
  49. package/public/demo/data-slices.html +37 -0
  50. package/public/demo/demo.css +0 -3
  51. package/src/custom-element/custom-element.js +4 -2
  52. package/src/custom-element/demo/a.svg +26 -26
  53. package/src/custom-element/demo/data-slices.html +37 -0
  54. package/src/custom-element/demo/demo.css +0 -3
  55. package/src/custom-element/ide/web-types-dce.json +1 -1
  56. package/src/custom-element/ide/web-types-xsl.json +1 -1
  57. package/src/material/angular.css +987 -987
  58. package/src/material/components/autocomplete.html +239 -240
  59. package/src/material/components/dropdown.html +93 -46
  60. package/src/material/components/icon-link.html +161 -0
  61. package/src/material/components/menu.html +234 -234
  62. package/src/material/components.html +121 -108
  63. package/src/material/demo.css +36 -31
  64. package/src/material/index.html +110 -168
  65. package/src/material/material.css +356 -356
  66. package/src/material/theme/README.md +17 -17
  67. package/src/material/theme/semantic.css +113 -112
  68. package/src/mocks/versions.mock.ts +8 -8
  69. package/src/stories/attributes.test.stories.ts +20 -20
  70. package/src/stories/location-element.test.stories.ts +1 -2
  71. package/src/stories/slice-events.test.stories.ts +87 -0
  72. package/storybook-static/assets/Color-F6OSRLHC-CFyd3TND.js +1 -0
  73. package/storybook-static/assets/{Configure-CJVwFVjC.js → Configure-UGTbPRKK.js} +1 -1
  74. package/storybook-static/assets/{DocsRenderer-CFRXHY34-Bz6q-OqD.js → DocsRenderer-CFRXHY34-Dpr5iB0o.js} +2 -2
  75. package/storybook-static/assets/{attributes.test.stories-BJBuuXgZ.js → attributes.test.stories-DSOLHHOW.js} +38 -36
  76. package/storybook-static/assets/{css.test.stories-pgbBc17d.js → css.test.stories-Cgn6ICr0.js} +1 -1
  77. package/storybook-static/assets/custom-element-D59Fok1f.js +97 -0
  78. package/storybook-static/assets/{dom-merge.test.stories-CXcYP_-J.js → dom-merge.test.stories-CBObfPWg.js} +1 -1
  79. package/storybook-static/assets/entry-preview-DHVXbf3x.js +26 -0
  80. package/storybook-static/assets/entry-preview-docs-BbcIMweR.js +2 -0
  81. package/storybook-static/assets/{external-template.test.stories-CpJ68Ghy.js → external-template.test.stories-VfKUQ8eu.js} +1 -1
  82. package/storybook-static/assets/{form.test.stories-D35lyqd8.js → form.test.stories-CnuGN7Zw.js} +1 -1
  83. package/storybook-static/assets/{handlers-B-OZtf2K.js → handlers-V_T7WjNK.js} +21 -21
  84. package/storybook-static/assets/{http-request.stories-DccXgHyF.js → http-request.stories-8NN1Coqm.js} +1 -1
  85. package/storybook-static/assets/iframe-DnhkgdtG.js +2 -0
  86. package/storybook-static/assets/index-3Sfy-t3H.js +769 -0
  87. package/storybook-static/assets/index-BcZLpTeD.js +8 -0
  88. package/storybook-static/assets/index-CIBI7sCB.js +1 -0
  89. package/storybook-static/assets/{index-BSz1w4Gl.js → index-CxRwF5Or.js} +130 -130
  90. package/storybook-static/assets/{index-lY6s0fkU.js → index-DN1RoK17.js} +1 -1
  91. package/storybook-static/assets/{index-f2MAjm2i.js → index-DjJD7gkO.js} +1 -1
  92. package/storybook-static/assets/{local-storage.test.stories-BY-PWhuk.js → local-storage.test.stories-Dk5Yqc7m.js} +1 -1
  93. package/storybook-static/assets/{location-element.test.stories-3auBYEaU.js → location-element.test.stories-56um6s5L.js} +1 -1
  94. package/storybook-static/assets/{module-url.test.stories-B7L9cL60.js → module-url.test.stories-DEponQ7l.js} +1 -1
  95. package/storybook-static/assets/{preview-BRPR-UXC.js → preview-CNKoaWES.js} +1 -1
  96. package/storybook-static/assets/preview-Czc-sw5H.js +2 -0
  97. package/storybook-static/assets/preview-DAeyCMnM.js +1 -0
  98. package/storybook-static/assets/{preview-BUQm51_C.js → preview-vbpHsp94.js} +2 -2
  99. package/storybook-static/assets/{set-url.test.stories-CuSuDLIx.js → set-url.test.stories-B4E6hIe-.js} +1 -1
  100. package/storybook-static/assets/{slice-events.test.stories-BkRKsKem.js → slice-events.test.stories-BR0F-B6I.js} +138 -13
  101. package/storybook-static/assets/{slots.test.stories-BJCUWFkE.js → slots.test.stories-CgfJIyCr.js} +1 -1
  102. package/storybook-static/assets/tiny-invariant-CopsF_GD.js +1 -0
  103. package/storybook-static/assets/{version-select.test.stories-B3ybJn_Z.js → version-select.test.stories-nmxATIwv.js} +1 -1
  104. package/storybook-static/demo/a.svg +26 -26
  105. package/storybook-static/demo/data-slices.html +37 -0
  106. package/storybook-static/demo/demo.css +0 -3
  107. package/storybook-static/iframe.html +2 -2
  108. package/storybook-static/index.html +4 -0
  109. package/storybook-static/index.json +1 -1
  110. package/storybook-static/project.json +1 -1
  111. package/storybook-static/sb-addons/chromatic-com-storybook-10/manager-bundle.js +333 -0
  112. package/storybook-static/sb-addons/chromatic-com-storybook-10/manager-bundle.js.LEGAL.txt +40 -0
  113. package/storybook-static/sb-addons/essentials-actions-3/manager-bundle.js +1 -1
  114. package/storybook-static/sb-addons/essentials-backgrounds-4/manager-bundle.js +8 -8
  115. package/storybook-static/sb-addons/essentials-controls-2/manager-bundle.js +82 -85
  116. package/storybook-static/sb-addons/essentials-measure-7/manager-bundle.js +1 -1
  117. package/storybook-static/sb-addons/essentials-outline-8/manager-bundle.js +1 -1
  118. package/storybook-static/sb-addons/essentials-viewport-5/manager-bundle.js +1 -1
  119. package/storybook-static/sb-addons/interactions-9/manager-bundle.js +66 -67
  120. package/storybook-static/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js +1 -1
  121. package/storybook-static/sb-manager/globals-module-info.js +25 -3
  122. package/storybook-static/sb-manager/globals-runtime.js +29585 -43124
  123. package/storybook-static/sb-manager/runtime.js +10647 -9399
  124. package/storybook-static/sb-preview/runtime.js +3536 -5860
  125. package/test-runner-jest.config.js +15 -0
  126. package/coverage/src/custom-element/demo/coverage.svg +0 -10
  127. package/coverage/src/custom-element/demo/index.html +0 -116
  128. package/coverage/src/custom-element/demo/z.js/coverage.svg +0 -10
  129. package/coverage/src/custom-element/demo/z.js.html +0 -112
  130. package/dist/custom-element-CUsSENWc.cjs +0 -97
  131. package/dist/demo/s1.xslt +0 -60
  132. package/dist/demo/z.html +0 -33
  133. package/dist/demo/z.js +0 -9
  134. package/dist/demo/z.xml +0 -60
  135. package/dist/demo/z1.html +0 -34
  136. package/public/demo/s1.xslt +0 -60
  137. package/public/demo/z.html +0 -33
  138. package/public/demo/z.js +0 -9
  139. package/public/demo/z.xml +0 -60
  140. package/public/demo/z1.html +0 -34
  141. package/src/custom-element/demo/s1.xslt +0 -60
  142. package/src/custom-element/demo/z.html +0 -33
  143. package/src/custom-element/demo/z.js +0 -9
  144. package/src/custom-element/demo/z.xml +0 -60
  145. package/src/custom-element/demo/z1.html +0 -34
  146. package/src/stories/__screenshots__/http-request.test.ts/http-request-url-change-1.png +0 -0
  147. package/storybook-static/assets/Color-ERTF36HU-ChyYtq0t.js +0 -1
  148. package/storybook-static/assets/custom-element-BDGsYgbP.js +0 -97
  149. package/storybook-static/assets/entry-preview-C313OLrj.js +0 -26
  150. package/storybook-static/assets/entry-preview-docs-B7ORr9w5.js +0 -2
  151. package/storybook-static/assets/iframe-Ddc_axoC.js +0 -2
  152. package/storybook-static/assets/index-BdcJ-iJ7.js +0 -8
  153. package/storybook-static/assets/index-CiCdFubk.js +0 -634
  154. package/storybook-static/assets/index-tfEkrhWr.js +0 -1
  155. package/storybook-static/assets/preview-CcS4DQh8.js +0 -1
  156. package/storybook-static/assets/preview-CfH4_OzN.js +0 -2
  157. package/storybook-static/assets/tiny-invariant-BxWVcicq.js +0 -1
  158. package/storybook-static/demo/s1.xslt +0 -60
  159. package/storybook-static/demo/z.html +0 -33
  160. package/storybook-static/demo/z.js +0 -9
  161. package/storybook-static/demo/z.xml +0 -60
  162. package/storybook-static/demo/z1.html +0 -34
@@ -1,26 +0,0 @@
1
- import{d as ot}from"./index-DrFu-skq.js";/**
2
- * @license
3
- * Copyright 2019 Google LLC
4
- * SPDX-License-Identifier: BSD-3-Clause
5
- */const U=globalThis,L=U.ShadowRoot&&(U.ShadyCSS===void 0||U.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,G=Symbol(),z=new WeakMap;let ht=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==G)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(L&&t===void 0){const s=e!==void 0&&e.length===1;s&&(t=z.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&z.set(e,t))}return t}toString(){return this.cssText}};const lt=r=>new ht(typeof r=="string"?r:r+"",void 0,G),at=(r,t)=>{if(L)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const s=document.createElement("style"),i=U.litNonce;i!==void 0&&s.setAttribute("nonce",i),s.textContent=e.cssText,r.appendChild(s)}},B=L?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return lt(e)})(r):r;/**
6
- * @license
7
- * Copyright 2017 Google LLC
8
- * SPDX-License-Identifier: BSD-3-Clause
9
- */const{is:ct,defineProperty:dt,getOwnPropertyDescriptor:pt,getOwnPropertyNames:ut,getOwnPropertySymbols:$t,getPrototypeOf:_t}=Object,H=globalThis,D=H.trustedTypes,ft=D?D.emptyScript:"",At=H.reactiveElementPolyfillSupport,E=(r,t)=>r,R={toAttribute(r,t){switch(t){case Boolean:r=r?ft:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch{e=null}}return e}},J=(r,t)=>!ct(r,t),I={attribute:!0,type:String,converter:R,reflect:!1,hasChanged:J};Symbol.metadata??=Symbol("metadata"),H.litPropertyMetadata??=new WeakMap;class y extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=I){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),i=this.getPropertyDescriptor(t,s,e);i!==void 0&&dt(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){const{get:i,set:n}=pt(this.prototype,t)??{get(){return this[e]},set(o){this[e]=o}};return{get(){return i?.call(this)},set(o){const a=i?.call(this);n.call(this,o),this.requestUpdate(t,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??I}static _$Ei(){if(this.hasOwnProperty(E("elementProperties")))return;const t=_t(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(E("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(E("properties"))){const e=this.properties,s=[...ut(e),...$t(e)];for(const i of s)this.createProperty(i,e[i])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[s,i]of e)this.elementProperties.set(s,i)}this._$Eh=new Map;for(const[e,s]of this.elementProperties){const i=this._$Eu(e,s);i!==void 0&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const i of s)e.unshift(B(i))}else t!==void 0&&e.push(B(t));return e}static _$Eu(t,e){const s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return at(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$EC(t,e){const s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(i!==void 0&&s.reflect===!0){const n=(s.converter?.toAttribute!==void 0?s.converter:R).toAttribute(e,s.type);this._$Em=t,n==null?this.removeAttribute(i):this.setAttribute(i,n),this._$Em=null}}_$AK(t,e){const s=this.constructor,i=s._$Eh.get(t);if(i!==void 0&&this._$Em!==i){const n=s.getPropertyOptions(i),o=typeof n.converter=="function"?{fromAttribute:n.converter}:n.converter?.fromAttribute!==void 0?n.converter:R;this._$Em=i,this[i]=o.fromAttribute(e,n.type),this._$Em=null}}requestUpdate(t,e,s){if(t!==void 0){if(s??=this.constructor.getPropertyOptions(t),!(s.hasChanged??J)(this[t],e))return;this.P(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,s){this._$AL.has(t)||this._$AL.set(t,e),s.reflect===!0&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[i,n]of this._$Ep)this[i]=n;this._$Ep=void 0}const s=this.constructor.elementProperties;if(s.size>0)for(const[i,n]of s)n.wrapped!==!0||this._$AL.has(i)||this[i]===void 0||this.P(i,this[i],n)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(s=>s.hostUpdate?.()),this.update(e)):this._$EU()}catch(s){throw t=!1,this._$EU(),s}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach(e=>this._$EC(e,this[e])),this._$EU()}updated(t){}firstUpdated(t){}}y.elementStyles=[],y.shadowRootOptions={mode:"open"},y[E("elementProperties")]=new Map,y[E("finalized")]=new Map,At?.({ReactiveElement:y}),(H.reactiveElementVersions??=[]).push("2.0.4");/**
10
- * @license
11
- * Copyright 2017 Google LLC
12
- * SPDX-License-Identifier: BSD-3-Clause
13
- */const k=globalThis,x=k.trustedTypes,W=x?x.createPolicy("lit-html",{createHTML:r=>r}):void 0,Q="$lit$",_=`lit$${Math.random().toFixed(9).slice(2)}$`,X="?"+_,mt=`<${X}>`,m=document,b=()=>m.createComment(""),w=r=>r===null||typeof r!="object"&&typeof r!="function",j=Array.isArray,yt=r=>j(r)||typeof r?.[Symbol.iterator]=="function",N=`[
14
- \f\r]`,S=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,V=/-->/g,q=/>/g,f=RegExp(`>|${N}(?:([^\\s"'>=/]+)(${N}*=${N}*(?:[^
15
- \f\r"'\`<>=]|("|')|))|$)`,"g"),K=/'/g,Y=/"/g,tt=/^(?:script|style|textarea|title)$/i,g=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Z=new WeakMap,A=m.createTreeWalker(m,129);function et(r,t){if(!j(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return W!==void 0?W.createHTML(t):t}const gt=(r,t)=>{const e=r.length-1,s=[];let i,n=t===2?"<svg>":t===3?"<math>":"",o=S;for(let a=0;a<e;a++){const h=r[a];let c,p,l=-1,u=0;for(;u<h.length&&(o.lastIndex=u,p=o.exec(h),p!==null);)u=o.lastIndex,o===S?p[1]==="!--"?o=V:p[1]!==void 0?o=q:p[2]!==void 0?(tt.test(p[2])&&(i=RegExp("</"+p[2],"g")),o=f):p[3]!==void 0&&(o=f):o===f?p[0]===">"?(o=i??S,l=-1):p[1]===void 0?l=-2:(l=o.lastIndex-p[2].length,c=p[1],o=p[3]===void 0?f:p[3]==='"'?Y:K):o===Y||o===K?o=f:o===V||o===q?o=S:(o=f,i=void 0);const $=o===f&&r[a+1].startsWith("/>")?" ":"";n+=o===S?h+mt:l>=0?(s.push(c),h.slice(0,l)+Q+h.slice(l)+_+$):h+_+(l===-2?a:$)}return[et(r,n+(r[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]};class P{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let n=0,o=0;const a=t.length-1,h=this.parts,[c,p]=gt(t,e);if(this.el=P.createElement(c,s),A.currentNode=this.el.content,e===2||e===3){const l=this.el.content.firstChild;l.replaceWith(...l.childNodes)}for(;(i=A.nextNode())!==null&&h.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(const l of i.getAttributeNames())if(l.endsWith(Q)){const u=p[o++],$=i.getAttribute(l).split(_),C=/([.?@])?(.*)/.exec(u);h.push({type:1,index:n,name:C[2],strings:$,ctor:C[1]==="."?St:C[1]==="?"?Et:C[1]==="@"?bt:M}),i.removeAttribute(l)}else l.startsWith(_)&&(h.push({type:6,index:n}),i.removeAttribute(l));if(tt.test(i.tagName)){const l=i.textContent.split(_),u=l.length-1;if(u>0){i.textContent=x?x.emptyScript:"";for(let $=0;$<u;$++)i.append(l[$],b()),A.nextNode(),h.push({type:2,index:++n});i.append(l[u],b())}}}else if(i.nodeType===8)if(i.data===X)h.push({type:2,index:n});else{let l=-1;for(;(l=i.data.indexOf(_,l+1))!==-1;)h.push({type:7,index:n}),l+=_.length-1}n++}}static createElement(t,e){const s=m.createElement("template");return s.innerHTML=t,s}}function v(r,t,e=r,s){if(t===g)return t;let i=s!==void 0?e.o?.[s]:e.l;const n=w(t)?void 0:t._$litDirective$;return i?.constructor!==n&&(i?._$AO?.(!1),n===void 0?i=void 0:(i=new n(r),i._$AT(r,e,s)),s!==void 0?(e.o??=[])[s]=i:e.l=i),i!==void 0&&(t=v(r,i._$AS(r,t.values),i,s)),t}class vt{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,i=(t?.creationScope??m).importNode(e,!0);A.currentNode=i;let n=A.nextNode(),o=0,a=0,h=s[0];for(;h!==void 0;){if(o===h.index){let c;h.type===2?c=new O(n,n.nextSibling,this,t):h.type===1?c=new h.ctor(n,h.name,h.strings,this,t):h.type===6&&(c=new wt(n,this,t)),this._$AV.push(c),h=s[++a]}o!==h?.index&&(n=A.nextNode(),o++)}return A.currentNode=m,i}p(t){let e=0;for(const s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class O{get _$AU(){return this._$AM?._$AU??this.v}constructor(t,e,s,i){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this.v=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=v(this,t,e),w(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==g&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):yt(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==d&&w(this._$AH)?this._$AA.nextSibling.data=t:this.T(m.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:s}=t,i=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=P.createElement(et(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===i)this._$AH.p(e);else{const n=new vt(i,this),o=n.u(this.options);n.p(e),this.T(o),this._$AH=n}}_$AC(t){let e=Z.get(t.strings);return e===void 0&&Z.set(t.strings,e=new P(t)),e}k(t){j(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,i=0;for(const n of t)i===e.length?e.push(s=new O(this.O(b()),this.O(b()),this,this.options)):s=e[i],s._$AI(n),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const s=t.nextSibling;t.remove(),t=s}}setConnected(t){this._$AM===void 0&&(this.v=t,this._$AP?.(t))}}class M{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,i,n){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=n,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=d}_$AI(t,e=this,s,i){const n=this.strings;let o=!1;if(n===void 0)t=v(this,t,e,0),o=!w(t)||t!==this._$AH&&t!==g,o&&(this._$AH=t);else{const a=t;let h,c;for(t=n[0],h=0;h<n.length-1;h++)c=v(this,a[s+h],e,h),c===g&&(c=this._$AH[h]),o||=!w(c)||c!==this._$AH[h],c===d?t=d:t!==d&&(t+=(c??"")+n[h+1]),this._$AH[h]=c}o&&!i&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class St extends M{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}}class Et extends M{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}}class bt extends M{constructor(t,e,s,i,n){super(t,e,s,i,n),this.type=5}_$AI(t,e=this){if((t=v(this,t,e,0)??d)===g)return;const s=this._$AH,i=t===d&&s!==d||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==d&&(s===d||i);i&&this.element.removeEventListener(this.name,this,s),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class wt{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){v(this,t)}}const Pt=k.litHtmlPolyfillSupport;Pt?.(P,O),(k.litHtmlVersions??=[]).push("3.2.0");const st=(r,t,e)=>{const s=e?.renderBefore??t;let i=s._$litPart$;if(i===void 0){const n=e?.renderBefore??null;s._$litPart$=i=new O(t.insertBefore(b(),n),n,void 0,e??{})}return i._$AI(r),i};/**
16
- * @license
17
- * Copyright 2017 Google LLC
18
- * SPDX-License-Identifier: BSD-3-Clause
19
- */class T extends y{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this.o=st(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this.o?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this.o?.setConnected(!1)}render(){return g}}T._$litElement$=!0,T.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:T});const Ot=globalThis.litElementPolyfillSupport;Ot?.({LitElement:T});(globalThis.litElementVersions??=[]).push("4.1.0");/**
20
- * @license
21
- * Copyright 2020 Google LLC
22
- * SPDX-License-Identifier: BSD-3-Clause
23
- */const Ct=(r,t)=>t===void 0?r?._$litType$!==void 0:r?._$litType$===t,{simulatePageLoad:F,simulateDOMContentLoaded:Ut}=__STORYBOOK_MODULE_PREVIEW_API__,{global:Tt}=__STORYBOOK_MODULE_GLOBAL__;var xt=Object.defineProperty,Ht=(r,t)=>{for(var e in t)xt(r,e,{get:t[e],enumerable:!0})},Mt={};Ht(Mt,{parameters:()=>nt,render:()=>it,renderToCanvas:()=>rt});var{Node:Nt}=Tt,it=(r,t)=>{let{id:e,component:s}=t;if(!s)throw new Error(`Unable to render story ${e} as the component annotation is missing from the default export`);let i=document.createElement(s);return Object.entries(r).forEach(([n,o])=>{i[n]=o}),i};function rt({storyFn:r,kind:t,name:e,showMain:s,showError:i,forceRemount:n},o){let a=r();if(s(),Ct(a)){(n||!o.querySelector('[id="root-inner"]'))&&(o.innerHTML='<div id="root-inner"></div>');let h=o.querySelector('[id="root-inner"]');st(a,h),F(o)}else if(typeof a=="string")o.innerHTML=a,F(o);else if(a instanceof Nt){if(o.firstChild===a&&!n)return;o.innerHTML="",o.appendChild(a),Ut()}else i({title:`Expecting an HTML snippet or DOM node from the story: "${e}" of "${t}".`,description:ot`
24
- Did you forget to return the HTML snippet from the story?
25
- Use "() => <your snippet or node>" or when defining the story.
26
- `})}var nt={renderer:"web-components"};const kt=Object.freeze(Object.defineProperty({__proto__:null,parameters:nt,render:it,renderToCanvas:rt},Symbol.toStringTag,{value:"Module"}));export{st as Q,kt as e};
@@ -1,2 +0,0 @@
1
- import{Q as p}from"./entry-preview-C313OLrj.js";import{D as u,c as E,y}from"./index-BdcJ-iJ7.js";import{i as g}from"./tiny-invariant-BxWVcicq.js";import"./index-DrFu-skq.js";const{global:i}=__STORYBOOK_MODULE_GLOBAL__;__STORYBOOK_MODULE_PREVIEW_API__;var{window:v}=i;v.STORYBOOK_ENV="web-components";function d(e){if(!e)return!1;if(typeof e=="string")return!0;throw new Error('Provided component needs to be a string. e.g. component: "my-element"')}function l(e){if(!e)return!1;if(e.tags&&Array.isArray(e.tags)||e.modules&&Array.isArray(e.modules))return!0;throw new Error(`You need to setup valid meta data in your config.js via setCustomElements().
2
- See the readme of addon-docs for web components for more details.`)}function c(){return i.__STORYBOOK_CUSTOM_ELEMENTS__||i.__STORYBOOK_CUSTOM_ELEMENTS_MANIFEST__}var{window:w,EventSource:S}=i;typeof module<"u"&&module?.hot?.decline&&(module.hot.decline(),new S("__webpack_hmr").addEventListener("message",function(e){try{let{action:r}=JSON.parse(e.data);r==="built"&&w.location.reload()}catch{}}));const{logger:m}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{useEffect:D,addons:b}=__STORYBOOK_MODULE_PREVIEW_API__;function _(e,r){let t;switch(r){case"attributes":case"properties":t={name:e.type?.text||e.type};break;case"slots":t={name:"string"};break;default:t={name:"void"};break}return{name:e.name,required:!1,description:e.description,type:t,table:{category:r,type:{summary:e.type?.text||e.type},defaultValue:{summary:e.default!==void 0?e.default:e.defaultValue}}}}function h(e){let r=e.name.replace(/(-|_|:|\.|\s)+(.)?/g,(t,n,a)=>a?a.toUpperCase():"").replace(/^([A-Z])/,t=>t.toLowerCase());return r=`on${r.charAt(0).toUpperCase()+r.substr(1)}`,[{name:r,action:{name:e.name},table:{disable:!0}},_(e,"events")]}function o(e,r){return e&&e.filter(t=>t&&t.name).reduce((t,n)=>{if(n.kind==="method")return t;switch(r){case"events":h(n).forEach(a=>{g(a.name,`${a} should have a name property.`),t[a.name]=a});break;default:t[n.name]=_(n,r);break}return t},{})}var C=(e,r)=>{if(!d(e)||!l(r))return null;let t=r.tags.find(n=>n.name.toUpperCase()===e.toUpperCase());return t||m.warn(`Component not found in custom-elements.json: ${e}`),t},M=(e,r)=>{if(!d(e)||!l(r))return null;let t;return r?.modules?.forEach(n=>{n?.declarations?.forEach(a=>{a.tagName===e&&(t=a)})}),t||m.warn(`Component not found in custom-elements.json: ${e}`),t},f=(e,r)=>r?.version==="experimental"?C(e,r):M(e,r),A=(e,r)=>{let t=f(e,r);return t&&{...o(t.members??[],"properties"),...o(t.properties??[],"properties"),...o(t.attributes??[],"attributes"),...o(t.events??[],"events"),...o(t.slots??[],"slots"),...o(t.cssProperties??[],"css custom properties"),...o(t.cssParts??[],"css shadow parts")}},T=e=>{let r=c();return A(e,r)},L=e=>{let r=f(e,c());return r&&r.description},R=/<!--\?lit\$[0-9]+\$-->|<!--\??-->/g;function I(e){let r=e?.parameters.docs?.source,t=e?.parameters.__isArgsStory;return r?.type===u.DYNAMIC?!1:!t||r?.code||r?.type===u.CODE}function U(e,r){let t=e(),n=r?.parameters.docs?.source?.excludeDecorators?r.originalStoryFn(r.args,r):t,a;if(D(()=>{let{id:s,unmappedArgs:O}=r;a&&b.getChannel().emit(y,{id:s,source:a,args:O})}),!I(r)){let s=window.document.createElement("div");n instanceof DocumentFragment?p(n.cloneNode(!0),s):p(n,s),a=s.innerHTML.replace(R,"")}return t}var V=[U],K={docs:{extractArgTypes:T,extractComponentDescription:L,story:{inline:!0},source:{type:u.DYNAMIC,language:"html"}}},$=[E];export{$ as argTypesEnhancers,V as decorators,K as parameters};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Configure-CJVwFVjC.js","./index-CiCdFubk.js","./index-BdcJ-iJ7.js","./index-D-8MO0q_.js","./index-DrFu-skq.js","./index-f2MAjm2i.js","./attributes.test.stories-BJBuuXgZ.js","./index-BSz1w4Gl.js","./custom-element-BDGsYgbP.js","./css.test.stories-pgbBc17d.js","./dom-merge.test.stories-CXcYP_-J.js","./external-template.test.stories-CpJ68Ghy.js","./form.test.stories-D35lyqd8.js","./http-request.stories-DccXgHyF.js","./http-request-DNq59pnj.js","./handlers-B-OZtf2K.js","./local-storage.test.stories-BY-PWhuk.js","./location-element-hKpcXCdn.js","./location-element.test.stories-3auBYEaU.js","./module-url.test.stories-B7L9cL60.js","./set-url.test.stories-CuSuDLIx.js","./slice-events.test.stories-BkRKsKem.js","./slots.test.stories-BJCUWFkE.js","./version-select.test.stories-B3ybJn_Z.js","./entry-preview-C313OLrj.js","./entry-preview-docs-B7ORr9w5.js","./tiny-invariant-BxWVcicq.js","./preview-BhhEZcNS.js","./preview-ncvtW_hb.js","./preview-CcS4DQh8.js","./preview-BWzBA1C2.js","./preview-BRPR-UXC.js","./preview-BUQm51_C.js"])))=>i.map(i=>d[i]);
2
- import"../sb-preview/runtime.js";(function(){const _=document.createElement("link").relList;if(_&&_.supports&&_.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))m(r);new MutationObserver(r=>{for(const s of r)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&m(o)}).observe(document,{childList:!0,subtree:!0});function a(r){const s={};return r.integrity&&(s.integrity=r.integrity),r.referrerPolicy&&(s.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?s.credentials="include":r.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function m(r){if(r.ep)return;r.ep=!0;const s=a(r);fetch(r.href,s)}})();const R="modulepreload",T=function(e,_){return new URL(e,_).href},d={},t=function(_,a,m){let r=Promise.resolve();if(a&&a.length>0){const o=document.getElementsByTagName("link"),i=document.querySelector("meta[property=csp-nonce]"),O=i?.nonce||i?.getAttribute("nonce");r=Promise.allSettled(a.map(n=>{if(n=T(n,m),n in d)return;d[n]=!0;const u=n.endsWith(".css"),f=u?'[rel="stylesheet"]':"";if(!!m)for(let l=o.length-1;l>=0;l--){const E=o[l];if(E.href===n&&(!u||E.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${n}"]${f}`))return;const c=document.createElement("link");if(c.rel=u?"stylesheet":R,u||(c.as="script"),c.crossOrigin="",c.href=n,O&&c.setAttribute("nonce",O),document.head.appendChild(c),u)return new Promise((l,E)=>{c.addEventListener("load",l),c.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${n}`)))})}))}function s(o){const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=o,window.dispatchEvent(i),!i.defaultPrevented)throw o}return r.then(o=>{for(const i of o||[])i.status==="rejected"&&s(i.reason);return _().catch(s)})},{createBrowserChannel:L}=__STORYBOOK_MODULE_CHANNELS__,{addons:P}=__STORYBOOK_MODULE_PREVIEW_API__,p=L({page:"preview"});P.setChannel(p);window.__STORYBOOK_ADDONS_CHANNEL__=p;window.CONFIG_TYPE==="DEVELOPMENT"&&(window.__STORYBOOK_SERVER_CHANNEL__=p);const y={"./src/stories/Configure.mdx":async()=>t(()=>import("./Configure-CJVwFVjC.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url),"./src/stories/attributes.test.stories.ts":async()=>t(()=>import("./attributes.test.stories-BJBuuXgZ.js"),__vite__mapDeps([6,7,8]),import.meta.url),"./src/stories/css.test.stories.ts":async()=>t(()=>import("./css.test.stories-pgbBc17d.js"),__vite__mapDeps([9,7,8]),import.meta.url),"./src/stories/dom-merge.test.stories.ts":async()=>t(()=>import("./dom-merge.test.stories-CXcYP_-J.js"),__vite__mapDeps([10,7,8]),import.meta.url),"./src/stories/external-template.test.stories.ts":async()=>t(()=>import("./external-template.test.stories-CpJ68Ghy.js"),__vite__mapDeps([11,7,8]),import.meta.url),"./src/stories/form.test.stories.ts":async()=>t(()=>import("./form.test.stories-D35lyqd8.js"),__vite__mapDeps([12,7,8]),import.meta.url),"./src/stories/http-request.stories.ts":async()=>t(()=>import("./http-request.stories-DccXgHyF.js"),__vite__mapDeps([13,7,8,14,15]),import.meta.url),"./src/stories/local-storage.test.stories.ts":async()=>t(()=>import("./local-storage.test.stories-BY-PWhuk.js"),__vite__mapDeps([16,7,8,14,17]),import.meta.url),"./src/stories/location-element.test.stories.ts":async()=>t(()=>import("./location-element.test.stories-3auBYEaU.js"),__vite__mapDeps([18,7,8,17]),import.meta.url),"./src/stories/module-url.test.stories.ts":async()=>t(()=>import("./module-url.test.stories-B7L9cL60.js"),__vite__mapDeps([19,7,8]),import.meta.url),"./src/stories/set-url.test.stories.ts":async()=>t(()=>import("./set-url.test.stories-CuSuDLIx.js"),__vite__mapDeps([20,7,8,17]),import.meta.url),"./src/stories/slice-events.test.stories.ts":async()=>t(()=>import("./slice-events.test.stories-BkRKsKem.js"),__vite__mapDeps([21,7,8]),import.meta.url),"./src/stories/slots.test.stories.ts":async()=>t(()=>import("./slots.test.stories-BJCUWFkE.js"),__vite__mapDeps([22,7,8]),import.meta.url),"./src/stories/version-select.test.stories.ts":async()=>t(()=>import("./version-select.test.stories-B3ybJn_Z.js"),__vite__mapDeps([23,7,8,14,17]),import.meta.url)};async function I(e){return y[e]()}const{composeConfigs:V,PreviewWeb:D,ClientApi:g}=__STORYBOOK_MODULE_PREVIEW_API__,v=async(e=[])=>{const _=await Promise.all([e.at(0)??t(()=>import("./entry-preview-C313OLrj.js").then(a=>a.e),__vite__mapDeps([24,4]),import.meta.url),e.at(1)??t(()=>import("./entry-preview-docs-B7ORr9w5.js"),__vite__mapDeps([25,24,4,2,26]),import.meta.url),e.at(2)??t(()=>import("./preview-BhhEZcNS.js"),__vite__mapDeps([27,3]),import.meta.url),e.at(3)??t(()=>import("./preview-CfH4_OzN.js"),[],import.meta.url),e.at(4)??t(()=>import("./preview-DHPc-V4N.js"),[],import.meta.url),e.at(5)??t(()=>import("./preview-ncvtW_hb.js"),__vite__mapDeps([28,4]),import.meta.url),e.at(6)??t(()=>import("./preview-DYzi3Z2p.js"),[],import.meta.url),e.at(7)??t(()=>import("./preview-CcS4DQh8.js"),__vite__mapDeps([29,26]),import.meta.url),e.at(8)??t(()=>import("./preview-BWzBA1C2.js"),__vite__mapDeps([30,4]),import.meta.url),e.at(9)??t(()=>import("./preview-caVMbCIR.js"),[],import.meta.url),e.at(10)??t(()=>import("./preview-BRPR-UXC.js"),__vite__mapDeps([31,7]),import.meta.url),e.at(11)??t(()=>import("./preview-BUQm51_C.js"),__vite__mapDeps([32,15]),import.meta.url)]);return V(_)};window.__STORYBOOK_PREVIEW__=window.__STORYBOOK_PREVIEW__||new D(I,v);window.__STORYBOOK_STORY_STORE__=window.__STORYBOOK_STORY_STORE__||window.__STORYBOOK_PREVIEW__.storyStore;export{t as _};
@@ -1,8 +0,0 @@
1
- var Vr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xo(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Ie={exports:{}};(function(n,t){(function(r,a){a(t)})(Vr,function(r){function a(e){return e.text!==void 0&&e.text!==""?`'${e.type}' with value '${e.text}'`:`'${e.type}'`}class s extends Error{constructor(o){super(`No parslet found for token: ${a(o)}`),this.token=o,Object.setPrototypeOf(this,s.prototype)}getToken(){return this.token}}class i extends Error{constructor(o){super(`The parsing ended early. The next token was: ${a(o)}`),this.token=o,Object.setPrototypeOf(this,i.prototype)}getToken(){return this.token}}class p extends Error{constructor(o,c){let d=`Unexpected type: '${o.type}'.`;c!==void 0&&(d+=` Message: ${c}`),super(d),Object.setPrototypeOf(this,p.prototype)}}function l(e){return o=>o.startsWith(e)?{type:e,text:e}:null}function u(e){let o=0,c;const d=e[0];let T=!1;if(d!=="'"&&d!=='"')return null;for(;o<e.length;){if(o++,c=e[o],!T&&c===d){o++;break}T=!T&&c==="\\"}if(c!==d)throw new Error("Unterminated String");return e.slice(0,o)}const f=/[$_\p{ID_Start}]|\\u\p{Hex_Digit}{4}|\\u\{0*(?:\p{Hex_Digit}{1,5}|10\p{Hex_Digit}{4})\}/u,h=/[$\-\p{ID_Continue}\u200C\u200D]|\\u\p{Hex_Digit}{4}|\\u\{0*(?:\p{Hex_Digit}{1,5}|10\p{Hex_Digit}{4})\}/u;function v(e){let o=e[0];if(!f.test(o))return null;let c=1;do{if(o=e[c],!h.test(o))break;c++}while(c<e.length);return e.slice(0,c)}const _=/^(NaN|-?((\d*\.\d+|\d+)([Ee][+-]?\d+)?|Infinity))/;function b(e){var o,c;return(c=(o=_.exec(e))===null||o===void 0?void 0:o[0])!==null&&c!==void 0?c:null}const P=e=>{const o=v(e);return o==null?null:{type:"Identifier",text:o}};function x(e){return o=>{if(!o.startsWith(e))return null;const c=o[e.length];return c!==void 0&&h.test(c)?null:{type:e,text:e}}}const U=e=>{const o=u(e);return o==null?null:{type:"StringValue",text:o}},R=e=>e.length>0?null:{type:"EOF",text:""},A=e=>{const o=b(e);return o===null?null:{type:"Number",text:o}},j=[R,l("=>"),l("("),l(")"),l("{"),l("}"),l("["),l("]"),l("|"),l("&"),l("<"),l(">"),l(","),l(";"),l("*"),l("?"),l("!"),l("="),l(":"),l("..."),l("."),l("#"),l("~"),l("/"),l("@"),x("undefined"),x("null"),x("function"),x("this"),x("new"),x("module"),x("event"),x("external"),x("typeof"),x("keyof"),x("readonly"),x("import"),x("is"),x("in"),x("asserts"),A,P,U],S=/^\s*\n\s*/;class L{static create(o){const c=this.read(o);o=c.text;const d=this.read(o);return o=d.text,new L(o,void 0,c.token,d.token)}constructor(o,c,d,T){this.text="",this.text=o,this.previous=c,this.current=d,this.next=T}static read(o,c=!1){c=c||S.test(o),o=o.trim();for(const d of j){const T=d(o);if(T!==null){const w=Object.assign(Object.assign({},T),{startOfLine:c});return o=o.slice(w.text.length),{text:o,token:w}}}throw new Error("Unexpected Token "+o)}advance(){const o=L.read(this.text);return new L(o.text,this.current,this.next,o.token)}}function J(e){if(e===void 0)throw new Error("Unexpected undefined");if(e.type==="JsdocTypeKeyValue"||e.type==="JsdocTypeParameterList"||e.type==="JsdocTypeProperty"||e.type==="JsdocTypeReadonlyProperty"||e.type==="JsdocTypeObjectField"||e.type==="JsdocTypeJsdocObjectField"||e.type==="JsdocTypeIndexSignature"||e.type==="JsdocTypeMappedType")throw new p(e);return e}function V(e){return e.type==="JsdocTypeKeyValue"?O(e):J(e)}function k(e){return e.type==="JsdocTypeName"?e:O(e)}function O(e){if(e.type!=="JsdocTypeKeyValue")throw new p(e);return e}function K(e){var o;if(e.type==="JsdocTypeVariadic"){if(((o=e.element)===null||o===void 0?void 0:o.type)==="JsdocTypeName")return e;throw new p(e)}if(e.type!=="JsdocTypeNumber"&&e.type!=="JsdocTypeName")throw new p(e);return e}function $(e){return e.type==="JsdocTypeIndexSignature"||e.type==="JsdocTypeMappedType"}var g;(function(e){e[e.ALL=0]="ALL",e[e.PARAMETER_LIST=1]="PARAMETER_LIST",e[e.OBJECT=2]="OBJECT",e[e.KEY_VALUE=3]="KEY_VALUE",e[e.INDEX_BRACKETS=4]="INDEX_BRACKETS",e[e.UNION=5]="UNION",e[e.INTERSECTION=6]="INTERSECTION",e[e.PREFIX=7]="PREFIX",e[e.INFIX=8]="INFIX",e[e.TUPLE=9]="TUPLE",e[e.SYMBOL=10]="SYMBOL",e[e.OPTIONAL=11]="OPTIONAL",e[e.NULLABLE=12]="NULLABLE",e[e.KEY_OF_TYPE_OF=13]="KEY_OF_TYPE_OF",e[e.FUNCTION=14]="FUNCTION",e[e.ARROW=15]="ARROW",e[e.ARRAY_BRACKETS=16]="ARRAY_BRACKETS",e[e.GENERIC=17]="GENERIC",e[e.NAME_PATH=18]="NAME_PATH",e[e.PARENTHESIS=19]="PARENTHESIS",e[e.SPECIAL_TYPES=20]="SPECIAL_TYPES"})(g||(g={}));class N{constructor(o,c,d){this.grammar=o,typeof c=="string"?this._lexer=L.create(c):this._lexer=c,this.baseParser=d}get lexer(){return this._lexer}parse(){const o=this.parseType(g.ALL);if(this.lexer.current.type!=="EOF")throw new i(this.lexer.current);return o}parseType(o){return J(this.parseIntermediateType(o))}parseIntermediateType(o){const c=this.tryParslets(null,o);if(c===null)throw new s(this.lexer.current);return this.parseInfixIntermediateType(c,o)}parseInfixIntermediateType(o,c){let d=this.tryParslets(o,c);for(;d!==null;)o=d,d=this.tryParslets(o,c);return o}tryParslets(o,c){for(const d of this.grammar){const T=d(this,c,o);if(T!==null)return T}return null}consume(o){return Array.isArray(o)||(o=[o]),o.includes(this.lexer.current.type)?(this._lexer=this.lexer.advance(),!0):!1}acceptLexerState(o){this._lexer=o.lexer}}function Y(e){return e==="EOF"||e==="|"||e===","||e===")"||e===">"}const B=(e,o,c)=>{const d=e.lexer.current.type,T=e.lexer.next.type;return c==null&&d==="?"&&!Y(T)||c!=null&&d==="?"?(e.consume("?"),c==null?{type:"JsdocTypeNullable",element:e.parseType(g.NULLABLE),meta:{position:"prefix"}}:{type:"JsdocTypeNullable",element:J(c),meta:{position:"suffix"}}):null};function I(e){const o=(c,d,T)=>{const w=c.lexer.current.type,E=c.lexer.next.type;if(T===null){if("parsePrefix"in e&&e.accept(w,E))return e.parsePrefix(c)}else if("parseInfix"in e&&e.precedence>d&&e.accept(w,E))return e.parseInfix(c,T);return null};return Object.defineProperty(o,"name",{value:e.name}),o}const z=I({name:"optionalParslet",accept:e=>e==="=",precedence:g.OPTIONAL,parsePrefix:e=>(e.consume("="),{type:"JsdocTypeOptional",element:e.parseType(g.OPTIONAL),meta:{position:"prefix"}}),parseInfix:(e,o)=>(e.consume("="),{type:"JsdocTypeOptional",element:J(o),meta:{position:"suffix"}})}),se=I({name:"numberParslet",accept:e=>e==="Number",parsePrefix:e=>{const o=parseFloat(e.lexer.current.text);return e.consume("Number"),{type:"JsdocTypeNumber",value:o}}}),sr=I({name:"parenthesisParslet",accept:e=>e==="(",parsePrefix:e=>{if(e.consume("("),e.consume(")"))return{type:"JsdocTypeParameterList",elements:[]};const o=e.parseIntermediateType(g.ALL);if(!e.consume(")"))throw new Error("Unterminated parenthesis");return o.type==="JsdocTypeParameterList"?o:o.type==="JsdocTypeKeyValue"?{type:"JsdocTypeParameterList",elements:[o]}:{type:"JsdocTypeParenthesis",element:J(o)}}}),ir=I({name:"specialTypesParslet",accept:(e,o)=>e==="?"&&Y(o)||e==="null"||e==="undefined"||e==="*",parsePrefix:e=>{if(e.consume("null"))return{type:"JsdocTypeNull"};if(e.consume("undefined"))return{type:"JsdocTypeUndefined"};if(e.consume("*"))return{type:"JsdocTypeAny"};if(e.consume("?"))return{type:"JsdocTypeUnknown"};throw new Error("Unacceptable token: "+e.lexer.current.text)}}),cr=I({name:"notNullableParslet",accept:e=>e==="!",precedence:g.NULLABLE,parsePrefix:e=>(e.consume("!"),{type:"JsdocTypeNotNullable",element:e.parseType(g.NULLABLE),meta:{position:"prefix"}}),parseInfix:(e,o)=>(e.consume("!"),{type:"JsdocTypeNotNullable",element:J(o),meta:{position:"suffix"}})});function pr({allowTrailingComma:e}){return I({name:"parameterListParslet",accept:o=>o===",",precedence:g.PARAMETER_LIST,parseInfix:(o,c)=>{const d=[V(c)];o.consume(",");do try{const T=o.parseIntermediateType(g.PARAMETER_LIST);d.push(V(T))}catch(T){if(e&&T instanceof s)break;throw T}while(o.consume(","));if(d.length>0&&d.slice(0,-1).some(T=>T.type==="JsdocTypeVariadic"))throw new Error("Only the last parameter may be a rest parameter");return{type:"JsdocTypeParameterList",elements:d}}})}const lr=I({name:"genericParslet",accept:(e,o)=>e==="<"||e==="."&&o==="<",precedence:g.GENERIC,parseInfix:(e,o)=>{const c=e.consume(".");e.consume("<");const d=[];do d.push(e.parseType(g.PARAMETER_LIST));while(e.consume(","));if(!e.consume(">"))throw new Error("Unterminated generic parameter list");return{type:"JsdocTypeGeneric",left:J(o),elements:d,meta:{brackets:"angle",dot:c}}}}),ur=I({name:"unionParslet",accept:e=>e==="|",precedence:g.UNION,parseInfix:(e,o)=>{e.consume("|");const c=[];do c.push(e.parseType(g.UNION));while(e.consume("|"));return{type:"JsdocTypeUnion",elements:[J(o),...c]}}}),_e=[B,z,se,sr,ir,cr,pr({allowTrailingComma:!0}),lr,ur,z];function de({allowSquareBracketsOnAnyType:e,allowJsdocNamePaths:o,pathGrammar:c}){return function(T,w,E){if(E==null||w>=g.NAME_PATH)return null;const F=T.lexer.current.type,q=T.lexer.next.type;if(!(F==="."&&q!=="<"||F==="["&&(e||E.type==="JsdocTypeName")||o&&(F==="~"||F==="#")))return null;let G,Te=!1;T.consume(".")?G="property":T.consume("[")?(G="property-brackets",Te=!0):T.consume("~")?G="inner":(T.consume("#"),G="instance");const st=c!==null?new N(c,T.lexer,T):T,W=st.parseIntermediateType(g.NAME_PATH);T.acceptLexerState(st);let le;switch(W.type){case"JsdocTypeName":le={type:"JsdocTypeProperty",value:W.value,meta:{quote:void 0}};break;case"JsdocTypeNumber":le={type:"JsdocTypeProperty",value:W.value.toString(10),meta:{quote:void 0}};break;case"JsdocTypeStringValue":le={type:"JsdocTypeProperty",value:W.value,meta:{quote:W.meta.quote}};break;case"JsdocTypeSpecialNamePath":if(W.specialType==="event")le=W;else throw new p(W,"Type 'JsdocTypeSpecialNamePath' is only allowed with specialType 'event'");break;default:throw new p(W,"Expecting 'JsdocTypeName', 'JsdocTypeNumber', 'JsdocStringValue' or 'JsdocTypeSpecialNamePath'")}if(Te&&!T.consume("]")){const it=T.lexer.current;throw new Error(`Unterminated square brackets. Next token is '${it.type}' with text '${it.text}'`)}return{type:"JsdocTypeNamePath",left:J(E),right:le,pathType:G}}}function X({allowedAdditionalTokens:e}){return I({name:"nameParslet",accept:o=>o==="Identifier"||o==="this"||o==="new"||e.includes(o),parsePrefix:o=>{const{type:c,text:d}=o.lexer.current;return o.consume(c),{type:"JsdocTypeName",value:d}}})}const ce=I({name:"stringValueParslet",accept:e=>e==="StringValue",parsePrefix:e=>{const o=e.lexer.current.text;return e.consume("StringValue"),{type:"JsdocTypeStringValue",value:o.slice(1,-1),meta:{quote:o[0]==="'"?"single":"double"}}}});function fe({pathGrammar:e,allowedTypes:o}){return I({name:"specialNamePathParslet",accept:c=>o.includes(c),parsePrefix:c=>{const d=c.lexer.current.type;if(c.consume(d),!c.consume(":"))return{type:"JsdocTypeName",value:d};let T,w=c.lexer.current;if(c.consume("StringValue"))T={type:"JsdocTypeSpecialNamePath",value:w.text.slice(1,-1),specialType:d,meta:{quote:w.text[0]==="'"?"single":"double"}};else{let q="";const C=["Identifier","@","/"];for(;C.some(G=>c.consume(G));)q+=w.text,w=c.lexer.current;T={type:"JsdocTypeSpecialNamePath",value:q,specialType:d,meta:{quote:void 0}}}const E=new N(e,c.lexer,c),F=E.parseInfixIntermediateType(T,g.ALL);return c.acceptLexerState(E),J(F)}})}const Xe=[X({allowedAdditionalTokens:["external","module"]}),ce,se,de({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:null})],ie=[...Xe,fe({allowedTypes:["event"],pathGrammar:Xe})];function Pe(e){let o;if(e.type==="JsdocTypeParameterList")o=e.elements;else if(e.type==="JsdocTypeParenthesis")o=[e.element];else throw new p(e);return o.map(c=>V(c))}function yr(e){const o=Pe(e);if(o.some(c=>c.type==="JsdocTypeKeyValue"))throw new Error("No parameter should be named");return o}function Ee({allowNamedParameters:e,allowNoReturnType:o,allowWithoutParenthesis:c,allowNewAsFunctionKeyword:d}){return I({name:"functionParslet",accept:(T,w)=>T==="function"||d&&T==="new"&&w==="(",parsePrefix:T=>{const w=T.consume("new");T.consume("function");const E=T.lexer.current.type==="(";if(!E){if(!c)throw new Error("function is missing parameter list");return{type:"JsdocTypeName",value:"function"}}let F={type:"JsdocTypeFunction",parameters:[],arrow:!1,constructor:w,parenthesis:E};const q=T.parseIntermediateType(g.FUNCTION);if(e===void 0)F.parameters=yr(q);else{if(w&&q.type==="JsdocTypeFunction"&&q.arrow)return F=q,F.constructor=!0,F;F.parameters=Pe(q);for(const C of F.parameters)if(C.type==="JsdocTypeKeyValue"&&!e.includes(C.key))throw new Error(`only allowed named parameters are ${e.join(", ")} but got ${C.type}`)}if(T.consume(":"))F.returnType=T.parseType(g.PREFIX);else if(!o)throw new Error("function is missing return type");return F}})}function Ne({allowPostfix:e,allowEnclosingBrackets:o}){return I({name:"variadicParslet",accept:c=>c==="...",precedence:g.PREFIX,parsePrefix:c=>{c.consume("...");const d=o&&c.consume("[");try{const T=c.parseType(g.PREFIX);if(d&&!c.consume("]"))throw new Error("Unterminated variadic type. Missing ']'");return{type:"JsdocTypeVariadic",element:J(T),meta:{position:"prefix",squareBrackets:d}}}catch(T){if(T instanceof s){if(d)throw new Error("Empty square brackets for variadic are not allowed.");return{type:"JsdocTypeVariadic",meta:{position:void 0,squareBrackets:!1}}}else throw T}},parseInfix:e?(c,d)=>(c.consume("..."),{type:"JsdocTypeVariadic",element:J(d),meta:{position:"suffix",squareBrackets:!1}}):void 0})}const Qe=I({name:"symbolParslet",accept:e=>e==="(",precedence:g.SYMBOL,parseInfix:(e,o)=>{if(o.type!=="JsdocTypeName")throw new Error("Symbol expects a name on the left side. (Reacting on '(')");e.consume("(");const c={type:"JsdocTypeSymbol",value:o.value};if(!e.consume(")")){const d=e.parseIntermediateType(g.SYMBOL);if(c.element=K(d),!e.consume(")"))throw new Error("Symbol does not end after value")}return c}}),Ze=I({name:"arrayBracketsParslet",precedence:g.ARRAY_BRACKETS,accept:(e,o)=>e==="["&&o==="]",parseInfix:(e,o)=>(e.consume("["),e.consume("]"),{type:"JsdocTypeGeneric",left:{type:"JsdocTypeName",value:"Array"},elements:[J(o)],meta:{brackets:"square",dot:!1}})});function Oe({objectFieldGrammar:e,allowKeyTypes:o}){return I({name:"objectParslet",accept:c=>c==="{",parsePrefix:c=>{c.consume("{");const d={type:"JsdocTypeObject",meta:{separator:"comma"},elements:[]};if(!c.consume("}")){let T;const w=new N(e,c.lexer,c);for(;;){w.acceptLexerState(c);let E=w.parseIntermediateType(g.OBJECT);c.acceptLexerState(w),E===void 0&&o&&(E=c.parseIntermediateType(g.OBJECT));let F=!1;if(E.type==="JsdocTypeNullable"&&(F=!0,E=E.element),E.type==="JsdocTypeNumber"||E.type==="JsdocTypeName"||E.type==="JsdocTypeStringValue"){let C;E.type==="JsdocTypeStringValue"&&(C=E.meta.quote),d.elements.push({type:"JsdocTypeObjectField",key:E.value.toString(),right:void 0,optional:F,readonly:!1,meta:{quote:C}})}else if(E.type==="JsdocTypeObjectField"||E.type==="JsdocTypeJsdocObjectField")d.elements.push(E);else throw new p(E);if(c.lexer.current.startOfLine)T="linebreak";else if(c.consume(","))T="comma";else if(c.consume(";"))T="semicolon";else break;if(c.lexer.current.type==="}")break}if(d.meta.separator=T??"comma",!c.consume("}"))throw new Error("Unterminated record type. Missing '}'")}return d}})}function Se({allowSquaredProperties:e,allowKeyTypes:o,allowReadonly:c,allowOptional:d}){return I({name:"objectFieldParslet",precedence:g.KEY_VALUE,accept:T=>T===":",parseInfix:(T,w)=>{var E;let F=!1,q=!1;d&&w.type==="JsdocTypeNullable"&&(F=!0,w=w.element),c&&w.type==="JsdocTypeReadonlyProperty"&&(q=!0,w=w.element);const C=(E=T.baseParser)!==null&&E!==void 0?E:T;if(C.acceptLexerState(T),w.type==="JsdocTypeNumber"||w.type==="JsdocTypeName"||w.type==="JsdocTypeStringValue"||$(w)){if($(w)&&!e)throw new p(w);C.consume(":");let G;w.type==="JsdocTypeStringValue"&&(G=w.meta.quote);const Te=C.parseType(g.KEY_VALUE);return T.acceptLexerState(C),{type:"JsdocTypeObjectField",key:$(w)?w:w.value.toString(),right:Te,optional:F,readonly:q,meta:{quote:G}}}else{if(!o)throw new p(w);C.consume(":");const G=C.parseType(g.KEY_VALUE);return T.acceptLexerState(C),{type:"JsdocTypeJsdocObjectField",left:J(w),right:G}}}})}function je({allowOptional:e,allowVariadic:o}){return I({name:"keyValueParslet",precedence:g.KEY_VALUE,accept:c=>c===":",parseInfix:(c,d)=>{let T=!1,w=!1;if(e&&d.type==="JsdocTypeNullable"&&(T=!0,d=d.element),o&&d.type==="JsdocTypeVariadic"&&d.element!==void 0&&(w=!0,d=d.element),d.type!=="JsdocTypeName")throw new p(d);c.consume(":");const E=c.parseType(g.KEY_VALUE);return{type:"JsdocTypeKeyValue",key:d.value,right:E,optional:T,variadic:w}}})}const et=[..._e,Ee({allowWithoutParenthesis:!0,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),ce,fe({allowedTypes:["module","external","event"],pathGrammar:ie}),Ne({allowEnclosingBrackets:!0,allowPostfix:!0}),X({allowedAdditionalTokens:["keyof"]}),Qe,Ze,de({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:ie})],dr=[...et,Oe({objectFieldGrammar:[X({allowedAdditionalTokens:["module","in"]}),Se({allowSquaredProperties:!1,allowKeyTypes:!0,allowOptional:!1,allowReadonly:!1}),...et],allowKeyTypes:!0}),je({allowOptional:!0,allowVariadic:!0})],tt=I({name:"typeOfParslet",accept:e=>e==="typeof",parsePrefix:e=>(e.consume("typeof"),{type:"JsdocTypeTypeof",element:J(e.parseType(g.KEY_OF_TYPE_OF))})}),fr=[X({allowedAdditionalTokens:["module","keyof","event","external","in"]}),B,z,ce,se,Se({allowSquaredProperties:!1,allowKeyTypes:!1,allowOptional:!1,allowReadonly:!1})],mr=[..._e,Oe({allowKeyTypes:!1,objectFieldGrammar:fr}),X({allowedAdditionalTokens:["event","external","in"]}),tt,Ee({allowWithoutParenthesis:!1,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),Ne({allowEnclosingBrackets:!1,allowPostfix:!1}),X({allowedAdditionalTokens:["keyof"]}),fe({allowedTypes:["module"],pathGrammar:ie}),de({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:ie}),je({allowOptional:!1,allowVariadic:!1}),Qe],Tr=I({name:"assertsParslet",accept:e=>e==="asserts",parsePrefix:e=>{e.consume("asserts");const o=e.parseIntermediateType(g.SYMBOL);if(o.type!=="JsdocTypeName")throw new p(o,"A typescript asserts always has to have a name on the left side.");return e.consume("is"),{type:"JsdocTypeAsserts",left:o,right:J(e.parseIntermediateType(g.INFIX))}}});function hr({allowQuestionMark:e}){return I({name:"tupleParslet",accept:o=>o==="[",parsePrefix:o=>{o.consume("[");const c={type:"JsdocTypeTuple",elements:[]};if(o.consume("]"))return c;const d=o.parseIntermediateType(g.ALL);if(d.type==="JsdocTypeParameterList"?d.elements[0].type==="JsdocTypeKeyValue"?c.elements=d.elements.map(O):c.elements=d.elements.map(J):d.type==="JsdocTypeKeyValue"?c.elements=[O(d)]:c.elements=[J(d)],!o.consume("]"))throw new Error("Unterminated '['");if(!e&&c.elements.some(T=>T.type==="JsdocTypeUnknown"))throw new Error("Question mark in tuple not allowed");return c}})}const vr=I({name:"keyOfParslet",accept:e=>e==="keyof",parsePrefix:e=>(e.consume("keyof"),{type:"JsdocTypeKeyof",element:J(e.parseType(g.KEY_OF_TYPE_OF))})}),gr=I({name:"importParslet",accept:e=>e==="import",parsePrefix:e=>{if(e.consume("import"),!e.consume("("))throw new Error("Missing parenthesis after import keyword");const o=e.parseType(g.PREFIX);if(o.type!=="JsdocTypeStringValue")throw new Error("Only string values are allowed as paths for imports");if(!e.consume(")"))throw new Error("Missing closing parenthesis after import keyword");return{type:"JsdocTypeImport",element:o}}}),br=I({name:"readonlyPropertyParslet",accept:e=>e==="readonly",parsePrefix:e=>(e.consume("readonly"),{type:"JsdocTypeReadonlyProperty",element:e.parseType(g.KEY_VALUE)})}),Jr=I({name:"arrowFunctionParslet",precedence:g.ARROW,accept:e=>e==="=>",parseInfix:(e,o)=>(e.consume("=>"),{type:"JsdocTypeFunction",parameters:Pe(o).map(k),arrow:!0,constructor:!1,parenthesis:!0,returnType:e.parseType(g.OBJECT)})}),wr=I({name:"intersectionParslet",accept:e=>e==="&",precedence:g.INTERSECTION,parseInfix:(e,o)=>{e.consume("&");const c=[];do c.push(e.parseType(g.INTERSECTION));while(e.consume("&"));return{type:"JsdocTypeIntersection",elements:[J(o),...c]}}}),xr=I({name:"predicateParslet",precedence:g.INFIX,accept:e=>e==="is",parseInfix:(e,o)=>{if(o.type!=="JsdocTypeName")throw new p(o,"A typescript predicate always has to have a name on the left side.");return e.consume("is"),{type:"JsdocTypePredicate",left:o,right:J(e.parseIntermediateType(g.INFIX))}}}),_r=I({name:"objectSquareBracketPropertyParslet",accept:e=>e==="[",parsePrefix:e=>{if(e.baseParser===void 0)throw new Error("Only allowed inside object grammar");e.consume("[");const o=e.lexer.current.text;e.consume("Identifier");let c;if(e.consume(":")){const d=e.baseParser;d.acceptLexerState(e),c={type:"JsdocTypeIndexSignature",key:o,right:d.parseType(g.INDEX_BRACKETS)},e.acceptLexerState(d)}else if(e.consume("in")){const d=e.baseParser;d.acceptLexerState(e),c={type:"JsdocTypeMappedType",key:o,right:d.parseType(g.ARRAY_BRACKETS)},e.acceptLexerState(d)}else throw new Error("Missing ':' or 'in' inside square bracketed property.");if(!e.consume("]"))throw new Error("Unterminated square brackets");return c}}),Pr=[br,X({allowedAdditionalTokens:["module","event","keyof","event","external","in"]}),B,z,ce,se,Se({allowSquaredProperties:!0,allowKeyTypes:!1,allowOptional:!0,allowReadonly:!0}),_r],Er=[..._e,Oe({allowKeyTypes:!1,objectFieldGrammar:Pr}),tt,vr,gr,ce,Ee({allowWithoutParenthesis:!0,allowNoReturnType:!1,allowNamedParameters:["this","new","args"],allowNewAsFunctionKeyword:!0}),hr({allowQuestionMark:!1}),Ne({allowEnclosingBrackets:!1,allowPostfix:!1}),Tr,X({allowedAdditionalTokens:["event","external","in"]}),fe({allowedTypes:["module"],pathGrammar:ie}),Ze,Jr,de({allowSquareBracketsOnAnyType:!0,allowJsdocNamePaths:!1,pathGrammar:ie}),wr,xr,je({allowVariadic:!0,allowOptional:!0})];function rt(e,o){switch(o){case"closure":return new N(mr,e).parse();case"jsdoc":return new N(dr,e).parse();case"typescript":return new N(Er,e).parse()}}function Nr(e,o=["typescript","closure","jsdoc"]){let c;for(const d of o)try{return rt(e,d)}catch(T){c=T}throw c}function pe(e,o){const c=e[o.type];if(c===void 0)throw new Error(`In this set of transform rules exists no rule for type ${o.type}.`);return c(o,d=>pe(e,d))}function M(e){throw new Error("This transform is not available. Are you trying the correct parsing mode?")}function nt(e){const o={params:[]};for(const c of e.parameters)c.type==="JsdocTypeKeyValue"?c.key==="this"?o.this=c.right:c.key==="new"?o.new=c.right:o.params.push(c):o.params.push(c);return o}function me(e,o,c){return e==="prefix"?c+o:o+c}function Q(e,o){switch(o){case"double":return`"${e}"`;case"single":return`'${e}'`;case void 0:return e}}function ot(){return{JsdocTypeParenthesis:(e,o)=>`(${e.element!==void 0?o(e.element):""})`,JsdocTypeKeyof:(e,o)=>`keyof ${o(e.element)}`,JsdocTypeFunction:(e,o)=>{if(e.arrow){if(e.returnType===void 0)throw new Error("Arrow function needs a return type.");let c=`(${e.parameters.map(o).join(", ")}) => ${o(e.returnType)}`;return e.constructor&&(c="new "+c),c}else{let c=e.constructor?"new":"function";return e.parenthesis&&(c+=`(${e.parameters.map(o).join(", ")})`,e.returnType!==void 0&&(c+=`: ${o(e.returnType)}`)),c}},JsdocTypeName:e=>e.value,JsdocTypeTuple:(e,o)=>`[${e.elements.map(o).join(", ")}]`,JsdocTypeVariadic:(e,o)=>e.meta.position===void 0?"...":me(e.meta.position,o(e.element),"..."),JsdocTypeNamePath:(e,o)=>{const c=o(e.left),d=o(e.right);switch(e.pathType){case"inner":return`${c}~${d}`;case"instance":return`${c}#${d}`;case"property":return`${c}.${d}`;case"property-brackets":return`${c}[${d}]`}},JsdocTypeStringValue:e=>Q(e.value,e.meta.quote),JsdocTypeAny:()=>"*",JsdocTypeGeneric:(e,o)=>{if(e.meta.brackets==="square"){const c=e.elements[0],d=o(c);return c.type==="JsdocTypeUnion"||c.type==="JsdocTypeIntersection"?`(${d})[]`:`${d}[]`}else return`${o(e.left)}${e.meta.dot?".":""}<${e.elements.map(o).join(", ")}>`},JsdocTypeImport:(e,o)=>`import(${o(e.element)})`,JsdocTypeObjectField:(e,o)=>{let c="";return e.readonly&&(c+="readonly "),typeof e.key=="string"?c+=Q(e.key,e.meta.quote):c+=o(e.key),e.optional&&(c+="?"),e.right===void 0?c:c+`: ${o(e.right)}`},JsdocTypeJsdocObjectField:(e,o)=>`${o(e.left)}: ${o(e.right)}`,JsdocTypeKeyValue:(e,o)=>{let c=e.key;return e.optional&&(c+="?"),e.variadic&&(c="..."+c),e.right===void 0?c:c+`: ${o(e.right)}`},JsdocTypeSpecialNamePath:e=>`${e.specialType}:${Q(e.value,e.meta.quote)}`,JsdocTypeNotNullable:(e,o)=>me(e.meta.position,o(e.element),"!"),JsdocTypeNull:()=>"null",JsdocTypeNullable:(e,o)=>me(e.meta.position,o(e.element),"?"),JsdocTypeNumber:e=>e.value.toString(),JsdocTypeObject:(e,o)=>`{${e.elements.map(o).join((e.meta.separator==="comma"?",":";")+" ")}}`,JsdocTypeOptional:(e,o)=>me(e.meta.position,o(e.element),"="),JsdocTypeSymbol:(e,o)=>`${e.value}(${e.element!==void 0?o(e.element):""})`,JsdocTypeTypeof:(e,o)=>`typeof ${o(e.element)}`,JsdocTypeUndefined:()=>"undefined",JsdocTypeUnion:(e,o)=>e.elements.map(o).join(" | "),JsdocTypeUnknown:()=>"?",JsdocTypeIntersection:(e,o)=>e.elements.map(o).join(" & "),JsdocTypeProperty:e=>Q(e.value,e.meta.quote),JsdocTypePredicate:(e,o)=>`${o(e.left)} is ${o(e.right)}`,JsdocTypeIndexSignature:(e,o)=>`[${e.key}: ${o(e.right)}]`,JsdocTypeMappedType:(e,o)=>`[${e.key} in ${o(e.right)}]`,JsdocTypeAsserts:(e,o)=>`asserts ${o(e.left)} is ${o(e.right)}`}}const Or=ot();function Sr(e){return pe(Or,e)}const jr=["null","true","false","break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","finally","for","function","if","import","in","instanceof","new","return","super","switch","this","throw","try","typeof","var","void","while","with","yield"];function Z(e){const o={type:"NameExpression",name:e};return jr.includes(e)&&(o.reservedWord=!0),o}const kr={JsdocTypeOptional:(e,o)=>{const c=o(e.element);return c.optional=!0,c},JsdocTypeNullable:(e,o)=>{const c=o(e.element);return c.nullable=!0,c},JsdocTypeNotNullable:(e,o)=>{const c=o(e.element);return c.nullable=!1,c},JsdocTypeVariadic:(e,o)=>{if(e.element===void 0)throw new Error("dots without value are not allowed in catharsis mode");const c=o(e.element);return c.repeatable=!0,c},JsdocTypeAny:()=>({type:"AllLiteral"}),JsdocTypeNull:()=>({type:"NullLiteral"}),JsdocTypeStringValue:e=>Z(Q(e.value,e.meta.quote)),JsdocTypeUndefined:()=>({type:"UndefinedLiteral"}),JsdocTypeUnknown:()=>({type:"UnknownLiteral"}),JsdocTypeFunction:(e,o)=>{const c=nt(e),d={type:"FunctionType",params:c.params.map(o)};return c.this!==void 0&&(d.this=o(c.this)),c.new!==void 0&&(d.new=o(c.new)),e.returnType!==void 0&&(d.result=o(e.returnType)),d},JsdocTypeGeneric:(e,o)=>({type:"TypeApplication",applications:e.elements.map(c=>o(c)),expression:o(e.left)}),JsdocTypeSpecialNamePath:e=>Z(e.specialType+":"+Q(e.value,e.meta.quote)),JsdocTypeName:e=>e.value!=="function"?Z(e.value):{type:"FunctionType",params:[]},JsdocTypeNumber:e=>Z(e.value.toString()),JsdocTypeObject:(e,o)=>{const c={type:"RecordType",fields:[]};for(const d of e.elements)d.type!=="JsdocTypeObjectField"&&d.type!=="JsdocTypeJsdocObjectField"?c.fields.push({type:"FieldType",key:o(d),value:void 0}):c.fields.push(o(d));return c},JsdocTypeObjectField:(e,o)=>{if(typeof e.key!="string")throw new Error("Index signatures and mapped types are not supported");return{type:"FieldType",key:Z(Q(e.key,e.meta.quote)),value:e.right===void 0?void 0:o(e.right)}},JsdocTypeJsdocObjectField:(e,o)=>({type:"FieldType",key:o(e.left),value:o(e.right)}),JsdocTypeUnion:(e,o)=>({type:"TypeUnion",elements:e.elements.map(c=>o(c))}),JsdocTypeKeyValue:(e,o)=>({type:"FieldType",key:Z(e.key),value:e.right===void 0?void 0:o(e.right)}),JsdocTypeNamePath:(e,o)=>{const c=o(e.left);let d;e.right.type==="JsdocTypeSpecialNamePath"?d=o(e.right).name:d=Q(e.right.value,e.right.meta.quote);const T=e.pathType==="inner"?"~":e.pathType==="instance"?"#":".";return Z(`${c.name}${T}${d}`)},JsdocTypeSymbol:e=>{let o="",c=e.element,d=!1;return c?.type==="JsdocTypeVariadic"&&(c.meta.position==="prefix"?o="...":d=!0,c=c.element),c?.type==="JsdocTypeName"?o+=c.value:c?.type==="JsdocTypeNumber"&&(o+=c.value.toString()),d&&(o+="..."),Z(`${e.value}(${o})`)},JsdocTypeParenthesis:(e,o)=>o(J(e.element)),JsdocTypeMappedType:M,JsdocTypeIndexSignature:M,JsdocTypeImport:M,JsdocTypeKeyof:M,JsdocTypeTuple:M,JsdocTypeTypeof:M,JsdocTypeIntersection:M,JsdocTypeProperty:M,JsdocTypePredicate:M,JsdocTypeAsserts:M};function Ar(e){return pe(kr,e)}function ne(e){switch(e){case void 0:return"none";case"single":return"single";case"double":return"double"}}function Ir(e){switch(e){case"inner":return"INNER_MEMBER";case"instance":return"INSTANCE_MEMBER";case"property":return"MEMBER";case"property-brackets":return"MEMBER"}}function ke(e,o){return o.length===2?{type:e,left:o[0],right:o[1]}:{type:e,left:o[0],right:ke(e,o.slice(1))}}const Rr={JsdocTypeOptional:(e,o)=>({type:"OPTIONAL",value:o(e.element),meta:{syntax:e.meta.position==="prefix"?"PREFIX_EQUAL_SIGN":"SUFFIX_EQUALS_SIGN"}}),JsdocTypeNullable:(e,o)=>({type:"NULLABLE",value:o(e.element),meta:{syntax:e.meta.position==="prefix"?"PREFIX_QUESTION_MARK":"SUFFIX_QUESTION_MARK"}}),JsdocTypeNotNullable:(e,o)=>({type:"NOT_NULLABLE",value:o(e.element),meta:{syntax:e.meta.position==="prefix"?"PREFIX_BANG":"SUFFIX_BANG"}}),JsdocTypeVariadic:(e,o)=>{const c={type:"VARIADIC",meta:{syntax:e.meta.position==="prefix"?"PREFIX_DOTS":e.meta.position==="suffix"?"SUFFIX_DOTS":"ONLY_DOTS"}};return e.element!==void 0&&(c.value=o(e.element)),c},JsdocTypeName:e=>({type:"NAME",name:e.value}),JsdocTypeTypeof:(e,o)=>({type:"TYPE_QUERY",name:o(e.element)}),JsdocTypeTuple:(e,o)=>({type:"TUPLE",entries:e.elements.map(o)}),JsdocTypeKeyof:(e,o)=>({type:"KEY_QUERY",value:o(e.element)}),JsdocTypeImport:e=>({type:"IMPORT",path:{type:"STRING_VALUE",quoteStyle:ne(e.element.meta.quote),string:e.element.value}}),JsdocTypeUndefined:()=>({type:"NAME",name:"undefined"}),JsdocTypeAny:()=>({type:"ANY"}),JsdocTypeFunction:(e,o)=>{const c=nt(e),d={type:e.arrow?"ARROW":"FUNCTION",params:c.params.map(T=>{if(T.type==="JsdocTypeKeyValue"){if(T.right===void 0)throw new Error("Function parameter without ':' is not expected to be 'KEY_VALUE'");return{type:"NAMED_PARAMETER",name:T.key,typeName:o(T.right)}}else return o(T)}),new:null,returns:null};return c.this!==void 0?d.this=o(c.this):e.arrow||(d.this=null),c.new!==void 0&&(d.new=o(c.new)),e.returnType!==void 0&&(d.returns=o(e.returnType)),d},JsdocTypeGeneric:(e,o)=>{const c={type:"GENERIC",subject:o(e.left),objects:e.elements.map(o),meta:{syntax:e.meta.brackets==="square"?"SQUARE_BRACKET":e.meta.dot?"ANGLE_BRACKET_WITH_DOT":"ANGLE_BRACKET"}};return e.meta.brackets==="square"&&e.elements[0].type==="JsdocTypeFunction"&&!e.elements[0].parenthesis&&(c.objects[0]={type:"NAME",name:"function"}),c},JsdocTypeObjectField:(e,o)=>{if(typeof e.key!="string")throw new Error("Index signatures and mapped types are not supported");if(e.right===void 0)return{type:"RECORD_ENTRY",key:e.key,quoteStyle:ne(e.meta.quote),value:null,readonly:!1};let c=o(e.right);return e.optional&&(c={type:"OPTIONAL",value:c,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:e.key.toString(),quoteStyle:ne(e.meta.quote),value:c,readonly:!1}},JsdocTypeJsdocObjectField:()=>{throw new Error("Keys may not be typed in jsdoctypeparser.")},JsdocTypeKeyValue:(e,o)=>{if(e.right===void 0)return{type:"RECORD_ENTRY",key:e.key,quoteStyle:"none",value:null,readonly:!1};let c=o(e.right);return e.optional&&(c={type:"OPTIONAL",value:c,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:e.key,quoteStyle:"none",value:c,readonly:!1}},JsdocTypeObject:(e,o)=>{const c=[];for(const d of e.elements)(d.type==="JsdocTypeObjectField"||d.type==="JsdocTypeJsdocObjectField")&&c.push(o(d));return{type:"RECORD",entries:c}},JsdocTypeSpecialNamePath:e=>{if(e.specialType!=="module")throw new Error(`jsdoctypeparser does not support type ${e.specialType} at this point.`);return{type:"MODULE",value:{type:"FILE_PATH",quoteStyle:ne(e.meta.quote),path:e.value}}},JsdocTypeNamePath:(e,o)=>{let c=!1,d,T;e.right.type==="JsdocTypeSpecialNamePath"&&e.right.specialType==="event"?(c=!0,d=e.right.value,T=ne(e.right.meta.quote)):(d=e.right.value,T=ne(e.right.meta.quote));const w={type:Ir(e.pathType),owner:o(e.left),name:d,quoteStyle:T,hasEventPrefix:c};if(w.owner.type==="MODULE"){const E=w.owner;return w.owner=w.owner.value,E.value=w,E}else return w},JsdocTypeUnion:(e,o)=>ke("UNION",e.elements.map(o)),JsdocTypeParenthesis:(e,o)=>({type:"PARENTHESIS",value:o(J(e.element))}),JsdocTypeNull:()=>({type:"NAME",name:"null"}),JsdocTypeUnknown:()=>({type:"UNKNOWN"}),JsdocTypeStringValue:e=>({type:"STRING_VALUE",quoteStyle:ne(e.meta.quote),string:e.value}),JsdocTypeIntersection:(e,o)=>ke("INTERSECTION",e.elements.map(o)),JsdocTypeNumber:e=>({type:"NUMBER_VALUE",number:e.value.toString()}),JsdocTypeSymbol:M,JsdocTypeProperty:M,JsdocTypePredicate:M,JsdocTypeMappedType:M,JsdocTypeIndexSignature:M,JsdocTypeAsserts:M};function Fr(e){return pe(Rr,e)}function Lr(){return{JsdocTypeIntersection:(e,o)=>({type:"JsdocTypeIntersection",elements:e.elements.map(o)}),JsdocTypeGeneric:(e,o)=>({type:"JsdocTypeGeneric",left:o(e.left),elements:e.elements.map(o),meta:{dot:e.meta.dot,brackets:e.meta.brackets}}),JsdocTypeNullable:e=>e,JsdocTypeUnion:(e,o)=>({type:"JsdocTypeUnion",elements:e.elements.map(o)}),JsdocTypeUnknown:e=>e,JsdocTypeUndefined:e=>e,JsdocTypeTypeof:(e,o)=>({type:"JsdocTypeTypeof",element:o(e.element)}),JsdocTypeSymbol:(e,o)=>{const c={type:"JsdocTypeSymbol",value:e.value};return e.element!==void 0&&(c.element=o(e.element)),c},JsdocTypeOptional:(e,o)=>({type:"JsdocTypeOptional",element:o(e.element),meta:{position:e.meta.position}}),JsdocTypeObject:(e,o)=>({type:"JsdocTypeObject",meta:{separator:"comma"},elements:e.elements.map(o)}),JsdocTypeNumber:e=>e,JsdocTypeNull:e=>e,JsdocTypeNotNullable:(e,o)=>({type:"JsdocTypeNotNullable",element:o(e.element),meta:{position:e.meta.position}}),JsdocTypeSpecialNamePath:e=>e,JsdocTypeObjectField:(e,o)=>({type:"JsdocTypeObjectField",key:e.key,right:e.right===void 0?void 0:o(e.right),optional:e.optional,readonly:e.readonly,meta:e.meta}),JsdocTypeJsdocObjectField:(e,o)=>({type:"JsdocTypeJsdocObjectField",left:o(e.left),right:o(e.right)}),JsdocTypeKeyValue:(e,o)=>({type:"JsdocTypeKeyValue",key:e.key,right:e.right===void 0?void 0:o(e.right),optional:e.optional,variadic:e.variadic}),JsdocTypeImport:(e,o)=>({type:"JsdocTypeImport",element:o(e.element)}),JsdocTypeAny:e=>e,JsdocTypeStringValue:e=>e,JsdocTypeNamePath:e=>e,JsdocTypeVariadic:(e,o)=>{const c={type:"JsdocTypeVariadic",meta:{position:e.meta.position,squareBrackets:e.meta.squareBrackets}};return e.element!==void 0&&(c.element=o(e.element)),c},JsdocTypeTuple:(e,o)=>({type:"JsdocTypeTuple",elements:e.elements.map(o)}),JsdocTypeName:e=>e,JsdocTypeFunction:(e,o)=>{const c={type:"JsdocTypeFunction",arrow:e.arrow,parameters:e.parameters.map(o),constructor:e.constructor,parenthesis:e.parenthesis};return e.returnType!==void 0&&(c.returnType=o(e.returnType)),c},JsdocTypeKeyof:(e,o)=>({type:"JsdocTypeKeyof",element:o(e.element)}),JsdocTypeParenthesis:(e,o)=>({type:"JsdocTypeParenthesis",element:o(e.element)}),JsdocTypeProperty:e=>e,JsdocTypePredicate:(e,o)=>({type:"JsdocTypePredicate",left:o(e.left),right:o(e.right)}),JsdocTypeIndexSignature:(e,o)=>({type:"JsdocTypeIndexSignature",key:e.key,right:o(e.right)}),JsdocTypeMappedType:(e,o)=>({type:"JsdocTypeMappedType",key:e.key,right:o(e.right)}),JsdocTypeAsserts:(e,o)=>({type:"JsdocTypeAsserts",left:o(e.left),right:o(e.right)})}}const at={JsdocTypeAny:[],JsdocTypeFunction:["parameters","returnType"],JsdocTypeGeneric:["left","elements"],JsdocTypeImport:[],JsdocTypeIndexSignature:["right"],JsdocTypeIntersection:["elements"],JsdocTypeKeyof:["element"],JsdocTypeKeyValue:["right"],JsdocTypeMappedType:["right"],JsdocTypeName:[],JsdocTypeNamePath:["left","right"],JsdocTypeNotNullable:["element"],JsdocTypeNull:[],JsdocTypeNullable:["element"],JsdocTypeNumber:[],JsdocTypeObject:["elements"],JsdocTypeObjectField:["right"],JsdocTypeJsdocObjectField:["left","right"],JsdocTypeOptional:["element"],JsdocTypeParenthesis:["element"],JsdocTypeSpecialNamePath:[],JsdocTypeStringValue:[],JsdocTypeSymbol:["element"],JsdocTypeTuple:["elements"],JsdocTypeTypeof:["element"],JsdocTypeUndefined:[],JsdocTypeUnion:["elements"],JsdocTypeUnknown:[],JsdocTypeVariadic:["element"],JsdocTypeProperty:[],JsdocTypePredicate:["left","right"],JsdocTypeAsserts:["left","right"]};function Ae(e,o,c,d,T){d?.(e,o,c);const w=at[e.type];for(const E of w){const F=e[E];if(F!==void 0)if(Array.isArray(F))for(const q of F)Ae(q,e,E,d,T);else Ae(F,e,E,d,T)}T?.(e,o,c)}function Ur(e,o,c){Ae(e,void 0,void 0,o,c)}r.catharsisTransform=Ar,r.identityTransformRules=Lr,r.jtpTransform=Fr,r.parse=rt,r.stringify=Sr,r.stringifyRules=ot,r.transform=pe,r.traverse=Ur,r.tryParse=Nr,r.visitorKeys=at})})(Ie,Ie.exports);var Re=Ie.exports,Dr=Object.create,Fe=Object.defineProperty,$r=Object.getOwnPropertyDescriptor,Kr=Object.getOwnPropertyNames,Cr=Object.getPrototypeOf,Mr=Object.prototype.hasOwnProperty,y=(n,t)=>Fe(n,"name",{value:t,configurable:!0}),m=(n,t)=>()=>(t||n((t={exports:{}}).exports,t),t.exports),qr=(n,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of Kr(t))!Mr.call(n,s)&&s!==r&&Fe(n,s,{get:()=>t[s],enumerable:!(a=$r(t,s))||a.enumerable});return n},Br=(n,t,r)=>(r=n!=null?Dr(Cr(n)):{},qr(Fe(r,"default",{value:n,enumerable:!0}),n)),ct=m((n,t)=>{var r=typeof global=="object"&&global&&global.Object===Object&&global;t.exports=r}),H=m((n,t)=>{var r=ct(),a=typeof self=="object"&&self&&self.Object===Object&&self,s=r||a||Function("return this")();t.exports=s}),he=m((n,t)=>{var r=H(),a=r.Symbol;t.exports=a}),Yr=m((n,t)=>{var r=he(),a=Object.prototype,s=a.hasOwnProperty,i=a.toString,p=r?r.toStringTag:void 0;function l(u){var f=s.call(u,p),h=u[p];try{u[p]=void 0;var v=!0}catch{}var _=i.call(u);return v&&(f?u[p]=h:delete u[p]),_}y(l,"getRawTag"),t.exports=l}),Gr=m((n,t)=>{var r=Object.prototype,a=r.toString;function s(i){return a.call(i)}y(s,"objectToString"),t.exports=s}),ue=m((n,t)=>{var r=he(),a=Yr(),s=Gr(),i="[object Null]",p="[object Undefined]",l=r?r.toStringTag:void 0;function u(f){return f==null?f===void 0?p:i:l&&l in Object(f)?a(f):s(f)}y(u,"baseGetTag"),t.exports=u}),Le=m((n,t)=>{function r(a){var s=typeof a;return a!=null&&(s=="object"||s=="function")}y(r,"isObject"),t.exports=r}),pt=m((n,t)=>{var r=ue(),a=Le(),s="[object AsyncFunction]",i="[object Function]",p="[object GeneratorFunction]",l="[object Proxy]";function u(f){if(!a(f))return!1;var h=r(f);return h==i||h==p||h==s||h==l}y(u,"isFunction"),t.exports=u}),zr=m((n,t)=>{var r=H(),a=r["__core-js_shared__"];t.exports=a}),Wr=m((n,t)=>{var r=zr(),a=function(){var i=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}();function s(i){return!!a&&a in i}y(s,"isMasked"),t.exports=s}),lt=m((n,t)=>{var r=Function.prototype,a=r.toString;function s(i){if(i!=null){try{return a.call(i)}catch{}try{return i+""}catch{}}return""}y(s,"toSource"),t.exports=s}),Hr=m((n,t)=>{var r=pt(),a=Wr(),s=Le(),i=lt(),p=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,u=Function.prototype,f=Object.prototype,h=u.toString,v=f.hasOwnProperty,_=RegExp("^"+h.call(v).replace(p,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function b(P){if(!s(P)||a(P))return!1;var x=r(P)?_:l;return x.test(i(P))}y(b,"baseIsNative"),t.exports=b}),Xr=m((n,t)=>{function r(a,s){return a?.[s]}y(r,"getValue"),t.exports=r}),ae=m((n,t)=>{var r=Hr(),a=Xr();function s(i,p){var l=a(i,p);return r(l)?l:void 0}y(s,"getNative"),t.exports=s}),Qr=m((n,t)=>{var r=ae(),a=function(){try{var s=r(Object,"defineProperty");return s({},"",{}),s}catch{}}();t.exports=a}),Zr=m((n,t)=>{var r=Qr();function a(s,i,p){i=="__proto__"&&r?r(s,i,{configurable:!0,enumerable:!0,value:p,writable:!0}):s[i]=p}y(a,"baseAssignValue"),t.exports=a}),en=m((n,t)=>{function r(a){return function(s,i,p){for(var l=-1,u=Object(s),f=p(s),h=f.length;h--;){var v=f[a?h:++l];if(i(u[v],v,u)===!1)break}return s}}y(r,"createBaseFor"),t.exports=r}),tn=m((n,t)=>{var r=en(),a=r();t.exports=a}),rn=m((n,t)=>{function r(a,s){for(var i=-1,p=Array(a);++i<a;)p[i]=s(i);return p}y(r,"baseTimes"),t.exports=r}),ye=m((n,t)=>{function r(a){return a!=null&&typeof a=="object"}y(r,"isObjectLike"),t.exports=r}),nn=m((n,t)=>{var r=ue(),a=ye(),s="[object Arguments]";function i(p){return a(p)&&r(p)==s}y(i,"baseIsArguments"),t.exports=i}),ut=m((n,t)=>{var r=nn(),a=ye(),s=Object.prototype,i=s.hasOwnProperty,p=s.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(u){return a(u)&&i.call(u,"callee")&&!p.call(u,"callee")};t.exports=l}),te=m((n,t)=>{var r=Array.isArray;t.exports=r}),on=m((n,t)=>{function r(){return!1}y(r,"stubFalse"),t.exports=r}),yt=m((n,t)=>{var r=H(),a=on(),s=typeof n=="object"&&n&&!n.nodeType&&n,i=s&&typeof t=="object"&&t&&!t.nodeType&&t,p=i&&i.exports===s,l=p?r.Buffer:void 0,u=l?l.isBuffer:void 0,f=u||a;t.exports=f}),dt=m((n,t)=>{var r=9007199254740991,a=/^(?:0|[1-9]\d*)$/;function s(i,p){var l=typeof i;return p=p??r,!!p&&(l=="number"||l!="symbol"&&a.test(i))&&i>-1&&i%1==0&&i<p}y(s,"isIndex"),t.exports=s}),Ue=m((n,t)=>{var r=9007199254740991;function a(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=r}y(a,"isLength"),t.exports=a}),an=m((n,t)=>{var r=ue(),a=Ue(),s=ye(),i="[object Arguments]",p="[object Array]",l="[object Boolean]",u="[object Date]",f="[object Error]",h="[object Function]",v="[object Map]",_="[object Number]",b="[object Object]",P="[object RegExp]",x="[object Set]",U="[object String]",R="[object WeakMap]",A="[object ArrayBuffer]",j="[object DataView]",S="[object Float32Array]",L="[object Float64Array]",J="[object Int8Array]",V="[object Int16Array]",k="[object Int32Array]",O="[object Uint8Array]",K="[object Uint8ClampedArray]",$="[object Uint16Array]",g="[object Uint32Array]",N={};N[S]=N[L]=N[J]=N[V]=N[k]=N[O]=N[K]=N[$]=N[g]=!0,N[i]=N[p]=N[A]=N[l]=N[j]=N[u]=N[f]=N[h]=N[v]=N[_]=N[b]=N[P]=N[x]=N[U]=N[R]=!1;function Y(B){return s(B)&&a(B.length)&&!!N[r(B)]}y(Y,"baseIsTypedArray"),t.exports=Y}),sn=m((n,t)=>{function r(a){return function(s){return a(s)}}y(r,"baseUnary"),t.exports=r}),cn=m((n,t)=>{var r=ct(),a=typeof n=="object"&&n&&!n.nodeType&&n,s=a&&typeof t=="object"&&t&&!t.nodeType&&t,i=s&&s.exports===a,p=i&&r.process,l=function(){try{var u=s&&s.require&&s.require("util").types;return u||p&&p.binding&&p.binding("util")}catch{}}();t.exports=l}),ft=m((n,t)=>{var r=an(),a=sn(),s=cn(),i=s&&s.isTypedArray,p=i?a(i):r;t.exports=p}),pn=m((n,t)=>{var r=rn(),a=ut(),s=te(),i=yt(),p=dt(),l=ft(),u=Object.prototype,f=u.hasOwnProperty;function h(v,_){var b=s(v),P=!b&&a(v),x=!b&&!P&&i(v),U=!b&&!P&&!x&&l(v),R=b||P||x||U,A=R?r(v.length,String):[],j=A.length;for(var S in v)(_||f.call(v,S))&&!(R&&(S=="length"||x&&(S=="offset"||S=="parent")||U&&(S=="buffer"||S=="byteLength"||S=="byteOffset")||p(S,j)))&&A.push(S);return A}y(h,"arrayLikeKeys"),t.exports=h}),ln=m((n,t)=>{var r=Object.prototype;function a(s){var i=s&&s.constructor,p=typeof i=="function"&&i.prototype||r;return s===p}y(a,"isPrototype"),t.exports=a}),un=m((n,t)=>{function r(a,s){return function(i){return a(s(i))}}y(r,"overArg"),t.exports=r}),yn=m((n,t)=>{var r=un(),a=r(Object.keys,Object);t.exports=a}),dn=m((n,t)=>{var r=ln(),a=yn(),s=Object.prototype,i=s.hasOwnProperty;function p(l){if(!r(l))return a(l);var u=[];for(var f in Object(l))i.call(l,f)&&f!="constructor"&&u.push(f);return u}y(p,"baseKeys"),t.exports=p}),fn=m((n,t)=>{var r=pt(),a=Ue();function s(i){return i!=null&&a(i.length)&&!r(i)}y(s,"isArrayLike"),t.exports=s}),Ve=m((n,t)=>{var r=pn(),a=dn(),s=fn();function i(p){return s(p)?r(p):a(p)}y(i,"keys"),t.exports=i}),mn=m((n,t)=>{var r=tn(),a=Ve();function s(i,p){return i&&r(i,p,a)}y(s,"baseForOwn"),t.exports=s}),Tn=m((n,t)=>{function r(){this.__data__=[],this.size=0}y(r,"listCacheClear"),t.exports=r}),mt=m((n,t)=>{function r(a,s){return a===s||a!==a&&s!==s}y(r,"eq"),t.exports=r}),ve=m((n,t)=>{var r=mt();function a(s,i){for(var p=s.length;p--;)if(r(s[p][0],i))return p;return-1}y(a,"assocIndexOf"),t.exports=a}),hn=m((n,t)=>{var r=ve(),a=Array.prototype,s=a.splice;function i(p){var l=this.__data__,u=r(l,p);if(u<0)return!1;var f=l.length-1;return u==f?l.pop():s.call(l,u,1),--this.size,!0}y(i,"listCacheDelete"),t.exports=i}),vn=m((n,t)=>{var r=ve();function a(s){var i=this.__data__,p=r(i,s);return p<0?void 0:i[p][1]}y(a,"listCacheGet"),t.exports=a}),gn=m((n,t)=>{var r=ve();function a(s){return r(this.__data__,s)>-1}y(a,"listCacheHas"),t.exports=a}),bn=m((n,t)=>{var r=ve();function a(s,i){var p=this.__data__,l=r(p,s);return l<0?(++this.size,p.push([s,i])):p[l][1]=i,this}y(a,"listCacheSet"),t.exports=a}),ge=m((n,t)=>{var r=Tn(),a=hn(),s=vn(),i=gn(),p=bn();function l(u){var f=-1,h=u==null?0:u.length;for(this.clear();++f<h;){var v=u[f];this.set(v[0],v[1])}}y(l,"ListCache"),l.prototype.clear=r,l.prototype.delete=a,l.prototype.get=s,l.prototype.has=i,l.prototype.set=p,t.exports=l}),Jn=m((n,t)=>{var r=ge();function a(){this.__data__=new r,this.size=0}y(a,"stackClear"),t.exports=a}),wn=m((n,t)=>{function r(a){var s=this.__data__,i=s.delete(a);return this.size=s.size,i}y(r,"stackDelete"),t.exports=r}),xn=m((n,t)=>{function r(a){return this.__data__.get(a)}y(r,"stackGet"),t.exports=r}),_n=m((n,t)=>{function r(a){return this.__data__.has(a)}y(r,"stackHas"),t.exports=r}),De=m((n,t)=>{var r=ae(),a=H(),s=r(a,"Map");t.exports=s}),be=m((n,t)=>{var r=ae(),a=r(Object,"create");t.exports=a}),Pn=m((n,t)=>{var r=be();function a(){this.__data__=r?r(null):{},this.size=0}y(a,"hashClear"),t.exports=a}),En=m((n,t)=>{function r(a){var s=this.has(a)&&delete this.__data__[a];return this.size-=s?1:0,s}y(r,"hashDelete"),t.exports=r}),Nn=m((n,t)=>{var r=be(),a="__lodash_hash_undefined__",s=Object.prototype,i=s.hasOwnProperty;function p(l){var u=this.__data__;if(r){var f=u[l];return f===a?void 0:f}return i.call(u,l)?u[l]:void 0}y(p,"hashGet"),t.exports=p}),On=m((n,t)=>{var r=be(),a=Object.prototype,s=a.hasOwnProperty;function i(p){var l=this.__data__;return r?l[p]!==void 0:s.call(l,p)}y(i,"hashHas"),t.exports=i}),Sn=m((n,t)=>{var r=be(),a="__lodash_hash_undefined__";function s(i,p){var l=this.__data__;return this.size+=this.has(i)?0:1,l[i]=r&&p===void 0?a:p,this}y(s,"hashSet"),t.exports=s}),jn=m((n,t)=>{var r=Pn(),a=En(),s=Nn(),i=On(),p=Sn();function l(u){var f=-1,h=u==null?0:u.length;for(this.clear();++f<h;){var v=u[f];this.set(v[0],v[1])}}y(l,"Hash"),l.prototype.clear=r,l.prototype.delete=a,l.prototype.get=s,l.prototype.has=i,l.prototype.set=p,t.exports=l}),kn=m((n,t)=>{var r=jn(),a=ge(),s=De();function i(){this.size=0,this.__data__={hash:new r,map:new(s||a),string:new r}}y(i,"mapCacheClear"),t.exports=i}),An=m((n,t)=>{function r(a){var s=typeof a;return s=="string"||s=="number"||s=="symbol"||s=="boolean"?a!=="__proto__":a===null}y(r,"isKeyable"),t.exports=r}),Je=m((n,t)=>{var r=An();function a(s,i){var p=s.__data__;return r(i)?p[typeof i=="string"?"string":"hash"]:p.map}y(a,"getMapData"),t.exports=a}),In=m((n,t)=>{var r=Je();function a(s){var i=r(this,s).delete(s);return this.size-=i?1:0,i}y(a,"mapCacheDelete"),t.exports=a}),Rn=m((n,t)=>{var r=Je();function a(s){return r(this,s).get(s)}y(a,"mapCacheGet"),t.exports=a}),Fn=m((n,t)=>{var r=Je();function a(s){return r(this,s).has(s)}y(a,"mapCacheHas"),t.exports=a}),Ln=m((n,t)=>{var r=Je();function a(s,i){var p=r(this,s),l=p.size;return p.set(s,i),this.size+=p.size==l?0:1,this}y(a,"mapCacheSet"),t.exports=a}),$e=m((n,t)=>{var r=kn(),a=In(),s=Rn(),i=Fn(),p=Ln();function l(u){var f=-1,h=u==null?0:u.length;for(this.clear();++f<h;){var v=u[f];this.set(v[0],v[1])}}y(l,"MapCache"),l.prototype.clear=r,l.prototype.delete=a,l.prototype.get=s,l.prototype.has=i,l.prototype.set=p,t.exports=l}),Un=m((n,t)=>{var r=ge(),a=De(),s=$e(),i=200;function p(l,u){var f=this.__data__;if(f instanceof r){var h=f.__data__;if(!a||h.length<i-1)return h.push([l,u]),this.size=++f.size,this;f=this.__data__=new s(h)}return f.set(l,u),this.size=f.size,this}y(p,"stackSet"),t.exports=p}),Tt=m((n,t)=>{var r=ge(),a=Jn(),s=wn(),i=xn(),p=_n(),l=Un();function u(f){var h=this.__data__=new r(f);this.size=h.size}y(u,"Stack"),u.prototype.clear=a,u.prototype.delete=s,u.prototype.get=i,u.prototype.has=p,u.prototype.set=l,t.exports=u}),Vn=m((n,t)=>{var r="__lodash_hash_undefined__";function a(s){return this.__data__.set(s,r),this}y(a,"setCacheAdd"),t.exports=a}),Dn=m((n,t)=>{function r(a){return this.__data__.has(a)}y(r,"setCacheHas"),t.exports=r}),$n=m((n,t)=>{var r=$e(),a=Vn(),s=Dn();function i(p){var l=-1,u=p==null?0:p.length;for(this.__data__=new r;++l<u;)this.add(p[l])}y(i,"SetCache"),i.prototype.add=i.prototype.push=a,i.prototype.has=s,t.exports=i}),Kn=m((n,t)=>{function r(a,s){for(var i=-1,p=a==null?0:a.length;++i<p;)if(s(a[i],i,a))return!0;return!1}y(r,"arraySome"),t.exports=r}),Cn=m((n,t)=>{function r(a,s){return a.has(s)}y(r,"cacheHas"),t.exports=r}),ht=m((n,t)=>{var r=$n(),a=Kn(),s=Cn(),i=1,p=2;function l(u,f,h,v,_,b){var P=h&i,x=u.length,U=f.length;if(x!=U&&!(P&&U>x))return!1;var R=b.get(u),A=b.get(f);if(R&&A)return R==f&&A==u;var j=-1,S=!0,L=h&p?new r:void 0;for(b.set(u,f),b.set(f,u);++j<x;){var J=u[j],V=f[j];if(v)var k=P?v(V,J,j,f,u,b):v(J,V,j,u,f,b);if(k!==void 0){if(k)continue;S=!1;break}if(L){if(!a(f,function(O,K){if(!s(L,K)&&(J===O||_(J,O,h,v,b)))return L.push(K)})){S=!1;break}}else if(!(J===V||_(J,V,h,v,b))){S=!1;break}}return b.delete(u),b.delete(f),S}y(l,"equalArrays"),t.exports=l}),Mn=m((n,t)=>{var r=H(),a=r.Uint8Array;t.exports=a}),qn=m((n,t)=>{function r(a){var s=-1,i=Array(a.size);return a.forEach(function(p,l){i[++s]=[l,p]}),i}y(r,"mapToArray"),t.exports=r}),Bn=m((n,t)=>{function r(a){var s=-1,i=Array(a.size);return a.forEach(function(p){i[++s]=p}),i}y(r,"setToArray"),t.exports=r}),Yn=m((n,t)=>{var r=he(),a=Mn(),s=mt(),i=ht(),p=qn(),l=Bn(),u=1,f=2,h="[object Boolean]",v="[object Date]",_="[object Error]",b="[object Map]",P="[object Number]",x="[object RegExp]",U="[object Set]",R="[object String]",A="[object Symbol]",j="[object ArrayBuffer]",S="[object DataView]",L=r?r.prototype:void 0,J=L?L.valueOf:void 0;function V(k,O,K,$,g,N,Y){switch(K){case S:if(k.byteLength!=O.byteLength||k.byteOffset!=O.byteOffset)return!1;k=k.buffer,O=O.buffer;case j:return!(k.byteLength!=O.byteLength||!N(new a(k),new a(O)));case h:case v:case P:return s(+k,+O);case _:return k.name==O.name&&k.message==O.message;case x:case R:return k==O+"";case b:var B=p;case U:var I=$&u;if(B||(B=l),k.size!=O.size&&!I)return!1;var z=Y.get(k);if(z)return z==O;$|=f,Y.set(k,O);var se=i(B(k),B(O),$,g,N,Y);return Y.delete(k),se;case A:if(J)return J.call(k)==J.call(O)}return!1}y(V,"equalByTag"),t.exports=V}),Gn=m((n,t)=>{function r(a,s){for(var i=-1,p=s.length,l=a.length;++i<p;)a[l+i]=s[i];return a}y(r,"arrayPush"),t.exports=r}),zn=m((n,t)=>{var r=Gn(),a=te();function s(i,p,l){var u=p(i);return a(i)?u:r(u,l(i))}y(s,"baseGetAllKeys"),t.exports=s}),Wn=m((n,t)=>{function r(a,s){for(var i=-1,p=a==null?0:a.length,l=0,u=[];++i<p;){var f=a[i];s(f,i,a)&&(u[l++]=f)}return u}y(r,"arrayFilter"),t.exports=r}),Hn=m((n,t)=>{function r(){return[]}y(r,"stubArray"),t.exports=r}),Xn=m((n,t)=>{var r=Wn(),a=Hn(),s=Object.prototype,i=s.propertyIsEnumerable,p=Object.getOwnPropertySymbols,l=p?function(u){return u==null?[]:(u=Object(u),r(p(u),function(f){return i.call(u,f)}))}:a;t.exports=l}),Qn=m((n,t)=>{var r=zn(),a=Xn(),s=Ve();function i(p){return r(p,s,a)}y(i,"getAllKeys"),t.exports=i}),Zn=m((n,t)=>{var r=Qn(),a=1,s=Object.prototype,i=s.hasOwnProperty;function p(l,u,f,h,v,_){var b=f&a,P=r(l),x=P.length,U=r(u),R=U.length;if(x!=R&&!b)return!1;for(var A=x;A--;){var j=P[A];if(!(b?j in u:i.call(u,j)))return!1}var S=_.get(l),L=_.get(u);if(S&&L)return S==u&&L==l;var J=!0;_.set(l,u),_.set(u,l);for(var V=b;++A<x;){j=P[A];var k=l[j],O=u[j];if(h)var K=b?h(O,k,j,u,l,_):h(k,O,j,l,u,_);if(!(K===void 0?k===O||v(k,O,f,h,_):K)){J=!1;break}V||(V=j=="constructor")}if(J&&!V){var $=l.constructor,g=u.constructor;$!=g&&"constructor"in l&&"constructor"in u&&!(typeof $=="function"&&$ instanceof $&&typeof g=="function"&&g instanceof g)&&(J=!1)}return _.delete(l),_.delete(u),J}y(p,"equalObjects"),t.exports=p}),eo=m((n,t)=>{var r=ae(),a=H(),s=r(a,"DataView");t.exports=s}),to=m((n,t)=>{var r=ae(),a=H(),s=r(a,"Promise");t.exports=s}),ro=m((n,t)=>{var r=ae(),a=H(),s=r(a,"Set");t.exports=s}),no=m((n,t)=>{var r=ae(),a=H(),s=r(a,"WeakMap");t.exports=s}),oo=m((n,t)=>{var r=eo(),a=De(),s=to(),i=ro(),p=no(),l=ue(),u=lt(),f="[object Map]",h="[object Object]",v="[object Promise]",_="[object Set]",b="[object WeakMap]",P="[object DataView]",x=u(r),U=u(a),R=u(s),A=u(i),j=u(p),S=l;(r&&S(new r(new ArrayBuffer(1)))!=P||a&&S(new a)!=f||s&&S(s.resolve())!=v||i&&S(new i)!=_||p&&S(new p)!=b)&&(S=y(function(L){var J=l(L),V=J==h?L.constructor:void 0,k=V?u(V):"";if(k)switch(k){case x:return P;case U:return f;case R:return v;case A:return _;case j:return b}return J},"getTag")),t.exports=S}),ao=m((n,t)=>{var r=Tt(),a=ht(),s=Yn(),i=Zn(),p=oo(),l=te(),u=yt(),f=ft(),h=1,v="[object Arguments]",_="[object Array]",b="[object Object]",P=Object.prototype,x=P.hasOwnProperty;function U(R,A,j,S,L,J){var V=l(R),k=l(A),O=V?_:p(R),K=k?_:p(A);O=O==v?b:O,K=K==v?b:K;var $=O==b,g=K==b,N=O==K;if(N&&u(R)){if(!u(A))return!1;V=!0,$=!1}if(N&&!$)return J||(J=new r),V||f(R)?a(R,A,j,S,L,J):s(R,A,O,j,S,L,J);if(!(j&h)){var Y=$&&x.call(R,"__wrapped__"),B=g&&x.call(A,"__wrapped__");if(Y||B){var I=Y?R.value():R,z=B?A.value():A;return J||(J=new r),L(I,z,j,S,J)}}return N?(J||(J=new r),i(R,A,j,S,L,J)):!1}y(U,"baseIsEqualDeep"),t.exports=U}),vt=m((n,t)=>{var r=ao(),a=ye();function s(i,p,l,u,f){return i===p?!0:i==null||p==null||!a(i)&&!a(p)?i!==i&&p!==p:r(i,p,l,u,s,f)}y(s,"baseIsEqual"),t.exports=s}),so=m((n,t)=>{var r=Tt(),a=vt(),s=1,i=2;function p(l,u,f,h){var v=f.length,_=v,b=!h;if(l==null)return!_;for(l=Object(l);v--;){var P=f[v];if(b&&P[2]?P[1]!==l[P[0]]:!(P[0]in l))return!1}for(;++v<_;){P=f[v];var x=P[0],U=l[x],R=P[1];if(b&&P[2]){if(U===void 0&&!(x in l))return!1}else{var A=new r;if(h)var j=h(U,R,x,l,u,A);if(!(j===void 0?a(R,U,s|i,h,A):j))return!1}}return!0}y(p,"baseIsMatch"),t.exports=p}),gt=m((n,t)=>{var r=Le();function a(s){return s===s&&!r(s)}y(a,"isStrictComparable"),t.exports=a}),io=m((n,t)=>{var r=gt(),a=Ve();function s(i){for(var p=a(i),l=p.length;l--;){var u=p[l],f=i[u];p[l]=[u,f,r(f)]}return p}y(s,"getMatchData"),t.exports=s}),bt=m((n,t)=>{function r(a,s){return function(i){return i==null?!1:i[a]===s&&(s!==void 0||a in Object(i))}}y(r,"matchesStrictComparable"),t.exports=r}),co=m((n,t)=>{var r=so(),a=io(),s=bt();function i(p){var l=a(p);return l.length==1&&l[0][2]?s(l[0][0],l[0][1]):function(u){return u===p||r(u,p,l)}}y(i,"baseMatches"),t.exports=i}),Ke=m((n,t)=>{var r=ue(),a=ye(),s="[object Symbol]";function i(p){return typeof p=="symbol"||a(p)&&r(p)==s}y(i,"isSymbol"),t.exports=i}),Ce=m((n,t)=>{var r=te(),a=Ke(),s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;function p(l,u){if(r(l))return!1;var f=typeof l;return f=="number"||f=="symbol"||f=="boolean"||l==null||a(l)?!0:i.test(l)||!s.test(l)||u!=null&&l in Object(u)}y(p,"isKey"),t.exports=p}),po=m((n,t)=>{var r=$e(),a="Expected a function";function s(i,p){if(typeof i!="function"||p!=null&&typeof p!="function")throw new TypeError(a);var l=y(function(){var u=arguments,f=p?p.apply(this,u):u[0],h=l.cache;if(h.has(f))return h.get(f);var v=i.apply(this,u);return l.cache=h.set(f,v)||h,v},"memoized");return l.cache=new(s.Cache||r),l}y(s,"memoize"),s.Cache=r,t.exports=s}),lo=m((n,t)=>{var r=po(),a=500;function s(i){var p=r(i,function(u){return l.size===a&&l.clear(),u}),l=p.cache;return p}y(s,"memoizeCapped"),t.exports=s}),uo=m((n,t)=>{var r=lo(),a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,s=/\\(\\)?/g,i=r(function(p){var l=[];return p.charCodeAt(0)===46&&l.push(""),p.replace(a,function(u,f,h,v){l.push(h?v.replace(s,"$1"):f||u)}),l});t.exports=i}),yo=m((n,t)=>{function r(a,s){for(var i=-1,p=a==null?0:a.length,l=Array(p);++i<p;)l[i]=s(a[i],i,a);return l}y(r,"arrayMap"),t.exports=r}),fo=m((n,t)=>{var r=he(),a=yo(),s=te(),i=Ke(),p=1/0,l=r?r.prototype:void 0,u=l?l.toString:void 0;function f(h){if(typeof h=="string")return h;if(s(h))return a(h,f)+"";if(i(h))return u?u.call(h):"";var v=h+"";return v=="0"&&1/h==-p?"-0":v}y(f,"baseToString"),t.exports=f}),mo=m((n,t)=>{var r=fo();function a(s){return s==null?"":r(s)}y(a,"toString"),t.exports=a}),Jt=m((n,t)=>{var r=te(),a=Ce(),s=uo(),i=mo();function p(l,u){return r(l)?l:a(l,u)?[l]:s(i(l))}y(p,"castPath"),t.exports=p}),we=m((n,t)=>{var r=Ke(),a=1/0;function s(i){if(typeof i=="string"||r(i))return i;var p=i+"";return p=="0"&&1/i==-a?"-0":p}y(s,"toKey"),t.exports=s}),wt=m((n,t)=>{var r=Jt(),a=we();function s(i,p){p=r(p,i);for(var l=0,u=p.length;i!=null&&l<u;)i=i[a(p[l++])];return l&&l==u?i:void 0}y(s,"baseGet"),t.exports=s}),To=m((n,t)=>{var r=wt();function a(s,i,p){var l=s==null?void 0:r(s,i);return l===void 0?p:l}y(a,"get"),t.exports=a}),ho=m((n,t)=>{function r(a,s){return a!=null&&s in Object(a)}y(r,"baseHasIn"),t.exports=r}),vo=m((n,t)=>{var r=Jt(),a=ut(),s=te(),i=dt(),p=Ue(),l=we();function u(f,h,v){h=r(h,f);for(var _=-1,b=h.length,P=!1;++_<b;){var x=l(h[_]);if(!(P=f!=null&&v(f,x)))break;f=f[x]}return P||++_!=b?P:(b=f==null?0:f.length,!!b&&p(b)&&i(x,b)&&(s(f)||a(f)))}y(u,"hasPath"),t.exports=u}),go=m((n,t)=>{var r=ho(),a=vo();function s(i,p){return i!=null&&a(i,p,r)}y(s,"hasIn"),t.exports=s}),bo=m((n,t)=>{var r=vt(),a=To(),s=go(),i=Ce(),p=gt(),l=bt(),u=we(),f=1,h=2;function v(_,b){return i(_)&&p(b)?l(u(_),b):function(P){var x=a(P,_);return x===void 0&&x===b?s(P,_):r(b,x,f|h)}}y(v,"baseMatchesProperty"),t.exports=v}),Jo=m((n,t)=>{function r(a){return a}y(r,"identity"),t.exports=r}),wo=m((n,t)=>{function r(a){return function(s){return s?.[a]}}y(r,"baseProperty"),t.exports=r}),xo=m((n,t)=>{var r=wt();function a(s){return function(i){return r(i,s)}}y(a,"basePropertyDeep"),t.exports=a}),_o=m((n,t)=>{var r=wo(),a=xo(),s=Ce(),i=we();function p(l){return s(l)?r(i(l)):a(l)}y(p,"property"),t.exports=p}),Po=m((n,t)=>{var r=co(),a=bo(),s=Jo(),i=te(),p=_o();function l(u){return typeof u=="function"?u:u==null?s:typeof u=="object"?i(u)?a(u[0],u[1]):r(u):p(u)}y(l,"baseIteratee"),t.exports=l}),Eo=m((n,t)=>{var r=Zr(),a=mn(),s=Po();function i(p,l){var u={};return l=s(l,3),a(p,function(f,h,v){r(u,h,l(f,h,v))}),u}y(i,"mapValues"),t.exports=i});__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;Br(Eo());__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;var No=["null","undefined"];function xe(n){return No.some(t=>t===n)}y(xe,"isDefaultValueBlacklisted");var Oo=y(n=>{if(!n)return"";if(typeof n=="string")return n;throw new Error(`Description: expected string, got: ${JSON.stringify(n)}`)},"str");function Me(n){return!!n.__docgenInfo}y(Me,"hasDocgen");function So(n){return n!=null&&Object.keys(n).length>0}y(So,"isValidDocgenSection");function jo(n,t){return Me(n)?n.__docgenInfo[t]:null}y(jo,"getDocgenSection");function xt(n){return Me(n)?Oo(n.__docgenInfo.description):""}y(xt,"getDocgenDescription");var ee;(function(n){n.start="/**",n.nostart="/***",n.delim="*",n.end="*/"})(ee=ee||(ee={}));function _t(n){return/^\s+$/.test(n)}y(_t,"isSpace");function Pt(n){let t=n.match(/\r+$/);return t==null?["",n]:[n.slice(-t[0].length),n.slice(0,-t[0].length)]}y(Pt,"splitCR");function oe(n){let t=n.match(/^\s+/);return t==null?["",n]:[n.slice(0,t[0].length),n.slice(t[0].length)]}y(oe,"splitSpace");function Et(n){return n.split(/\n/)}y(Et,"splitLines");function Nt(n={}){return Object.assign({tag:"",name:"",type:"",optional:!1,description:"",problems:[],source:[]},n)}y(Nt,"seedSpec");function Ot(n={}){return Object.assign({start:"",delimiter:"",postDelimiter:"",tag:"",postTag:"",name:"",postName:"",type:"",postType:"",description:"",end:"",lineEnd:""},n)}y(Ot,"seedTokens");var ko=/^@\S+/;function St({fence:n="```"}={}){let t=jt(n),r=y((a,s)=>t(a)?!s:s,"toggleFence");return y(function(a){let s=[[]],i=!1;for(let p of a)ko.test(p.tokens.description)&&!i?s.push([p]):s[s.length-1].push(p),i=r(p.tokens.description,i);return s},"parseBlock")}y(St,"getParser");function jt(n){return typeof n=="string"?t=>t.split(n).length%2===0:n}y(jt,"getFencer");function kt({startLine:n=0,markers:t=ee}={}){let r=null,a=n;return y(function(s){let i=s,p=Ot();if([p.lineEnd,i]=Pt(i),[p.start,i]=oe(i),r===null&&i.startsWith(t.start)&&!i.startsWith(t.nostart)&&(r=[],p.delimiter=i.slice(0,t.start.length),i=i.slice(t.start.length),[p.postDelimiter,i]=oe(i)),r===null)return a++,null;let l=i.trimRight().endsWith(t.end);if(p.delimiter===""&&i.startsWith(t.delim)&&!i.startsWith(t.end)&&(p.delimiter=t.delim,i=i.slice(t.delim.length),[p.postDelimiter,i]=oe(i)),l){let u=i.trimRight();p.end=i.slice(u.length-t.end.length),i=u.slice(0,-t.end.length)}if(p.description=i,r.push({number:a,source:s,tokens:p}),a++,l){let u=r.slice();return r=null,u}return null},"parseSource")}y(kt,"getParser");function At({tokenizers:n}){return y(function(t){var r;let a=Nt({source:t});for(let s of n)if(a=s(a),!((r=a.problems[a.problems.length-1])===null||r===void 0)&&r.critical)break;return a},"parseSpec")}y(At,"getParser");function It(){return n=>{let{tokens:t}=n.source[0],r=t.description.match(/\s*(@(\S+))(\s*)/);return r===null?(n.problems.push({code:"spec:tag:prefix",message:'tag should start with "@" symbol',line:n.source[0].number,critical:!0}),n):(t.tag=r[1],t.postTag=r[3],t.description=t.description.slice(r[0].length),n.tag=r[2],n)}}y(It,"tagTokenizer");function Rt(n="compact"){let t=Ft(n);return r=>{let a=0,s=[];for(let[l,{tokens:u}]of r.source.entries()){let f="";if(l===0&&u.description[0]!=="{")return r;for(let h of u.description)if(h==="{"&&a++,h==="}"&&a--,f+=h,a===0)break;if(s.push([u,f]),a===0)break}if(a!==0)return r.problems.push({code:"spec:type:unpaired-curlies",message:"unpaired curlies",line:r.source[0].number,critical:!0}),r;let i=[],p=s[0][0].postDelimiter.length;for(let[l,[u,f]]of s.entries())u.type=f,l>0&&(u.type=u.postDelimiter.slice(p)+f,u.postDelimiter=u.postDelimiter.slice(0,p)),[u.postType,u.description]=oe(u.description.slice(f.length)),i.push(u.type);return i[0]=i[0].slice(1),i[i.length-1]=i[i.length-1].slice(0,-1),r.type=t(i),r}}y(Rt,"typeTokenizer");var Ao=y(n=>n.trim(),"trim");function Ft(n){return n==="compact"?t=>t.map(Ao).join(""):n==="preserve"?t=>t.join(`
2
- `):n}y(Ft,"getJoiner");var Io=y(n=>n&&n.startsWith('"')&&n.endsWith('"'),"isQuoted");function Lt(){let n=y((t,{tokens:r},a)=>r.type===""?t:a,"typeEnd");return t=>{let{tokens:r}=t.source[t.source.reduce(n,0)],a=r.description.trimLeft(),s=a.split('"');if(s.length>1&&s[0]===""&&s.length%2===1)return t.name=s[1],r.name=`"${s[1]}"`,[r.postName,r.description]=oe(a.slice(r.name.length)),t;let i=0,p="",l=!1,u;for(let h of a){if(i===0&&_t(h))break;h==="["&&i++,h==="]"&&i--,p+=h}if(i!==0)return t.problems.push({code:"spec:name:unpaired-brackets",message:"unpaired brackets",line:t.source[0].number,critical:!0}),t;let f=p;if(p[0]==="["&&p[p.length-1]==="]"){l=!0,p=p.slice(1,-1);let h=p.split("=");if(p=h[0].trim(),h[1]!==void 0&&(u=h.slice(1).join("=").trim()),p==="")return t.problems.push({code:"spec:name:empty-name",message:"empty name",line:t.source[0].number,critical:!0}),t;if(u==="")return t.problems.push({code:"spec:name:empty-default",message:"empty default value",line:t.source[0].number,critical:!0}),t;if(!Io(u)&&/=(?!>)/.test(u))return t.problems.push({code:"spec:name:invalid-default",message:"invalid default value syntax",line:t.source[0].number,critical:!0}),t}return t.optional=l,t.name=p,r.name=f,u!==void 0&&(t.default=u),[r.postName,r.description]=oe(a.slice(r.name.length)),t}}y(Lt,"nameTokenizer");function Ut(n="compact",t=ee){let r=qe(n);return a=>(a.description=r(a.source,t),a)}y(Ut,"descriptionTokenizer");function qe(n){return n==="compact"?Vt:n==="preserve"?Dt:n}y(qe,"getJoiner");function Vt(n,t=ee){return n.map(({tokens:{description:r}})=>r.trim()).filter(r=>r!=="").join(" ")}y(Vt,"compactJoiner");var Ro=y((n,{tokens:t},r)=>t.type===""?n:r,"lineNo"),Fo=y(({tokens:n})=>(n.delimiter===""?n.start:n.postDelimiter.slice(1))+n.description,"getDescription");function Dt(n,t=ee){if(n.length===0)return"";n[0].tokens.description===""&&n[0].tokens.delimiter===t.start&&(n=n.slice(1));let r=n[n.length-1];return r!==void 0&&r.tokens.description===""&&r.tokens.end.endsWith(t.end)&&(n=n.slice(0,-1)),n=n.slice(n.reduce(Ro,0)),n.map(Fo).join(`
3
- `)}y(Dt,"preserveJoiner");function $t({startLine:n=0,fence:t="```",spacing:r="compact",markers:a=ee,tokenizers:s=[It(),Rt(r),Lt(),Ut(r)]}={}){if(n<0||n%1>0)throw new Error("Invalid startLine");let i=kt({startLine:n,markers:a}),p=St({fence:t}),l=At({tokenizers:s}),u=qe(r);return function(f){let h=[];for(let v of Et(f)){let _=i(v);if(_===null)continue;let b=p(_),P=b.slice(1).map(l);h.push({description:u(b[0],a),tags:P,source:_,problems:P.reduce((x,U)=>x.concat(U.problems),[])})}return h}}y($t,"getParser");function Kt(n){return n.start+n.delimiter+n.postDelimiter+n.tag+n.postTag+n.type+n.postType+n.name+n.postName+n.description+n.end+n.lineEnd}y(Kt,"join");function Lo(){return n=>n.source.map(({tokens:t})=>Kt(t)).join(`
4
- `)}y(Lo,"getStringifier");function Ct(n,t={}){return $t(t)(n)}y(Ct,"parse");function Mt(n){return n!=null&&n.includes("@")}y(Mt,"containsJsDoc");function qt(n){let t=`/**
5
- `+(n??"").split(`
6
- `).map(a=>` * ${a}`).join(`
7
- `)+`
8
- */`,r=Ct(t,{spacing:"preserve"});if(!r||r.length===0)throw new Error("Cannot parse JSDoc tags.");return r[0]}y(qt,"parse");var Uo={tags:["param","arg","argument","returns","ignore","deprecated"]},Vo=y((n,t=Uo)=>{if(!Mt(n))return{includesJsDoc:!1,ignore:!1};let r=qt(n),a=Bt(r,t.tags);return a.ignore?{includesJsDoc:!0,ignore:!0}:{includesJsDoc:!0,ignore:!1,description:r.description.trim(),extractedTags:a}},"parseJsDoc");function Bt(n,t){let r={params:null,deprecated:null,returns:null,ignore:!1};for(let a of n.tags)if(!(t!==void 0&&!t.includes(a.tag)))if(a.tag==="ignore"){r.ignore=!0;break}else switch(a.tag){case"param":case"arg":case"argument":{let s=Gt(a);s!=null&&(r.params==null&&(r.params=[]),r.params.push(s));break}case"deprecated":{let s=zt(a);s!=null&&(r.deprecated=s);break}case"returns":{let s=Wt(a);s!=null&&(r.returns=s);break}}return r}y(Bt,"extractJsDocTags");function Yt(n){return n.replace(/[\.-]$/,"")}y(Yt,"normaliseParamName");function Gt(n){if(!n.name||n.name==="-")return null;let t=Ge(n.type);return{name:n.name,type:t,description:Ye(n.description),getPrettyName:y(()=>Yt(n.name),"getPrettyName"),getTypeName:y(()=>t?ze(t):null,"getTypeName")}}y(Gt,"extractParam");function zt(n){return n.name?Be(n.name,n.description):null}y(zt,"extractDeprecated");function Be(n,t){let r=n===""?t:`${n} ${t}`;return Ye(r)}y(Be,"joinNameAndDescription");function Ye(n){let t=n.replace(/^- /g,"").trim();return t===""?null:t}y(Ye,"normaliseDescription");function Wt(n){let t=Ge(n.type);return t?{type:t,description:Be(n.name,n.description),getTypeName:y(()=>ze(t),"getTypeName")}:null}y(Wt,"extractReturns");var re=Re.stringifyRules(),Do=re.JsdocTypeObject;re.JsdocTypeAny=()=>"any";re.JsdocTypeObject=(n,t)=>`(${Do(n,t)})`;re.JsdocTypeOptional=(n,t)=>t(n.element);re.JsdocTypeNullable=(n,t)=>t(n.element);re.JsdocTypeNotNullable=(n,t)=>t(n.element);re.JsdocTypeUnion=(n,t)=>n.elements.map(t).join("|");function Ge(n){try{return Re.parse(n,"typescript")}catch{return null}}y(Ge,"extractType");function ze(n){return Re.transform(re,n)}y(ze,"extractTypeName");function We(n){return n.length>90}y(We,"isTooLongForTypeSummary");function Ht(n){return n.length>50}y(Ht,"isTooLongForDefaultValueSummary");function D(n,t){return n===t?{summary:n}:{summary:n,detail:t}}y(D,"createSummaryValue");function $o(n,t){if(n!=null){let{value:r}=n;if(!xe(r))return Ht(r)?D(t?.name,r):D(r)}return null}y($o,"createDefaultValue");function He({name:n,value:t,elements:r,raw:a}){return t??(r!=null?r.map(He).join(" | "):a??n)}y(He,"generateUnionElement");function Xt({name:n,raw:t,elements:r}){return r!=null?D(r.map(He).join(" | ")):t!=null?D(t.replace(/^\|\s*/,"")):D(n)}y(Xt,"generateUnion");function Qt({type:n,raw:t}){return t!=null?D(t):D(n)}y(Qt,"generateFuncSignature");function Zt({type:n,raw:t}){return t!=null?We(t)?D(n,t):D(t):D(n)}y(Zt,"generateObjectSignature");function er(n){let{type:t}=n;return t==="object"?Zt(n):Qt(n)}y(er,"generateSignature");function tr({name:n,raw:t}){return t!=null?We(t)?D(n,t):D(t):D(n)}y(tr,"generateDefault");function Ko(n){if(n==null)return null;switch(n.name){case"union":return Xt(n);case"signature":return er(n);default:return tr(n)}}y(Ko,"createType");function Co({defaultValue:n}){if(n!=null){let{value:t}=n;if(!xe(t))return D(t)}return null}y(Co,"createDefaultValue");function Mo({tsType:n,required:t}){if(n==null)return null;let r=n.name;return t||(r=r.replace(" | undefined","")),D(["Array","Record","signature"].includes(n.name)?n.raw:r)}y(Mo,"createType");function rr(n){return n!=null?D(n.name):null}y(rr,"createType");function nr(n){let{computed:t,func:r}=n;return typeof t>"u"&&typeof r>"u"}y(nr,"isReactDocgenTypescript");function or(n){return n?n.name==="string"?!0:n.name==="enum"?Array.isArray(n.value)&&n.value.every(({value:t})=>typeof t=="string"&&t[0]==='"'&&t[t.length-1]==='"'):!1:!1}y(or,"isStringValued");function ar(n,t){if(n!=null){let{value:r}=n;if(!xe(r))return nr(n)&&or(t)?D(JSON.stringify(r)):D(r)}return null}y(ar,"createDefaultValue");function qo(n,t,r){let{description:a,required:s,defaultValue:i}=r;return{name:n,type:rr(t),required:s,description:a,defaultValue:ar(i,t)}}y(qo,"createBasicPropDef");function Bo(n,t){if(t?.includesJsDoc){let{description:r,extractedTags:a}=t;r!=null&&(n.description=t.description);let s={...a,params:a?.params?.map(i=>({name:i.getPrettyName(),description:i.description}))};Object.values(s).filter(Boolean).length>0&&(n.jsDocTags=s)}return n}y(Bo,"applyJsDocResult");function Yo(n,t,r,a){let s=Vo(t.description);return s.includesJsDoc&&s.ignore?null:{propDef:a(n,t,s),jsDocTags:s.extractedTags,docgenInfo:t,typeSystem:r}}y(Yo,"extractProp");function Go(n){return n!=null?xt(n):""}y(Go,"extractComponentDescription");const{combineParameters:zo}=__STORYBOOK_MODULE_PREVIEW_API__;var Qo=y(n=>{let{component:t,argTypes:r,parameters:{docs:a={}}}=n,{extractArgTypes:s}=a,i=s&&t?s(t):{};return i?zo(i,r):r},"enhanceArgTypes"),Wo="storybook/docs",Zo=`${Wo}/snippet-rendered`,Ho=(n=>(n.AUTO="auto",n.CODE="code",n.DYNAMIC="dynamic",n))(Ho||{});export{Ho as D,Vr as a,Qo as c,Xo as g,Zo as y};