@devschile/chucao 2.0.0 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (173) hide show
  1. package/README.md +2 -0
  2. package/dist/chucao/chucao.esm.js +1 -1
  3. package/dist/chucao/chucao.esm.js.map +1 -1
  4. package/dist/chucao/{p-a0ec231a.entry.js → p-04dbcfa0.entry.js} +2 -2
  5. package/dist/chucao/{p-96c852f5.entry.js → p-077dc2a6.entry.js} +2 -2
  6. package/dist/chucao/{p-19dde4f9.entry.js → p-079c2017.entry.js} +2 -2
  7. package/dist/chucao/p-37e7f9cc.entry.js +2 -0
  8. package/dist/chucao/p-37e7f9cc.entry.js.map +1 -0
  9. package/dist/chucao/{p-f04d2f75.entry.js → p-5ae89a19.entry.js} +2 -2
  10. package/dist/chucao/p-70285203.entry.js +2 -0
  11. package/dist/chucao/p-70285203.entry.js.map +1 -0
  12. package/dist/chucao/{p-2e20c7a1.entry.js → p-9c072600.entry.js} +2 -2
  13. package/dist/chucao/{p-BaKXvAYc.js → p-DWC12BJ-.js} +2 -2
  14. package/dist/chucao/p-DWC12BJ-.js.map +1 -0
  15. package/dist/chucao/p-b678a7e2.entry.js +2 -0
  16. package/dist/chucao/p-b678a7e2.entry.js.map +1 -0
  17. package/dist/chucao/p-b8bd0310.entry.js +2 -0
  18. package/dist/chucao/p-b8bd0310.entry.js.map +1 -0
  19. package/dist/chucao/p-bb2445d1.entry.js +2 -0
  20. package/dist/chucao/p-c986036f.entry.js +2 -0
  21. package/dist/chucao/p-c986036f.entry.js.map +1 -0
  22. package/dist/chucao/p-d8DfpzMR.js +2 -0
  23. package/dist/chucao/p-d8DfpzMR.js.map +1 -0
  24. package/dist/chucao/{p-10658dc9.entry.js → p-e3265e38.entry.js} +2 -2
  25. package/dist/chucao/{p-f62e1da2.entry.js → p-ff5f5c1f.entry.js} +2 -2
  26. package/dist/cjs/ch-accordion.cjs.entry.js +1 -1
  27. package/dist/cjs/ch-alert_8.cjs.entry.js +55 -12
  28. package/dist/cjs/ch-alert_8.cjs.entry.js.map +1 -1
  29. package/dist/cjs/ch-checkbox.cjs.entry.js +2 -2
  30. package/dist/cjs/ch-divider.cjs.entry.js +2 -2
  31. package/dist/cjs/ch-drawer.cjs.entry.js +153 -0
  32. package/dist/cjs/ch-drawer.cjs.entry.js.map +1 -0
  33. package/dist/cjs/ch-emoji.cjs.entry.js +104 -0
  34. package/dist/cjs/ch-emoji.cjs.entry.js.map +1 -0
  35. package/dist/cjs/ch-link.cjs.entry.js +1 -1
  36. package/dist/cjs/ch-modal.cjs.entry.js +5 -24
  37. package/dist/cjs/ch-modal.cjs.entry.js.map +1 -1
  38. package/dist/cjs/ch-radio.cjs.entry.js +2 -2
  39. package/dist/cjs/ch-segmented-control.cjs.entry.js +112 -0
  40. package/dist/cjs/ch-segmented-control.cjs.entry.js.map +1 -0
  41. package/dist/cjs/ch-tabs.cjs.entry.js +2 -2
  42. package/dist/cjs/ch-textarea.cjs.entry.js +2 -2
  43. package/dist/cjs/ch-tooltip.cjs.entry.js +2 -2
  44. package/dist/cjs/chucao.cjs.js +3 -3
  45. package/dist/cjs/chucao.cjs.js.map +1 -1
  46. package/dist/cjs/{index-C9Abf0td.js → index-C9cpLteP.js} +15 -8
  47. package/dist/cjs/index-C9cpLteP.js.map +1 -0
  48. package/dist/cjs/loader.cjs.js +2 -2
  49. package/dist/cjs/scroll-lock-DIRqLP4K.js +49 -0
  50. package/dist/cjs/scroll-lock-DIRqLP4K.js.map +1 -0
  51. package/dist/collection/collection-manifest.json +4 -1
  52. package/dist/collection/components/ch-button/ch-button.css +56 -18
  53. package/dist/collection/components/ch-button/ch-button.js +135 -8
  54. package/dist/collection/components/ch-button/ch-button.js.map +1 -1
  55. package/dist/collection/components/ch-card/ch-card.js +1 -1
  56. package/dist/collection/components/ch-checkbox/ch-checkbox.js +1 -1
  57. package/dist/collection/components/ch-divider/ch-divider.js +1 -1
  58. package/dist/collection/components/ch-drawer/ch-drawer.css +152 -0
  59. package/dist/collection/components/ch-drawer/ch-drawer.js +285 -0
  60. package/dist/collection/components/ch-drawer/ch-drawer.js.map +1 -0
  61. package/dist/collection/components/ch-emoji/ch-emoji.css +33 -0
  62. package/dist/collection/components/ch-emoji/ch-emoji.js +151 -0
  63. package/dist/collection/components/ch-emoji/ch-emoji.js.map +1 -0
  64. package/dist/collection/components/ch-input/ch-input.js +1 -1
  65. package/dist/collection/components/ch-modal/ch-modal.js +4 -23
  66. package/dist/collection/components/ch-modal/ch-modal.js.map +1 -1
  67. package/dist/collection/components/ch-radio/ch-radio.js +1 -1
  68. package/dist/collection/components/ch-segmented-control/ch-segmented-control.css +88 -0
  69. package/dist/collection/components/ch-segmented-control/ch-segmented-control.js +295 -0
  70. package/dist/collection/components/ch-segmented-control/ch-segmented-control.js.map +1 -0
  71. package/dist/collection/components/ch-select/ch-select.js +1 -1
  72. package/dist/collection/components/ch-spinner/ch-spinner.js +1 -1
  73. package/dist/collection/components/ch-switch/ch-switch.js +1 -1
  74. package/dist/collection/components/ch-tabs/ch-tabs.js +1 -1
  75. package/dist/collection/components/ch-textarea/ch-textarea.js +1 -1
  76. package/dist/collection/components/ch-tooltip/ch-tooltip.js +1 -1
  77. package/dist/collection/utils/scroll-lock.js +42 -0
  78. package/dist/collection/utils/scroll-lock.js.map +1 -0
  79. package/dist/components/ch-accordion.js +1 -1
  80. package/dist/components/ch-alert.js +1 -1
  81. package/dist/components/ch-badge.js +1 -1
  82. package/dist/components/ch-button.js +1 -1
  83. package/dist/components/ch-button.js.map +1 -1
  84. package/dist/components/ch-card.js +1 -1
  85. package/dist/components/ch-checkbox.js +1 -1
  86. package/dist/components/ch-divider.js +1 -1
  87. package/dist/components/ch-drawer.d.ts +11 -0
  88. package/dist/components/ch-drawer.js +2 -0
  89. package/dist/components/ch-drawer.js.map +1 -0
  90. package/dist/components/ch-emoji.d.ts +11 -0
  91. package/dist/components/ch-emoji.js +2 -0
  92. package/dist/components/ch-emoji.js.map +1 -0
  93. package/dist/components/ch-input.js +1 -1
  94. package/dist/components/ch-link.js +1 -1
  95. package/dist/components/ch-modal.js +1 -1
  96. package/dist/components/ch-modal.js.map +1 -1
  97. package/dist/components/ch-radio.js +1 -1
  98. package/dist/components/ch-segmented-control.d.ts +11 -0
  99. package/dist/components/ch-segmented-control.js +2 -0
  100. package/dist/components/ch-segmented-control.js.map +1 -0
  101. package/dist/components/ch-select.js +1 -1
  102. package/dist/components/ch-spinner.js +1 -1
  103. package/dist/components/ch-spinner.js.map +1 -1
  104. package/dist/components/ch-switch.js +1 -1
  105. package/dist/components/ch-tabs.js +1 -1
  106. package/dist/components/ch-textarea.js +1 -1
  107. package/dist/components/ch-tooltip.js +1 -1
  108. package/dist/components/index.js +1 -1
  109. package/dist/components/{p-DL-bL54o.js → p-BhAZrOxf.js} +2 -2
  110. package/dist/components/p-BhAZrOxf.js.map +1 -0
  111. package/dist/components/p-C4eGmLcE.js +2 -0
  112. package/dist/components/p-C4eGmLcE.js.map +1 -0
  113. package/dist/components/p-d8DfpzMR.js +2 -0
  114. package/dist/components/p-d8DfpzMR.js.map +1 -0
  115. package/dist/esm/ch-accordion.entry.js +1 -1
  116. package/dist/esm/ch-alert_8.entry.js +55 -12
  117. package/dist/esm/ch-alert_8.entry.js.map +1 -1
  118. package/dist/esm/ch-checkbox.entry.js +2 -2
  119. package/dist/esm/ch-divider.entry.js +2 -2
  120. package/dist/esm/ch-drawer.entry.js +151 -0
  121. package/dist/esm/ch-drawer.entry.js.map +1 -0
  122. package/dist/esm/ch-emoji.entry.js +102 -0
  123. package/dist/esm/ch-emoji.entry.js.map +1 -0
  124. package/dist/esm/ch-link.entry.js +1 -1
  125. package/dist/esm/ch-modal.entry.js +5 -24
  126. package/dist/esm/ch-modal.entry.js.map +1 -1
  127. package/dist/esm/ch-radio.entry.js +2 -2
  128. package/dist/esm/ch-segmented-control.entry.js +110 -0
  129. package/dist/esm/ch-segmented-control.entry.js.map +1 -0
  130. package/dist/esm/ch-tabs.entry.js +2 -2
  131. package/dist/esm/ch-textarea.entry.js +2 -2
  132. package/dist/esm/ch-tooltip.entry.js +2 -2
  133. package/dist/esm/chucao.js +4 -4
  134. package/dist/esm/chucao.js.map +1 -1
  135. package/dist/esm/{index-BaKXvAYc.js → index-DWC12BJ-.js} +15 -8
  136. package/dist/esm/index-DWC12BJ-.js.map +1 -0
  137. package/dist/esm/loader.js +3 -3
  138. package/dist/esm/scroll-lock-d8DfpzMR.js +46 -0
  139. package/dist/esm/scroll-lock-d8DfpzMR.js.map +1 -0
  140. package/dist/types/components/ch-button/ch-button.d.ts +29 -5
  141. package/dist/types/components/ch-drawer/ch-drawer.d.ts +68 -0
  142. package/dist/types/components/ch-emoji/ch-emoji.d.ts +32 -0
  143. package/dist/types/components/ch-segmented-control/ch-segmented-control.d.ts +72 -0
  144. package/dist/types/components.d.ts +405 -6
  145. package/dist/types/stencil-public-runtime.d.ts +1 -0
  146. package/dist/types/utils/scroll-lock.d.ts +17 -0
  147. package/dist-react/components.d.ts +15 -1
  148. package/dist-react/components.js +30 -0
  149. package/dist-react/components.ts +43 -1
  150. package/dist-vue/index.d.ts +3 -0
  151. package/dist-vue/index.js +35 -0
  152. package/dist-vue/index.ts +41 -0
  153. package/hydrate/index.js +541 -46
  154. package/hydrate/index.mjs +541 -46
  155. package/loader/index.d.ts +1 -1
  156. package/package.json +5 -3
  157. package/dist/chucao/p-66dce533.entry.js +0 -2
  158. package/dist/chucao/p-66dce533.entry.js.map +0 -1
  159. package/dist/chucao/p-75184fe1.entry.js +0 -2
  160. package/dist/chucao/p-75184fe1.entry.js.map +0 -1
  161. package/dist/chucao/p-BaKXvAYc.js.map +0 -1
  162. package/dist/chucao/p-e48912c7.entry.js +0 -2
  163. package/dist/cjs/index-C9Abf0td.js.map +0 -1
  164. package/dist/components/p-DL-bL54o.js.map +0 -1
  165. package/dist/esm/index-BaKXvAYc.js.map +0 -1
  166. /package/dist/chucao/{p-a0ec231a.entry.js.map → p-04dbcfa0.entry.js.map} +0 -0
  167. /package/dist/chucao/{p-96c852f5.entry.js.map → p-077dc2a6.entry.js.map} +0 -0
  168. /package/dist/chucao/{p-19dde4f9.entry.js.map → p-079c2017.entry.js.map} +0 -0
  169. /package/dist/chucao/{p-f04d2f75.entry.js.map → p-5ae89a19.entry.js.map} +0 -0
  170. /package/dist/chucao/{p-2e20c7a1.entry.js.map → p-9c072600.entry.js.map} +0 -0
  171. /package/dist/chucao/{p-e48912c7.entry.js.map → p-bb2445d1.entry.js.map} +0 -0
  172. /package/dist/chucao/{p-10658dc9.entry.js.map → p-e3265e38.entry.js.map} +0 -0
  173. /package/dist/chucao/{p-f62e1da2.entry.js.map → p-ff5f5c1f.entry.js.map} +0 -0
package/README.md CHANGED
@@ -48,6 +48,8 @@ piezas externas.
48
48
  | [`docs/releasing.md`](docs/releasing.md) | English | Cómo publicar releases y desplegar la librería al CDN |
49
49
  | [`docs/testing.md`](docs/testing.md) | English | Testing y cobertura de los componentes |
50
50
  | [`docs/storybook.md`](docs/storybook.md) | English | Evaluación de desplegar Storybook en el CDN (no adoptado) |
51
+ | [`llms.txt`](llms.txt) | English | Índice para agentes y crawlers (componentes, tokens, docs) |
52
+ | [`docs/ai.md`](docs/ai.md) | English | Guía para agentes IA que consumen Chucao |
51
53
 
52
54
  ## Cómo reusar esto en un proyecto nuevo
53
55
 
@@ -1,2 +1,2 @@
1
- import{p as e,g as r,b as a}from"./p-BaKXvAYc.js";export{s as setNonce}from"./p-BaKXvAYc.js";var l=()=>{const r=import.meta.url;const a={};if(r!==""){a.resourcesUrl=new URL(".",r).href}return e(a)};l().then((async e=>{await r();return a([["p-75184fe1",[[769,"ch-alert",{variant:[1],dismissLabel:[1,"dismiss-label"]}],[769,"ch-badge",{variant:[1]}],[769,"ch-button",{variant:[1],disabled:[4],label:[1]}],[257,"ch-card"],[577,"ch-input",{label:[1],type:[1],value:[1025],placeholder:[1],name:[513],disabled:[516],required:[516],hint:[1],errorMessage:[1,"error-message"],invalid:[4],formDisabled:[32]},null,{value:[{syncForm:0}],required:[{syncForm:0}],invalid:[{syncForm:0}],errorMessage:[{syncForm:0}]}],[577,"ch-select",{label:[1],options:[16],value:[1025],placeholder:[1],name:[513],disabled:[516],required:[516],hint:[1],errorMessage:[1,"error-message"],invalid:[4],formDisabled:[32]},null,{value:[{syncForm:0}],required:[{syncForm:0}],invalid:[{syncForm:0}],errorMessage:[{syncForm:0}]}],[513,"ch-spinner",{size:[1],label:[1]}],[577,"ch-switch",{label:[1],name:[513],value:[1],checked:[1028],disabled:[516],required:[516],hint:[1],errorMessage:[1,"error-message"],invalid:[4],formDisabled:[32]},null,{checked:[{syncForm:0}],required:[{syncForm:0}],invalid:[{syncForm:0}],errorMessage:[{syncForm:0}]}]]],["p-f62e1da2",[[769,"ch-accordion",{items:[16],value:[1025]}]]],["p-19dde4f9",[[577,"ch-checkbox",{label:[1],name:[513],value:[1],checked:[1028],disabled:[516],required:[516],hint:[1],errorMessage:[1,"error-message"],invalid:[4],formDisabled:[32]},null,{checked:[{syncForm:0}],required:[{syncForm:0}],invalid:[{syncForm:0}],errorMessage:[{syncForm:0}]}]]],["p-e48912c7",[[513,"ch-divider",{orientation:[1]}]]],["p-a0ec231a",[[769,"ch-link",{href:[1],target:[1],variant:[1],disabled:[4]}]]],["p-66dce533",[[769,"ch-modal",{open:[1028],label:[1],closeLabel:[1,"close-label"]},null,{open:[{handleOpenChange:0}]}]]],["p-2e20c7a1",[[577,"ch-radio",{label:[1],options:[16],value:[1025],name:[513],disabled:[516],required:[516],hint:[1],errorMessage:[1,"error-message"],invalid:[4],formDisabled:[32]},null,{value:[{syncForm:0}],required:[{syncForm:0}],invalid:[{syncForm:0}],errorMessage:[{syncForm:0}]}]]],["p-f04d2f75",[[769,"ch-tabs",{tabs:[16],value:[1025],label:[1]}]]],["p-10658dc9",[[577,"ch-textarea",{label:[1],value:[1025],placeholder:[1],rows:[2],name:[513],disabled:[516],required:[516],hint:[1],errorMessage:[1,"error-message"],invalid:[4],formDisabled:[32]},null,{value:[{syncForm:0}],required:[{syncForm:0}],invalid:[{syncForm:0}],errorMessage:[{syncForm:0}]}]]],["p-96c852f5",[[769,"ch-tooltip",{placement:[1],hovered:[32],focused:[32],dismissed:[32]},[[1,"mouseenter","handleMouseEnter"],[1,"mouseleave","handleMouseLeave"],[0,"focusin","handleFocusIn"],[0,"focusout","handleFocusOut"],[4,"keydown","handleKeyDown"]]]]]],e)}));
1
+ import{p as e,g as r,b as a}from"./p-DWC12BJ-.js";export{s as setNonce}from"./p-DWC12BJ-.js";var l=()=>{const r=import.meta.url;const a={};if(r!==""){a.resourcesUrl=new URL(".",r).href}return e(a)};l().then((async e=>{await r();return a([["p-ff5f5c1f",[[769,"ch-accordion",{items:[16],value:[1025]}]]],["p-079c2017",[[577,"ch-checkbox",{label:[1],name:[513],value:[1],checked:[1028],disabled:[516],required:[516],hint:[1],errorMessage:[1,"error-message"],invalid:[4],formDisabled:[32]},null,{checked:[{syncForm:0}],required:[{syncForm:0}],invalid:[{syncForm:0}],errorMessage:[{syncForm:0}]}]]],["p-bb2445d1",[[513,"ch-divider",{orientation:[1]}]]],["p-37e7f9cc",[[769,"ch-drawer",{open:[1028],side:[1],label:[1],closeLabel:[1,"close-label"]},null,{open:[{handleOpenChange:0}]}]]],["p-c986036f",[[513,"ch-emoji",{name:[1],alt:[1],size:[1],extIndex:[32],loaded:[32]},null,{name:[{handleNameChange:0}]}]]],["p-04dbcfa0",[[769,"ch-link",{href:[1],target:[1],variant:[1],disabled:[4]}]]],["p-70285203",[[769,"ch-modal",{open:[1028],label:[1],closeLabel:[1,"close-label"]},null,{open:[{handleOpenChange:0}]}]]],["p-9c072600",[[577,"ch-radio",{label:[1],options:[16],value:[1025],name:[513],disabled:[516],required:[516],hint:[1],errorMessage:[1,"error-message"],invalid:[4],formDisabled:[32]},null,{value:[{syncForm:0}],required:[{syncForm:0}],invalid:[{syncForm:0}],errorMessage:[{syncForm:0}]}]]],["p-b678a7e2",[[577,"ch-segmented-control",{label:[1],options:[16],value:[1025],size:[1],name:[513],disabled:[516],required:[516],formDisabled:[32]},null,{value:[{syncForm:0}],required:[{syncForm:0}]}]]],["p-5ae89a19",[[769,"ch-tabs",{tabs:[16],value:[1025],label:[1]}]]],["p-e3265e38",[[577,"ch-textarea",{label:[1],value:[1025],placeholder:[1],rows:[2],name:[513],disabled:[516],required:[516],hint:[1],errorMessage:[1,"error-message"],invalid:[4],formDisabled:[32]},null,{value:[{syncForm:0}],required:[{syncForm:0}],invalid:[{syncForm:0}],errorMessage:[{syncForm:0}]}]]],["p-077dc2a6",[[769,"ch-tooltip",{placement:[1],hovered:[32],focused:[32],dismissed:[32]},[[1,"mouseenter","handleMouseEnter"],[1,"mouseleave","handleMouseLeave"],[0,"focusin","handleFocusIn"],[0,"focusout","handleFocusOut"],[4,"keydown","handleKeyDown"]]]]],["p-b8bd0310",[[769,"ch-button",{variant:[1],size:[1],disabled:[4],loading:[4],href:[1],target:[1],label:[1]}],[769,"ch-alert",{variant:[1],dismissLabel:[1,"dismiss-label"]}],[769,"ch-badge",{variant:[1]}],[257,"ch-card"],[577,"ch-input",{label:[1],type:[1],value:[1025],placeholder:[1],name:[513],disabled:[516],required:[516],hint:[1],errorMessage:[1,"error-message"],invalid:[4],formDisabled:[32]},null,{value:[{syncForm:0}],required:[{syncForm:0}],invalid:[{syncForm:0}],errorMessage:[{syncForm:0}]}],[577,"ch-select",{label:[1],options:[16],value:[1025],placeholder:[1],name:[513],disabled:[516],required:[516],hint:[1],errorMessage:[1,"error-message"],invalid:[4],formDisabled:[32]},null,{value:[{syncForm:0}],required:[{syncForm:0}],invalid:[{syncForm:0}],errorMessage:[{syncForm:0}]}],[577,"ch-switch",{label:[1],name:[513],value:[1],checked:[1028],disabled:[516],required:[516],hint:[1],errorMessage:[1,"error-message"],invalid:[4],formDisabled:[32]},null,{checked:[{syncForm:0}],required:[{syncForm:0}],invalid:[{syncForm:0}],errorMessage:[{syncForm:0}]}],[513,"ch-spinner",{size:[1],label:[1]}]]]],e)}));
2
2
  //# sourceMappingURL=chucao.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"chucao.esm.js","sources":["node_modules/.pnpm/@stencil+core@4.44.0/node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.44.0 | MIT Licensed | https://stenciljs.com\n */\n\n// src/client/client-patch-browser.ts\nimport { BUILD, NAMESPACE } from \"@stencil/core/internal/app-data\";\nimport { consoleDevInfo, H, promiseResolve, win } from \"@stencil/core\";\nvar patchBrowser = () => {\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo(\"Running in development mode.\");\n }\n if (BUILD.cloneNodeFix) {\n patchCloneNodeFix(H.prototype);\n }\n const scriptElm = BUILD.scriptDataOpts ? win.document && Array.from(win.document.querySelectorAll(\"script\")).find(\n (s) => new RegExp(`/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) || s.getAttribute(\"data-stencil-namespace\") === NAMESPACE\n ) : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})[\"data-opts\"] || {} : {};\n if (importMeta !== \"\") {\n opts.resourcesUrl = new URL(\".\", importMeta).href;\n }\n return promiseResolve(opts);\n};\nvar patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function(deep) {\n if (this.nodeName === \"TEMPLATE\") {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport {\n patchBrowser\n};\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(async (options) => {\n await globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"names":[],"mappings":";;;AAAA;AACA;AACA;;AAKA,IAAI,YAAY,GAAG,MAAM;AAUzB,EAAE,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG;AACpC,EAAE,MAAM,IAAI,GAAiE,EAAE;AAC/E,EAAE,IAAI,UAAU,KAAK,EAAE,EAAE;AACzB,IAAI,IAAI,CAAC,YAAY,GAAG,IAAI,GAAG,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC,IAAI;AACrD;AACA,EAAE,OAAO,cAAc,CAAC,IAAI,CAAC;AAC7B,CAAC;;ACnBD,YAAY,EAAE,CAAC,IAAI,CAAC,OAAO,OAAO,KAAK;AACvC,EAAE,MAAM,aAAa,EAAE;AACvB,EAAE,OAAO,aAAa,CAAC,4BAA4B,EAAE,OAAO,CAAC;AAC7D,CAAC,CAAC","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"chucao.esm.js","sources":["node_modules/.pnpm/@stencil+core@4.44.2/node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.44.2 | MIT Licensed | https://stenciljs.com\n */\n\n// src/client/client-patch-browser.ts\nimport { BUILD, NAMESPACE } from \"@stencil/core/internal/app-data\";\nimport { consoleDevInfo, H, promiseResolve, win } from \"@stencil/core\";\nvar patchBrowser = () => {\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo(\"Running in development mode.\");\n }\n if (BUILD.cloneNodeFix) {\n patchCloneNodeFix(H.prototype);\n }\n const scriptElm = BUILD.scriptDataOpts ? win.document && Array.from(win.document.querySelectorAll(\"script\")).find(\n (s) => new RegExp(`/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) || s.getAttribute(\"data-stencil-namespace\") === NAMESPACE\n ) : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})[\"data-opts\"] || {} : {};\n if (importMeta !== \"\") {\n opts.resourcesUrl = new URL(\".\", importMeta).href;\n }\n return promiseResolve(opts);\n};\nvar patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function(deep) {\n if (this.nodeName === \"TEMPLATE\") {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport {\n patchBrowser\n};\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(async (options) => {\n await globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"names":[],"mappings":";;;AAAA;AACA;AACA;;AAKA,IAAI,YAAY,GAAG,MAAM;AAUzB,EAAE,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG;AACpC,EAAE,MAAM,IAAI,GAAiE,EAAE;AAC/E,EAAE,IAAI,UAAU,KAAK,EAAE,EAAE;AACzB,IAAI,IAAI,CAAC,YAAY,GAAG,IAAI,GAAG,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC,IAAI;AACrD;AACA,EAAE,OAAO,cAAc,CAAC,IAAI,CAAC;AAC7B,CAAC;;ACnBD,YAAY,EAAE,CAAC,IAAI,CAAC,OAAO,OAAO,KAAK;AACvC,EAAE,MAAM,aAAa,EAAE;AACvB,EAAE,OAAO,aAAa,CAAC,4BAA4B,EAAE,OAAO,CAAC;AAC7D,CAAC,CAAC","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- import{r as t,c as e,h as r,H as i}from"./p-BaKXvAYc.js";const a=()=>`:host{display:inline}.link{color:var(--accent);font-weight:var(--typography-weight-semibold);text-decoration:var(--ch-link-text-decoration, underline);text-decoration-thickness:var(--border-width);text-underline-offset:var(--spacing-shift);border-radius:var(--radius-sm);transition:color var(--duration-normal) var(--easing-default), opacity var(--duration-normal) var(--easing-default)}.link:hover{color:var(--accent-hover)}.link:focus-visible{outline:var(--focus-outline-width) solid var(--accent);outline-offset:var(--focus-outline-offset)}.link--muted{color:var(--text-muted);text-decoration:none}.link--muted:hover{color:var(--text)}.link--disabled{color:var(--text-muted);text-decoration:none;opacity:var(--opacity-disabled);cursor:not-allowed}`;const n=class{constructor(r){t(this,r);this.chClick=e(this,"chClick")}href;target;variant="default";disabled=false;chClick;handleClick=t=>{this.chClick.emit(t)};render(){if(this.disabled){return r(i,null,r("span",{class:{link:true,[`link--${this.variant}`]:true,"link--disabled":true},part:"link","aria-disabled":"true"},r("slot",null)))}return r(i,null,r("a",{class:{link:true,[`link--${this.variant}`]:true},part:"link",href:this.href,target:this.target,rel:this.target==="_blank"?"noopener noreferrer":undefined,onClick:this.handleClick},r("slot",null)))}};n.style=a();export{n as ch_link};
2
- //# sourceMappingURL=p-a0ec231a.entry.js.map
1
+ import{r as t,c as e,h as r,H as i}from"./p-DWC12BJ-.js";const a=()=>`:host{display:inline}.link{color:var(--accent);font-weight:var(--typography-weight-semibold);text-decoration:var(--ch-link-text-decoration, underline);text-decoration-thickness:var(--border-width);text-underline-offset:var(--spacing-shift);border-radius:var(--radius-sm);transition:color var(--duration-normal) var(--easing-default), opacity var(--duration-normal) var(--easing-default)}.link:hover{color:var(--accent-hover)}.link:focus-visible{outline:var(--focus-outline-width) solid var(--accent);outline-offset:var(--focus-outline-offset)}.link--muted{color:var(--text-muted);text-decoration:none}.link--muted:hover{color:var(--text)}.link--disabled{color:var(--text-muted);text-decoration:none;opacity:var(--opacity-disabled);cursor:not-allowed}`;const n=class{constructor(r){t(this,r);this.chClick=e(this,"chClick")}href;target;variant="default";disabled=false;chClick;handleClick=t=>{this.chClick.emit(t)};render(){if(this.disabled){return r(i,null,r("span",{class:{link:true,[`link--${this.variant}`]:true,"link--disabled":true},part:"link","aria-disabled":"true"},r("slot",null)))}return r(i,null,r("a",{class:{link:true,[`link--${this.variant}`]:true},part:"link",href:this.href,target:this.target,rel:this.target==="_blank"?"noopener noreferrer":undefined,onClick:this.handleClick},r("slot",null)))}};n.style=a();export{n as ch_link};
2
+ //# sourceMappingURL=p-04dbcfa0.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as t,a as e,h as a,H as i}from"./p-BaKXvAYc.js";const o=()=>`:host{display:inline-block}.anchor{position:relative;display:inline-flex}.bubble{position:absolute;z-index:var(--z-index-dropdown);width:max-content;max-width:16rem;padding:var(--spacing-md) var(--spacing-2xl);border:var(--border-width) solid var(--border);border-radius:var(--radius-sm);background:var(--color-background-base);color:var(--text);font-family:var(--font-body);font-size:var(--typography-size-sm);line-height:1.4;opacity:0;visibility:hidden;transition:opacity var(--duration-fast) var(--easing-default), visibility var(--duration-fast) var(--easing-default)}.bubble--visible{opacity:1;visibility:visible}.bubble::before{content:'';position:absolute}.bubble--top{bottom:100%;left:50%;transform:translateX(-50%);margin-bottom:var(--spacing-md)}.bubble--top::before{top:100%;left:0;right:0;height:var(--spacing-md)}.bubble--bottom{top:100%;left:50%;transform:translateX(-50%);margin-top:var(--spacing-md)}.bubble--bottom::before{bottom:100%;left:0;right:0;height:var(--spacing-md)}.bubble--left{right:100%;top:50%;transform:translateY(-50%);margin-right:var(--spacing-md)}.bubble--left::before{left:100%;top:0;bottom:0;width:var(--spacing-md)}.bubble--right{left:100%;top:50%;transform:translateY(-50%);margin-left:var(--spacing-md)}.bubble--right::before{right:100%;top:0;bottom:0;width:var(--spacing-md)}@media (prefers-reduced-motion: reduce){.bubble{transition:none}}`;let r=0;const s=class{constructor(e){t(this,e)}get el(){return e(this)}fallbackId=`ch-tooltip-${++r}`;placement="top";hovered=false;focused=false;dismissed=false;get visible(){return(this.hovered||this.focused)&&!this.dismissed}componentDidLoad(){this.associate()}handleMouseEnter(){this.hovered=true;this.dismissed=false}handleMouseLeave(){this.hovered=false}handleFocusIn(){this.focused=true;this.dismissed=false}handleFocusOut(){this.focused=false}handleKeyDown(t){if(t.key==="Escape"&&this.visible){this.dismissed=true}}slotted(t){return Array.from(this.el.children).find((e=>e.getAttribute("slot")===t))}associate=()=>{const t=this.slotted("trigger");const e=this.slotted("content");if(!t||!e){return}if(!e.id){e.id=this.fallbackId}e.setAttribute("role","tooltip");t.setAttribute("aria-describedby",e.id)};render(){return a(i,{key:"654d4a12f84c94e014691e911e7c63c6c45b8755"},a("span",{key:"726269e02fedc37efc39f1561d8b9baf83d6a4cc",class:"anchor"},a("slot",{key:"876cb19249032d6d1c66f22bd2c255683b6a7f66",name:"trigger",onSlotchange:this.associate}),a("span",{key:"7436eb75b40b33d0b6c8ce194245d4a08a29facb",class:{bubble:true,[`bubble--${this.placement}`]:true,"bubble--visible":this.visible}},a("slot",{key:"24648cc6078d61803793df011058da9515b466b5",name:"content",onSlotchange:this.associate}))))}};s.style=o();export{s as ch_tooltip};
2
- //# sourceMappingURL=p-96c852f5.entry.js.map
1
+ import{r as t,a as e,h as a,H as i}from"./p-DWC12BJ-.js";const o=()=>`:host{display:inline-block}.anchor{position:relative;display:inline-flex}.bubble{position:absolute;z-index:var(--z-index-dropdown);width:max-content;max-width:16rem;padding:var(--spacing-md) var(--spacing-2xl);border:var(--border-width) solid var(--border);border-radius:var(--radius-sm);background:var(--color-background-base);color:var(--text);font-family:var(--font-body);font-size:var(--typography-size-sm);line-height:1.4;opacity:0;visibility:hidden;transition:opacity var(--duration-fast) var(--easing-default), visibility var(--duration-fast) var(--easing-default)}.bubble--visible{opacity:1;visibility:visible}.bubble::before{content:'';position:absolute}.bubble--top{bottom:100%;left:50%;transform:translateX(-50%);margin-bottom:var(--spacing-md)}.bubble--top::before{top:100%;left:0;right:0;height:var(--spacing-md)}.bubble--bottom{top:100%;left:50%;transform:translateX(-50%);margin-top:var(--spacing-md)}.bubble--bottom::before{bottom:100%;left:0;right:0;height:var(--spacing-md)}.bubble--left{right:100%;top:50%;transform:translateY(-50%);margin-right:var(--spacing-md)}.bubble--left::before{left:100%;top:0;bottom:0;width:var(--spacing-md)}.bubble--right{left:100%;top:50%;transform:translateY(-50%);margin-left:var(--spacing-md)}.bubble--right::before{right:100%;top:0;bottom:0;width:var(--spacing-md)}@media (prefers-reduced-motion: reduce){.bubble{transition:none}}`;let r=0;const s=class{constructor(e){t(this,e)}get el(){return e(this)}fallbackId=`ch-tooltip-${++r}`;placement="top";hovered=false;focused=false;dismissed=false;get visible(){return(this.hovered||this.focused)&&!this.dismissed}componentDidLoad(){this.associate()}handleMouseEnter(){this.hovered=true;this.dismissed=false}handleMouseLeave(){this.hovered=false}handleFocusIn(){this.focused=true;this.dismissed=false}handleFocusOut(){this.focused=false}handleKeyDown(t){if(t.key==="Escape"&&this.visible){this.dismissed=true}}slotted(t){return Array.from(this.el.children).find((e=>e.getAttribute("slot")===t))}associate=()=>{const t=this.slotted("trigger");const e=this.slotted("content");if(!t||!e){return}if(!e.id){e.id=this.fallbackId}e.setAttribute("role","tooltip");t.setAttribute("aria-describedby",e.id)};render(){return a(i,{key:"89e1b0de9e5d2a33edba2cc0b479788694c5a202"},a("span",{key:"c7a31597ba6fd6a7c68cdd74cf8170d14b9e85ba",class:"anchor"},a("slot",{key:"eac54ebeffa8ccbfdd0c4e42e26cd4c40e81d649",name:"trigger",onSlotchange:this.associate}),a("span",{key:"326581a3f64a2165a9031818782a50de7fe05fa7",class:{bubble:true,[`bubble--${this.placement}`]:true,"bubble--visible":this.visible}},a("slot",{key:"739d4b50a611cc4db8fdc802f2f39deb68f974eb",name:"content",onSlotchange:this.associate}))))}};s.style=o();export{s as ch_tooltip};
2
+ //# sourceMappingURL=p-077dc2a6.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as i,c as t,a as e,h as a,H as r}from"./p-BaKXvAYc.js";const s=()=>`:host{display:inline-block}.control{display:inline-flex;align-items:center;gap:var(--spacing-lg);cursor:pointer}.control--disabled{opacity:var(--opacity-disabled);cursor:not-allowed}.input{appearance:none;-webkit-appearance:none;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:var(--spacing-4xl);height:var(--spacing-4xl);margin:0;flex-shrink:0;border:var(--border-width) solid var(--border);border-radius:var(--radius-sm);background:var(--surface);cursor:pointer;transition:border-color var(--duration-normal) var(--easing-default), background-color var(--duration-normal) var(--easing-default), box-shadow var(--duration-normal) var(--easing-default)}.input:focus-visible{outline:var(--focus-outline-width) solid var(--accent);outline-offset:var(--focus-outline-offset)}.input:checked{border-color:var(--accent);background:var(--accent)}.input:checked::before{content:'';width:var(--spacing-xs);height:var(--spacing-lg);border:solid var(--color-accent-text);border-width:0 var(--spacing-shift) var(--spacing-shift) 0;transform:rotate(45deg);margin-top:calc(-1 * var(--spacing-2xs))}.input--invalid{border-color:var(--color-status-warning)}.input--invalid:focus-visible{outline-color:var(--color-status-warning)}:host([data-touched]:invalid) .input,:host(:user-invalid) .input{border-color:var(--color-status-warning)}:host([data-touched]:invalid) .input:focus-visible,:host(:user-invalid) .input:focus-visible{outline-color:var(--color-status-warning)}.label-text{color:var(--text)}.hint,.error{margin:var(--spacing-sm) 0 0;font-size:var(--typography-size-sm);color:var(--text-muted)}.error{color:var(--color-status-warning)}`;let o=0;const n=class{constructor(e){i(this,e);this.chChange=t(this,"chChange");if(e.$hostElement$["s-ei"]){this.internals=e.$hostElement$["s-ei"]}else{this.internals=e.$hostElement$.attachInternals();e.$hostElement$["s-ei"]=this.internals}}checkboxId=`ch-checkbox-${++o}`;hintId=`${this.checkboxId}-hint`;errorId=`${this.checkboxId}-error`;initialChecked=false;internals;formDisabled=false;get host(){return e(this)}label;name;value="on";checked=false;disabled=false;required=false;hint;errorMessage;invalid=false;chChange;handleChange=i=>{this.checked=i.target.checked;this.chChange.emit(this.checked)};syncForm(){const i=this.internals;if(typeof i?.setFormValue!=="function"){return}i.setFormValue(this.checked?this.value:null);const t={};let e;if(this.required&&!this.checked){t.valueMissing=true}if(this.invalid&&this.errorMessage){t.customError=true}e=this.errorMessage??(t.valueMissing?"Please fill out this field.":undefined);i.setValidity(t,e)}componentDidLoad(){this.initialChecked=this.checked;this.syncForm();this.host.addEventListener("change",this.markTouched);this.host.addEventListener("focusout",this.markTouched);this.host.addEventListener("invalid",this.markTouched)}markTouched=()=>{this.host.setAttribute("data-touched","")};formResetCallback(){this.checked=this.initialChecked}formDisabledCallback(i){this.formDisabled=i}get describedBy(){if(this.invalid&&this.errorMessage){return this.errorId}if(this.hint){return this.hintId}return undefined}render(){return a(r,{key:"ca6c6f1297434052eeee68fd76cf21d6a7b99aae"},a("label",{key:"1f3538da6eb2ce91a75cf73044e2103ba472d4ed",class:{control:true,"control--disabled":this.disabled||this.formDisabled},htmlFor:this.checkboxId},a("input",{key:"7ed674616bc70af42b025a2b945378192ce48a58",id:this.checkboxId,class:{input:true,"input--invalid":this.invalid},type:"checkbox",name:this.name,value:this.value,checked:this.checked,disabled:this.disabled||this.formDisabled,required:this.required,"aria-invalid":this.invalid?"true":undefined,"aria-describedby":this.describedBy,onChange:this.handleChange}),this.label&&a("span",{key:"4f5ccc7b28d95d012aa5cd87ec2411be34672d9e",class:"label-text"},this.label)),this.hint&&!(this.invalid&&this.errorMessage)&&a("p",{key:"b7d2b09c54ed61907e4e7110af867b2a0592924c",class:"hint",id:this.hintId},this.hint),this.invalid&&this.errorMessage&&a("p",{key:"2340791705a5fce22b810a3a32377a7b1ccef852",class:"error",id:this.errorId,role:"alert"},this.errorMessage))}static get formAssociated(){return true}static get watchers(){return{checked:[{syncForm:0}],required:[{syncForm:0}],invalid:[{syncForm:0}],errorMessage:[{syncForm:0}]}}};n.style=s();export{n as ch_checkbox};
2
- //# sourceMappingURL=p-19dde4f9.entry.js.map
1
+ import{r as i,c as t,a as e,h as r,H as s}from"./p-DWC12BJ-.js";const a=()=>`:host{display:inline-block}.control{display:inline-flex;align-items:center;gap:var(--spacing-lg);cursor:pointer}.control--disabled{opacity:var(--opacity-disabled);cursor:not-allowed}.input{appearance:none;-webkit-appearance:none;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:var(--spacing-4xl);height:var(--spacing-4xl);margin:0;flex-shrink:0;border:var(--border-width) solid var(--border);border-radius:var(--radius-sm);background:var(--surface);cursor:pointer;transition:border-color var(--duration-normal) var(--easing-default), background-color var(--duration-normal) var(--easing-default), box-shadow var(--duration-normal) var(--easing-default)}.input:focus-visible{outline:var(--focus-outline-width) solid var(--accent);outline-offset:var(--focus-outline-offset)}.input:checked{border-color:var(--accent);background:var(--accent)}.input:checked::before{content:'';width:var(--spacing-xs);height:var(--spacing-lg);border:solid var(--color-accent-text);border-width:0 var(--spacing-shift) var(--spacing-shift) 0;transform:rotate(45deg);margin-top:calc(-1 * var(--spacing-2xs))}.input--invalid{border-color:var(--color-status-warning)}.input--invalid:focus-visible{outline-color:var(--color-status-warning)}:host([data-touched]:invalid) .input,:host(:user-invalid) .input{border-color:var(--color-status-warning)}:host([data-touched]:invalid) .input:focus-visible,:host(:user-invalid) .input:focus-visible{outline-color:var(--color-status-warning)}.label-text{color:var(--text)}.hint,.error{margin:var(--spacing-sm) 0 0;font-size:var(--typography-size-sm);color:var(--text-muted)}.error{color:var(--color-status-warning)}`;let o=0;const n=class{constructor(e){i(this,e);this.chChange=t(this,"chChange");if(e.$hostElement$["s-ei"]){this.internals=e.$hostElement$["s-ei"]}else{this.internals=e.$hostElement$.attachInternals();e.$hostElement$["s-ei"]=this.internals}}checkboxId=`ch-checkbox-${++o}`;hintId=`${this.checkboxId}-hint`;errorId=`${this.checkboxId}-error`;initialChecked=false;internals;formDisabled=false;get host(){return e(this)}label;name;value="on";checked=false;disabled=false;required=false;hint;errorMessage;invalid=false;chChange;handleChange=i=>{this.checked=i.target.checked;this.chChange.emit(this.checked)};syncForm(){const i=this.internals;if(typeof i?.setFormValue!=="function"){return}i.setFormValue(this.checked?this.value:null);const t={};let e;if(this.required&&!this.checked){t.valueMissing=true}if(this.invalid&&this.errorMessage){t.customError=true}e=this.errorMessage??(t.valueMissing?"Please fill out this field.":undefined);i.setValidity(t,e)}componentDidLoad(){this.initialChecked=this.checked;this.syncForm();this.host.addEventListener("change",this.markTouched);this.host.addEventListener("focusout",this.markTouched);this.host.addEventListener("invalid",this.markTouched)}markTouched=()=>{this.host.setAttribute("data-touched","")};formResetCallback(){this.checked=this.initialChecked}formDisabledCallback(i){this.formDisabled=i}get describedBy(){if(this.invalid&&this.errorMessage){return this.errorId}if(this.hint){return this.hintId}return undefined}render(){return r(s,{key:"4011f5a338d2b006a0bfa8217d1ee9b01b987d7d"},r("label",{key:"8c6c8d6c530d366b26f0cb602dc1e987ed8324d5",class:{control:true,"control--disabled":this.disabled||this.formDisabled},htmlFor:this.checkboxId},r("input",{key:"c1f58eeba34ae5d5371e863f349433852fc3c882",id:this.checkboxId,class:{input:true,"input--invalid":this.invalid},type:"checkbox",name:this.name,value:this.value,checked:this.checked,disabled:this.disabled||this.formDisabled,required:this.required,"aria-invalid":this.invalid?"true":undefined,"aria-describedby":this.describedBy,onChange:this.handleChange}),this.label&&r("span",{key:"447812e11253c951cb6a5003adda13357fc6dec3",class:"label-text"},this.label)),this.hint&&!(this.invalid&&this.errorMessage)&&r("p",{key:"5369375f8dd0c2fa787207f8fcef4feeb78ddda6",class:"hint",id:this.hintId},this.hint),this.invalid&&this.errorMessage&&r("p",{key:"e90274e1df8d205053effe57ceb56f8e8b4deca2",class:"error",id:this.errorId,role:"alert"},this.errorMessage))}static get formAssociated(){return true}static get watchers(){return{checked:[{syncForm:0}],required:[{syncForm:0}],invalid:[{syncForm:0}],errorMessage:[{syncForm:0}]}}};n.style=a();export{n as ch_checkbox};
2
+ //# sourceMappingURL=p-079c2017.entry.js.map
@@ -0,0 +1,2 @@
1
+ import{r as e,c as r,h as a,H as t}from"./p-DWC12BJ-.js";import{l as i,u as o}from"./p-d8DfpzMR.js";const n=()=>`.drawer{position:fixed;inset:0;margin:0;box-sizing:border-box;flex-direction:column;gap:var(--spacing-2xl);width:min(24rem, 100vw);height:100vh;height:100dvh;max-width:100vw;max-height:100dvh;padding:var(--spacing-5xl);border:var(--border-width) solid var(--border);border-radius:0;background:var(--color-background-base);color:var(--text);font-family:var(--font-body);font-size:var(--typography-size-md);overflow:hidden}.drawer[open]{display:flex}.drawer--start{inset:0 auto 0 0;border-inline-start:none;animation:drawer-in-start var(--duration-normal) var(--easing-default)}.drawer--end{inset:0 0 0 auto;border-inline-end:none;animation:drawer-in-end var(--duration-normal) var(--easing-default)}.drawer--top{inset:0 0 auto 0;width:100vw;height:auto;max-height:80dvh;border-block-start:none;animation:drawer-in-top var(--duration-normal) var(--easing-default)}.drawer--bottom{inset:auto 0 0 0;width:100vw;height:auto;max-height:80dvh;border-block-end:none;animation:drawer-in-bottom var(--duration-normal) var(--easing-default)}.drawer::backdrop{background:var(--color-scrim-default);backdrop-filter:blur(var(--effect-blur))}.drawer-head{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--spacing-2xl);flex:none}.drawer-body{flex:1;min-height:0;overflow-y:auto}::slotted([slot='footer']){display:flex;align-items:center;justify-content:flex-end;gap:var(--spacing-md);flex:none;padding-top:var(--spacing-2xl);border-top:var(--border-width) solid var(--border)}.drawer-close{display:inline-flex;align-items:center;justify-content:center;flex:none;padding:var(--spacing-2xs) var(--spacing-md);border:0;border-radius:var(--radius);background:none;color:var(--text-muted);cursor:pointer;font-family:var(--font-heading);font-size:var(--typography-size-lg);line-height:1;transition:background-color var(--duration-normal) var(--easing-default)}.drawer-close:hover{background:var(--surface-hover);color:var(--text)}.drawer-close:focus-visible{outline:var(--focus-outline-width) solid var(--accent);outline-offset:var(--focus-outline-offset)}@keyframes drawer-in-start{from{transform:translateX(-100%)}}@keyframes drawer-in-end{from{transform:translateX(100%)}}@keyframes drawer-in-top{from{transform:translateY(-100%)}}@keyframes drawer-in-bottom{from{transform:translateY(100%)}}@media (pointer: coarse){.drawer-close{min-width:44px;min-height:44px}}@media (prefers-reduced-motion: reduce){.drawer{animation:none}.drawer-close{transition:none}}`;const s=class{constructor(a){e(this,a);this.chOpen=r(this,"chOpen");this.chClose=r(this,"chClose")}open=false;side="end";label;closeLabel;chOpen;chClose;dialog;scrollLocked=false;pointerDownedOutside=false;componentDidLoad(){this.dialog?.addEventListener("close",this.handleNativeClose);this.dialog?.addEventListener("pointerdown",this.handlePointerDown);this.dialog?.addEventListener("click",this.handleClick);if(this.open){this.showDialog()}}disconnectedCallback(){this.dialog?.removeEventListener("close",this.handleNativeClose);this.dialog?.removeEventListener("pointerdown",this.handlePointerDown);this.dialog?.removeEventListener("click",this.handleClick);this.unlockScroll()}handleOpenChange(e){if(e){this.showDialog()}else{this.closeDialog()}}showDialog(){if(typeof this.dialog?.showModal!=="function"){return}this.lockScroll();this.dialog.showModal();this.chOpen.emit()}closeDialog(){if(typeof this.dialog?.close==="function"&&this.dialog.open){this.dialog.close()}}lockScroll(){if(this.scrollLocked){return}this.scrollLocked=true;i()}unlockScroll(){if(!this.scrollLocked){return}this.scrollLocked=false;o()}isOnBackdrop(e){if(!this.dialog||e.target!==this.dialog){return false}const r=this.dialog.getBoundingClientRect();return e.clientX<r.left||e.clientX>r.right||e.clientY<r.top||e.clientY>r.bottom}handlePointerDown=e=>{this.pointerDownedOutside=this.isOnBackdrop(e)};handleClick=e=>{const r=this.pointerDownedOutside&&this.isOnBackdrop(e);this.pointerDownedOutside=false;if(r){this.closeDialog()}};handleNativeClose=()=>{this.unlockScroll();if(this.open){this.open=false}this.chClose.emit()};handleCloseClick=()=>{if(typeof this.dialog?.close==="function"&&this.dialog.open){this.dialog.close();return}this.open=false;this.chClose.emit()};render(){return a(t,{key:"8ee0dd329f7304e3f4804c26c75514372d49b4b8"},a("dialog",{key:"7f99c8edf6f820b595d4360ccc90123da37f9314",class:{drawer:true,[`drawer--${this.side}`]:true},"aria-label":this.label,ref:e=>this.dialog=e},a("div",{key:"65c2a386b36305ece253fe644db2a198bc245d12",class:"drawer-head"},a("slot",{key:"6c259b14a1fea3a38014c832d917554e3d431e18",name:"header"}),this.closeLabel&&a("button",{key:"4d259fbd9850ea4f379f07be50f863e896e67312",class:"drawer-close",type:"button","aria-label":this.closeLabel,onClick:this.handleCloseClick},a("span",{key:"f1623602e84587020e77ec84c4b997c726414193","aria-hidden":"true"},"×"))),a("div",{key:"b239b7da3c9b00a6e80d33290d810297301206de",class:"drawer-body"},a("slot",{key:"c3739f84975fc5f4717986214217c23eacb4432f"})),a("slot",{key:"469be1ccedaf474fe40a9c2d264b6c128715cfc7",name:"footer"})))}static get watchers(){return{open:[{handleOpenChange:0}]}}};s.style=n();export{s as ch_drawer};
2
+ //# sourceMappingURL=p-37e7f9cc.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["chDrawerCss","ChDrawer","open","side","label","closeLabel","chOpen","chClose","dialog","scrollLocked","pointerDownedOutside","componentDidLoad","this","addEventListener","handleNativeClose","handlePointerDown","handleClick","showDialog","disconnectedCallback","removeEventListener","unlockScroll","handleOpenChange","closeDialog","showModal","lockScroll","emit","close","lockPageScroll","unlockPageScroll","isOnBackdrop","event","target","box","getBoundingClientRect","clientX","left","right","clientY","top","bottom","dismiss","handleCloseClick","render","h","Host","key","class","drawer","ref","el","name","type","onClick"],"sources":["src/components/ch-drawer/ch-drawer.css?tag=ch-drawer&encapsulation=shadow","src/components/ch-drawer/ch-drawer.tsx"],"sourcesContent":[".drawer {\n position: fixed;\n inset: 0;\n margin: 0;\n box-sizing: border-box;\n flex-direction: column;\n gap: var(--spacing-2xl);\n width: min(24rem, 100vw);\n height: 100vh;\n height: 100dvh;\n max-width: 100vw;\n max-height: 100dvh;\n padding: var(--spacing-5xl);\n border: var(--border-width) solid var(--border);\n border-radius: 0;\n background: var(--color-background-base);\n color: var(--text);\n font-family: var(--font-body);\n font-size: var(--typography-size-md);\n overflow: hidden;\n}\n\n.drawer[open] {\n display: flex;\n}\n\n.drawer--start {\n inset: 0 auto 0 0;\n border-inline-start: none;\n animation: drawer-in-start var(--duration-normal) var(--easing-default);\n}\n\n.drawer--end {\n inset: 0 0 0 auto;\n border-inline-end: none;\n animation: drawer-in-end var(--duration-normal) var(--easing-default);\n}\n\n.drawer--top {\n inset: 0 0 auto 0;\n width: 100vw;\n height: auto;\n max-height: 80dvh;\n border-block-start: none;\n animation: drawer-in-top var(--duration-normal) var(--easing-default);\n}\n\n.drawer--bottom {\n inset: auto 0 0 0;\n width: 100vw;\n height: auto;\n max-height: 80dvh;\n border-block-end: none;\n animation: drawer-in-bottom var(--duration-normal) var(--easing-default);\n}\n\n.drawer::backdrop {\n background: var(--color-scrim-default);\n backdrop-filter: blur(var(--effect-blur));\n}\n\n.drawer-head {\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n gap: var(--spacing-2xl);\n flex: none;\n}\n\n.drawer-body {\n flex: 1;\n min-height: 0;\n overflow-y: auto;\n}\n\n::slotted([slot='footer']) {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n gap: var(--spacing-md);\n flex: none;\n padding-top: var(--spacing-2xl);\n border-top: var(--border-width) solid var(--border);\n}\n\n.drawer-close {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex: none;\n padding: var(--spacing-2xs) var(--spacing-md);\n border: 0;\n border-radius: var(--radius);\n background: none;\n color: var(--text-muted);\n cursor: pointer;\n font-family: var(--font-heading);\n font-size: var(--typography-size-lg);\n line-height: 1;\n transition: background-color var(--duration-normal) var(--easing-default);\n}\n\n.drawer-close:hover {\n background: var(--surface-hover);\n color: var(--text);\n}\n\n.drawer-close:focus-visible {\n outline: var(--focus-outline-width) solid var(--accent);\n outline-offset: var(--focus-outline-offset);\n}\n\n@keyframes drawer-in-start {\n from {\n transform: translateX(-100%);\n }\n}\n\n@keyframes drawer-in-end {\n from {\n transform: translateX(100%);\n }\n}\n\n@keyframes drawer-in-top {\n from {\n transform: translateY(-100%);\n }\n}\n\n@keyframes drawer-in-bottom {\n from {\n transform: translateY(100%);\n }\n}\n\n@media (pointer: coarse) {\n .drawer-close {\n min-width: 44px;\n min-height: 44px;\n }\n}\n\n@media (prefers-reduced-motion: reduce) {\n .drawer {\n animation: none;\n }\n\n .drawer-close {\n transition: none;\n }\n}\n","import { Component, Event, type EventEmitter, Host, Prop, Watch, h } from '@stencil/core';\n\nimport { lockScroll as lockPageScroll, unlockScroll as unlockPageScroll } from '../../utils/scroll-lock';\n\nexport type ChDrawerSide = 'start' | 'end' | 'top' | 'bottom';\n\n/**\n * Sliding side panel for navigation, editing forms and quick detail views.\n *\n * Built on the native `<dialog>` element and opened with `showModal()`, exactly\n * like `ch-modal`, so the browser owns focus management, the inert background,\n * `Escape`, the top layer, `::backdrop`, and the implicit `dialog` role with\n * `aria-modal=\"true\"`. The only differences are placement — anchored to one\n * edge instead of centred — and the longer content it is meant for, which is\n * why it exposes `header` and `footer` slots around a scrollable body.\n *\n * Scroll locking is shared with `ch-modal` through `utils/scroll-lock`, so a\n * drawer and a modal opened together cannot unlock the page early.\n */\n@Component({\n tag: 'ch-drawer',\n styleUrl: 'ch-drawer.css',\n shadow: true,\n})\nexport class ChDrawer {\n /**\n * Whether the drawer is open. Kept in sync when the user closes it with\n * `Escape`, the close button or a click outside.\n */\n @Prop({ mutable: true }) open = false;\n\n /**\n * The edge the panel slides in from. `start`/`end` follow the writing\n * direction, so `start` is the left edge in LTR and the right edge in RTL.\n */\n @Prop() side: ChDrawerSide = 'end';\n\n /**\n * Accessible name for the drawer, set as `aria-label`. A slotted heading\n * cannot be referenced with `aria-labelledby` across the shadow boundary, so\n * the name comes through this prop — and a modal dialog needs one, so pass\n * the same text as the heading.\n */\n @Prop() label?: string;\n\n /**\n * Accessible label for the close button, set as `aria-label`. Setting it is\n * what adds the button: its only content is a decorative glyph, so without a\n * label it would have no accessible name.\n */\n @Prop() closeLabel?: string;\n\n /**\n * Emitted after the drawer opens.\n */\n @Event() chOpen: EventEmitter<void>;\n\n /**\n * Emitted after the drawer closes, however it was closed.\n */\n @Event() chClose: EventEmitter<void>;\n\n private dialog?: HTMLDialogElement;\n private scrollLocked = false;\n private pointerDownedOutside = false;\n\n componentDidLoad() {\n // Wired here rather than in JSX because Stencil derives a listener's event\n // name from whether `on<name>` exists on `window`, which differs between\n // the browser and the test environment for pointer events.\n this.dialog?.addEventListener('close', this.handleNativeClose);\n this.dialog?.addEventListener('pointerdown', this.handlePointerDown);\n this.dialog?.addEventListener('click', this.handleClick);\n if (this.open) {\n this.showDialog();\n }\n }\n\n disconnectedCallback() {\n this.dialog?.removeEventListener('close', this.handleNativeClose);\n this.dialog?.removeEventListener('pointerdown', this.handlePointerDown);\n this.dialog?.removeEventListener('click', this.handleClick);\n this.unlockScroll();\n }\n\n @Watch('open')\n handleOpenChange(open: boolean) {\n if (open) {\n this.showDialog();\n } else {\n this.closeDialog();\n }\n }\n\n private showDialog() {\n if (typeof this.dialog?.showModal !== 'function') {\n return;\n }\n this.lockScroll();\n this.dialog.showModal();\n this.chOpen.emit();\n }\n\n private closeDialog() {\n if (typeof this.dialog?.close === 'function' && this.dialog.open) {\n this.dialog.close();\n }\n }\n\n private lockScroll() {\n if (this.scrollLocked) {\n return;\n }\n this.scrollLocked = true;\n lockPageScroll();\n }\n\n private unlockScroll() {\n if (!this.scrollLocked) {\n return;\n }\n this.scrollLocked = false;\n unlockPageScroll();\n }\n\n /**\n * True for a pointer event on the backdrop: the `<dialog>` is the event\n * target for its own box only, and the coordinates fall outside that box.\n */\n private isOnBackdrop(event: MouseEvent) {\n if (!this.dialog || event.target !== this.dialog) {\n return false;\n }\n const box = this.dialog.getBoundingClientRect();\n return event.clientX < box.left || event.clientX > box.right || event.clientY < box.top || event.clientY > box.bottom;\n }\n\n private handlePointerDown = (event: Event) => {\n this.pointerDownedOutside = this.isOnBackdrop(event as MouseEvent);\n };\n\n private handleClick = (event: Event) => {\n // Requiring the press to have started on the backdrop too keeps a\n // selection dragged out of the drawer, and a keyboard-synthesised click\n // (which reports coordinates of 0), from closing it.\n const dismiss = this.pointerDownedOutside && this.isOnBackdrop(event as MouseEvent);\n this.pointerDownedOutside = false;\n if (dismiss) {\n this.closeDialog();\n }\n };\n\n private handleNativeClose = () => {\n this.unlockScroll();\n if (this.open) {\n this.open = false;\n }\n this.chClose.emit();\n };\n\n private handleCloseClick = () => {\n if (typeof this.dialog?.close === 'function' && this.dialog.open) {\n this.dialog.close();\n return;\n }\n this.open = false;\n this.chClose.emit();\n };\n\n render() {\n return (\n <Host>\n <dialog class={{ drawer: true, [`drawer--${this.side}`]: true }} aria-label={this.label} ref={el => (this.dialog = el as HTMLDialogElement)}>\n <div class=\"drawer-head\">\n <slot name=\"header\"></slot>\n {this.closeLabel && (\n <button class=\"drawer-close\" type=\"button\" aria-label={this.closeLabel} onClick={this.handleCloseClick}>\n <span aria-hidden=\"true\">×</span>\n </button>\n )}\n </div>\n <div class=\"drawer-body\">\n <slot></slot>\n </div>\n <slot name=\"footer\"></slot>\n </dialog>\n </Host>\n );\n }\n}\n"],"mappings":"oGAAA,MAAMA,EAAc,IAAM,m6E,MCwBbC,EAAQ,M,qFAKMC,KAAO,MAMxBC,KAAqB,MAQrBC,MAOAC,WAKCC,OAKAC,QAEDC,OACAC,aAAe,MACfC,qBAAuB,MAE/B,gBAAAC,GAIEC,KAAKJ,QAAQK,iBAAiB,QAASD,KAAKE,mBAC5CF,KAAKJ,QAAQK,iBAAiB,cAAeD,KAAKG,mBAClDH,KAAKJ,QAAQK,iBAAiB,QAASD,KAAKI,aAC5C,GAAIJ,KAAKV,KAAM,CACbU,KAAKK,Y,EAIT,oBAAAC,GACEN,KAAKJ,QAAQW,oBAAoB,QAASP,KAAKE,mBAC/CF,KAAKJ,QAAQW,oBAAoB,cAAeP,KAAKG,mBACrDH,KAAKJ,QAAQW,oBAAoB,QAASP,KAAKI,aAC/CJ,KAAKQ,c,CAIP,gBAAAC,CAAiBnB,GACf,GAAIA,EAAM,CACRU,KAAKK,Y,KACA,CACLL,KAAKU,a,EAID,UAAAL,GACN,UAAWL,KAAKJ,QAAQe,YAAc,WAAY,CAChD,M,CAEFX,KAAKY,aACLZ,KAAKJ,OAAOe,YACZX,KAAKN,OAAOmB,M,CAGN,WAAAH,GACN,UAAWV,KAAKJ,QAAQkB,QAAU,YAAcd,KAAKJ,OAAON,KAAM,CAChEU,KAAKJ,OAAOkB,O,EAIR,UAAAF,GACN,GAAIZ,KAAKH,aAAc,CACrB,M,CAEFG,KAAKH,aAAe,KACpBkB,G,CAGM,YAAAP,GACN,IAAKR,KAAKH,aAAc,CACtB,M,CAEFG,KAAKH,aAAe,MACpBmB,G,CAOM,YAAAC,CAAaC,GACnB,IAAKlB,KAAKJ,QAAUsB,EAAMC,SAAWnB,KAAKJ,OAAQ,CAChD,OAAO,K,CAET,MAAMwB,EAAMpB,KAAKJ,OAAOyB,wBACxB,OAAOH,EAAMI,QAAUF,EAAIG,MAAQL,EAAMI,QAAUF,EAAII,OAASN,EAAMO,QAAUL,EAAIM,KAAOR,EAAMO,QAAUL,EAAIO,M,CAGzGxB,kBAAqBe,IAC3BlB,KAAKF,qBAAuBE,KAAKiB,aAAaC,EAAoB,EAG5Dd,YAAec,IAIrB,MAAMU,EAAU5B,KAAKF,sBAAwBE,KAAKiB,aAAaC,GAC/DlB,KAAKF,qBAAuB,MAC5B,GAAI8B,EAAS,CACX5B,KAAKU,a,GAIDR,kBAAoB,KAC1BF,KAAKQ,eACL,GAAIR,KAAKV,KAAM,CACbU,KAAKV,KAAO,K,CAEdU,KAAKL,QAAQkB,MAAM,EAGbgB,iBAAmB,KACzB,UAAW7B,KAAKJ,QAAQkB,QAAU,YAAcd,KAAKJ,OAAON,KAAM,CAChEU,KAAKJ,OAAOkB,QACZ,M,CAEFd,KAAKV,KAAO,MACZU,KAAKL,QAAQkB,MAAM,EAGrB,MAAAiB,GACE,OACEC,EAACC,EAAI,CAAAC,IAAA,4CACHF,EAAA,UAAAE,IAAA,2CAAQC,MAAO,CAAEC,OAAQ,KAAM,CAAC,WAAWnC,KAAKT,QAAS,MAAM,aAAcS,KAAKR,MAAO4C,IAAKC,GAAOrC,KAAKJ,OAASyC,GACjHN,EAAA,OAAAE,IAAA,2CAAKC,MAAM,eACTH,EAAA,QAAAE,IAAA,2CAAMK,KAAK,WACVtC,KAAKP,YACJsC,EAAA,UAAAE,IAAA,2CAAQC,MAAM,eAAeK,KAAK,SAAQ,aAAavC,KAAKP,WAAY+C,QAASxC,KAAK6B,kBACpFE,EAAA,QAAAE,IAAA,yDAAkB,QAAM,OAI9BF,EAAA,OAAAE,IAAA,2CAAKC,MAAM,eACTH,EAAA,QAAAE,IAAA,8CAEFF,EAAA,QAAAE,IAAA,2CAAMK,KAAK,Y","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- import{r as t,c as a,h as e,H as r}from"./p-BaKXvAYc.js";const i=()=>`:host{display:block}.tablist{display:flex;gap:var(--spacing-2xl);border-bottom:var(--border-width) solid var(--border)}.tab{appearance:none;position:relative;background:transparent;border:none;padding:var(--spacing-md) 0 var(--spacing-xl);margin-bottom:calc(-1 * var(--border-width));color:var(--text-muted);font-family:inherit;font-size:inherit;font-weight:var(--typography-weight-semibold);cursor:pointer;transition:color var(--duration-normal) var(--easing-default), border-color var(--duration-normal) var(--easing-default)}.tab::after{content:'';position:absolute;left:0;right:0;bottom:0;height:var(--border-accent-bar);background:var(--accent);opacity:0;transition:opacity var(--duration-normal) var(--easing-default)}.tab:hover{color:var(--text)}.tab:focus-visible{outline:var(--focus-outline-width) solid var(--accent);outline-offset:var(--focus-outline-offset)}.tab--active{color:var(--text)}.tab--active::after{opacity:1}.tab--disabled{opacity:var(--opacity-disabled);cursor:not-allowed}.tabpanel{padding-top:var(--spacing-2xl);color:var(--text)}.tabpanel[hidden]{display:none}`;const o=0;const n=-1;const s=1;const l=-1;let c=0;const d=class{constructor(e){t(this,e);this.chChange=a(this,"chChange")}baseId=`ch-tabs-${++c}`;tablistEl;tabs=[];value;label;chChange;tabId(t){return`${this.baseId}-${t}`}panelId(t){return`${this.baseId}-${t}-panel`}get activeValue(){if(this.value&&this.tabs.some((t=>!t.disabled&&t.value===this.value))){return this.value}return this.tabs.find((t=>!t.disabled))?.value}select=t=>{this.value=t;this.chChange.emit(this.value)};focusTab(t){this.tablistEl?.querySelectorAll('[role="tab"]').forEach((a=>{if(a.dataset.value===t){a.focus()}}))}handleKeyDown=t=>{const a=this.tabs.filter((t=>!t.disabled));if(!a.length){return}const e=this.targetFor(t.key,a);if(!e){return}t.preventDefault();this.select(e);this.focusTab(e)};targetFor(t,a){const e=a.findIndex((t=>t.value===this.activeValue));if(t==="ArrowRight"){return a[(e+s)%a.length]?.value}if(t==="ArrowLeft"){return a[(e+l+a.length)%a.length]?.value}if(t==="Home"){return a[o]?.value}if(t==="End"){return a[a.length+n]?.value}return undefined}render(){const t=this.activeValue;return e(r,{key:"0467e7ea24884d4c19c33b736a07303569dfaa3b"},e("div",{key:"8ad451816ef31809c82486f3c9dd36b6e89e77e5",class:"tablist",role:"tablist","aria-label":this.label,onKeyDown:this.handleKeyDown,ref:t=>this.tablistEl=t},this.tabs.map((a=>{const r=a.value===t;return e("button",{key:a.value,type:"button",class:{tab:true,"tab--active":r,"tab--disabled":Boolean(a.disabled)},role:"tab",id:this.tabId(a.value),"data-value":a.value,"aria-selected":r?"true":"false","aria-controls":this.panelId(a.value),tabIndex:r?o:n,disabled:a.disabled,onClick:()=>this.select(a.value)},a.label)}))),this.tabs.map((a=>e("div",{key:`${a.value}-panel`,class:"tabpanel",id:this.panelId(a.value),role:"tabpanel","aria-labelledby":this.tabId(a.value),tabIndex:o,hidden:a.value!==t},e("slot",{name:`panel-${a.value}`})))))}};d.style=i();export{d as ch_tabs};
2
- //# sourceMappingURL=p-f04d2f75.entry.js.map
1
+ import{r as t,c as a,h as e,H as r}from"./p-DWC12BJ-.js";const i=()=>`:host{display:block}.tablist{display:flex;gap:var(--spacing-2xl);border-bottom:var(--border-width) solid var(--border)}.tab{appearance:none;position:relative;background:transparent;border:none;padding:var(--spacing-md) 0 var(--spacing-xl);margin-bottom:calc(-1 * var(--border-width));color:var(--text-muted);font-family:inherit;font-size:inherit;font-weight:var(--typography-weight-semibold);cursor:pointer;transition:color var(--duration-normal) var(--easing-default), border-color var(--duration-normal) var(--easing-default)}.tab::after{content:'';position:absolute;left:0;right:0;bottom:0;height:var(--border-accent-bar);background:var(--accent);opacity:0;transition:opacity var(--duration-normal) var(--easing-default)}.tab:hover{color:var(--text)}.tab:focus-visible{outline:var(--focus-outline-width) solid var(--accent);outline-offset:var(--focus-outline-offset)}.tab--active{color:var(--text)}.tab--active::after{opacity:1}.tab--disabled{opacity:var(--opacity-disabled);cursor:not-allowed}.tabpanel{padding-top:var(--spacing-2xl);color:var(--text)}.tabpanel[hidden]{display:none}`;const o=0;const n=-1;const s=1;const l=-1;let c=0;const d=class{constructor(e){t(this,e);this.chChange=a(this,"chChange")}baseId=`ch-tabs-${++c}`;tablistEl;tabs=[];value;label;chChange;tabId(t){return`${this.baseId}-${t}`}panelId(t){return`${this.baseId}-${t}-panel`}get activeValue(){if(this.value&&this.tabs.some((t=>!t.disabled&&t.value===this.value))){return this.value}return this.tabs.find((t=>!t.disabled))?.value}select=t=>{this.value=t;this.chChange.emit(this.value)};focusTab(t){this.tablistEl?.querySelectorAll('[role="tab"]').forEach((a=>{if(a.dataset.value===t){a.focus()}}))}handleKeyDown=t=>{const a=this.tabs.filter((t=>!t.disabled));if(!a.length){return}const e=this.targetFor(t.key,a);if(!e){return}t.preventDefault();this.select(e);this.focusTab(e)};targetFor(t,a){const e=a.findIndex((t=>t.value===this.activeValue));if(t==="ArrowRight"){return a[(e+s)%a.length]?.value}if(t==="ArrowLeft"){return a[(e+l+a.length)%a.length]?.value}if(t==="Home"){return a[o]?.value}if(t==="End"){return a[a.length+n]?.value}return undefined}render(){const t=this.activeValue;return e(r,{key:"8b0757158cca856bd984e99b86b9f1c3a79e1dfb"},e("div",{key:"e1ecf05df41e26787ed3702c113a393edcc6dea4",class:"tablist",role:"tablist","aria-label":this.label,onKeyDown:this.handleKeyDown,ref:t=>this.tablistEl=t},this.tabs.map((a=>{const r=a.value===t;return e("button",{key:a.value,type:"button",class:{tab:true,"tab--active":r,"tab--disabled":Boolean(a.disabled)},role:"tab",id:this.tabId(a.value),"data-value":a.value,"aria-selected":r?"true":"false","aria-controls":this.panelId(a.value),tabIndex:r?o:n,disabled:a.disabled,onClick:()=>this.select(a.value)},a.label)}))),this.tabs.map((a=>e("div",{key:`${a.value}-panel`,class:"tabpanel",id:this.panelId(a.value),role:"tabpanel","aria-labelledby":this.tabId(a.value),tabIndex:o,hidden:a.value!==t},e("slot",{name:`panel-${a.value}`})))))}};d.style=i();export{d as ch_tabs};
2
+ //# sourceMappingURL=p-5ae89a19.entry.js.map
@@ -0,0 +1,2 @@
1
+ import{r as e,c as a,h as i,H as t}from"./p-DWC12BJ-.js";import{l as s,u as o}from"./p-d8DfpzMR.js";const r=()=>`.modal{box-sizing:border-box;max-width:min(32rem, calc(100vw - var(--spacing-6xl)));max-height:calc(100vh - var(--spacing-6xl));padding:var(--spacing-5xl);border:var(--border-width) solid var(--border);border-radius:var(--radius);background:var(--color-background-base);color:var(--text);font-family:var(--font-body);font-size:var(--typography-size-md)}.modal::backdrop{background:var(--color-scrim-default);backdrop-filter:blur(var(--effect-blur))}.modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--spacing-2xl);margin-bottom:var(--spacing-2xl)}.modal-body{overflow-y:auto}.modal-close{display:inline-flex;align-items:center;justify-content:center;flex:none;padding:var(--spacing-2xs) var(--spacing-md);border:0;border-radius:var(--radius);background:none;color:var(--text-muted);cursor:pointer;font-family:var(--font-heading);font-size:var(--typography-size-lg);line-height:1;transition:background-color var(--duration-normal) var(--easing-default)}.modal-close:hover{background:var(--surface-hover);color:var(--text)}.modal-close:focus-visible{outline:var(--focus-outline-width) solid var(--accent);outline-offset:var(--focus-outline-offset)}@media (pointer: coarse){.modal-close{min-width:44px;min-height:44px}}@media (prefers-reduced-motion: reduce){.modal-close{transition:none}}`;const l=class{constructor(i){e(this,i);this.chOpen=a(this,"chOpen");this.chClose=a(this,"chClose")}open=false;label;closeLabel;chOpen;chClose;dialog;scrollLocked=false;pointerDownedOutside=false;componentDidLoad(){this.dialog?.addEventListener("close",this.handleNativeClose);this.dialog?.addEventListener("pointerdown",this.handlePointerDown);this.dialog?.addEventListener("click",this.handleClick);if(this.open){this.showDialog()}}disconnectedCallback(){this.dialog?.removeEventListener("close",this.handleNativeClose);this.dialog?.removeEventListener("pointerdown",this.handlePointerDown);this.dialog?.removeEventListener("click",this.handleClick);this.unlockScroll()}handleOpenChange(e){if(e){this.showDialog()}else{this.closeDialog()}}showDialog(){if(typeof this.dialog?.showModal!=="function"){return}this.lockScroll();this.dialog.showModal();this.chOpen.emit()}closeDialog(){if(typeof this.dialog?.close==="function"&&this.dialog.open){this.dialog.close()}}lockScroll(){if(this.scrollLocked){return}this.scrollLocked=true;s()}unlockScroll(){if(!this.scrollLocked){return}this.scrollLocked=false;o()}isOnBackdrop(e){if(!this.dialog||e.target!==this.dialog){return false}const a=this.dialog.getBoundingClientRect();return e.clientX<a.left||e.clientX>a.right||e.clientY<a.top||e.clientY>a.bottom}handlePointerDown=e=>{this.pointerDownedOutside=this.isOnBackdrop(e)};handleClick=e=>{const a=this.pointerDownedOutside&&this.isOnBackdrop(e);this.pointerDownedOutside=false;if(a){this.closeDialog()}};handleNativeClose=()=>{this.unlockScroll();if(this.open){this.open=false}this.chClose.emit()};handleCloseClick=()=>{if(typeof this.dialog?.close==="function"&&this.dialog.open){this.dialog.close();return}this.open=false;this.chClose.emit()};render(){return i(t,{key:"2a8271f9606bc98d0b054016a60afbcb36dfaa48"},i("dialog",{key:"8c866544fd071b98a0b2e58df1690705347a183c",class:"modal","aria-label":this.label,ref:e=>this.dialog=e},i("div",{key:"fceb7d0e17ecfe639f518c26ea75abf96bf3469e",class:"modal-head"},i("slot",{key:"89359d0e82b4c5694b8ad76bd7c67b2a1a80f11a",name:"heading"}),this.closeLabel&&i("button",{key:"edcf61410f993d367613a4bd485c63336ee82619",class:"modal-close",type:"button","aria-label":this.closeLabel,onClick:this.handleCloseClick},i("span",{key:"80ce411b41882508b805aeb1ad0caee07fbbeaaa","aria-hidden":"true"},"×"))),i("div",{key:"d0f72191474917a8e4c68c4996a40340c4494651",class:"modal-body"},i("slot",{key:"46c1d56f416a742176b4be753aa7a8af14bb579d"}))))}static get watchers(){return{open:[{handleOpenChange:0}]}}};l.style=r();export{l as ch_modal};
2
+ //# sourceMappingURL=p-70285203.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["chModalCss","ChModal","open","label","closeLabel","chOpen","chClose","dialog","scrollLocked","pointerDownedOutside","componentDidLoad","this","addEventListener","handleNativeClose","handlePointerDown","handleClick","showDialog","disconnectedCallback","removeEventListener","unlockScroll","handleOpenChange","closeDialog","showModal","lockScroll","emit","close","lockPageScroll","unlockPageScroll","isOnBackdrop","event","target","box","getBoundingClientRect","clientX","left","right","clientY","top","bottom","dismiss","handleCloseClick","render","h","Host","key","class","ref","el","name","type","onClick"],"sources":["src/components/ch-modal/ch-modal.css?tag=ch-modal&encapsulation=shadow","src/components/ch-modal/ch-modal.tsx"],"sourcesContent":[".modal {\n box-sizing: border-box;\n max-width: min(32rem, calc(100vw - var(--spacing-6xl)));\n max-height: calc(100vh - var(--spacing-6xl));\n padding: var(--spacing-5xl);\n border: var(--border-width) solid var(--border);\n border-radius: var(--radius);\n background: var(--color-background-base);\n color: var(--text);\n font-family: var(--font-body);\n font-size: var(--typography-size-md);\n}\n\n.modal::backdrop {\n background: var(--color-scrim-default);\n backdrop-filter: blur(var(--effect-blur));\n}\n\n.modal-head {\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n gap: var(--spacing-2xl);\n margin-bottom: var(--spacing-2xl);\n}\n\n.modal-body {\n overflow-y: auto;\n}\n\n.modal-close {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex: none;\n padding: var(--spacing-2xs) var(--spacing-md);\n border: 0;\n border-radius: var(--radius);\n background: none;\n color: var(--text-muted);\n cursor: pointer;\n font-family: var(--font-heading);\n font-size: var(--typography-size-lg);\n line-height: 1;\n transition: background-color var(--duration-normal) var(--easing-default);\n}\n\n.modal-close:hover {\n background: var(--surface-hover);\n color: var(--text);\n}\n\n.modal-close:focus-visible {\n outline: var(--focus-outline-width) solid var(--accent);\n outline-offset: var(--focus-outline-offset);\n}\n\n@media (pointer: coarse) {\n .modal-close {\n min-width: 44px;\n min-height: 44px;\n }\n}\n\n@media (prefers-reduced-motion: reduce) {\n .modal-close {\n transition: none;\n }\n}\n","import { Component, Event, type EventEmitter, Host, Prop, Watch, h } from '@stencil/core';\n\nimport { lockScroll as lockPageScroll, unlockScroll as unlockPageScroll } from '../../utils/scroll-lock';\n\n/**\n * Modal dialog, built on the native `<dialog>` element and opened with\n * `showModal()`.\n *\n * The browser therefore supplies the parts that are easy to get wrong: moving\n * focus into the dialog and returning it afterwards, marking the rest of the\n * document inert, `Escape` to close, the top layer, `::backdrop`, and the\n * implicit `dialog` role with `aria-modal=\"true\"`. Notably it does not trap\n * focus, which is deliberate — the W3C APA group concluded a modal should let\n * keyboard users reach browser UI, so a hand-rolled trap would be less\n * correct, not more.\n *\n * What the platform does not cover, and this component adds: locking the page\n * behind the dialog so it cannot scroll, and closing when the backdrop is\n * clicked. The latter is `closedby=\"any\"` in the platform, which Safari does\n * not support yet, so it is implemented here for every browser alike rather\n * than only for some.\n */\n@Component({\n tag: 'ch-modal',\n styleUrl: 'ch-modal.css',\n shadow: true,\n})\nexport class ChModal {\n /**\n * Whether the dialog is open. Kept in sync when the user closes it with\n * `Escape`, the close button or a click outside.\n */\n @Prop({ mutable: true }) open = false;\n\n /**\n * Accessible name for the dialog, set as `aria-label`. A slotted heading\n * cannot be referenced with `aria-labelledby` across the shadow boundary, so\n * the name comes through this prop — and a modal dialog needs one, so pass\n * the same text as the heading.\n */\n @Prop() label?: string;\n\n /**\n * Accessible label for the close button, set as `aria-label`. Setting it is\n * what adds the button: its only content is a decorative glyph, so without a\n * label it would have no accessible name.\n */\n @Prop() closeLabel?: string;\n\n /**\n * Emitted after the dialog opens.\n */\n @Event() chOpen: EventEmitter<void>;\n\n /**\n * Emitted after the dialog closes, however it was closed.\n */\n @Event() chClose: EventEmitter<void>;\n\n private dialog?: HTMLDialogElement;\n private scrollLocked = false;\n private pointerDownedOutside = false;\n\n componentDidLoad() {\n // Wired here rather than in JSX because Stencil derives a listener's event\n // name from whether `on<name>` exists on `window`, which differs between\n // the browser and the test environment for pointer events.\n this.dialog?.addEventListener('close', this.handleNativeClose);\n this.dialog?.addEventListener('pointerdown', this.handlePointerDown);\n this.dialog?.addEventListener('click', this.handleClick);\n if (this.open) {\n this.showDialog();\n }\n }\n\n disconnectedCallback() {\n this.dialog?.removeEventListener('close', this.handleNativeClose);\n this.dialog?.removeEventListener('pointerdown', this.handlePointerDown);\n this.dialog?.removeEventListener('click', this.handleClick);\n this.unlockScroll();\n }\n\n @Watch('open')\n handleOpenChange(open: boolean) {\n if (open) {\n this.showDialog();\n } else {\n this.closeDialog();\n }\n }\n\n private showDialog() {\n if (typeof this.dialog?.showModal !== 'function') {\n return;\n }\n this.lockScroll();\n this.dialog.showModal();\n this.chOpen.emit();\n }\n\n private closeDialog() {\n if (typeof this.dialog?.close === 'function' && this.dialog.open) {\n this.dialog.close();\n }\n }\n\n private lockScroll() {\n if (this.scrollLocked) {\n return;\n }\n this.scrollLocked = true;\n lockPageScroll();\n }\n\n private unlockScroll() {\n if (!this.scrollLocked) {\n return;\n }\n this.scrollLocked = false;\n unlockPageScroll();\n }\n\n /**\n * True for a pointer event on the backdrop: the `<dialog>` is the event\n * target for its own box only, and the coordinates fall outside that box.\n */\n private isOnBackdrop(event: MouseEvent) {\n if (!this.dialog || event.target !== this.dialog) {\n return false;\n }\n const box = this.dialog.getBoundingClientRect();\n return event.clientX < box.left || event.clientX > box.right || event.clientY < box.top || event.clientY > box.bottom;\n }\n\n private handlePointerDown = (event: Event) => {\n this.pointerDownedOutside = this.isOnBackdrop(event as MouseEvent);\n };\n\n private handleClick = (event: Event) => {\n // Requiring the press to have started on the backdrop too keeps a\n // selection dragged out of the dialog, and a keyboard-synthesised click\n // (which reports coordinates of 0), from closing it.\n const dismiss = this.pointerDownedOutside && this.isOnBackdrop(event as MouseEvent);\n this.pointerDownedOutside = false;\n if (dismiss) {\n this.closeDialog();\n }\n };\n\n private handleNativeClose = () => {\n this.unlockScroll();\n if (this.open) {\n this.open = false;\n }\n this.chClose.emit();\n };\n\n private handleCloseClick = () => {\n if (typeof this.dialog?.close === 'function' && this.dialog.open) {\n this.dialog.close();\n return;\n }\n this.open = false;\n this.chClose.emit();\n };\n\n render() {\n return (\n <Host>\n <dialog class=\"modal\" aria-label={this.label} ref={el => (this.dialog = el as HTMLDialogElement)}>\n <div class=\"modal-head\">\n <slot name=\"heading\"></slot>\n {this.closeLabel && (\n <button class=\"modal-close\" type=\"button\" aria-label={this.closeLabel} onClick={this.handleCloseClick}>\n <span aria-hidden=\"true\">×</span>\n </button>\n )}\n </div>\n <div class=\"modal-body\">\n <slot></slot>\n </div>\n </dialog>\n </Host>\n );\n }\n}\n"],"mappings":"oGAAA,MAAMA,EAAa,IAAM,6yC,MC2BZC,EAAO,M,qFAKOC,KAAO,MAQxBC,MAOAC,WAKCC,OAKAC,QAEDC,OACAC,aAAe,MACfC,qBAAuB,MAE/B,gBAAAC,GAIEC,KAAKJ,QAAQK,iBAAiB,QAASD,KAAKE,mBAC5CF,KAAKJ,QAAQK,iBAAiB,cAAeD,KAAKG,mBAClDH,KAAKJ,QAAQK,iBAAiB,QAASD,KAAKI,aAC5C,GAAIJ,KAAKT,KAAM,CACbS,KAAKK,Y,EAIT,oBAAAC,GACEN,KAAKJ,QAAQW,oBAAoB,QAASP,KAAKE,mBAC/CF,KAAKJ,QAAQW,oBAAoB,cAAeP,KAAKG,mBACrDH,KAAKJ,QAAQW,oBAAoB,QAASP,KAAKI,aAC/CJ,KAAKQ,c,CAIP,gBAAAC,CAAiBlB,GACf,GAAIA,EAAM,CACRS,KAAKK,Y,KACA,CACLL,KAAKU,a,EAID,UAAAL,GACN,UAAWL,KAAKJ,QAAQe,YAAc,WAAY,CAChD,M,CAEFX,KAAKY,aACLZ,KAAKJ,OAAOe,YACZX,KAAKN,OAAOmB,M,CAGN,WAAAH,GACN,UAAWV,KAAKJ,QAAQkB,QAAU,YAAcd,KAAKJ,OAAOL,KAAM,CAChES,KAAKJ,OAAOkB,O,EAIR,UAAAF,GACN,GAAIZ,KAAKH,aAAc,CACrB,M,CAEFG,KAAKH,aAAe,KACpBkB,G,CAGM,YAAAP,GACN,IAAKR,KAAKH,aAAc,CACtB,M,CAEFG,KAAKH,aAAe,MACpBmB,G,CAOM,YAAAC,CAAaC,GACnB,IAAKlB,KAAKJ,QAAUsB,EAAMC,SAAWnB,KAAKJ,OAAQ,CAChD,OAAO,K,CAET,MAAMwB,EAAMpB,KAAKJ,OAAOyB,wBACxB,OAAOH,EAAMI,QAAUF,EAAIG,MAAQL,EAAMI,QAAUF,EAAII,OAASN,EAAMO,QAAUL,EAAIM,KAAOR,EAAMO,QAAUL,EAAIO,M,CAGzGxB,kBAAqBe,IAC3BlB,KAAKF,qBAAuBE,KAAKiB,aAAaC,EAAoB,EAG5Dd,YAAec,IAIrB,MAAMU,EAAU5B,KAAKF,sBAAwBE,KAAKiB,aAAaC,GAC/DlB,KAAKF,qBAAuB,MAC5B,GAAI8B,EAAS,CACX5B,KAAKU,a,GAIDR,kBAAoB,KAC1BF,KAAKQ,eACL,GAAIR,KAAKT,KAAM,CACbS,KAAKT,KAAO,K,CAEdS,KAAKL,QAAQkB,MAAM,EAGbgB,iBAAmB,KACzB,UAAW7B,KAAKJ,QAAQkB,QAAU,YAAcd,KAAKJ,OAAOL,KAAM,CAChES,KAAKJ,OAAOkB,QACZ,M,CAEFd,KAAKT,KAAO,MACZS,KAAKL,QAAQkB,MAAM,EAGrB,MAAAiB,GACE,OACEC,EAACC,EAAI,CAAAC,IAAA,4CACHF,EAAA,UAAAE,IAAA,2CAAQC,MAAM,QAAO,aAAalC,KAAKR,MAAO2C,IAAKC,GAAOpC,KAAKJ,OAASwC,GACtEL,EAAA,OAAAE,IAAA,2CAAKC,MAAM,cACTH,EAAA,QAAAE,IAAA,2CAAMI,KAAK,YACVrC,KAAKP,YACJsC,EAAA,UAAAE,IAAA,2CAAQC,MAAM,cAAcI,KAAK,SAAQ,aAAatC,KAAKP,WAAY8C,QAASvC,KAAK6B,kBACnFE,EAAA,QAAAE,IAAA,yDAAkB,QAAM,OAI9BF,EAAA,OAAAE,IAAA,2CAAKC,MAAM,cACTH,EAAA,QAAAE,IAAA,+C","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- import{r as i,c as t,a as e,h as s,H as a}from"./p-BaKXvAYc.js";const r=()=>`:host{display:inline-block}.group-label{display:block;margin-bottom:var(--spacing-sm);font-size:var(--typography-size-sm);font-weight:var(--typography-weight-semibold);color:var(--text)}.radio-group{display:flex;flex-direction:column;gap:var(--spacing-lg)}.control{display:inline-flex;align-items:center;gap:var(--spacing-lg);cursor:pointer}.control--disabled{opacity:var(--opacity-disabled);cursor:not-allowed}.input{appearance:none;-webkit-appearance:none;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:var(--spacing-4xl);height:var(--spacing-4xl);margin:0;flex-shrink:0;border:var(--border-width) solid var(--border);border-radius:50%;background:var(--surface);cursor:pointer;transition:border-color var(--duration-normal) var(--easing-default), box-shadow var(--duration-normal) var(--easing-default)}.input:focus-visible{outline:var(--focus-outline-width) solid var(--accent);outline-offset:var(--focus-outline-offset)}.input:checked{border-color:var(--accent)}.input:checked::before{content:'';width:var(--spacing-md);height:var(--spacing-md);border-radius:50%;background:var(--accent)}.input--invalid{border-color:var(--color-status-warning)}.input--invalid:focus-visible{outline-color:var(--color-status-warning)}:host([data-touched]:invalid) .input,:host(:user-invalid) .input{border-color:var(--color-status-warning)}:host([data-touched]:invalid) .input:focus-visible,:host(:user-invalid) .input:focus-visible{outline-color:var(--color-status-warning)}.label-text{color:var(--text)}.hint,.error{margin:var(--spacing-sm) 0 0;font-size:var(--typography-size-sm);color:var(--text-muted)}.error{color:var(--color-status-warning)}`;let o=0;const n=class{constructor(e){i(this,e);this.chChange=t(this,"chChange");if(e.$hostElement$["s-ei"]){this.internals=e.$hostElement$["s-ei"]}else{this.internals=e.$hostElement$.attachInternals();e.$hostElement$["s-ei"]=this.internals}}groupId=`ch-radio-${++o}`;labelId=`${this.groupId}-label`;hintId=`${this.groupId}-hint`;errorId=`${this.groupId}-error`;initialValue;internals;formDisabled=false;get host(){return e(this)}label;options=[];value;name;disabled=false;required=false;hint;errorMessage;invalid=false;chChange;handleChange=i=>{this.value=i.target.value;this.chChange.emit(this.value)};syncForm(){const i=this.internals;if(typeof i?.setFormValue!=="function"){return}i.setFormValue(this.value??null);const t={};let e;if(this.required&&!this.value){t.valueMissing=true}if(this.invalid&&this.errorMessage){t.customError=true}e=this.errorMessage??(t.valueMissing?"Please fill out this field.":undefined);i.setValidity(t,e)}componentDidLoad(){this.initialValue=this.value;this.syncForm();this.host.addEventListener("change",this.markTouched);this.host.addEventListener("focusout",this.markTouched);this.host.addEventListener("invalid",this.markTouched)}markTouched=()=>{this.host.setAttribute("data-touched","")};formResetCallback(){this.value=this.initialValue}formDisabledCallback(i){this.formDisabled=i}get describedBy(){if(this.invalid&&this.errorMessage){return this.errorId}if(this.hint){return this.hintId}return undefined}render(){const i=this.name||`${this.groupId}-group`;return s(a,{key:"1a2562301b8daf00c557764c7f4cdfd54e6e11ef"},this.label&&s("span",{key:"873958acd3422069572031d59be22c06e3e705a6",class:"group-label",id:this.labelId},this.label),s("div",{key:"860c71f128b6fb84dce3c14d2086fd77cc1a4a1e",class:"radio-group",role:"radiogroup","aria-labelledby":this.label?this.labelId:undefined},this.options.map((t=>s("label",{class:{control:true,"control--disabled":this.disabled||this.formDisabled||t.disabled}},s("input",{class:{input:true,"input--invalid":this.invalid},type:"radio",name:i,value:t.value,checked:t.value===this.value,disabled:this.disabled||this.formDisabled||t.disabled,"aria-invalid":this.invalid?"true":undefined,"aria-describedby":this.describedBy,onChange:this.handleChange}),s("span",{class:"mark"}),s("span",{class:"label-text"},t.label))))),this.hint&&!(this.invalid&&this.errorMessage)&&s("p",{key:"2b358f659d1ef21b1e90ecb67c41d6a0054806e3",class:"hint",id:this.hintId},this.hint),this.invalid&&this.errorMessage&&s("p",{key:"4e60f0303e42668c4532f076143a47daa216dff8",class:"error",id:this.errorId,role:"alert"},this.errorMessage))}static get formAssociated(){return true}static get watchers(){return{value:[{syncForm:0}],required:[{syncForm:0}],invalid:[{syncForm:0}],errorMessage:[{syncForm:0}]}}};n.style=r();export{n as ch_radio};
2
- //# sourceMappingURL=p-2e20c7a1.entry.js.map
1
+ import{r as i,c as t,a as e,h as s,H as a}from"./p-DWC12BJ-.js";const r=()=>`:host{display:inline-block}.group-label{display:block;margin-bottom:var(--spacing-sm);font-size:var(--typography-size-sm);font-weight:var(--typography-weight-semibold);color:var(--text)}.radio-group{display:flex;flex-direction:column;gap:var(--spacing-lg)}.control{display:inline-flex;align-items:center;gap:var(--spacing-lg);cursor:pointer}.control--disabled{opacity:var(--opacity-disabled);cursor:not-allowed}.input{appearance:none;-webkit-appearance:none;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:var(--spacing-4xl);height:var(--spacing-4xl);margin:0;flex-shrink:0;border:var(--border-width) solid var(--border);border-radius:50%;background:var(--surface);cursor:pointer;transition:border-color var(--duration-normal) var(--easing-default), box-shadow var(--duration-normal) var(--easing-default)}.input:focus-visible{outline:var(--focus-outline-width) solid var(--accent);outline-offset:var(--focus-outline-offset)}.input:checked{border-color:var(--accent)}.input:checked::before{content:'';width:var(--spacing-md);height:var(--spacing-md);border-radius:50%;background:var(--accent)}.input--invalid{border-color:var(--color-status-warning)}.input--invalid:focus-visible{outline-color:var(--color-status-warning)}:host([data-touched]:invalid) .input,:host(:user-invalid) .input{border-color:var(--color-status-warning)}:host([data-touched]:invalid) .input:focus-visible,:host(:user-invalid) .input:focus-visible{outline-color:var(--color-status-warning)}.label-text{color:var(--text)}.hint,.error{margin:var(--spacing-sm) 0 0;font-size:var(--typography-size-sm);color:var(--text-muted)}.error{color:var(--color-status-warning)}`;let o=0;const n=class{constructor(e){i(this,e);this.chChange=t(this,"chChange");if(e.$hostElement$["s-ei"]){this.internals=e.$hostElement$["s-ei"]}else{this.internals=e.$hostElement$.attachInternals();e.$hostElement$["s-ei"]=this.internals}}groupId=`ch-radio-${++o}`;labelId=`${this.groupId}-label`;hintId=`${this.groupId}-hint`;errorId=`${this.groupId}-error`;initialValue;internals;formDisabled=false;get host(){return e(this)}label;options=[];value;name;disabled=false;required=false;hint;errorMessage;invalid=false;chChange;handleChange=i=>{this.value=i.target.value;this.chChange.emit(this.value)};syncForm(){const i=this.internals;if(typeof i?.setFormValue!=="function"){return}i.setFormValue(this.value??null);const t={};let e;if(this.required&&!this.value){t.valueMissing=true}if(this.invalid&&this.errorMessage){t.customError=true}e=this.errorMessage??(t.valueMissing?"Please fill out this field.":undefined);i.setValidity(t,e)}componentDidLoad(){this.initialValue=this.value;this.syncForm();this.host.addEventListener("change",this.markTouched);this.host.addEventListener("focusout",this.markTouched);this.host.addEventListener("invalid",this.markTouched)}markTouched=()=>{this.host.setAttribute("data-touched","")};formResetCallback(){this.value=this.initialValue}formDisabledCallback(i){this.formDisabled=i}get describedBy(){if(this.invalid&&this.errorMessage){return this.errorId}if(this.hint){return this.hintId}return undefined}render(){const i=this.name||`${this.groupId}-group`;return s(a,{key:"3cd55c205d303df45671dc76756b1fcc78baf760"},this.label&&s("span",{key:"0e9ab53baa202dff829a46e8674d7f994f9f14b9",class:"group-label",id:this.labelId},this.label),s("div",{key:"584e1e36954f7daad8b71c9b690f7fe42f53bb09",class:"radio-group",role:"radiogroup","aria-labelledby":this.label?this.labelId:undefined},this.options.map((t=>s("label",{class:{control:true,"control--disabled":this.disabled||this.formDisabled||t.disabled}},s("input",{class:{input:true,"input--invalid":this.invalid},type:"radio",name:i,value:t.value,checked:t.value===this.value,disabled:this.disabled||this.formDisabled||t.disabled,"aria-invalid":this.invalid?"true":undefined,"aria-describedby":this.describedBy,onChange:this.handleChange}),s("span",{class:"mark"}),s("span",{class:"label-text"},t.label))))),this.hint&&!(this.invalid&&this.errorMessage)&&s("p",{key:"9030ddc9030ea728d56fa2f5520f9df26df75f0d",class:"hint",id:this.hintId},this.hint),this.invalid&&this.errorMessage&&s("p",{key:"e2ba85ff960ae61f4b882190e19558f6189c569b",class:"error",id:this.errorId,role:"alert"},this.errorMessage))}static get formAssociated(){return true}static get watchers(){return{value:[{syncForm:0}],required:[{syncForm:0}],invalid:[{syncForm:0}],errorMessage:[{syncForm:0}]}}};n.style=r();export{n as ch_radio};
2
+ //# sourceMappingURL=p-9c072600.entry.js.map
@@ -1,3 +1,3 @@
1
1
  const e="chucao";const t={hotModuleReplacement:false,lazyLoad:true,propChangeCallback:true,state:true,updatable:true};const n=()=>{};const r=":root{--color-background-base:#100a1c;--color-background-top-glow:#201e40;--color-background-bottom-glow:#261226;--color-surface-default:rgba(32, 30, 64, 0.6);--color-surface-hover:rgba(45, 212, 191, 0.08);--color-scrim-default:rgba(0, 0, 0, 0.6);--color-border-default:rgba(255, 255, 255, 0.08);--color-border-hover:rgba(45, 212, 191, 0.3);--color-accent-default:#2dd4bf;--color-accent-hover:#5ee8d4;--color-accent-text:#06210f;--color-status-positive:#4ade80;--color-status-positive-background:rgba(34, 197, 94, 0.18);--color-status-warning:#f87171;--color-status-warning-background:rgba(248, 113, 113, 0.15);--color-text-primary:#ffffff;--color-text-secondary:rgba(255, 255, 255, 0.55);--color-brand-huemul-dark:#85422b;--color-brand-huemul-light:#b45b38;--color-brand-stroke:#1d1d1b;--typography-body:Fira Sans, Droid Sans, Helvetica Neue, sans-serif;--typography-heading:Inconsolata, monospace;--typography-size-xs:0.68rem;--typography-size-sm:0.85rem;--typography-size-md:1rem;--typography-size-lg:1.25rem;--typography-size-xl:1.5rem;--typography-weight-regular:400;--typography-weight-semibold:600;--typography-weight-bold:700;--typography-tracking-badge:0.03em;--spacing-2xs:0.18rem;--spacing-xs:0.25rem;--spacing-sm:0.35rem;--spacing-md:0.5rem;--spacing-lg:0.6rem;--spacing-xl:0.8rem;--spacing-2xl:1rem;--spacing-3xl:1.25rem;--spacing-4xl:1.35rem;--spacing-5xl:1.5rem;--spacing-6xl:2rem;--spacing-shift:2px;--spacing-elevate:1px;--radius-sm:6px;--radius-md:8px;--radius-pill:999px;--border-width:1px;--border-accent-bar:3px;--shadow-focus-ring:0 0 0 3px rgba(45, 212, 191, 0.12);--shadow-card-hover:0 4px 20px rgba(45, 212, 191, 0.06);--effect-blur:10px;--duration-fast:150ms;--duration-normal:200ms;--duration-spin:800ms;--easing-default:ease;--easing-linear:linear;--focus-outline-width:2px;--focus-outline-offset:2px;--opacity-disabled:0.5;--z-index-base:0;--z-index-dropdown:100;--z-index-modal:1000;--layout-max-width:68rem}@font-face{font-family:'Fira Sans';font-style:normal;font-weight:400;font-display:swap;src:url('https://static.devschile.cl/chucao/fonts/fira-sans-latin-400-normal.woff2') format('woff2')}@font-face{font-family:'Fira Sans';font-style:normal;font-weight:600;font-display:swap;src:url('https://static.devschile.cl/chucao/fonts/fira-sans-latin-600-normal.woff2') format('woff2')}@font-face{font-family:'Fira Sans';font-style:normal;font-weight:700;font-display:swap;src:url('https://static.devschile.cl/chucao/fonts/fira-sans-latin-700-normal.woff2') format('woff2')}@font-face{font-family:'Inconsolata';font-style:normal;font-weight:400;font-display:swap;src:url('https://static.devschile.cl/chucao/fonts/inconsolata-latin-400-normal.woff2') format('woff2')}:root{--bg:var(--color-background-base);--bg-gradient:radial-gradient(50% 30% ellipse at center top, var(--color-background-top-glow) 0%, rgba(0, 0, 0, 0) 100%),\n radial-gradient(60% 50% ellipse at center bottom, var(--color-background-bottom-glow) 0%, var(--color-background-base) 100%);--surface:var(--color-surface-default);--surface-hover:var(--color-surface-hover);--border:var(--color-border-default);--border-hover:var(--color-border-hover);--text:var(--color-text-primary);--text-muted:var(--color-text-secondary);--accent:var(--color-accent-default);--accent-hover:var(--color-accent-hover);--font-body:var(--typography-body);--font-heading:var(--typography-heading);--radius:var(--radius-sm)}body{font-family:var(--font-body)}.ch-container{width:100%;max-width:var(--layout-max-width);margin-inline:auto}.ch-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0}.ch-flex{display:flex}.ch-flex-col{display:flex;flex-direction:column}.ch-items-center{align-items:center}.ch-justify-center{justify-content:center}.ch-justify-between{justify-content:space-between}.ch-gap-sm{gap:var(--spacing-md)}.ch-gap-md{gap:var(--spacing-2xl)}.ch-text-center{text-align:center}.ch-text-primary{color:var(--text)}.ch-text-muted{color:var(--text-muted)}.ch-text-accent{color:var(--accent)}.ch-heading{font-family:var(--font-heading)}";var o=(e=>{e["Undefined"]="undefined";e["Null"]="null";e["String"]="string";e["Number"]="number";e["SpecialNumber"]="number";e["Boolean"]="boolean";e["BigInt"]="bigint";return e})(o||{});var i=(e=>{e["Array"]="array";e["Date"]="date";e["Map"]="map";e["Object"]="object";e["RegularExpression"]="regexp";e["Set"]="set";e["Channel"]="channel";e["Symbol"]="symbol";return e})(i||{});var l="type";var s="value";var a="serialized:";function f(e,t,n){const r=typeof HTMLElement!=="undefined"?HTMLElement.prototype:null;while(e&&e!==r){const r=Object.getOwnPropertyDescriptor(e,t);if(r&&(!n||r.get))return r;e=Object.getPrototypeOf(e)}return void 0}var c=(e,t)=>{var n;const r=t.t;const o=Object.entries((n=r.o)!=null?n:{});o.map((([n,[r]])=>{if(r&31||r&32){const r=e[n];const o=f(Object.getPrototypeOf(e),n,true)||Object.getOwnPropertyDescriptor(e,n);if(o){Object.defineProperty(e,n,{get(){return o.get.call(this)},set(e){o.set.call(this,e)},configurable:true,enumerable:true})}if(t.i.has(n)){e[n]=t.i.get(n)}else if(r!==void 0){e[n]=r}}}))};var u=e=>{if(e.__stencil__getHostRef){return e.__stencil__getHostRef()}return void 0};var d=(e,n)=>{if(!n)return;e.__stencil__getHostRef=()=>n;n.l=e;if(n.t.u&512&&t.state){c(e,n)}};var v=(e,t)=>{const n={u:0,$hostElement$:e,t,i:new Map,v:new Map};{n.p=new Promise((e=>n.h=e));e["s-p"]=[];e["s-rc"]=[]}{n.m=[]}const r=n;e.__stencil__getHostRef=()=>r;return r};var p=(e,t)=>t in e;var h=(e,t)=>(0,console.error)(e,t);var m=new Map;var y=new Map;var g=(e,t,n)=>{var r;const o=e.$.replace(/-/g,"_");const i=e.S;if(!i){return void 0}const l=m.get(i);if(l){return l[o]}const s=(r=y.get(i))!=null?r:0;const a=[s>0?`s-retry=${s}`:"",""].filter(Boolean).join("&");
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/return import(`./${i}.entry.js${a?"?"+a:""}`).then((e=>{{y.delete(i);m.set(i,e)}return e[o]}),(e=>{y.set(i,s+1);h(e,t.$hostElement$)}))};var b=new Map;var $="r";var w="o";var x="s";var S="t";var j="c";var k="s-id";var O="sty-id";var C="c-id";var I="slot-fb{display:contents}slot-fb[hidden]{display:none}";var M=3;var N=1e3;var E=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"];var z=typeof window!=="undefined"?window:{};var A={u:0,j:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,r)=>e.addEventListener(t,n,r),rel:(e,t,n,r)=>e.removeEventListener(t,n,r),ce:(e,t)=>new CustomEvent(e,t)};var L=(()=>{var e;let t=false;try{(e=z.document)==null?void 0:e.addEventListener("e",null,Object.defineProperty({},"passive",{get(){t=true}}))}catch(e){}return t})();var R=e=>Promise.resolve(e);var D=(()=>{try{if(!z.document.adoptedStyleSheets){return false}new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false})();var U=D?(()=>!!z.document&&Object.getOwnPropertyDescriptor(z.document.adoptedStyleSheets,"length").writable)():false;var F=false;var T=[];var H=[];var P=()=>{var e;return((e=z.document)==null?void 0:e.hidden)?W(B):A.raf(B)};var V=(e,t)=>n=>{e.push(n);if(!F){F=true;if(t&&A.u&4){W(B)}else{P()}}};var _=e=>{for(let t=0;t<e.length;t++){try{e[t](performance.now())}catch(e){h(e)}}e.length=0};var B=()=>{_(T);{_(H);if(F=T.length>0){P()}}};var W=e=>R().then(e);var q=V(H,true);function Y(e){if(!D)return void 0;const t=new CSSStyleSheet;t.replaceSync(e);return t}var G;function J(e){var t;const n={mode:"open"};const o=this.attachShadow(n);if(G===void 0)G=(t=Y(r))!=null?t:null;if(G){if(U){o.adoptedStyleSheets.push(G)}else{o.adoptedStyleSheets=[...o.adoptedStyleSheets,G]}}else if(!D){const e=document.createElement("style");e.innerHTML=r;o.prepend(e)}}var Z=e=>{const t=[];for(let n=0;n<e.length;n++){const r=e[n]["s-nr"]||void 0;if(r&&r.isConnected){t.push(r)}}return t};var K=(e,t,n,r)=>{if(e["s-ol"]&&e["s-ol"].isConnected){return}const o=document.createTextNode("");o["s-nr"]=e;if(!t["s-cr"]||!t["s-cr"].parentNode)return;const i=t["s-cr"].parentNode;const l=ee(i,"appendChild");if(typeof r!=="undefined"){o["s-oo"]=r;const e=ee(i,"childNodes");const t=[o];e.forEach((e=>{if(e["s-nr"])t.push(e)}));t.sort(((e,t)=>{if(!e["s-oo"]||e["s-oo"]<(t["s-oo"]||0))return-1;else if(!t["s-oo"]||t["s-oo"]<e["s-oo"])return 1;return 0}));t.forEach((e=>l.call(i,e)))}else{l.call(i,o)}e["s-ol"]=o;e["s-sh"]=t["s-hn"]};var Q=e=>typeof e["s-sn"]==="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function X(e){if(e.assignedElements||e.assignedNodes||!e["s-sr"])return;const t=t=>function(e){const n=[];const r=this["s-sn"];if(e==null?void 0:e.flatten){console.error(`\n Flattening is not supported for Stencil non-shadow slots.\n You can use \`.childNodes\` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n `)}const o=this["s-cr"].parentElement;const i=o.__childNodes?o.childNodes:Z(o.childNodes);i.forEach((e=>{if(r===Q(e)){n.push(e)}}));if(t){return n.filter((e=>e.nodeType===1))}return n}.bind(e);e.assignedElements=t(true);e.assignedNodes=t(false)}function ee(e,t){if("__"+t in e){const n=e["__"+t];if(typeof n!=="function")return n;return n.bind(e)}else{if(typeof e[t]!=="function")return e[t];return e[t].bind(e)}}var te=(e,t="")=>{{return()=>{}}};var ne=(e,t)=>{{return()=>{}}};function re(e){var t,n,r;return(r=(n=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:n.getAttribute("content"))!=null?r:void 0}var oe=new WeakMap;var ie=(e,t,n)=>{let r=b.get(e);if(D&&n){r=r||new CSSStyleSheet;if(typeof r==="string"){r=t}else{r.replaceSync(t)}}else{r=t}b.set(e,r)};var le=(e,t,n)=>{var r,o,i;const l=ae(t);const s=b.get(l);if(!z.document){return l}e=e.nodeType===11?e:z.document;if(s){if(typeof s==="string"){e=e.head||e;let n=oe.get(e);let i;if(!n){oe.set(e,n=new Set)}const a=e.querySelector(`[${O}="${l}"]`);if(a){a.textContent=s}else if(!n.has(l)){i=z.document.createElement("style");i.textContent=s;const a=(r=A.k)!=null?r:re(z.document);if(a!=null){i.setAttribute("nonce",a)}if(!(t.u&1)){if(e.nodeName==="HEAD"){const t=e.querySelectorAll("link[rel=preconnect]");const n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(i,(n==null?void 0:n.parentNode)===e?n:null)}else if("host"in e){if(D){const t=(o=e.defaultView)!=null?o:e.ownerDocument.defaultView;const n=new t.CSSStyleSheet;n.replaceSync(s);if(U){e.adoptedStyleSheets.unshift(n)}else{e.adoptedStyleSheets=[n,...e.adoptedStyleSheets]}}else{const t=e.querySelector("style");if(t&&true){t.textContent=s+t.textContent}else{e.prepend(i)}}}else{e.append(i)}}if(t.u&1){e.insertBefore(i,null)}if(t.u&4){i.textContent+=I}if(n){n.add(l)}}}else{let t=oe.get(e);if(!t){oe.set(e,t=new Set)}if(!t.has(l)){const n=(i=e.defaultView)!=null?i:e.ownerDocument.defaultView;let r;if(s.constructor===n.CSSStyleSheet){r=s}else{r=new n.CSSStyleSheet;for(let e=0;e<s.cssRules.length;e++){r.insertRule(s.cssRules[e].cssText,e)}}if(U){e.adoptedStyleSheets.push(r)}else{e.adoptedStyleSheets=[...e.adoptedStyleSheets,r]}t.add(l);if("host"in e){const t=e.querySelector(`[${O}="${l}"]`);if(t){q((()=>t.remove()))}}}}}return l};var se=e=>{const t=e.t;const n=e.$hostElement$;const r=t.u;const o=te("attachStyles",t.$);const i=le(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);if(r&10){n["s-sc"]=i;n.classList.add(i+"-h")}o()};var ae=(e,t)=>"sc-"+e.$;var fe=e=>e.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{");var ce=()=>{if(!z.document){return}const e=z.document.querySelectorAll(`[${O}]`);let t=0;for(;t<e.length;t++){ie(e[t].getAttribute(O),fe(e[t].innerHTML),true)}};var ue=e=>{e=typeof e;return e==="object"||e==="function"};var de=(e,t,...n)=>{if(typeof e==="string"){e=kt(e)}let r=null;let o=null;let i=false;let l=false;const s=[];const a=t=>{for(let n=0;n<t.length;n++){r=t[n];if(Array.isArray(r)){a(r)}else if(r!=null&&typeof r!=="boolean"){if(i=typeof e!=="function"&&!ue(r)){r=String(r)}else if(typeof e!=="function"&&r.u===void 0){{h("Invalid vNode child")}continue}if(i&&l){s[s.length-1].O+=r}else{s.push(i?ve(null,r):r)}l=i}}};a(n);if(t){if(t.key){o=t.key}{const e=t.className||t.class;if(e){t.class=typeof e!=="object"?e:Object.keys(e).filter((t=>e[t])).join(" ")}}}const f=ve(e,null);f.C=t;if(s.length>0){f.I=s}{f.M=o}return f};var ve=(e,t)=>{const n={u:0,N:e,O:t!=null?t:null,A:null,I:null};{n.C=null}{n.M=null}return n};var pe={};var he=e=>e&&e.N===pe;var me=(e,t,n,r)=>{var o,i,l,s;const a=te("hydrateClient",t);const f=e.shadowRoot;const c=[];const d=[];const v=[];const p=f?[]:null;const h=ve(t,null);h.A=e;if(z.document&&(!A.L||!A.L.size)){ge(z.document.body,A.L=new Map)}e[k]=n;e.removeAttribute(k);r.R=ye(h,c,d,p,e,e,n,v);let m=0;const y=c.length;let g;for(m;m<y;m++){g=c[m];const n=g.D+"."+g.U;const r=A.L.get(n);const i=g.A;if(!f){i["s-hn"]=kt(t).toUpperCase();if(g.N==="slot"){i["s-cr"]=e["s-cr"]}}else if(((o=g.N)==null?void 0:o.toString().includes("-"))&&g.N!=="slot-fb"&&!g.A.shadowRoot){const e=u(g.A);if(e){const t=ae(e.t);const n=z.document.querySelector(`style[sty-id="${t}"]`);if(n){p.unshift(n.cloneNode(true))}}}if(g.N==="slot"){g.F=g.A["s-sn"]||g.A["name"]||null;if(g.I){g.u|=2;if(!g.A.childNodes.length){g.I.forEach((e=>{g.A.appendChild(e.A)}))}}else{g.u|=1}}if(r&&r.isConnected){if(r.parentElement.shadowRoot&&r["s-en"]===""){r.parentNode.insertBefore(i,r.nextSibling)}r.parentNode.removeChild(r);if(!f){i["s-oo"]=parseInt(g.U)}}if(r&&!r["s-id"]){A.L.delete(n)}}const b=[];const $=v.length;let w=0;let x;let S;let j;let O;let C=0;for(w;w<$;w++){x=v[w];if(!x||!x.length)continue;j=x.length;S=0;for(S;S<j;S++){O=x[S];if(!b[O.hostId]){b[O.hostId]=A.L.get(O.hostId)}if(!b[O.hostId])continue;const e=b[O.hostId];if(e.shadowRoot&&O.node.parentElement!==e){e.insertBefore(O.node,(l=(i=x[S-1])==null?void 0:i.node)==null?void 0:l.nextSibling)}if(!e.shadowRoot||!f){if(!O.slot["s-cr"]){O.slot["s-cr"]=e["s-cr"];if(!O.slot["s-cr"]&&e.shadowRoot){O.slot["s-cr"]=e}else{O.slot["s-cr"]=(e.__childNodes||e.childNodes)[0]}}K(O.node,O.slot,false,O.node["s-oo"]||C);if(((s=O.node.parentElement)==null?void 0:s.shadowRoot)&&O.node["getAttribute"]&&O.node.getAttribute("slot")){O.node.removeAttribute("slot")}}C=(O.node["s-oo"]||C)+1}}if(f&&!f.childNodes.length){let t=0;const n=p.length;if(n){for(t;t<n;t++){const e=p[t];if(e){f.appendChild(e)}}Array.from(e.childNodes).forEach((e=>{if(typeof e["s-en"]!=="string"&&typeof e["s-sn"]!=="string"){if(e.nodeType===1&&e.slot&&e.hidden){e.removeAttribute("hidden")}else if(e.nodeType===8&&!e.nodeValue){e.parentNode.removeChild(e)}}}))}}r.$hostElement$=e;a()};var ye=(e,t,n,r,o,i,l,s=[])=>{let a;let f;let c;let u;if(i.nodeType===1){a=i.getAttribute(C);if(a){f=a.split(".");if(f[0]===l||f[0]==="0"){c=be({u:0,D:f[0],U:f[1],T:f[2],H:f[3],N:i.tagName.toLowerCase(),A:i,C:{class:i.className||""}});t.push(c);i.removeAttribute(C);if(!e.I){e.I=[]}const o=c.A.getAttribute("s-sn");if(typeof o==="string"){if(c.N==="slot-fb"){$e(o,f[2],c,i,e,t,n,r,s)}c.A["s-sn"]=o;c.A.removeAttribute("s-sn")}if(c.H!==void 0){e.I[c.H]=c}e=c;if(r&&c.T==="0"){r[c.H]=c.A}}}if(i.shadowRoot){for(u=i.shadowRoot.childNodes.length-1;u>=0;u--){ye(e,t,n,r,o,i.shadowRoot.childNodes[u],l,s)}}const d=i.__childNodes||i.childNodes;for(u=d.length-1;u>=0;u--){ye(e,t,n,r,o,d[u],l,s)}}else if(i.nodeType===8){f=i.nodeValue.split(".");if(f[1]===l||f[1]==="0"){a=f[0];c=be({D:f[1],U:f[2],T:f[3],H:f[4]||"0",A:i,C:null,I:null,M:null,F:null,N:null,O:null});if(a===S){c.A=xe(i,3);if(c.A&&c.A.nodeType===3){c.O=c.A.textContent;t.push(c);i.remove();if(l===c.D){if(!e.I){e.I=[]}e.I[c.H]=c}if(r&&c.T==="0"){r[c.H]=c.A}}}else if(a===j){c.A=xe(i,8);if(c.A&&c.A.nodeType===8){t.push(c);i.remove()}}else if(c.D===l){if(a===x){const o=i["s-sn"]=f[5]||"";$e(o,f[2],c,i,e,t,n,r,s)}else if(a===$){if(r){i.remove()}}}}}else if(e&&e.N==="style"){const t=ve(null,i.textContent);t.A=i;t.H="0";e.I=[t]}return e};var ge=(e,t)=>{if(e.nodeType===1){const n=e[k]||e.getAttribute(k);if(n){t.set(n,e)}let r=0;if(e.shadowRoot){for(;r<e.shadowRoot.childNodes.length;r++){ge(e.shadowRoot.childNodes[r],t)}}const o=e.__childNodes||e.childNodes;for(r=0;r<o.length;r++){ge(o[r],t)}}else if(e.nodeType===8){const n=e.nodeValue.split(".");if(n[0]===w){t.set(n[1]+"."+n[2],e);e.nodeValue="";e["s-en"]=n[3]}}};var be=e=>{const t={u:0,D:null,U:null,T:null,H:"0",A:null,C:null,I:null,M:null,F:null,N:null,O:null};return{...t,...e}};function $e(e,t,n,r,o,i,l,s,a){r["s-sr"]=true;n.F=e||null;n.N="slot";const f=(o==null?void 0:o.A)?o.A["s-id"]||o.A.getAttribute("s-id"):"";if(s&&z.document){const i=n.A=z.document.createElement(n.N);if(n.F){n.A.setAttribute("name",e)}if(o.A.shadowRoot&&f&&f!==n.D){ee(o.A,"insertBefore")(i,ee(o.A,"children")[0])}else{ee(ee(r,"parentNode"),"insertBefore")(i,r)}we(a,t,e,r,n.D);r.remove();if(n.T==="0"){s[n.H]=n.A}}else{const i=n.A;const l=f&&f!==n.D&&o.A.shadowRoot;we(a,t,e,r,l?f:n.D);X(r);if(l){o.A.insertBefore(i,o.A.children[0])}}i.push(n);l.push(n);if(!o.I){o.I=[]}o.I[n.H]=n}var we=(e,t,n,r,o)=>{var i,l;let s=r.nextSibling;e[t]=e[t]||[];if(!s||((i=s.nodeValue)==null?void 0:i.startsWith(x+".")))return;do{if(s&&((s["getAttribute"]&&s.getAttribute("slot")||s["s-sn"])===n||n===""&&!s["s-sn"]&&(!s["getAttribute"]||!s.getAttribute("slot"))&&(s.nodeType===8||s.nodeType===3))){s["s-sn"]=n;e[t].push({slot:r,node:s,hostId:o})}s=s==null?void 0:s.nextSibling}while(s&&!((l=s.nodeValue)==null?void 0:l.startsWith(x+".")))};var xe=(e,t)=>{let n=e;do{n=n.nextSibling}while(n&&(n.nodeType!==t||!n.nodeValue));return n};var Se=e=>{if(!e)return void 0;const t=Object.keys(e);if(t.length===0)return void 0;let n=false;for(const r of t){if(n)break;for(const t of e[r]){if(typeof t==="string"){n=true;break}}}if(!n)return e;const r={};for(const n of t){r[n]=e[n].map((e=>typeof e==="string"?{[e]:0}:e))}return r};var je=class e{static fromLocalValue(t){const n=t[l];const r=s in t?t[s]:void 0;switch(n){case"string":return r;case"boolean":return r;case"bigint":return BigInt(r);case"undefined":return void 0;case"null":return null;case"number":if(r==="NaN")return NaN;if(r==="-0")return-0;if(r==="Infinity")return Infinity;if(r==="-Infinity")return-Infinity;return r;case"array":return r.map((t=>e.fromLocalValue(t)));case"date":return new Date(r);case"map":const t=new Map;for(const[n,o]of r){const r=typeof n==="object"&&n!==null?e.fromLocalValue(n):n;const i=e.fromLocalValue(o);t.set(r,i)}return t;case"object":const o={};for(const[t,n]of r){o[t]=e.fromLocalValue(n)}return o;case"regexp":const{pattern:i,flags:l}=r;return new RegExp(i,l);case"set":const s=new Set;for(const t of r){s.add(e.fromLocalValue(t))}return s;case"symbol":return Symbol(r);default:throw new Error(`Unsupported type: ${n}`)}}static fromLocalValueArray(t){return t.map((t=>e.fromLocalValue(t)))}static isLocalValueObject(e){if(typeof e!=="object"||e===null){return false}if(!e.hasOwnProperty(l)){return false}const t=e[l];const n=Object.values({...o,...i}).includes(t);if(!n){return false}if(t!=="null"&&t!=="undefined"){return e.hasOwnProperty(s)}return true}};function ke(e){const t=atob(e);const n=new Uint8Array(t.length);for(let e=0;e<t.length;e++){n[e]=t.charCodeAt(e)}return(new TextDecoder).decode(n)}function Oe(e){if(typeof e!=="string"||!e.startsWith(a)){return e}return je.fromLocalValue(JSON.parse(ke(e.slice(a.length))))}var Ce=(e,t,n)=>{if(typeof e==="string"&&e.startsWith(a)){e=Oe(e);return e}if(e!=null&&!ue(e)){if(t&4){if(n&&typeof e==="string"){return e===""||!!e}else{return e==="false"?false:e===""||!!e}}if(t&2){return typeof e==="string"?parseFloat(e):typeof e==="number"?e:NaN}if(t&1){return String(e)}return e}return e};var Ie=e=>{var t;return(t=u(e))==null?void 0:t.$hostElement$};var Me=(e,t,n)=>{const r=Ie(e);return{emit:e=>Ne(r,t,{bubbles:true,composed:true,cancelable:true,detail:e})}};var Ne=(e,t,n)=>{const r=A.ce(t,n);e.dispatchEvent(r);return r};var Ee=(e,t,n,r,o,i,l)=>{if(n===r){return}let s=p(e,t);let a=t.toLowerCase();if(t==="class"){const t=e.classList;const o=Ae(n);let i=Ae(r);if((e["s-si"]||e["s-sc"])&&l){const n=e["s-sc"]||e["s-si"];i.push(n);o.forEach((e=>{if(e.startsWith(n))i.push(e)}));i=[...new Set(i)].filter((e=>e));t.add(...i)}else{t.remove(...o.filter((e=>e&&!i.includes(e))));t.add(...i.filter((e=>e&&!o.includes(e))))}}else if(t==="key");else if(t==="ref"){if(r){Ke(r,e)}}else if(!s&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"){t=t.slice(3)}else if(p(z,a)){t=a.slice(2)}else{t=a[2]+t.slice(3)}if(n||r){const o=t.endsWith(Le);t=t.replace(Re,"");if(n){A.rel(e,t,n,o)}if(r){A.ael(e,t,r,o)}}}else if(t[0]==="a"&&t.startsWith("attr:")){const n=t.slice(5);let o;{const t=u(e);if(t&&t.t&&t.t.o){const e=t.t.o[n];if(e&&e[1]){o=e[1]}}}if(!o){o=n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}if(r==null||r===false){if(r!==false||e.getAttribute(o)===""){e.removeAttribute(o)}}else{e.setAttribute(o,r===true?"":r)}return}else if(t[0]==="p"&&t.startsWith("prop:")){const n=t.slice(5);try{e[n]=r}catch(e){}return}else{const l=ue(r);if((s||l&&r!==null)&&!o){try{if(!e.tagName.includes("-")){const o=r==null?"":r;if(t==="list"){s=false}else if(n==null||e[t]!==o){if(typeof e.__lookupSetter__(t)==="function"){e[t]=o}else{e.setAttribute(t,o)}}}else if(e[t]!==r){e[t]=r}}catch(e){}}if(r==null||r===false){if(r!==false||e.getAttribute(t)===""){{e.removeAttribute(t)}}}else if((!s||i&4||o)&&!l&&e.nodeType===1){r=r===true?"":r;{e.setAttribute(t,r)}}}};var ze=/\s/;var Ae=e=>{if(typeof e==="object"&&e&&"baseVal"in e){e=e.baseVal}if(!e||typeof e!=="string"){return[]}return e.split(ze)};var Le="Capture";var Re=new RegExp(Le+"$");var De=(e,t,n,r)=>{const o=t.A.nodeType===11&&t.A.host?t.A.host:t.A;const i=e&&e.C||{};const l=t.C||{};{for(const e of Ue(Object.keys(i))){if(!(e in l)){Ee(o,e,i[e],void 0,n,t.u,r)}}}for(const e of Ue(Object.keys(l))){Ee(o,e,i[e],l[e],n,t.u,r)}};function Ue(e){return e.includes("ref")?[...e.filter((e=>e!=="ref")),"ref"]:e}var Fe;var Te=false;var He=false;var Pe=[];var Ve=[];var _e=(e,t,n)=>{const r=t.I[n];let o=0;let i;let l;if(r.O!=null){i=r.A=z.document.createTextNode(r.O)}else{if(!z.document){throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.")}i=r.A=z.document.createElement(r.N);{De(null,r,He)}if(r.I){const t=r.N==="template"?i.content:i;for(o=0;o<r.I.length;++o){l=_e(e,r,o);if(l){t.appendChild(l)}}}}i["s-hn"]=Fe;return i};var Be=e=>{A.u|=1;const t=e.closest(Fe.toLowerCase());if(t!=null){const n=Array.from(t.__childNodes||t.childNodes).find((e=>e["s-cr"]));const r=Array.from(e.__childNodes||e.childNodes);for(const e of n?r.reverse():r){if(e["s-sh"]!=null){Xe(t,e,n!=null?n:null);e["s-sh"]=void 0}}}A.u&=-2};var We=(e,t,n,r,o,i)=>{let l=e;let s;if(l.shadowRoot&&l.tagName===Fe){l=l.shadowRoot}if(n.N==="template"){l=l.content}for(;o<=i;++o){if(r[o]){s=_e(null,n,o);if(s){r[o].A=s;Xe(l,s,t)}}}};var qe=(e,t,n)=>{for(let r=t;r<=n;++r){const t=e[r];if(t){const e=t.A;Ze(t);if(e){e.remove()}}}};var Ye=(e,t,n,r,o=false)=>{let i=0;let l=0;let s=0;let a=0;let f=t.length-1;let c=t[0];let u=t[f];let d=r.length-1;let v=r[0];let p=r[d];let h;let m;const y=n.N==="template"?e.content:e;while(i<=f&&l<=d){if(c==null){c=t[++i]}else if(u==null){u=t[--f]}else if(v==null){v=r[++l]}else if(p==null){p=r[--d]}else if(Ge(c,v,o)){Je(c,v,o);c=t[++i];v=r[++l]}else if(Ge(u,p,o)){Je(u,p,o);u=t[--f];p=r[--d]}else if(Ge(c,p,o)){Je(c,p,o);Xe(y,c.A,u.A.nextSibling);c=t[++i];p=r[--d]}else if(Ge(u,v,o)){Je(u,v,o);Xe(y,u.A,c.A);u=t[--f];v=r[++l]}else{s=-1;{for(a=i;a<=f;++a){if(t[a]&&t[a].M!==null&&t[a].M===v.M){s=a;break}}}if(s>=0){m=t[s];if(m.N!==v.N){h=_e(t&&t[l],n,s)}else{Je(m,v,o);t[s]=void 0;h=m.A}v=r[++l]}else{h=_e(t&&t[l],n,l);v=r[++l]}if(h){{Xe(c.A.parentNode,h,c.A)}}}}if(i>f){We(e,r[d+1]==null?null:r[d+1].A,n,r,l,d)}else if(l>d){qe(t,i,f)}};var Ge=(e,t,n=false)=>{if(e.N===t.N){if(!n){return e.M===t.M}if(n&&!e.M&&t.M){e.M=t.M}return true}return false};var Je=(e,n,r=false)=>{const o=n.A=e.A;const i=e.I;const l=n.I;const s=n.N;const a=n.O;if(a==null){{if(s==="slot"&&!Te){if(e.F!==n.F){n.A["s-sn"]=n.F||"";Be(n.A.parentElement)}}De(e,n,He,r)}if(i!==null&&l!==null){Ye(o,i,n,l,r)}else if(l!==null){if(e.O!==null){o.textContent=""}We(o,null,n,l,0,l.length-1)}else if(!r&&t.updatable&&i!==null){qe(i,0,i.length-1)}else if(r&&t.updatable&&i!==null&&l===null){n.I=i}}else if(e.O!==a){o.data=a}};var Ze=e=>{{if(e.C&&e.C.ref){Pe.push((()=>e.C.ref(null)))}e.I&&e.I.map(Ze)}};var Ke=(e,t)=>{{Ve.push((()=>e(t)))}};var Qe=()=>{{Pe.forEach((e=>e()));Pe.length=0;Ve.forEach((e=>e()));Ve.length=0}};var Xe=(e,t,n,r)=>{if(e.__insertBefore){return e.__insertBefore(t,n)}else{return e==null?void 0:e.insertBefore(t,n)}};var et=(e,t,n=false)=>{const r=e.$hostElement$;const o=e.t;const i=e.R||ve(null,null);const l=he(t);const s=l?t:de(null,null,t);Fe=r.tagName;if(o.P){s.C=s.C||{};o.P.forEach((([e,t])=>{{s.C[t]=r[e]}}))}if(n&&s.C){for(const e of Object.keys(s.C)){if(r.hasAttribute(e)&&!["key","ref","style","class"].includes(e)){s.C[e]=r[e]}}}s.N=null;s.u|=4;e.R=s;s.A=i.A=r.shadowRoot||r;Te=!!(o.u&1)&&!(o.u&128);Je(i,s,n);Qe()};var tt=(e,t)=>{if(t&&!e.V&&t["s-p"]){const n=t["s-p"].push(new Promise((r=>e.V=()=>{t["s-p"].splice(n-1,1);r()})))}};var nt=(e,t)=>{{e.u|=16}if(e.u&4){e.u|=512;return}tt(e,e._);const n=()=>rt(e,t);if(t){queueMicrotask((()=>{n()}));return}return q(n)};var rt=(e,t)=>{const n=e.$hostElement$;const r=te("scheduleUpdate",e.t.$);const o=e.l;if(!o){throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`)}let i;if(t){{{e.u|=256;if(e.B){e.B.map((([e,t])=>ct(o,e,t,n)));e.B=void 0}}if(e.m.length){e.m.forEach((e=>e(n)))}}i=ct(o,"componentWillLoad",void 0,n)}else{i=ct(o,"componentWillUpdate",void 0,n)}i=ot(i,(()=>ct(o,"componentWillRender",void 0,n)));r();return ot(i,(()=>lt(e,o,t)))};var ot=(e,t)=>it(e)?e.then(t).catch((e=>{console.error(e);t()})):t();var it=e=>e instanceof Promise||e&&e.then&&typeof e.then==="function";var lt=async(e,t,n)=>{var r;const o=e.$hostElement$;const i=te("update",e.t.$);const l=o["s-rc"];if(n){se(e)}const s=te("render",e.t.$);{st(e,t,o,n)}if(l){l.map((e=>e()));o["s-rc"]=void 0}s();i();{const t=(r=o["s-p"])!=null?r:[];const n=()=>at(e);if(t.length===0){n()}else{Promise.all(t).then(n).catch(n);e.u|=4;t.length=0}}};var st=(e,t,n,r)=>{try{t=t.render();{e.u&=-17}{e.u|=2}{{{et(e,t,r)}}}}catch(t){h(t,e.$hostElement$)}return null};var at=e=>{const t=e.t.$;const n=e.$hostElement$;const r=te("postUpdate",t);const o=e.l;const i=e._;ct(o,"componentDidRender",void 0,n);if(!(e.u&64)){e.u|=64;ct(o,"componentDidLoad",void 0,n);r();{e.h(n);if(!i){ft()}}}else{ct(o,"componentDidUpdate",void 0,n);r()}{if(e.V){e.V();e.V=void 0}if(e.u&512){W((()=>nt(e,false)))}e.u&=-517}};var ft=t=>{var n;W((()=>Ne(z,"appload",{detail:{namespace:e}})));{if((n=A.L)==null?void 0:n.size){A.L.clear()}}};var ct=(e,t,n,r)=>{if(e&&e[t]){try{return e[t](n)}catch(e){h(e,r)}}return void 0};var ut=(e,t)=>u(e).i.get(t);var dt=(e,t,n,r)=>{const o=u(e);if(!o){return}if(!o){throw new Error(`Couldn't find host element for "${r.$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`)}const i=o.$hostElement$;const l=o.i.get(t);const s=o.u;const a=o.l;n=Ce(n,r.o[t][0],!!(r.u&64));const f=Number.isNaN(l)&&Number.isNaN(n);const c=n!==l&&!f;if((!(s&8)||l===void 0)&&c){o.i.set(t,n);if(r.W){const e=r.W[t];if(e){e.map((e=>{try{const[[r,i]]=Object.entries(e);if(s&128||i&1){if(!a){o.m.push((()=>{o.l[r](n,l,t)}))}else{a[r](n,l,t)}}}catch(e){h(e,i)}}))}}if(s&2){if(a.componentShouldUpdate){const e=a.componentShouldUpdate(n,l,t);if(e===false&&!(s&16)){return}}if(!(s&16)){nt(o,false)}}}};var vt=(e,n,r)=>{var o,i;const l=e.prototype;if(n.u&64&&r&1){E.forEach((e=>{Object.defineProperty(l,e,{value(...t){var n;const r=u(this);const o=r==null?void 0:r.l;if(!o){(n=r==null?void 0:r.p)==null?void 0:n.then((n=>{const r=n[e];typeof r==="function"&&r.call(n,...t)}))}else{const n=o[e];typeof n==="function"&&n.call(o,...t)}}})}))}if(n.o||t.propChangeCallback){{if(e.watchers&&!n.W){n.W=Se(e.watchers)}if(e.deserializers&&!n.q){n.q=e.deserializers}if(e.serializers&&!n.Y){n.Y=e.serializers}}const s=Object.entries((o=n.o)!=null?o:{});s.map((([e,[t]])=>{if(t&31||r&2&&t&32){const{get:o,set:i}=f(l,e)||{};if(o)n.o[e][0]|=2048;if(i)n.o[e][0]|=4096;if(r&1||!o){Object.defineProperty(l,e,{get(){{if((n.o[e][0]&2048)===0){return ut(this,e)}const t=u(this);const r=t?t.l:l;if(!r)return;return r[e]}},configurable:true,enumerable:true})}Object.defineProperty(l,e,{set(o){const l=u(this);if(!l){return}if(i){const r=t&32?this[e]:l.$hostElement$[e];if(typeof r==="undefined"&&l.i.get(e)){o=l.i.get(e)}i.apply(this,[Ce(o,t,!!(n.u&64))]);o=t&32?this[e]:l.$hostElement$[e];dt(this,e,o,n);return}{if((r&1)===0||(n.o[e][0]&4096)===0){dt(this,e,o,n);if(r&1&&!l.l){l.m.push((()=>{if(n.o[e][0]&4096&&l.l[e]!==l.i.get(e)){l.l[e]=o}}))}return}const i=()=>{const r=l.l[e];if(!l.i.get(e)&&r){l.i.set(e,r)}l.l[e]=Ce(o,t,!!(n.u&64));dt(this,e,l.l[e],n)};if(l.l){i()}else{l.m.push((()=>{i()}))}}}})}}));if(r&1){const r=new Map;l.attributeChangedCallback=function(e,o,i){A.jmp((()=>{var a;const f=r.get(e);const c=u(this);if(this.hasOwnProperty(f)&&t.lazyLoad){i=this[f];delete this[f]}if(l.hasOwnProperty(f)&&typeof this[f]==="number"&&this[f]==i){return}else if(f==null){const t=c==null?void 0:c.u;if(c&&t&&!(t&8)&&i!==o){const r=c.l;const l=(a=n.W)==null?void 0:a[e];l==null?void 0:l.forEach((n=>{const[[l,s]]=Object.entries(n);if(r[l]!=null&&(t&128||s&1)){r[l].call(r,i,o,e)}}))}return}const d=s.find((([e])=>e===f));const v=d&&d[1][0]&4;const p=v&&i===null&&this[f]===void 0;if(v){i=i===null||i==="false"?false:true}const h=Object.getOwnPropertyDescriptor(l,f);if(!p&&i!=this[f]&&(!h.get||!!h.set)){this[f]=i}}))};e.observedAttributes=Array.from(new Set([...Object.keys((i=n.W)!=null?i:{}),...s.filter((([e,t])=>t[0]&31)).map((([e,t])=>{var o;const i=t[1]||e;r.set(i,e);if(t[0]&512){(o=n.P)==null?void 0:o.push([e,i])}return i}))]))}}return e};var pt=async(e,n,r,o)=>{var i;let l;try{if((n.u&32)===0){n.u|=32;n.u&=-1025;const o=r.S;if(o){const t=g(r,n);if(t&&"then"in t){const e=ne();l=await t;e()}else{l=t}if(!l){n.u&=-33;n.G=((i=n.G)!=null?i:0)+1;if(n.G<M){n.u|=1024}throw new Error(`Constructor for "${r.$}#${n.J}" was not found`)}if(!l.isProxied){{r.W=Se(l.watchers);r.Y=l.serializers;r.q=l.deserializers}vt(l,r,2);l.isProxied=true}const o=te("createInstance",r.$);{n.u|=8}try{new l(n)}catch(t){h(t,e)}{n.u&=-9}{n.u|=128}o();{ht(n.l,e)}}else{l=e.constructor;const t=e.localName;customElements.whenDefined(t).then((()=>n.u|=128))}if(l&&l.style){let e;if(typeof l.style==="string"){e=l.style}const n=ae(r);if(!b.has(n)||t.hotModuleReplacement){const t=te("registerStyles",r.$);ie(n,e,!!(r.u&1));t()}}}const o=n._;const s=()=>nt(n,true);if(o&&o["s-rc"]){o["s-rc"].push(s)}else{s()}}catch(t){h(t,e);if(n.V){n.V();n.V=void 0}if(n.h&&!(n.u&1024)){n.h(e)}}};var ht=(e,t)=>{{ct(e,"connectedCallback",void 0,t)}};var mt=e=>{if((A.u&1)===0){const t=u(e);if(!t){return}const n=t.t;const r=te("connectedCallback",n.$);if(!(t.u&1)){t.u|=1;let r;{r=e.getAttribute(k);if(r){if(n.u&1){const t=le(e.shadowRoot,n);e.classList.remove(t+"-h",t+"-s")}me(e,n.$,r,t)}}{let n=e;while(n=n.parentNode||n.host){if(n.nodeType===1&&n.hasAttribute("s-id")&&n["s-p"]||n["s-p"]){tt(t,t._=n);break}}}if(n.o){Object.entries(n.o).map((([t,[n]])=>{if(n&31&&Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];delete e[t];e[t]=n}}))}{pt(e,t,n)}}else{$t(e,t,n.Z);if(t==null?void 0:t.l){ht(t.l,e)}else if(t.u&1024){setTimeout((()=>pt(e,t,n)),N)}else if(t==null?void 0:t.p){t.p.then((()=>ht(t.l,e)))}}r()}};var yt=(e,t)=>{{ct(e,"disconnectedCallback",void 0,t||e)}};var gt=async e=>{if((A.u&1)===0){const t=u(e);{if(t==null?void 0:t.K){t.K.map((e=>e()));t.K=void 0}}if(t==null?void 0:t.l){yt(t.l,e)}else if(t==null?void 0:t.p){t.p.then((()=>yt(t.l,e)))}}if(oe.has(e)){oe.delete(e)}if(e.shadowRoot&&oe.has(e.shadowRoot)){oe.delete(e.shadowRoot)}};var bt=(e,t={})=>{var n;if(!z.document){console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");return}const r=te();const o=[];const i=t.exclude||[];const l=z.customElements;const s=z.document.head;const a=s.querySelector("meta[charset]");const f=z.document.createElement("style");const c=[];let d;let p=true;Object.assign(A,t);A.j=new URL(t.resourcesUrl||"./",z.document.baseURI).href;{A.u|=2}{ce()}e.map((e=>{e[1].map((t=>{var n,r;const s={u:t[0],$:t[1],o:t[2],Z:t[3]};{s.o=t[2]}{s.Z=t[3]}{s.P=[]}{s.W=Se(t[4]);s.Y=(n=t[5])!=null?n:{};s.q=(r=t[6])!=null?r:{}}const a=kt(s.$);const f=class extends HTMLElement{["s-p"];["s-rc"];hasRegisteredEventListeners=false;constructor(e){super(e);e=this;v(e,s);if(s.u&1){{if(!e.shadowRoot){J.call(e,s)}else{if(e.shadowRoot.mode!=="open"){throw new Error(`Unable to re-use existing shadow root for ${s.$}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}}}}}connectedCallback(){const e=u(this);if(!e){return}if(!this.hasRegisteredEventListeners){this.hasRegisteredEventListeners=true;$t(this,e,s.Z)}if(d){clearTimeout(d);d=null}if(p){c.push(this)}else{A.jmp((()=>mt(this)))}}disconnectedCallback(){A.jmp((()=>gt(this)));W((()=>{var e;const t=u(this);if(!t){return}const n=c.findIndex((e=>e===this));if(n>-1){c.splice(n,1)}if(((e=t==null?void 0:t.R)==null?void 0:e.A)instanceof Node&&!t.R.A.isConnected){delete t.R.A}}))}componentOnReady(){var e;return(e=u(this))==null?void 0:e.p}};if(s.u&64){f.formAssociated=true}s.S=e[0];if(!i.includes(a)&&!l.get(a)){o.push(a);l.define(a,vt(f,s,1))}}))}));if(o.length>0){if(f.innerHTML.length){f.setAttribute("data-styles","");const e=(n=A.k)!=null?n:re(z.document);if(e!=null){f.setAttribute("nonce",e)}s.insertBefore(f,a?a.nextSibling:s.firstChild)}}p=false;if(c.length){c.map((e=>e.connectedCallback()))}else{{A.jmp((()=>d=setTimeout(ft,30)))}}r()};var $t=(e,t,n,r)=>{if(n&&z.document){n.map((([n,r,o])=>{const i=xt(z.document,e,n);const l=wt(t,o);const s=St(n);A.ael(i,r,l,s);(t.K=t.K||[]).push((()=>A.rel(i,r,l,s)))}))}};var wt=(e,t)=>n=>{var r;try{{if(e.u&256){(r=e.l)==null?void 0:r[t](n)}else{(e.B=e.B||[]).push([t,n])}}}catch(t){h(t,e.$hostElement$)}};var xt=(e,t,n)=>{if(n&4){return e}return t};var St=e=>L?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0;var jt=e=>A.k=e;function kt(e){return e}export{pe as H,Ie as a,bt as b,Me as c,n as g,de as h,R as p,d as r,jt as s};
3
- //# sourceMappingURL=p-BaKXvAYc.js.map
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/return import(`./${i}.entry.js${a?"?"+a:""}`).then((e=>{{y.delete(i);m.set(i,e)}return e[o]}),(e=>{y.set(i,s+1);h(e,t.$hostElement$)}))};var b=new Map;var $="r";var w="o";var x="s";var S="t";var j="c";var k="s-id";var O="sty-id";var C="c-id";var I="slot-fb{display:contents}slot-fb[hidden]{display:none}";var M=3;var N=1e3;var E=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"];var z=typeof window!=="undefined"?window:{};var A={u:0,j:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,r)=>e.addEventListener(t,n,r),rel:(e,t,n,r)=>e.removeEventListener(t,n,r),ce:(e,t)=>new CustomEvent(e,t)};var L=(()=>{var e;let t=false;try{(e=z.document)==null?void 0:e.addEventListener("e",null,Object.defineProperty({},"passive",{get(){t=true}}))}catch(e){}return t})();var R=e=>Promise.resolve(e);var D=(()=>{try{if(!z.document.adoptedStyleSheets){return false}new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false})();var U=D?(()=>!!z.document&&Object.getOwnPropertyDescriptor(z.document.adoptedStyleSheets,"length").writable)():false;var F=false;var T=[];var H=[];var P=()=>{var e;return((e=z.document)==null?void 0:e.hidden)?W(B):A.raf(B)};var V=(e,t)=>n=>{e.push(n);if(!F){F=true;if(t&&A.u&4){W(B)}else{P()}}};var _=e=>{for(let t=0;t<e.length;t++){try{e[t](performance.now())}catch(e){h(e)}}e.length=0};var B=()=>{_(T);{_(H);if(F=T.length>0){P()}}};var W=e=>R().then(e);var q=V(H,true);function Y(e){if(!D)return void 0;const t=new CSSStyleSheet;t.replaceSync(e);return t}var G;function J(e){var t;const n={mode:"open"};const o=this.attachShadow(n);if(G===void 0)G=(t=Y(r))!=null?t:null;if(G){if(U){o.adoptedStyleSheets.push(G)}else{o.adoptedStyleSheets=[...o.adoptedStyleSheets,G]}}else if(!D){const e=document.createElement("style");e.innerHTML=r;o.prepend(e)}}var Z=e=>{const t=[];for(let n=0;n<e.length;n++){const r=e[n]["s-nr"]||void 0;if(r&&r.isConnected){t.push(r)}}return t};var K=(e,t,n,r)=>{if(e["s-ol"]&&e["s-ol"].isConnected){return}const o=document.createTextNode("");o["s-nr"]=e;if(!t["s-cr"]||!t["s-cr"].parentNode)return;const i=t["s-cr"].parentNode;const l=ee(i,"appendChild");if(typeof r!=="undefined"){o["s-oo"]=r;const e=ee(i,"childNodes");const t=[o];e.forEach((e=>{if(e["s-nr"])t.push(e)}));t.sort(((e,t)=>{if(!e["s-oo"]||e["s-oo"]<(t["s-oo"]||0))return-1;else if(!t["s-oo"]||t["s-oo"]<e["s-oo"])return 1;return 0}));t.forEach((e=>l.call(i,e)))}else{l.call(i,o)}e["s-ol"]=o;e["s-sh"]=t["s-hn"]};var Q=e=>typeof e["s-sn"]==="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function X(e){if(e.assignedElements||e.assignedNodes||!e["s-sr"])return;const t=t=>function(e){const n=[];const r=this["s-sn"];if(e==null?void 0:e.flatten){console.error(`\n Flattening is not supported for Stencil non-shadow slots.\n You can use \`.childNodes\` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n `)}const o=this["s-cr"].parentElement;const i=o.__childNodes?o.childNodes:Z(o.childNodes);i.forEach((e=>{if(r===Q(e)){n.push(e)}}));if(t){return n.filter((e=>e.nodeType===1))}return n}.bind(e);e.assignedElements=t(true);e.assignedNodes=t(false)}function ee(e,t){if("__"+t in e){const n=e["__"+t];if(typeof n!=="function")return n;return n.bind(e)}else{if(typeof e[t]!=="function")return e[t];return e[t].bind(e)}}var te=(e,t="")=>{{return()=>{}}};var ne=(e,t)=>{{return()=>{}}};function re(e){var t,n,r;return(r=(n=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:n.getAttribute("content"))!=null?r:void 0}var oe=new WeakMap;var ie=(e,t,n)=>{let r=b.get(e);if(D&&n){r=r||new CSSStyleSheet;if(typeof r==="string"){r=t}else{r.replaceSync(t)}}else{r=t}b.set(e,r)};var le=(e,t,n)=>{var r,o,i;const l=ae(t);const s=b.get(l);if(!z.document){return l}e=e.nodeType===11?e:z.document;if(s){if(typeof s==="string"){e=e.head||e;let n=oe.get(e);let i;if(!n){oe.set(e,n=new Set)}const a=e.querySelector(`[${O}="${l}"]`);if(a){a.textContent=s}else if(!n.has(l)){i=z.document.createElement("style");i.textContent=s;const a=(r=A.k)!=null?r:re(z.document);if(a!=null){i.setAttribute("nonce",a)}if(!(t.u&1)){if(e.nodeName==="HEAD"){const t=e.querySelectorAll("link[rel=preconnect]");const n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(i,(n==null?void 0:n.parentNode)===e?n:null)}else if("host"in e){if(D){const t=(o=e.defaultView)!=null?o:e.ownerDocument.defaultView;const n=new t.CSSStyleSheet;n.replaceSync(s);if(U){e.adoptedStyleSheets.unshift(n)}else{e.adoptedStyleSheets=[n,...e.adoptedStyleSheets]}}else{const t=e.querySelector("style");if(t&&true){t.textContent=s+t.textContent}else{e.prepend(i)}}}else{e.append(i)}}if(t.u&1){e.insertBefore(i,null)}if(t.u&4){i.textContent+=I}if(n){n.add(l)}}}else{let t=oe.get(e);if(!t){oe.set(e,t=new Set)}if(!t.has(l)){const n=(i=e.defaultView)!=null?i:e.ownerDocument.defaultView;let r;if(s.constructor===n.CSSStyleSheet){r=s}else{r=new n.CSSStyleSheet;for(let e=0;e<s.cssRules.length;e++){r.insertRule(s.cssRules[e].cssText,e)}}if(U){e.adoptedStyleSheets.push(r)}else{e.adoptedStyleSheets=[...e.adoptedStyleSheets,r]}t.add(l);if("host"in e){const t=e.querySelector(`[${O}="${l}"]`);if(t){q((()=>t.remove()))}}}}}return l};var se=e=>{const t=e.t;const n=e.$hostElement$;const r=t.u;const o=te("attachStyles",t.$);const i=le(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);if(r&10){n["s-sc"]=i;n.classList.add(i+"-h")}o()};var ae=(e,t)=>"sc-"+e.$;var fe=e=>e.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{");var ce=()=>{if(!z.document){return}const e=z.document.querySelectorAll(`[${O}]`);let t=0;for(;t<e.length;t++){ie(e[t].getAttribute(O),fe(e[t].innerHTML),true)}};var ue=e=>{e=typeof e;return e==="object"||e==="function"};var de=(e,t,...n)=>{if(typeof e==="string"){e=It(e)}let r=null;let o=null;let i=false;let l=false;const s=[];const a=t=>{for(let n=0;n<t.length;n++){r=t[n];if(Array.isArray(r)){a(r)}else if(r!=null&&typeof r!=="boolean"){if(i=typeof e!=="function"&&!ue(r)){r=String(r)}else if(typeof e!=="function"&&r.u===void 0){{h("Invalid vNode child")}continue}if(i&&l){s[s.length-1].O+=r}else{s.push(i?ve(null,r):r)}l=i}}};a(n);if(t){if(t.key){o=t.key}{const e=t.className||t.class;if(e){t.class=typeof e!=="object"?e:Object.keys(e).filter((t=>e[t])).join(" ")}}}const f=ve(e,null);f.C=t;if(s.length>0){f.I=s}{f.M=o}return f};var ve=(e,t)=>{const n={u:0,N:e,O:t!=null?t:null,A:null,I:null};{n.C=null}{n.M=null}return n};var pe={};var he=e=>e&&e.N===pe;var me=(e,t,n,r)=>{var o,i,l,s;const a=te("hydrateClient",t);const f=e.shadowRoot;const c=[];const d=[];const v=[];const p=f?[]:null;const h=ve(t,null);h.A=e;if(z.document&&(!A.L||!A.L.size)){ge(z.document.body,A.L=new Map)}e[k]=n;e.removeAttribute(k);r.R=ye(h,c,d,p,e,e,n,v);let m=0;const y=c.length;let g;for(m;m<y;m++){g=c[m];const n=g.D+"."+g.U;const r=A.L.get(n);const i=g.A;if(!f){i["s-hn"]=It(t).toUpperCase();if(g.N==="slot"){i["s-cr"]=e["s-cr"]}}else if(((o=g.N)==null?void 0:o.toString().includes("-"))&&g.N!=="slot-fb"&&!g.A.shadowRoot){const e=u(g.A);if(e){const t=ae(e.t);const n=z.document.querySelector(`style[sty-id="${t}"]`);if(n){p.unshift(n.cloneNode(true))}}}if(g.N==="slot"){g.F=g.A["s-sn"]||g.A["name"]||null;if(g.I){g.u|=2;if(!g.A.childNodes.length){g.I.forEach((e=>{g.A.appendChild(e.A)}))}}else{g.u|=1}}if(r&&r.isConnected){if(r.parentElement.shadowRoot&&r["s-en"]===""){r.parentNode.insertBefore(i,r.nextSibling)}r.parentNode.removeChild(r);if(!f){i["s-oo"]=parseInt(g.U)}}if(r&&!r["s-id"]){A.L.delete(n)}}const b=[];const $=v.length;let w=0;let x;let S;let j;let O;let C=0;for(w;w<$;w++){x=v[w];if(!x||!x.length)continue;j=x.length;S=0;for(S;S<j;S++){O=x[S];if(!b[O.hostId]){b[O.hostId]=A.L.get(O.hostId)}if(!b[O.hostId])continue;const e=b[O.hostId];if(e.shadowRoot&&O.node.parentElement!==e){e.insertBefore(O.node,(l=(i=x[S-1])==null?void 0:i.node)==null?void 0:l.nextSibling)}if(!e.shadowRoot||!f){if(!O.slot["s-cr"]){O.slot["s-cr"]=e["s-cr"];if(!O.slot["s-cr"]&&e.shadowRoot){O.slot["s-cr"]=e}else{O.slot["s-cr"]=(e.__childNodes||e.childNodes)[0]}}K(O.node,O.slot,false,O.node["s-oo"]||C);if(((s=O.node.parentElement)==null?void 0:s.shadowRoot)&&O.node["getAttribute"]&&O.node.getAttribute("slot")){O.node.removeAttribute("slot")}}C=(O.node["s-oo"]||C)+1}}if(f&&!f.childNodes.length){let t=0;const n=p.length;if(n){for(t;t<n;t++){const e=p[t];if(e){f.appendChild(e)}}Array.from(e.childNodes).forEach((e=>{if(typeof e["s-en"]!=="string"&&typeof e["s-sn"]!=="string"){if(e.nodeType===1&&e.slot&&e.hidden){e.removeAttribute("hidden")}else if(e.nodeType===8&&!e.nodeValue){e.parentNode.removeChild(e)}}}))}}r.$hostElement$=e;a()};var ye=(e,t,n,r,o,i,l,s=[])=>{let a;let f;let c;let u;if(i.nodeType===1){a=i.getAttribute(C);if(a){f=a.split(".");if(f[0]===l||f[0]==="0"){c=be({u:0,D:f[0],U:f[1],T:f[2],H:f[3],N:i.tagName.toLowerCase(),A:i,C:{class:i.className||""}});t.push(c);i.removeAttribute(C);if(!e.I){e.I=[]}const o=c.A.getAttribute("s-sn");if(typeof o==="string"){if(c.N==="slot-fb"){$e(o,f[2],c,i,e,t,n,r,s)}c.A["s-sn"]=o;c.A.removeAttribute("s-sn")}if(c.H!==void 0){e.I[c.H]=c}e=c;if(r&&c.T==="0"){r[c.H]=c.A}}}if(i.shadowRoot){for(u=i.shadowRoot.childNodes.length-1;u>=0;u--){ye(e,t,n,r,o,i.shadowRoot.childNodes[u],l,s)}}const d=i.__childNodes||i.childNodes;for(u=d.length-1;u>=0;u--){ye(e,t,n,r,o,d[u],l,s)}}else if(i.nodeType===8){f=i.nodeValue.split(".");if(f[1]===l||f[1]==="0"){a=f[0];c=be({D:f[1],U:f[2],T:f[3],H:f[4]||"0",A:i,C:null,I:null,M:null,F:null,N:null,O:null});if(a===S){c.A=xe(i,3);if(c.A&&c.A.nodeType===3){c.O=c.A.textContent;t.push(c);i.remove();if(l===c.D){if(!e.I){e.I=[]}e.I[c.H]=c}if(r&&c.T==="0"){r[c.H]=c.A}}}else if(a===j){c.A=xe(i,8);if(c.A&&c.A.nodeType===8){t.push(c);i.remove()}}else if(c.D===l){if(a===x){const o=i["s-sn"]=f[5]||"";$e(o,f[2],c,i,e,t,n,r,s)}else if(a===$){if(r){i.remove()}}}}}else if(e&&e.N==="style"){const t=ve(null,i.textContent);t.A=i;t.H="0";e.I=[t]}return e};var ge=(e,t)=>{if(e.nodeType===1){const n=e[k]||e.getAttribute(k);if(n){t.set(n,e)}let r=0;if(e.shadowRoot){for(;r<e.shadowRoot.childNodes.length;r++){ge(e.shadowRoot.childNodes[r],t)}}const o=e.__childNodes||e.childNodes;for(r=0;r<o.length;r++){ge(o[r],t)}}else if(e.nodeType===8){const n=e.nodeValue.split(".");if(n[0]===w){t.set(n[1]+"."+n[2],e);e.nodeValue="";e["s-en"]=n[3]}}};var be=e=>{const t={u:0,D:null,U:null,T:null,H:"0",A:null,C:null,I:null,M:null,F:null,N:null,O:null};return{...t,...e}};function $e(e,t,n,r,o,i,l,s,a){r["s-sr"]=true;n.F=e||null;n.N="slot";const f=(o==null?void 0:o.A)?o.A["s-id"]||o.A.getAttribute("s-id"):"";if(s&&z.document){const i=n.A=z.document.createElement(n.N);if(n.F){n.A.setAttribute("name",e)}if(o.A.shadowRoot&&f&&f!==n.D){ee(o.A,"insertBefore")(i,ee(o.A,"children")[0])}else{ee(ee(r,"parentNode"),"insertBefore")(i,r)}we(a,t,e,r,n.D);r.remove();if(n.T==="0"){s[n.H]=n.A}}else{const i=n.A;const l=f&&f!==n.D&&o.A.shadowRoot;we(a,t,e,r,l?f:n.D);X(r);if(l){o.A.insertBefore(i,o.A.children[0])}}i.push(n);l.push(n);if(!o.I){o.I=[]}o.I[n.H]=n}var we=(e,t,n,r,o)=>{var i,l;let s=r.nextSibling;e[t]=e[t]||[];if(!s||((i=s.nodeValue)==null?void 0:i.startsWith(x+".")))return;do{if(s&&((s["getAttribute"]&&s.getAttribute("slot")||s["s-sn"])===n||n===""&&!s["s-sn"]&&(!s["getAttribute"]||!s.getAttribute("slot"))&&(s.nodeType===8||s.nodeType===3))){s["s-sn"]=n;e[t].push({slot:r,node:s,hostId:o})}s=s==null?void 0:s.nextSibling}while(s&&!((l=s.nodeValue)==null?void 0:l.startsWith(x+".")))};var xe=(e,t)=>{let n=e;do{n=n.nextSibling}while(n&&(n.nodeType!==t||!n.nodeValue));return n};var Se=e=>{if(!e)return void 0;const t=Object.keys(e);if(t.length===0)return void 0;let n=false;for(const r of t){if(n)break;for(const t of e[r]){if(typeof t==="string"){n=true;break}}}if(!n)return e;const r={};for(const n of t){r[n]=e[n].map((e=>typeof e==="string"?{[e]:0}:e))}return r};var je=class e{static fromLocalValue(t){const n=t[l];const r=s in t?t[s]:void 0;switch(n){case"string":return r;case"boolean":return r;case"bigint":return BigInt(r);case"undefined":return void 0;case"null":return null;case"number":if(r==="NaN")return NaN;if(r==="-0")return-0;if(r==="Infinity")return Infinity;if(r==="-Infinity")return-Infinity;return r;case"array":return r.map((t=>e.fromLocalValue(t)));case"date":return new Date(r);case"map":const t=new Map;for(const[n,o]of r){const r=typeof n==="object"&&n!==null?e.fromLocalValue(n):n;const i=e.fromLocalValue(o);t.set(r,i)}return t;case"object":const o={};for(const[t,n]of r){o[t]=e.fromLocalValue(n)}return o;case"regexp":const{pattern:i,flags:l}=r;return new RegExp(i,l);case"set":const s=new Set;for(const t of r){s.add(e.fromLocalValue(t))}return s;case"symbol":return Symbol(r);default:throw new Error(`Unsupported type: ${n}`)}}static fromLocalValueArray(t){return t.map((t=>e.fromLocalValue(t)))}static isLocalValueObject(e){if(typeof e!=="object"||e===null){return false}if(!e.hasOwnProperty(l)){return false}const t=e[l];const n=Object.values({...o,...i}).includes(t);if(!n){return false}if(t!=="null"&&t!=="undefined"){return e.hasOwnProperty(s)}return true}};function ke(e){const t=atob(e);const n=new Uint8Array(t.length);for(let e=0;e<t.length;e++){n[e]=t.charCodeAt(e)}return(new TextDecoder).decode(n)}function Oe(e){if(typeof e!=="string"||!e.startsWith(a)){return e}return je.fromLocalValue(JSON.parse(ke(e.slice(a.length))))}var Ce=(e,t,n)=>{if(typeof e==="string"&&e.startsWith(a)){e=Oe(e);return e}if(e!=null&&!ue(e)){if(t&4){if(n&&typeof e==="string"){return e===""||!!e}else{return e==="false"?false:e===""||!!e}}if(t&2){return typeof e==="string"?parseFloat(e):typeof e==="number"?e:NaN}if(t&1){return String(e)}return e}return e};var Ie=e=>{var t;return(t=u(e))==null?void 0:t.$hostElement$};var Me=(e,t,n)=>{const r=Ie(e);return{emit:e=>Ne(r,t,{bubbles:true,composed:true,cancelable:true,detail:e})}};var Ne=(e,t,n)=>{const r=A.ce(t,n);e.dispatchEvent(r);return r};var Ee=(e,t,n,r,o,i,l)=>{if(n===r){return}let s=p(e,t);let a=t.toLowerCase();if(t==="class"){const t=e.classList;const o=Re(n);let i=Re(r);if((e["s-si"]||e["s-sc"])&&l){const n=e["s-sc"]||e["s-si"];i.push(n);o.forEach((e=>{if(e.startsWith(n))i.push(e)}));i=[...new Set(i)].filter((e=>e));t.add(...i)}else{t.remove(...o.filter((e=>e&&!i.includes(e))));t.add(...i.filter((e=>e&&!o.includes(e))))}}else if(t==="key");else if(t==="ref"){if(r){Xe(r,e)}}else if(!s&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"){t=t.slice(3)}else if(p(z,a)){t=a.slice(2)}else{t=a[2]+t.slice(3)}if(n||r){const o=t.endsWith(De);t=t.replace(Ue,"");if(n){A.rel(e,t,n,o)}if(r){A.ael(e,t,r,o)}}}else if(t[0]==="a"&&t.startsWith("attr:")){const n=t.slice(5);let o;{const t=u(e);if(t&&t.t&&t.t.o){const e=t.t.o[n];if(e&&e[1]){o=e[1]}}}if(!o){o=n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}if(r==null||r===false){if(r!==false||e.getAttribute(o)===""){e.removeAttribute(o)}}else{e.setAttribute(o,r===true?"":r)}return}else if(t[0]==="p"&&t.startsWith("prop:")){const n=t.slice(5);try{e[n]=r}catch(e){}return}else{const l=ue(r);if((s||l&&r!==null)&&!o){try{if(!e.tagName.includes("-")){const o=r==null?"":r;if(t==="list"){s=false}else if(n==null||e[t]!==o){if(typeof e.__lookupSetter__(t)==="function"){e[t]=o}else{e.setAttribute(t,o)}}}else if(e[t]!==r){e[t]=r}}catch(e){}}if(r==null||r===false){if(r!==false||e.getAttribute(t)===""||i&4&&!Ae(t)){{e.removeAttribute(t)}}}else if((!s||i&4||o)&&!l&&e.nodeType===1){r=r===true?"":r;{e.setAttribute(t,r)}}}};var ze=new Set(["draggable","contenteditable","spellcheck"]);var Ae=e=>ze.has(e)||e.startsWith("aria-");var Le=/\s/;var Re=e=>{if(typeof e==="object"&&e&&"baseVal"in e){e=e.baseVal}if(!e||typeof e!=="string"){return[]}return e.split(Le)};var De="Capture";var Ue=new RegExp(De+"$");var Fe=(e,t,n,r)=>{const o=t.A.nodeType===11&&t.A.host?t.A.host:t.A;const i=e&&e.C||{};const l=t.C||{};{for(const e of Te(Object.keys(i))){if(!(e in l)){Ee(o,e,i[e],void 0,n,t.u,r)}}}for(const e of Te(Object.keys(l))){Ee(o,e,i[e],l[e],n,t.u,r)}};function Te(e){return e.includes("ref")?[...e.filter((e=>e!=="ref")),"ref"]:e}var He;var Pe=false;var Ve=false;var _e=[];var Be=[];var We=(e,t,n)=>{const r=t.I[n];let o=0;let i;let l;if(r.O!=null){i=r.A=z.document.createTextNode(r.O)}else{if(!z.document){throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.")}i=r.A=z.document.createElement(r.N);{Fe(null,r,Ve)}if(r.I){const t=r.N==="template"?i.content:i;for(o=0;o<r.I.length;++o){l=We(e,r,o);if(l){t.appendChild(l)}}}}i["s-hn"]=He;return i};var qe=e=>{A.u|=1;const t=e.closest(He.toLowerCase());if(t!=null){const n=Array.from(t.__childNodes||t.childNodes).find((e=>e["s-cr"]));const r=Array.from(e.__childNodes||e.childNodes);for(const e of n?r.reverse():r){if(e["s-sh"]!=null){tt(t,e,n!=null?n:null);e["s-sh"]=void 0}}}A.u&=-2};var Ye=(e,t,n,r,o,i)=>{let l=e;let s;if(l.shadowRoot&&l.tagName===He){l=l.shadowRoot}if(n.N==="template"){l=l.content}for(;o<=i;++o){if(r[o]){s=We(null,n,o);if(s){r[o].A=s;tt(l,s,t)}}}};var Ge=(e,t,n)=>{for(let r=t;r<=n;++r){const t=e[r];if(t){const e=t.A;Qe(t);if(e){e.remove()}}}};var Je=(e,t,n,r,o=false)=>{let i=0;let l=0;let s=0;let a=0;let f=t.length-1;let c=t[0];let u=t[f];let d=r.length-1;let v=r[0];let p=r[d];let h;let m;const y=n.N==="template"?e.content:e;while(i<=f&&l<=d){if(c==null){c=t[++i]}else if(u==null){u=t[--f]}else if(v==null){v=r[++l]}else if(p==null){p=r[--d]}else if(Ze(c,v,o)){Ke(c,v,o);c=t[++i];v=r[++l]}else if(Ze(u,p,o)){Ke(u,p,o);u=t[--f];p=r[--d]}else if(Ze(c,p,o)){Ke(c,p,o);tt(y,c.A,u.A.nextSibling);c=t[++i];p=r[--d]}else if(Ze(u,v,o)){Ke(u,v,o);tt(y,u.A,c.A);u=t[--f];v=r[++l]}else{s=-1;{for(a=i;a<=f;++a){if(t[a]&&t[a].M!==null&&t[a].M===v.M){s=a;break}}}if(s>=0){m=t[s];if(m.N!==v.N){h=We(t&&t[l],n,s)}else{Ke(m,v,o);t[s]=void 0;h=m.A}v=r[++l]}else{h=We(t&&t[l],n,l);v=r[++l]}if(h){{tt(c.A.parentNode,h,c.A)}}}}if(i>f){Ye(e,r[d+1]==null?null:r[d+1].A,n,r,l,d)}else if(l>d){Ge(t,i,f)}};var Ze=(e,t,n=false)=>{if(e.N===t.N){if(!n){return e.M===t.M}if(n&&!e.M&&t.M){e.M=t.M}return true}return false};var Ke=(e,n,r=false)=>{const o=n.A=e.A;const i=e.I;const l=n.I;const s=n.N;const a=n.O;if(a==null){{if(s==="slot"&&!Pe){if(e.F!==n.F){n.A["s-sn"]=n.F||"";qe(n.A.parentElement)}}Fe(e,n,Ve,r)}if(i!==null&&l!==null){Je(o,i,n,l,r)}else if(l!==null){if(e.O!==null){o.textContent=""}Ye(o,null,n,l,0,l.length-1)}else if(!r&&t.updatable&&i!==null){Ge(i,0,i.length-1)}else if(r&&t.updatable&&i!==null&&l===null){n.I=i}}else if(e.O!==a){o.data=a}};var Qe=e=>{{if(e.C&&e.C.ref){_e.push((()=>e.C.ref(null)))}e.I&&e.I.map(Qe)}};var Xe=(e,t)=>{{Be.push((()=>e(t)))}};var et=()=>{{_e.forEach((e=>e()));_e.length=0;Be.forEach((e=>e()));Be.length=0}};var tt=(e,t,n,r)=>{{return e==null?void 0:e.insertBefore(t,n)}};var nt=(e,t,n=false)=>{const r=e.$hostElement$;const o=e.t;const i=e.R||ve(null,null);const l=he(t);const s=l?t:de(null,null,t);He=r.tagName;if(o.P){s.C=s.C||{};o.P.forEach((([e,t])=>{{s.C[t]=r[e]}}))}if(n&&s.C){for(const e of Object.keys(s.C)){if(r.hasAttribute(e)&&!["key","ref","style","class"].includes(e)){s.C[e]=r[e]}}}s.N=null;s.u|=4;e.R=s;s.A=i.A=r.shadowRoot||r;Pe=!!(o.u&1)&&!(o.u&128);Ke(i,s,n);et()};var rt=(e,t)=>{if(t&&!e.V&&t["s-p"]){const n=t["s-p"].push(new Promise((r=>e.V=()=>{t["s-p"].splice(n-1,1);r()})))}};var ot=(e,t)=>{{e.u|=16}if(e.u&4){e.u|=512;return}rt(e,e._);const n=()=>it(e,t);if(t){queueMicrotask((()=>{n()}));return}return q(n)};var it=(e,t)=>{const n=e.$hostElement$;const r=te("scheduleUpdate",e.t.$);const o=e.l;if(!o){throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`)}let i;if(t){{{e.u|=256;if(e.B){e.B.map((([e,t])=>dt(o,e,t,n)));e.B=void 0}}if(e.m.length){e.m.forEach((e=>e(n)))}}i=dt(o,"componentWillLoad",void 0,n)}else{i=dt(o,"componentWillUpdate",void 0,n)}i=lt(i,(()=>dt(o,"componentWillRender",void 0,n)));r();return lt(i,(()=>at(e,o,t)))};var lt=(e,t)=>st(e)?e.then(t).catch((e=>{console.error(e);t()})):t();var st=e=>e instanceof Promise||e&&e.then&&typeof e.then==="function";var at=async(e,t,n)=>{var r;const o=e.$hostElement$;const i=te("update",e.t.$);const l=o["s-rc"];if(n){se(e)}const s=te("render",e.t.$);{ft(e,t,o,n)}if(l){l.map((e=>e()));o["s-rc"]=void 0}s();i();{const t=(r=o["s-p"])!=null?r:[];const n=()=>ct(e);if(t.length===0){n()}else{Promise.all(t).then(n).catch(n);e.u|=4;t.length=0}}};var ft=(e,t,n,r)=>{try{t=t.render();{e.u&=-17}{e.u|=2}{{{nt(e,t,r)}}}}catch(t){h(t,e.$hostElement$)}return null};var ct=e=>{const t=e.t.$;const n=e.$hostElement$;const r=te("postUpdate",t);const o=e.l;const i=e._;dt(o,"componentDidRender",void 0,n);if(!(e.u&64)){e.u|=64;dt(o,"componentDidLoad",void 0,n);r();{e.h(n);if(!i){ut()}}}else{dt(o,"componentDidUpdate",void 0,n);r()}{if(e.V){e.V();e.V=void 0}if(e.u&512){W((()=>ot(e,false)))}e.u&=-517}};var ut=t=>{var n;W((()=>Ne(z,"appload",{detail:{namespace:e}})));{if((n=A.L)==null?void 0:n.size){A.L.clear()}}};var dt=(e,t,n,r)=>{if(e&&e[t]){try{return e[t](n)}catch(e){h(e,r)}}return void 0};var vt=(e,t)=>u(e).i.get(t);var pt=(e,t,n,r)=>{const o=u(e);if(!o){return}if(!o){throw new Error(`Couldn't find host element for "${r.$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`)}const i=o.$hostElement$;const l=o.i.get(t);const s=o.u;const a=o.l;n=Ce(n,r.o[t][0],!!(r.u&64));const f=Number.isNaN(l)&&Number.isNaN(n);const c=n!==l&&!f;if((!(s&8)||l===void 0)&&c){o.i.set(t,n);if(r.W){const e=r.W[t];if(e){e.map((e=>{try{const[[r,i]]=Object.entries(e);if(s&128||i&1){if(!a){o.m.push((()=>{o.l[r](n,l,t)}))}else{a[r](n,l,t)}}}catch(e){h(e,i)}}))}}if(s&2){if(a.componentShouldUpdate){const e=a.componentShouldUpdate(n,l,t);if(e===false&&!(s&16)){return}}if(!(s&16)){ot(o,false)}}}};var ht=e=>e==null||e===false?null:e===true?"":String(e);var mt=(e,n,r)=>{var o,i;const l=e.prototype;if(n.u&64&&r&1){E.forEach((e=>{Object.defineProperty(l,e,{value(...t){var n;const r=u(this);const o=r==null?void 0:r.l;if(!o){(n=r==null?void 0:r.p)==null?void 0:n.then((n=>{const r=n[e];typeof r==="function"&&r.call(n,...t)}))}else{const n=o[e];typeof n==="function"&&n.call(o,...t)}}})}))}if(n.o||t.propChangeCallback){{if(e.watchers&&!n.W){n.W=Se(e.watchers)}if(e.deserializers&&!n.q){n.q=e.deserializers}if(e.serializers&&!n.Y){n.Y=e.serializers}}const s=Object.entries((o=n.o)!=null?o:{});s.map((([e,[t]])=>{if(t&31||r&2&&t&32){const{get:o,set:i}=f(l,e)||{};if(o)n.o[e][0]|=2048;if(i)n.o[e][0]|=4096;if(r&1||!o){Object.defineProperty(l,e,{get(){{if((n.o[e][0]&2048)===0){return vt(this,e)}const t=u(this);const r=t?t.l:l;if(!r)return;return r[e]}},configurable:true,enumerable:true})}Object.defineProperty(l,e,{set(o){const l=u(this);if(!l){return}if(i){const r=t&32?this[e]:l.$hostElement$[e];if(typeof r==="undefined"&&l.i.get(e)){o=l.i.get(e)}i.apply(this,[Ce(o,t,!!(n.u&64))]);o=t&32?this[e]:l.$hostElement$[e];pt(this,e,o,n);return}{if((r&1)===0||(n.o[e][0]&4096)===0){pt(this,e,o,n);if(r&1&&!l.l){l.m.push((()=>{if(n.o[e][0]&4096&&l.l[e]!==l.i.get(e)){l.l[e]=o}}))}return}const i=()=>{const r=l.l[e];if(!l.i.get(e)&&r){l.i.set(e,r)}l.l[e]=Ce(o,t,!!(n.u&64));pt(this,e,l.l[e],n)};if(l.l){i()}else{l.m.push((()=>{i()}))}}}})}}));if(r&1){const r=new Map;l.attributeChangedCallback=function(e,o,i){A.jmp((()=>{var a;const f=r.get(e);const c=u(this);if(this.hasOwnProperty(f)&&t.lazyLoad){i=this[f];delete this[f]}if(l.hasOwnProperty(f)&&typeof this[f]==="number"&&this[f]==i){return}else if(f==null){const t=c==null?void 0:c.u;if(c&&t&&!(t&8)&&i!==o){const r=c.l;const l=(a=n.W)==null?void 0:a[e];l==null?void 0:l.forEach((n=>{const[[l,s]]=Object.entries(n);if(r[l]!=null&&(t&128||s&1)){r[l].call(r,i,o,e)}}))}return}const d=s.find((([e])=>e===f));const v=d?d[1][0]:0;const p=v&4;if(v&512&&v&8&&!ue(this[f])&&ht(this[f])===i){return}const h=p&&i===null&&this[f]===void 0;if(p){i=i===null||i==="false"?false:true}const m=Object.getOwnPropertyDescriptor(l,f);if(!h&&i!=this[f]&&(!m.get||!!m.set)){this[f]=i}}))};e.observedAttributes=Array.from(new Set([...Object.keys((i=n.W)!=null?i:{}),...s.filter((([e,t])=>t[0]&31)).map((([e,t])=>{var o;const i=t[1]||e;r.set(i,e);if(t[0]&512){(o=n.P)==null?void 0:o.push([e,i])}return i}))]))}}return e};var yt=async(e,n,r,o)=>{var i;let l;try{if((n.u&32)===0){n.u|=32;n.u&=-1025;const o=r.S;if(o){const t=g(r,n);if(t&&"then"in t){const e=ne();l=await t;e()}else{l=t}if(!l){n.u&=-33;n.G=((i=n.G)!=null?i:0)+1;if(n.G<M){n.u|=1024}throw new Error(`Constructor for "${r.$}#${n.J}" was not found`)}if(!l.isProxied){{r.W=Se(l.watchers);r.Y=l.serializers;r.q=l.deserializers}mt(l,r,2);l.isProxied=true}const o=te("createInstance",r.$);{n.u|=8}try{new l(n)}catch(t){h(t,e)}{n.u&=-9}{n.u|=128}o();{gt(n.l,e)}}else{l=e.constructor;const t=e.localName;customElements.whenDefined(t).then((()=>n.u|=128))}if(l&&l.style){let e;if(typeof l.style==="string"){e=l.style}const n=ae(r);if(!b.has(n)||t.hotModuleReplacement){const t=te("registerStyles",r.$);ie(n,e,!!(r.u&1));t()}}}const o=n._;const s=()=>ot(n,true);if(o&&o["s-rc"]){o["s-rc"].push(s)}else{s()}}catch(t){h(t,e);if(n.V){n.V();n.V=void 0}if(n.h&&!(n.u&1024)){n.h(e)}}};var gt=(e,t)=>{{dt(e,"connectedCallback",void 0,t)}};var bt=e=>{if((A.u&1)===0){const t=u(e);if(!t){return}const n=t.t;const r=te("connectedCallback",n.$);if(!(t.u&1)){t.u|=1;let r;{r=e.getAttribute(k);if(r){if(n.u&1){const t=le(e.shadowRoot,n);e.classList.remove(t+"-h",t+"-s")}me(e,n.$,r,t)}}{let n=e;while(n=n.parentNode||n.host){if(n.nodeType===1&&n.hasAttribute("s-id")&&n["s-p"]||n["s-p"]){rt(t,t._=n);break}}}if(n.o){Object.entries(n.o).map((([t,[n]])=>{if(n&31&&Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];delete e[t];e[t]=n}}))}{yt(e,t,n)}}else{St(e,t,n.Z);if(t==null?void 0:t.l){gt(t.l,e)}else if(t.u&1024){setTimeout((()=>yt(e,t,n)),N)}else if(t==null?void 0:t.p){t.p.then((()=>gt(t.l,e)))}}r()}};var $t=(e,t)=>{{dt(e,"disconnectedCallback",void 0,t||e)}};var wt=async e=>{if((A.u&1)===0){const t=u(e);{if(t==null?void 0:t.K){t.K.map((e=>e()));t.K=void 0}}if(t==null?void 0:t.l){$t(t.l,e)}else if(t==null?void 0:t.p){t.p.then((()=>$t(t.l,e)))}}if(oe.has(e)){oe.delete(e)}if(e.shadowRoot&&oe.has(e.shadowRoot)){oe.delete(e.shadowRoot)}};var xt=(e,t={})=>{var n;if(!z.document){console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");return}const r=te();const o=[];const i=t.exclude||[];const l=z.customElements;const s=z.document.head;const a=s.querySelector("meta[charset]");const f=z.document.createElement("style");const c=[];let d;let p=true;Object.assign(A,t);A.j=new URL(t.resourcesUrl||"./",z.document.baseURI).href;{A.u|=2}{ce()}e.map((e=>{e[1].map((t=>{var n,r;const s={u:t[0],$:t[1],o:t[2],Z:t[3]};{s.o=t[2]}{s.Z=t[3]}{s.P=[]}{s.W=Se(t[4]);s.Y=(n=t[5])!=null?n:{};s.q=(r=t[6])!=null?r:{}}const a=It(s.$);const f=class extends HTMLElement{["s-p"];["s-rc"];hasRegisteredEventListeners=false;constructor(e){super(e);e=this;v(e,s);if(s.u&1){{if(!e.shadowRoot){J.call(e,s)}else{if(e.shadowRoot.mode!=="open"){throw new Error(`Unable to re-use existing shadow root for ${s.$}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}}}}}connectedCallback(){const e=u(this);if(!e){return}if(!this.hasRegisteredEventListeners){this.hasRegisteredEventListeners=true;St(this,e,s.Z)}if(d){clearTimeout(d);d=null}if(p){c.push(this)}else{A.jmp((()=>bt(this)))}}disconnectedCallback(){A.jmp((()=>wt(this)));W((()=>{var e;const t=u(this);if(!t){return}const n=c.findIndex((e=>e===this));if(n>-1){c.splice(n,1)}if(((e=t==null?void 0:t.R)==null?void 0:e.A)instanceof Node&&!t.R.A.isConnected){delete t.R.A}}))}componentOnReady(){var e;return(e=u(this))==null?void 0:e.p}};if(s.u&64){f.formAssociated=true}s.S=e[0];if(!i.includes(a)&&!l.get(a)){o.push(a);l.define(a,mt(f,s,1))}}))}));if(o.length>0){if(f.innerHTML.length){f.setAttribute("data-styles","");const e=(n=A.k)!=null?n:re(z.document);if(e!=null){f.setAttribute("nonce",e)}s.insertBefore(f,a?a.nextSibling:s.firstChild)}}p=false;if(c.length){c.map((e=>e.connectedCallback()))}else{{A.jmp((()=>d=setTimeout(ut,30)))}}r()};var St=(e,t,n,r)=>{if(n&&z.document){n.map((([n,r,o])=>{const i=kt(z.document,e,n);const l=jt(t,o);const s=Ot(n);A.ael(i,r,l,s);(t.K=t.K||[]).push((()=>A.rel(i,r,l,s)))}))}};var jt=(e,t)=>n=>{var r;try{{if(e.u&256){(r=e.l)==null?void 0:r[t](n)}else{(e.B=e.B||[]).push([t,n])}}}catch(t){h(t,e.$hostElement$)}};var kt=(e,t,n)=>{if(n&4){return e}return t};var Ot=e=>L?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0;var Ct=e=>A.k=e;function It(e){return e}export{pe as H,Ie as a,xt as b,Me as c,n as g,de as h,R as p,d as r,Ct as s};
3
+ //# sourceMappingURL=p-DWC12BJ-.js.map